/* Лендинг: один экран на телефоне, шит «подробнее», без скролла страницы. */

/* Превью продукта в #productDetail: арт + prev/next */
html[data-theme] .product-detail-panel {
    max-height: min(86vh, 720px);
}
html[data-theme] .product-detail-close {
    z-index: 3;
}
html[data-theme] .product-detail-art {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    height: 200px;
    margin: 0 0 16px;
    border-radius: 16px;
    background:
        radial-gradient(ellipse at 20% 40%, rgba(168, 85, 247, 0.28), transparent 58%),
        radial-gradient(ellipse at 80% 70%, rgba(124, 92, 252, 0.2), transparent 55%),
        #0b1020;
    touch-action: pan-x;
}
html[data-theme] #productDetailArt {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    touch-action: none;
}
html[data-theme] #productDetailArt:not([src]) {
    opacity: 0;
}
html[data-theme] .product-detail-art #productDetailArt {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    transform-origin: center center;
    will-change: transform;
}
html[data-theme] .product-detail-art.is-playing #productDetailArt {
    animation: productArtKen 22s ease-in-out infinite alternate;
}
html[data-theme] .product-detail-art::after {
    content: "";
    position: absolute;
    inset: -30%;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 28%, rgba(192, 132, 252, 0.2), transparent 68%),
        linear-gradient(to top, rgba(18, 24, 42, 0.45), transparent 42%);
    opacity: 0.7;
}
html[data-theme] .product-detail-art.is-playing::after {
    animation: productArtDrift 16s ease-in-out infinite alternate;
}
html[data-theme] .product-detail-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(10, 14, 26, 0.48);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    box-shadow: none;
}
html[data-theme] .product-detail-prev {
    left: 10px;
}
html[data-theme] .product-detail-next {
    right: 10px;
}
html[data-theme] .product-detail-nav::before {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    display: block;
}
html[data-theme] .product-detail-prev::before {
    transform: rotate(-135deg);
    margin-left: 3px;
}
html[data-theme] .product-detail-next::before {
    transform: rotate(45deg);
    margin-right: 3px;
}
html[data-theme] .product-detail-nav:hover {
    background: rgba(124, 92, 252, 0.42);
    border-color: rgba(216, 180, 254, 0.45);
}
html[data-theme] .product-detail-nav:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}
html[data-theme="light"] .product-detail-art {
    background:
        radial-gradient(ellipse at 20% 40%, rgba(124, 92, 252, 0.2), transparent 58%),
        #eef2ff;
}
html[data-theme="light"] .product-detail-art::after {
    background:
        linear-gradient(115deg, transparent 28%, rgba(139, 92, 246, 0.16), transparent 68%),
        linear-gradient(to top, rgba(255, 255, 255, 0.35), transparent 42%);
}
html[data-theme="light"] .product-detail-nav {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

@keyframes productArtKen {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-2.2%, 1.6%); }
}
@keyframes productArtDrift {
    0% { transform: translate(-6%, 2%) rotate(0deg); opacity: 0.55; }
    100% { transform: translate(8%, -5%) rotate(7deg); opacity: 0.88; }
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme] .product-detail-art.is-playing #productDetailArt,
    html[data-theme] .product-detail-art.is-playing::after {
        animation: none;
    }
}


@media (max-width: 768px) {
    html,
    body,
    .page {
        height: 100dvh;
        overflow: hidden;
    }
    html[data-theme],
    html[data-theme] body,
    html[data-theme] .page {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        overflow-x: hidden;
        overflow-y: hidden;
    }
    html[data-theme] body {
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        overscroll-behavior: none;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    html[data-theme] .header {
        top: 8px;
        width: calc(100% - 16px);
        height: 48px;
        z-index: 100;
    }

    html[data-theme] .main {
        display: flex;
        flex-direction: column;
        flex: 1 1 0;
        flex-wrap: nowrap;
        width: 100%;
        min-height: 0;
        height: auto;
        margin-top: 64px;
        padding: 0;
        overflow: hidden;
    }

    html[data-theme] .hero-section {
        flex: 1 1 38%;
        min-height: 0;
        max-height: 42%;
        padding: 0;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    html[data-theme] .hero-content {
        padding: 8px 12px;
        max-width: 100%;
        max-height: 100%;
    }
    html[data-theme] .hero-content .brand {
        font-size: 28px;
        letter-spacing: 2px;
        margin-bottom: 2px;
    }
    html[data-theme] .hero-content .tagline {
        min-height: 0;
        margin-bottom: 4px;
        gap: 0;
    }
    html[data-theme] .hero-content .tagline .product {
        font-size: 18px;
        letter-spacing: 2px;
    }
    html[data-theme] .hero-content .tagline .product span {
        font-size: 20px;
    }
    html[data-theme] .hero-content .tagline .desc {
        font-size: 14px;
        min-height: 0;
        letter-spacing: 0.4px;
        line-height: 1.3;
    }
    html[data-theme] .hero-content .badge {
        margin-top: 8px;
        min-height: 44px;
        padding: 10px 22px;
        font-size: 15px;
        letter-spacing: 0.12em;
    }
    html[data-theme] .hero-slide {
        max-width: min(70%, 220px);
        max-height: 58%;
    }

    html[data-theme] .login-section {
        flex: 1 1 58%;
        min-height: 0;
        padding: 6px 12px 8px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
    }
    html[data-theme] .login-box {
        max-width: 100%;
        max-height: 100%;
        min-height: 0;
        width: 100%;
        padding: 14px 14px 12px;
        border-radius: 18px;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }
    html[data-theme] .auth-tabs {
        position: sticky;
        top: 0;
        z-index: 2;
        margin-bottom: 12px;
        background: var(--bg-input);
    }
    html[data-theme] .auth-tab {
        font-size: 14px;
        padding: 10px 0;
        min-height: 44px;
        min-width: 44px;
        box-sizing: border-box;
        touch-action: manipulation;
    }
    html[data-theme] .auth-form .form-group {
        margin-bottom: 10px;
    }
    html[data-theme] .auth-form .form-group > label,
    html[data-theme] .login-form .form-group > label {
        font-size: 15px;
        margin-bottom: 4px;
    }
    html[data-theme] .auth-form input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]),
    html[data-theme] .login-form input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]) {
        padding: 12px 14px;
        font-size: 16px;
        min-height: 44px;
        border-radius: 12px;
    }
    html[data-theme] .login-box label.remember-me {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        width: auto;
        min-height: 0;
        min-width: 0;
        margin: 0;
        padding: 0;
        font-size: 15px;
        font-weight: 400;
        text-transform: none;
        letter-spacing: 0;
    }
    html[data-theme] .login-box label.remember-me input[type="checkbox"] {
        width: 16px;
        height: 16px;
        min-width: 16px;
        min-height: 16px;
        max-width: 16px;
        max-height: 16px;
        margin: 0;
        padding: 0;
    }
    html[data-theme] .form-options {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
        margin: 0 0 12px;
        font-size: 15px;
    }
    html[data-theme] .login-btn {
        padding: 12px;
        font-size: 16px;
        min-height: 44px;
        border-radius: 12px;
    }

    html[data-theme] .footer {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        height: calc(44px + env(safe-area-inset-bottom, 0px));
        padding: 0 12px env(safe-area-inset-bottom, 0px);
        overflow: visible;
    }
    html[data-theme] .footer p {
        margin: 0;
        font-size: 16px;
        line-height: 1.2;
        letter-spacing: 1px;
    }

    /* Шит продукта: снизу, на весь экран по ширине */
    html[data-theme] #productDetail {
        align-items: flex-end;
        justify-content: stretch;
        padding: 0;
        background: rgba(8, 12, 24, 0.55);
    }
    html[data-theme] .product-detail-panel {
        max-width: none;
        width: 100%;
        max-height: min(88dvh, 100%);
        padding: 14px 18px calc(20px + env(safe-area-inset-bottom, 0px));
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
    }
    html[data-theme] .product-detail-panel::before {
        content: "";
        display: block;
        width: 36px;
        height: 4px;
        margin: 0 auto 12px;
        border-radius: 99px;
        background: rgba(148, 163, 184, 0.45);
    }
    html[data-theme] .product-detail-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
    }
    html[data-theme] .product-detail-title {
        font-size: 22px;
        padding-right: 44px;
        margin-bottom: 12px;
    }
    html[data-theme] .product-detail-about {
        font-size: 14px;
        touch-action: pan-y;
    }
    html[data-theme] .product-detail-art,
    html[data-theme] #productDetailArt {
        height: 148px;
        border-radius: 14px;
        margin-bottom: 12px;
    }
    html[data-theme] .product-detail-nav {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 768px) and (max-height: 700px) {
    html[data-theme] .header {
        top: 6px;
        height: 44px;
    }
    html[data-theme] .main {
        margin-top: 56px;
    }
    html[data-theme] .hero-section {
        flex-basis: 34%;
        max-height: 36%;
    }
    html[data-theme] .hero-content .brand {
        font-size: 22px;
        letter-spacing: 1px;
    }
    html[data-theme] .hero-content .tagline .product,
    html[data-theme] .hero-content .tagline .product span {
        font-size: 16px;
    }
    html[data-theme] .hero-content .badge {
        min-height: 44px;
        min-width: 44px;
        padding: 8px 18px;
        font-size: 14px;
        margin-top: 6px;
        box-sizing: border-box;
        touch-action: manipulation;
    }
    html[data-theme] .product-detail-art,
    html[data-theme] #productDetailArt {
        height: 120px;
    }
    html[data-theme] .login-box {
        padding: 10px 12px;
        border-radius: 16px;
    }
    html[data-theme] .auth-tabs {
        margin-bottom: 8px;
    }
    html[data-theme] .auth-tab {
        padding: 8px 0;
        min-height: 44px;
        min-width: 44px;
        font-size: 15px;
        box-sizing: border-box;
        touch-action: manipulation;
    }
    html[data-theme] .footer {
        height: calc(24px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    html[data-theme] .main {
        flex-direction: row;
        margin-top: 52px;
    }
    html[data-theme] .hero-section {
        flex: 1 1 46%;
        max-height: none;
    }
    html[data-theme] .login-section {
        flex: 1 1 54%;
        padding: 6px 10px 6px 6px;
    }
    html[data-theme] #productDetail {
        align-items: stretch;
        justify-content: flex-end;
    }
    html[data-theme] .product-detail-panel {
        width: min(420px, 100%);
        max-height: 100%;
        height: 100%;
        margin-left: auto;
        border-radius: 16px 0 0 16px;
        padding: 20px 18px 16px;
    }
    html[data-theme] .product-detail-panel::before {
        display: none;
    }
    html[data-theme] .product-detail-art,
    html[data-theme] #productDetailArt {
        height: 132px;
    }
}

html[data-theme="light"] .product-detail-panel::before {
    background: rgba(100, 116, 139, 0.45);
}

@media (hover: none) {
    html .hero-content .badge:hover {
        transform: none;
    }
    html[data-theme] .product-detail-close:hover {
        background: rgba(124, 92, 252, 0.16);
    }
    html[data-theme="light"] .product-detail-close:hover {
        background: rgba(91, 33, 182, 0.1);
    }
    html[data-theme] .product-detail-nav:hover {
        background: rgba(10, 14, 26, 0.48);
        border-color: rgba(255, 255, 255, 0.18);
    }
}

/* moved from landing.php inline — layout/hero/login chrome */
/* ===== БАЗА ===== */
        body {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            margin: 0;
        }
        .skip-to-auth {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
            left: 12px;
            top: 12px;
        }
.skip-to-auth:focus,
.skip-to-auth:focus-visible {
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    overflow: visible;
    white-space: normal;
    z-index: 400;
    min-height: 44px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    background: var(--accent-primary, #7c5cfc);
    color: #fff;
    border-radius: 10px;
    outline: none;
    text-decoration: none;
}
        .main {
            flex: 1;
            display: flex;
            flex-wrap: nowrap;
            width: 100%;
            margin-top: 80px;
        }

        /* ===== ГЕРОЙ ===== */
        .hero-section {
            position: relative;
            flex: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: var(--bg-hero);
            min-height: 0;
        }
        .hero-bg {
            position: absolute;
            inset: 0;
            z-index: 0;
            background: radial-gradient(ellipse at 20% 50%, rgba(124, 92, 252, 0.18) 0%, transparent 60%),
                        radial-gradient(ellipse at 80% 50%, rgba(168, 85, 247, 0.12) 0%, transparent 60%),
                        var(--bg-hero);
            animation: bgPulse 8s ease-in-out infinite alternate;
        }
        @keyframes bgPulse {
            0% { opacity: 0.8; }
            100% { opacity: 1; }
        }
        .hero-grid {
            position: absolute;
            inset: 0;
            z-index: 1;
            background-image:
                linear-gradient(rgba(124, 92, 252, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(124, 92, 252, 0.04) 1px, transparent 1px);
            background-size: 30px 30px;
            mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
            -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
            animation: gridFloat 15s ease-in-out infinite alternate;
        }
        @keyframes gridFloat {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(2px, 2px) scale(1.01); }
        }
        .hero-slides {
            position: absolute;
            inset: 0;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            overflow: hidden;
        }
        .hero-slide {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: min(88%, 560px);
            max-height: 82%;
            width: auto;
            height: auto;
            object-fit: contain;
            opacity: 0;
            transition: opacity 0.8s ease;
            pointer-events: none;
        }
        .hero-slide.is-active {
            opacity: 1;
        }

        /* ===== МАТРИЦА ===== */
        .hero-matrix {
            position: absolute;
            inset: 0;
            z-index: 1;
            pointer-events: none;
            overflow: hidden;
            font-family: 'Courier New', monospace;
            font-weight: 400;
            line-height: 1.3;
            letter-spacing: 1px;
            opacity: 0.6;
            font-size: 10px;
        }
        .hero-matrix .matrix-wrapper {
            position: absolute;
            inset: 0;
            overflow: hidden;
        }
        .hero-matrix .matrix-column {
            position: absolute;
            top: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
            animation: matrixFall var(--fall-duration, 20s) linear infinite;
            animation-delay: 0s;
            will-change: transform;
            white-space: nowrap;
        }
        .hero-matrix .matrix-column .char {
            display: block;
            opacity: 0.25;
            color: rgba(124, 92, 252, 0.3);
            font-size: var(--char-size, 10px);
            transition: none;
        }
        .hero-matrix .matrix-column .char.bright {
            opacity: 0.5;
            color: rgba(168, 85, 247, 0.4);
        }
        .hero-matrix .matrix-column .char.large {
            font-size: calc(var(--char-size, 10px) * 1.5);
        }
        @keyframes matrixFall {
            0% { transform: translateY(-100%); }
            100% { transform: translateY(0%); }
        }
        .hero-matrix::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(10, 14, 26, 0.15);
            backdrop-filter: blur(0.5px);
            pointer-events: none;
        }
        [data-theme="light"] .hero-matrix::after {
            background: rgba(255, 255, 255, 0.1);
        }

        /* ===== КОНТЕНТ ГЕРОЯ ===== */
        .hero-content {
            position: relative;
            z-index: 5;
            text-align: center;
            padding: 30px 20px;
            max-width: 750px;
            animation: heroFadeInUp 1.2s ease;
        }
        .hero-content .brand {
            display: inline-block;
            max-width: 92%;
            font-size: 46px;
            font-weight: 800;
            letter-spacing: 1px;
            color: #6D28D9;
            background: linear-gradient(135deg, #7C3AED, #6D28D9, #4C1D95);
            background-size: 300% 300%;
            animation: gradientFlow 6s ease-in-out infinite alternate;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        html[data-theme="dark"] .hero-content .brand {
            color: #C084FC;
            background: linear-gradient(135deg, #C084FC, #A855F7, #7C3AED);
            background-size: 300% 300%;
            -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
        .hero-content .tagline {
            min-height: 80px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            margin-bottom: 8px;
        }
        .hero-content .tagline .product {
            font-size: 42px;
            font-weight: 700;
            letter-spacing: 4px;
            color: var(--text-primary);
            transition: opacity 0.3s ease;
        }
        .hero-content .tagline .product span {
            display: inline-block;
            background: linear-gradient(135deg, #D8B4FE, #A855F7, #8B5CF6);
            background-size: 300% 300%;
            animation: gradientFlow 6s ease-in-out infinite alternate;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: 46px;
        }
        .hero-content .tagline .desc {
            font-size: 20px;
            color: var(--text-muted);
            letter-spacing: 1.5px;
            opacity: 0.85;
            min-height: 28px;
            font-weight: 300;
        }
        .hero-cta-row {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: center;
            justify-content: center;
            margin-top: 16px;
        }
        .hero-content .badge,
        .hero-auth-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-top: 0;
            min-height: 44px;
            min-width: 44px;
            padding: 8px 28px;
            background: #7c5cfc;
            border: 1px solid #7c5cfc;
            border-radius: 40px;
            color: #fff;
            font-size: 14px;
            letter-spacing: 2px;
            backdrop-filter: blur(4px);
            box-shadow: 0 0 30px rgba(124, 92, 252, 0.05);
            font-weight: 500;
            font-family: inherit;
            cursor: pointer;
            -webkit-appearance: none;
            appearance: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            box-sizing: border-box;
            transition: all 0.3s ease;
            text-decoration: none;
        }
        .hero-auth-cta {
            background: linear-gradient(135deg, var(--accent-primary, #7c5cfc), var(--accent-secondary, #a855f7));
            border-color: transparent;
            color: #fff;
        }
        .hero-content .badge:hover,
        .hero-auth-cta:hover {
            background: rgba(124, 92, 252, 0.2);
            border-color: rgba(124, 92, 252, 0.4);
            box-shadow: 0 0 50px rgba(124, 92, 252, 0.2);
            transform: scale(1.03);
        }
        .hero-auth-cta:hover {
            background: linear-gradient(135deg, var(--accent-secondary, #a855f7), var(--accent-primary, #7c5cfc));
            border-color: transparent;
            color: #fff;
        }
        .hero-content .badge:focus-visible,
        .hero-auth-cta:focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 3px;
        }

        /* ===== ПАНЕЛЬ О ПРОДУКТЕ ===== */
        #productDetail {
            position: fixed;
            inset: 0;
            z-index: 200;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px 16px;
            background: rgba(10, 14, 26, 0.72);
            backdrop-filter: blur(8px);
        }
        #productDetail[hidden] {
            display: none !important;
        }
        .product-detail-panel {
            position: relative;
            max-width: 560px;
            width: 100%;
            max-height: min(80vh, 640px);
            overflow: auto;
            padding: 36px 32px 28px;
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: 24px;
            box-shadow: var(--shadow-card);
            text-align: left;
        }
        .product-detail-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 44px;
            height: 44px;
            min-width: 44px;
            min-height: 44px;
            border: none;
            border-radius: 50%;
            background: rgba(124, 92, 252, 0.12);
            color: var(--text-primary);
            font-size: 22px;
            line-height: 1;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            touch-action: manipulation;
        }
        .product-detail-close:hover {
            background: rgba(124, 92, 252, 0.28);
        }
        .product-detail-close:focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 2px;
        }
        .product-detail-kicker {
            font-size: 14px;
            letter-spacing: 3px;
            font-weight: 600;
            color: var(--text-muted);
            margin-bottom: 6px;
        }
        .product-detail-title {
            margin: 0 0 16px;
            font-size: 28px;
            letter-spacing: 2px;
            font-weight: 700;
            background: linear-gradient(135deg, #D8B4FE, #A855F7, #8B5CF6);
            background-size: 300% 300%;
            animation: gradientFlow 6s ease-in-out infinite alternate;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .product-detail-about {
            color: var(--text-secondary);
            font-size: 15px;
            line-height: 1.55;
            font-weight: 400;
        }
        .product-detail-about p {
            margin: 0 0 12px;
        }
        .product-detail-about p:last-child {
            margin-bottom: 0;
        }
        .product-detail-about ul {
            margin: 0 0 12px;
            padding-left: 18px;
        }
        .product-detail-about li {
            margin-bottom: 6px;
        }
        @keyframes heroFadeInUp {
            from { opacity: 0; transform: translateY(30px) scale(0.96); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* ===== ПАНЕЛЬ — МИНИМАЛИСТИЧНАЯ, С ТАБАМИ ===== */
        .login-section {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .login-box {
            max-width: 400px;
            width: 100%;
            padding: 32px 28px;
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: 24px;
            box-shadow: var(--shadow-card);
            transition: all 0.4s ease;
        }

        /* Табы */
        .auth-tabs {
            display: flex;
            gap: 4px;
            margin-bottom: 28px;
            background: var(--bg-input);
            border-radius: 16px;
            padding: 4px;
        }
        .auth-tab {
            flex: 1;
            min-height: 44px;
            min-width: 44px;
            padding: 12px 0;
            text-align: center;
            font-size: 15px;
            font-weight: 500;
            color: var(--text-muted);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: transparent;
            border: none;
            font-family: inherit;
            letter-spacing: 0.3px;
            -webkit-appearance: none;
            appearance: none;
            touch-action: manipulation;
        }
        .auth-tab:hover {
            color: var(--text-primary);
        }
        .auth-tab:focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 2px;
        }
        .auth-tab.active {
            background: var(--accent-primary);
            color: #fff;
            box-shadow: 0 4px 20px var(--accent-glow);
        }
        [data-theme="light"] .auth-tab.active {
            box-shadow: 0 4px 20px rgba(124, 92, 252, 0.25);
        }

        /* Формы */
        .auth-form {
            display: none;
            animation: fadeInUp 0.3s ease;
        }
        .auth-form.active {
            display: block;
        }
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .auth-form .form-group {
            margin-bottom: 18px;
        }
        .auth-form .form-group > label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-secondary);
            margin-bottom: 6px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            opacity: 0.6;
        }
        .auth-form input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]) {
            width: 100%;
            min-height: 44px;
            padding: 14px 16px;
            background: var(--bg-input);
            border: 1px solid var(--border-input);
            border-radius: 14px;
            color: var(--text-input);
            font-size: 16px;
            transition: all 0.3s ease;
            outline: none;
            box-sizing: border-box;
            touch-action: manipulation;
        }
        .auth-form input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]):focus {
            border-color: var(--accent-primary);
            box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.15), 0 0 30px var(--accent-glow);
        }
        .auth-form input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]):focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 2px;
        }
        .auth-form input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"])::placeholder {
            color: var(--text-muted);
            opacity: 1;
            font-weight: 300;
        }

        .password-field {
            position: relative;
        }
        .auth-form .password-field input {
            padding-right: 52px;
        }
        html[data-theme] .auth-form .password-field input {
            padding-right: 52px;
            min-height: 44px;
        }
        .password-toggle {
            position: absolute;
            top: 50%;
            right: 0;
            transform: translateY(-50%);
            width: 44px;
            height: 44px;
            min-width: 44px;
            min-height: 44px;
            padding: 0;
            margin: 0;
            border: none;
            border-radius: 8px;
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        html[data-theme] .auth-form .password-field .password-toggle {
            width: 44px;
            height: 44px;
            min-width: 44px;
            min-height: 44px;
            max-height: none;
            right: 0;
        }
        .password-toggle:hover {
            color: var(--text-primary);
            background: rgba(124, 92, 252, 0.1);
        }
        .password-toggle:focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 0;
            color: var(--text-primary);
        }
        .password-toggle .icon-eye,
        .password-toggle .icon-eye-off {
            display: inline-block;
            width: 22px;
            height: 22px;
            font-size: 0;
            line-height: 0;
            overflow: hidden;
            color: transparent;
            background: center / 22px 22px no-repeat;
        }
        .password-toggle .icon-eye {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2'%3E%3Cpath d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
        }
        .password-toggle .icon-eye-off {
            display: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 6.1A10 10 0 0 1 12 6c6 0 10 6 10 6a18 18 0 0 1-3.2 3.8'/%3E%3Cpath d='M6.1 6.1C3.5 8 2 12 2 12s4 7 10 7a10 10 0 0 0 4.2-.9'/%3E%3C/svg%3E");
        }
        .password-toggle[aria-pressed="true"] .icon-eye {
            display: none;
        }
        .password-toggle[aria-pressed="true"] .icon-eye-off {
            display: inline-block;
        }

        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin: 4px 0 20px 0;
            font-size: 15px;
        }
        .login-box .remember-me {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            width: auto;
            min-width: 44px;
            min-height: 44px;
            margin: 0;
            padding: 10px 8px;
            background: none;
            border: 0;
            color: var(--text-muted);
            cursor: pointer;
            opacity: 0.85;
            font-size: 15px;
            font-weight: 400;
            line-height: 1.3;
        }
        .login-box .remember-me:hover {
            opacity: 1;
        }
        .login-box .remember-me input[type="checkbox"] {
            -webkit-appearance: checkbox;
            appearance: auto;
            box-sizing: border-box;
            display: inline-block;
            width: 16px;
            height: 16px;
            min-width: 16px;
            min-height: 16px;
            max-width: 16px;
            max-height: 16px;
            margin: 0;
            padding: 0;
            border: 0;
            border-radius: 2px;
            background: none;
            box-shadow: none;
            flex: 0 0 16px;
            accent-color: var(--accent-primary);
            cursor: pointer;
        }
        .login-box .remember-me input[type="checkbox"]:focus {
            outline: none;
            box-shadow: none;
        }
        .login-box .remember-me input[type="checkbox"]:focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 2px;
            border-radius: 3px;
        }
        .forgot-password {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 15px;
            transition: color 0.3s ease;
            opacity: 0.7;
            background: none;
            border: none;
            padding: 10px 0 10px 8px;
            margin: 0;
            min-height: 44px;
            min-width: 44px;
            font-family: inherit;
            letter-spacing: inherit;
            cursor: pointer;
            -webkit-appearance: none;
            appearance: none;
            display: inline-flex;
            align-items: center;
            justify-content: flex-end;
            touch-action: manipulation;
        }
        .forgot-password:hover {
            color: var(--accent-primary);
            opacity: 1;
        }
        .forgot-password:focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 2px;
            border-radius: 8px;
            opacity: 1;
        }
        .forgot-password-hint {
            margin-top: -8px;
        }
        .forgot-password-hint[hidden] {
            display: none !important;
        }

        .login-btn {
            width: 100%;
            min-height: 44px;
            min-width: 44px;
            padding: 16px;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            border: none;
            border-radius: 14px;
            color: #fff;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            letter-spacing: 0.5px;
            position: relative;
            overflow: hidden;
            box-sizing: border-box;
            touch-action: manipulation;
            -webkit-appearance: none;
            appearance: none;
            font-family: inherit;
        }
        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 40px var(--accent-glow);
        }
        .login-btn:active {
            transform: translateY(0);
        }
        .login-btn:focus-visible {
            outline: 2px solid #fff;
            outline-offset: 3px;
            box-shadow: 0 0 0 3px var(--accent-primary);
        }
        .login-btn:disabled {
            min-height: 44px;
            min-width: 44px;
            opacity: 0.72;
            cursor: not-allowed;
            transform: none;
            touch-action: manipulation;
        }

        .auth-alt {
            margin: 16px 0 0;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 4px 8px;
            font-size: 15px;
            color: var(--text-muted);
        }
        .switch-link {
            color: var(--accent-primary);
            cursor: pointer;
            font-weight: 500;
            transition: color 0.3s ease;
            background: none;
            border: none;
            border-bottom: 1px solid transparent;
            min-height: 44px;
            min-width: 44px;
            padding: 10px 8px;
            margin: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-family: inherit;
        }
        .switch-link:hover {
            color: var(--accent-secondary);
            border-bottom-color: var(--accent-secondary);
        }
        .switch-link:focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 2px;
            border-radius: 6px;
        }

        .message {
            padding: 10px 14px;
            border-radius: 12px;
            margin-bottom: 16px;
            font-size: 15px;
            font-weight: 400;
            min-height: 44px;
            display: flex;
            align-items: center;
            box-sizing: border-box;
        }
        .message.error {
            background: rgba(255, 80, 80, 0.1);
            border: 1px solid rgba(255, 80, 80, 0.15);
            color: #ff6b6b;
        }
        .message.success {
            background: rgba(80, 200, 120, 0.1);
            border: 1px solid rgba(80, 200, 120, 0.15);
            color: #51cf66;
        }

        /* ===== ПОДВАЛ ===== */
        .footer {
            flex-shrink: 0;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-header);
            border-top: 1px solid var(--border-card);
        }
        .footer p {
            color: var(--footer-text);
            font-size: 14px;
            letter-spacing: 1px;
        }

        /* ===== АДАПТИВ ===== */
        @media (max-width: 768px) {
            .main {
                flex-direction: column;
                margin-top: 60px;
            }
            .hero-section {
                flex: 1;
                min-height: 0;
            }
            .login-section {
                flex: 2;
                padding: 12px 16px;
                align-items: center;
            }
            .login-box {
                padding: 24px 20px;
                max-width: 100%;
                border-radius: 20px;
            }
            .auth-tabs {
                margin-bottom: 24px;
            }
            .auth-tab {
                font-size: 14px;
                padding: 10px 0;
                min-height: 44px;
                min-width: 44px;
            }
            .auth-form .form-group {
                margin-bottom: 14px;
            }
            .auth-form input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]) {
                padding: 12px 16px;
                font-size: 16px;
                min-height: 44px;
            }
            .form-options {
                margin: 2px 0 16px 0;
                font-size: 15px;
            }
            .login-btn {
                padding: 14px;
                font-size: 15px;
                min-height: 44px;
            }
            .footer {
                height: 36px;
            }
            .footer p {
                font-size: 13px;
            }

            /* Герой на телефоне */
            .hero-content .brand {
                font-size: 36px;
                letter-spacing: 2px;
            }
            .hero-content .tagline .product {
                font-size: 24px;
            }
            .hero-content .tagline .product span {
                font-size: 28px;
            }
            .hero-content .tagline .desc {
                font-size: 14px;
                min-height: 20px;
            }
            .hero-cta-row {
                margin-top: 10px;
                gap: 10px;
            }
            .hero-content .badge,
            .hero-auth-cta {
                font-size: 14px;
                padding: 10px 16px;
                margin-top: 0;
                min-height: 44px;
                min-width: 44px;
            }
            .product-detail-panel {
                padding: 28px 20px 20px;
                border-radius: 20px;
            }
            .product-detail-title {
                font-size: 22px;
            }
            .product-detail-about {
                font-size: 14px;
            }
            .hero-content {
                padding: 12px 12px;
            }
            .hero-slide {
                max-width: min(92%, 320px);
                max-height: 70%;
            }
            .hero-matrix {
                font-size: 8px;
            }
            .hero-matrix .matrix-column {
                gap: 3px;
            }
            .hero-matrix .matrix-column .char {
                font-size: 8px;
            }
            .hero-matrix .matrix-column .char.large {
                font-size: calc(8px * 1.5);
            }
        }

        @media (max-width: 480px) {
            .login-section {
                padding: 8px 10px;
            }
            .login-box {
                padding: 18px 14px;
                border-radius: 16px;
            }
            .auth-tabs {
                margin-bottom: 20px;
            }
            .auth-tab {
                font-size: 13px;
                padding: 10px 0;
                min-height: 44px;
                min-width: 44px;
            }
            .auth-form .form-group {
                margin-bottom: 12px;
            }
            .auth-form input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]) {
                padding: 10px 14px;
                font-size: 16px;
                min-height: 44px;
            }
            .form-options {
                margin: 0 0 12px 0;
                font-size: 14px;
            }
            .login-btn {
                padding: 12px;
                font-size: 14px;
                min-height: 44px;
            }
            .footer {
                height: 32px;
            }
            .footer p {
                font-size: 13px;
            }
            .hero-content .brand {
                font-size: 30px;
            }
            .hero-content .tagline .product {
                font-size: 20px;
            }
            .hero-content .tagline .product span {
                font-size: 24px;
            }
            .hero-content .tagline .desc {
                font-size: 15px;
                min-height: 18px;
            }
            .hero-content .badge,
            .hero-auth-cta {
                font-size: 15px;
                padding: 10px 16px;
                min-height: 44px;
                min-width: 44px;
            }
        }

        @media (max-height: 700px) {
            .main {
                margin-top: 50px;
            }
            .hero-content .brand {
                font-size: 28px;
            }
            .hero-content .tagline .product {
                font-size: 18px;
            }
            .hero-content .tagline .product span {
                font-size: 22px;
            }
            .hero-content .tagline .desc {
                font-size: 14px;
                min-height: 16px;
            }
            .hero-content .badge,
            .hero-auth-cta {
                font-size: 15px;
                padding: 10px 14px;
                min-height: 44px;
                min-width: 44px;
            }
            .hero-content {
                padding: 8px 8px;
            }
            .login-box {
                padding: 16px 12px;
            }
            .auth-tabs {
                margin-bottom: 16px;
            }
            .auth-tab {
                font-size: 13px;
                padding: 10px 0;
                min-height: 44px;
                min-width: 44px;
            }
            .auth-form .form-group {
                margin-bottom: 10px;
            }
            .auth-form input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]) {
                padding: 10px 12px;
                font-size: 16px;
                min-height: 44px;
            }
            .form-options {
                margin: 0 0 10px 0;
                font-size: 14px;
            }
            .login-btn {
                padding: 12px;
                font-size: 14px;
                min-height: 44px;
            }
            .footer {
                height: 28px;
            }
            .footer p {
                font-size: 13px;
            }
        }

        @media (min-width: 1200px) {
            .main {
                max-width: 100% !important;
                padding: 0 40px;
            }
            .hero-section {
                flex: 2;
            }
            .login-section {
                flex: 1;
            }
            .login-box {
                max-width: 400px;
                padding: 36px 32px;
            }
            .hero-content .brand {
                font-size: 46px;
                letter-spacing: 1px;
            }
            .hero-content .tagline .product {
                font-size: 44px;
            }
            .hero-content .tagline .product span {
                font-size: 48px;
            }
            .hero-content .tagline .desc {
                font-size: 20px;
            }
        }

/* moved from landing.php inline — promise/gate/auth sheet */
/* Зачем Florenda за 5 секунд — не карусель слоганов и не стена полей */
        .hero-content {
            background: radial-gradient(ellipse at center, rgba(10, 14, 26, 0.58) 0%, transparent 74%);
        }
        [data-theme="light"] .hero-content {
            background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.62) 0%, transparent 74%);
        }
        .hero-promise {
            margin: 0 0 12px;
            font-size: 22px;
            font-weight: 600;
            letter-spacing: 0.3px;
            color: var(--text-primary);
            line-height: 1.25;
        }
        .hero-why {
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
            margin: 0 auto 14px;
            padding: 0;
            max-width: 520px;
        }
        .hero-why li {
            padding: 7px 14px;
            border-radius: 999px;
            background: rgba(124, 92, 252, 0.14);
            border: 1px solid rgba(124, 92, 252, 0.24);
            color: var(--text-secondary);
            font-size: 15px;
            font-weight: 500;
            letter-spacing: 0.2px;
            line-height: 1.3;
        }
        [data-theme="light"] .hero-why li {
            background: rgba(124, 92, 252, 0.08);
            color: var(--text-primary);
        }
        .hero-content .tagline {
            min-height: 0;
            margin-bottom: 6px;
            gap: 0;
        }
        .hero-content .tagline .product {
            font-size: 18px;
            letter-spacing: 2px;
            font-weight: 600;
        }
        .hero-content .tagline .product span {
            font-size: 20px;
        }
        .hero-content .tagline .desc {
            font-size: 15px;
            min-height: 0;
            letter-spacing: 0.6px;
        }
        .auth-lead {
            margin: 0 0 12px;
            text-align: center;
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.45;
            font-weight: 400;
        }
        html.landing-first .hero-content .tagline {
            display: none;
        }
        html.landing-first .hero-auth-cta {
            display: none !important;
        }
        html.landing-first .login-box {
            padding-top: 16px;
        }
        @media (max-width: 768px) {
            html.landing-first .login-section {
                flex: 0 1 auto;
                max-height: 58vh;
                overflow: auto;
                -webkit-overflow-scrolling: touch;
            }
            html.landing-first .auth-lead {
                margin-bottom: 8px;
                font-size: 15px;
            }
        }
        html.landing-first #registerForm:not(.active) {
            display: none;
        }
        .auth-gate-kicker {
            margin: 0 0 6px;
            font-size: 14px;
            letter-spacing: 3px;
            font-weight: 600;
            text-transform: uppercase;
            color: var(--text-muted);
        }
        .auth-gate-title {
            margin: 0 0 10px;
            font-size: 28px;
            font-weight: 700;
            letter-spacing: 0.4px;
            color: var(--text-primary);
            line-height: 1.2;
        }
        .auth-gate-lead {
            margin: 0 0 22px;
            color: var(--text-secondary);
            font-size: 15px;
            line-height: 1.5;
        }
        .auth-gate a.login-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            box-sizing: border-box;
        }
        .auth-back {
            margin: 0 0 4px -8px;
            justify-content: flex-start;
        }
        .login-box.is-gated .auth-fields {
            display: none;
        }
        .login-box:not(.is-gated) .auth-gate {
            display: none;
        }
        .login-box.is-gated:target .auth-gate,
        .login-box.is-gated:has(#login:target) .auth-gate,
        .login-box.is-gated:has(#loginForm:target) .auth-gate,
        .login-box.is-gated:has(#registerForm:target) .auth-gate {
            display: none;
        }
        .login-box.is-gated:target .auth-fields,
        .login-box.is-gated:has(#login:target) .auth-fields,
        .login-box.is-gated:has(#loginForm:target) .auth-fields,
        .login-box.is-gated:has(#registerForm:target) .auth-fields {
            display: block;
        }
        .login-box.is-gated:has(#registerForm:target) #loginForm {
            display: none;
        }
        .login-box.is-gated:has(#registerForm:target) #registerForm {
            display: block;
        }

        /* Телефон: герой держит экран (зачем Florenda за 5 сек), поля не отбирают 58% */
        @media (max-width: 768px) {
            html#htmlRoot[data-theme].landing-first,
            html#htmlRoot[data-theme].landing-first body {
                height: auto;
                max-height: none;
                overflow-x: hidden;
                overflow-y: auto;
            }
            html#htmlRoot[data-theme].landing-first .main {
                position: relative;
                overflow: visible;
                height: auto;
                flex: 0 0 auto;
            }
            html#htmlRoot[data-theme].landing-first .hero-section {
                flex: 0 0 auto;
                min-height: 340px;
                max-height: none;
                overflow: visible;
            }
            html#htmlRoot[data-theme].landing-first .hero-content {
                max-height: none;
                overflow: visible;
            }
            html#htmlRoot[data-theme].landing-first,
            html#htmlRoot[data-theme].landing-first body {
                height: auto;
                max-height: none;
                overflow-x: hidden;
                overflow-y: auto;
            }
            html#htmlRoot[data-theme].landing-first .main {
                position: relative;
                overflow: visible;
                height: auto;
                flex: 0 0 auto;
            }
            html#htmlRoot[data-theme].landing-first .hero-section {
                flex: 0 0 auto;
                min-height: 340px;
                max-height: none;
                overflow: visible;
            }
            html#htmlRoot[data-theme].landing-first .hero-content {
                max-height: none;
                overflow: visible;
            }
            html#htmlRoot[data-theme] .main {
                position: relative;
                overflow: hidden;
            }
            html#htmlRoot[data-theme] .hero-section {
                flex: 1 1 auto;
                min-height: 0;
                max-height: none;
                overflow: hidden;
            }
            html#htmlRoot[data-theme] .hero-content {
                padding: 16px 14px 8px;
            }
            html#htmlRoot[data-theme] .hero-content .brand {
                font-size: 36px;
                letter-spacing: 2px;
                margin-bottom: 6px;
            }
            html#htmlRoot[data-theme] .hero-promise {
                font-size: 20px;
                margin-bottom: 10px;
                line-height: 1.3;
            }
            html#htmlRoot[data-theme] .hero-why {
                gap: 8px;
                margin-bottom: 12px;
                max-width: 100%;
            }
            html#htmlRoot[data-theme] .hero-why li {
                font-size: 15px;
                padding: 8px 12px;
            }
            html#htmlRoot[data-theme] .hero-content .tagline {
                display: none;
            }
            html#htmlRoot[data-theme] .login-section {
                flex: 0 0 auto;
                min-height: 0;
                max-height: none;
                padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
                overflow: visible;
                align-items: flex-end;
            }
            html#htmlRoot[data-theme] .login-box.is-gated {
                padding: 12px 14px;
                max-height: none;
                overflow: visible;
            }
            html#htmlRoot[data-theme] .login-box.is-gated .auth-gate-kicker,
            html#htmlRoot[data-theme] .login-box.is-gated .auth-gate-title,
            html#htmlRoot[data-theme] .login-box.is-gated .auth-gate-lead {
                display: none;
            }
            html#htmlRoot[data-theme] .login-box.is-gated .auth-gate .login-btn {
                margin-top: 0;
            }
            html#htmlRoot[data-theme] .login-box.is-gated .auth-alt {
                margin-top: 8px;
            }
            html#htmlRoot[data-theme].landing-auth-open .main,
            html#htmlRoot[data-theme].landing-auth-busy .main {
                flex-direction: column;
                overflow: hidden;
                margin-top: 0;
                min-height: 100vh;
                min-height: 100dvh;
                height: 100dvh;
            }
            html#htmlRoot[data-theme].landing-auth-open header.header,
            html#htmlRoot[data-theme].landing-auth-busy header.header {
                display: none !important;
                visibility: hidden;
                pointer-events: none;
            }
            html#htmlRoot[data-theme].landing-auth-open body,
            html#htmlRoot[data-theme].landing-auth-busy body {
                overflow: hidden;
            }
            html#htmlRoot[data-theme].landing-auth-open .hero-section,
            html#htmlRoot[data-theme].landing-auth-busy .hero-section {
                flex: 0 0 0;
                min-height: 0;
                max-height: 0;
                height: 0;
                padding: 0;
                margin: 0;
                overflow: hidden;
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
            }
            html#htmlRoot[data-theme].landing-auth-open .hero-content,
            html#htmlRoot[data-theme].landing-auth-busy .hero-content {
                display: none;
            }
            html#htmlRoot[data-theme].landing-auth-open .login-section,
            html#htmlRoot[data-theme].landing-auth-busy .login-section {
                position: relative;
                left: auto;
                right: auto;
                bottom: auto;
                z-index: 30;
                flex: 1 1 auto;
                width: 100%;
                min-height: 0;
                max-height: none;
                height: auto;
                padding: calc(8px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px));
                background: transparent;
                align-items: stretch;
                justify-content: flex-start;
                overflow: auto;
                -webkit-overflow-scrolling: touch;
                overscroll-behavior: contain;
            }
            html#htmlRoot[data-theme].landing-auth-open .login-box,
            html#htmlRoot[data-theme].landing-auth-busy .login-box {
                flex: 1 1 auto;
                width: 100%;
                max-width: 100%;
                min-height: 0;
                max-height: none;
                overflow: visible;
                padding: 16px 16px 20px;
                box-sizing: border-box;
            }
            html#htmlRoot[data-theme].landing-auth-open .footer,
            html#htmlRoot[data-theme].landing-auth-busy .footer {
                display: none;
            }
            .auth-lead {
                font-size: 15px;
                margin-bottom: 10px;
            }
        }

        @media (max-width: 768px) and (max-height: 700px) {
            html#htmlRoot[data-theme] .hero-content .brand {
                font-size: 30px;
            }
            html#htmlRoot[data-theme] .hero-promise {
                font-size: 27px;
                margin-bottom: 8px;
            }
            html#htmlRoot[data-theme] .hero-why li {
                font-size: 14px;
                padding: 6px 10px;
            }
            html#htmlRoot[data-theme].landing-auth-open .login-section,
            html#htmlRoot[data-theme].landing-auth-busy .login-section {
                max-height: none;
            }
        }

        html#htmlRoot[data-theme] .login-box label.remember-me { display: inline-flex; align-items: center; gap: 8px; width: auto; max-width: calc(100% - 8px); min-width: 0; min-height: 0; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; text-transform: none; letter-spacing: 0; }
        html#htmlRoot[data-theme] .login-box label.remember-me input[type="checkbox"] {
            -webkit-appearance: checkbox;
            appearance: auto;
            box-sizing: border-box;
            display: inline-block;
            width: 16px;
            height: 16px;
            min-width: 16px;
            min-height: 16px;
            max-width: 16px;
            max-height: 16px;
            margin: 0;
            padding: 0;
            border: 0;
            border-radius: 2px;
            background: none;
            box-shadow: none;
            flex: 0 0 16px;
            accent-color: var(--accent-primary);
            cursor: pointer;
            touch-action: manipulation;
        }
        html#htmlRoot[data-theme] .login-box label.remember-me input[type="checkbox"]:focus {
            outline: none;
            box-shadow: none;
        }
        html#htmlRoot[data-theme] .login-box label.remember-me input[type="checkbox"]:focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 2px;
        }
