/* ==========================================================================
   HiHostings AI Website Builder & Studio Stylesheet
   Theme: White, Red (#C7362F), and Black (#09090b)
   ========================================================================== */

:root {
    --hi-red: #C7362F;
    --hi-red-hover: #b02e28;
    --hi-red-light: #ff4d4d;
    --hi-dark-bg: #09090b;
    --hi-black-card: #121215;
    --hi-black-subtle: #18181b;
    --hi-glass-bg: rgba(18, 18, 21, 0.92);
    --hi-glass-border: rgba(255, 255, 255, 0.15);
    --hi-text: #ffffff;
    --hi-text-muted: #a1a1aa;
    --hi-light-bg: #f8fafc;
    --hi-border-light: #e2e8f0;
    --hi-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    --hi-gradient-red: linear-gradient(135deg, #C7362F 0%, #ff4d4d 100%);
    --hi-gradient-dark: linear-gradient(180deg, #09090b 0%, #17171c 100%);
}

/* ==========================================
   AI Website Builder Landing Page
   ========================================== */

.ai-landing-hero {
    background: var(--hi-gradient-dark);
    position: relative;
    padding: 100px 0 90px;
    color: var(--hi-text);
    overflow: hidden;
}

/* Background Grid & Spotlight Mesh */
.ai-landing-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(199, 54, 47, 0.28) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.ai-landing-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(199, 54, 47, 0.15);
    border: 1px solid rgba(199, 54, 47, 0.4);
    color: #ff6b6b;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(199, 54, 47, 0.2);
}

.ai-hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.ai-hero-title span {
    background: linear-gradient(90deg, #ff4d4d 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ai-hero-subtitle {
    font-size: 19px;
    color: var(--hi-text-muted);
    max-width: 720px;
    margin: 0 auto 44px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Glassmorphic Prompt Card with Animated Neon Glow */
.ai-prompt-box-wrapper {
    max-width: 780px;
    margin: 0 auto;
    background: rgba(18, 18, 21, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--hi-shadow-lg), 0 0 35px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.ai-prompt-box-wrapper:focus-within {
    border-color: #C7362F;
    box-shadow: 0 0 35px rgba(199, 54, 47, 0.45), var(--hi-shadow-lg);
    transform: translateY(-2px);
}

.ai-prompt-textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 17px;
    resize: none;
    min-height: 90px;
    font-family: inherit;
    line-height: 1.5;
}

.ai-prompt-textarea::placeholder {
    color: #71717a;
}

.ai-prompt-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-build-btn {
    background: var(--hi-gradient-red);
    color: #ffffff;
    font-weight: 800;
    padding: 14px 34px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 25px rgba(199, 54, 47, 0.55);
}

.ai-build-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(199, 54, 47, 0.75);
    background: linear-gradient(135deg, #e63934 0%, #ff6666 100%);
}

.ai-meta-info {
    color: var(--hi-text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.ai-meta-info .stars {
    color: #fbbf24;
}

/* Unique Feature Showcase Cards */
.features-grid-section {
    padding: 80px 0;
    background: #0d0d10;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-unique-card {
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 30px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-unique-card:hover {
    border-color: #C7362F;
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(199, 54, 47, 0.25);
}

.feature-unique-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(199, 54, 47, 0.15);
    color: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    border: 1px solid rgba(199, 54, 47, 0.3);
}

.feature-unique-card h4 {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.feature-unique-card p {
    font-size: 14px;
    color: #a1a1aa;
    line-height: 1.6;
    margin: 0;
}

/* Style Selector Section */
.site-styles-section {
    padding: 70px 0;
    background: #09090b;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-heading {
    text-align: center;
    margin-bottom: 44px;
}

.section-heading h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffffff;
}

.section-heading p {
    color: var(--hi-text-muted);
    font-size: 16px;
}

.style-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.style-card {
    background: #121215;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.style-card.active,
.style-card:hover {
    border-color: #C7362F;
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(199, 54, 47, 0.35);
}

.style-card.active::after {
    content: "✓ Selected";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #C7362F;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 99px;
    box-shadow: 0 4px 10px rgba(199, 54, 47, 0.6);
}

.style-card-img {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.style-card-content {
    padding: 18px;
}

.style-card-title {
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 4px;
}

.style-card-desc {
    font-size: 13px;
    color: #a1a1aa;
}

/* Spark Prompt Suggestions */
.sparks-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.spark-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e4e4e7;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spark-chip:hover {
    background: rgba(199, 54, 47, 0.22);
    border-color: rgba(199, 54, 47, 0.7);
    color: #ff6b6b;
    transform: scale(1.04);
}

/* ==========================================
   AI Builder Studio Layout (builder.html)
   ========================================== */

body.builder-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    color: #09090b;
    font-family: 'Roboto', sans-serif;
    background: #ffffff;
}

.builder-header {
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 50;
    position: relative;
}

.builder-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.builder-brand img {
    height: 28px;
}

.builder-tag {
    background: rgba(199, 54, 47, 0.2);
    color: #ff6b6b;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(199, 54, 47, 0.3);
}

.builder-top-center {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #18181b;
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.device-btn {
    background: transparent;
    border: none;
    color: #a1a1aa;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.device-btn.active,
.device-btn:hover {
    background: #C7362F;
    color: #ffffff;
}

.builder-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.builder-action-btn {
    background: #18181b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.builder-action-btn:hover {
    background: #27272a;
    color: #ffffff;
}

.deploy-btn {
    background: var(--hi-gradient-red);
    color: #ffffff;
    border: none;
    padding: 8px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(199, 54, 47, 0.4);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.deploy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(199, 54, 47, 0.6);
}

/* Studio Workspace */
.studio-workspace {
    display: flex;
    height: calc(100vh - 60px);
    position: relative;
}

.canvas-area {
    flex: 1;
    background: #09090b;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.canvas-toolbar {
    height: 44px;
    background: #121215;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 16px;
}

.tool-chip {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tool-chip:hover {
    color: #ffffff;
    background: #27272a;
}

.iframe-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow: auto;
    transition: all 0.3s ease;
}

.preview-iframe {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transition: width 0.3s ease;
}

.preview-iframe.viewport-desktop {
    width: 100%;
    max-width: 1280px;
}

.preview-iframe.viewport-tablet {
    width: 768px;
    height: 95%;
}

.preview-iframe.viewport-mobile {
    width: 375px;
    height: 95%;
}

/* Sidebar Toggle & Collapsible Styles */
.sidebar-toggle-btn {
    background: rgba(199, 54, 47, 0.15);
    border: 1px solid rgba(199, 54, 47, 0.35);
    color: #ffffff;
    padding: 6px 14px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 700;
    margin-right: 10px;
    white-space: nowrap;
}

.sidebar-toggle-btn:hover {
    background: #C7362F;
    border-color: #C7362F;
    color: #ffffff;
    transform: translateY(-1px);
}

.sidebar-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #a1a1aa;
    padding: 4px 12px;
    height: 30px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sidebar-close-btn:hover {
    color: #ffffff;
    background: rgba(199, 54, 47, 0.25);
    border-color: rgba(199, 54, 47, 0.5);
}

.sidebar-canvas-chip {
    margin-left: auto;
    background: rgba(199, 54, 47, 0.15) !important;
    color: #ff6b6b !important;
    border: 1px solid rgba(199, 54, 47, 0.35) !important;
    font-weight: 700 !important;
    transition: all 0.2s ease;
}

.sidebar-canvas-chip:hover {
    background: #C7362F !important;
    color: #ffffff !important;
}

.sidebar-panel {
    width: 360px;
    background: #121215;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 40;
    transition: margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

/* Collapsed state on Desktop */
.sidebar-panel.collapsed {
    margin-right: -360px;
    pointer-events: none;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
}

.sidebar-backdrop.active {
    display: block;
}

/* Mobile responsive drawer (closed by default) */
@media (max-width: 768px) {
    .sidebar-panel {
        position: fixed;
        top: 60px;
        right: 0;
        bottom: 0;
        width: 88vw;
        max-width: 360px;
        height: calc(100vh - 60px);
        z-index: 999;
        transform: translateX(100%);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
        border-left: 1px solid rgba(255, 255, 255, 0.15);
    }

    .sidebar-panel.mobile-active {
        transform: translateX(0);
    }

    .builder-brand img {
        height: 22px;
    }

    .builder-top-center {
        display: none;
    }
}

/* Floating Top-Right Toast Progress Notification */
.ai-toast-container {
    position: fixed;
    top: 76px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.ai-toast-card {
    background: rgba(20, 20, 24, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(199, 54, 47, 0.4);
    border-radius: 14px;
    padding: 14px 18px;
    width: 340px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(199, 54, 47, 0.2);
    pointer-events: auto;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.ai-toast-card.success {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(34, 197, 94, 0.15);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-badge {
    background: rgba(199, 54, 47, 0.15);
    color: #ff6b6b;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(199, 54, 47, 0.3);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Quick Add Widgets */
.quick-add-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #71717a;
    margin-bottom: 12px;
}

.widget-card {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.widget-card:hover {
    background: #27272a;
    border-color: rgba(199, 54, 47, 0.5);
    transform: translateY(-1px);
}

.widget-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(199, 54, 47, 0.15);
    color: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.widget-text h5 {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.widget-text p {
    font-size: 11px;
    color: #a1a1aa;
    margin: 0;
    line-height: 1.3;
}

.widget-add-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.widget-card:hover .widget-add-btn {
    background: #C7362F;
    color: #ffffff;
}

/* Chat Prompt Area */
.chat-messages-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 90%;
}

.chat-bubble.ai {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e4e4e7;
    align-self: flex-start;
}

.chat-bubble.user {
    background: #C7362F;
    color: #ffffff;
    align-self: flex-end;
}

.sidebar-prompt-footer {
    padding: 16px;
    background: #121215;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-prompt-input-group {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-prompt-input-group:focus-within {
    border-color: #C7362F;
}

.sidebar-prompt-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 13px;
    flex: 1;
}

.sidebar-send-btn {
    background: #C7362F;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sidebar-send-btn:hover {
    background: #b02e28;
}

/* Universal box-sizing reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Modals & Overlays */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 9, 11, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.modal-backdrop,
.modal-backdrop *,
.modal-backdrop *::before,
.modal-backdrop *::after {
    box-sizing: border-box !important;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.generation-modal {
    text-align: center;
    color: #ffffff;
    width: 100%;
    max-width: 480px;
    padding: 36px 30px;
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(199, 54, 47, 0.2);
    box-sizing: border-box;
}

.gen-spinner-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #C7362F 0%, #991B1B 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ffffff;
    box-shadow: 0 0 30px rgba(199, 54, 47, 0.6);
    animation: pulseGlow 1.5s infinite alternate;
}

.gen-progress-container {
    margin: 22px 0 18px 0;
    text-align: left;
}

.gen-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gen-progress-track {
    background: rgba(255, 255, 255, 0.08);
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.gen-progress-fill {
    background: linear-gradient(90deg, #C7362F 0%, #ff6b6b 100%);
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition: width 0.3s ease;
    box-shadow: 0 0 14px rgba(199, 54, 47, 0.8);
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 20px rgba(199, 54, 47, 0.4);
    }

    100% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(199, 54, 47, 0.8);
    }
}

/* Deploy Configuration & Payment Modal Redesign */
.deploy-modal-card {
    background: #0c0c0e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    width: 100%;
    max-width: 940px;
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(199, 54, 47, 0.12);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
}

.deploy-modal-card input,
.deploy-modal-card textarea,
.deploy-modal-card select,
.deploy-modal-card form,
.deploy-modal-card button {
    max-width: 100%;
    box-sizing: border-box;
}

.deploy-modal-header {
    padding: 22px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(18, 18, 21, 0.95);
    color: #ffffff;
    border-top-left-radius: 23px;
    border-top-right-radius: 23px;
}

.deploy-modal-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.deploy-modal-title .header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(199, 54, 47, 0.15);
    border: 1px solid rgba(199, 54, 47, 0.35);
    color: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.deploy-modal-header h4 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 2px 0;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #a1a1aa;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #C7362F;
    color: #ffffff;
    border-color: #C7362F;
    transform: rotate(90deg);
}

.deploy-modal-body {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 370px;
    gap: 28px;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 900px) {
    .deploy-modal-body {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .deploy-modal-card {
        border-radius: 16px;
        max-height: 94vh;
    }

    .deploy-modal-header {
        padding: 16px 20px;
    }

    .deploy-modal-body {
        padding: 16px;
    }
}

.options-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #a1a1aa;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deploy-option-card {
    background: #141418;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
}

.deploy-option-card:hover {
    border-color: rgba(199, 54, 47, 0.5);
    background: #18181e;
    transform: translateY(-2px);
}

.deploy-option-card.selected {
    border-color: #C7362F;
    background: rgba(199, 54, 47, 0.08);
    box-shadow: 0 8px 30px rgba(199, 54, 47, 0.2);
}

.option-radio-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #52525b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.deploy-option-card.selected .option-radio-icon {
    border-color: #C7362F;
    background: #C7362F;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(199, 54, 47, 0.6);
}

.option-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.option-details h6 {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.option-details p {
    font-size: 13px;
    color: #a1a1aa;
    margin: 0;
    line-height: 1.5;
}

.badge-tier {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-free {
    background: rgba(199, 54, 47, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(199, 54, 47, 0.3);
}

.badge-pro {
    background: rgba(199, 54, 47, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(199, 54, 47, 0.3);
}

.subdomain-input-group {
    margin-top: 16px;
    display: flex;
    align-items: center;
    background: #09090c;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    gap: 10px;
    transition: all 0.2s ease;
}

.subdomain-input-group:focus-within {
    border-color: #C7362F;
    box-shadow: 0 0 15px rgba(199, 54, 47, 0.35);
}

.subdomain-input-icon {
    color: #71717a;
    font-size: 14px;
}

.subdomain-input-group input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    flex: 1;
}

.subdomain-suffix {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 13px;
    background: rgba(199, 54, 47, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(199, 54, 47, 0.2);
}

/* Right Billing Panel */
.deploy-billing-right {
    background: #141418;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.billing-cycle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.billing-cycle-title {
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
}

.billing-status-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(199, 54, 47, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(199, 54, 47, 0.3);
}

.cycle-option {
    background: #0a0a0d;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cycle-option:hover {
    border-color: rgba(199, 54, 47, 0.4);
}

.cycle-option.selected {
    border-color: #C7362F;
    background: rgba(199, 54, 47, 0.08);
    box-shadow: 0 4px 20px rgba(199, 54, 47, 0.2);
}

.price-text {
    font-weight: 800;
    color: #ffffff;
    font-size: 16px;
}

.save-badge {
    background: #C7362F;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 99px;
    margin-left: 6px;
}

.summary-box {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #a1a1aa;
    padding: 6px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    padding: 14px 0 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.total-amount {
    font-size: 18px;
    font-weight: 900;
    color: #ff6b6b;
}

.total-amount.pro-total {
    color: #ff6b6b;
}

.modal-action-btn {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    border: none;
    cursor: pointer;
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

.modal-action-btn.btn-free {
    background: linear-gradient(135deg, #C7362F 0%, #991B1B 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(199, 54, 47, 0.35);
}

.modal-action-btn.btn-free:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(199, 54, 47, 0.5);
    background: linear-gradient(135deg, #e63934 0%, #C7362F 100%);
}

.modal-action-btn.btn-pro {
    background: var(--hi-gradient-red);
    color: #ffffff;
    box-shadow: 0 6px 25px rgba(199, 54, 47, 0.5);
}

.modal-action-btn.btn-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(199, 54, 47, 0.7);
    background: linear-gradient(135deg, #e63934 0%, #ff6666 100%);
}

/* User Account Dashboard */
.my-sites-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.sites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.site-account-card {
    background: #121215;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-account-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(199, 54, 47, 0.4);
}

.site-card-preview {
    height: 180px;
    background: #09090b;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-card-preview iframe {
    width: 1200px;
    height: 800px;
    transform: scale(0.24);
    transform-origin: top left;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}

.site-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.status-free {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-pro {
    background: rgba(199, 54, 47, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(199, 54, 47, 0.4);
}

.site-card-body {
    padding: 20px;
}

.site-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.site-card-domain {
    font-size: 13px;
    color: #ff6b6b;
    text-decoration: none;
    display: block;
    margin-bottom: 16px;
}

.site-card-actions {
    display: flex;
    gap: 10px;
}

.btn-card-action {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-card-edit {
    background: #C7362F;
    color: #ffffff;
}

.btn-card-view {
    background: #27272a;
    color: #ffffff;
}