/* ═══════════════════════════════════════════════════════════════════
   FindYourNeurotype — Design System v5
   Aesthetic: Scientific precision × warm human touch
   Font: DM Sans (headings) + Plus Jakarta Sans (body)
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand palette */
    --blue-900: #0c1b4a;
    --blue-800: #1247c9;
    --primary: #1247c9; /* alias */
    --blue-600: #3b6ef0;
    --blue-100: #e8effd;
    --teal: #00c4a7;
    --accent: #00c4a7; /* alias */
    --teal-lt: #ccf5ee;
    --amber: #f59e0b;
    /* Test type colors */
    --adhd: #7c3aed;
    --adhd-lt: #f3effe;
    --autism: #db2777;
    --autism-lt: #fce7f3;
    --iq: #d97706;
    --iq-lt: #fef3c7;
    /* New test colors */
    --dyslexia: #0891b2;
    --dyslexia-lt: #e0f2fe;
    --ocd: #dc2626;
    --ocd-lt: #fef2f2;
    --gad: #7c3aed;
    --gad-lt: #f3effe;
    --phq: #1d4ed8;
    --phq-lt: #eff6ff;
    --dcd: #059669;
    --dcd-lt: #ecfdf5;
    --dyscalc: #ea580c;
    --dyscalc-lt: #fff7ed;
    --hsp: #16a34a;
    --hsp-lt: #f0fdf4;
    --spq: #0d9488;
    --spq-lt: #f0fdfa;
    /* Claude */
    --claude: #cf6c2d;
    --claude-orange: #cf6c2d;
    --claude-lt: #fdf3ec;
    --claude-bg: #fdf3ec; /* alias */
    --claude-bd: #f8d5b8;
    /* Neutral */
    --gray-50: #f8fafc;
    --bg: #f8fafc; /* alias */
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --border: #e2e8f0; /* alias */
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --text: #1e293b; /* alias */
    --gray-900: #0f172a;
    --white: #ffffff;
    --card: #ffffff; /* alias */

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-xs: 0 1px 3px rgba(0,0,0,.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow: 0 4px 20px rgba(0,0,0,.10);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
    --shadow-xl: 0 24px 60px rgba(0,0,0,.18);
    --font-display: 'DM Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--blue-800);
    text-decoration: none;
}

    a:hover {
        color: var(--blue-600);
    }

img {
    max-width: 100%;
    height: auto;
}

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--gray-900);
}

h1 {
    font-size: clamp(1.9rem,4vw,3rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.4rem,3vw,2.1rem);
    font-weight: 700;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

p {
    color: var(--gray-500);
    line-height: 1.7;
}

/* Force white text inside all dark gradient sections */
.hero h1, .hero h2, .hero h3,
.result-hero h1, .result-hero h2,
.payment-modal-header h2 {
    color: var(--white);
}

.hero p {
    color: rgba(255,255,255,.8);
}

/* ── Layout ───────────────────────────────────────────────────── */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.container-sm {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR — clean white, elevated
   ═══════════════════════════════════════════════════════════════ */
.navbar {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 var(--gray-100), var(--shadow-sm);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    height: 88px;
    gap: 8px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin-left: 20px;
}

    .navbar-menu a {
        color: var(--gray-600);
        font-size: .875rem;
        font-weight: 600;
        padding: 6px 13px;
        border-radius: var(--radius-sm);
        transition: all var(--transition);
        white-space: nowrap;
        font-family: var(--font-display);
        position: relative;
    }

        .navbar-menu a:hover {
            background: var(--blue-100);
            color: var(--blue-800);
        }

        /* Active state — underline + color */
        .navbar-menu a.nav-active {
            color: var(--blue-800);
            font-weight: 700;
            background: var(--blue-100);
        }

            .navbar-menu a.nav-active::after {
                content: "";
                position: absolute;
                bottom: -2px;
                left: 50%;
                right: 50%;
                height: 2px;
                background: var(--blue-800);
                border-radius: 999px;
                transition: left .2s ease, right .2s ease;
            }

            .navbar-menu a.nav-active::after,
            .navbar-menu a:hover::after {
                left: 10px;
                right: 10px;
            }

        .navbar-menu a::after {
            content: "";
            position: absolute;
            bottom: -2px;
            left: 50%;
            right: 50%;
            height: 2px;
            background: var(--blue-800);
            border-radius: 999px;
            transition: left .2s ease, right .2s ease;
        }

        .navbar-menu a:hover::after {
            left: 10px;
            right: 10px;
        }

.btn-login {
    background: var(--blue-800);
    color: var(--white) !important;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 10px;
    font-size: .875rem;
    transition: all var(--transition);
    box-shadow: 0 2px 10px rgba(18,71,201,.3);
    font-family: var(--font-display);
    letter-spacing: -.01em;
}

    .btn-login:hover {
        background: var(--blue-600);
        color: var(--white) !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(18,71,201,.35);
    }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: auto;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius);
    border: none;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-display);
    letter-spacing: -.01em;
}

.btn-primary {
    background: var(--blue-800);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(18,71,201,.3);
}

    .btn-primary:hover {
        background: var(--blue-600);
        color: var(--white);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(18,71,201,.4);
    }

.btn-teal {
    background: var(--teal);
    color: var(--gray-900);
    box-shadow: 0 4px 14px rgba(0,196,167,.3);
}

    .btn-teal:hover {
        filter: brightness(1.06);
        color: var(--gray-900);
        transform: translateY(-1px);
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-200);
    color: var(--gray-700);
}

    .btn-outline:hover {
        border-color: var(--blue-800);
        color: var(--blue-800);
        background: var(--blue-100);
    }

.btn-sm {
    padding: 7px 16px;
    font-size: .82rem;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
    background: linear-gradient(145deg, #0c1b4a 0%, #1247c9 50%, #0ea5c4 100%);
    padding: 96px 0 80px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0,196,167,.18), transparent), radial-gradient(ellipse 40% 60% at 10% 80%, rgba(18,71,201,.25), transparent);
    }

    /* Subtle grid texture */
    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
        background-size: 40px 40px;
        mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
    }

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero h1 {
    color: var(--white);
    letter-spacing: -.03em;
    margin-bottom: 18px;
}

.hero p {
    color: rgba(255,255,255,.8);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 5px 14px 5px 10px;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: rgba(255,255,255,.9);
    font-family: var(--font-display);
}

.hero-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 0;
    margin-top: 52px;
}

.hero-stat {
    padding: 0 28px 0 0;
    margin-right: 28px;
    border-right: 1px solid rgba(255,255,255,.15);
}

    .hero-stat:last-child {
        border-right: none;
    }

    .hero-stat strong {
        display: block;
        font-size: 2rem;
        font-weight: 900;
        color: var(--white);
        font-family: var(--font-display);
        letter-spacing: -.04em;
        line-height: 1;
    }

    .hero-stat span {
        font-size: .78rem;
        color: rgba(255,255,255,.55);
        margin-top: 4px;
        display: block;
    }

/* ═══════════════════════════════════════════════════════════════
   TEST CARDS — bold, modern
   ═══════════════════════════════════════════════════════════════ */
.tests-section {
    padding: 72px 0 56px;
}

.section-eyebrow {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--blue-800);
    font-family: var(--font-display);
    margin-bottom: 10px;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.test-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--gray-200);
    padding: 32px;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    /* Accent bar top */
    .test-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #1247c9, #00c4a7);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    /* Keep subtle per-test icon background only */

    /* Glow on hover */
    .test-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-xl);
        border-color: transparent;
    }

    .test-card.adhd:hover {
        box-shadow: 0 20px 50px rgba(124,58,237,.15);
    }

    .test-card.autism:hover {
        box-shadow: 0 20px 50px rgba(219,39,119,.15);
    }

    .test-card.iq:hover {
        box-shadow: 0 20px 50px rgba(217,119,6,.15);
    }

    .test-card.dyslexia:hover {
        box-shadow: 0 20px 50px rgba(8,145,178,.15);
    }

    .test-card.ocd:hover {
        box-shadow: 0 20px 50px rgba(220,38,38,.15);
    }

    .test-card.gad:hover {
        box-shadow: 0 20px 50px rgba(124,58,237,.15);
    }

    .test-card.phq:hover {
        box-shadow: 0 20px 50px rgba(29,78,216,.15);
    }

    .test-card.dcd:hover {
        box-shadow: 0 20px 50px rgba(5,150,105,.15);
    }

    .test-card.dyscalc:hover {
        box-shadow: 0 20px 50px rgba(234,88,12,.15);
    }

    .test-card.hsp:hover {
        box-shadow: 0 20px 50px rgba(22,163,74,.15);
    }

.test-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: var(--adhd-lt);
}

.test-card.autism .test-card-icon {
    background: var(--autism-lt);
}

.test-card.iq .test-card-icon {
    background: var(--iq-lt);
}

.test-card.dyslexia .test-card-icon {
    background: var(--dyslexia-lt);
}

.test-card.ocd .test-card-icon {
    background: var(--ocd-lt);
}

.test-card.gad .test-card-icon {
    background: var(--gad-lt);
}

.test-card.phq .test-card-icon {
    background: var(--phq-lt);
}

.test-card.dcd .test-card-icon {
    background: var(--dcd-lt);
}

.test-card.dyscalc .test-card-icon {
    background: var(--dyscalc-lt);
}

.test-card.hsp .test-card-icon {
    background: var(--hsp-lt);
}

.test-card.spq .test-card-icon {
    background: var(--spq-lt);
}

.test-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -.02em;
}

.test-card p {
    font-size: .875rem;
    color: var(--gray-500);
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}

.test-card-footer {
    margin-top: auto;
}

.test-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--gray-100);
    border-radius: 999px;
    padding: 4px 11px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--gray-500);
}

.claude-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--claude-lt);
    border: 1px solid var(--claude-bd);
    color: var(--claude);
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.btn-start {
    display: block;
    text-align: center;
    padding: 13px 20px;
    border-radius: var(--radius);
    color: var(--white) !important;
    font-weight: 800;
    font-size: .9rem;
    text-decoration: none;
    transition: all var(--transition);
    font-family: var(--font-display);
    letter-spacing: -.01em;
    background: linear-gradient(135deg, #1247c9, #00c4a7);
    box-shadow: 0 4px 14px rgba(18,71,201,.25);
}

    .btn-start:hover {
        opacity: .9;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(18,71,201,.35);
        color: var(--white) !important;
    }

/* ═══════════════════════════════════════════════════════════════
   CLAUDE AI BOXES
   ═══════════════════════════════════════════════════════════════ */
.claude-box {
    background: linear-gradient(135deg, #fff8f2, #fffef8);
    border: 1.5px solid var(--claude-bd);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.claude-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.claude-box-icon {
    width: 38px;
    height: 38px;
    background: var(--claude);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .claude-box-icon svg {
        width: 20px;
        height: 20px;
        fill: white;
    }

.claude-box-title {
    font-size: .9rem;
    font-weight: 800;
    color: #7c2d12;
    font-family: var(--font-display);
}

.claude-box-subtitle {
    font-size: .72rem;
    color: var(--claude);
    margin-top: 1px;
}

.claude-box p {
    font-size: .875rem;
    color: #6b2c0e;
    line-height: 1.8;
}

.claude-box .claude-box-p {
    font-size: .875rem;
    color: #6b2c0e;
    line-height: 1.8;
}
/* ── Claude logo sizing ──────────────────────────────────────── */
.claude-logo {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.claude-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--claude-lt);
    border: 1px solid var(--claude-bd);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--claude);
    font-family: var(--font-display);
}

.claude-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--claude-lt);
    border: 1px solid var(--claude-bd);
    color: var(--claude);
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    font-family: var(--font-display);
}


/* ═══════════════════════════════════════════════════════════════
   QUIZ / TEST TAKING
   ═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   QUIZ — One-question-at-a-time UX
   ═══════════════════════════════════════════════════════════════ */
.quiz-container {
    max-width: 660px;
    margin: 28px auto;
    padding: 0 16px 80px;
}

/* ── Header ── */
.quiz-header {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--gray-200);
    padding: 18px 22px 14px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-xs);
}

.quiz-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.quiz-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--blue-900);
    font-family: var(--font-display);
}

.quiz-counter {
    font-size: .8rem;
    font-weight: 700;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 4px 11px;
    border-radius: 999px;
}

    .quiz-counter strong {
        color: var(--blue-800);
    }

.timer-display {
    font-size: .8rem;
    font-weight: 700;
    color: var(--blue-800);
    background: var(--blue-100);
    padding: 4px 11px;
    border-radius: 8px;
    font-family: var(--font-display);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .timer-display.urgent {
        color: #ef4444;
        background: #fef2f2;
    }

/* Progress bar */
.quiz-progress-wrap {
    margin-top: 14px;
}

.quiz-progress-bar {
    background: var(--gray-200);
    border-radius: 999px;
    height: 5px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-800), var(--teal));
    transition: width .5s cubic-bezier(.4,0,.2,1);
}

.quiz-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: .7rem;
    color: var(--gray-400);
    margin-top: 5px;
    font-weight: 600;
}

/* ── Question stage (overflow hidden for slide) ── */
.quiz-stage {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

/* ── Question card ── */
.question-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--gray-200);
    padding: 28px 28px 24px;
    box-shadow: var(--shadow-sm);
    /* Hidden by default — JS controls visibility */
    display: none;
    position: relative;
}

    .question-card.active {
        display: block;
        animation: qSlideIn .32s cubic-bezier(.4,0,.2,1);
    }

    .question-card.slide-out-left {
        animation: qSlideOutLeft .22s cubic-bezier(.4,0,.2,1) forwards;
    }

    .question-card.slide-out-right {
        animation: qSlideOutRight .22s cubic-bezier(.4,0,.2,1) forwards;
    }

    .question-card.slide-in-right {
        animation: qSlideInRight .32s cubic-bezier(.4,0,.2,1) forwards;
    }

@keyframes qSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(.98);
    }

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

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

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

@keyframes qSlideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-40px);
    }
}

@keyframes qSlideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

.q-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.q-number {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--blue-800);
    background: var(--blue-100);
    padding: 3px 9px;
    border-radius: 999px;
    font-family: var(--font-display);
}

.q-category {
    font-size: .68rem;
    font-weight: 700;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 3px 9px;
    border-radius: 999px;
    font-family: var(--font-display);
}

.q-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.55;
    margin-bottom: 24px;
    font-family: var(--font-display);
}

/* ── Options ── */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .15s ease;
    background: var(--white);
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    overflow: hidden;
}

    .option-label::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--blue-100);
        opacity: 0;
        transition: opacity .15s;
    }

    .option-label:hover {
        border-color: var(--blue-600);
        transform: translateY(-1px);
        box-shadow: 0 3px 12px rgba(18,71,201,.12);
    }

        .option-label:hover::before {
            opacity: 1;
        }

    .option-label:active {
        transform: translateY(0);
    }

    .option-label.selected {
        border-color: var(--blue-800);
        background: var(--blue-100);
        box-shadow: 0 0 0 3px rgba(18,71,201,.12);
    }

        .option-label.selected::before {
            opacity: 0;
        }

    .option-label input[type=radio] {
        display: none;
    }

.option-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
    position: relative;
    z-index: 1;
    background: var(--white);
}

.option-label.selected .option-dot {
    border-color: var(--blue-800);
    background: var(--blue-800);
}

    .option-label.selected .option-dot::after {
        content: '';
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: white;
    }

/* Key hint (1,2,3…) */
.option-key {
    font-size: .65rem;
    font-weight: 800;
    color: var(--gray-400);
    background: var(--gray-100);
    border-radius: 5px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    font-family: var(--font-display);
    position: relative;
    z-index: 1;
    transition: all .15s;
}

.option-label.selected .option-key {
    background: var(--blue-800);
    color: white;
}

.option-label:hover .option-key {
    background: var(--blue-100);
    color: var(--blue-800);
}

.option-text {
    font-size: .925rem;
    font-weight: 600;
    color: var(--gray-700);
    font-family: var(--font-display);
    position: relative;
    z-index: 1;
}

.option-label.selected .option-text {
    color: var(--blue-900);
}

/* ── Dot navigator ── */
.quiz-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 18px 0 0;
}

.quiz-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-200);
    border: none;
    cursor: pointer;
    transition: all .2s ease;
    padding: 0;
    flex-shrink: 0;
}

    .quiz-dot.answered {
        background: var(--teal);
    }

    .quiz-dot.current {
        background: var(--blue-800);
        width: 26px;
        border-radius: 999px;
    }

    .quiz-dot.answered.current {
        background: var(--blue-800);
    }

/* ── Navigation ── */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.quiz-nav-hint {
    font-size: .72rem;
    color: var(--gray-400);
    text-align: center;
    font-weight: 600;
}

/* ── Answered checkmark in corner ── */
.q-answered-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 800;
    opacity: 0;
    transform: scale(0);
    transition: all .2s cubic-bezier(.34,1.56,.64,1);
}

    .q-answered-badge.show {
        opacity: 1;
        transform: scale(1);
    }

/* Confetti burst on select */
@keyframes optionPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.025);
    }

    100% {
        transform: scale(1);
    }
}

.option-label.just-selected {
    animation: optionPop .25s ease;
}

/* ═══════════════════════════════════════════════════════════════
   RESULT PAGE
   ═══════════════════════════════════════════════════════════════ */
.result-page {
    padding: 32px 0 72px;
}

.result-hero {
    background: linear-gradient(145deg, #0c1b4a, #1247c9 60%, #0ea5c4);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

    .result-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 80% 30%, rgba(0,196,167,.18), transparent 60%);
    }

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 3px solid rgba(255,255,255,.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.interpretation-banner {
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 16px;
}

    .interpretation-banner.low {
        background: #f0fdf4;
        border: 1.5px solid #86efac;
    }

    .interpretation-banner.moderate {
        background: #fefce8;
        border: 1.5px solid #fde047;
    }

    .interpretation-banner.high {
        background: #fef2f2;
        border: 1.5px solid #fca5a5;
    }

.interp-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
    font-family: var(--font-display);
}

.interp-desc {
    font-size: .875rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   LOADING OVERLAY — full screen, premium feel
   ═══════════════════════════════════════════════════════════════ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 27, 74, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

    .loading-overlay.show {
        opacity: 1;
        pointer-events: all;
    }

.spinner-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.12);
    border-top-color: var(--teal);
    animation: spin .8s linear infinite;
    margin-bottom: 28px;
}

.loading-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    font-family: var(--font-display);
    letter-spacing: -.02em;
    text-align: center;
}

.loading-sub {
    font-size: .875rem;
    color: rgba(255,255,255,.55);
    text-align: center;
    margin-bottom: 32px;
    max-width: 320px;
    line-height: 1.6;
}

.loading-claude {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(207,108,45,.2);
    border: 1px solid rgba(207,108,45,.35);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: .8rem;
    color: #f8a96e;
    font-weight: 700;
    font-family: var(--font-display);
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
    width: 260px;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    color: rgba(255,255,255,.3);
    transition: color .4s ease;
}

    .loading-step.active {
        color: rgba(255,255,255,.9);
    }

    .loading-step.done {
        color: var(--teal);
    }

.loading-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    flex-shrink: 0;
    transition: background .4s ease;
}

.loading-step.active .loading-step-dot {
    background: white;
    animation: pulse 1s infinite;
}

.loading-step.done .loading-step-dot {
    background: var(--teal);
}

/* ═══════════════════════════════════════════════════════════════
   PAYMENT MODAL
   ═══════════════════════════════════════════════════════════════ */
.payment-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12,27,74,.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

    .payment-overlay.show {
        opacity: 1;
        pointer-events: all;
    }

.payment-modal {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: slideUp .35s ease both;
}

.payment-modal-header {
    background: linear-gradient(145deg, #0c1b4a, #1247c9);
    padding: 28px 32px 24px;
    color: white;
    text-align: center;
}

    .payment-modal-header h2 {
        font-size: 1.35rem;
        font-weight: 900;
        margin-bottom: 5px;
        color: white;
        font-family: var(--font-display);
        letter-spacing: -.02em;
    }

    .payment-modal-header p {
        font-size: .875rem;
        opacity: .75;
    }

.payment-modal-body {
    padding: 24px 28px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.pricing-option {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    text-align: center;
}

    .pricing-option:hover {
        border-color: var(--blue-800);
    }

    .pricing-option.selected {
        border-color: var(--blue-800);
        background: var(--blue-100);
    }

    .pricing-option.premium-opt {
        border-color: var(--claude-bd);
        background: var(--claude-lt);
    }

        .pricing-option.premium-opt.selected {
            border-color: var(--claude);
        }

.plan-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--claude);
    color: white;
    font-size: .65rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
    font-family: var(--font-display);
}

.plan-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.plan-name {
    font-size: .85rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
    font-family: var(--font-display);
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--blue-800);
    font-family: var(--font-display);
    letter-spacing: -.03em;
}

    .plan-price.free {
        color: #16a34a;
    }

.plan-desc {
    font-size: .72rem;
    color: var(--gray-400);
    margin-top: 5px;
    line-height: 1.4;
}

.plan-features {
    list-style: none;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

    .plan-features li {
        font-size: .75rem;
        color: var(--gray-600);
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .plan-features li::before {
            content: "✓";
            color: #16a34a;
            font-weight: 900;
        }

        .plan-features li.no::before {
            content: "✕";
            color: var(--gray-300);
        }

.payment-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: .95rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-display);
    letter-spacing: -.01em;
    color: var(--gray-800); /* explicit fallback — never inherit white */
}

    .payment-btn.paid-btn {
        background: linear-gradient(135deg, var(--claude), var(--amber));
        color: #ffffff !important;
        box-shadow: 0 4px 16px rgba(207,108,45,.35);
    }

        .payment-btn.paid-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(207,108,45,.45);
            color: #ffffff !important;
        }

    .payment-btn.free-btn {
        background: var(--gray-100);
        color: var(--gray-800) !important;
        border: 1.5px solid var(--gray-300);
        margin-top: 8px;
    }

        .payment-btn.free-btn:hover {
            background: var(--gray-200);
            color: var(--gray-800) !important;
        }

/* ── Free-text question card ── */
.freetext-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--blue-100);
    padding: 28px 28px 24px;
    box-shadow: var(--shadow-sm);
    margin-top: 4px;
    animation: qSlideIn .32s cubic-bezier(.4,0,.2,1);
}

    .freetext-card .q-text {
        margin-bottom: 16px;
    }

.freetext-textarea {
    width: 100%;
    min-height: 130px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: .95rem;
    line-height: 1.6;
    font-family: var(--font-body);
    color: var(--gray-800);
    resize: vertical;
    transition: border-color .15s, box-shadow .15s;
    background: var(--white);
}

    .freetext-textarea:focus {
        outline: none;
        border-color: var(--blue-800);
        box-shadow: 0 0 0 3px rgba(18,71,201,.1);
    }

.freetext-hint {
    font-size: .75rem;
    color: var(--gray-400);
    margin-top: 7px;
    font-weight: 600;
}

/* ── Review card ── */
.review-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid #86efac;
    padding: 24px 24px 20px;
    box-shadow: var(--shadow-sm);
    animation: qSlideIn .32s cubic-bezier(.4,0,.2,1);
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    transition: border-color .15s;
}

    .review-row:hover {
        border-color: var(--blue-600);
    }

.review-row--missing {
    background: #fff7ed;
    border-color: #fed7aa;
}

.review-row-q {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.review-q-num {
    font-size: .7rem;
    font-weight: 800;
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 2px 7px;
    border-radius: 999px;
    flex-shrink: 0;
    font-family: var(--font-display);
    margin-top: 1px;
}

.review-q-cat {
    font-size: .68rem;
    font-weight: 700;
    color: var(--blue-800);
    background: var(--blue-100);
    padding: 2px 7px;
    border-radius: 999px;
    flex-shrink: 0;
    font-family: var(--font-display);
    margin-top: 1px;
}

.review-q-text {
    font-size: .85rem;
    font-weight: 600;
    color: var(--gray-700);
    line-height: 1.4;
    font-family: var(--font-display);
}

.review-row-a {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.review-answer {
    font-size: .82rem;
    font-weight: 700;
    color: var(--blue-900);
    background: var(--blue-100);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    font-family: var(--font-display);
}

.review-answer--missing {
    background: #fef3c7;
    color: #92400e;
}

.review-edit-btn {
    background: none;
    border: 1.5px solid var(--gray-300);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: .85rem;
    color: var(--gray-500);
    transition: all .15s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .review-edit-btn:hover {
        background: var(--blue-100);
        border-color: var(--blue-600);
        color: var(--blue-800);
    }

.review-freetext {
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-top: 8px;
}

.review-freetext-label {
    font-size: .75rem;
    font-weight: 800;
    color: var(--claude);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
}

.review-freetext-content {
    font-size: .875rem;
    color: var(--gray-700);
    line-height: 1.6;
    font-style: italic;
    white-space: pre-wrap;
}

.stripe-form-area {
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 14px;
    display: none;
}

    .stripe-form-area.show {
        display: block;
    }

.stripe-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    color: var(--gray-400);
}

.payment-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 12px;
    font-size: .72rem;
    color: var(--gray-400);
}

/* Upsell banner on free result page */
.upsell-banner {
    background: linear-gradient(135deg, #fff8f2, #fffef0);
    border: 2px solid var(--claude-bd);
    border-radius: var(--radius-xl);
    padding: 28px 28px;
    margin-bottom: 18px;
}

.btn-upsell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--claude), var(--amber));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: .9rem;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-display);
    box-shadow: 0 4px 16px rgba(207,108,45,.3);
    transition: all var(--transition);
}

    .btn-upsell:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(207,108,45,.4);
        color: white;
    }

/* ═══════════════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════════════ */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 252px;
    background: var(--gray-900);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
}

.admin-sidebar-header {
    padding: 22px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

    .admin-sidebar-header h2 {
        color: white;
        font-size: .9rem;
        font-weight: 700;
        font-family: var(--font-display);
    }

    .admin-sidebar-header p {
        color: rgba(255,255,255,.35);
        font-size: .7rem;
        margin-top: 2px;
    }

.admin-nav {
    padding: 10px 0;
    flex: 1;
}

.admin-nav-section {
    padding: 10px 20px 3px;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.25);
    font-family: var(--font-display);
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    color: rgba(255,255,255,.55);
    font-size: .85rem;
    font-weight: 600;
    transition: all .15s;
    border-left: 3px solid transparent;
    text-decoration: none;
    font-family: var(--font-display);
}

    .admin-nav-link:hover {
        background: rgba(255,255,255,.06);
        color: white;
    }

    .admin-nav-link.active {
        background: rgba(0,196,167,.1);
        color: var(--teal);
        border-left-color: var(--teal);
    }

.admin-badge {
    margin-left: auto;
    background: var(--teal);
    color: var(--gray-900);
    font-size: .62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    font-family: var(--font-display);
}

.admin-content {
    flex: 1;
    padding: 32px;
    background: var(--gray-50);
    margin-left: 252px;
    min-height: 100vh;
}

.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

    .admin-page-header h1 {
        font-size: 1.5rem;
        font-weight: 900;
        color: var(--gray-900);
        font-family: var(--font-display);
        letter-spacing: -.03em;
    }

    .admin-page-header p {
        font-size: .82rem;
        color: var(--gray-500);
        margin-top: 2px;
    }

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.admin-stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    border: 1.5px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-xs);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

    .stat-icon.blue {
        background: #dbeafe;
    }

    .stat-icon.green {
        background: #dcfce7;
    }

    .stat-icon.purple {
        background: #f3e8ff;
    }

    .stat-icon.amber {
        background: #fef3c7;
    }

.stat-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-400);
    margin-bottom: 3px;
    font-family: var(--font-display);
}

.stat-value {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1;
    font-family: var(--font-display);
    letter-spacing: -.04em;
}

.stat-sub {
    font-size: .7rem;
    color: var(--gray-400);
    margin-top: 2px;
}

.admin-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-xs);
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-100);
}

    .admin-card-header h3 {
        font-size: .9rem;
        font-weight: 700;
        color: var(--gray-900);
        font-family: var(--font-display);
    }

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table th {
        padding: 9px 14px;
        text-align: left;
        font-size: .68rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .07em;
        color: var(--gray-400);
        background: var(--gray-50);
        border-bottom: 1px solid var(--gray-100);
        white-space: nowrap;
        font-family: var(--font-display);
    }

    .admin-table td {
        padding: 13px 14px;
        font-size: .85rem;
        color: var(--gray-600);
        border-bottom: 1px solid var(--gray-50);
        vertical-align: middle;
    }

    .admin-table tr:last-child td {
        border-bottom: none;
    }

    .admin-table tr:hover td {
        background: var(--gray-50);
    }

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-800), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: .78rem;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--font-display);
}

.user-name {
    font-weight: 700;
    color: var(--gray-900);
    font-size: .85rem;
    font-family: var(--font-display);
}

.user-email {
    font-size: .72rem;
    color: var(--gray-400);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    font-family: var(--font-display);
}

    .status-pill::before {
        content: "";
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: currentColor;
    }

.pill-active, .pill-paid {
    background: #dcfce7;
    color: #15803d;
}

.pill-inactive, .pill-failed {
    background: #fee2e2;
    color: #dc2626;
}

.pill-pending {
    background: #fef3c7;
    color: #d97706;
}

.admin-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.admin-search {
    flex: 1;
    min-width: 200px;
    padding: 9px 13px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    outline: none;
    font-family: var(--font-body);
}

    .admin-search:focus {
        border-color: var(--blue-800);
        box-shadow: 0 0 0 3px rgba(18,71,201,.1);
    }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px;
    border-top: 1px solid var(--gray-100);
}

.page-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 700;
    color: var(--gray-500);
    transition: all .15s;
    text-decoration: none;
    font-family: var(--font-display);
}

    .page-link:hover {
        background: var(--gray-100);
        color: var(--blue-800);
    }

    .page-link.active {
        background: var(--blue-800);
        color: white;
    }

.test-stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--gray-50);
}

    .test-stat-row:last-child {
        border-bottom: none;
    }

.test-stat-code {
    width: 68px;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gray-400);
    font-family: var(--font-display);
}

.test-stat-bar-wrap {
    flex: 1;
    height: 7px;
    background: var(--gray-100);
    border-radius: 999px;
    overflow: hidden;
}

.test-stat-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-800), var(--teal));
    transition: width .8s ease;
}

.test-stat-count {
    font-size: .8rem;
    font-weight: 800;
    color: var(--gray-700);
    width: 36px;
    text-align: right;
    font-family: var(--font-display);
}

.chart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.rev-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rev-bar {
    width: 100%;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(to top, var(--blue-800), var(--teal));
    min-height: 4px;
    transition: height .5s ease;
}

.rev-bar-label {
    font-size: .6rem;
    color: var(--gray-400);
    text-align: center;
}

.revenue-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 100px;
    padding: 0 4px;
}

.settings-section {
    background: white;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 16px;
}

.settings-section-header {
    padding: 13px 20px;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

    .settings-section-header h3 {
        font-size: .875rem;
        font-weight: 700;
        color: var(--gray-900);
        font-family: var(--font-display);
    }

.settings-body {
    padding: 20px;
}

.settings-row {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 13px 0;
    border-bottom: 1px solid var(--gray-50);
}

    .settings-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.settings-label {
    width: 180px;
    flex-shrink: 0;
}

    .settings-label strong {
        display: block;
        font-size: .85rem;
        font-weight: 700;
        color: var(--gray-900);
        font-family: var(--font-display);
    }

    .settings-label span {
        font-size: .72rem;
        color: var(--gray-400);
    }

.settings-control {
    flex: 1;
}

.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--gray-300);
    border-radius: 999px;
    cursor: pointer;
    transition: .3s;
}

    .toggle-slider::before {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: white;
        top: 3px;
        left: 3px;
        transition: .3s;
        box-shadow: 0 1px 3px rgba(0,0,0,.2);
    }

.toggle-switch input:checked + .toggle-slider {
    background: var(--teal);
}

    .toggle-switch input:checked + .toggle-slider::before {
        transform: translateX(18px);
    }

/* ═══════════════════════════════════════════════════════════════
   LOGIN
   ═══════════════════════════════════════════════════════════════ */
.login-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: linear-gradient(145deg, #f0f4ff 0%, #e8f4fd 50%, #f0fffe 100%);
}

.login-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-xl);
    border: 1.5px solid var(--gray-200);
}

.oauth-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    background: white;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    color: var(--gray-700);
    transition: all var(--transition);
    margin-bottom: 10px;
    font-family: var(--font-display);
}

    .oauth-btn:hover {
        border-color: var(--gray-400);
        box-shadow: var(--shadow-sm);
        color: var(--gray-800);
    }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
footer {
    background: var(--gray-900);
    color: rgba(255,255,255,.55);
    padding: 56px 0 0;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}

.footer-desc {
    font-size: .82rem;
    line-height: 1.75;
    color: rgba(255,255,255,.4);
    max-width: 280px;
    margin-top: 14px;
}

.footer-col h4 {
    color: white;
    font-size: .8rem;
    font-weight: 800;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-family: var(--font-display);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .footer-col ul li a {
        color: rgba(255,255,255,.4);
        font-size: .83rem;
        transition: color .15s;
    }

        .footer-col ul li a:hover {
            color: var(--teal);
        }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
    color: rgba(255,255,255,.25);
    flex-wrap: wrap;
    gap: 8px;
}

.footer-badge {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    padding: 3px 9px;
    font-size: .68rem;
    color: rgba(255,255,255,.4);
}

/* ═══════════════════════════════════════════════════════════════
   MISC
   ═══════════════════════════════════════════════════════════════ */
.disclaimer-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 13px 16px;
    font-size: .78rem;
    color: #78350f;
    line-height: 1.65;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 5px;
    font-family: var(--font-display);
}

.form-control {
    width: 100%;
    padding: 9px 13px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    color: var(--gray-800);
    background: white;
    transition: border-color .15s;
    outline: none;
    font-family: var(--font-body);
}

    .form-control:focus {
        border-color: var(--blue-800);
        box-shadow: 0 0 0 3px rgba(18,71,201,.1);
    }

select.form-control {
    cursor: pointer;
}

.spinner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2.5px solid var(--gray-200);
    border-top-color: var(--blue-800);
    animation: spin .7s linear infinite;
    display: inline-block;
}

.api-test-panel {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 24px;
}

.api-test-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1.5px solid var(--gray-200);
    box-shadow: var(--shadow);
    border-top: 3px solid var(--teal);
}

.code-output {
    background: var(--gray-900);
    color: #34d399;
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: 'Consolas', monospace;
    font-size: .83rem;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 80px;
    margin-top: 12px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%,100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .5;
        transform: scale(.8)
    }
}

.animate-in {
    animation: slideUp .4s ease both;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

        .footer-grid > :first-child {
            grid-column: 1 / -1;
        }

    .chart-grid {
        grid-template-columns: 1fr;
    }

    .tests-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Mobile-only nav items: hidden on desktop */
.mobile-only-item {
    display: none;
}

@media (max-width: 768px) {
    /* ── Burger menu ── */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .navbar-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        padding-top: 80px;
        padding-bottom: 24px;
        gap: 2px;
        z-index: 150;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

        .navbar-menu.open {
            display: flex;
        }
    /* Navbar stays above menu */
    .navbar {
        z-index: 200 !important;
    }

    .navbar-menu > li {
        list-style: none;
        padding: 0 6px;
    }

        .navbar-menu > li > a, .navbar-menu > li > button {
            display: block;
            padding: 12px 14px;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            color: var(--gray-700);
            text-decoration: none;
            transition: background .15s;
            width: 100%;
            text-align: left;
        }

            .navbar-menu > li > a:hover {
                background: var(--gray-100);
            }

            .navbar-menu > li > a.nav-active {
                background: #eef2ff;
                color: var(--primary);
            }
    /* Dropdown inside mobile: always show flat */
    .nav-dropdown-panel {
        position: static !important;
        display: block !important;
        box-shadow: none !important;
        border: none !important;
        background: #f8fafc !important;
        padding: 4px 0 4px 12px !important;
        margin: 4px 0 !important;
        border-radius: 8px !important;
        transform: none !important;
    }
    /* Show mobile-only items */
    .mobile-only-item {
        display: block;
    }
    /* Hide desktop lang + auth */
    #langDropWrapper {
        display: none !important;
    }

    .auth-area {
        display: none !important;
    }

    /* ── Layout ── */
    .hero {
        padding: 40px 0 36px;
    }

    .page-container, .footer-inner {
        padding: 0 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .hero-stat {
        border-right: none;
        padding: 0;
        margin: 0;
    }

    /* ── Test cards ── */
    .tests-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .test-card {
        padding: 22px 20px;
    }

        .test-card h3 {
            font-size: 1rem;
        }

    /* ── Quiz / Take ── */
    .option-label {
        padding: 12px 14px !important;
        font-size: .9rem !important;
    }

    #prevBtn, #nextBtn, #submitBtn {
        padding: 11px 18px !important;
        font-size: .875rem !important;
    }

    .quiz-dots {
        display: none;
    }

    /* ── Profile 2-col → 1-col ── */
    [style*="grid-template-columns:1fr 2fr"] {
        display: block !important;
    }

        [style*="grid-template-columns:1fr 2fr"] > * {
            margin-bottom: 16px;
        }

    /* ── Dashboard table → cards ── */
    .dash-table thead {
        display: none;
    }

    .dash-table tr {
        display: block;
        background: white;
        border-radius: 12px;
        border: 1.5px solid #e2e8f0;
        margin-bottom: 10px;
        padding: 14px 16px;
    }

    .dash-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0 !important;
        font-size: .82rem;
        border: none !important;
    }

        .dash-table td::before {
            content: attr(data-label);
            font-weight: 700;
            color: #64748b;
            font-size: .7rem;
            text-transform: uppercase;
            min-width: 60px;
        }

    /* ── DNA 3-col → 1 ── */
    [style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: 1fr 2fr"] {
        display: block !important;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    /* Score cards in result page */
    [style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Navbar height */
    .navbar-inner {
        height: 62px !important;
    }

    /* Hero */
    .hero h1 {
        font-size: 1.7rem !important;
    }

    .hero p {
        font-size: .9rem !important;
    }

    /* Test card button full width */
    .btn-start {
        font-size: .875rem !important;
    }

    /* Profile grid 2-col fields */
    [style*="grid-template-columns:1fr 1fr;gap:14px"] {
        display: block !important;
    }

        [style*="grid-template-columns:1fr 1fr;gap:14px"] > * {
            margin-bottom: 12px;
        }
}

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray-400);
}

.mt-4 {
    margin-top: 16px;
}

.mt-8 {
    margin-top: 32px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 32px;
}

.d-flex {
    display: flex;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-between {
    justify-content: space-between;
}

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

.w-100 {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   TEST INTRO PAGE
   ═══════════════════════════════════════════════════════════════ */
.test-intro-wrap {
    padding: 48px 0 72px;
    background: var(--gray-50);
}

.test-intro-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--gray-200);
    padding: 44px 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.test-meta-pills {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 26px;
}

.test-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gray-500);
    font-family: var(--font-display);
}

    .test-meta-pill.green {
        background: #f0fdf4;
        border-color: #bbf7d0;
        color: #15803d;
    }

.expect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    text-align: left;
    margin-top: 24px;
}

@media (max-width: 560px) {
    .expect-grid {
        grid-template-columns: 1fr;
    }
}

.expect-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.expect-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.expect-item strong {
    display: block;
    font-size: .875rem;
    font-weight: 700;
    color: var(--gray-900);
    font-family: var(--font-display);
}

.expect-item span {
    font-size: .8rem;
    color: var(--gray-400);
}

/* ═══════════════════════════════════════════════════════════════
   BLOG — force white text in dark featured block
   ═══════════════════════════════════════════════════════════════ */
[style*="background:linear-gradient(135deg,#0d1b3e"] h2,
[style*="background:linear-gradient(135deg, #0d1b3e"] h2,
[style*="background:linear-gradient(135deg,#0d1b3e"] p,
[style*="background:linear-gradient(135deg, #0d1b3e"] p {
    color: white;
}

/* Target the blog featured card specifically */
.blog-featured h2 {
    color: var(--white) !important;
}

.blog-featured p {
    color: rgba(255,255,255,.8) !important;
}

/* Result page category bar (was missing) */
.cat-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-800), var(--teal));
    transition: width 1s ease;
}

/* ═══════════════════════════════════════════════════════════════
   EYDNA MOBILE BURGER MENU
   ═══════════════════════════════════════════════════════════════ */

/* Burger button — hidden on desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #0d1b3e;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Dark overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1100;
    cursor: pointer;
}
.nav-overlay.active { display: block; }

/* Slide-in panel */
.nav-mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,.12);
}
.nav-mobile.open { transform: translateX(0); }

.nav-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1.5px solid #f1f5f9;
    flex-shrink: 0;
}

.nav-mobile-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #374151;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.nav-mobile-close:hover { background: #f1f5f9; }

.nav-mobile-links {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    flex: 1;
}
.nav-mobile-links > a {
    padding: 14px 20px;
    color: #0d1b3e;
    text-decoration: none;
    font-weight: 700;
    font-size: .975rem;
    border-bottom: 1px solid #f9fafb;
    display: block;
    transition: background .12s;
}
.nav-mobile-links > a:hover {
    background: #f0f4ff;
    color: #1247c9;
}

.nav-mobile-footer {
    padding: 16px 20px;
    border-top: 1.5px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Show burger, hide desktop nav on mobile */
@media (max-width: 900px) {
    .mobile-menu-btn  { display: flex !important; }
    .navbar-menu      { display: none !important; }
    .auth-area        { display: none !important; }
    #langDropWrapper  { display: none !important; }
    .site-logo        { height: 48px !important; }
    .navbar-inner     { height: auto !important; padding: 10px 16px !important; justify-content: space-between; }
    .navbar           { z-index: 1000 !important; }
}
