:root {
    /* Dark Theme (Default) */
    --bg-dark: #000000;
    --bg-panel: rgba(28, 28, 30, 0.8);
    --bg-card: rgba(44, 44, 46, 0.6);
    --accent: #0A84FF;
    --accent-hover: #0077EA;
    --text-main: #FFFFFF;
    --text-muted: #8E8E93;
    --border: rgba(255, 255, 255, 0.1);
    --slider-track: rgba(255, 255, 255, 0.1);
    --slider-thumb-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    --card-bg: rgba(255, 255, 255, 0.05);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    --font-main: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    /* Разрешаем скролл на десктопе */
    font-family: var(--font-main);
    background: url('../img/bg_texture.jpg') center/cover;
    /* Clean, tech-noir background */
    color: var(--text-main);
}

#app {
    display: grid;
    grid-template-columns: 1fr 400px;
    /* Main Area | Sidebar */
    height: 100vh;
    background-color: var(--bg-dark);
}


/* Sidebar */
.summary-panel {
    background-color: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 30px;
    z-index: 20;
    height: 100vh;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.theme-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    width: 44px;
    height: 32px;
    opacity: 1 !important;
    z-index: 1000 !important;
    position: relative;
    font-size: 0;
}

.theme-toggle:hover {
    opacity: 1;
}

.toggle-track {
    display: block !important;
    width: 36px !important;
    height: 18px !important;
    min-width: 36px !important;
    min-height: 18px !important;
    background: #444446 !important;
    border-radius: 20px !important;
    position: relative !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1001 !important;
}

.toggle-knob {
    display: block !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    background: #FFFFFF !important;
    border-radius: 50% !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1002 !important;
}

/* Состояние в светлой теме (управляется через JS) */
.theme-toggle.is-light .toggle-track {
    background: var(--accent);
    border-color: rgba(0, 0, 0, 0.05);
}

.theme-toggle.is-light .toggle-knob {
    transform: translateX(18px);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-symbol {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    font-weight: 700;
    border-radius: 8px;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(10, 132, 255, 0.3);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo-text span {
    color: var(--accent);
}

.live-status {
    font-size: 12px;
    color: #30D158;
    /* iOS Green */
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #30D158;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(48, 209, 88, 0.6);
    position: relative;
    animation: status-pulse-dark 2s infinite;
}

@keyframes status-pulse-dark {
    0% {
        box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(48, 209, 88, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(48, 209, 88, 0);
    }
}

.summary-content {
    flex-grow: 1;
    overflow-y: auto;
}

.contact-widget {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.phone-link {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.phone-link:hover {
    color: var(--accent);
}

.work-time {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    /* Space for scrollbar */
    margin-right: -10px;
}

.summary-content::-webkit-scrollbar {
    width: 4px;
}

.summary-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.summary-content h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    border-bottom: 1px solid var(--border);
}

.summary-row .summary-item {
    border-bottom: none !important;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

.summary-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.summary-item .label {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item .value {
    font-weight: 600;
    color: var(--text-main);
    word-break: break-word;
    /* Crucial for long entrance lists */
    line-height: 1.4;
}

.summary-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    padding-top: 20px;
}

.legal-mini {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
}

.legal-info {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    line-height: 1.4;
    text-align: center;
}

.legal-info a {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}

.total-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.total-price {
    font-size: 36px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent);
    white-space: nowrap;
    line-height: 1;
}

.summary-total {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* Hide sidebar button on desktop to avoid duplication with final step button */
@media (min-width: 901px) {
    #btn-submit-config {
        display: none !important;
    }

    .summary-total {
        margin-top: auto;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        text-align: center;
    }
}

/* Promo Step Styles - Redesign */
/* --- NEW CLEAN LAYOUT (FIX) --- */
.promo-clean-layout {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Еще меньше с 30px */
    padding: 0 10px;
    text-align: center;
}

.promo-header {
    max-width: 800px;
    margin: 0 auto;
}

.promo-benefits-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    /* Уменьшено с 24px */
    width: 100%;
}

.promo-actions-centered {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.promo-cta-box {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.03);
    padding: 24px 32px;
    border-radius: 32px;
    border: none;
    backdrop-filter: blur(20px);
}

.benefit-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Чуть заметнее граница по умолчанию */
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    /* Увеличено с 20px */
    border-radius: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    text-align: left !important;
    height: 100%;
    backface-visibility: hidden;
    will-change: transform;
}

.premium-cta {
    height: 60px !important;
    /* Уменьшено с 72px */
    font-size: 18px !important;
    /* Уменьшено с 20px */
    border-radius: 16px !important;
    background: var(--accent) !important;
    box-shadow: 0 10px 30px rgba(10, 132, 255, 0.4) !important;
    transition: transform 0.3s ease !important;
}

.premium-cta:hover {
    transform: translateY(-5px);
    background: var(--accent-hover) !important;
}

.promo-title {
    font-size: 28px;
    /* Уменьшено с 32px */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-subtitle {
    font-size: 15px;
    /* Уменьшено с 16px */
    color: var(--text-muted);
    margin-bottom: 24px;
    /* Уменьшено с 48px */
    line-height: 1.5;
}

.promo-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, rgba(10, 132, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(10, 132, 255, 0.4);
    transform: translateY(-4px);
    /* Чуть меньше смещение для стабильности */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon {
    font-size: 28px;
    /* Увеличено с 24px */
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(10, 132, 255, 0.3));
}

.benefit-title {
    font-size: 16px;
    /* Вернул 16px вместо 14px */
    font-weight: 700;
    margin-bottom: 10px;
    /* Вернул 10px вместо 6px */
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.benefit-desc {
    font-size: 14px;
    /* Вернул 14px вместо 12px */
    color: var(--text-muted);
    line-height: 1.5;
}

.promo-action-card {
    background: rgba(28, 28, 30, 0.4);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 48px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.promo-action-card .mobile-order-summary {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 40px !important;
    width: 100%;
    text-align: left;
}

.promo-action-card .spec-title {
    font-size: 13px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin-bottom: 24px !important;
    opacity: 0.5;
}

.promo-action-card .spec-item {
    margin-bottom: 12px;
}

.promo-action-card .spec-price {
    font-size: 40px !important;
    margin-top: 10px;
    display: block;
    text-align: center;
    width: 100%;
}

.promo-action-card .btn-main {
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(10, 132, 255, 0.4);
    height: 64px !important;
    width: 100%;
}

.secondary-cta-text {
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.4;
}

@media (max-width: 900px) {
    .promo-step-layout {
        display: block;
        margin: 20px 0;
    }

    .promo-content {
        display: none;
        /* Hide promo on mobile to keep it simple */
    }
}

/* Buttons */
.btn-main {
    width: 100%;
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 18px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

.btn-main:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 132, 255, 0.4);
}

.btn-main:active {
    transform: translateY(0);
}

.btn-main:disabled {
    background-color: #3A3A3C;
    color: #636366;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Final Step */
.final-step-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.mobile-order-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: var(--shadow);
}

/* Hide on desktop */
@media (min-width: 901px) {
    .mobile-order-summary {
        display: none;
    }
}

.spec-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-main);
}

.spec-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.spec-label {
    color: var(--text-muted);
}

.spec-value {
    font-weight: 600;
    color: var(--text-main);
}

.spec-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.spec-total {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 12px;
    gap: 12px;
}

.spec-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    line-height: 1;
}

.spec-label {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.2;
}

.final-description {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Main Area */
.configurator-area {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100%;
    background-color: var(--bg-dark);
}

.app-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/bg_texture.jpg') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.app-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
}

.configurator-content {
    overflow-y: auto;
    padding: 30px 40px 10px;
    position: relative;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.configurator-content::-webkit-scrollbar {
    width: 6px;
}

.configurator-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.progress-indicator {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--accent), #5E5CE6);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    letter-spacing: -0.5px;
    text-align: center;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.selection-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 260px;
    /* Fixed height for consistent look */
    position: relative;
    /* Context for absolute children */
    box-shadow: var(--shadow);
}

.selection-card:hover {
    background: var(--bg-card);
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.selection-card.selected {
    background: var(--bg-card);
    border: 2px solid var(--accent) !important;
    box-shadow: 0 0 20px rgba(10, 132, 255, 0.2);
}

.card-image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.selection-card:hover .card-image {
    transform: scale(1.1);
}

.card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

.mobile-header {
    display: none;
}

.mobile-legal-footer {
    display: none;
}

/* --- Layout & Sections --- */
.complex-step-row {
    margin-bottom: 24px;
}

.parameter-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.parameter-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.range-display {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
}

/* Range Slider Enhanced with Progress */
.range-wrapper {
    position: relative;
    padding: 10px 0;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--slider-track);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background: #FFFFFF;
    margin-top: -11px;
    box-shadow: var(--slider-thumb-shadow), 0 0 0 3px var(--accent);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    border: none;
    z-index: 2;
}

input[type=range]:active::-webkit-slider-thumb {
    transform: scale(1.15);
}

input[type=range]::-moz-range-thumb {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background: #FFFFFF;
    border: none;
    box-shadow: var(--slider-thumb-shadow), 0 0 0 3px var(--accent);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

input[type=range]:active::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(10, 132, 255, 0.8), 0 0 0 6px var(--accent);
}

/* Nav */
.navigation-controls {
    position: relative;
    padding: 12px 40px;
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    z-index: 100;
}

.primary-nav {
    background: var(--accent) !important;
    color: white !important;
    padding: 12px 32px !important;
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

.primary-nav:hover {
    background: var(--accent-hover) !important;
}

.nav-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: var(--bg-card);
    color: var(--text-main);
}

.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-card {
    background: var(--bg-panel);
    padding: 60px;
    border-radius: 32px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.modal-card h2 {
    font-size: 36px;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.modal-card input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    font-size: 18px;
    transition: border-color 0.2s;
}

.modal-card input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    margin-top: 24px;
    font-size: 14px;
    cursor: pointer;
}

.consent-block {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    text-align: left;
    font-size: 12px;
    color: var(--text-muted);
}

.consent-block input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.consent-block label {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    cursor: pointer;
}

.consent-block label a {
    color: var(--accent);
    text-decoration: none;
    pointer-events: none;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.color-swatch {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    box-shadow: var(--shadow);
}

.color-swatch:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.color-swatch.selected {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px rgba(10, 132, 255, 0.2);
}

.swatch-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.swatch-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.swatch-label {
    font-size: 14px;
    font-weight: 700;
}

.swatch-name {
    font-size: 11px;
    color: var(--text-muted);
}

/* Entrance Manager */
.entrance-manager {
    max-width: 800px;
    margin: 0 auto;
}

.entrance-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.entrance-item {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

.entrance-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
}

.entrance-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.entrance-icon svg {
    width: 100%;
    height: 100%;
}

.btn-remove {
    background: rgba(255, 69, 58, 0.1);
    color: var(--danger);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 18px;
}

.btn-remove:hover {
    background: var(--danger);
    color: white;
}

.entrance-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.btn-add-option {
    background: rgba(10, 132, 255, 0.05);
    border: 1px solid rgba(10, 132, 255, 0.2);
    color: var(--text-main);
    padding: 24px 16px;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-add-option:hover {
    background: rgba(10, 132, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.add-option-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
}

.add-option-icon svg {
    width: 100%;
    height: 100%;
}

.add-option-label {
    font-size: 14px;
    font-weight: 600;
}

/* Pills Selector */
.pills-grid {
    display: flex;
    gap: 10px;
    margin: 10px 0 25px;
}

.pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.pill:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pill.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Media & Wishes */
.wishes-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.wishes-container textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(28, 28, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 16px;
    color: var(--text-main);
    font-size: 15px;
    font-family: var(--font-main);
    resize: vertical;
    transition: all 0.3s;
}

.wishes-container textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(28, 28, 30, 0.8);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.media-upload-area {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.media-upload-area:hover {
    background: rgba(10, 132, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 5px;
}

.upload-icon svg {
    width: 100%;
    height: 100%;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.upload-hint {
    font-size: 13px;
    color: var(--text-muted);
}

.file-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.file-preview {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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


/* Final Step Desktop Centering (FIX) */
@media (min-width: 901px) {
    .final-step-container.final-step-desktop-fix {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: auto !important;
        padding: 40px !important;
        /* Увеличил обратно для десктопа */
        box-sizing: border-box !important;
    }
}

/* ========================================
   MOBILE RESPONSIVE - COMPLETE REWRITE
   ======================================== */
@media (max-width: 900px) {

    /* === LAYOUT === */
    #app {
        grid-template-columns: 1fr;
        height: 100vh;
        overflow: hidden;
    }

    /* === MOBILE HEADER === */
    .mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: var(--bg-panel);
        z-index: 1200;
        padding: 12px 16px;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-header .logo-wrapper {
        transform: scale(0.85);
        transform-origin: left center;
        margin-bottom: 0 !important;
    }

    .mobile-header .logo-symbol {
        width: 28px !important;
        height: 28px !important;
        font-size: 16px !important;
    }

    .mobile-header .logo-text {
        font-size: 16px !important;
    }

    .mobile-phone-link {
        font-size: 13px;
        color: var(--accent);
        text-decoration: none;
        font-weight: 600;
    }

    /* === HIDE DESKTOP SIDEBAR === */
    .summary-panel {
        display: none !important;
    }

    /* === CONFIGURATOR AREA === */
    .configurator-area {
        padding-top: 56px !important;
        padding-bottom: 76px !important;
        height: 100%;
        overflow-y: auto;
    }

    .configurator-content {
        padding: 0 16px;
    }

    /* === PROGRESS BAR AT BOTTOM ON MOBILE === */
    .progress-indicator {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        z-index: 1100 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        height: 4px !important;
        border: none !important;
    }

    .progress-fill {
        height: 6px !important;
    }

    /* === TYPOGRAPHY === */
    .question-title {
        font-size: 20px !important;
        margin-bottom: 20px !important;
        text-align: center;
        padding: 0 10px;
    }

    /* Hide title on final step as requested */
    /* Hide title on final step for both mobile and desktop specifically */
    .configurator-content:has(.final-step-container) .question-title,
    .question-container:has(.final-step-container) .question-title {
        display: none !important;
    }

    /* Final Step Mobile Layout */
    .final-step-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        width: 100% !important;
        padding: 24px 0 !important;
    }

    .final-description {
        text-align: center !important;
        font-size: 15px !important;
        line-height: 1.4 !important;
        color: var(--text-muted) !important;
        margin-bottom: 12px !important;
        max-width: 320px !important;
    }

    .final-step-container .mobile-order-summary {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 12px !important;
        box-sizing: border-box !important;
    }



    /* === CARDS GRID === */
    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .selection-card {
        border-radius: 16px !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2) !important;
        height: 220px !important;
        /* Compact height for mobile */
    }

    .card-image-wrapper {
        height: 100% !important;
        /* Full coverage */
    }

    .card-body {
        padding: 16px !important;
        /* Ensure gradient background is visible if overridden, but global style should apply. 
           If 'background' was set here previously, remove it. It wasn't. */
    }

    .card-title {
        font-size: 18px !important;
        margin-bottom: 6px !important;
    }

    .card-desc {
        font-size: 13px !important;
        line-height: 1.4 !important;
        opacity: 0.8;
    }

    /* === STEP 2 PARAMETERS - CLEAN DESIGN === */
    .complex-step {
        max-width: 100% !important;
    }

    .complex-step-row {
        margin-bottom: 36px !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .parameter-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 20px !important;
    }

    .parameter-label {
        font-size: 11px !important;
        text-transform: uppercase;
        letter-spacing: 2px !important;
        margin-bottom: 0 !important;
        opacity: 0.5 !important;
        font-weight: 600 !important;
    }

    .range-display {
        font-size: 24px !important;
        font-weight: 700 !important;
        color: var(--accent) !important;
        font-family: var(--font-mono) !important;
    }

    /* Premium Slider Design */
    .range-wrapper {
        margin-top: 24px !important;
        padding: 0 4px !important;
    }

    .range-wrapper input[type="range"] {
        background: var(--slider-track) !important;
    }

    .range-wrapper input[type="range"]::-webkit-slider-thumb {
        background: #FFFFFF !important;
        border: none !important;
        box-shadow: var(--slider-thumb-shadow), 0 0 0 3px var(--accent) !important;
    }

    .range-wrapper input[type="range"]::-moz-range-thumb {
        background: #FFFFFF !important;
        border: none !important;
        box-shadow: var(--slider-thumb-shadow), 0 0 0 3px var(--accent) !important;
    }

    .pills-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px !important;
    }

    .pill {
        padding: 14px 8px !important;
        font-size: 15px !important;
        min-height: 50px !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* === RAL COLORS === */
    .color-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .color-swatch {
        padding: 12px !important;
        min-height: 56px !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .swatch-circle {
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0;
    }

    .swatch-label {
        font-size: 15px !important;
        font-weight: 600 !important;
    }

    .swatch-name {
        font-size: 12px !important;
        opacity: 0.7;
    }

    /* === BOTTOM NAVIGATION === */
    .fixed-nav {
        position: fixed !important;
        bottom: 12px !important;
        left: 14px !important;
        right: 14px !important;
        background: var(--bg-panel) !important;
        backdrop-filter: blur(20px);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 5px 10px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        z-index: 1000 !important;
        overflow: hidden !important;
        padding-bottom: calc(5px + env(safe-area-inset-bottom, 0px)) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    }

    .nav-btn {
        height: 40px !important;
        padding: 0 16px !important;
        font-size: 13px !important;
        flex: 1;
        border-radius: 12px !important;
    }

    #btn-back {
        max-width: 80px;
        background: var(--border) !important;
    }

    .step-counter {
        min-width: 50px;
        text-align: center;
        font-size: 12px;
        opacity: 0.6;
    }

    /* === MOBILE FOOTER === */
    .mobile-legal-footer {
        display: block;
        padding: 40px 0 60px;
        text-align: center;
        border-top: 1px solid var(--border);
        margin-top: 40px;
    }

    .mobile-legal-footer .legal-info {
        display: block !important;
        font-size: 11px;
        color: var(--text-muted);
        line-height: 1.6;
    }

    /* === MODALS === */
    .modal-card {
        width: 90% !important;
        padding: 24px !important;
    }

    /* === ENTRANCE MANAGER === */
    .entrance-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .btn-add-option {
        flex-direction: row !important;
        padding: 16px !important;
        text-align: left !important;
        min-height: 64px !important;
        border-radius: 12px !important;
    }

    .add-option-icon {
        width: 40px !important;
        height: 40px !important;
        margin: 0 16px 0 0 !important;
        flex-shrink: 0 !important;
    }

    .add-option-label {
        font-size: 16px !important;
        font-weight: 600 !important;
    }

    /* Visual separator between gates and wicket */
    .btn-add-option:last-child {
        margin-top: 8px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-top: 24px !important;
    }
}

/* --- Refactoring Utility Classes (New) --- */
.header-controls {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 15px;
}

.sidebar-header-controls {
    display: flex;
    align-items: center;
}

/* Modal Success State */
.modal-success {
    text-align: center;
    padding: 40px 20px;
}

.modal-success-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.modal-success-title {
    margin-bottom: 16px;
}

.modal-success-desc {
    color: var(--text-muted);
    font-size: 16px;
}

.modal-success-btn {
    margin-top: 30px;
}

/* Error State */
.error-message {
    color: #FF453A;
    text-align: center;
    padding: 20px;
}

.hidden {
    display: none !important;
}

/* --- LANDING PAGE STYLES (PREMIUM) --- */
.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #050505;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth iOS scroll */
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.landing-page.hidden {
    opacity: 0;
    transform: translateY(-20px) scale(1.02);
    /* Slight lift effect */
    pointer-events: none;
}

.landing-background {
    position: fixed;
    /* Fixed so it stays during scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/bg_texture.jpg') center/cover;
    opacity: 0.2;
    z-index: 0;
}

.landing-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(10, 132, 255, 0.08) 0%, rgba(0, 0, 0, 0) 50%),
        radial-gradient(circle at 70% 80%, rgba(10, 132, 255, 0.05) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.landing-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    min-height: 100%;
    /* Allow growth */
    display: flex;
    flex-direction: column;
    padding: 20px 20px 40px;
    /* Reduced padding for mobile safety */
    box-sizing: border-box;
    /* Removed justify-content: center */
}

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 40px;
}

.landing-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.landing-phone a {
    color: #FFFFFF !important;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.landing-phone a:hover {
    opacity: 0.8;
}

.landing-worktime {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* --- SPLIT LAYOUT --- */
.landing-main-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex: 1;
    gap: 60px;
    margin: auto 0;
    /* Vertically center if space allows */
}

@media (min-width: 768px) {
    .landing-content {
        padding: 40px 60px;
        /* Restore desktop padding */
    }
}

.landing-col-text {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.landing-col-visual {
    flex: 1;
    display: flex;
    display: flex;
    justify-content: center;
}

/* Typography & Elements */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.trust-badge .stars {
    color: #FFD700;
    letter-spacing: 2px;
}

.trust-badge .trust-text {
    font-size: 13px;
    color: #FFFFFF !important;
    /* Hardcoded white for dark bg */
    font-weight: 500;
}

.landing-col-text h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 24px;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property */
    -webkit-text-fill-color: transparent !important;
    /* Override light theme */
    animation: fadeInUp 0.8s ease backwards 0.1s;
}

.landing-col-text h1 span {
    background: linear-gradient(90deg, #0A84FF 0%, #5E5CE6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property */
    -webkit-text-fill-color: transparent !important;
    /* Override light theme */
}

.landing-subtitle {
    font-size: 20px;
    color: #8E8E93 !important;
    /* Hardcoded light grey */
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 480px;
    animation: fadeInUp 0.8s ease backwards 0.2s;
}

.landing-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease backwards 0.3s;
}

.landing-actions .btn-main {
    width: auto;
    max-width: 280px;
    padding: 22px 40px;
    font-size: 18px;
    border-radius: 16px;
}

.secondary-info {
    font-size: 14px;
    color: #30D158;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Features Mini-Grid */
.landing-features-row {
    display: flex;
    gap: 40px;
    /* Increased gap */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    animation: fadeInUp 0.8s ease backwards 0.4s;
}

.feature-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF !important;
    /* Hardcoded white */
    font-size: 15px;
    /* Slightly larger */
    font-weight: 500;
    line-height: 1.3;
}

.feature-mini .f-icon {
    font-size: 24px;
    /* Larger icon */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.landing-footer-mobile {
    display: none;
    /* Hide on desktop */
}

/* --- VISUAL STYLES --- */

/* --- VISUAL STYLES --- */
.visual-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 650px;
    animation: float-slow 6s ease-in-out infinite;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: rgba(28, 28, 30, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.floating-badge:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.badge-1 {
    top: 10%;
    right: -20px;
    animation: float-delayed 5s ease-in-out infinite;
}

.badge-2 {
    bottom: 15%;
    left: -20px;
    animation: float-delayed 7s ease-in-out infinite 0.5s;
}

.fb-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.fb-text {
    display: flex;
    flex-direction: column;
}

.fb-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.fb-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes float-delayed {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
    .landing-content {
        padding: 20px;
    }

    .landing-main-split {
        flex-direction: column-reverse;
        /* Image on top, Text below? Or Top Text? */
        /* Better: Text Top, Image Between. But usually Text first on mobile for conversion. */
        flex-direction: column;
        gap: 40px;
        justify-content: flex-start;
    }

    .landing-col-text {
        text-align: center;
        max-width: 100%;
    }

    .trust-badge {
        margin: 0 auto 20px;
    }

    .landing-col-text h1 {
        font-size: 42px;
    }

    .landing-subtitle {
        margin: 0 auto 30px;
    }

    .landing-actions {
        align-items: center;
    }

    .landing-features-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .visual-card-wrapper {
        max-width: 100%;
    }

    .badge-1 {
        right: 0;
        top: -10px;
    }

    .badge-2 {
        left: 0;
        bottom: -10px;
    }

    .landing-header {
        margin-bottom: 20px;
    }

    .landing-phone a {
        font-size: 18px !important;
        /* Smaller phone on mobile */
    }

    .landing-worktime {
        font-size: 11px;
    }
}

/* --- APP TRANSITIONS (Fixed White Edges & Mobile Nav) --- */
#app {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    opacity: 1;
    transform: none;
    /* Was scale(1), but that breaks position:fixed children */
    width: 100%;
}

.app-hidden {
    opacity: 0 !important;
    transform: scale(1.05) !important;
    /* Slightly larger start */
    pointer-events: none;
    overflow: hidden;
    height: 0 !important;
    position: absolute;
    top: 0;
    left: 0;
}

/* --- FORCE DARK LANDING PAGE (Override Light Theme) --- */
#landing-page {
    color: #FFFFFF !important;
    -webkit-text-fill-color: initial !important;
    /* Reset default fill */
}

#landing-page .logo-text,
#landing-page .logo-symbol,
#landing-page .trust-text,
#landing-page .feature-mini,
#landing-page .landing-phone a,
#landing-page .landing-worktime {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

#landing-page .landing-subtitle {
    color: #8E8E93 !important;
    /* Restore grey */
    -webkit-text-fill-color: #8E8E93 !important;
}

#landing-page h1 {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    /* Keep gradient */
}

#landing-page .logo-text span {
    color: #0A84FF !important;
    /* Restore accent */
    -webkit-text-fill-color: #0A84FF !important;
}

/* --- LEGAL PAGES & MODAL --- */
.legal-links-row {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
    /* Center align links */
}

.legal-link {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
    transition: color 0.2s;
}

.legal-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.legal-modal-card {
    max-width: 600px;
    width: 90%;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    /* Ensure it fits on screen */
}

.legal-modal-card .modal-body {
    overflow-y: auto;
    flex: 1;
    padding-right: 10px;
    /* Space for scrollbar */
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
}

.legal-modal-card .modal-body p {
    margin-bottom: 1em;
}

.legal-modal-card .modal-body strong {
    color: var(--text-main);
    display: block;
    margin-top: 1em;
    margin-bottom: 0.5em;
}
/* --- LEGAL MODAL FIXES --- */
.legal-modal-card .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.legal-modal-card .modal-title {
    text-align: left;
    margin: 0;
    flex: 1; /* Push close button to right */
}

.legal-modal-card .btn-close {
    margin: 0;
    position: static; /* Reset if absolute */
}

.legal-modal-card .modal-body {
    text-align: left; /* Fix centered text */
}

/* Increase Legal Modal Z-Index to overlap Landing Page (9999) */
#legal-modal {
    z-index: 100001 !important; /* Above everything */
}

/* --- LEGAL DOCUMENT LINKS --- */
.legal-modal-card .modal-body a {
    color: var(--accent); /* Make them distinct (blue) by default, or muted? User asked for "like footer". Footer is muted. But inside text, blue is better for visibility. User said "links in text ... like links to these pages". Footer links are grey. */
    /* Wait, user said "links are blue/purple now... want SAME styles as links to these pages". */
    /* Footer links are var(--text-muted) (grey). */
    /* If I make body links grey, they might be hard to see? */
    /* But user asked for it. I will use var(--accent) for body links to be readable but styled nicely, OR matches footer.
       Let's re-read: "add links in text agreements/policy same styles as links TO these pages".
       Links TO these pages are .legal-link (grey, dotted).
       I will use exactly that style. */
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4); /* Slightly improved visibility */
    transition: color 0.2s, border-color 0.2s;
}

.legal-modal-card .modal-body a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* --- CONSENT FORM LINK STYLE --- */
.consent-block a {
    color: var(--text-muted) !important; /* Force grey */
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
    transition: color 0.2s, border-color 0.2s;
}

.consent-block a:hover {
    color: var(--accent) !important;
    border-bottom-color: var(--accent);
}
