/* MBTI Test - Enhanced Design */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

#mbti-app {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #FFFFFF;
    padding: 0;
    letter-spacing: 0.3px;
    word-spacing: 2px;
}

#mbti-app h1, #mbti-app h2, #mbti-app h3, #mbti-app h4 {
    letter-spacing: 0.4px;
    word-spacing: 3px;
}

/* ========================================
   INTRO SECTION - Personality Assessment Card
   ======================================== */
#intro-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 20px 24px;
    background: transparent;
}

#intro-section *,
#intro-section *::before,
#intro-section *::after { box-sizing: border-box !important; }

/* CARD — always rounded */
.pa-card {
    width: 100%;
    max-width: 540px;
    background: #fff;
    border-radius: 28px;
    border: 0.5px solid rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.08), 6px 0 24px -4px rgba(249,115,22,0.18);
}

/* HERO */
.pa-hero {
    position: relative;
    padding: 36px 32px 28px;
    background: linear-gradient(135deg, #FFF9F3 0%, #FFF4EA 40%, #FED7AA 100%);
    overflow: hidden;
}

.pa-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
}
.pa-blob-1 { top: -40px; right: -30px; width: 180px; height: 180px; background: radial-gradient(circle, #F97316 0%, transparent 65%); opacity: 0.2; }
.pa-blob-2 { bottom: -60px; left: -40px; width: 200px; height: 200px; background: radial-gradient(circle, #DC2626 0%, transparent 65%); opacity: 0.15; }
.pa-blob-3 { top: 40%; left: 60%; width: 140px; height: 140px; background: radial-gradient(circle, #7C3AED 0%, transparent 65%); opacity: 0.10; filter: blur(24px); }

.pa-hero-inner { position: relative; }

.pa-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 10px;
}

.pa-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid rgba(0,0,0,0.06);
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pa-trust-badge-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F97316, #DC2626);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pa-trust-badge span {
    font-size: 10px;
    color: #111;
    font-weight: 600;
}

.pa-press {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #9A3412;
}
.pa-press-label { font-weight: 700; letter-spacing: 0.5px; }
.pa-press-pub { font-family: Georgia, serif; font-style: italic; color: #111; }

.pa-headline {
    font-family: Georgia, serif !important;
    font-size: 44px !important;
    font-weight: 500 !important;
    line-height: 0.92 !important;
    letter-spacing: -1.5px !important;
    margin: 0 0 14px !important;
    color: #111 !important;
    text-transform: none !important;
    word-spacing: normal !important;
    padding: 0 !important;
    text-align: left !important;
}

.pa-headline-grad {
    background: linear-gradient(135deg, #F97316 0%, #DC2626 50%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.pa-subhead {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 420px;
    text-align: left;
}

.pa-counter-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}
.pa-counter {
    font-family: Georgia, serif;
    font-size: 40px;
    font-weight: 500;
    color: #111;
    line-height: 0.9;
    letter-spacing: -1px;
}
.pa-counter-label { font-size: 11px; color: #9A3412; font-weight: 500; }

.pa-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #10B981;
    flex-wrap: wrap;
}
.pa-meta-delta { font-weight: 600; }
.pa-meta-sep { color: #9CA3AF; margin: 0 2px; }
.pa-meta-neutral { color: #6B7280; }

/* STAT STRIP */
.pa-stats {
    padding: 18px 32px;
    border-bottom: 0.5px solid #F3F4F6;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
.pa-stat { text-align: center; }
.pa-stat + .pa-stat { border-left: 0.5px solid #F3F4F6; }
.pa-stat-num {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    color: #111;
    line-height: 1;
}
.pa-stat-num small { font-size: 12px; }
.pa-stat-star { color: #F97316; font-size: 12px; }
.pa-stat-label {
    font-size: 9px;
    color: #9CA3AF;
    letter-spacing: 0.8px;
    margin-top: 3px;
    font-weight: 500;
}

/* SCIENCE BADGES */
.pa-badges {
    padding: 12px 32px;
    border-bottom: 0.5px solid #F3F4F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pa-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #374151;
    font-weight: 500;
}

/* CTA ZONE */
.pa-cta-zone { padding: 18px 32px 22px; }

.pa-cta-wrap { position: relative; }

.pa-cta-halo {
    position: absolute;
    inset: 4px;
    background: linear-gradient(90deg, #F97316, #DC2626);
    border-radius: 14px;
    filter: blur(16px);
    opacity: 0.35;
    pointer-events: none;
}

.pa-cta {
    position: relative;
    width: 100%;
    background: linear-gradient(90deg, #111 0%, #1a1a1a 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 1.8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
    font-family: inherit;
    min-height: 52px;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: transform 0.15s ease;
    text-transform: uppercase;
}

.pa-cta:hover { transform: translateY(-1px); }
.pa-cta:active { transform: translateY(0); }

.pa-cta-arrow {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F97316, #DC2626);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pa-cta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 12px;
    flex-wrap: wrap;
}

.pa-live {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pa-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 6px #10B981;
    animation: pa-pulse 2s ease-in-out infinite;
}
@keyframes pa-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.pa-live span { font-size: 10px; color: #6B7280; }
.pa-live strong { color: #111; }

.pa-joined {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pa-avatar-stack { display: flex; }
.pa-av {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #fff;
}
.pa-av + .pa-av { margin-left: -6px; }
.pa-av-1 { background: linear-gradient(135deg, #FDBA74, #F97316); }
.pa-av-2 { background: linear-gradient(135deg, #C4B5FD, #7C3AED); }
.pa-av-3 { background: linear-gradient(135deg, #FCA5A5, #DC2626); }
.pa-av-4 { background: linear-gradient(135deg, #FDE68A, #F59E0B); }

.pa-joined span { font-size: 10px; color: #6B7280; }
.pa-joined strong { color: #111; }

/* ============ INTRO: TABLET (≤640px) ============ */
@media (max-width: 640px) {
    #intro-section { padding: 60px 16px 20px; }
    .pa-card { border-radius: 24px; }
    .pa-hero { padding: 28px 24px 24px; }
    .pa-headline { font-size: 38px !important; letter-spacing: -1.2px !important; }
    .pa-counter { font-size: 36px; }
    .pa-stats { padding: 16px 24px; }
    .pa-badges { padding: 12px 24px; }
    .pa-cta-zone { padding: 16px 24px 20px; }
}

/* ============ INTRO: MOBILE — floating rounded card, no scroll (≤480px) ============ */
@media (max-width: 480px) {
    #intro-section {
        padding: 56px 12px 12px;
        padding: max(56px, calc(env(safe-area-inset-top) + 32px)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
        min-height: auto;
        background: transparent;
    }

    .pa-card {
        border-radius: 22px !important;
        border: 0.5px solid rgba(0,0,0,0.06) !important;
        box-shadow: 0 20px 60px rgba(0,0,0,0.06), 5px 0 20px -3px rgba(249,115,22,0.16) !important;
        max-width: 100% !important;
    }

    .pa-hero { padding: 22px 20px 18px; }
    .pa-hero-top { margin-bottom: 14px; }
    .pa-press { display: none; }

    .pa-headline { font-size: 30px !important; letter-spacing: -0.8px !important; margin-bottom: 8px !important; line-height: 0.95 !important; }
    .pa-headline br { display: none; }
    .pa-headline .pa-headline-grad::before { content: ' '; }

    .pa-subhead { font-size: 12px; margin-bottom: 14px; line-height: 1.5; }
    .pa-counter { font-size: 28px; }
    .pa-counter-label { font-size: 10px; }
    .pa-meta-extra { display: none; }
    .pa-meta-row { font-size: 9px; }

    .pa-stats { padding: 12px 20px; }
    .pa-stat-num { font-size: 17px; }
    .pa-stat-label { font-size: 7px; letter-spacing: 0.5px; }

    .pa-badges {
        padding: 10px 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 12px;
    }
    .pa-badge { font-size: 9px; gap: 5px; }
    .pa-badge svg { width: 11px; height: 11px; flex-shrink: 0; }

    .pa-cta-zone { padding: 14px 20px 18px; }
    .pa-cta {
        padding: 14px !important;
        font-size: 11px !important;
        min-height: 48px;
        letter-spacing: 1.5px;
    }
    .pa-cta-arrow { width: 30px; height: 30px; right: 8px; }
    .pa-cta-halo { filter: blur(12px); opacity: 0.3; }

    .pa-cta-footer { margin-top: 10px; }
    .pa-live span, .pa-joined span { font-size: 9px; }
}

/* ============ INTRO: VERY SMALL (≤360px) ============ */
@media (max-width: 360px) {
    #intro-section { padding: 44px 8px 8px; }
    .pa-card { border-radius: 18px !important; }
    .pa-hero { padding: 18px 16px 14px; }
    .pa-hero-top { margin-bottom: 10px; }
    .pa-trust-badge { padding: 4px 10px 4px 6px; }
    .pa-trust-badge span { font-size: 9px; }
    .pa-trust-badge-dot { width: 16px; height: 16px; }
    .pa-headline { font-size: 26px !important; }
    .pa-subhead { font-size: 11px; margin-bottom: 10px; }
    .pa-counter { font-size: 24px; }
    .pa-counter-label { font-size: 9px; }
    .pa-stats { padding: 10px 16px; }
    .pa-stat-num { font-size: 15px; }
    .pa-badges { padding: 8px 16px; gap: 4px 10px; }
    .pa-badge { font-size: 8px; }
    .pa-cta-zone { padding: 12px 16px 14px; }
    .pa-cta { padding: 12px !important; min-height: 44px; font-size: 10px !important; }
    .pa-cta-arrow { width: 28px; height: 28px; }
    .pa-cta-footer { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; }
}

/* ========================================
   PREPARING SECTION
   ======================================== */
/* =========================================================
   PREPARING / LOADER — premium designed version
   Backwards compatible: keeps #preparing-fill, #prep-step-N,
   .preparing-step-dot, .active/.done class hooks intact.
   ========================================================= */
#preparing-section {
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #FFFFFF;
    position: relative;
}

.preparing-stage {
    position: relative;
    width: 100%;
    max-width: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background decorative grid */
.prep-bg-grid {
    display: none;
}

.prep-bg-glow {
    display: none;
}

/* Floating particles */
.prep-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.prep-particles span {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #FB923C;
    opacity: 0;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
    animation: prepParticle 6s ease-in-out infinite;
}
.prep-particles span:nth-child(1){ left: 8%;  top: 22%; animation-delay: 0s;   }
.prep-particles span:nth-child(2){ left: 90%; top: 30%; animation-delay: .8s;  width:3px;height:3px; }
.prep-particles span:nth-child(3){ left: 14%; top: 70%; animation-delay: 1.6s; }
.prep-particles span:nth-child(4){ left: 86%; top: 78%; animation-delay: 2.4s; width:5px;height:5px; }
.prep-particles span:nth-child(5){ left: 50%; top: 8%;  animation-delay: 3.2s; width:3px;height:3px; }
.prep-particles span:nth-child(6){ left: 4%;  top: 50%; animation-delay: 4.0s; }
.prep-particles span:nth-child(7){ left: 94%; top: 56%; animation-delay: 1.2s; width:3px;height:3px; }
.prep-particles span:nth-child(8){ left: 50%; top: 92%; animation-delay: 2.8s; }

@keyframes prepParticle {
    0%   { opacity: 0; transform: translateY(0) scale(0.6); }
    20%  { opacity: 0.9; }
    50%  { transform: translateY(-22px) scale(1); }
    80%  { opacity: 0.7; }
    100% { opacity: 0; transform: translateY(-44px) scale(0.6); }
}

/* Main card */
.preparing-container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    background:
        linear-gradient(180deg, #FFFFFF 0%, #FFFBF7 100%);
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: 24px;
    padding: 28px 32px 24px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 30px 60px -20px rgba(249, 115, 22, 0.22),
        0 18px 40px -18px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(249, 115, 22, 0.04);
}

/* Top badge */
.prep-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    background: #FFF7ED;
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #C2410C;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.prep-badge-pulse {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #F97316;
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6);
    animation: prepBadgePulse 1.6s ease-out infinite;
}
@keyframes prepBadgePulse {
    0%   { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* Decoder + orbit wrapper */
.preparing-decoder-wrap {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prep-orbit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prep-orbit svg {
    width: 100%;
    height: 100%;
    transform-origin: center;
    animation: prepOrbitSpin 8s linear infinite;
}
.prep-orbit-arc { animation: none; }
.prep-orbit-arc-inner {
    transform-origin: 120px 120px;
    animation: prepOrbitSpinReverse 5s linear infinite;
}
@keyframes prepOrbitSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes prepOrbitSpinReverse {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

/* Decoder tiles */
.preparing-decoder {
    position: relative;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
}

.preparing-decoder .td-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.preparing-decoder .td-slot-window {
    position: relative;
    width: 42px;
    height: 54px;
    overflow: hidden;
    border-radius: 10px;
    background:
        linear-gradient(180deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-bottom: 3px solid #F97316;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 -10px 18px -8px rgba(249, 115, 22, 0.18) inset,
        0 6px 14px -4px rgba(249, 115, 22, 0.28),
        0 2px 4px rgba(15, 23, 42, 0.06);
    transform: translateY(0);
    animation: prepTileBob 2.4s ease-in-out infinite;
}

.preparing-decoder .td-slot:nth-child(1) .td-slot-window { animation-delay: 0s;   }
.preparing-decoder .td-slot:nth-child(2) .td-slot-window { animation-delay: .1s;  }
.preparing-decoder .td-slot:nth-child(3) .td-slot-window { animation-delay: .2s;  }
.preparing-decoder .td-slot:nth-child(4) .td-slot-window { animation-delay: .3s;  }

@keyframes prepTileBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

.preparing-decoder .td-slot-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    animation: prepTileShine 2.8s ease-in-out infinite;
}
.preparing-decoder .td-slot:nth-child(2) .td-slot-shine { animation-delay: .15s; }
.preparing-decoder .td-slot:nth-child(3) .td-slot-shine { animation-delay: .30s; }
.preparing-decoder .td-slot:nth-child(4) .td-slot-shine { animation-delay: .45s; }

@keyframes prepTileShine {
    0%, 60%, 100% { transform: translateX(-100%); }
    80%           { transform: translateX(100%); }
}

.preparing-decoder .td-strip {
    display: flex;
    flex-direction: column;
    animation: tdCycle 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.preparing-decoder .td-slot:nth-child(2) .td-strip { animation-delay: 0.2s; }
.preparing-decoder .td-slot:nth-child(3) .td-strip { animation-delay: 0.4s; }
.preparing-decoder .td-slot:nth-child(4) .td-strip { animation-delay: 0.6s; }

.preparing-decoder .td-strip span {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-weight: 800;
    font-size: 26px;
    color: #EA580C;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    letter-spacing: -0.02em;
}

@keyframes tdCycle {
    0%, 42% { transform: translateY(0); }
    58%, 100% { transform: translateY(-54px); }
}

.preparing-decoder .td-slot-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #9CA3AF;
    text-transform: uppercase;
}

/* Scanning beam */
.prep-scanbeam {
    position: absolute;
    left: -10px;
    right: -10px;
    height: 18px;
    top: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(249, 115, 22, 0.15) 40%,
        rgba(249, 115, 22, 0.55) 50%,
        rgba(249, 115, 22, 0.15) 60%,
        transparent 100%
    );
    filter: blur(2px);
    border-radius: 4px;
    pointer-events: none;
    animation: prepScanbeam 2.6s ease-in-out infinite;
    z-index: 1;
}
@keyframes prepScanbeam {
    0%   { transform: translateY(-10px); opacity: 0; }
    20%  { opacity: 1; }
    50%  { transform: translateY(56px); opacity: 1; }
    80%  { opacity: 0.6; }
    100% { transform: translateY(72px); opacity: 0; }
}

/* Title & subtitle */
.preparing-text {
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #1E293B 0%, #475569 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preparing-subtext {
    font-size: 13px;
    color: #94A3B8;
    margin: 0 0 22px;
    font-weight: 500;
}
.prep-dot-sep {
    color: #F97316;
    margin: 0 6px;
    font-weight: 700;
}

/* Progress bar */
.preparing-progress-wrap {
    margin-bottom: 22px;
}

.preparing-progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: linear-gradient(180deg, #F1F5F9 0%, #F8FAFC 100%);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) inset;
}

.preparing-progress-fill {
    position: relative;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #EA580C 0%, #F97316 50%, #FB923C 100%);
    border-radius: 999px;
    box-shadow:
        0 0 12px rgba(249, 115, 22, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.4) inset;
    animation: preparingFill 8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    overflow: hidden;
}

.prep-fill-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: prepFillShimmer 1.2s ease-in-out infinite;
}
@keyframes prepFillShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.prep-progress-ticks {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 25%;
    pointer-events: none;
}
.prep-progress-ticks i {
    width: 1px;
    height: 100%;
    background: rgba(15, 23, 42, 0.06);
}

@keyframes preparingFill {
    0%   { width: 0%; }
    30%  { width: 35%; }
    60%  { width: 65%; }
    85%  { width: 90%; }
    100% { width: 100%; }
}

/* Steps */
.preparing-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    background: rgba(248, 250, 252, 0.6);
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.preparing-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #94A3B8;
    font-weight: 500;
    padding: 6px 0;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.preparing-step.active {
    color: #0F172A;
    font-weight: 600;
}

.preparing-step.done {
    color: #059669;
}

.preparing-step-dot {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 1;
}

.preparing-step.active .preparing-step-dot {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF7ED 100%);
    color: #EA580C;
    border-color: #F97316;
    box-shadow:
        0 0 0 4px rgba(249, 115, 22, 0.15),
        0 4px 10px -2px rgba(249, 115, 22, 0.4);
    animation: prepDotPulse 1.4s ease-in-out infinite;
}

@keyframes prepDotPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15), 0 4px 10px -2px rgba(249, 115, 22, 0.4); }
    50%      { box-shadow: 0 0 0 7px rgba(249, 115, 22, 0.08), 0 4px 14px -2px rgba(249, 115, 22, 0.5); }
}

.preparing-step.done .preparing-step-dot {
    background: linear-gradient(180deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    border-color: #059669;
    box-shadow: 0 4px 10px -2px rgba(16, 185, 129, 0.4);
    animation: none;
}

/* Connecting trail line between steps */
.prep-step-trail {
    position: absolute;
    left: 11px;
    top: 30px;
    width: 2px;
    height: 14px;
    background: #E2E8F0;
    border-radius: 2px;
    transition: background 0.4s ease;
}
.preparing-step:last-child .prep-step-trail { display: none; }
.preparing-step.done .prep-step-trail {
    background: linear-gradient(180deg, #10B981 0%, #E2E8F0 100%);
}

/* Footer trust line */
.prep-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #94A3B8;
    padding-top: 14px;
    border-top: 1px dashed rgba(15, 23, 42, 0.08);
}
.prep-footer-icon {
    color: #10B981;
}

/* Progress Header - Sticky */
.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto 30px;
    gap: 20px;
    position: sticky;
    top: 0;
    background: #FFFFFF;
    z-index: 100;
    padding: 15px 20px;
    border-bottom: 1px solid #F3F4F6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-percent, .progress-step {
    font-size: 14px;
    color: #EA580C;
    font-weight: 600;
    white-space: nowrap;
}

.progress-step {
    display: none;
}

.progress-line {
    flex: 1;
    height: 6px;
    background: #FED7AA;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #F97316, #EA580C);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Main Heading */
.main-heading {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Legend Box - removed, labels now inside cards */
.legend-box { display: none; }

/* Questions List */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 120px; /* Extra space for sticky submit button */
}

/* Question Card */
.question-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px 30px;
    border: 2px solid #FED7AA;
    position: relative;
    cursor: pointer;
    /* Default blurred/dimmed state */
    filter: blur(3px);
    opacity: 0.45;
    transform: scale(0.96);
    /* Smooth coordinated transition for ALL visual properties */
    transition:
        filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    will-change: filter, opacity, transform;
}

/* Active/In-Focus Question - crystal clear */
.question-card.in-focus {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
    border-color: #F97316;
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.2);
    z-index: 10;
    cursor: default;
}

.question-card:hover:not(.locked) {
    border-color: #FDBA74;
}

/* Answered questions - blurred back but with a hint they're done */
.question-card.answered {
    border-color: #FDBA74;
    background: linear-gradient(135deg, #FFF7ED 0%, #ffffff 100%);
    filter: blur(2.5px);
    opacity: 0.5;
}

/* Answered questions that are in focus (user scrolling back) */
.question-card.answered.in-focus {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.2);
}

/* Question Number Row */
.question-number-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.question-num-circle {
    padding: 6px 16px;
    border-radius: 20px;
    background: #FFF7ED;
    color: #F97316;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.question-num-label {
    font-size: 13px;
    color: #9CA3AF;
}

/* Question Badge (legacy) */
.question-badge { display: none; }
.question-content { display: none; }

/* Question Text V2 - Serif like SVG design */
.question-text-v2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    color: #1F2937;
    line-height: 1.5;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    padding: 0 10px;
    letter-spacing: -0.3px;
    word-spacing: 1px;
}

/* Options Row V2 - Pill Buttons with Emoji Faces */
.options-row-v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0;
}

/* Hide old options */
.options-row { display: none; }

.option-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 8px 8px;
    border-radius: 30px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.face-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.pill-num {
    font-size: 14px;
    font-weight: 600;
}

/* Pill Colors */
.option-pill.sd { background: #FEE2E2; }
.option-pill.sd .pill-num { color: #991B1B; }

.option-pill.d { background: #FEF9C3; }
.option-pill.d .pill-num { color: #92400E; }

.option-pill.n { background: #F3F4F6; }
.option-pill.n .pill-num { color: #4B5563; }

.option-pill.a { background: #ECFDF5; }
.option-pill.a .pill-num { color: #166534; }

.option-pill.sa { background: #BBF7D0; }
.option-pill.sa .pill-num { color: #15803D; }

/* Hover */
.option-pill:hover {
    transform: scale(1.08);
}
.option-pill.sd:hover { box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25); }
.option-pill.d:hover { box-shadow: 0 4px 16px rgba(250, 204, 21, 0.3); }
.option-pill.n:hover { box-shadow: 0 4px 16px rgba(156, 163, 175, 0.3); }
.option-pill.a:hover { box-shadow: 0 4px 16px rgba(74, 222, 128, 0.3); }
.option-pill.sa:hover { box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3); }

/* Selected State */
.option-pill.selected {
    transform: scale(1.1);
    border-width: 2px;
}
.option-pill.sd.selected { border-color: #DC2626; box-shadow: 0 4px 20px rgba(220, 38, 38, 0.35); }
.option-pill.d.selected { border-color: #FACC15; box-shadow: 0 4px 20px rgba(250, 204, 21, 0.35); }
.option-pill.n.selected { border-color: #6B7280; box-shadow: 0 4px 20px rgba(107, 114, 128, 0.35); }
.option-pill.a.selected { border-color: #22C55E; box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35); }
.option-pill.sa.selected { border-color: #16A34A; box-shadow: 0 4px 20px rgba(22, 163, 74, 0.35); }

/* Options Labels */
.options-labels {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px 0;
}

.options-labels span {
    font-size: 12px;
    color: #9CA3AF;
    letter-spacing: 0.2px;
}

/* Pulse Animation on Click */
@keyframes pulse-click {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.18); }
    100% { transform: scale(1.1); }
}

.option-btn.selected {
    animation: pulse-click 0.3s ease;
}

/* Submit Test Button */
.submit-test-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 20px;
    z-index: 999;
    pointer-events: none; /* Allow clicks to pass through the wrapper */
    opacity: 0; /* HIDDEN BY DEFAULT */
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.submit-test-wrap.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-submit-test {
    background: linear-gradient(135deg, #EA580C, #C2410C);
    color: #fff;
    border: none;
    padding: 16px 50px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
    pointer-events: all; /* Button itself is clickable */
}

.btn-submit-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.45);
}

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

/* Incomplete Test Popup */
.incomplete-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.incomplete-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    animation: modal-appear 0.3s ease;
}

.incomplete-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

.incomplete-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
}

.incomplete-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 24px;
}

.incomplete-desc strong {
    color: #EA580C;
}

.incomplete-bar-track {
    height: 12px;
    background: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.incomplete-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #EA580C, #FB923C);
    border-radius: 6px;
    transition: width 0.4s ease;
    width: 0%;
}

.incomplete-remaining {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 24px;
}

.btn-continue-test {
    background: linear-gradient(135deg, #EA580C, #C2410C);
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
    width: 100%;
}

.btn-continue-test:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.4);
}

/* ========================================
   MODAL - Locked Preview + Form
   Pixel-perfect match to unlock-report-modal-mobile.html
   ======================================== */
/* ============================================================
   ▒  MODAL: CONFIDENTIAL DOSSIER (v2)  ▒
   Editorial premium lead-capture modal.
   IDs preserved: #user-modal, #user-form, #first-name,
   #last-name, #user-email, #user-age, #country-code,
   #user-phone, #modal-close, #phone-error
   ============================================================ */

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

.modal-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(124,45,18,0.35), transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(0,0,0,0.55), transparent 55%),
        rgba(8, 5, 3, 0.72);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-container {
    width: 100%;
    max-width: 880px;
    background: #0A0604;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    position: relative;
    box-shadow:
        0 50px 120px -30px rgba(0,0,0,0.65),
        0 0 0 1px rgba(253,186,116,0.08),
        inset 0 1px 0 rgba(255,255,255,0.04);
    animation: modal-appear 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    margin: 0 auto;
    isolation: isolate;
}

/* Subtle film-grain layer over entire modal */
.modal-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Prevent form content from overflowing the card */
.modal-right { overflow: hidden; }
.modal-right form { max-width: 100%; overflow: hidden; }
.modal-field-row { max-width: 100%; overflow: hidden; }
.modal-field { overflow: visible; min-width: 0; }

@keyframes modal-appear {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── LEFT: Dossier panel ───────────────────────────────── */
.modal-left {
    padding: 36px 34px 28px;
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 70% 0%, rgba(249,115,22,0.32) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(124,45,18,0.28) 0%, transparent 60%),
        linear-gradient(180deg, #0E0805 0%, #050302 100%);
    min-height: 540px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Hairline corner ornaments — like a print frame */
.ml-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: rgba(253,186,116,0.55);
    border-style: solid;
    border-width: 0;
    pointer-events: none;
    z-index: 3;
}
.ml-corner-tl { top: 16px; left: 16px;     border-top-width: 1px; border-left-width: 1px; }
.ml-corner-tr { top: 16px; right: 16px;    border-top-width: 1px; border-right-width: 1px; }
.ml-corner-bl { bottom: 16px; left: 16px;  border-bottom-width: 1px; border-left-width: 1px; }
.ml-corner-br { bottom: 16px; right: 16px; border-bottom-width: 1px; border-right-width: 1px; }

/* Header row */
.ml-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

.ml-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #FDBA74;
    letter-spacing: 2.2px;
    font-weight: 600;
    text-transform: uppercase;
}

.ml-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #F97316;
    box-shadow: 0 0 0 0 rgba(249,115,22,0.6);
    animation: ml-pulse 2s ease-out infinite;
}
@keyframes ml-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(249,115,22,0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(249,115,22,0); }
    100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}

.ml-id {
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 10px;
    color: rgba(253,186,116,0.7);
    letter-spacing: 1.5px;
    padding: 4px 9px;
    border: 1px solid rgba(253,186,116,0.25);
    border-radius: 4px;
    background: rgba(253,186,116,0.04);
}

/* Seal stage with rotating ring */
.ml-seal-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 22px 0 14px;
    height: 200px;
}

.ml-seal-ring {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 220px;
    height: 220px;
    max-width: 100%;
    animation: ml-rotate 60s linear infinite;
}
@keyframes ml-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.ml-seal {
    width: 180px;
    height: 180px;
    max-width: 70%;
    filter: blur(1.2px);
    opacity: 0.92;
    position: relative;
    z-index: 1;
}

.ml-lock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(8,5,3,0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(253,186,116,0.45);
    border-radius: 999px;
    padding: 9px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.ml-lock-badge span {
    font-size: 10.5px;
    color: #FDBA74;
    letter-spacing: 2.2px;
    font-weight: 600;
}

/* Type meta */
.ml-meta {
    text-align: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.ml-type-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    color: #fff;
    font-weight: 500;
    line-height: 1;
    filter: blur(5px);
    opacity: 0.55;
    letter-spacing: 0.3px;
}
.ml-type-sub {
    font-size: 11px;
    color: #FDBA74;
    margin-top: 6px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    filter: blur(4px);
    opacity: 0.55;
    font-weight: 500;
}

/* Stat bars (blurred preview) */
.ml-bars {
    display: grid;
    gap: 8px;
    filter: blur(3.5px);
    opacity: 0.55;
    margin-bottom: auto;
    padding-bottom: 12px;
}
.ml-bar {
    display: grid;
    grid-template-columns: 64px 1fr 24px;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(253,186,116,0.08);
    border-radius: 8px;
    padding: 8px 11px;
}
.ml-bar-label {
    font-size: 9px;
    color: #FDBA74;
    letter-spacing: 1.2px;
    font-weight: 600;
}
.ml-bar-track {
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}
.ml-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #F97316, #FDBA74);
    border-radius: 2px;
}
.ml-bar-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    color: #FDBA74;
    text-align: right;
}

/* Footer dossier strip */
.ml-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(253,186,116,0.12);
    position: relative;
    z-index: 1;
}
.ml-footer-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.ml-footer-label {
    font-size: 9px;
    color: rgba(253,186,116,0.55);
    letter-spacing: 1.4px;
    font-weight: 600;
}
.ml-footer-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    color: #FDBA74;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.ml-footer-divider {
    width: 1px;
    height: 18px;
    background: rgba(253,186,116,0.15);
}

/* ─── RIGHT: Form panel ────────────────────────────────── */
.modal-right {
    background: #FFFEFB;
    padding: 36px 36px 28px;
    position: relative;
    background-image:
        radial-gradient(ellipse at 100% 0%, rgba(249,115,22,0.04) 0%, transparent 50%),
        linear-gradient(180deg, #FFFEFB 0%, #FFF8F0 100%);
}

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

.modal-step-label {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.msl-num {
    font-size: 14px;
    color: #EA580C;
    font-weight: 700;
}
.msl-slash {
    font-size: 14px;
    color: #D1D5DB;
    margin: 0 1px;
}
.msl-total {
    font-size: 14px;
    color: #9CA3AF;
    font-weight: 500;
}
.msl-divider {
    display: inline-block;
    width: 18px;
    height: 1px;
    background: #E5E7EB;
    margin: 0 8px;
    transform: translateY(-3px);
}
.msl-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 10.5px;
    color: #6B7280;
    letter-spacing: 1.6px;
    font-weight: 600;
}

.modal-close-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #F3F4F6 !important;
    border: 1px solid #E5E7EB !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #6B7280 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    padding: 0 !important;
    box-shadow: none !important;
    font-size: 0 !important;
}
.modal-close-btn:hover,
.modal-close-btn:active {
    background: #FEE7D6 !important;
    color: #EA580C !important;
    border-color: #FED7AA !important;
    transform: rotate(90deg);
}

.modal-form-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 34px;
    font-weight: 500;
    color: #0F0A06;
    line-height: 1.05;
    margin: 0 0 10px;
    letter-spacing: -0.4px;
    text-transform: none !important;
}
.modal-form-title em {
    font-style: italic;
    color: #EA580C;
    background: linear-gradient(120deg, #F97316 0%, #DC2626 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-form-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #6B7280;
    margin: 0 0 22px;
    padding: 5px 11px;
    background: #FFF8F0;
    border: 1px solid #FED7AA;
    border-radius: 999px;
    line-height: 1;
}
.modal-form-subtitle svg { color: #EA580C; flex-shrink: 0; }

/* Form field rows */
.modal-field-row {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}
.modal-row-two { grid-template-columns: 1fr 1fr; }
.modal-row-two > *,
.modal-row-split > * { min-width: 0 !important; }
.modal-row-split { grid-template-columns: 0.7fr 1.3fr; margin-bottom: 22px; }

/* Field — premium underline-revealed treatment */
.modal-field {
    position: relative;
    background: #FFF8F0 !important;
    border: 1px solid #FFE4C7 !important;
    border-radius: 12px !important;
    padding: 10px 14px 12px !important;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    cursor: text;
    min-height: 60px;
    display: block !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.modal-field:hover {
    border-color: #FED7AA !important;
    background: #FFFAF3 !important;
}

.modal-field:focus-within {
    border-color: #FDBA74 !important;
    background: #FFFFFF !important;
    box-shadow:
        0 0 0 4px rgba(249,115,22,0.08),
        0 4px 12px -2px rgba(249,115,22,0.12) !important;
}

.modal-field-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
    font-size: 9.5px !important;
    color: #C2410C !important;
    font-weight: 700 !important;
    letter-spacing: 1.4px;
    display: block;
    margin-bottom: 2px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    transition: color 0.25s ease;
}
.modal-field:focus-within .modal-field-label { color: #EA580C !important; }

/* Animated underline accent */
.mf-underline {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 1px;
    background: linear-gradient(90deg, #F97316, #DC2626);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    border-radius: 1px;
}
.modal-field:focus-within .mf-underline { transform: scaleX(1); }

.modal-field input,
.modal-field input[type="text"],
.modal-field input[type="email"],
.modal-field input[type="number"],
.modal-field input[type="tel"],
#user-form input,
#user-form select {
    width: 100% !important;
    border: 0 none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    font-size: 16px !important;
    color: #0F0A06 !important;
    outline: 0 none !important;
    outline-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-weight: 500;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    min-height: 22px;
    border-radius: 0 !important;
    height: auto !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: 0.2px;
}

.modal-field input::placeholder,
#user-form input::placeholder { color: #D8B79A !important; font-weight: 400; }

.modal-field input:focus,
.modal-field input:active,
#user-form input:focus,
#user-form input:active,
#user-form select:focus {
    border: 0 none !important;
    border-width: 0 !important;
    outline: 0 none !important;
    outline-width: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background: transparent !important;
}

/* Remove number spinners */
.modal-field input[type="number"],
#user-form input[type="number"] { -moz-appearance: textfield !important; }
.modal-field input[type="number"]::-webkit-inner-spin-button,
.modal-field input[type="number"]::-webkit-outer-spin-button,
#user-form input[type="number"]::-webkit-inner-spin-button,
#user-form input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none !important; margin: 0; }

/* Phone field with country code select */
.modal-phone-wrap {
    display: flex !important;
    gap: 0 !important;
    align-items: center;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
}

/* Vertical separator between country code and phone */
.modal-phone-wrap::after {
    content: '';
    position: absolute;
    left: 78px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: #FED7AA;
    pointer-events: none;
}

.modal-country-select,
#user-form .modal-country-select,
select.modal-country-select,
#country-code {
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    flex-shrink: 0;
    padding: 0 18px 0 0 !important;
    margin-right: 12px !important;
    border: 0 none !important;
    border-width: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    font-size: 14px !important;
    font-weight: 600;
    color: #0F0A06 !important;
    cursor: pointer;
    outline: 0 none !important;
    outline-width: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23EA580C'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 4px center !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border-radius: 0 !important;
    height: auto !important;
    line-height: 1.4 !important;
    text-transform: none !important;
}

.modal-phone-input,
#user-form .modal-phone-input,
input.modal-phone-input,
#user-phone {
    flex: 1 !important;
    padding: 0 0 0 4px !important;
    border: 0 none !important;
    border-width: 0 !important;
    font-size: 16px !important;
    outline: 0 none !important;
    outline-width: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #0F0A06 !important;
    font-family: inherit !important;
    font-weight: 500;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border-radius: 0 !important;
    height: auto !important;
    margin: 0 !important;
    min-width: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    line-height: 1.4 !important;
    width: auto !important;
}

.modal-phone-input::placeholder,
#user-phone::placeholder { color: #D8B79A !important; }

.phone-error {
    font-size: 11px;
    color: #DC2626;
    margin-top: 6px;
    padding-left: 14px;
    display: block;
    font-weight: 500;
}

/* Submit button — wax-seal CTA */
.btn-unlock {
    position: relative;
    width: 100% !important;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 50%, #DC2626 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 17px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 700;
    letter-spacing: 1.4px;
    cursor: pointer;
    overflow: hidden;
    margin-top: 8px;
    min-height: 56px;
    transition: transform 0.18s ease, box-shadow 0.25s ease;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow:
        0 8px 20px -4px rgba(220,38,38,0.45),
        0 2px 4px rgba(220,38,38,0.2),
        inset 0 1px 0 rgba(255,255,255,0.25) !important;
    isolation: isolate;
    display: block;
}

.btn-unlock-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.btn-unlock-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
    pointer-events: none;
}

.btn-unlock:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 32px -6px rgba(220,38,38,0.55),
        0 4px 8px rgba(220,38,38,0.25),
        inset 0 1px 0 rgba(255,255,255,0.3) !important;
}
.btn-unlock:hover .btn-unlock-shine { transform: translateX(100%); }
.btn-unlock:hover .btn-unlock-arrow { transform: translateX(3px); }
.btn-unlock-arrow { transition: transform 0.25s ease; }

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

/* Trust strip */
.modal-trust {
    list-style: none;
    margin: 14px 0 0;
    padding: 10px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px dashed #FED7AA;
    border-bottom: 1px dashed #FED7AA;
}
.mt-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #6B7280;
    font-weight: 500;
    letter-spacing: 0.2px;
}
.mt-item svg { color: #EA580C; flex-shrink: 0; }
.mt-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #FED7AA;
}

/* Social proof */
.modal-social-proof {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 12px;
    color: #6B7280;
}
.msp-avatars {
    display: flex;
    align-items: center;
}
.msp-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFEFB;
    margin-left: -7px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.msp-avatar:first-child { margin-left: 0; }
.msp-text strong { color: #0F0A06; font-weight: 700; }
.msp-live {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #DC2626;
    padding: 2px 6px;
    background: #FEE2E2;
    border-radius: 4px;
}
.msp-live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #DC2626;
    animation: ml-pulse 1.4s ease-out infinite;
}

/* ============ MODAL: STACKS TO 1 COLUMN (tablets & phones) ============ */
@media (max-width: 820px) {
    .modal-overlay {
        padding: 12px !important;
        align-items: center !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    .modal-container {
        grid-template-columns: 1fr !important;
        max-width: 460px !important;
        width: calc(100vw - 24px) !important;
        border-radius: 22px !important;
        max-height: none !important;
        min-height: auto !important;
        margin: 0 auto !important;
        overflow: hidden !important;
    }
    /* Compact dossier banner on top */
    .modal-left {
        min-height: auto !important;
        padding: 16px 20px 14px !important;
        display: grid !important;
        grid-template-columns: 78px 1fr auto !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        gap: 4px 14px !important;
        column-gap: 14px !important;
    }
    .ml-corner-tl, .ml-corner-tr { display: block; top: 10px; }
    .ml-corner-tl { left: 10px; }
    .ml-corner-tr { right: 10px; }
    .ml-corner-bl, .ml-corner-br { display: none !important; }

    .ml-header {
        grid-column: 1 / -1;
        margin-bottom: 4px !important;
    }
    .ml-eyebrow { font-size: 9px !important; letter-spacing: 1.8px !important; }
    .ml-id { font-size: 9px !important; padding: 3px 7px !important; }

    .ml-seal-stage {
        grid-column: 1 !important;
        grid-row: 2 !important;
        margin: 0 !important;
        height: 78px !important;
        width: 78px !important;
    }
    .ml-seal-ring { width: 86px !important; height: 86px !important; }
    .ml-seal { width: 64px !important; height: 64px !important; max-width: 64px !important; }
    .ml-lock-badge {
        padding: 3px 8px !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    .ml-lock-badge span { font-size: 8px !important; letter-spacing: 1.3px !important; }
    .ml-lock-badge svg { width: 9px !important; height: 9px !important; }

    .ml-meta {
        grid-column: 2 !important;
        grid-row: 2 !important;
        text-align: left !important;
        margin: 0 !important;
    }
    .ml-type-name { font-size: 17px !important; filter: blur(3.5px) !important; opacity: 0.6 !important; }
    .ml-type-sub { font-size: 9.5px !important; margin-top: 3px !important; filter: blur(2.5px) !important; opacity: 0.6 !important; letter-spacing: 1.4px !important; }

    /* Hide blurred bars on mobile — too small to register */
    .ml-bars { display: none !important; }

    .ml-footer {
        grid-column: 3 !important;
        grid-row: 2 !important;
        grid-template-columns: auto !important;
        grid-template-rows: auto !important;
        padding-top: 0 !important;
        border-top: none !important;
        gap: 2px !important;
        text-align: right !important;
        align-items: flex-end !important;
    }
    .ml-footer-cell { align-items: flex-end !important; }
    .ml-footer-cell:not(:first-child) { display: none !important; }
    .ml-footer-divider { display: none !important; }
    .ml-footer-label { font-size: 8px !important; letter-spacing: 1.2px !important; }
    .ml-footer-val { font-size: 14px !important; }

    /* Form panel */
    .modal-right { padding: 24px 22px 22px !important; }
    .modal-form-header { margin-bottom: 14px !important; }
    .modal-form-title { font-size: 28px !important; }
    .modal-form-subtitle { margin-bottom: 16px !important; font-size: 12px !important; padding: 4px 10px !important; }

    .msl-num, .msl-slash, .msl-total { font-size: 13px !important; }
    .msl-text { font-size: 9.5px !important; letter-spacing: 1.4px !important; }
    .msl-divider { width: 14px !important; margin: 0 6px !important; }

    /* Close button */
    .modal-close-btn {
        width: 34px !important;
        height: 34px !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: 10 !important;
    }

    /* Form fields */
    .modal-field { padding: 9px 13px 11px !important; min-height: 54px !important; }
    .modal-field-label { font-size: 9px !important; margin-bottom: 2px !important; letter-spacing: 1.2px !important; }
    .modal-field-row { gap: 10px !important; margin-bottom: 10px !important; }
    .modal-row-split { grid-template-columns: 0.7fr 1.3fr !important; margin-bottom: 16px !important; }
    .mf-underline { left: 13px; right: 13px; bottom: 5px; }
    .modal-phone-wrap::after { left: 76px; }
    .btn-unlock { padding: 15px !important; min-height: 52px !important; font-size: 13px !important; margin-top: 6px !important; letter-spacing: 1.2px !important; }

    .modal-trust { gap: 8px !important; padding: 9px 0 !important; }
    .mt-item { font-size: 10.5px !important; }
}

/* ============ VERY SMALL phones (iPhone SE ≤380px) ============ */
@media (max-width: 380px) {
    .modal-overlay { padding: 8px !important; }
    .modal-container { width: calc(100vw - 16px) !important; border-radius: 20px !important; }
    .modal-left {
        padding: 14px 16px 12px !important;
        grid-template-columns: 64px 1fr auto !important;
        column-gap: 12px !important;
    }
    .ml-seal-stage { height: 64px !important; width: 64px !important; }
    .ml-seal-ring { width: 72px !important; height: 72px !important; }
    .ml-seal { width: 54px !important; height: 54px !important; max-width: 54px !important; }
    .ml-lock-badge { padding: 2px 6px !important; }
    .ml-lock-badge span { font-size: 7.5px !important; letter-spacing: 1.2px !important; }
    .ml-type-name { font-size: 15px !important; }
    .ml-type-sub { font-size: 8.5px !important; }
    .ml-footer-val { font-size: 12px !important; }

    .modal-right { padding: 20px 18px 20px !important; }
    .modal-form-title { font-size: 24px !important; }
    .modal-form-subtitle { margin-bottom: 12px !important; font-size: 11.5px !important; }
    .modal-field { padding: 8px 11px 10px !important; min-height: 50px !important; }
    .modal-field-label { font-size: 8.5px !important; }
    .modal-field-row { gap: 8px !important; margin-bottom: 8px !important; }
    .modal-row-split { grid-template-columns: 0.65fr 1.35fr !important; margin-bottom: 14px !important; }
    .mf-underline { left: 11px; right: 11px; }
    .modal-phone-wrap::after { left: 70px; }
    .modal-country-select { width: 70px !important; min-width: 70px !important; max-width: 70px !important; margin-right: 10px !important; font-size: 13px !important; }
    .btn-unlock { padding: 13px !important; min-height: 48px !important; font-size: 12.5px !important; }
    .mt-item { font-size: 10px !important; }
    .msp-text { font-size: 11px !important; }
}

/* Landscape phone */
@media (max-height: 520px) and (orientation: landscape) {
    .modal-overlay { padding: 12px !important; }
    .modal-container {
        grid-template-columns: 1fr 1fr !important;
        max-width: 800px !important;
    }
    .modal-left { min-height: auto !important; padding: 20px !important; display: flex !important; }
    .ml-seal-stage { height: 130px !important; margin: 12px 0 !important; }
    .ml-seal-ring { width: 150px !important; height: 150px !important; }
    .ml-seal { width: 120px !important; height: 120px !important; }
    .ml-type-name { font-size: 18px !important; }
    .ml-bars { display: none !important; }
    .modal-right { padding: 22px !important; }
    .modal-form-title { font-size: 24px !important; }
    .modal-form-subtitle { margin-bottom: 12px !important; }
}

.btn-primary {
    background: linear-gradient(90deg, #F97316 0%, #DC2626 100%);
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-gold:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background: #fff;
    color: #F97316;
    border: 2px solid #F97316;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 30px auto;
}

.btn-outline:hover {
    background: #F97316;
    color: #fff;
}

/* Loading Section */
#loading-section {
    max-width: 500px;
    margin: 80px auto;
    text-align: center;
}

.loading-box {
    background: #fff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.15);
}

.loading-anim {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    border-radius: 20px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.loading-anim span {
    font-size: 40px;
    color: #fff;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid #F97316;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

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

.loading-box h2 {
    color: #1f2937;
    margin-bottom: 10px;
}

.loading-box > p {
    color: #6b7280;
    margin-bottom: 25px;
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.loading-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #F97316, #EA580C);
    transition: width 0.2s;
}

.loading-percent {
    color: #F97316;
    font-weight: 600;
}

/* Results Section */
#results-section {
    max-width: 780px;
    margin: 0 auto;
    padding: 0;
    background: #FBF6EC;
    border-radius: 24px;
}

.results-header {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 50px;
    position: relative;
}

.results-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, #F97316, #22c55e, #f59e0b);
    border-radius: 2px;
}

.results-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.results-left, .results-right {
    flex: 1;
}

.congrats-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.1);
}

.congrats-card h2 {
    color: #F97316;
    font-size: 24px;
    margin-bottom: 10px;
}

.congrats-card h3 {
    color: #1f2937;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.congrats-card > p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 20px;
}

.validation-badge, .rarity-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 12px;
}

.badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.badge-icon.green { background: #22c55e; }
.badge-icon.gold { background: #f59e0b; }

.validation-badge strong, .rarity-badge strong {
    display: block;
    color: #1f2937;
}

.validation-badge small, .rarity-badge small {
    color: #6b7280;
    font-size: 13px;
}

.results-right {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.1);
}

.results-right h4 {
    font-size: 13px;
    color: #6b7280;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

/* Trait Bars */
.trait-row {
    margin-bottom: 20px;
}

.trait-header {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.trait-header strong {
    font-size: 18px;
    color: #1f2937;
}

.trait-header span {
    font-size: 14px;
    color: #6b7280;
}

.trait-track {
    height: 12px;
    background: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.trait-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease;
}

.trait-fill.ei { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.trait-fill.sn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.trait-fill.tf { background: linear-gradient(90deg, #22c55e, #4ade80); }
.trait-fill.jp { background: linear-gradient(90deg, #F97316, #FB923C); }

.trait-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 5px;
}

/* Type Reveal */
.type-reveal-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.1);
}

.type-reveal-card small {
    color: #6b7280;
}

.type-letters {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: 12px;
    background: linear-gradient(135deg, #F97316, #EA580C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 15px 0;
}

.type-nickname {
    font-size: 22px;
    color: #F97316;
    font-style: italic;
    margin-bottom: 25px;
}

.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Description & Traits */
.type-description {
    background: #faf8ff;
    border-radius: 16px;
    padding: 25px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 25px;
    border-left: 4px solid #F97316;
}

.traits-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.traits-tags span {
    background: linear-gradient(135deg, #FFF7ED, #FFF7ED);
    color: #EA580C;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.detail-card {
    background: #faf8ff;
    border-radius: 16px;
    padding: 25px;
}

.detail-card h3 {
    color: #1f2937;
    margin-bottom: 15px;
    font-size: 18px;
}

.detail-card ul {
    list-style: none;
}

.detail-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #4b5563;
    font-size: 14px;
}

.detail-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #F97316;
}

.detail-card p {
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

.careers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.careers-grid span {
    background: #fff;
    padding: 8px 14px;
    border-radius: 15px;
    font-size: 13px;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    #mbti-app {
        padding: 15px 10px;
    }
    
    /* Intro Section Mobile */
    .intro-container {
        padding: 40px 24px;
    }
    
    .intro-icon {
        width: 80px;
        height: 80px;
    }
    
    .intro-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .intro-title {
        font-size: 26px;
    }
    
    .intro-subtitle {
        font-size: 14px;
    }
    
    .intro-feature {
        padding: 14px 16px;
    }
    
    .feature-icon {
        font-size: 20px;
        width: 36px;
        height: 36px;
    }
    
    .feature-text {
        font-size: 14px;
    }
    
    .btn-begin-assessment {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    /* Preparing Section Mobile */
    #preparing-section {
        min-height: 70vh;
        padding: 16px 14px;
    }
    .preparing-stage { max-width: 100%; }
    .preparing-container {
        padding: 18px 16px 14px;
        border-radius: 18px;
        max-width: 340px;
        margin: 0 auto;
    }
    .prep-badge {
        font-size: 9.5px;
        padding: 4px 9px 4px 8px;
        margin-bottom: 12px;
        gap: 6px;
    }
    .prep-badge-pulse { width: 6px; height: 6px; }
    .preparing-decoder-wrap {
        width: 190px;
        height: 190px;
        margin-bottom: 8px;
    }
    .preparing-decoder { gap: 6px; }
    .preparing-decoder .td-slot { gap: 5px; }
    .preparing-decoder .td-slot-window {
        width: 34px;
        height: 44px;
        border-radius: 8px;
    }
    .preparing-decoder .td-strip span {
        height: 44px;
        font-size: 19px;
    }
    @keyframes tdCycle {
        0%, 42% { transform: translateY(0); }
        58%, 100% { transform: translateY(-44px); }
    }
    .preparing-decoder .td-slot-label { font-size: 8px; }
    .preparing-text { font-size: 18px; margin-bottom: 4px; }
    .preparing-subtext { font-size: 11.5px; margin-bottom: 14px; }
    .preparing-progress-wrap { margin-bottom: 14px; }
    .preparing-progress-bar { height: 7px; }
    .preparing-steps {
        padding: 8px 10px;
        gap: 2px;
        margin-bottom: 12px;
    }
    .preparing-step {
        font-size: 12px;
        padding: 4px 0;
        gap: 10px;
    }
    .preparing-step-dot { width: 21px; height: 21px; font-size: 10px; }
    .prep-step-trail { left: 9.5px; top: 26px; height: 10px; }
    .prep-footer { font-size: 10px; padding-top: 10px; gap: 5px; }
    
    /* Progress Header Mobile */
    .progress-header {
        margin-bottom: 20px;
        padding: 12px 15px;
        gap: 12px;
        border-radius: 0 0 12px 12px;
    }
    
    .progress-percent {
        font-size: 13px;
    }
    
    .progress-line {
        height: 5px;
    }
    
    /* Main Heading Mobile */
    .main-heading {
        font-size: 20px;
        margin-bottom: 20px;
        padding: 0 5px;
        line-height: 1.4;
    }
    
    /* Question Cards Mobile */
    .questions-list {
        gap: 15px;
        padding: 0 14px 100px;
    }
    /* Match the questions-list side padding on the progress bar + heading above
       the cards so they align with the cards and don't skim the viewport edge. */
    #questions-section > .progress-indicator,
    #questions-section > .questions-heading,
    #questions-section > h2,
    #questions-section > h3 {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Mobile: no blur filter (Safari perf), use opacity+scale only */
    .question-card {
        filter: none !important;
        opacity: 0.4;
        transform: scale(0.96);
        padding: 18px 15px;
        border-radius: 16px;
        transition:
            opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
            border-color 0.4s ease,
            box-shadow 0.4s ease;
    }

    .question-card.in-focus {
        filter: none !important;
        opacity: 1;
        transform: scale(1);
    }

    .question-card.answered {
        filter: none !important;
        opacity: 0.45;
    }

    .question-card.answered.in-focus {
        filter: none !important;
        opacity: 1;
        transform: scale(1);
    }

    .question-number-row {
        margin-bottom: 14px;
    }

    .question-num-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .question-num-label {
        font-size: 12px;
    }

    .question-text-v2 {
        font-size: 16px;
        margin-bottom: 18px;
        padding: 0 5px;
        letter-spacing: -0.4px;
        word-spacing: 0.5px;
    }

    /* Pill Buttons Mobile */
    .options-row-v2 {
        gap: 6px;
        flex-wrap: nowrap;
    }

    .option-pill {
        padding: 6px 8px 6px 6px;
        gap: 3px;
        border-radius: 24px;
    }

    .face-icon {
        width: 30px;
        height: 30px;
    }

    .pill-num {
        font-size: 12px;
    }

    .options-labels span {
        font-size: 10px;
    }

    /* Improve touch feedback on mobile */
    .option-pill:active {
        transform: scale(1.06);
    }

    /* Submit Test Button Mobile */
    .submit-test-wrap {
        padding: 16px 10px; /* Keep padding compact */
    }
    
    .btn-submit-test {
        width: calc(100% - 40px); /* Some margin on mobile */
        max-width: 400px;
        padding: 15px 30px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    /* Incomplete Popup Mobile */
    .incomplete-card {
        padding: 30px 24px;
        border-radius: 20px;
    }
    
    .incomplete-icon {
        font-size: 40px;
    }
    
    .incomplete-title {
        font-size: 19px;
    }
    
    .incomplete-desc {
        font-size: 13px;
    }
    
    /* Buttons Mobile */
    .btn-primary, .btn-gold, .btn-outline {
        font-size: 15px;
        padding: 14px 24px;
    }
    
    /* Loading Section Mobile */
    #loading-section {
        margin: 40px auto;
        padding: 0 10px;
    }
    
    .loading-box {
        padding: 35px 20px;
        border-radius: 20px;
    }
    
    .loading-anim {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .loading-anim span {
        font-size: 32px;
    }
    
    .loading-box h2 {
        font-size: 20px;
    }
    
    .loading-box > p {
        font-size: 14px;
    }
    
    /* Results Mobile */
    #results-section {
        padding: 0;
        border-radius: 16px;
    }
    
    .results-header {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .results-header::after {
        width: 150px;
    }
    
    .results-container {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .congrats-card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .congrats-card h2 {
        font-size: 20px;
    }
    
    .congrats-card h3 {
        font-size: 18px;
    }
    
    .congrats-card > p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .validation-badge, .rarity-badge {
        padding: 12px;
        gap: 12px;
        margin-bottom: 10px;
    }
    
    .badge-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .validation-badge strong, .rarity-badge strong {
        font-size: 14px;
    }
    
    .validation-badge small, .rarity-badge small {
        font-size: 12px;
    }
    
    .results-right {
        padding: 20px;
        border-radius: 16px;
    }
    
    .results-right h4 {
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .trait-row {
        margin-bottom: 18px;
    }
    
    .trait-header strong {
        font-size: 16px;
    }
    
    .trait-header span {
        font-size: 13px;
    }
    
    .trait-track {
        height: 10px;
    }
    
    .trait-labels {
        font-size: 11px;
    }
    
    /* Type Reveal Mobile */
    .type-reveal-card {
        padding: 25px 15px;
        margin-bottom: 20px;
        border-radius: 16px;
    }
    
    .type-reveal-card small {
        font-size: 12px;
    }
    
    .type-letters {
        font-size: 42px;
        letter-spacing: 6px;
        margin: 12px 0;
    }
    
    .type-nickname {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .download-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Description & Details Mobile */
    .type-description {
        padding: 18px;
        font-size: 14px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    .traits-tags {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .traits-tags span {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 16px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .detail-card {
        padding: 18px;
        border-radius: 12px;
    }
    
    .detail-card h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .detail-card li {
        font-size: 13px;
        padding: 6px 0;
        padding-left: 22px;
    }
    
    .detail-card p {
        font-size: 13px;
    }
    
    .careers-grid span {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
    .main-heading {
        font-size: 18px;
    }
    
    .legend-box {
        gap: 0;
        padding: 10px 6px;
    }
    
    .legend-item {
        min-width: 0;
        flex: 1;
    }
    
    .legend-item span {
        font-size: 9px;
    }
    
    .legend-circle.sd, .legend-circle.sa {
        width: 30px;
        height: 30px;
    }
    
    .legend-circle.d, .legend-circle.a {
        width: 26px;
        height: 26px;
    }
    
    .legend-circle.n {
        width: 22px;
        height: 22px;
    }
    
    .question-card {
        padding: 15px 12px;
    }
    
    .question-text {
        font-size: 14px;
    }
    
    .option-btn.sd, .option-btn.sa {
        width: 42px;
        height: 42px;
    }
    
    .option-btn.d, .option-btn.a {
        width: 36px;
        height: 36px;
    }
    
    .option-btn.n {
        width: 34px;
        height: 34px;
    }
    
    .options-row {
        gap: 6px;
    }
    
    .options-line {
        width: 200px;
    }
    
    .type-letters {
        font-size: 36px;
        letter-spacing: 4px;
    }
}

/* =========================================================
   POST-ASSESSMENT LOADING — Aurora Bloom (Option B)
   Soft, light, organic premium-wellness aesthetic. Two-axis
   typography: Fraunces serif for emotional anchors (eyebrow,
   title, eval-label), Poppins/JetBrains Mono for functional UI.

   Backwards-compatible: preserves #loading-section, .loading-card,
   .loading-animation-box, #loading-fill, #loading-percent,
   .loading-title, .loading-subtitle, .loading-progress,
   .progress-bar-track, .progress-bar-fill, .loading-steps,
   .step-item, .step-icon, .step-content, .step-title,
   .step-status, .step-item.active/.complete, .particles +
   .particle, .type-evaluator-anim, .eval-slot, #eval-slot-1..4,
   .eval-letter (.active/.exiting), .eval-slot.locked, .eval-label.
   ========================================================= */
.loading-card {
    --ab-cream:      #FFFBF5;
    --ab-cream-2:    #FFF4E6;
    --ab-peach:      #FED7AA;
    --ab-coral:      #FDA4AF;
    --ab-amber:      #FBBF24;
    --ab-orange:     #F97316;
    --ab-orange-d:   #C2410C;
    --ab-brown:      #451A03;
    --ab-brown-soft: #92400E;
    --ab-brown-mute: #B45309;
    --ab-text:       #1C1917;
    --ab-text-soft:  #57534E;
    --ab-text-mute:  #A8A29E;
    --ab-success:    #65A30D;
    --ab-success-d:  #4D7C0F;
    --ab-mono:       'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --ab-serif:      'Fraunces', Georgia, 'Cambria', serif;
    --ab-sans:       'Poppins', 'Inter Tight', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    position: relative;
    background: #FFFFFF;
    border: 1px solid #FBE8D3;
    border-radius: 24px;
    padding: 18px 18px 16px;
    max-width: 460px;
    margin: 36px auto;
    box-shadow:
        0 1px 0 rgba(120, 53, 15, 0.04),
        0 10px 30px -8px rgba(249, 115, 22, 0.16),
        0 30px 70px -25px rgba(194, 65, 12, 0.20);
    overflow: hidden;
}
.loading-card::before {
    content: ""; position: absolute;
    top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, .55), transparent);
}

/* === Status header (serif italic, calm) === */
.lc-status-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; padding: 0 4px;
    font-family: var(--ab-serif);
    font-size: 11px;
    color: var(--ab-brown-soft);
    letter-spacing: 0.02em;
}
.lc-status-left { display: inline-flex; align-items: center; gap: 8px; }
.lc-pulse-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--ab-orange);
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45);
    animation: abPulseDot 1.8s ease-out infinite;
    flex-shrink: 0;
}
@keyframes abPulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(249,115,22,.45); }
    70%  { box-shadow: 0 0 0 9px rgba(249,115,22,0);  }
    100% { box-shadow: 0 0 0 0 rgba(249,115,22,0);    }
}
.lc-status-text    { font-style: italic; }
.lc-status-divider { opacity: 0.45; margin: 0 2px; }
.lc-status-active  { color: var(--ab-orange-d); font-weight: 600; font-style: italic; }
.lc-status-right   { font-style: italic; opacity: 0.7; }

/* === Stage === */
.loading-animation-box {
    width: 100%;
    height: 250px;
    background: linear-gradient(170deg, var(--ab-cream) 0%, var(--ab-cream-2) 60%, #FFEAD0 100%);
    border: 1px solid #FBE8D3;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    isolation: isolate;
}

/* Aurora drifting blobs */
.ab-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ab-blob {
    position: absolute;
    width: 220px; height: 220px;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.7;
    animation: abDrift 14s ease-in-out infinite;
}
.ab-blob-1 { top: -40px; left: -40px;  background: radial-gradient(circle, rgba(251,146,60,0.85), transparent 70%); animation-delay: 0s;    }
.ab-blob-2 { top: -20px; right: -50px; background: radial-gradient(circle, rgba(253,164,175,0.75), transparent 70%); animation-delay: -3.5s; }
.ab-blob-3 { bottom: -50px; left: 20%; background: radial-gradient(circle, rgba(251,191,36,0.7), transparent 70%);  animation-delay: -7s;   }
.ab-blob-4 { bottom: -30px; right: -20px; background: radial-gradient(circle, rgba(254,215,170,0.85), transparent 70%); animation-delay: -10.5s; }
@keyframes abDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(28px, -18px) scale(1.08); }
    66%      { transform: translate(-22px, 14px) scale(0.94); }
}

/* Concentric ripple rings emanating from center */
.ab-ripples { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1; pointer-events: none; }
.ab-ripple {
    position: absolute;
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 1.2px solid rgba(249, 115, 22, 0.45);
    animation: abRipple 4s ease-out infinite;
    opacity: 0;
}
.ab-ripple:nth-child(1) { animation-delay: 0s;    }
.ab-ripple:nth-child(2) { animation-delay: 1.3s;  }
.ab-ripple:nth-child(3) { animation-delay: 2.6s;  }
@keyframes abRipple {
    0%   { width: 60px;  height: 60px;  opacity: 0;   border-width: 1.5px; }
    20%  {                              opacity: 0.8; }
    100% { width: 280px; height: 280px; opacity: 0;   border-width: 0.5px; }
}

/* Dotted compass rose perimeter */
.ab-compass { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1; pointer-events: none; }
.ab-compass svg { width: 240px; height: 240px; opacity: 0.45; animation: abCompassRotate 60s linear infinite; }
@keyframes abCompassRotate { to { transform: rotate(360deg); } }

/* Floating petals (preserved .particle elements) */
.particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.particle {
    position: absolute;
    width: 6px; height: 6px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.85), rgba(249, 115, 22, 0.1) 70%);
    border-radius: 50%;
    animation: abFloat 6.5s ease-in-out infinite;
    opacity: 0;
}
.particle:nth-child(1) { left: 12%; top: 28%; animation-delay: 0s;   }
.particle:nth-child(2) { left: 84%; top: 30%; animation-delay: 1.2s; width: 5px; height: 5px; }
.particle:nth-child(3) { left: 22%; top: 76%; animation-delay: 2.4s; width: 7px; height: 7px; }
.particle:nth-child(4) { left: 78%; top: 74%; animation-delay: 3.6s; width: 5px; height: 5px; }
.particle:nth-child(5) { left: 50%; top: 14%; animation-delay: 4.8s; width: 4px; height: 4px; }
@keyframes abFloat {
    0%, 100% { transform: translateY(0)    scale(1);    opacity: 0;   }
    20%      {                                          opacity: 1;   }
    50%      { transform: translateY(-22px) scale(1.2); opacity: 0.9; }
    80%      {                                          opacity: 0.7; }
}

/* Header chip — small frosted pill (serif italic, calm) */
.lc-header-chip {
    position: absolute;
    top: 22px; left: 50%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: 999px;
    font-family: var(--ab-serif);
    font-size: 11px;
    font-style: italic;
    color: var(--ab-orange-d);
    z-index: 5;
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
}
.lc-chip-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--ab-orange);
    animation: abChipBlink 2s ease-in-out infinite;
}
@keyframes abChipBlink { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.85); } }

/* === Letter slots === */
.type-evaluator-anim {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -42%);
    display: flex; gap: 10px;
    z-index: 5;
}
/* .eval-slot becomes a wrapper (window + caption) */
.eval-slot {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: transparent; border: 0; overflow: visible;
    width: auto; height: auto;
}
.eval-slot-window {
    width: 54px;
    height: 64px;
    background: rgba(255, 255, 255, 0.65);
    border: 1.5px solid rgba(249, 115, 22, 0.35);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    box-shadow:
        0 8px 22px -8px rgba(194, 65, 12, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.eval-slot-window::before {
    content: ""; position: absolute;
    inset: 4px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(254, 215, 170, 0.35), transparent 60%);
    pointer-events: none;
}
.eval-slot-glare {
    position: absolute; top: 0; left: -60%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    animation: abSlotGlare 3.4s ease-in-out infinite;
    pointer-events: none;
}
.eval-slot:nth-child(1) .eval-slot-glare { animation-delay: 0s;    }
.eval-slot:nth-child(2) .eval-slot-glare { animation-delay: 0.22s; }
.eval-slot:nth-child(3) .eval-slot-glare { animation-delay: 0.44s; }
.eval-slot:nth-child(4) .eval-slot-glare { animation-delay: 0.66s; }
@keyframes abSlotGlare {
    0%        { left: -60%; }
    60%, 100% { left: 130%; }
}

/* Letters — serif (kept, this IS the emotional center of the animation) */
.eval-letter {
    position: absolute;
    font-family: var(--ab-serif);
    font-size: 32px;
    font-weight: 600;
    color: rgba(194, 65, 12, 0.18);
    letter-spacing: 0.5px;
    transition: all 0.30s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateY(15px);
    z-index: 2;
    line-height: 1;
}
.eval-letter.active {
    opacity: 1;
    transform: translateY(0);
    color: var(--ab-orange-d);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.eval-letter.exiting { opacity: 0; transform: translateY(-15px); }
.eval-slot.locked .eval-slot-window {
    border-color: rgba(249, 115, 22, 0.85);
    background: rgba(255, 247, 237, 0.95);
    box-shadow:
        0 12px 26px -8px rgba(194, 65, 12, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}
.eval-slot.locked .eval-letter.active { color: #7C2D12; font-size: 34px; }

.eval-slot-cap {
    font-family: var(--ab-mono);
    font-size: 8px; font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--ab-brown-mute);
    opacity: 0.75;
}

/* Live label — serif italic (one of the 3 emotional anchors) */
.eval-label {
    position: absolute;
    bottom: 24px; left: 50%; transform: translateX(-50%);
    font-family: var(--ab-serif);
    font-size: 13px; font-style: italic;
    font-weight: 400;
    color: var(--ab-brown-soft);
    letter-spacing: 0.01em;
    z-index: 5;
    white-space: nowrap;
    animation: abLabelFade 3s ease-in-out infinite;
}
.eval-label::before, .eval-label::after {
    content: "·";
    display: inline-block;
    margin: 0 10px;
    color: var(--ab-orange);
    font-weight: 700;
    font-style: normal;
}
@keyframes abLabelFade { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }

/* Soft dot trail at bottom (uses preserved .lc-stage-meter spans) */
.lc-stage-meter {
    position: absolute;
    bottom: 9px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 5px;
    z-index: 5;
}
.lc-stage-meter span {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--ab-orange);
    opacity: 0.3;
    animation: abDotTrail 1.4s ease-in-out infinite;
}
.lc-stage-meter span:nth-child(1) { animation-delay: 0s;    }
.lc-stage-meter span:nth-child(2) { animation-delay: 0.15s; }
.lc-stage-meter span:nth-child(3) { animation-delay: 0.30s; }
.lc-stage-meter span:nth-child(4) { animation-delay: 0.45s; }
.lc-stage-meter span:nth-child(5) { animation-delay: 0.60s; }
.lc-stage-meter span:nth-child(6) { animation-delay: 0.75s; }
.lc-stage-meter span:nth-child(7) { animation-delay: 0.90s; }
.lc-stage-meter span:nth-child(8),
.lc-stage-meter span:nth-child(9),
.lc-stage-meter span:nth-child(10),
.lc-stage-meter span:nth-child(11),
.lc-stage-meter span:nth-child(12) { display: none; }
@keyframes abDotTrail {
    0%, 100% { opacity: 0.25; transform: scale(1);   }
    50%      { opacity: 1;    transform: scale(1.6); }
}

/* Hide unused decorative elements (kept in markup for parity) */
.lc-corner { display: none; }

/* === Title block === */
.lc-title-block { text-align: center; margin-bottom: 18px; }
.lc-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--ab-serif);
    font-size: 11px;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.10em;
    color: var(--ab-orange-d);
    margin-bottom: 8px;
}
.lc-eyebrow-bar {
    display: inline-block;
    width: 22px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--ab-orange));
}
.lc-eyebrow-bar:last-child { background: linear-gradient(90deg, var(--ab-orange), transparent); }
.loading-title {
    font-family: var(--ab-serif);
    font-size: 26px;
    font-weight: 500;
    color: var(--ab-text);
    margin: 0 0 6px;
    text-align: center;
    letter-spacing: -0.015em;
}
.loading-subtitle {
    font-size: 13.5px;
    color: var(--ab-text-soft);
    text-align: center;
    margin: 0 auto;
    max-width: 340px;
    line-height: 1.55;
    font-weight: 400;
}

/* === Progress (sans/mono, functional) === */
.loading-progress { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.progress-bar-track {
    flex: 1; height: 6px;
    background: #FBE8D3;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(120, 53, 15, 0.10);
}
.progress-bar-fill {
    position: relative;
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #F97316 0%, #FB923C 35%, #FDA4AF 70%, #F97316 100%);
    background-size: 200% 100%;
    border-radius: 8px;
    transition: width 0.3s ease;
    overflow: hidden;
    animation: abFillSlide 3s linear infinite;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}
@keyframes abFillSlide { to { background-position: -200% 0; } }
.lc-fill-shimmer {
    position: absolute; top: 0; left: -50%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
    animation: abShimmer 1.8s ease-in-out infinite;
}
@keyframes abShimmer { to { left: 150%; } }
.lc-progress-ticks { display: none; }
.progress-percent {
    font-family: var(--ab-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--ab-orange-d);
    min-width: 42px;
    text-align: right;
    letter-spacing: -0.02em;
}

/* === Step list (sans/mono, functional) === */
.loading-steps { display: flex; flex-direction: column; gap: 8px; position: relative; }
.loading-steps::before {
    content: ""; position: absolute;
    left: 28px; top: 24px; bottom: 24px;
    width: 1px;
    background: repeating-linear-gradient(to bottom, rgba(180, 83, 9, 0.16) 0 3px, transparent 3px 6px);
    z-index: 0;
}
.step-item {
    position: relative;
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px;
    background: #FFFCF8;
    border: 1px solid #FBE8D3;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
.step-item.active {
    background: linear-gradient(135deg, #FFF7ED, #FFFBF5);
    border-color: #FDBA74;
    box-shadow: 0 6px 18px -6px rgba(249, 115, 22, 0.30);
}
.step-item.complete {
    background: linear-gradient(135deg, #F7FEE7, #FBFFEF);
    border-color: #BEF264;
}
.step-icon {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1.5px solid #FED7AA;
    display: flex; align-items: center; justify-content: center;
    color: #B45309;
    transition: all 0.4s;
    position: relative;
    font-size: 0;
}
.step-item.active .step-icon {
    background: var(--ab-orange);
    border-color: var(--ab-orange);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.15);
}
.step-item.active .step-icon::before {
    content: ""; position: absolute; inset: -5px;
    border-radius: 50%;
    border: 1.5px solid var(--ab-orange);
    border-top-color: transparent;
    border-right-color: transparent;
    animation: abSpin 1.2s linear infinite;
}
@keyframes abSpin { to { transform: rotate(360deg); } }
.step-item.complete .step-icon { background: var(--ab-success); border-color: var(--ab-success); color: #fff; }

.step-content { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.step-title {
    font-family: var(--ab-serif);
    font-size: 15px; font-weight: 500;
    color: var(--ab-text);
    letter-spacing: -0.01em;
}
.step-status {
    font-family: var(--ab-serif);
    font-style: italic;
    font-size: 12px;
    color: var(--ab-text-mute);
    font-weight: 400;
}
.step-item.active   .step-status { color: var(--ab-orange-d); }
.step-item.complete .step-status { color: var(--ab-success-d); }

.step-num {
    flex-shrink: 0;
    font-family: var(--ab-mono);
    font-size: 10.5px; font-weight: 700;
    color: #D6D3D1;
    letter-spacing: 0.08em;
    padding: 3px 7px;
    border-radius: 6px;
    border: 1px solid #F1E9DD;
    background: #FFFFFF;
    transition: all 0.4s;
}
.step-item.active   .step-num { color: var(--ab-orange-d); border-color: #FED7AA; background: #FFF7ED; }
.step-item.complete .step-num { color: var(--ab-success-d); border-color: #D9F99D; background: #F7FEE7; }

/* === Footer (serif italic, calm) === */
.lc-footer {
    margin-top: 16px; padding-top: 12px;
    border-top: 1px dashed #FBE8D3;
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--ab-serif);
    font-size: 11px;
    font-style: italic;
    color: var(--ab-brown-mute);
}
.lc-footer-left { display: inline-flex; align-items: center; gap: 7px; }
.lc-footer-left svg { color: var(--ab-brown-mute); flex-shrink: 0; }
.lc-footer-right    { font-weight: 500; color: var(--ab-brown-soft); }

/* === Responsive === */
@media (max-width: 768px) {
    /* Crush the wrapper's top margin so the card sits right under the page header */
    #loading-section { margin: 0 auto !important; padding: 0 !important; }
    /* Card: trim top padding & vertical margin to bring loader into viewport */
    .loading-card { margin: 6px 12px 14px; padding: 10px 12px 10px; border-radius: 18px; }
    .lc-status-bar { font-size: 9.5px; margin-bottom: 7px; }

    /* Stage: shorter (220 → 180) and tighter spacing */
    .loading-animation-box { height: 180px; border-radius: 14px; margin-bottom: 14px; }
    .ab-compass svg { width: 170px; height: 170px; }
    .ab-blob { width: 170px; height: 170px; filter: blur(36px); }
    .lc-header-chip { top: 12px; font-size: 9px; padding: 3px 9px; gap: 5px; }
    .eval-slot-window { width: 44px; height: 52px; border-radius: 11px; }
    .eval-letter { font-size: 24px; }
    .eval-slot.locked .eval-letter.active { font-size: 26px; }
    .type-evaluator-anim { gap: 7px; transform: translate(-50%, -44%); }
    .eval-slot { gap: 6px; }
    .eval-slot-cap { font-size: 7px; }
    .eval-label { font-size: 11.5px; bottom: 16px; }
    .eval-label::before, .eval-label::after { margin: 0 8px; }
    .lc-stage-meter { bottom: 6px; gap: 4px; }
    .lc-stage-meter span { width: 3px; height: 3px; }

    /* Title block: tightened spacing + smaller subtitle */
    .lc-title-block { margin-bottom: 12px; }
    .lc-eyebrow { font-size: 9.5px; margin-bottom: 5px; }
    .loading-title { font-size: 19px; margin-bottom: 4px; }
    .loading-subtitle { font-size: 12px; max-width: 280px; line-height: 1.5; }

    /* Progress: thinner */
    .loading-progress { gap: 10px; margin: 12px 0; }
    .progress-bar-track { height: 5px; }
    .progress-percent { font-size: 12px; min-width: 34px; }

    /* Steps: tighter padding + smaller icons → 3 cards fit in much less height */
    .loading-steps { gap: 6px; }
    .step-item { padding: 9px 11px; gap: 11px; border-radius: 12px; }
    .step-icon { width: 26px; height: 26px; }
    .step-icon svg { width: 12px; height: 12px; }
    .step-title { font-size: 13px; }
    .step-status { font-size: 10px; }
    .step-num { font-size: 9px; padding: 2px 5px; border-radius: 5px; }
    .loading-steps::before { left: 24px; top: 18px; bottom: 18px; }

    /* Footer: tighter top margin */
    .lc-footer { font-size: 10.5px; margin-top: 10px; padding-top: 8px; }
}

@media (max-width: 375px) {
    #loading-section { margin: 0 auto !important; padding: 0 !important; }
    .loading-card { padding: 8px 10px 8px; margin: 4px 8px 10px; border-radius: 16px; }
    .lc-status-bar { font-size: 9px; margin-bottom: 6px; }
    .lc-status-right { display: none; }

    .loading-animation-box { height: 160px; border-radius: 12px; margin-bottom: 12px; }
    .ab-compass svg { width: 150px; height: 150px; }
    .ab-blob { width: 150px; height: 150px; filter: blur(32px); }
    .lc-header-chip { top: 10px; font-size: 8.5px; padding: 2.5px 8px; }
    .eval-slot-window { width: 38px; height: 46px; border-radius: 9px; }
    .eval-letter { font-size: 20px; }
    .eval-slot.locked .eval-letter.active { font-size: 22px; }
    .type-evaluator-anim { gap: 5px; }
    .eval-slot { gap: 5px; }
    .eval-slot-cap { font-size: 6.5px; letter-spacing: 0.10em; }
    .eval-label { font-size: 11px; bottom: 13px; }
    .lc-stage-meter { bottom: 5px; }

    .lc-title-block { margin-bottom: 10px; }
    .loading-title { font-size: 17px; }
    .loading-subtitle { font-size: 11.5px; max-width: 250px; }

    .loading-progress { margin: 10px 0; }

    .step-item { padding: 8px 10px; gap: 10px; }
    .step-icon { width: 24px; height: 24px; }
    .step-icon svg { width: 11px; height: 11px; }
    .step-title { font-size: 12.5px; }
    .step-num { display: none; }
    .loading-steps::before { left: 22px; }

    .lc-footer { font-size: 9.5px; margin-top: 8px; padding-top: 7px; }
}

/* ========== NEW RESULTS STYLES ========== */
.results-ready-header { text-align: center; margin-bottom: 30px; }
.results-ready-header h1 { font-size: 22px; font-weight: 800; color: #1f2937; margin-bottom: 10px; }
.header-underline { width: 200px; height: 4px; background: linear-gradient(90deg, #F97316, #22c55e, #f59e0b); border-radius: 2px; margin: 0 auto; }

.congrats-section { text-align: center; padding: 30px 20px; background: #fff; border-radius: 20px; margin-bottom: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.congrats-emoji { font-size: 40px; margin-bottom: 10px; }
.congrats-title { font-size: 28px; font-weight: 700; color: #F97316; margin-bottom: 15px; }
.user-name-display { font-size: 22px; font-weight: 700; color: #1f2937; display: inline-block; padding-bottom: 5px; border-bottom: 3px solid #F97316; margin-bottom: 15px; }
.congrats-text { font-size: 14px; color: #6b7280; line-height: 1.7; }

.info-badges { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; }
.info-badge { display: flex; align-items: center; gap: 15px; padding: 16px 18px; background: #fff; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.badge-circle { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.badge-circle.green { background: #dcfce7; color: #22c55e; }
.badge-circle.gold { background: #fef3c7; color: #f59e0b; }
.badge-text { display: flex; flex-direction: column; gap: 3px; }
.badge-text strong { font-size: 15px; color: #1f2937; }
.badge-text span { font-size: 13px; color: #6b7280; }
.badge-text b { color: #F97316; }

.traits-preview-section { background: #fff; border-radius: 20px; padding: 25px 20px; margin-bottom: 25px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.section-title { font-size: 12px; font-weight: 600; color: #6b7280; letter-spacing: 1px; margin-bottom: 20px; text-align: center; }
.trait-bars-container { display: flex; flex-direction: column; gap: 18px; }

.type-reveal-section { text-align: center; padding: 35px 20px; background: #fff; border-radius: 20px; margin-bottom: 25px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.type-label { font-size: 13px; color: #6b7280; }

@media (max-width: 768px) {
    .loading-card { margin: 20px 15px; padding: 25px 18px; }
    .loading-animation-box { height: 150px; }
    .eval-slot { width: 44px; height: 52px; }
    .eval-slot .eval-letter { font-size: 26px; }
    .eval-slot.locked .eval-letter.active { font-size: 28px; }
    .type-evaluator-anim { gap: 6px; }
    .eval-label { font-size: 10px; bottom: 10px; }
    .loading-title { font-size: 18px; }
    .loading-subtitle { font-size: 12px; }
    .step-item { padding: 12px 14px; }
    .step-icon { width: 36px; height: 36px; font-size: 14px; }
    .step-title { font-size: 13px; }
    .results-ready-header h1 { font-size: 18px; }
    .header-underline { width: 150px; }
    .congrats-section { padding: 25px 18px; }
    .congrats-emoji { font-size: 32px; }
    .congrats-title { font-size: 24px; }
    .user-name-display { font-size: 18px; }
    .info-badge { padding: 14px 16px; }
    .badge-circle { width: 44px; height: 44px; }
    .traits-preview-section { padding: 20px 16px; }
    .type-reveal-section { padding: 28px 18px; }
}

@media (max-width: 375px) {
    .loading-card { padding: 20px 15px; margin: 15px 10px; }
    .loading-animation-box { height: 130px; }
    .eval-slot { width: 38px; height: 46px; }
    .eval-slot .eval-letter { font-size: 22px; }
    .eval-slot.locked .eval-letter.active { font-size: 24px; }
    .type-evaluator-anim { gap: 5px; }
    .eval-label { font-size: 9px; bottom: 8px; }
    .loading-title { font-size: 16px; }
    .step-icon { width: 32px; height: 32px; }
    .results-ready-header h1 { font-size: 16px; }
    .congrats-title { font-size: 20px; }
    .user-name-display { font-size: 16px; }
}

/* ==================== REDESIGNED RESULTS SECTION ==================== */

/* Results Banner */
.results-banner {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFF7ED 100%);
    padding: 40px 20px;
    text-align: center;
    margin: -20px -20px 30px -20px;
    border-radius: 0 0 30px 30px;
}

.results-title {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 15px;
    line-height: 1.3;
}

.results-title-underline {
    width: 200px;
    height: 5px;
    background: linear-gradient(90deg, #F97316, #06b6d4);
    border-radius: 3px;
    margin: 0 auto;
}

/* Congratulations Card */
.congrats-card-new {
    background: #fff;
    border-radius: 24px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.1);
    margin-bottom: 20px;
}

.confetti-emoji {
    font-size: 50px;
    margin-bottom: 15px;
    animation: bounce-confetti 1s ease infinite;
}

@keyframes bounce-confetti {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.congrats-heading {
    font-size: 32px;
    font-weight: 700;
    color: #F97316;
    margin-bottom: 20px;
}

.user-name-box {
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid #F97316;
    margin-bottom: 20px;
}

.user-name-box span {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.congrats-desc {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

/* Validation Badges */
.validation-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.v-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.v-badge-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.v-badge-icon.green {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #22c55e;
}

.v-badge-icon.gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #f59e0b;
}

.v-badge-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v-badge-text strong {
    font-size: 16px;
    color: #1f2937;
}

.v-badge-text span {
    font-size: 14px;
    color: #6b7280;
}

.v-badge-text b {
    color: #F97316;
    font-weight: 700;
}

/* Big Type Reveal */
.type-reveal-big {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    border-radius: 24px;
    padding: 50px 30px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.type-reveal-big::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.type-reveal-label {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.type-letters-big {
    font-size: 72px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 15px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.type-letters-big.animate {
    opacity: 1;
    transform: scale(1);
}

.type-nickname-big {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    font-style: italic;
}

/* Traits Section */
.traits-section-new {
    background: #fff;
    border-radius: 24px;
    padding: 30px 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.section-heading {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 25px;
}

.traits-bars-new {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Certificate Preview */
.certificate-preview-section {
    margin-bottom: 30px;
}

.certificate-preview-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFF7ED 50%, #FFF7ED 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #F97316;
    position: relative;
    overflow: hidden;
}

.certificate-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(249, 115, 22, 0.03) 10px,
        rgba(249, 115, 22, 0.03) 20px
    );
}

.cert-preview-inner {
    position: relative;
    text-align: center;
    padding: 25px 15px;
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
    border: 1px dashed #F97316;
}

.cert-preview-badge {
    font-size: 40px;
    margin-bottom: 10px;
}

.cert-preview-title {
    font-size: 24px;
    font-weight: 800;
    color: #F97316;
    letter-spacing: 4px;
    margin-bottom: 5px;
}

.cert-preview-subtitle {
    font-size: 12px;
    color: #6b7280;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.cert-preview-text {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.cert-preview-name {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    padding-bottom: 8px;
    border-bottom: 2px solid #F97316;
    display: inline-block;
    margin-bottom: 15px;
}

.cert-preview-type {
    font-size: 36px;
    font-weight: 800;
    color: #F97316;
    letter-spacing: 8px;
    margin-bottom: 10px;
}

.cert-preview-date {
    font-size: 14px;
    color: #6b7280;
}

.btn-get-certificate {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
    transition: all 0.3s ease;
}

.btn-get-certificate:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.45);
}

/* Insights Carousel */
.insights-carousel-section {
    margin-bottom: 30px;
}

.carousel-container {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.slide-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 60px;
    font-weight: 800;
    color: rgba(249, 115, 22, 0.1);
    line-height: 1;
}

.slide-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.slide-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.slide-text {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto;
}

.slide-highlight {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #6b7280;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #F97316;
    color: #fff;
}

.carousel-btn.next {
    background: #F97316;
    color: #fff;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #F97316;
    width: 25px;
    border-radius: 5px;
}

/* Download Report Section */
.download-report-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 24px;
    padding: 40px 25px;
    text-align: center;
    margin-bottom: 30px;
}

.download-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.download-report-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.download-report-section p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-download-report {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
    transition: all 0.3s ease;
}

.btn-download-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.45);
}

/* Details Section */
.details-section-new {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.detail-card-new {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.detail-icon {
    font-size: 28px;
}

.detail-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    position: relative;
    padding: 10px 0 10px 25px;
    font-size: 14px;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #F97316;
    font-weight: bold;
}

.detail-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

.compatible-types {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
    font-size: 14px;
    color: #4b5563;
}

.compatible-types strong {
    color: #F97316;
}

.careers-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.careers-tags span {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFF7ED 100%);
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 13px;
    color: #EA580C;
    font-weight: 500;
}

/* Retake Button */
.btn-retake-new {
    width: 100%;
    padding: 16px;
    background: transparent;
    color: #F97316;
    border: 2px solid #F97316;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.btn-retake-new:hover {
    background: #F97316;
    color: #fff;
}

/* Mobile Responsive for Results */
@media (max-width: 768px) {
    /* Intro Section Mobile - Ultra Compact */
    #mbti-app {
        background: #FFFFFF;
        padding: 10px;
    }

    #intro-section {
        padding: 60px 10px 10px;
        min-height: auto;
        align-items: flex-start;
        background: transparent;
    }

    .intro-container {
        max-width: 100%;
        border-radius: 16px;
        background: #FFFFFF;
        box-shadow: 4px 6px 16px rgba(249, 115, 22, 0.10);
    }

    .intro-header {
        padding: 20px 16px 14px;
        background: #FFFFFF;
    }
    
    .intro-icon {
        width: 60px;
        height: 60px;
    }
    
    .intro-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .intro-title {
        font-size: 20px;
        margin: 12px 16px 4px;
    }
    
    .intro-subtitle {
        font-size: 12px;
        margin: 0 16px 12px;
    }
    
    .intro-stats {
        gap: 8px;
        padding: 0 12px;
        margin-bottom: 8px;
    }
    
    .intro-stat {
        padding: 10px;
        border-radius: 10px;
        gap: 8px;
    }
    
    .stat-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    
    .stat-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .intro-features {
        padding: 0 12px;
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .intro-feature {
        padding: 10px;
        gap: 10px;
        border-radius: 10px;
    }
    
    .feature-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    
    .feature-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .feature-title {
        font-size: 12px;
    }
    
    .feature-desc {
        font-size: 10px;
    }
    
    .btn-begin-assessment {
        width: calc(100% - 24px);
        margin: 0 12px 12px;
        padding: 12px 16px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    .btn-arrow {
        width: 24px;
        height: 24px;
    }
    
    .btn-arrow svg {
        width: 12px;
        height: 12px;
    }
    
    .results-banner {
        padding: 30px 15px;
        margin: -20px -15px 25px -15px;
    }
    
    .results-title {
        font-size: 22px;
    }
    
    .congrats-card-new {
        padding: 30px 20px;
    }
    
    .confetti-emoji {
        font-size: 40px;
    }
    
    .congrats-heading {
        font-size: 26px;
    }
    
    .user-name-box span {
        font-size: 20px;
    }
    
    .congrats-desc {
        font-size: 14px;
    }
    
    .v-badge {
        padding: 15px;
    }
    
    .v-badge-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .v-badge-text strong {
        font-size: 15px;
    }
    
    .v-badge-text span {
        font-size: 13px;
    }
    
    .type-reveal-big {
        padding: 40px 20px;
    }
    
    .type-letters-big {
        font-size: 56px;
        letter-spacing: 10px;
    }
    
    .type-nickname-big {
        font-size: 16px;
    }
    
    .traits-section-new {
        padding: 25px 20px;
    }
    
    .carousel-slide {
        padding: 30px 20px;
    }
    
    .slide-number {
        font-size: 50px;
    }
    
    .slide-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .slide-title {
        font-size: 18px;
    }
    
    .slide-text {
        font-size: 14px;
    }
    
    .cert-preview-inner {
        padding: 20px 12px;
    }
    
    .cert-preview-title {
        font-size: 20px;
    }
    
    .cert-preview-name {
        font-size: 18px;
    }
    
    .cert-preview-type {
        font-size: 28px;
        letter-spacing: 6px;
    }
    
    .download-report-section {
        padding: 30px 20px;
    }
    
    .detail-card-new {
        padding: 20px;
    }
    
    .detail-icon {
        font-size: 24px;
    }
    
    .detail-card-header h3 {
        font-size: 16px;
    }
}

@media (max-width: 375px) {
    .results-title {
        font-size: 18px;
    }
    
    .results-title-underline {
        width: 150px;
    }
    
    .congrats-heading {
        font-size: 22px;
    }
    
    .user-name-box span {
        font-size: 18px;
    }
    
    .type-letters-big {
        font-size: 48px;
        letter-spacing: 8px;
    }
    
    .slide-number {
        font-size: 40px;
    }
    
    .slide-title {
        font-size: 16px;
    }
    
    .cert-preview-type {
        font-size: 24px;
    }
}

/* ==================== DYNAMIC ANIMATIONS ==================== */

/* Base state - hidden before animation */
.results-banner,
.congrats-card-new,
.v-badge,
.type-reveal-big,
.traits-section-new,
.certificate-preview-section,
.insights-carousel-section,
.download-report-section,
.detail-card-new,
.btn-retake-new {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated state */
.results-banner.animate-in,
.congrats-card-new.animate-in,
.v-badge.animate-in,
.type-reveal-big.animate-in,
.traits-section-new.animate-in,
.certificate-preview-section.animate-in,
.insights-carousel-section.animate-in,
.download-report-section.animate-in,
.detail-card-new.animate-in,
.btn-retake-new.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Badge slide from left */
.v-badge {
    transform: translateX(-50px);
}

.v-badge.animate-in {
    transform: translateX(0);
}

/* Type letter animation */
.type-letters-big {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.type-letter {
    display: inline-block;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    animation: popInLetter 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes popInLetter {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Trait bar fill animation */
.trait-fill {
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Certificate floating effect */
.certificate-preview-card {
    animation: floatCert 3s ease-in-out infinite;
}

@keyframes floatCert {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Carousel slide animations */
.carousel-slide {
    opacity: 0.5;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-slide .slide-icon {
    animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.carousel-slide .slide-number {
    animation: fadeNumber 0.6s ease forwards;
}

@keyframes fadeNumber {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 0.1; transform: translateX(0); }
}

/* Confetti enhanced animation */
.confetti-emoji {
    animation: confettiBounce 1s ease infinite, confettiRotate 2s linear infinite;
}

@keyframes confettiBounce {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.15) translateY(-10px); }
}

@keyframes confettiRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Badge icon pulse */
.v-badge-icon {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Type reveal glow effect */
.type-reveal-big.animate-in {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 10px 40px rgba(249, 115, 22, 0.3); }
    50% { box-shadow: 0 15px 60px rgba(249, 115, 22, 0.5); }
}

/* Download button pulse */
.btn-get-certificate,
.btn-download-report {
    animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Detail card hover lift */
.detail-card-new {
    transition: all 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
}

.detail-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.15);
}

/* Career tags stagger animation */
.careers-tags span {
    opacity: 0;
    animation: tagPop 0.4s ease forwards;
}

.careers-tags span:nth-child(1) { animation-delay: 0.1s; }
.careers-tags span:nth-child(2) { animation-delay: 0.2s; }
.careers-tags span:nth-child(3) { animation-delay: 0.3s; }
.careers-tags span:nth-child(4) { animation-delay: 0.4s; }
.careers-tags span:nth-child(5) { animation-delay: 0.5s; }
.careers-tags span:nth-child(6) { animation-delay: 0.6s; }

@keyframes tagPop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* List items stagger */
.detail-list li {
    opacity: 0;
    animation: listSlide 0.4s ease forwards;
}

.detail-list li:nth-child(1) { animation-delay: 0.1s; }
.detail-list li:nth-child(2) { animation-delay: 0.2s; }
.detail-list li:nth-child(3) { animation-delay: 0.3s; }
.detail-list li:nth-child(4) { animation-delay: 0.4s; }
.detail-list li:nth-child(5) { animation-delay: 0.5s; }

@keyframes listSlide {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Rarity number glow */
.v-badge-text b {
    animation: rarityGlow 1.5s ease-in-out infinite;
}

@keyframes rarityGlow {
    0%, 100% { text-shadow: 0 0 5px rgba(249, 115, 22, 0.3); }
    50% { text-shadow: 0 0 15px rgba(249, 115, 22, 0.6); }
}

/* Carousel dots animation */
.carousel-dot {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot.active {
    animation: dotActive 0.3s ease;
}

@keyframes dotActive {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Section heading underline animation */
.section-heading {
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #F97316, #06b6d4);
    border-radius: 2px;
    animation: underlineGrow 0.8s ease 0.3s forwards;
}

@keyframes underlineGrow {
    to { width: 60px; }
}

/* Certificate preview shine effect */
.cert-preview-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* Download section particles */
.download-report-section {
    position: relative;
    overflow: hidden;
}

.download-report-section::before {
    content: '✨';
    position: absolute;
    font-size: 20px;
    top: 20px;
    left: 20px;
    animation: sparkle 2s ease-in-out infinite;
}

.download-report-section::after {
    content: '✨';
    position: absolute;
    font-size: 16px;
    bottom: 20px;
    right: 20px;
    animation: sparkle 2s ease-in-out infinite 0.5s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== SCROLL LOCK (NO VISUAL INDICATORS) ==================== */

.question-card.locked {
    pointer-events: none;
    filter: blur(4px);
    opacity: 0.3;
    transform: scale(0.94);
}

.question-card.locked .option-btn {
    pointer-events: none;
}

/* ==================================================================== */
/* =============== CHECKOUT / PAYWALL SECTION (scoped) ================ */
/* ==================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..900,30..100;1,9..144,300..900,30..100&family=DM+Sans:opsz,wght@9..40,300..700&display=swap');

/* Remove header/page top space when checkout is shown */
body.mbti-checkout-active #mbti-app { padding: 0 !important; margin: 0 !important; }

/* DESKTOP (≥768px): keep checkout/results INSIDE the WP content area — no
   100vw breakout — so the floating WP site header sits naturally above and
   content can never scroll under it. This matches the old plugin's behavior
   that "just worked". A small top padding gives breathing room. */
@media (min-width: 768px) {
    body.mbti-checkout-active #mbti-app { padding-top: 30px !important; }
    body.mbti-checkout-active #checkout-section,
    body.mbti-checkout-active #results-section {
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
    }
}

/* MOBILE (<768px): keep the original full-viewport breakout — works fine. */
@media (max-width: 767px) {
    body.mbti-checkout-active #checkout-section,
    body.mbti-checkout-active #results-section {
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
    }
}
body.mbti-checkout-active .co-top-strip { margin-top: 0 !important; }

/* Neutralise theme & page-builder container padding/margin so the page is
   truly edge-to-edge and flush under the site header. */
body.mbti-checkout-active .site-content,
body.mbti-checkout-active .entry-content,
body.mbti-checkout-active .site-main,
body.mbti-checkout-active main,
body.mbti-checkout-active #main,
body.mbti-checkout-active #primary,
body.mbti-checkout-active #content,
body.mbti-checkout-active .content-area,
body.mbti-checkout-active .page-content,
body.mbti-checkout-active .post-content,
body.mbti-checkout-active .single-content,
body.mbti-checkout-active article,
body.mbti-checkout-active article.page,
body.mbti-checkout-active .wrap,
body.mbti-checkout-active .container,
body.mbti-checkout-active .container-fluid,
body.mbti-checkout-active .row,
/* Gutenberg */
body.mbti-checkout-active .wp-site-blocks,
body.mbti-checkout-active .wp-block-post-content,
body.mbti-checkout-active .wp-block-group,
body.mbti-checkout-active .wp-block-columns,
body.mbti-checkout-active .wp-block-column,
body.mbti-checkout-active .is-layout-constrained,
body.mbti-checkout-active .is-layout-flow,
/* Elementor */
body.mbti-checkout-active .elementor,
body.mbti-checkout-active .elementor-section-wrap,
body.mbti-checkout-active .elementor-section,
body.mbti-checkout-active .elementor-container,
body.mbti-checkout-active .elementor-column,
body.mbti-checkout-active .elementor-column-wrap,
body.mbti-checkout-active .elementor-widget-wrap,
body.mbti-checkout-active .elementor-widget,
body.mbti-checkout-active .elementor-widget-shortcode,
body.mbti-checkout-active .elementor-widget-text-editor,
body.mbti-checkout-active .elementor-widget-container,
/* Divi */
body.mbti-checkout-active .et_pb_section,
body.mbti-checkout-active .et_pb_row,
body.mbti-checkout-active .et_pb_column,
body.mbti-checkout-active .et_pb_module,
body.mbti-checkout-active .et_pb_text_inner,
/* Beaver Builder */
body.mbti-checkout-active .fl-builder-content,
body.mbti-checkout-active .fl-row,
body.mbti-checkout-active .fl-row-content-wrap,
body.mbti-checkout-active .fl-col-group,
body.mbti-checkout-active .fl-col,
body.mbti-checkout-active .fl-col-content,
body.mbti-checkout-active .fl-module,
body.mbti-checkout-active .fl-module-content,
/* Astra / Generatepress / Kadence common wrappers */
body.mbti-checkout-active .ast-container,
body.mbti-checkout-active .ast-row,
body.mbti-checkout-active .ast-grid-common-col,
body.mbti-checkout-active .gb-container,
body.mbti-checkout-active .inside-article,
body.mbti-checkout-active .entry-content-wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Hide common "page hero" / breadcrumb / page-title areas that themes drop
   between the site header and the_content — those create the gap visible
   above the dark LIVE strip on mobile. */
body.mbti-checkout-active .page-header,
body.mbti-checkout-active .entry-header,
body.mbti-checkout-active .post-header,
body.mbti-checkout-active .page-title-bar,
body.mbti-checkout-active .breadcrumb,
body.mbti-checkout-active .breadcrumbs,
body.mbti-checkout-active .yoast-breadcrumbs,
body.mbti-checkout-active .ast-archive-description,
body.mbti-checkout-active .elementor-page-title,
body.mbti-checkout-active .et_post_meta_wrapper {
    display: none !important;
}

body.mbti-checkout-active { overflow-x: hidden !important; }
body.mbti-checkout-active #mbti-app { background: transparent !important; }

/* Catch-all class added by the per-template ancestor walker — works for any
   theme/builder regardless of class names. */
body.mbti-checkout-active .mbti-checkout-flush {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* ---------- TOP URGENCY STRIP ---------- */


@keyframes co-pulse{0%{box-shadow:0 0 0 0 rgba(46,204,113,.7)}70%{box-shadow:0 0 0 10px rgba(46,204,113,0)}100%{box-shadow:0 0 0 0 rgba(46,204,113,0)}}

/* ---------- NAV ---------- */


/* ---------- HERO ---------- */


/* ---------- REPORT CARD (right column) ---------- */


@keyframes co-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}


/* ---------- PRIMARY CTA ---------- */


/* ---------- COUNTDOWN ---------- */


/* ---------- SECTION BASE ---------- */


/* ---------- LOGOS BAR ---------- */


/* ---------- VALUE STACK ---------- */


/* ---------- PRICING ---------- */


/* ---------- GUARANTEE ---------- */


/* ---------- TESTIMONIALS ---------- */


/* ---------- FAQ ---------- */


/* ---------- FINAL CTA ---------- */


/* ---------- FOOTER ---------- */


/* ---------- STICKY BOTTOM BAR ---------- */

@keyframes co-slideUp{to{transform:translateY(0)}}


/* ---------- LIVE POPUP ---------- */


/* ==================================================================== */
/* RESPONSIVE — super mobile friendly                                  */
/* ==================================================================== */


/* ==================================================================== */
/* ========== RESULTS DELIVERY PAGE — V3 Design                ======= */
/* ==================================================================== */

#results-section .results-page {
  --bg:#FAF5EA;
  --bg-2:#F4ECD9;
  --bg-3:#EDE2C7;
  --paper:#FFFFFF;
  --ink:#121C33;
  --ink-2:#27354F;
  --ink-3:#5A6378;
  --mute:#8F8772;
  --line:#E8DCC2;
  --line-2:#D7C7A4;
  --line-3:#C6B489;
  --terra:#D65A28;
  --terra-2:#B9441A;
  --terra-3:#8A3012;
  --terra-soft:#F6DEC8;
  --terra-tint:#FCEEDF;
  --leaf:#5B7A46;
  --leaf-soft:#DDE6CC;
  --gold:#B98536;
  --gold-soft:#F5E3C2;

  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:20px; --s6:24px;
  --s7:32px; --s8:40px; --s9:48px; --s10:64px; --s11:80px;

  --r-sm:8px; --r-md:14px; --r-lg:20px; --r-xl:28px;

  --sh-1: 0 1px 0 rgba(19,28,51,.03), 0 1px 2px rgba(19,28,51,.04);
  --sh-2: 0 1px 0 rgba(19,28,51,.04), 0 12px 32px -18px rgba(19,28,51,.18);
  --sh-3: 0 1px 0 rgba(19,28,51,.04), 0 32px 64px -28px rgba(19,28,51,.25);
  --sh-terra: 0 20px 48px -20px rgba(185,68,26,.55);

  --serif:'Fraunces',serif;
  --sans:'Inter Tight',sans-serif;
  --mono:'JetBrains Mono',monospace;
}

#results-section .results-page {
  background:
    radial-gradient(1400px 700px at 80% -8%, #FCE4C9 0%, transparent 55%),
    radial-gradient(1000px 500px at -5% 25%, #F5E8CD 0%, transparent 50%),
    var(--bg);
  min-height:100vh;
  padding:var(--s9) var(--s6) var(--s11);
  max-width:880px;
  margin:0 auto;
  font-family:var(--sans);
  font-size:15px;
  line-height:1.5;
  color:var(--ink);
}

#results-section .results-page *{box-sizing:border-box}
#results-section .results-page > * + * { margin-top: var(--s5); }

/* ============ ANIMATIONS ============ */
@keyframes rpRevealUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

#results-section .reveal { opacity: 0; transform: translateY(28px); animation: rpRevealUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
#results-section .reveal:nth-child(1)  { animation-delay: 0.05s; }
#results-section .reveal:nth-child(2)  { animation-delay: 0.15s; }
#results-section .reveal:nth-child(3)  { animation-delay: 0.22s; }
#results-section .reveal:nth-child(4)  { animation-delay: 0.28s; }
#results-section .reveal:nth-child(5)  { animation-delay: 0.38s; }
#results-section .reveal:nth-child(6)  { animation-delay: 0.46s; }
#results-section .reveal:nth-child(7)  { animation-delay: 0.54s; }
#results-section .reveal:nth-child(8)  { animation-delay: 0.60s; }
#results-section .reveal:nth-child(9)  { animation-delay: 0.66s; }
#results-section .reveal:nth-child(10) { animation-delay: 0.72s; }
#results-section .reveal:nth-child(11) { animation-delay: 0.78s; }
#results-section .reveal:nth-child(12) { animation-delay: 0.84s; }
#results-section .reveal:nth-child(13) { animation-delay: 0.90s; }
#results-section .reveal:nth-child(14) { animation-delay: 0.96s; }
#results-section .reveal:nth-child(n+15) { animation-delay: 1.02s; }

/* ============ LABEL ============ */
#results-section .label{
  font-family:var(--mono);font-size:10px;font-weight:500;
  letter-spacing:.24em;text-transform:uppercase;color:var(--mute);
}
#results-section .label-center{display:flex;align-items:center;justify-content:center;gap:var(--s4)}
#results-section .label-center::before,#results-section .label-center::after{
  content:"";flex:0 0 36px;height:1px;background:var(--line-2);
}

/* ============ HERO ============ */
#results-section .hero{
  position:relative;border-radius:var(--r-xl);
  padding:var(--s11) var(--s8) var(--s10);
  text-align:center;
  background:
    radial-gradient(700px 320px at 50% 110%, rgba(214,90,40,.22), transparent 55%),
    linear-gradient(180deg,#FCEFD4 0%, #F9DFB4 100%);
  border:1px solid rgba(214,90,40,.12);
  overflow:hidden;box-shadow:var(--sh-3);
}
#results-section .hero::before,#results-section .hero::after{
  content:"";position:absolute;border-radius:50%;filter:blur(70px);opacity:.45;pointer-events:none;
}
#results-section .hero::before{width:280px;height:280px;background:#F2A866;top:-90px;left:-70px}
#results-section .hero::after{width:320px;height:320px;background:#E8BC7A;bottom:-130px;right:-90px}
#results-section .hero .label{color:var(--terra-2);position:relative;z-index:1}
#results-section .hero .label::before,#results-section .hero .label::after{background:var(--terra-2);opacity:.45}
#results-section .hero h1{
  font-family:var(--serif);font-weight:300;
  font-size:clamp(42px,6.4vw,72px);
  line-height:.98;letter-spacing:-.028em;
  color:var(--ink);margin-top:var(--s5);
  position:relative;z-index:1;
  font-variation-settings:"opsz" 144;
}
#results-section .hero h1 em{font-style:italic;font-weight:300;color:var(--terra-2)}
#results-section .hero .rule{
  width:56px;height:2px;border-radius:2px;background:var(--terra);
  margin:var(--s7) auto var(--s5);position:relative;z-index:1;
}
#results-section .hero .sub{
  max-width:460px;margin:0 auto;
  color:var(--ink-3);font-size:15px;line-height:1.65;
  position:relative;z-index:1;
}
#results-section .corner{position:absolute;width:44px;height:44px;opacity:.35;z-index:1}
#results-section .corner svg{width:100%;height:100%;stroke:var(--terra-2);fill:none;stroke-width:1}
#results-section .corner.tl{top:var(--s6);left:var(--s6)}
#results-section .corner.tr{top:var(--s6);right:var(--s6);transform:scaleX(-1)}

/* ============ CARDS ============ */
#results-section .results-page .card{
  background:var(--paper);border:1px solid var(--line);
  border-radius:var(--r-lg);padding:var(--s8);
  box-shadow:var(--sh-2);
}

/* ============ CONGRATS ============ */
#results-section .congrats{padding:var(--s10) var(--s8);text-align:center}
#results-section .trophy{
  width:60px;height:60px;border-radius:50%;
  background:linear-gradient(180deg,#FDEFD4,#F5D29C);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto var(--s5);
  border:1px solid rgba(185,133,54,.3);
  box-shadow:inset 0 -2px 4px rgba(185,133,54,.15),0 4px 12px -4px rgba(185,133,54,.25);
}
#results-section .congrats h2{
  font-family:var(--serif);font-style:italic;font-weight:300;
  font-size:36px;color:var(--terra-2);letter-spacing:-.015em;line-height:1;
}
#results-section .congrats .name{
  font-family:var(--serif);font-size:20px;font-weight:400;
  margin-top:var(--s3);color:var(--ink);letter-spacing:-.005em;
}
#results-section .congrats .divider{width:40px;height:1px;background:var(--terra);margin:var(--s5) auto;opacity:.5}
#results-section .congrats p{color:var(--ink-3);max-width:440px;margin:0 auto;line-height:1.65;font-size:14.5px}

/* ============ CONFETTI ============ */
#results-section .confetti {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; z-index: 0;
}
#results-section .confetti span {
  position: absolute; width: 8px; height: 8px; top: -20px;
  animation: confettiFall 2.2s ease-in forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(500px) rotate(720deg); opacity: 0; }
}

/* ============ BADGES ============ */
#results-section .badges{display:grid;grid-template-columns:1fr 1fr;gap:var(--s4)}
#results-section .badge{
  display:flex;align-items:center;gap:var(--s4);
  background:var(--paper);border:1px solid var(--line);
  border-radius:var(--r-md);padding:var(--s5) var(--s6);
  box-shadow:var(--sh-1);
}
#results-section .badge .ic{
  width:38px;height:38px;border-radius:10px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
}
#results-section .badge .ic.green{background:var(--leaf-soft);color:var(--leaf)}
#results-section .badge .ic.gold{background:var(--gold-soft);color:var(--gold)}
#results-section .badge .t{font-weight:600;font-size:14px;color:var(--ink);line-height:1.2;letter-spacing:-.005em}
#results-section .badge .d{font-size:12px;color:var(--mute);margin-top:3px;line-height:1.3}
#results-section .badge .d b{color:var(--terra-2);font-weight:600}

/* ============ TYPE CARD ============ */
#results-section .type-card{
  position:relative;overflow:hidden;border-radius:var(--r-lg);
  background:
    radial-gradient(600px 300px at 25% 0%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(400px 200px at 100% 100%, rgba(0,0,0,.15), transparent 60%),
    linear-gradient(135deg,#DD6530 0%,#B9441A 55%,#8A3012 100%);
  padding:var(--s10) var(--s8);text-align:center;color:#fff;
  border:1px solid rgba(255,255,255,.08);box-shadow:var(--sh-terra);
}
#results-section .type-card::before{
  content:"";position:absolute;inset:var(--s4);
  border:1px solid rgba(255,255,255,.16);
  border-radius:var(--r-md);pointer-events:none;
}
#results-section .type-card::after{
  content:"";position:absolute;inset:0;
  background-image:radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size:3px 3px;pointer-events:none;opacity:.5;
}
#results-section .type-card .tag{
  font-family:var(--mono);font-size:10px;font-weight:500;
  letter-spacing:.3em;text-transform:uppercase;opacity:.8;position:relative;
}
#results-section .type-card .glyph{
  font-family:var(--serif);font-weight:300;
  font-size:clamp(108px,16vw,168px);line-height:1;
  letter-spacing:.035em;margin-top:var(--s5);
  text-shadow:0 2px 40px rgba(0,0,0,.18);
  font-variation-settings:"opsz" 144;position:relative;
}
#results-section .type-card .title{
  font-family:var(--serif);font-style:italic;font-weight:300;
  font-size:22px;margin-top:var(--s2);opacity:.88;position:relative;
}
#results-section .type-card .rare{
  display:inline-flex;align-items:center;gap:var(--s3);
  margin-top:var(--s7);
  font-family:var(--mono);font-size:10px;font-weight:500;
  letter-spacing:.22em;text-transform:uppercase;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.22);
  padding:var(--s2) var(--s4);border-radius:999px;
  backdrop-filter:blur(6px);position:relative;
}
#results-section .type-card .rare .diamond{width:4px;height:4px;background:#fff;transform:rotate(45deg);opacity:.8}

/* ============ TRAITS (V3 IMPROVED) ============ */
#results-section .traits-card{padding:var(--s9) var(--s8)}
#results-section .traits-head{
  display:flex;align-items:flex-end;justify-content:space-between;
  padding-bottom:var(--s7);margin-bottom:var(--s8);
  border-bottom:1px solid var(--line);
}
#results-section .traits-head .eyebrow{
  font-family:var(--mono);font-size:10px;font-weight:500;
  letter-spacing:.24em;text-transform:uppercase;color:var(--mute);
}
#results-section .traits-head h3{
  font-family:var(--serif);font-weight:300;font-size:32px;
  line-height:1;letter-spacing:-.02em;color:var(--ink);
  margin-top:var(--s3);font-variation-settings:"opsz" 144;
}
#results-section .traits-head h3 em{font-style:italic;color:var(--terra-2);font-weight:300}
#results-section .traits-head .right{
  text-align:right;font-family:var(--mono);font-size:10px;font-weight:500;
  letter-spacing:.18em;text-transform:uppercase;color:var(--mute);line-height:1.6;
}
#results-section .traits-head .right b{
  display:block;font-family:var(--serif);font-size:18px;
  letter-spacing:.08em;color:var(--terra-2);font-weight:500;margin-top:2px;
}

#results-section .trait{
  display:grid;
  grid-template-columns:56px 1fr 56px;
  gap:var(--s6);align-items:center;
  padding:var(--s6) 0;position:relative;
}
#results-section .trait + .trait{border-top:1px dashed var(--line-2)}

#results-section .letter{
  width:56px;height:56px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-weight:400;font-size:26px;line-height:1;
  letter-spacing:-.01em;position:relative;
  font-variation-settings:"opsz" 144;transition:all .3s;
}
#results-section .letter.active{color:#fff;box-shadow:0 8px 20px -8px currentColor}
#results-section .letter.inactive{background:var(--bg-2);color:var(--mute);border:1px solid var(--line)}

#results-section .c1 .letter.active{background:linear-gradient(180deg,#4A7BC4,#2E5A9C)}
#results-section .c1 .fill{background:linear-gradient(90deg,#5F8BD6,#3E6DB5)}
#results-section .c1 .indicator{color:#3E6DB5}

#results-section .c2 .letter.active{background:linear-gradient(180deg,#DD6530,#B9441A)}
#results-section .c2 .fill{background:linear-gradient(90deg,#EE8050,#D65A28)}
#results-section .c2 .indicator{color:#D65A28}

#results-section .c3 .letter.active{background:linear-gradient(180deg,#6B8C52,#4A6638)}
#results-section .c3 .fill{background:linear-gradient(90deg,#83A768,#5B7A46)}
#results-section .c3 .indicator{color:#5B7A46}

#results-section .c4 .letter.active{background:linear-gradient(180deg,#C69442,#96671F)}
#results-section .c4 .fill{background:linear-gradient(90deg,#DDA859,#B98536)}
#results-section .c4 .indicator{color:#B98536}

#results-section .trait-center{min-width:0}
#results-section .top-row{
  display:flex;align-items:baseline;justify-content:space-between;
  margin-bottom:var(--s4);
}
#results-section .trait-name{
  font-family:var(--serif);font-weight:500;font-size:19px;
  letter-spacing:-.015em;color:var(--ink);
  font-variation-settings:"opsz" 144;
}
#results-section .trait-name .sub{
  font-family:var(--sans);font-weight:400;font-size:12px;
  color:var(--mute);margin-left:8px;letter-spacing:0;
}
#results-section .vals{
  display:flex;align-items:baseline;gap:6px;
  font-family:var(--mono);font-size:11px;font-weight:500;color:var(--mute);
}
#results-section .vals .dom{font-family:var(--serif);font-size:16px;font-weight:500;letter-spacing:-.01em;color:var(--ink)}
#results-section .vals .dom::after{content:"%";font-size:11px;opacity:.7;margin-left:1px}
#results-section .vals .vs{opacity:.5}
#results-section .vals .opp::after{content:"%";font-size:9px;opacity:.6;margin-left:1px}

#results-section .bar-wrap{position:relative;padding:6px 0}
#results-section .bar{
  height:4px;border-radius:999px;background:var(--bg-3);
  position:relative;overflow:hidden;
}
#results-section .results-page .trait .fill{
  position:absolute;top:0;bottom:0;border-radius:999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1), left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
#results-section .indicator{
  position:absolute;top:50%;transform:translate(-50%,-50%);
  width:16px;height:16px;border-radius:50%;
  background:var(--paper);border:3px solid currentColor;
  box-shadow:0 2px 6px rgba(19,28,51,.18);z-index:2;
  transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
#results-section .center-tick{
  position:absolute;top:-4px;bottom:-4px;left:50%;width:1px;
  background:var(--line-2);transform:translateX(-50%);
}
#results-section .poles{display:flex;justify-content:space-between;margin-top:var(--s4)}
#results-section .pole{
  font-family:var(--mono);font-size:9.5px;font-weight:500;
  letter-spacing:.18em;text-transform:uppercase;color:var(--mute);
}
#results-section .pole.active{color:var(--ink)}

#results-section .traits-foot{
  margin-top:var(--s7);padding-top:var(--s6);
  border-top:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;
  gap:var(--s4);flex-wrap:wrap;
}
#results-section .traits-foot p{
  font-family:var(--serif);font-style:italic;font-weight:300;
  font-size:13px;color:var(--ink-3);line-height:1.5;max-width:480px;
}
#results-section .traits-foot .legend{
  display:flex;gap:var(--s4);
  font-family:var(--mono);font-size:9px;font-weight:500;
  letter-spacing:.16em;text-transform:uppercase;color:var(--mute);
}
#results-section .traits-foot .legend span{display:flex;align-items:center;gap:6px}
#results-section .traits-foot .legend i{width:8px;height:8px;border-radius:50%}

/* ============ CERTIFICATE (NAVY PREVIEW — kept as-is) ============ */
#results-section .cert-preview-navy {
  background: linear-gradient(135deg, #0f1a35, #1a2e52);
  border-radius: 14px;
  padding: 28px 32px 28px 0;
  display: flex;
  gap: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px -14px rgba(15, 26, 53, .45);
  border: 1px solid rgba(201, 169, 97, .18);
}
#results-section .cert-navy-sidebar {
  width: 52px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}
#results-section .cert-navy-sidebar::before {
  content: '';
  position: absolute;
  top: 18px; bottom: 18px;
  left: 50%; transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201, 169, 97, .3), transparent);
}
#results-section .cert-navy-sidebar-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: Georgia, serif;
  font-size: 7.5px;
  letter-spacing: 0.22em;
  color: #c9a961;
  text-transform: uppercase;
  white-space: nowrap;
}
#results-section .cert-navy-sidebar-sub {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: Georgia, serif;
  font-size: 6.5px;
  letter-spacing: 0.18em;
  color: rgba(201, 169, 97, .5);
  text-transform: uppercase;
  white-space: nowrap;
}
#results-section .cert-navy-body {
  flex: 1;
  padding: 0 0 0 12px;
  position: relative;
}
#results-section .cert-navy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
#results-section .cert-navy-logo { height: 28px; width: auto; }
#results-section .cert-navy-id { font-family: Georgia, serif; font-size: 8px; color: #c9a961; }
#results-section .cert-navy-rule { height: 1px; background: #dcd6c2; margin-bottom: 12px; }
#results-section .cert-navy-label { font-family: Georgia, serif; font-size: 8px; letter-spacing: 0.2em; color: #6b6a5e; margin-bottom: 4px; }
#results-section .cert-navy-name { font-family: Georgia, serif; font-size: 28px; font-weight: bold; color: #fff; line-height: 1.1; }
#results-section .cert-navy-accent { width: 40px; height: 2px; background: #c9a961; margin: 8px 0; }
#results-section .cert-navy-desc { font-family: Georgia, serif; font-style: italic; font-size: 10px; color: rgba(255,255,255,.6); margin-bottom: 6px; }
#results-section .cert-navy-type { font-family: Georgia, serif; font-size: 52px; font-weight: bold; color: #fff; letter-spacing: 0.05em; line-height: 1; }
#results-section .cert-navy-nick { font-family: Georgia, serif; font-style: italic; font-size: 16px; color: #c9a961; margin-top: 2px; }
#results-section .cert-navy-stamp { position: absolute; right: 24px; bottom: 60px; width: 80px; height: 80px; }
#results-section .cert-navy-stamp img { width: 100%; height: 100%; object-fit: contain; }
#results-section .cert-navy-bottom-rule { height: 1px; background: rgba(220,214,194,.3); margin: 14px 0 10px; }
#results-section .cert-navy-footer { display: flex; justify-content: space-between; gap: 12px; }
#results-section .cert-navy-footer > div { display: flex; flex-direction: column; }
#results-section .cert-navy-foot-label { font-family: Georgia, serif; font-size: 7px; letter-spacing: 0.18em; color: rgba(201,169,97,.6); margin-bottom: 2px; text-transform: uppercase; }
#results-section .cert-navy-foot-val { font-family: Georgia, serif; font-size: 10px; color: #fff; }

/* ============ V3 CERTIFICATE (Cream Style) ============ */
#results-section .cert-section .label{display:block;text-align:center;margin-bottom:var(--s7)}
#results-section .cert{
  position:relative;border-radius:var(--r-md);overflow:hidden;
  background:linear-gradient(180deg,#FBF6EB,#F3E8CD);
  border:1px solid var(--line-2);
  display:flex;min-height:248px;box-shadow:var(--sh-2);
}
#results-section .cert::after{
  content:"";position:absolute;inset:10px 10px 10px 70px;
  border:1px solid rgba(138,48,18,.12);pointer-events:none;border-radius:4px;
}
#results-section .cert .sash{
  width:56px;flex-shrink:0;
  background:linear-gradient(180deg,#172846,#0B1428);
  display:flex;align-items:center;justify-content:center;position:relative;
}
#results-section .cert .sash::before{
  content:"";position:absolute;top:var(--s3);bottom:var(--s3);
  left:50%;transform:translateX(-50%);
  width:1px;background:rgba(215,185,120,.3);
}
#results-section .cert .sash span{
  writing-mode:vertical-rl;transform:rotate(180deg);
  font-family:var(--mono);font-size:8.5px;font-weight:500;
  letter-spacing:.3em;text-transform:uppercase;color:#D7B978;
}
#results-section .cert .body{flex:1;padding:var(--s7) var(--s8);position:relative;display:flex;flex-direction:column}
#results-section .cert .top{
  display:flex;align-items:center;justify-content:space-between;
  padding-bottom:var(--s4);
  border-bottom:1px solid rgba(138,48,18,.12);
}
#results-section .cert .brand{font-family:var(--serif);font-size:13px;font-weight:500;color:var(--ink);letter-spacing:-.005em}
#results-section .cert .brand b{color:var(--terra-2);font-style:italic;font-weight:500}
#results-section .cert .brand span{color:var(--mute);font-weight:400;font-style:normal;margin-left:6px}
#results-section .cert .valid{
  font-family:var(--mono);font-size:9px;font-weight:500;
  letter-spacing:.2em;text-transform:uppercase;color:var(--mute);
  display:flex;align-items:center;gap:var(--s2);
}
#results-section .cert .valid::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--leaf)}
#results-section .cert .content{padding:var(--s5) 0;flex:1}
#results-section .cert .presented{
  font-family:var(--mono);font-size:9px;font-weight:500;
  letter-spacing:.24em;text-transform:uppercase;color:var(--mute);
}
#results-section .cert h4{font-family:var(--serif);font-weight:500;font-size:24px;color:var(--ink);margin-top:var(--s1);letter-spacing:-.01em}
#results-section .cert .desc{font-size:12px;color:var(--ink-3);margin-top:var(--s1);font-family:var(--serif);font-style:italic;font-weight:300}
#results-section .cert .big{
  font-family:var(--serif);font-weight:400;font-size:48px;color:var(--ink);
  margin-top:var(--s3);letter-spacing:.03em;line-height:1;
  font-variation-settings:"opsz" 144;
}
#results-section .cert .italic-sub{font-family:var(--serif);font-style:italic;font-weight:300;color:var(--terra-2);font-size:13px;margin-top:var(--s1)}
#results-section .cert .meta{
  display:grid;grid-template-columns:repeat(3,auto);
  gap:var(--s7);padding-top:var(--s5);
  border-top:1px solid rgba(138,48,18,.12);margin-top:auto;
}
#results-section .cert .meta .k{font-family:var(--mono);font-size:8.5px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--mute)}
#results-section .cert .meta .v{font-family:var(--serif);font-size:12px;font-weight:500;color:var(--ink);margin-top:3px;letter-spacing:-.005em}
#results-section .cert .seal{
  position:absolute;right:var(--s8);bottom:var(--s6);
  width:56px;height:56px;border-radius:50%;
  background:radial-gradient(circle at 34% 30%,#DD6530,#8A3012);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 18px -4px rgba(138,48,18,.5),inset 0 -2px 4px rgba(0,0,0,.25);
}
#results-section .cert .seal::before{content:"";position:absolute;inset:4px;border-radius:50%;border:1px dashed rgba(251,227,195,.4)}
#results-section .cert .seal span{font-family:var(--serif);font-weight:600;font-size:11px;color:#FBE3C3;letter-spacing:.06em;position:relative}

/* ============ BUTTONS ============ */
#results-section .results-page .btn{
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
  gap:10px !important;
  font-family:var(--sans) !important;font-weight:600 !important;font-size:12px !important;
  letter-spacing:.12em !important;text-transform:uppercase !important;
  padding:13px 28px !important;border-radius:999px !important;
  cursor:pointer !important;border:none !important;text-decoration:none !important;
  transition:all .25s cubic-bezier(.2,.8,.2,1) !important;
  width:100% !important;line-height:1.3 !important;
  margin:0 !important;
  -webkit-appearance:none !important;appearance:none !important;
  box-sizing:border-box !important;
  min-height:0 !important;max-height:none !important;
  text-align:center !important;
}
#results-section .results-page .btn svg{width:15px !important;height:15px !important;flex-shrink:0 !important}
#results-section .results-page .btn-primary{
  background:linear-gradient(180deg,#E26834,#B9441A) !important;color:#fff !important;
  border:none !important;
  box-shadow:
    0 8px 20px -8px rgba(185,68,26,.55),
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -1px 0 rgba(0,0,0,.12) !important;
}
#results-section .results-page .btn-primary:hover{
  transform:translateY(-1px) !important;
  box-shadow:
    0 12px 28px -10px rgba(185,68,26,.65),
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -1px 0 rgba(0,0,0,.12) !important;
}
#results-section .results-page .btn-ghost{
  background:transparent !important;color:var(--terra-2) !important;
  border:1.5px solid var(--terra) !important;
  box-shadow:none !important;
}
#results-section .results-page .btn-ghost:hover{background:var(--terra) !important;color:#fff !important}
#results-section .results-page .btn-dark{
  background:linear-gradient(180deg,#1E2D48,#0E172D) !important;color:#fff !important;
  border:none !important;
  box-shadow:0 8px 20px -8px rgba(14,23,45,.45),inset 0 1px 0 rgba(255,255,255,.12) !important;
}
#results-section .results-page .btn-dark:hover{transform:translateY(-1px) !important}
#results-section .cert-preview-img{
  width:100% !important;height:auto !important;display:block !important;
  border-radius:var(--r-md) !important;
  box-shadow:0 12px 40px -10px rgba(15,26,53,.18),0 4px 12px -4px rgba(0,0,0,.06) !important;
  border:1px solid var(--line-2) !important;
}
#results-section .cert-dl{margin-top:var(--s5) !important}

/* ============ CAROUSEL CARD ============ */
#results-section .rel-card { text-align: center; padding: 40px 36px; }
#results-section .ic-eye {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(180deg, #FDEFD4, #F5D29C);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--s5);
  border: 1px solid rgba(185,133,54,.3);
  box-shadow: inset 0 -2px 4px rgba(185,133,54,.15), 0 4px 12px -4px rgba(185,133,54,.25);
}
#results-section .rel-card h3 {
  font-family: var(--serif); font-weight: 400; font-size: 24px;
  color: var(--ink); letter-spacing: -.015em;
  font-variation-settings: "opsz" 144;
}
#results-section .rel-chip {
  display: inline-block;
  background: var(--terra-tint); color: var(--terra-2);
  padding: var(--s2) var(--s5); border-radius: 999px;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  margin-top: var(--s3); border: 1px solid rgba(214,90,40,.18);
}
#results-section .rel-desc {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 16px; line-height: 1.6; color: var(--ink-3);
  max-width: 440px; margin: var(--s5) auto 0;
}
#results-section .rel-nav {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s4); margin-top: var(--s7);
}
#results-section .rel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line-2); cursor: pointer; transition: all .2s;
}
#results-section .rel-dot.active { background: var(--terra); transform: scale(1.3); }
#results-section .rel-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; color: var(--ink-3);
  transition: all .2s;
}
#results-section .rel-arrow:hover { border-color: var(--terra); color: var(--terra-2); }

/* ============ REPORT ============ */
#results-section .report{
  display:grid;grid-template-columns:240px 1fr;
  gap:var(--s8);align-items:center;padding:var(--s8);
}
#results-section .report-visual{position:relative;height:220px;display:flex;align-items:center;justify-content:center}
#results-section .book{
  width:132px;height:176px;border-radius:3px 10px 10px 3px;
  background:linear-gradient(135deg,#1E2D48,#0B1428);
  box-shadow:-10px 14px 32px -10px rgba(19,28,51,.45),inset 2px 0 4px rgba(0,0,0,.3);
  padding:var(--s5) var(--s4);color:#fff;position:relative;
}
#results-section .book::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:5px;
  background:linear-gradient(180deg,#DD6530,#8A3012);border-radius:3px 0 0 3px;
}
#results-section .book::after{
  content:"";position:absolute;right:6px;top:var(--s4);bottom:var(--s4);
  width:1px;background:rgba(255,255,255,.08);
}
#results-section .book .b-label{font-family:var(--serif);font-size:11px;line-height:1.35;font-weight:400;opacity:.9;letter-spacing:-.005em}
#results-section .book .b-type{
  position:absolute;bottom:var(--s5);left:var(--s4);
  font-family:var(--serif);font-size:34px;font-weight:400;
  letter-spacing:.03em;line-height:1;
}
#results-section .book .b-line{position:absolute;bottom:var(--s5);right:var(--s4);width:14px;height:1px;background:var(--terra)}
#results-section .pg{
  position:absolute;width:84px;height:112px;border-radius:2px;
  background:#fff;border:1px solid var(--line);
  padding:var(--s3) var(--s3);display:flex;flex-direction:column;gap:4px;
  box-shadow:0 4px 12px -4px rgba(19,28,51,.12);
}
#results-section .pg1{right:44px;top:32px;transform:rotate(5deg);z-index:2}
#results-section .pg2{right:6px;top:50px;transform:rotate(-3deg);z-index:1}
#results-section .pg i{display:block;height:3px;background:var(--bg-3);border-radius:2px}
#results-section .pg i:first-child{background:var(--terra);width:55%}
#results-section .pg i:nth-child(2){width:90%}
#results-section .pg i:nth-child(3){width:75%}
#results-section .pg i:nth-child(4){width:85%}
#results-section .pg i:nth-child(5){width:60%}
#results-section .pg i:nth-child(6){width:80%}

#results-section .report-info h3{
  font-family:var(--serif);font-weight:300;font-size:28px;
  line-height:1.15;color:var(--ink);letter-spacing:-.02em;
  font-variation-settings:"opsz" 144;
}
#results-section .report-info h3 em{font-style:italic;color:var(--terra-2);font-weight:300}
#results-section .report-info p{color:var(--ink-3);font-size:14px;line-height:1.6;margin-top:var(--s3);max-width:360px}
#results-section .report-stats{
  display:flex;gap:var(--s8);margin-top:var(--s5);padding:var(--s5) 0;
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
}
#results-section .report-stats div{font-family:var(--serif)}
#results-section .report-stats .n{font-size:26px;font-weight:400;color:var(--terra-2);line-height:1;letter-spacing:-.01em}
#results-section .report-stats .l{
  font-family:var(--mono);font-size:9px;font-weight:500;
  letter-spacing:.2em;text-transform:uppercase;
  color:var(--mute);display:block;margin-top:var(--s2);
}
#results-section .report-info .btn{margin-top:var(--s5)}

/* ============ SECTION TITLE ============ */
#results-section .section-label{
  font-family:var(--mono);font-size:10px;font-weight:500;
  letter-spacing:.24em;text-transform:uppercase;color:var(--mute);
  display:flex;align-items:center;justify-content:center;gap:var(--s4);
  margin-bottom:var(--s7);
}
#results-section .section-label::before,
#results-section .section-label::after{
  content:"";flex:0 0 36px;height:1px;background:var(--line-2);
}

#results-section .cardtitle{
  display:flex;align-items:center;gap:var(--s4);
  padding-bottom:var(--s6);margin-bottom:var(--s6);
  border-bottom:1px solid var(--line);
}
#results-section .cardtitle .ic{
  width:40px;height:40px;border-radius:11px;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
#results-section .cardtitle .ic.terra{background:var(--terra-tint);color:var(--terra-2)}
#results-section .cardtitle .ic.green{background:var(--leaf-soft);color:var(--leaf)}
#results-section .cardtitle .ic.gold{background:var(--gold-soft);color:var(--gold)}
#results-section .cardtitle .ic.blush{background:#F4DED4;color:#A04B38}
#results-section .cardtitle .ic.star{background:var(--gold-soft);color:var(--gold)}
#results-section .cardtitle .ic svg{width:18px;height:18px}
#results-section .cardtitle .t{
  font-family:var(--serif);font-weight:400;font-size:22px;
  letter-spacing:-.015em;color:var(--ink);
  font-variation-settings:"opsz" 144;
}
#results-section .cardtitle .c{
  margin-left:auto;font-family:var(--mono);font-size:10px;font-weight:500;
  letter-spacing:.16em;text-transform:uppercase;color:var(--mute);
}

/* ============ CHIPS ============ */
#results-section .chips{display:grid;grid-template-columns:1fr 1fr;gap:var(--s3)}
#results-section .chip{
  display:flex;align-items:center;gap:var(--s3);
  background:var(--bg-2);border:1px solid var(--line);
  border-radius:var(--r-sm);padding:var(--s4) var(--s5);
  font-size:14px;font-weight:500;color:var(--ink);
  letter-spacing:-.005em;transition:all .2s;
}
#results-section .chip:hover{background:var(--bg-3);transform:translateY(-1px)}
#results-section .chip .dot{
  width:20px;height:20px;border-radius:50%;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:700;
}
#results-section .chip.strength .dot{background:var(--terra);color:#fff}
#results-section .chip.growth .dot{background:var(--leaf);color:#fff}

/* list-style overrides for JS-generated <li> items */
#results-section .chips li,
#results-section #rd-strengths li,
#results-section #rd-weaknesses li {
  display:flex;align-items:center;gap:var(--s3);
  background:var(--bg-2);border:1px solid var(--line);
  border-radius:var(--r-sm);padding:var(--s4) var(--s5);
  font-size:14px;font-weight:500;color:var(--ink);
  letter-spacing:-.005em;transition:all .2s;
  list-style:none;
}
#results-section .chips li:hover,
#results-section #rd-strengths li:hover,
#results-section #rd-weaknesses li:hover {
  background:var(--bg-3);transform:translateY(-1px);
}
#results-section #rd-strengths li::before {
  content: '\2713';
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--terra); color: #fff;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
#results-section #rd-weaknesses li::before {
  content: '+';
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--leaf); color: #fff;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}

/* ============ CAREER ============ */
#results-section .career-chips{display:flex;flex-wrap:wrap;gap:var(--s2)}
#results-section .career-chip,
#results-section .career-chips .chip{
  background:var(--paper);border:1px solid var(--line-2);
  padding:var(--s3) var(--s4);border-radius:999px;
  font-size:13px;font-weight:500;color:var(--ink);
  display:inline-flex;align-items:center;gap:var(--s2);
  transition:all .2s;letter-spacing:-.005em;
}
#results-section .career-chip:hover,
#results-section .career-chips .chip:hover{border-color:var(--terra);color:var(--terra-2)}
#results-section .career-chip::before,
#results-section .career-chips .chip::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--terra)}

/* ============ RELATIONSHIPS ============ */
#results-section .rel-quote{
  font-family:var(--serif);font-style:italic;font-weight:300;
  font-size:20px;line-height:1.55;color:var(--ink);
  padding:var(--s2) 0 var(--s5) var(--s7);
  position:relative;letter-spacing:-.01em;
  font-variation-settings:"opsz" 144;
}
#results-section .rel-quote::before{
  content:"\201C";font-family:var(--serif);font-weight:300;
  font-size:80px;color:var(--terra-soft);
  position:absolute;left:-8px;top:-16px;line-height:1;
  font-variation-settings:"opsz" 144;
}
#results-section .compat-row{
  display:flex;align-items:center;gap:var(--s3);flex-wrap:wrap;
  margin-top:var(--s5);padding-top:var(--s5);
  border-top:1px dashed var(--line-2);
}
#results-section .compat-row .lab{
  font-family:var(--mono);font-size:9.5px;font-weight:600;
  letter-spacing:.18em;text-transform:uppercase;color:var(--terra-2);
  margin-right:var(--s2);
}
#results-section .compat-types{display:flex;gap:8px;flex-wrap:wrap}
#results-section .compat-pill,
#results-section .compat-types span{
  background:var(--terra-tint);color:var(--terra-2);
  padding:var(--s2) var(--s4);border-radius:999px;
  font-family:var(--serif);font-weight:500;font-size:14px;
  border:1px solid rgba(214,90,40,.2);letter-spacing:-.005em;
}

/* ============ FAMOUS ============ */
#results-section .famous{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--s6) var(--s4)}
#results-section .person{text-align:center}
#results-section .person .av,
#results-section #rd-famous > .famous .avatar,
#results-section #rd-famous > div .av{
  width:56px;height:56px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-weight:500;font-size:15px;
  margin:0 auto var(--s3);
  border:1px solid rgba(0,0,0,.04);
  box-shadow:var(--sh-1);letter-spacing:-.01em;
}
#results-section .person:nth-child(1) .av,
#results-section #rd-famous > :nth-child(1) .av,
#results-section #rd-famous > :nth-child(1) .avatar{background:#FDE2C2;color:#B9441A}
#results-section .person:nth-child(2) .av,
#results-section #rd-famous > :nth-child(2) .av,
#results-section #rd-famous > :nth-child(2) .avatar{background:#D4E0F0;color:#2B4F87}
#results-section .person:nth-child(3) .av,
#results-section #rd-famous > :nth-child(3) .av,
#results-section #rd-famous > :nth-child(3) .avatar{background:#DCE6CC;color:#4A6638}
#results-section .person:nth-child(4) .av,
#results-section #rd-famous > :nth-child(4) .av,
#results-section #rd-famous > :nth-child(4) .avatar{background:#E6D9EE;color:#5E3D78}
#results-section .person:nth-child(5) .av,
#results-section #rd-famous > :nth-child(5) .av,
#results-section #rd-famous > :nth-child(5) .avatar{background:#D4E0F0;color:#2B4F87}
#results-section .person:nth-child(6) .av,
#results-section #rd-famous > :nth-child(6) .av,
#results-section #rd-famous > :nth-child(6) .avatar{background:#DCE6CC;color:#4A6638}
#results-section .person:nth-child(7) .av,
#results-section #rd-famous > :nth-child(7) .av,
#results-section #rd-famous > :nth-child(7) .avatar{background:#F2CFB6;color:#8A3012}
#results-section .person:nth-child(8) .av,
#results-section #rd-famous > :nth-child(8) .av,
#results-section #rd-famous > :nth-child(8) .avatar{background:#EED6CC;color:#7E3E2C}
#results-section .person .n,
#results-section #rd-famous > div .name{font-size:12.5px;color:var(--ink);font-weight:500;line-height:1.25;letter-spacing:-.005em}
#results-section .person .r,
#results-section #rd-famous > div .role{
  font-family:var(--mono);font-size:9px;font-weight:500;
  letter-spacing:.14em;text-transform:uppercase;color:var(--mute);margin-top:3px;
}

/* ============ CTA ============ */
#results-section .cta-block{
  padding:var(--s6);background:var(--paper);
  border:1px dashed var(--line-2);border-radius:var(--r-lg);
}

/* ============ FOOTER ============ */
#results-section .foot{
  text-align:center;margin-top:var(--s8);padding:var(--s6) 0;
  display:flex;align-items:center;justify-content:center;gap:var(--s4);
}
#results-section .foot span,
#results-section .foot{
  font-family:var(--mono);font-size:9.5px;font-weight:500;
  letter-spacing:.22em;text-transform:uppercase;color:var(--mute);
}
#results-section .foot .dot,
#results-section .foot .d{width:3px;height:3px;border-radius:50%;background:var(--terra);letter-spacing:0}

/* ============ FREE EBOOK SECTION ============ */
#results-section .ebook-section{
  padding:0;overflow:hidden;
  background:linear-gradient(135deg,#FFFBF5 0%,#FFF8EE 50%,#FFF3E0 100%);
  border:1px solid var(--line-2);
}
#results-section .ebook-inner{
  display:grid;grid-template-columns:240px 1fr;
  gap:var(--s8);align-items:center;padding:var(--s8);
}
#results-section .ebook-visual{
  position:relative;display:flex;align-items:center;justify-content:center;
  height:220px;
}
#results-section .ebook-glow{
  position:absolute;width:160px;height:160px;border-radius:50%;
  background:radial-gradient(circle,rgba(221,101,48,.15),transparent 70%);
  top:50%;left:50%;transform:translate(-50%,-50%);
  pointer-events:none;z-index:0;
}
#results-section .ebook-book{
  position:relative;z-index:1;
  width:132px;height:176px;border-radius:3px 10px 10px 3px;
  perspective:600px;
}
#results-section .ebook-book-spine{
  position:absolute;left:0;top:0;bottom:0;width:5px;
  background:linear-gradient(180deg,#2dd4bf,#0d9488);
  border-radius:3px 0 0 3px;z-index:2;
}
#results-section .ebook-book-cover{
  width:100%;height:100%;
  background:linear-gradient(135deg,#0F1B2D,#1A2D4A);
  border-radius:3px 10px 10px 3px;
  padding:16px 14px;color:#fff;position:relative;overflow:hidden;
  box-shadow:-10px 14px 32px -10px rgba(19,28,51,.45),inset 2px 0 4px rgba(0,0,0,.3);
}
#results-section .ebook-book-cover::after{
  content:"";position:absolute;right:6px;top:14px;bottom:14px;
  width:1px;background:rgba(255,255,255,.08);
}
#results-section .ebook-book-badge{
  position:absolute;top:10px;right:10px;
  background:linear-gradient(135deg,#2dd4bf,#0d9488);
  color:#fff;font-family:var(--sans);font-size:8px;font-weight:700;
  letter-spacing:.15em;text-transform:uppercase;
  padding:3px 8px;border-radius:4px;
}
#results-section .ebook-book-type{
  font-family:var(--serif);font-size:34px;font-weight:400;
  letter-spacing:.03em;line-height:1;margin-top:8px;
  color:#2dd4bf;
}
#results-section .ebook-book-title{
  font-family:var(--serif);font-size:11px;line-height:1.35;
  font-weight:400;opacity:.85;margin-top:auto;
  position:absolute;bottom:40px;left:14px;
}
#results-section .ebook-book-pages{
  position:absolute;bottom:16px;left:14px;
  font-family:var(--mono);font-size:8px;font-weight:500;
  letter-spacing:.15em;text-transform:uppercase;
  color:rgba(255,255,255,.5);
}
#results-section .ebook-info{position:relative}
#results-section .ebook-tag{
  display:inline-flex;align-items:center;gap:6px;
  font-family:var(--mono);font-size:10px;font-weight:600;
  letter-spacing:.12em;text-transform:uppercase;
  color:#0d9488;margin-bottom:var(--s3);
}
#results-section .ebook-tag svg{stroke:#0d9488}
#results-section .ebook-info h3{
  font-family:var(--serif);font-weight:300;font-size:26px;
  line-height:1.2;color:var(--ink);letter-spacing:-.02em;
  font-variation-settings:"opsz" 144;
}
#results-section .ebook-info h3 em{font-style:italic;color:#0d9488;font-weight:300}
#results-section .ebook-info p{
  color:var(--ink-3);font-size:13px;line-height:1.6;
  margin-top:var(--s3);max-width:360px;
}
#results-section .ebook-features{
  display:grid;grid-template-columns:1fr 1fr;gap:6px 16px;
  margin-top:var(--s4);
}
#results-section .ebook-features span{
  display:flex;align-items:center;gap:6px;
  font-size:12px;color:var(--ink-2);font-weight:500;
}
#results-section .ebook-features svg{stroke:#0d9488;flex-shrink:0}
#results-section .btn-ebook{
  display:inline-flex;align-items:center;gap:8px;
  margin-top:var(--s5);padding:13px 28px;
  background:linear-gradient(135deg,#2dd4bf,#0d9488);
  color:#fff;border:none;border-radius:999px;
  font-family:var(--sans);font-size:14px;font-weight:600;
  cursor:pointer;text-decoration:none;
  transition:all .25s ease;
  box-shadow:0 4px 16px -4px rgba(13,148,136,.4);
}
#results-section .btn-ebook:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 24px -4px rgba(13,148,136,.5);
}
#results-section .btn-ebook svg{width:18px;height:18px}

/* ============ RESPONSIVE ============ */
@media (max-width:720px){
  #results-section .results-page{padding:var(--s6) var(--s4) var(--s10)}
  #results-section .hero{padding:var(--s10) var(--s6) var(--s9)}
  #results-section .results-page .card{padding:var(--s6)}
  #results-section .congrats{padding:var(--s8) var(--s5)}
  #results-section .badges,#results-section .chips{grid-template-columns:1fr}
  #results-section .ebook-inner{grid-template-columns:1fr;gap:var(--s6);padding:var(--s7) var(--s6)}
  #results-section .ebook-visual{height:180px}
  #results-section .ebook-features{grid-template-columns:1fr}
  #results-section .report{grid-template-columns:1fr;gap:var(--s6);padding:var(--s7) var(--s6)}
  #results-section .report-visual{height:200px}
  #results-section .famous{grid-template-columns:repeat(2,1fr)}
  #results-section .cert{min-height:auto}
  #results-section .cert .body{padding:var(--s5)}
  #results-section .cert .big{font-size:36px}
  #results-section .cert .meta{gap:var(--s4);grid-template-columns:1fr}
  #results-section .cert .seal{width:44px;height:44px;right:var(--s5);bottom:var(--s5)}
  #results-section .type-card{padding:var(--s8) var(--s5)}
  #results-section .corner{display:none}
  #results-section .traits-card{padding:var(--s7) var(--s5)}
  #results-section .traits-head{flex-direction:column;align-items:flex-start;gap:var(--s3)}
  #results-section .traits-head .right{text-align:left}
  #results-section .trait{grid-template-columns:42px 1fr 42px;gap:var(--s3)}
  #results-section .letter{width:42px;height:42px;font-size:20px;border-radius:11px}
  #results-section .trait-name{font-size:17px}
  #results-section .trait-name .sub{display:block;margin-left:0;margin-top:2px}
  #results-section .rel-card{padding:var(--s7) var(--s5)}
  #results-section .cardtitle .t{font-size:18px}
}

/* ========== WordPress Theme Overrides ============== */
#results-section,
#results-section *,
#results-section *::before,
#results-section *::after {
  box-sizing: border-box !important;
}

#results-section {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

.entry-content #results-section,
.post-content #results-section,
.site-content #results-section,
.page-content #results-section,
.content-area #results-section,
article #results-section,
.type-page #results-section,
.singular #results-section,
.ast-container #results-section,
.ast-single-post #results-section {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* WordPress theme button resets — prevent WP themes from bloating buttons */
#results-section button,
#results-section .results-page button,
.entry-content #results-section button,
.post-content #results-section button,
.ast-container #results-section button {
  padding: 13px 28px !important;
  line-height: 1.3 !important;
  min-height: 0 !important;
  height: auto !important;
  font-size: inherit !important;
  border-radius: 999px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none;
}
/* Re-apply specific button shadows after reset */
#results-section .results-page .btn-primary {
  box-shadow:
    0 8px 20px -8px rgba(185,68,26,.55),
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -1px 0 rgba(0,0,0,.12) !important;
}
#results-section .results-page .btn-dark {
  box-shadow: 0 8px 20px -8px rgba(14,23,45,.45),inset 0 1px 0 rgba(255,255,255,.12) !important;
}

@media (max-width: 480px) {
  #results-section .results-page {
    padding: 16px 10px 48px !important;
  }
  #results-section .hero {
    padding: 40px 16px 32px !important;
  }
  #results-section .hero h1 {
    font-size: 36px !important;
  }
  #results-section .results-page .card {
    padding: 20px 14px !important;
  }
  #results-section .type-card {
    padding: 40px 16px !important;
  }
  #results-section .type-card .glyph {
    font-size: 80px !important;
  }
  #results-section .traits-card {
    padding: 24px 14px !important;
  }
  #results-section .trait {
    grid-template-columns: 36px 1fr 36px !important;
    gap: 8px !important;
  }
  #results-section .letter {
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
    border-radius: 10px !important;
  }
  #results-section .trait-name {
    font-size: 15px !important;
  }
  #results-section .traits-head h3 {
    font-size: 24px !important;
  }
  #results-section .congrats h2 {
    font-size: 28px !important;
  }
  #results-section .report {
    padding: 20px 14px !important;
  }
  #results-section .report-info h3 {
    font-size: 22px !important;
  }
  /* V3 cert mobile */
  #results-section .cert {
    flex-direction: column !important;
    min-height: auto !important;
  }
  #results-section .cert .sash {
    width: 100% !important;
    height: 36px !important;
    flex-direction: row !important;
  }
  #results-section .cert .sash span {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    font-size: 7.5px !important;
  }
  #results-section .cert .body {
    padding: 16px !important;
  }
  #results-section .cert .big {
    font-size: 32px !important;
  }
  #results-section .cert .meta {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  #results-section .cert .seal {
    width: 40px !important;
    height: 40px !important;
    right: 14px !important;
    bottom: 14px !important;
  }
  #results-section .cert h4 {
    font-size: 20px !important;
  }
  /* V3 buttons mobile */
  #results-section .results-page .btn {
    padding: 12px 20px !important;
    font-size: 11px !important;
  }
  #results-section .foot {
    font-size: 8px !important;
    gap: 8px !important;
    letter-spacing: 0.18em !important;
  }
  #results-section img {
    max-width: 100% !important;
    height: auto !important;
  }
  #results-section .results-page > * {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CHECKOUT REPORT CARD — CHAMPAGNE LUXE (with Hourglass Blur)
   Full re-skin of .co-report-card. Keeps original markup classes
   intact (.co-certified, .co-type-big, .co-type-caption, .co-traits,
   .co-trait-row, .co-trait-head, .co-bar) so script.js continues
   to populate trait bars without modification.

   Toggled via admin (MBTI Test → Test Settings → Checkout Preview):
     data-preview-mode="show" → preview visible
     data-preview-mode="blur" → spoiler blurred + hourglass veil shown
   ═══════════════════════════════════════════════════════════════ */

/* ── Card shell ─────────────────────────────────────────────── */


/* ── Header (uses original .co-certified element with new inner spans) ── */


/* ── Type letters — gold gradient italic ─────────────────────── */


/* ── Nickname caption ────────────────────────────────────────── */


/* ── Trait bars ──────────────────────────────────────────────── */


/* ── Lock callout (29 more insights) ─────────────────────────── */


/* ── Countdown timer ─────────────────────────────────────────── */


/* ── CTA button ──────────────────────────────────────────────── */


/* ── BLUR MODE: spoiler region ───────────────────────────────── */


/* ── BLUR VEIL — soft champagne fog with hourglass centerpiece ── */


/* ── Animation keyframes (chmp prefix to avoid theme collisions) ── */
@keyframes chmpCardIn {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes chmpFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes chmpTypeReveal {
    from { opacity: 0; transform: translateY(10px); letter-spacing: .15em; }
    to   { opacity: 1; transform: translateY(0); letter-spacing: .02em; }
}
@keyframes chmpBarFill { from { width: 0; } }
@keyframes chmpVeilIn {
    from { opacity: 0; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); }
    to   { opacity: 1; }
}
@keyframes chmpShimmer {
    0%       { transform: translateX(-100%); opacity: 0; }
    20%, 60% { opacity: 1; }
    80%,100% { transform: translateX(100%); opacity: 0; }
}
@keyframes chmpBadgeIn {
    0%   { opacity: 0; transform: scale(.5) rotate(-20deg); }
    60%  { transform: scale(1.08) rotate(2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes chmpFloat {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-3px); }
}
@keyframes chmpHgFlip {
    0%,45%   { transform: rotate(0); }
    50%      { transform: rotate(180deg); }
    95%,100% { transform: rotate(180deg); }
}
@keyframes chmpGlow {
    0%,100% { opacity: .3; }
    50%     { opacity: 1; }
}

/* Mobile tightening */


/* Reduced motion */


/* ===========================================================
   CUSTOM FOOTER (standalone test page — no links, logo + copy)
   Stretches edge-to-edge of the viewport even when the theme
   wraps the shortcode in a constrained .entry-content container.
   =========================================================== */
#mbti-app .mbti-footer {
    margin-top: 56px;
    margin-bottom: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    padding: 56px 40px 44px;
    border-radius: 0;
    background: linear-gradient(160deg, #0B1020 0%, #111827 55%, #1E1B3A 100%);
    color: #E5E7EB;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
}
#mbti-app .mbti-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40% 60% at 15% 0%, rgba(249,115,22,0.16), transparent 65%),
        radial-gradient(40% 60% at 85% 100%, rgba(124,58,237,0.12), transparent 65%);
    pointer-events: none;
    z-index: 0;
}
#mbti-app .mbti-footer-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

#mbti-app .mbti-footer-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}
#mbti-app .mbti-footer-logo {
    height: 44px;
    width: auto;
    max-width: 240px;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(249,115,22,0.18));
}

#mbti-app .mbti-footer-tag {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    line-height: 1.25;
    color: #F9FAFB;
    margin: 0 0 16px;
    font-weight: 400;
    letter-spacing: -0.3px;
}
#mbti-app .mbti-footer-tag em {
    font-style: italic;
    background: linear-gradient(90deg, #FB923C 0%, #F472B6 50%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#mbti-app .mbti-footer-trust {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #9CA3AF;
}
#mbti-app .mbti-footer-trust span[aria-hidden] { color: #4B5563; }

#mbti-app .mbti-footer-divider {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,0.5), transparent);
    margin: 22px auto 18px;
}

#mbti-app .mbti-footer-meta {
    font-size: 11px;
    color: #6B7280;
    letter-spacing: 0.4px;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
#mbti-app .mbti-footer-meta span[aria-hidden] { color: #374151; }

@media (max-width: 640px) {
    #mbti-app .mbti-footer {
        margin-top: 36px;
        padding: 40px 24px 32px;
    }
    #mbti-app .mbti-footer-logo { height: 36px; max-width: 200px; }
    #mbti-app .mbti-footer-tag { font-size: 18px; }
    #mbti-app .mbti-footer-trust { font-size: 10px; gap: 6px 10px; }
    #mbti-app .mbti-footer-divider { margin: 18px auto 14px; }
}

/* Hide theme footer when body has the mbti-test-active class (injected by plugin) */
body.mbti-test-active > footer,
body.mbti-test-active footer#colophon,
body.mbti-test-active footer.site-footer,
body.mbti-test-active .site-footer,
body.mbti-test-active .elementor-location-footer,
body.mbti-test-active [data-elementor-type="footer"],
body.mbti-test-active .footer-widgets,
body.mbti-test-active .astra-footer,
body.mbti-test-active .ast-footer-overlay,
body.mbti-test-active .generate-back-to-top ~ footer,
body.mbti-test-active .hello-footer,
body.mbti-test-active .main-footer,
body.mbti-test-active .page-footer,
body.mbti-test-active .footer,
body.mbti-test-active #footer,
body.mbti-test-active #footer-widgets,
body.mbti-test-active #footer-nav,
body.mbti-test-active #colophon {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ---------------------------------------------------------------
   Kill bottom whitespace below the custom footer.
   Root cause: most themes use a sticky-footer layout on #page/.site
   (display:flex; flex-direction:column; min-height:100vh). When we
   hide the theme footer, the flex column still reserves 100vh, so
   whatever background #page/#content has shows as blank space
   BELOW our custom footer.
   Fix: (1) zero all bottom padding/margin on wrappers, (2) strip
   their min-height so they shrink to content, (3) paint the html
   element with the footer's end-color so any residual area past
   the body blends invisibly.
   --------------------------------------------------------------- */
/* Zero top AND bottom padding/margin on every theme wrapper that sits
   between the site header and our shortcode content. Targets BOTH body
   classes so it applies on the test page AND the checkout/results page. */
body.mbti-test-active,
body.mbti-checkout-active,
body.mbti-test-active #page, body.mbti-checkout-active #page,
body.mbti-test-active #content, body.mbti-checkout-active #content,
body.mbti-test-active #primary, body.mbti-checkout-active #primary,
body.mbti-test-active #main, body.mbti-checkout-active #main,
body.mbti-test-active main, body.mbti-checkout-active main,
body.mbti-test-active .site, body.mbti-checkout-active .site,
body.mbti-test-active .site-content, body.mbti-checkout-active .site-content,
body.mbti-test-active .site-main, body.mbti-checkout-active .site-main,
body.mbti-test-active .site-inner, body.mbti-checkout-active .site-inner,
body.mbti-test-active .content-area, body.mbti-checkout-active .content-area,
body.mbti-test-active .ast-container, body.mbti-checkout-active .ast-container,
body.mbti-test-active .ast-container-fluid, body.mbti-checkout-active .ast-container-fluid,
body.mbti-test-active .ast-primary-header-bar, body.mbti-checkout-active .ast-primary-header-bar,
body.mbti-test-active article, body.mbti-checkout-active article,
body.mbti-test-active .entry-content, body.mbti-checkout-active .entry-content,
body.mbti-test-active .entry-header, body.mbti-checkout-active .entry-header,
body.mbti-test-active .page-header, body.mbti-checkout-active .page-header,
body.mbti-test-active .page-title-wrap, body.mbti-checkout-active .page-title-wrap,
body.mbti-test-active .elementor, body.mbti-checkout-active .elementor,
body.mbti-test-active .elementor-inner, body.mbti-checkout-active .elementor-inner,
body.mbti-test-active .elementor-row, body.mbti-checkout-active .elementor-row,
body.mbti-test-active .elementor-section, body.mbti-checkout-active .elementor-section,
body.mbti-test-active .elementor-column, body.mbti-checkout-active .elementor-column,
body.mbti-test-active .elementor-section-wrap, body.mbti-checkout-active .elementor-section-wrap,
body.mbti-test-active .elementor-widget-container, body.mbti-checkout-active .elementor-widget-container,
body.mbti-test-active .elementor-widget-wrap, body.mbti-checkout-active .elementor-widget-wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* DESKTOP ONLY — nexros / pxl theme wrappers add 100px top+bottom on desktop.
   Mobile already renders correctly via the theme's own breakpoints — do NOT
   touch mobile here or content slams against the header. */
@media (min-width: 769px) {
    body.mbti-test-active #pxl-main, body.mbti-checkout-active #pxl-main,
    body.mbti-test-active #pxl-content-area, body.mbti-checkout-active #pxl-content-area,
    body.mbti-test-active #pxl-content-main, body.mbti-checkout-active #pxl-content-main,
    body.mbti-test-active .pxl-content-area, body.mbti-checkout-active .pxl-content-area,
    body.mbti-test-active .pxl-content-page, body.mbti-checkout-active .pxl-content-page,
    body.mbti-test-active .pxl-content-wrap, body.mbti-checkout-active .pxl-content-wrap,
    body.mbti-test-active .pxl-entry-content, body.mbti-checkout-active .pxl-entry-content,
    body.mbti-test-active .pxl-content-page > .container, body.mbti-checkout-active .pxl-content-page > .container,
    body.mbti-test-active .pxl-content-wrap > .row, body.mbti-checkout-active .pxl-content-wrap > .row {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* #pxl-header-elementor is position:relative in normal flow (height 128px),
       so content already starts below it without needing extra padding. The
       sticky variant (.pxl-header-elementor-sticky) only appears on scroll as
       a separate fixed overlay, which is acceptable. */
    body.mbti-test-active #mbti-app,
    body.mbti-checkout-active #mbti-app {
        padding-top: 0 !important;
    }

    /* Kill min-height on #pxl-main — desktop only — to remove wasted space
       below the footer on short pages. */
    body.mbti-test-active #pxl-main,
    body.mbti-checkout-active #pxl-main {
        min-height: 0 !important;
        width: auto !important;
    }
}

/* Also hide common page-title / breadcrumb / entry-header areas that render
   as empty blank bars when the page title is hidden. Covers Astra, Kadence,
   GeneratePress, Elementor, Hello, Genesis, Blocksy, etc. */
body.mbti-test-active .entry-header,
body.mbti-checkout-active .entry-header,
body.mbti-test-active .page-header,
body.mbti-checkout-active .page-header,
body.mbti-test-active .page-title-wrap,
body.mbti-checkout-active .page-title-wrap,
body.mbti-test-active .ast-archive-description,
body.mbti-checkout-active .ast-archive-description,
body.mbti-test-active .hentry > header,
body.mbti-checkout-active .hentry > header,
body.mbti-test-active .single-post-thumbnail,
body.mbti-checkout-active .single-post-thumbnail,
body.mbti-test-active .entry-banner,
body.mbti-checkout-active .entry-banner,
body.mbti-test-active .breadcrumb,
body.mbti-checkout-active .breadcrumb,
body.mbti-test-active .breadcrumbs,
body.mbti-checkout-active .breadcrumbs,
body.mbti-test-active .woocommerce-breadcrumb,
body.mbti-checkout-active .woocommerce-breadcrumb {
    display: none !important;
}

/* Strip min-height from sticky-footer wrappers so they shrink to content */
body.mbti-test-active #page, body.mbti-checkout-active #page,
body.mbti-test-active .site, body.mbti-checkout-active .site,
body.mbti-test-active #content, body.mbti-checkout-active #content,
body.mbti-test-active .site-content, body.mbti-checkout-active .site-content,
body.mbti-test-active #primary, body.mbti-checkout-active #primary,
body.mbti-test-active .content-area, body.mbti-checkout-active .content-area,
body.mbti-test-active #main, body.mbti-checkout-active #main,
body.mbti-test-active main, body.mbti-checkout-active main,
body.mbti-test-active .site-main, body.mbti-checkout-active .site-main,
body.mbti-test-active article, body.mbti-checkout-active article,
body.mbti-test-active .entry-content, body.mbti-checkout-active .entry-content,
body.mbti-test-active .ast-container, body.mbti-checkout-active .ast-container {
    min-height: 0 !important;
}

/* Body itself shrinks to content */
body.mbti-test-active, body.mbti-checkout-active {
    min-height: 0 !important;
}

/* Page-wide warm cream wash — extends the cream that was previously confined
   to the #questions-section card across the whole body so the test/checkout
   pages feel cohesive instead of a warm card framed by a white page. */
body.mbti-test-active,
body.mbti-checkout-active {
    background: linear-gradient(180deg, #FFFAF5 0%, #FFF5EC 50%, #FFFAF5 100%) !important;
}
body.mbti-test-active #mbti-app,
body.mbti-checkout-active #mbti-app,
body.mbti-test-active #intro-section,
body.mbti-test-active #preparing-section,
body.mbti-test-active #loading-section,
body.mbti-test-active #questions-section.qv3-mode,
body.mbti-checkout-active #checkout-section {
    background: transparent !important;
}

/* Zero #mbti-app's own padding/margin (beats mobile media queries at 2712/4515).
   Checkout/results run full-bleed — their internal cards handle their own gutters.
   The test page keeps its natural padding so the intro .pa-card and the question
   cards have breathing room from the viewport edge on mobile. */
body.mbti-checkout-active #mbti-app {
    padding: 0 !important;
    margin: 0 !important;
}
body.mbti-test-active #mbti-app {
    margin: 0 !important;
}

/* Paint html behind everything navy so any residual extension past the
   footer blends instead of flashing white. Applies for either body class. */
html:has(body.mbti-test-active),
html:has(body.mbti-checkout-active) {
    background-color: #1E1B3A !important;
}

/* ════════════════════════════════════════════════════════════════════
   QV3 — Single-card stage layout for the Questions Section
   Matches reference mockup: progress header, big card (badge + sparkle
   + serif question + 5 emoji tiles + 3-anchor labels), confidentiality
   reassurance card, and footer hint.

   All overrides scope under `#questions-section.qv3-mode` so they
   don't bleed into the intro / preparing screens.
   ──────────────────────────────────────────────────────────────────── */

/* Disable iOS double-tap zoom + 300ms tap delay across the test surface.
   `manipulation` still allows pinch-zoom and panning, only kills double-tap zoom. */
#questions-section.qv3-mode,
#questions-section.qv3-mode * {
    touch-action: manipulation;
}
#questions-section.qv3-mode .option-pill,
#questions-section.qv3-mode .qv4-seg,
#questions-section.qv3-mode .qv4-back-btn,
#questions-section.qv3-mode .btn-submit-test {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

/* Hide the legacy progress nodes we keep around for back-compat with
   the existing JS that updates #progress-fill / #progress-percent. */
#questions-section.qv3-mode .qv3-legacy {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    pointer-events: none !important;
}

/* Hide the older legend / heading and progress-header (we replace
   them with .qv3-head). */
#questions-section.qv3-mode .progress-header,
#questions-section.qv3-mode .main-heading,
#questions-section.qv3-mode .legend-box {
    display: none !important;
}

/* Section wrapper */
#questions-section.qv3-mode {
    background: linear-gradient(180deg, #FFFAF5 0%, #FFFFFF 35%, #FFFFFF 100%);
    padding: 10px 0 14px;
    min-height: auto;
    position: relative;
}

/* Soft ambient blobs anchored to the section — adds depth without
   needing extra DOM nodes. */
#questions-section.qv3-mode::before,
#questions-section.qv3-mode::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
#questions-section.qv3-mode::before {
    width: 320px; height: 320px;
    right: -100px; top: 80px;
    background: radial-gradient(circle, rgba(253, 186, 116, 0.18), transparent 70%);
    filter: blur(20px);
}
#questions-section.qv3-mode::after {
    width: 280px; height: 280px;
    left: -90px; bottom: 60px;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.18), transparent 70%);
    filter: blur(20px);
}

/* ── Progress Header — Editorial (centered · serif accent) ───────── */
#questions-section.qv3-mode .qv3-head {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin: 0 auto 12px;
    padding: 2px 22px 0;
    background: transparent;
    border: 0;
    text-align: center;
}
#questions-section.qv3-mode .qv3-head-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 700;
    color: #C2410C;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    background: #FFF3EA;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(194, 65, 12, 0.10);
    line-height: 1;
}
#questions-section.qv3-mode .qv3-head-eyebrow-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #F97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18);
    animation: qv3PulseOrange 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes qv3PulseOrange {
    0%, 100% { box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18); }
    50%      { box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.04); }
}
#questions-section.qv3-mode .qv3-head-title {
    margin-top: 8px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.5px;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}
#questions-section.qv3-mode .qv3-head-title em {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(135deg, #F97316, #EA580C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 4px;
}
#questions-section.qv3-mode .qv3-head-q-of {
    color: #9CA3AF;
    font-weight: 500;
}
#questions-section.qv3-mode .qv3-head-tagline {
    margin-top: 4px;
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 500;
    letter-spacing: 0;
}
#questions-section.qv3-mode .qv3-head-foot {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    color: #6B7280;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
#questions-section.qv3-mode .qv3-head-foot-pct #qv3-percent {
    color: #111827;
    font-weight: 700;
}
#questions-section.qv3-mode .qv3-head-foot-pct-word {
    color: #6B7280;
    font-weight: 500;
}
#questions-section.qv3-mode .qv3-head-foot-rem {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#questions-section.qv3-mode .qv3-head-foot-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
    animation: qv3PulseDot 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes qv3PulseDot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); }
    50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.04); }
}
#questions-section.qv3-mode .qv3-progress-track {
    height: 5px;
    background: #ECEEF1;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
#questions-section.qv3-mode .qv3-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #F97316 0%, #FB923C 55%, #FDBA74 100%);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 0 0 6px rgba(249, 115, 22, 0.3);
}

/* ── Stage (one card visible at a time) ─────────────────────────── */
#questions-section.qv3-mode .qv3-stage {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}
/* Grid-stacking: all cards share the single grid cell, so the cell
   sizes itself to the tallest card and there's never any overlap
   with siblings below — and we don't need to JS-measure heights. */
#questions-section.qv3-mode .questions-list {
    display: grid;
    grid-template-areas: "stack";
    margin: 0;
    padding: 0;
    max-width: none;
}
#questions-section.qv3-mode .question-card.qv3-card {
    grid-area: stack;
    margin: 0;
    padding: 20px 24px 18px;
    background: #fff;
    border: 1px solid rgba(253, 186, 116, 0.28);
    border-radius: 24px;
    box-shadow:
        0 18px 42px -18px rgba(249, 115, 22, 0.18),
        0 6px 16px -8px rgba(31, 41, 55, 0.08);
    cursor: default !important;
    /* Hidden default state */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateX(64px) scale(0.98);
    filter: none !important;
    transition:
        opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.78s cubic-bezier(0.22, 0.61, 0.36, 1),
        visibility 0s linear 0.7s,
        box-shadow 0.5s ease;
    will-change: opacity, transform;
}
/* A card the user has answered and moved past slides out to the LEFT */
#questions-section.qv3-mode .question-card.qv3-card.answered:not(.in-focus) {
    transform: translateX(-64px) scale(0.98);
}
/* The currently focused card (one and only) */
#questions-section.qv3-mode .question-card.qv3-card.in-focus {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0) scale(1);
    z-index: 5;
    transition:
        opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.78s cubic-bezier(0.22, 0.61, 0.36, 1),
        visibility 0s linear 0s,
        box-shadow 0.5s ease;
}
/* Subtle lift while focused */
#questions-section.qv3-mode .question-card.qv3-card.in-focus:hover {
    box-shadow:
        0 22px 50px -18px rgba(249, 115, 22, 0.22),
        0 8px 18px -8px rgba(31, 41, 55, 0.10);
}

/* Hide the legacy question-number-row inside qv3 cards */
#questions-section.qv3-mode .question-card.qv3-card .question-number-row {
    display: none !important;
}

/* ── Card: badge row ────────────────────────────────────────────── */
#questions-section.qv3-mode .qv3-badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}
#questions-section.qv3-mode .qv3-dash {
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FDBA74, transparent);
}
#questions-section.qv3-mode .qv3-bullet {
    color: #FDBA74;
    font-size: 14px;
    line-height: 1;
}
#questions-section.qv3-mode .qv3-badge-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #F97316;
    text-transform: uppercase;
}

/* ── Card: sparkle icon ─────────────────────────────────────────── */
#questions-section.qv3-mode .qv3-spark {
    position: relative;
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#questions-section.qv3-mode .qv3-spark-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 186, 116, 0.35), rgba(253, 186, 116, 0.05) 65%, transparent 75%);
}
#questions-section.qv3-mode .qv3-spark-svg {
    position: relative;
    width: 28px;
    height: 28px;
    z-index: 1;
}
#questions-section.qv3-mode .question-card.qv3-card.in-focus .qv3-spark-svg {
    animation: qv3SparkPulse 2.4s ease-in-out infinite;
}
@keyframes qv3SparkPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50%      { transform: scale(1.08) rotate(8deg); }
}

/* ── Card: question text ────────────────────────────────────────── */
#questions-section.qv3-mode .qv3-q-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    line-height: 1.28;
    color: #111827;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 0 auto 6px;
    max-width: 540px;
    padding: 0 6px;
}

#questions-section.qv3-mode .qv3-q-sub {
    font-size: 13px;
    color: #9CA3AF;
    text-align: center;
    margin: 0 0 14px;
    font-weight: 500;
}

/* ── Card: 5 emoji option tiles ─────────────────────────────────── */
#questions-section.qv3-mode .qv3-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 14px;
    row-gap: 0;
    align-items: center;
    margin: 0 auto 4px;
    max-width: 480px;
    padding: 0;
    overflow: visible;
}
/* Tall capsule shape — much taller than wide, matching mockup */
#questions-section.qv3-mode .option-pill.qv3-pill {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.35;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px 10px;
    background: #fff;
    border: 1.5px solid #F1F1F3;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(31, 41, 55, 0.05);
    cursor: pointer;
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
    -webkit-appearance: none;
    appearance: none;
}
#questions-section.qv3-mode .option-pill.qv3-pill .qv3-face {
    width: 30px;
    height: 30px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}
#questions-section.qv3-mode .option-pill.qv3-pill .pill-num {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: currentColor !important;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Override legacy `.option-pill.n/sd/d/a/sa .pill-num` colors so qv3
   numbers always track the pill's currentColor. */
#questions-section.qv3-mode .option-pill.qv3-pill.sd .pill-num,
#questions-section.qv3-mode .option-pill.qv3-pill.d  .pill-num,
#questions-section.qv3-mode .option-pill.qv3-pill.n  .pill-num,
#questions-section.qv3-mode .option-pill.qv3-pill.a  .pill-num,
#questions-section.qv3-mode .option-pill.qv3-pill.sa .pill-num {
    color: inherit;
}

/* Per-tile colors (face + number share `currentColor`) */
#questions-section.qv3-mode .option-pill.qv3-pill.sd { color: #DC2626; }
#questions-section.qv3-mode .option-pill.qv3-pill.d  { color: #F59E0B; }
#questions-section.qv3-mode .option-pill.qv3-pill.n  { color: #9CA3AF; }
#questions-section.qv3-mode .option-pill.qv3-pill.a  { color: #16A34A; }
#questions-section.qv3-mode .option-pill.qv3-pill.sa { color: #15803D; }

/* The dashed underscore mark that anchors the selected tile */
#questions-section.qv3-mode .qv3-pill-bar {
    position: absolute;
    bottom: -12px;
    left: 50%;
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Big diffuse halo glow behind the selected tile — matches mockup */
#questions-section.qv3-mode .qv3-pill-halo {
    position: absolute;
    inset: -38px;
    border-radius: 50%;
    background: radial-gradient(circle, currentColor 0%, currentColor 18%, transparent 65%);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
    pointer-events: none;
    filter: blur(8px);
}

/* Decorative micro-sparks that fly out on select */
#questions-section.qv3-mode .qv3-pill-spark {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}
#questions-section.qv3-mode .qv3-pill-spark-1 { top: 8%;  left: 12%; }
#questions-section.qv3-mode .qv3-pill-spark-2 { top: 14%; right: 10%; }
#questions-section.qv3-mode .qv3-pill-spark-3 { bottom: 22%; left: 50%; transform: translateX(-50%); }

/* Hover (only the focused card's pills) */
#questions-section.qv3-mode .question-card.qv3-card.in-focus .option-pill.qv3-pill:hover {
    transform: translateY(-3px) scale(1.04);
    border-color: currentColor;
    box-shadow: 0 8px 22px rgba(31, 41, 55, 0.10);
}
#questions-section.qv3-mode .question-card.qv3-card.in-focus .option-pill.qv3-pill:hover .qv3-face {
    transform: scale(1.08);
}

/* SELECTED state — solid fill, scaled up, prominent halo + bar */
#questions-section.qv3-mode .option-pill.qv3-pill.selected {
    transform: translateY(-4px) scale(1.12);
    background: currentColor;
    border-color: currentColor;
    box-shadow:
        0 18px 38px -8px currentColor,
        0 6px 16px -4px currentColor;
}
#questions-section.qv3-mode .option-pill.qv3-pill.selected .qv3-face {
    transform: scale(1.1);
}
/* Face background: translucent white halo */
#questions-section.qv3-mode .option-pill.qv3-pill.selected .qv3-face circle:first-of-type {
    fill: rgba(255, 255, 255, 0.18);
    stroke: #fff;
    stroke-width: 2.4;
}
/* Eyes: filled white */
#questions-section.qv3-mode .option-pill.qv3-pill.selected .qv3-face circle:not(:first-of-type) {
    fill: #fff;
    stroke: none;
}
/* Curved mouths: white stroke, no fill */
#questions-section.qv3-mode .option-pill.qv3-pill.selected .qv3-face path {
    stroke: #fff;
    stroke-width: 2.4;
    fill: none;
}
/* Neutral mouth line */
#questions-section.qv3-mode .option-pill.qv3-pill.selected .qv3-face line {
    stroke: #fff;
    stroke-width: 2.4;
}
/* The big-grin mouth is a closed shape — fill it white so it reads */
#questions-section.qv3-mode .option-pill.qv3-pill.sa.selected .qv3-face path {
    stroke: #fff;
    fill: #fff;
}
#questions-section.qv3-mode .option-pill.qv3-pill.selected .pill-num {
    color: #fff;
    transform: scale(1.05);
}
#questions-section.qv3-mode .option-pill.qv3-pill.selected .qv3-pill-halo {
    opacity: 0.55;
    transform: scale(1);
}
#questions-section.qv3-mode .option-pill.qv3-pill.selected .qv3-pill-bar {
    transform: translateX(-50%) scaleX(1);
}
#questions-section.qv3-mode .option-pill.qv3-pill.selected .qv3-pill-spark {
    animation: qv3SparkBurst 0.7s ease-out forwards;
}
#questions-section.qv3-mode .option-pill.qv3-pill.selected .qv3-pill-spark-1 { animation-delay: 0.05s; }
#questions-section.qv3-mode .option-pill.qv3-pill.selected .qv3-pill-spark-2 { animation-delay: 0.1s; }
#questions-section.qv3-mode .option-pill.qv3-pill.selected .qv3-pill-spark-3 { animation-delay: 0.15s; }
@keyframes qv3SparkBurst {
    0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
    30%  { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--qv3-tx, 12px), var(--qv3-ty, -16px)) scale(0.6); }
}
#questions-section.qv3-mode .option-pill.qv3-pill .qv3-pill-spark-1 { --qv3-tx: -16px; --qv3-ty: -18px; }
#questions-section.qv3-mode .option-pill.qv3-pill .qv3-pill-spark-2 { --qv3-tx: 18px;  --qv3-ty: -14px; }
#questions-section.qv3-mode .option-pill.qv3-pill .qv3-pill-spark-3 { --qv3-tx: 0;     --qv3-ty: 14px;  }

/* ── Card: 3 anchor labels ──────────────────────────────────────────
   Use the SAME 5-column grid as the pills, with labels in cols 1/3/5
   so each one sits perfectly centered under its corresponding pill. */
#questions-section.qv3-mode .qv3-labels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 14px;
    align-items: flex-start;
    margin: 12px auto 0;
    max-width: 480px;
    padding: 0;
}
#questions-section.qv3-mode .qv3-label {
    font-size: 11.5px;
    color: #9CA3AF;
    line-height: 1.3;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.1px;
    margin: 0;
}
#questions-section.qv3-mode .qv3-label-l { grid-column: 1 / span 1; text-align: center; }
#questions-section.qv3-mode .qv3-label-m { grid-column: 2 / span 3; text-align: center; }
#questions-section.qv3-mode .qv3-label-r { grid-column: 5 / span 1; text-align: center; }

/* ── Confidentiality reassurance card ──────────────────────────── */
#questions-section.qv3-mode .qv3-confidence {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 14px auto 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #EDE9FE 0%, #F5F3FF 50%, #FFF5F0 100%);
    border: 1px solid rgba(167, 139, 250, 0.24);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
}
#questions-section.qv3-mode .qv3-confidence::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 50%, rgba(196, 181, 253, 0.2), transparent 35%),
        radial-gradient(circle at 90% 50%, rgba(253, 186, 116, 0.15), transparent 40%);
    pointer-events: none;
}
#questions-section.qv3-mode .qv3-confidence-shield {
    position: relative;
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.18);
}
#questions-section.qv3-mode .qv3-confidence-shield svg {
    width: 22px; height: 22px;
}
#questions-section.qv3-mode .qv3-confidence-text {
    position: relative;
    flex: 1;
    min-width: 0;
}
#questions-section.qv3-mode .qv3-confidence-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1E1B3A;
    margin-bottom: 4px;
    letter-spacing: -0.1px;
}
#questions-section.qv3-mode .qv3-confidence-text p {
    margin: 0;
    font-size: 12.5px;
    color: #6B7280;
    line-height: 1.4;
}
#questions-section.qv3-mode .qv3-confidence-lock {
    position: relative;
    flex-shrink: 0;
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
}
#questions-section.qv3-mode .qv3-confidence-lock svg {
    width: 100%; height: 100%;
    filter: drop-shadow(0 6px 12px rgba(124, 58, 237, 0.25));
    animation: qv3LockFloat 4s ease-in-out infinite;
}
@keyframes qv3LockFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-3px) rotate(2deg); }
}

/* ── Footer hint line ───────────────────────────────────────────── */
#questions-section.qv3-mode .qv3-foot-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 6px auto 10px;
    color: #9CA3AF;
}
#questions-section.qv3-mode .qv3-foot-line {
    width: 28px;
    height: 2px;
    background: #E5E7EB;
    border-radius: 2px;
}
#questions-section.qv3-mode .qv3-foot-text {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
}
#questions-section.qv3-mode .qv3-foot-text.is-ready {
    color: #16A34A;
    font-weight: 600;
}

/* ── Submit button positioning inside qv3 ───────────────────────── */
#questions-section.qv3-mode .submit-test-wrap {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 4px auto 0;
    padding: 4px 16px 12px;
    text-align: center;
}
/* Collapse the wrapper completely when submit isn't being shown
   (avoids a tall blank gap above the confidence card). */
#questions-section.qv3-mode .submit-test-wrap:not(.visible) {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* ════════ Mobile breakpoint (≤ 640px) ══════════════════════════ */
@media (max-width: 640px) {
    #questions-section.qv3-mode {
        padding: 10px 0 24px;
    }
    #questions-section.qv3-mode .qv3-head {
        margin: 0 auto 20px;
        padding: 4px 16px 0;
        border-radius: 0;
    }
    #questions-section.qv3-mode .qv3-head-eyebrow {
        font-size: 9.5px;
        letter-spacing: 1.2px;
        padding: 4px 10px;
    }
    #questions-section.qv3-mode .qv3-head-title {
        margin-top: 12px;
        font-size: 22px;
        letter-spacing: -0.5px;
    }
    #questions-section.qv3-mode .qv3-head-tagline {
        margin-top: 5px;
        font-size: 12px;
    }
    #questions-section.qv3-mode .qv3-head-foot {
        margin-top: 10px;
        font-size: 11px;
    }
    #questions-section.qv3-mode .qv3-head-foot-dot {
        width: 6px; height: 6px;
    }
    #questions-section.qv3-mode .qv3-progress-track {
        height: 4px;
    }

    #questions-section.qv3-mode .qv3-stage {
        padding: 0 12px;
    }
    #questions-section.qv3-mode .question-card.qv3-card {
        padding: 26px 18px 22px;
        border-radius: 20px;
        transform: translateX(42px) scale(0.98);
    }
    #questions-section.qv3-mode .question-card.qv3-card.answered:not(.in-focus) {
        transform: translateX(-42px) scale(0.98);
    }
    #questions-section.qv3-mode .question-card.qv3-card.in-focus {
        transform: translateX(0) scale(1);
    }
    #questions-section.qv3-mode .qv3-badge-row {
        gap: 6px;
        margin-bottom: 10px;
    }
    #questions-section.qv3-mode .qv3-dash {
        width: 22px;
    }
    #questions-section.qv3-mode .qv3-badge-text {
        font-size: 10px;
        letter-spacing: 1.6px;
    }
    #questions-section.qv3-mode .qv3-spark {
        width: 42px; height: 42px;
        margin: 2px auto 14px;
    }
    #questions-section.qv3-mode .qv3-spark-svg {
        width: 22px; height: 22px;
    }
    #questions-section.qv3-mode .qv3-q-text {
        font-size: 22px;
        line-height: 1.3;
        letter-spacing: -0.3px;
        max-width: none;
        padding: 0 4px;
    }
    #questions-section.qv3-mode .qv3-q-sub {
        font-size: 12.5px;
        margin-bottom: 22px;
    }
    #questions-section.qv3-mode .qv3-options {
        column-gap: 10px;
        max-width: none;
    }
    #questions-section.qv3-mode .option-pill.qv3-pill {
        padding: 10px 4px 12px;
        border-radius: 999px;
        gap: 6px;
        aspect-ratio: 1 / 1.55;
    }
    #questions-section.qv3-mode .option-pill.qv3-pill .qv3-face {
        width: 26px; height: 26px;
    }
    #questions-section.qv3-mode .option-pill.qv3-pill .pill-num {
        font-size: 15px;
    }
    #questions-section.qv3-mode .option-pill.qv3-pill.selected {
        transform: translateY(-3px) scale(1.08);
    }
    #questions-section.qv3-mode .qv3-pill-halo {
        inset: -28px;
        filter: blur(7px);
    }
    #questions-section.qv3-mode .qv3-pill-bar {
        width: 18px;
        height: 3px;
        bottom: -10px;
    }
    #questions-section.qv3-mode .qv3-labels {
        column-gap: 10px;
        margin-top: 18px;
        max-width: none;
        padding: 0;
    }
    #questions-section.qv3-mode .qv3-label {
        font-size: 10.5px;
    }

    #questions-section.qv3-mode .qv3-confidence {
        margin: 24px 12px 12px;
        padding: 14px 16px;
        gap: 12px;
        border-radius: 16px;
    }
    #questions-section.qv3-mode .qv3-confidence-shield {
        width: 38px; height: 38px;
    }
    #questions-section.qv3-mode .qv3-confidence-shield svg {
        width: 19px; height: 19px;
    }
    #questions-section.qv3-mode .qv3-confidence-text strong {
        font-size: 13px;
    }
    #questions-section.qv3-mode .qv3-confidence-text p {
        font-size: 11.5px;
    }
    #questions-section.qv3-mode .qv3-confidence-lock {
        width: 54px; height: 54px;
    }
    #questions-section.qv3-mode .qv3-foot-text {
        font-size: 12px;
    }
    #questions-section.qv3-mode .submit-test-wrap {
        padding: 6px 12px 22px;
    }
}

/* ════════ Very small screens (≤ 360px) ══════════════════════════ */
@media (max-width: 360px) {
    #questions-section.qv3-mode .qv3-q-text { font-size: 19px; }
    #questions-section.qv3-mode .option-pill.qv3-pill { border-radius: 16px; }
    #questions-section.qv3-mode .option-pill.qv3-pill .qv3-face { width: 26px; height: 26px; }
    #questions-section.qv3-mode .option-pill.qv3-pill .pill-num { font-size: 13.5px; }
    #questions-section.qv3-mode .qv3-label { font-size: 10px; }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    #questions-section.qv3-mode .question-card.qv3-card,
    #questions-section.qv3-mode .option-pill.qv3-pill,
    #questions-section.qv3-mode .qv3-progress-fill {
        transition: opacity 0.15s linear !important;
        transform: none !important;
        animation: none !important;
    }
    #questions-section.qv3-mode .question-card.qv3-card { transform: none !important; }
    #questions-section.qv3-mode .question-card.qv3-card.in-focus { transform: none !important; }
    #questions-section.qv3-mode .question-card.qv3-card.answered:not(.in-focus) { transform: none !important; }
}

/* ════════════════════════════════════════════════════════════════════
   QV4 — Premium spectrum slider for the Questions Section
   Replaces the 5 pills with a single gradient slider + animated
   preview orb. Lives inside .qv3-card so the existing card / stage /
   header system is reused. The 5 hidden .qv4-bridge buttons keep the
   existing answer-tracking JS intact — the slider clicks one on release.
   ──────────────────────────────────────────────────────────────────── */

#questions-section.qv3-mode .qv4-bridge-row,
#questions-section.qv3-mode .option-pill.qv4-bridge {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0,0,0,0) !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

/* ── Preview orb (morphs as user drags) ─────────────────────────── */
#questions-section.qv3-mode .qv4-preview {
    position: relative;
    margin: 6px auto 26px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: #9CA3AF; /* default neutral */
    transition: color 0.4s ease;
}
#questions-section.qv3-mode .qv4-preview[data-state="-2"] { color: #DC2626; }
#questions-section.qv3-mode .qv4-preview[data-state="-1"] { color: #F59E0B; }
#questions-section.qv3-mode .qv4-preview[data-state="0"]  { color: #9CA3AF; }
#questions-section.qv3-mode .qv4-preview[data-state="1"]  { color: #16A34A; }
#questions-section.qv3-mode .qv4-preview[data-state="2"]  { color: #15803D; }
#questions-section.qv3-mode .qv4-preview[data-state="idle"] { color: #FB923C; }

#questions-section.qv3-mode .qv4-preview-orb {
    position: relative;
    width: 108px; height: 108px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 45%),
        radial-gradient(circle at 50% 55%, currentColor 0%, currentColor 70%, currentColor 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        0 22px 48px -16px currentColor,
        0 6px 18px -6px rgba(31, 41, 55, 0.18),
        inset 0 -8px 18px -6px rgba(0,0,0,0.18),
        inset 0 0 0 1.5px rgba(255,255,255,0.35);
    transition: box-shadow 0.4s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#questions-section.qv3-mode .qv4-preview[data-state="idle"] .qv4-preview-orb {
    background:
        radial-gradient(circle at 32% 28%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 45%),
        linear-gradient(135deg, #FB923C 0%, #F97316 60%, #EA580C 100%);
    box-shadow:
        0 22px 44px -14px rgba(249, 115, 22, 0.55),
        0 6px 18px -6px rgba(31, 41, 55, 0.18),
        inset 0 -8px 18px -6px rgba(0,0,0,0.18),
        inset 0 0 0 1.5px rgba(255,255,255,0.35);
}
/* Subtle breathing animation while idle to draw the eye */
#questions-section.qv3-mode .qv4-preview[data-state="idle"] .qv4-preview-orb {
    animation: qv4OrbBreath 2.6s ease-in-out infinite;
}
@keyframes qv4OrbBreath {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

#questions-section.qv3-mode .qv4-preview-face {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: scale(0.55) rotate(-6deg);
    transition: opacity 0.32s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
#questions-section.qv3-mode .qv4-preview-face svg {
    width: 78px; height: 78px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}
#questions-section.qv3-mode .qv4-preview[data-state="-2"] .qv4-preview-face[data-face="-2"],
#questions-section.qv3-mode .qv4-preview[data-state="-1"] .qv4-preview-face[data-face="-1"],
#questions-section.qv3-mode .qv4-preview[data-state="0"]  .qv4-preview-face[data-face="0"],
#questions-section.qv3-mode .qv4-preview[data-state="1"]  .qv4-preview-face[data-face="1"],
#questions-section.qv3-mode .qv4-preview[data-state="2"]  .qv4-preview-face[data-face="2"] {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}
/* Glossy sheen overlay on top of the orb for premium depth */
#questions-section.qv3-mode .qv4-preview-gloss {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 60% 38% at 38% 22%, rgba(255,255,255,0.55), rgba(255,255,255,0) 70%),
        radial-gradient(ellipse 80% 60% at 50% 110%, rgba(0,0,0,0.18), rgba(0,0,0,0) 60%);
    pointer-events: none;
    z-index: 2;
    opacity: 0.95;
}
#questions-section.qv3-mode .qv4-preview[data-state="idle"] .qv4-preview-gloss {
    opacity: 0.85;
}
#questions-section.qv3-mode .qv4-preview-face {
    z-index: 3;
}
#questions-section.qv3-mode .qv4-preview-prompt {
    z-index: 3;
}

/* Idle prompt arrow */
#questions-section.qv3-mode .qv4-preview-prompt {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.32s ease, transform 0.4s ease;
    pointer-events: none;
    color: #fff;
}
#questions-section.qv3-mode .qv4-preview-prompt svg { width: 40px; height: 40px; }
#questions-section.qv3-mode .qv4-preview[data-state="idle"] .qv4-preview-prompt {
    opacity: 1;
    transform: scale(1);
    animation: qv4PromptNudge 1.8s ease-in-out infinite;
}
@keyframes qv4PromptNudge {
    0%, 100% { transform: translateX(0) scale(1); }
    50%      { transform: translateX(4px) scale(1.05); }
}

/* Morphing preview label */
#questions-section.qv3-mode .qv4-preview-label {
    position: relative;
    height: 22px;
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    letter-spacing: -0.1px;
    text-align: center;
    width: 100%;
}
#questions-section.qv3-mode .qv4-preview-label span {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
#questions-section.qv3-mode .qv4-preview[data-state="idle"] .qv4-preview-label span[data-state="idle"],
#questions-section.qv3-mode .qv4-preview[data-state="-2"]  .qv4-preview-label span[data-state="-2"],
#questions-section.qv3-mode .qv4-preview[data-state="-1"]  .qv4-preview-label span[data-state="-1"],
#questions-section.qv3-mode .qv4-preview[data-state="0"]   .qv4-preview-label span[data-state="0"],
#questions-section.qv3-mode .qv4-preview[data-state="1"]   .qv4-preview-label span[data-state="1"],
#questions-section.qv3-mode .qv4-preview[data-state="2"]   .qv4-preview-label span[data-state="2"] {
    opacity: 1;
    transform: translateY(0);
}
#questions-section.qv3-mode .qv4-preview[data-state="idle"] .qv4-preview-label span[data-state="idle"] {
    color: #6B7280;
    font-weight: 500;
}

/* ── Quick-tap pill row (replaces slider) ───────────────────────── */
/* ════════ Apple-style liquid-glass segmented pill (Option C) ════ */
#questions-section.qv3-mode .qv4-segpill {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Frosted-glass track */
    background:
        linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(243,244,246,0.55) 100%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 999px;
    padding: 6px;
    max-width: 480px;
    margin: 8px auto 0;
    height: 56px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.85),
        inset 0 -1px 0 rgba(31,41,55,0.05),
        0 1px 3px rgba(31,41,55,0.05),
        0 10px 28px -18px rgba(31,41,55,0.10);
    -webkit-tap-highlight-color: transparent;
}
#questions-section.qv3-mode .qv4-segpill-indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: calc((100% - 12px) / 5);
    border-radius: 999px;
    /* Default fallback (orange glass) */
    background:
        linear-gradient(180deg, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0) 55%),
        linear-gradient(135deg, #FB923C, #F97316);
    border: 0.5px solid rgba(255,255,255,0.35);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.55),
        inset 0 -2px 4px rgba(0,0,0,0.12),
        0 4px 14px -4px rgba(249,115,22,0.55),
        0 1px 3px rgba(31,41,55,0.10);
    transition:
        left 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.4s ease,
        box-shadow 0.4s ease,
        opacity 0.2s ease;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}
/* Glossy top sheen overlay — like Apple Liquid Glass highlight */
#questions-section.qv3-mode .qv4-segpill-indicator::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 55%;
    background: radial-gradient(ellipse 80% 100% at 50% 0%,
        rgba(255,255,255,0.38) 0%,
        rgba(255,255,255,0.14) 45%,
        rgba(255,255,255,0) 100%);
    border-radius: 999px 999px 50% 50% / 999px 999px 100% 100%;
    pointer-events: none;
}
/* Indicator position + color per state (driven by data-state on .qv4-segpill) */
#questions-section.qv3-mode .qv4-segpill[data-state] .qv4-segpill-indicator { opacity: 1; }
#questions-section.qv3-mode .qv4-segpill[data-state="-2"] .qv4-segpill-indicator {
    left: 6px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0) 55%),
        linear-gradient(135deg, #EF4444, #DC2626);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.55),
        inset 0 -2px 4px rgba(0,0,0,0.14),
        0 4px 14px -4px rgba(220,38,38,0.6),
        0 1px 3px rgba(31,41,55,0.10);
}
#questions-section.qv3-mode .qv4-segpill[data-state="-1"] .qv4-segpill-indicator {
    left: calc(6px + (100% - 12px) * 0.2);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0) 55%),
        linear-gradient(135deg, #FBBF24, #F59E0B);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.55),
        inset 0 -2px 4px rgba(0,0,0,0.12),
        0 4px 14px -4px rgba(245,158,11,0.6),
        0 1px 3px rgba(31,41,55,0.10);
}
#questions-section.qv3-mode .qv4-segpill[data-state="0"] .qv4-segpill-indicator {
    left: calc(6px + (100% - 12px) * 0.4);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 55%),
        linear-gradient(135deg, #E5E7EB, #9CA3AF);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 0 -2px 4px rgba(0,0,0,0.10),
        0 4px 14px -4px rgba(156,163,175,0.5),
        0 1px 3px rgba(31,41,55,0.08);
}
#questions-section.qv3-mode .qv4-segpill[data-state="1"] .qv4-segpill-indicator {
    left: calc(6px + (100% - 12px) * 0.6);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0) 55%),
        linear-gradient(135deg, #4ADE80, #16A34A);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.55),
        inset 0 -2px 4px rgba(0,0,0,0.12),
        0 4px 14px -4px rgba(22,163,74,0.6),
        0 1px 3px rgba(31,41,55,0.10);
}
#questions-section.qv3-mode .qv4-segpill[data-state="2"] .qv4-segpill-indicator {
    left: calc(6px + (100% - 12px) * 0.8);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0) 55%),
        linear-gradient(135deg, #22C55E, #15803D);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.55),
        inset 0 -2px 4px rgba(0,0,0,0.14),
        0 4px 14px -4px rgba(21,128,61,0.6),
        0 1px 3px rgba(31,41,55,0.10);
}

/* Segments — flat, transparent buttons */
#questions-section.qv3-mode .qv4-seg {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1px;
    color: #6B7280;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    min-width: 0;
}
#questions-section.qv3-mode .qv4-seg .qv4-seg-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.55;
    transition: opacity 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}
#questions-section.qv3-mode .qv4-seg .qv4-seg-text {
    /* Visually hidden — orb above shows the full label; pill stays clean */
    position: absolute;
    width: 1px; height: 1px; padding: 0; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Per-segment color tints (idle dot color) */
#questions-section.qv3-mode .qv4-seg[data-value="-2"] { color: #DC2626; }
#questions-section.qv3-mode .qv4-seg[data-value="-1"] { color: #F59E0B; }
#questions-section.qv3-mode .qv4-seg[data-value="0"]  { color: #9CA3AF; }
#questions-section.qv3-mode .qv4-seg[data-value="1"]  { color: #16A34A; }
#questions-section.qv3-mode .qv4-seg[data-value="2"]  { color: #15803D; }

#questions-section.qv3-mode .qv4-seg:hover .qv4-seg-dot {
    opacity: 1;
    transform: scale(1.15);
}
#questions-section.qv3-mode .qv4-seg:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.22);
}

/* Once a state is selected, hide the colored idle dots — indicator carries the meaning */
#questions-section.qv3-mode .qv4-segpill[data-state] .qv4-seg .qv4-seg-dot { opacity: 0; }
/* Show a subtle white check inside the active indicator for explicit feedback */
#questions-section.qv3-mode .qv4-seg::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 14px; height: 14px;
    transform: translate(-50%, -50%) scale(0.4);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
#questions-section.qv3-mode .qv4-segpill[data-state="-2"] .qv4-seg[data-value="-2"]::after,
#questions-section.qv3-mode .qv4-segpill[data-state="-1"] .qv4-seg[data-value="-1"]::after,
#questions-section.qv3-mode .qv4-segpill[data-state="0"]  .qv4-seg[data-value="0"]::after,
#questions-section.qv3-mode .qv4-segpill[data-state="1"]  .qv4-seg[data-value="1"]::after,
#questions-section.qv3-mode .qv4-segpill[data-state="2"]  .qv4-seg[data-value="2"]::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 5 segment labels under the pill — perfectly aligned with each segment */
#questions-section.qv3-mode .qv4-segpill-labels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 480px;
    margin: 10px auto 0;
    padding: 0 6px;
    font-size: 10.5px;
    font-weight: 600;
    color: #6B7280;
    letter-spacing: 0.2px;
    line-height: 1.25;
}
#questions-section.qv3-mode .qv4-segpill-labels span {
    text-align: center;
    padding: 0 2px;
}

/* ════════ Edit/back navigation row ══════════════════════════════ */
#questions-section.qv3-mode .qv4-navrow {
    display: flex;
    justify-content: center;
    margin: 18px auto 0;
    min-height: 28px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
/* Always visible on every question except the very first */
#questions-section.qv3-mode .question-card:not(:first-child) .qv4-navrow {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#questions-section.qv3-mode .qv4-back-btn {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid #E5E7EB;
    color: #6B7280;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 7px 14px 7px 11px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
#questions-section.qv3-mode .qv4-back-btn svg { transition: transform 0.2s ease; }
#questions-section.qv3-mode .qv4-back-btn:hover {
    color: #F97316;
    border-color: #FED7AA;
    background: #FFF7ED;
}
#questions-section.qv3-mode .qv4-back-btn:hover svg { transform: translateX(-2px); }
#questions-section.qv3-mode .qv4-back-btn:active { transform: scale(0.96); }
#questions-section.qv3-mode .qv4-back-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.22);
}

/* ════════ Mobile breakpoint (≤ 640px) ══════════════════════════ */
@media (max-width: 640px) {
    #questions-section.qv3-mode .qv4-preview {
        margin: 4px auto 18px;
        gap: 10px;
    }
    #questions-section.qv3-mode .qv4-preview-orb {
        width: 92px; height: 92px;
    }
    #questions-section.qv3-mode .qv4-preview-face svg { width: 60px; height: 60px; }
    #questions-section.qv3-mode .qv4-preview-prompt svg { width: 30px; height: 30px; }
    #questions-section.qv3-mode .qv4-preview-label {
        font-size: 13.5px;
        height: 20px;
    }
    #questions-section.qv3-mode .qv4-segpill {
        height: 50px;
        max-width: 100%;
        padding: 5px;
    }
    #questions-section.qv3-mode .qv4-segpill-indicator {
        top: 5px; bottom: 5px; left: 5px;
        width: calc((100% - 10px) / 5);
    }
    #questions-section.qv3-mode .qv4-segpill[data-state="-2"] .qv4-segpill-indicator { left: 5px; }
    #questions-section.qv3-mode .qv4-segpill[data-state="-1"] .qv4-segpill-indicator { left: calc(5px + (100% - 10px) * 0.2); }
    #questions-section.qv3-mode .qv4-segpill[data-state="0"]  .qv4-segpill-indicator { left: calc(5px + (100% - 10px) * 0.4); }
    #questions-section.qv3-mode .qv4-segpill[data-state="1"]  .qv4-segpill-indicator { left: calc(5px + (100% - 10px) * 0.6); }
    #questions-section.qv3-mode .qv4-segpill[data-state="2"]  .qv4-segpill-indicator { left: calc(5px + (100% - 10px) * 0.8); }
    #questions-section.qv3-mode .qv4-seg .qv4-seg-dot { width: 10px; height: 10px; }
    #questions-section.qv3-mode .qv4-seg::after { width: 12px; height: 12px; }
    #questions-section.qv3-mode .qv4-segpill-labels {
        max-width: 100%;
        padding: 0 5px;
        font-size: 9px;
        letter-spacing: 0.1px;
    }
    #questions-section.qv3-mode .qv4-segpill-labels span { padding: 0 1px; }
    #questions-section.qv3-mode .qv4-navrow { margin-top: 14px; }
    #questions-section.qv3-mode .qv4-back-btn { font-size: 11.5px; padding: 6px 12px 6px 10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    #questions-section.qv3-mode .qv4-preview-orb,
    #questions-section.qv3-mode .qv4-preview-prompt {
        animation: none !important;
    }
    #questions-section.qv3-mode .qv4-segpill-indicator {
        transition: opacity 0.15s linear, background 0.15s linear !important;
    }
    #questions-section.qv3-mode .qv4-seg,
    #questions-section.qv3-mode .qv4-seg .qv4-seg-dot,
    #questions-section.qv3-mode .qv4-back-btn {
        transition: color 0.15s linear, background 0.15s linear, border-color 0.15s linear !important;
        transform: none !important;
    }
}


/* =================================================================== */
/* CHECKOUT / PAYWALL OVERRIDES (rebuilt 2026-04-30)                    */
/* Appended after the original rules so these take precedence on        */
/* #checkout-section. Results page rules above are untouched.           */
/* =================================================================== */

/* ── width-containment fix ─────────────────────────────────────────
   The new design uses a `.co-marquee` with `width: max-content` for
   the seamless auto-scroll. Without `min-width:0` on #mbti-app and
   #checkout-section, that intrinsic width propagates UP through the
   theme's flex chain (#pxl-content-area) and blows the page out to
   10,000+ px, pushing every section thousands of pixels off-screen.
   `min-width:0` lets the flex item shrink below its content; the
   per-section `overflow:hidden` then clips the marquee correctly. */
body.mbti-checkout-active #mbti-app[data-page="checkout"],
body.mbti-checkout-active #checkout-section{
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
}
body.mbti-checkout-active #pxl-content-area,
body.mbti-checkout-active #pxl-content-main,
body.mbti-checkout-active .pxl-entry-content{
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}
#checkout-section .co-trans,
#checkout-section .co-marquee-wrap,
#checkout-section .co-final{
    min-width: 0;
    max-width: 100vw;
    overflow-x: hidden;
}
#checkout-section{
    --co-ink:#0B1020;
    --co-ink-2:#141A2E;
    --co-cream:#FBF7F0;
    --co-cream-2:#F3ECDD;
    --co-cream-3:#EFE5CD;
    --co-paper:#FFFEFB;
    --co-gold:#C8973D;
    --co-gold-light:#D8A94B;
    --co-gold-deep:#A6792A;
    --co-coral:#E85D3C;
    --co-green:#1F7A4D;
    --co-line:rgba(11,16,32,.12);
    --co-line-soft:rgba(11,16,32,.06);
    --co-muted:#5A6074;
    --co-muted-2:#7A8094;
    --co-shadow-lg:0 30px 80px -30px rgba(11,16,32,.35);
    --co-shadow-md:0 12px 40px -18px rgba(11,16,32,.25);
    --co-shadow-sm:0 4px 14px -4px rgba(11,16,32,.12);
    background:var(--co-cream);
    color:var(--co-ink);
    font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    -webkit-font-smoothing:antialiased;
    line-height:1.55;
    position:relative;
    overflow-x:hidden;
    margin:0;
}
#checkout-section *{box-sizing:border-box}
#checkout-section a{color:inherit;text-decoration:none}
#checkout-section img{max-width:100%;display:block}
#checkout-section button{font-family:inherit;cursor:pointer;border:none;background:none}
#checkout-section em{font-style:italic;color:var(--co-gold-deep);font-weight:500}

#checkout-section .co-section{max-width:1240px;margin:0 auto;padding:80px 28px}
#checkout-section .co-h2{font-family:'Fraunces',serif;font-weight:400;font-size:clamp(28px,4vw,46px);letter-spacing:-.02em;line-height:1.08;text-align:center;max-width:780px;margin:0 auto 16px;color:var(--co-ink)}
#checkout-section .co-h2 em{font-style:italic;color:var(--co-gold-deep)}
#checkout-section .co-h2-light{color:var(--co-cream)}
#checkout-section .co-h2-light em{color:var(--co-gold-light)}
#checkout-section .co-section-sub{text-align:center;color:var(--co-muted);max-width:620px;margin:0 auto 48px;font-size:16px}
#checkout-section .co-kicker{font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--co-gold-deep);font-weight:600;display:flex;align-items:center;gap:10px;justify-content:center;margin-bottom:14px}
#checkout-section .co-kicker::before,#checkout-section .co-kicker::after{content:"";width:30px;height:1px;background:var(--co-gold)}
#checkout-section .co-kicker-gold{color:var(--co-gold)}

#checkout-section .co-cta{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;padding:20px 24px;background:linear-gradient(180deg,#D8A94B,#B08528);color:var(--co-ink);border:none;border-radius:12px;font-family:'DM Sans',sans-serif;font-weight:700;font-size:16px;letter-spacing:.02em;cursor:pointer;box-shadow:0 10px 30px -10px rgba(200,151,61,.6),inset 0 1px 0 rgba(255,255,255,.4);transition:transform .15s ease,box-shadow .15s ease;text-transform:uppercase;-webkit-appearance:none;appearance:none}
#checkout-section .co-cta:hover{transform:translateY(-2px);box-shadow:0 16px 40px -10px rgba(200,151,61,.7),inset 0 1px 0 rgba(255,255,255,.5)}
#checkout-section .co-cta:active{transform:translateY(0)}
#checkout-section .co-cta svg{width:18px;height:18px}
#checkout-section .co-hero-cta-micro{text-align:center;font-size:12px;color:rgba(11,16,32,.65);margin-top:6px;letter-spacing:.04em;font-weight:500}
#checkout-section .co-cta-anchor{text-align:center;font-size:13px;color:var(--co-muted);margin:12px 0 0;font-weight:500;letter-spacing:.01em;line-height:1.5}
#checkout-section .co-cta-anchor b{color:var(--co-ink);font-weight:700;font-family:'Fraunces',serif;font-size:15px;letter-spacing:-.01em;margin-right:2px}
#checkout-section .co-cta-anchor s{color:var(--co-muted);text-decoration-color:rgba(11,16,32,.4);margin:0 4px;font-weight:400;opacity:.7}
#checkout-section .co-cta-anchor .save{color:var(--co-green);font-weight:700}
#checkout-section .co-cta-anchor-dark{text-align:center;font-size:14px;color:rgba(255,255,255,.7);margin:14px 0 0;font-weight:500;letter-spacing:.01em;line-height:1.5}
#checkout-section .co-cta-anchor-dark b{color:#fff;font-weight:700;font-family:'Fraunces',serif;font-size:16px;letter-spacing:-.01em;margin-right:2px}
#checkout-section .co-cta-anchor-dark s{color:rgba(255,255,255,.45);margin:0 5px;font-weight:400;opacity:.7}
#checkout-section .co-cta-anchor-dark .save{color:var(--co-gold-light);font-weight:700}

#checkout-section .co-top-strip{background:var(--co-ink);color:var(--co-cream);font-size:13px;padding:10px 20px;display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap;letter-spacing:.02em;text-align:center}
#checkout-section .co-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--co-gold);margin-right:8px;animation:co-pulse 2s infinite}
#checkout-section .co-strip-sep{opacity:.4}

#checkout-section .co-hero{max-width:1240px;margin:10px auto 0;padding:40px 28px 30px;display:grid;grid-template-columns:1.15fr 1fr;gap:60px;align-items:start;position:relative}
#checkout-section .co-hero::before{content:"";position:absolute;top:-80px;right:-120px;width:500px;height:500px;background:radial-gradient(closest-side,rgba(200,151,61,.18),transparent);z-index:0;pointer-events:none}
#checkout-section .co-hero-left{position:relative;z-index:1}
#checkout-section .co-eyebrow{display:inline-flex;align-items:center;gap:10px;padding:8px 14px;border:1px solid var(--co-line);border-radius:100px;font-size:12px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--co-muted);background:rgba(255,255,255,.6)}
#checkout-section .co-tick{width:16px;height:16px;border-radius:50%;background:var(--co-green);color:#fff;display:grid;place-items:center;font-size:10px}
#checkout-section .co-title{font-family:'Fraunces',serif;font-weight:400;font-size:clamp(34px,5vw,62px);line-height:1.04;letter-spacing:-.025em;margin:22px 0 18px;color:var(--co-ink)}
#checkout-section .co-title em{font-style:italic;color:var(--co-gold-deep);font-weight:500}
#checkout-section .co-title .co-name{display:block;font-size:.52em;letter-spacing:.02em;color:var(--co-muted);font-weight:400;margin-bottom:6px;font-style:normal}
#checkout-section .co-subhead{color:var(--co-muted);font-size:17px;max-width:520px;margin-bottom:30px}
#checkout-section .co-stat-row{display:flex;gap:0;border-top:1px solid var(--co-line);border-bottom:1px solid var(--co-line);padding:22px 0;margin-bottom:28px}
#checkout-section .co-stat-row>div{flex:1;padding-right:20px}
#checkout-section .co-stat-row>div+div{border-left:1px solid var(--co-line);padding-left:20px}
#checkout-section .co-num{font-family:'Fraunces',serif;font-size:34px;font-weight:500;letter-spacing:-.02em;line-height:1;color:var(--co-ink)}
#checkout-section .co-num .co-pct{color:var(--co-gold-deep)}
#checkout-section .co-lbl{font-size:12px;color:var(--co-muted);text-transform:uppercase;letter-spacing:.1em;margin-top:6px}
#checkout-section .co-kicker-left{justify-content:flex-start;margin-top:6px}
#checkout-section .co-kicker-left::before{display:none}
#checkout-section .co-kicker-tick{background:var(--co-green);color:#fff;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-size:10px}

#checkout-section .co-report-card{position:relative;z-index:1;background:linear-gradient(180deg,#FAF1DC 0%,#F0E2BD 100%);color:var(--co-ink);border-radius:18px;padding:32px 28px;overflow:hidden;box-shadow:var(--co-shadow-lg);border:1px solid rgba(166,121,42,.18)}
#checkout-section .co-report-card::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 0%,rgba(255,255,255,.4),transparent 60%);pointer-events:none}
#checkout-section .co-report-card > *{position:relative}
#checkout-section .co-certified{text-align:center;margin-bottom:18px}
#checkout-section .co-orn-line{display:block;font-family:'Fraunces',serif;font-style:italic;font-size:14px;color:var(--co-gold-deep)}
#checkout-section .co-small-cap{display:block;font-size:10px;letter-spacing:.3em;text-transform:uppercase;color:var(--co-muted);margin-top:4px}
#checkout-section .co-type-big{font-family:'Fraunces',serif;font-size:96px;font-weight:500;text-align:center;letter-spacing:.04em;line-height:1;color:transparent;background:linear-gradient(180deg,#C8973D,#8a651f);-webkit-background-clip:text;background-clip:text;margin:6px 0 6px}
#checkout-section .co-type-caption{text-align:center;font-family:'Fraunces',serif;font-style:italic;font-size:18px;color:var(--co-ink);position:relative;padding-bottom:18px}
#checkout-section .co-type-caption::after{content:"";display:block;width:40px;height:1px;background:var(--co-gold);margin:14px auto 0}


#checkout-section .co-lock-overlay{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;background:rgba(11,16,32,.06);border:1px solid rgba(11,16,32,.1);border-radius:12px;margin-bottom:18px}
#checkout-section .co-lock-overlay svg{flex-shrink:0;color:var(--co-ink);margin-top:2px}
#checkout-section .co-lock-overlay p{font-size:13px;color:var(--co-muted);line-height:1.45}
#checkout-section .co-lock-overlay b{display:block;color:var(--co-ink);font-weight:600;margin-bottom:2px;font-size:14px}
#checkout-section .co-countdown-block{text-align:center;margin-bottom:18px;padding:14px;background:rgba(11,16,32,.04);border-radius:12px;border:1px solid rgba(11,16,32,.08)}
#checkout-section .co-count-lbl{display:block;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--co-gold-deep);font-weight:600;margin-bottom:8px}
#checkout-section .co-timer{display:flex;justify-content:center;align-items:center;gap:8px}
#checkout-section .co-timer-cell{display:flex;flex-direction:column;align-items:center}
#checkout-section .co-timer-cell .co-n{font-family:'Fraunces',serif;font-size:30px;font-weight:500;color:var(--co-ink);line-height:1}
#checkout-section .co-timer-cell .co-u{font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:var(--co-muted);margin-top:2px}
#checkout-section .co-timer-sep{font-family:'Fraunces',serif;font-size:30px;color:var(--co-gold-deep);line-height:1;margin:0 4px}

#checkout-section .co-blur-area{position:relative}
#checkout-section .co-report-card[data-preview-mode="show"] .co-blur-veil{display:none !important}
#checkout-section .co-blur-veil{position:absolute;inset:-12px -6px -12px -6px;z-index:5;display:flex;align-items:center;justify-content:center;pointer-events:none;overflow:hidden;border-radius:18px;background:linear-gradient(180deg,rgba(232,196,118,.65) 0%,rgba(140,98,32,.9) 100%);backdrop-filter:blur(8px) saturate(1.25);-webkit-backdrop-filter:blur(8px) saturate(1.25);box-shadow:inset 0 1px 0 rgba(255,240,200,.45);animation:chmpVeilIn .6s .2s cubic-bezier(.2,.8,.2,1) both}
#checkout-section .co-blur-shimmer{position:absolute;inset:-50% -50%;background:linear-gradient(115deg,transparent 30%,rgba(255,250,239,.55) 48%,rgba(244,194,107,.35) 50%,rgba(255,250,239,.55) 52%,transparent 70%);transform:translateX(-100%);animation:chmpShimmer 5s 1.2s ease-in-out infinite;mix-blend-mode:overlay;pointer-events:none}
#checkout-section .co-blur-content{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;text-align:center;padding:16px 24px;max-width:300px}
#checkout-section .co-blur-orn{display:inline-flex;align-items:center;gap:10px;margin-bottom:8px;animation:chmpFadeUp .5s .55s cubic-bezier(.2,.8,.2,1) both}
#checkout-section .co-blur-orn::before,#checkout-section .co-blur-orn::after{content:"";width:14px;height:1px;background:rgba(255,240,200,.7)}
#checkout-section .co-blur-orn span{font-family:'DM Sans',sans-serif;font-size:9px;font-weight:600;letter-spacing:.25em;text-transform:uppercase;color:#FBF3DC}
#checkout-section .co-blur-badge{width:56px;height:56px;border-radius:50%;background:linear-gradient(140deg,#FFFAEF 0%,#D8A94B 50%,#6F4F18 100%);color:#FFFAEF;display:grid;place-items:center;margin-bottom:14px;box-shadow:0 12px 28px -8px rgba(166,121,42,.5),inset 0 2px 0 rgba(255,255,255,.5),inset 0 -2px 0 rgba(0,0,0,.1);position:relative;animation:chmpBadgeIn .7s .4s cubic-bezier(.2,.8,.2,1) both,chmpFloat 3.5s 1.1s ease-in-out infinite}
#checkout-section .co-blur-hg{animation:chmpHgFlip 6s 1.4s ease-in-out infinite;transform-origin:center}
#checkout-section .co-blur-title{font-family:'Fraunces',serif;font-style:italic;font-size:24px;font-weight:400;color:#FFFAEF;line-height:1.1;margin-bottom:8px;letter-spacing:-.01em;text-shadow:0 1px 2px rgba(46,32,16,.35);animation:chmpFadeUp .5s .65s cubic-bezier(.2,.8,.2,1) both}
#checkout-section .co-blur-sub{font-family:'DM Sans',sans-serif;font-size:12px;line-height:1.55;color:rgba(255,250,239,.88);max-width:240px;animation:chmpFadeUp .5s .75s cubic-bezier(.2,.8,.2,1) both}

#checkout-section .co-live-pop{position:fixed;left:24px;bottom:24px;background:#fff;border:1px solid var(--co-line);border-radius:14px;padding:14px 18px;display:flex;align-items:center;gap:12px;box-shadow:var(--co-shadow-md);z-index:998;max-width:300px;animation:co-popIn .5s ease}
#checkout-section .co-pop-av{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,var(--co-gold),var(--co-gold-deep));color:#fff;display:grid;place-items:center;font-weight:600;font-size:14px;flex-shrink:0}
#checkout-section .co-live-pop p{font-size:13px;color:var(--co-ink);font-weight:500}
#checkout-section .co-live-pop p b{font-weight:600}
#checkout-section .co-live-pop small{display:block;font-size:11px;color:var(--co-muted);margin-top:2px}

#checkout-section .co-logos{padding:30px 28px;border-top:1px solid var(--co-line);border-bottom:1px solid var(--co-line);background:rgba(255,255,255,.4)}
#checkout-section .co-logos-inner{max-width:1240px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:30px 50px;justify-content:center}
#checkout-section .co-logos-label{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--co-muted);font-weight:600}
#checkout-section .co-logos-list{display:flex;align-items:center;gap:36px;flex-wrap:wrap;justify-content:center}
#checkout-section .co-logos-list span{font-size:17px;font-weight:600;letter-spacing:.06em;color:var(--co-muted-2);text-transform:uppercase;opacity:.7;transition:opacity .2s}
#checkout-section .co-logos-list span:hover{opacity:1;color:var(--co-ink)}
#checkout-section .co-serif-italic{font-family:'Fraunces',serif !important;font-style:italic !important;text-transform:none !important;letter-spacing:0 !important;font-size:22px !important}

#checkout-section .co-peek{background:linear-gradient(180deg,var(--co-cream) 0%,var(--co-cream-2) 100%);position:relative;overflow:hidden}
#checkout-section .co-peek::before{content:"";position:absolute;left:-150px;top:30%;width:400px;height:400px;background:radial-gradient(closest-side,rgba(200,151,61,.15),transparent);pointer-events:none}
#checkout-section .co-peek-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;max-width:1240px;margin:0 auto;perspective:1200px}
#checkout-section .co-peek-card{background:var(--co-paper);border:1px solid var(--co-line);border-radius:14px;padding:24px;box-shadow:var(--co-shadow-md);transform:rotate(-1.5deg);transition:transform .35s ease;position:relative;overflow:hidden;min-height:340px;display:flex;flex-direction:column}
#checkout-section .co-peek-card:nth-child(2){transform:rotate(1.2deg) translateY(-12px)}
#checkout-section .co-peek-card:nth-child(3){transform:rotate(-.8deg) translateY(-4px)}
#checkout-section .co-peek-card:nth-child(4){transform:rotate(1.6deg) translateY(-16px)}
#checkout-section .co-peek-card:hover{transform:rotate(0) translateY(-20px) scale(1.02);box-shadow:var(--co-shadow-lg);z-index:5}
#checkout-section .co-peek-pageno{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--co-gold-deep);font-weight:600;margin-bottom:10px}
#checkout-section .co-peek-h{font-family:'Fraunces',serif;font-size:18px;font-weight:500;line-height:1.25;letter-spacing:-.01em;color:var(--co-ink);margin-bottom:12px}
#checkout-section .co-peek-body{font-size:13px;color:var(--co-muted);line-height:1.6;flex:1}
#checkout-section .co-peek-body b{color:var(--co-ink);font-weight:600}
#checkout-section .co-peek-foot{margin-top:16px;padding-top:14px;border-top:1px dashed var(--co-line);font-size:11px;color:var(--co-muted);letter-spacing:.04em;display:flex;justify-content:space-between;align-items:center}
#checkout-section .co-peek-foot span:last-child{font-weight:600;color:var(--co-gold-deep)}
#checkout-section .co-peek-fade{position:absolute;bottom:60px;left:0;right:0;height:80px;background:linear-gradient(180deg,transparent,var(--co-paper));pointer-events:none}
#checkout-section .co-peek-mini-traits{display:flex;flex-direction:column;gap:8px;margin-top:8px}
#checkout-section .co-peek-mini-trait{display:flex;align-items:center;gap:8px;font-size:11px}
#checkout-section .co-peek-mini-trait b{font-weight:600;color:var(--co-ink);min-width:65px}
#checkout-section .co-peek-mini-bar{flex:1;height:4px;background:var(--co-cream-2);border-radius:100px;overflow:hidden}
#checkout-section .co-peek-mini-fill{height:100%;background:linear-gradient(90deg,var(--co-gold),var(--co-gold-deep))}
#checkout-section .co-peek-quote{font-family:'Fraunces',serif;font-style:italic;font-size:14px;color:var(--co-ink);line-height:1.45;padding:12px 0 0 12px;border-left:2px solid var(--co-gold);margin-top:8px}
#checkout-section .co-peek-list{font-size:13px;color:var(--co-muted);line-height:1.7}
#checkout-section .co-peek-list li{list-style:none;padding-left:18px;position:relative;margin-bottom:4px}
#checkout-section .co-peek-list li::before{content:"→";position:absolute;left:0;color:var(--co-gold-deep)}

#checkout-section .co-trans{background:var(--co-ink);color:var(--co-cream);position:relative;overflow:hidden;padding:70px 0 80px}
#checkout-section .co-trans::before{content:"";position:absolute;top:-200px;left:50%;transform:translateX(-50%);width:800px;height:800px;background:radial-gradient(closest-side,rgba(200,151,61,.1),transparent);pointer-events:none}
#checkout-section .co-trans .co-h2{color:var(--co-cream);max-width:760px;padding:0 24px}
#checkout-section .co-trans .co-kicker{color:var(--co-gold-light)}
#checkout-section .co-trans .co-kicker::before,#checkout-section .co-trans .co-kicker::after{background:var(--co-gold)}
#checkout-section .co-trans-stats{display:flex;justify-content:center;align-items:center;gap:22px;flex-wrap:wrap;margin:14px auto 38px;color:rgba(255,255,255,.7);font-size:13.5px;letter-spacing:.02em}
#checkout-section .co-trans-stats b{color:var(--co-gold-light);font-weight:700;letter-spacing:.06em}
#checkout-section .co-trans-stats span.dot{width:4px;height:4px;border-radius:50%;background:rgba(255,255,255,.3)}
#checkout-section .co-marquee-wrap{position:relative;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 80px,#000 calc(100% - 80px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 80px,#000 calc(100% - 80px),transparent 100%);padding:6px 0}
#checkout-section .co-marquee{display:flex;gap:16px;width:max-content;animation:co-scroll 60s linear infinite}
#checkout-section .co-marquee:hover{animation-play-state:paused}
#checkout-section .co-quote-card{width:340px;flex-shrink:0;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:22px 24px;display:flex;flex-direction:column;backdrop-filter:blur(8px);transition:transform .25s ease,border-color .25s ease}
#checkout-section .co-quote-card:hover{transform:translateY(-3px);border-color:rgba(200,151,61,.3)}
#checkout-section .co-quote-stars{color:var(--co-gold-light);font-size:13px;letter-spacing:2px;margin-bottom:12px}
#checkout-section .co-quote-text{font-family:'Fraunces',serif;font-style:italic;font-size:16px;line-height:1.42;color:#fff;letter-spacing:-.005em;flex:1;margin:0 0 16px}
#checkout-section .co-quote-author{display:flex;align-items:center;gap:11px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08)}
#checkout-section .co-quote-av{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,var(--co-gold),var(--co-gold-deep));color:#fff;display:grid;place-items:center;font-weight:600;font-size:12px;flex-shrink:0}
#checkout-section .co-quote-meta b{display:block;font-size:13px;color:#fff;font-weight:600;line-height:1.3}
#checkout-section .co-quote-meta small{font-size:11.5px;color:rgba(255,255,255,.55);letter-spacing:.01em}
#checkout-section .co-quote-verified{margin-left:auto;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--co-gold-light);font-weight:700;opacity:.7}

#checkout-section .co-offer{background:linear-gradient(180deg,var(--co-cream) 0%,#F0E6CF 100%);position:relative;overflow:hidden;scroll-margin-top:20px}
#checkout-section .co-offer::before{content:"";position:absolute;top:0;right:-200px;width:600px;height:600px;background:radial-gradient(closest-side,rgba(200,151,61,.2),transparent);pointer-events:none}
#checkout-section .co-offer::after{content:"";position:absolute;bottom:-200px;left:-200px;width:600px;height:600px;background:radial-gradient(closest-side,rgba(200,151,61,.15),transparent);pointer-events:none}
#checkout-section .co-offer-card{max-width:1080px;margin:0 auto;background:#fff;border-radius:24px;box-shadow:var(--co-shadow-lg);overflow:hidden;border:1px solid var(--co-line);position:relative;z-index:1}
#checkout-section .co-offer-head{background:var(--co-ink);color:#fff;padding:28px 36px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:18px}
#checkout-section .co-offer-head-left h3{font-family:'Fraunces',serif;font-size:26px;font-weight:500;color:#fff;margin-bottom:4px}
#checkout-section .co-offer-head-left p{font-size:13px;color:rgba(255,255,255,.65)}
#checkout-section .co-offer-badge{display:inline-flex;align-items:center;gap:8px;padding:9px 18px;background:linear-gradient(180deg,var(--co-gold-light),var(--co-gold-deep));color:var(--co-ink);border-radius:100px;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
#checkout-section .co-offer-body{display:grid;grid-template-columns:1.2fr 1fr;gap:0}
#checkout-section .co-offer-left{padding:40px 40px 36px;border-right:1px solid var(--co-line)}
#checkout-section .co-offer-left h4{font-family:'Fraunces',serif;font-size:22px;font-weight:500;margin-bottom:24px;color:var(--co-ink)}
#checkout-section .co-includes{list-style:none;margin:0;padding:0}
#checkout-section .co-includes li{display:flex;align-items:flex-start;gap:14px;padding:16px 0;color:var(--co-ink);line-height:1.45}
#checkout-section .co-includes li + li{border-top:1px solid var(--co-line-soft)}
#checkout-section .co-item-icon{flex-shrink:0;width:40px;height:40px;background:linear-gradient(135deg,#FAF1DC 0%,#F0E2BD 100%);border:1px solid rgba(166,121,42,.22);border-radius:10px;display:grid;place-items:center;color:var(--co-gold-deep)}
#checkout-section .co-item-icon svg{width:20px;height:20px}
#checkout-section .co-includes li > div{flex:1;min-width:0;padding-top:2px}
#checkout-section .co-includes li b{display:block;font-weight:600;color:var(--co-ink);font-size:15px;line-height:1.3;letter-spacing:-.005em}
#checkout-section .co-includes li small{display:block;font-size:13px;color:var(--co-muted);margin-top:4px;font-weight:400;line-height:1.45}
#checkout-section .co-includes li .co-worth{margin-left:auto;flex-shrink:0;padding-left:14px;font-size:14px;font-weight:500;color:var(--co-gold-deep);white-space:nowrap;font-family:'Fraunces',serif;align-self:flex-start;margin-top:8px;letter-spacing:-.01em}
#checkout-section .co-includes-foot{display:flex;justify-content:space-between;align-items:center;margin-top:20px;padding-top:18px;border-top:2px solid var(--co-ink)}
#checkout-section .co-includes-foot span{font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--co-muted)}
#checkout-section .co-includes-foot b{font-family:'Fraunces',serif;font-size:28px;font-weight:500;color:var(--co-ink);text-decoration:line-through;text-decoration-color:rgba(11,16,32,.3)}
#checkout-section .co-offer-right{padding:40px 36px;background:linear-gradient(180deg,var(--co-cream) 0%,#F2E8CF 100%);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;position:relative}
#checkout-section .co-price-label{display:inline-block;padding:5px 14px;background:var(--co-coral);color:#fff;border-radius:100px;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;margin-bottom:14px}
#checkout-section .co-price-old{font-family:'Fraunces',serif;font-size:22px;color:var(--co-muted);text-decoration:line-through;margin-bottom:4px}
#checkout-section .co-price-big{font-family:'Fraunces',serif;font-size:84px;font-weight:500;color:var(--co-ink);line-height:1;letter-spacing:-.025em;margin-bottom:6px}
#checkout-section .co-price-big sup{font-size:36px;font-weight:400;color:var(--co-gold-deep);vertical-align:top;margin-right:4px;position:relative;top:14px}
#checkout-section .co-price-each{font-size:13px;color:var(--co-muted);margin-bottom:10px}

#checkout-section .co-price-cta{margin-bottom:18px}


#checkout-section .co-secure-line{font-size:12px;color:var(--co-muted);display:flex;align-items:center;gap:6px;justify-content:center}
#checkout-section .co-offer-foot{padding:20px 40px;background:var(--co-cream-2);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;font-size:13px;color:var(--co-muted)}
#checkout-section .co-offer-foot-item{display:flex;align-items:center;gap:8px}
#checkout-section .co-offer-foot-item svg{color:var(--co-gold-deep);width:16px;height:16px}
#checkout-section .co-offer-foot-item b{color:var(--co-ink);font-weight:600;margin-right:4px}

#checkout-section .co-faq{max-width:820px;margin:40px auto 0}
#checkout-section .co-faq details{background:#fff;border:1px solid var(--co-line);border-radius:14px;margin-bottom:12px;overflow:hidden;transition:box-shadow .2s ease}
#checkout-section .co-faq details[open]{box-shadow:var(--co-shadow-md)}
#checkout-section .co-faq summary{padding:22px 26px;font-weight:600;font-size:16px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;list-style:none;color:var(--co-ink)}
#checkout-section .co-faq summary::-webkit-details-marker{display:none}
#checkout-section .co-faq summary::after{content:"+";font-family:'Fraunces',serif;font-size:30px;font-weight:300;color:var(--co-gold-deep);transition:transform .2s ease;flex-shrink:0;margin-left:16px;line-height:.6}
#checkout-section .co-faq details[open] summary::after{transform:rotate(45deg)}
#checkout-section .co-faq details p{padding:0 26px 24px;color:var(--co-muted);font-size:15px;line-height:1.7}

#checkout-section .co-final{background:var(--co-ink);color:var(--co-cream);padding:90px 28px 110px;text-align:center;position:relative;overflow:hidden}
#checkout-section .co-final::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 80% 60% at 50% 0%,rgba(200,151,61,.18),transparent 60%),radial-gradient(ellipse 60% 40% at 50% 100%,rgba(200,151,61,.08),transparent 60%);pointer-events:none}
#checkout-section .co-final-inner{position:relative;max-width:720px;margin:0 auto}
#checkout-section .co-final p{color:rgba(255,255,255,.7);margin-bottom:30px;font-size:17px;line-height:1.6}
#checkout-section .co-final-timer{display:inline-flex;align-items:center;gap:10px;padding:12px 22px;background:rgba(255,255,255,.05);border:1px solid rgba(200,151,61,.3);border-radius:100px;margin-bottom:24px;font-size:14px;color:#fff}
#checkout-section .co-final-timer b{font-family:'Fraunces',serif;font-size:20px;color:var(--co-gold-light);font-weight:500;letter-spacing:.04em}
#checkout-section .co-final-timer small{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.6);font-weight:600}
#checkout-section .co-final .co-cta{max-width:460px;margin:0 auto 16px}
#checkout-section .co-final .co-h2{margin-bottom:20px}
#checkout-section .co-micro{font-size:13px;color:rgba(255,255,255,.55);margin-top:6px}

#checkout-section .co-footer{padding:30px 28px;text-align:center;background:var(--co-ink-2);color:rgba(255,255,255,.55);font-size:13px}
#checkout-section .co-footer-logo{font-family:'Fraunces',serif;font-size:18px;color:#fff;margin-bottom:8px;font-weight:500}
#checkout-section .co-logo-img{max-height:32px;width:auto;margin:0 auto 10px;display:block}

#checkout-section .co-sticky-bar{position:fixed;bottom:0;left:0;right:0;background:var(--co-ink);color:var(--co-cream);padding:14px 22px;display:flex;justify-content:space-between;align-items:center;gap:16px;z-index:999;border-top:1px solid rgba(244,194,107,.3);box-shadow:0 -10px 40px -10px rgba(0,0,0,.3)}
#checkout-section .co-sticky-info b{display:block;font-size:14px;color:#fff;font-weight:600;margin-bottom:2px}
#checkout-section .co-sticky-info b .co-name-pill{color:var(--co-gold-light)}
#checkout-section .co-sticky-info small{font-size:12px;color:rgba(255,255,255,.6)}
#checkout-section .co-sticky-timer{color:var(--co-gold-light);font-weight:700;font-family:'Fraunces',serif;letter-spacing:.04em}
#checkout-section .co-sticky-btn{padding:14px 26px;background:linear-gradient(180deg,var(--co-gold-light),var(--co-gold-deep));color:var(--co-ink);border-radius:10px;font-weight:700;font-size:14px;letter-spacing:.04em;text-transform:uppercase;display:inline-flex;align-items:center;gap:8px;flex-shrink:0;border:none;cursor:pointer;transition:transform .15s ease}
#checkout-section .co-sticky-btn:hover{transform:translateY(-2px)}

@keyframes co-pulse{0%,100%{opacity:1}50%{opacity:.5}}
@keyframes co-popIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@keyframes co-scroll{0%{transform:translateX(0)}100%{transform:translateX(calc(-50% - 8px))}}

@media (max-width:980px){
    #checkout-section .co-hero{grid-template-columns:1fr;gap:40px;padding:30px 20px 24px}
    #checkout-section .co-peek-grid{grid-template-columns:1fr 1fr;gap:18px}
    #checkout-section .co-peek-card{transform:none !important;min-height:auto}
    #checkout-section .co-peek-card:hover{transform:translateY(-6px) !important}
    #checkout-section .co-offer-body{grid-template-columns:1fr}
    #checkout-section .co-offer-left{border-right:none;border-bottom:1px solid var(--co-line)}
    #checkout-section .co-live-pop{display:none}
}
@media (max-width:640px){
    #checkout-section .co-section{padding:54px 18px}
    #checkout-section .co-h2{font-size:clamp(24px,7vw,34px) !important}
    #checkout-section .co-section-sub{font-size:15px;margin-bottom:36px}
    #checkout-section .co-kicker{font-size:11px;letter-spacing:.16em}
    #checkout-section .co-title{font-size:clamp(28px,7.5vw,42px)}
    #checkout-section .co-subhead{font-size:15px;margin-bottom:24px}
    #checkout-section .co-stat-row{padding:18px 0;margin-bottom:22px}
    #checkout-section .co-stat-row>div{padding:0 12px}
    #checkout-section .co-stat-row>div:first-child{padding-left:0}
    #checkout-section .co-stat-row>div:last-child{padding-right:0}
    #checkout-section .co-num{font-size:26px}
    #checkout-section .co-lbl{font-size:10px;letter-spacing:.08em}
    #checkout-section .co-report-card{padding:26px 22px}
    #checkout-section .co-type-big{font-size:78px}
    #checkout-section .co-type-caption{font-size:16px}
    #checkout-section .co-cta{padding:18px 20px;font-size:15px}
    #checkout-section .co-peek-grid{grid-template-columns:1fr;gap:16px}
    #checkout-section .co-peek-card{padding:22px 20px}
    #checkout-section .co-offer-head{padding:22px 24px;flex-direction:column;align-items:flex-start}
    #checkout-section .co-offer-head-left h3{font-size:22px}
    #checkout-section .co-offer-left,#checkout-section .co-offer-right{padding:28px 22px}
    #checkout-section .co-offer-left h4{font-size:20px}
    #checkout-section .co-includes li{flex-wrap:nowrap;padding:14px 0;gap:12px}
    #checkout-section .co-item-icon{width:36px;height:36px;border-radius:9px}
    #checkout-section .co-item-icon svg{width:18px;height:18px}
    #checkout-section .co-includes li b{font-size:14px}
    #checkout-section .co-includes li small{font-size:12.5px}
    #checkout-section .co-includes li .co-worth{padding-left:8px;font-size:13px;margin-top:5px}
    #checkout-section .co-includes-foot b{font-size:24px}
    #checkout-section .co-price-old{font-size:18px}
    #checkout-section .co-price-big{font-size:62px}
    #checkout-section .co-price-big sup{font-size:26px;top:8px}
    #checkout-section .co-offer-foot{padding:18px 22px;flex-direction:column;align-items:flex-start;gap:10px}
    #checkout-section .co-offer-foot-item{font-size:13px}
    #checkout-section .co-faq summary{padding:18px 20px;font-size:15px}
    #checkout-section .co-faq details p{padding:0 20px 22px;font-size:14.5px}
    #checkout-section .co-final{padding:70px 20px 90px}
    #checkout-section .co-final p{font-size:15px}
    #checkout-section .co-final-timer{padding:10px 16px;font-size:13px}
    #checkout-section .co-final-timer b{font-size:18px}
    #checkout-section .co-sticky-bar{flex-direction:row;padding:10px 14px;gap:10px}
    #checkout-section .co-sticky-info b{font-size:13px}
    #checkout-section .co-sticky-info small{font-size:11px}
    #checkout-section .co-sticky-btn{padding:13px 16px;font-size:12px;letter-spacing:.04em}
    #checkout-section .co-top-strip{font-size:11.5px;padding:8px 14px;gap:8px}
    #checkout-section .co-strip-sep{display:none}
    body.mbti-checkout-active{padding-bottom:80px}
}
@media (max-width:380px){
    #checkout-section .co-type-big{font-size:64px}
    #checkout-section .co-price-big{font-size:54px}
    #checkout-section .co-num{font-size:22px}
    #checkout-section .co-stat-row>div{padding:0 8px}
    #checkout-section .co-h2{font-size:22px !important}
}

/* ==========================================================
   MOBILE 1:1 FIX (matches checkout-preview.html exactly)
   Override conflicting old break-out rules + mobile polish
   ========================================================== */

/* Neutralise the old mobile break-out rules — they cause 41px overflow
   because of vw-vs-pixel mismatches. Stay inside the parent at 100%
   and let overflow:hidden clip anything wider. */
@media (max-width: 767px) {
    body.mbti-checkout-active #mbti-app[data-page="checkout"],
    body.mbti-checkout-active #checkout-section {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0 !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }
    /* Theme wrappers — let them shrink */
    body.mbti-checkout-active #pxl-content-area,
    body.mbti-checkout-active #pxl-content-main,
    body.mbti-checkout-active .pxl-entry-content,
    body.mbti-checkout-active article.post-12434 {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }
}

/* Mobile design polish (1:1 with preview) */
@media (max-width: 640px) {
    /* QUOTE CARDS — fit on 375px viewport */
    #checkout-section .co-quote-card { width: 280px; padding: 18px 20px; }
    #checkout-section .co-quote-text { font-size: 14.5px; line-height: 1.4; margin-bottom: 14px }
    #checkout-section .co-quote-stars { font-size: 12px; margin-bottom: 10px }
    #checkout-section .co-quote-meta b { font-size: 12.5px }
    #checkout-section .co-quote-meta small { font-size: 11px }
    #checkout-section .co-quote-av { width: 30px; height: 30px; font-size: 11px }
    #checkout-section .co-quote-verified { font-size: 9px; letter-spacing: .12em }

    /* MARQUEE mask — smaller edge fade on mobile so cards are readable */
    #checkout-section .co-marquee-wrap {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    }

    /* PEEK CARDS — kill the bottom fade overlay (it reads as broken text) */
    #checkout-section .co-peek-fade { display: none !important; }
    /* tighter, no rotation */
    #checkout-section .co-peek-card { padding: 22px 20px; transform: none !important; min-height: auto !important }
    #checkout-section .co-peek-card:nth-child(2),
    #checkout-section .co-peek-card:nth-child(3),
    #checkout-section .co-peek-card:nth-child(4) { transform: none !important }
    #checkout-section .co-peek-card:hover { transform: translateY(-3px) !important }

    /* SECTION padding — preview uses 54-60px vertical, 18px horizontal */
    #checkout-section .co-section { padding: 50px 18px }
    #checkout-section .co-trans { padding: 56px 0 64px }
    #checkout-section .co-final { padding: 60px 18px 90px }
    #checkout-section .co-hero { padding: 24px 18px 18px }
    #checkout-section .co-logos { padding: 22px 18px }
    #checkout-section .co-logos-list { gap: 18px 26px }
    #checkout-section .co-logos-list span { font-size: 14px }
    #checkout-section .co-serif-italic { font-size: 18px !important }

    /* TRANS stats inline */
    #checkout-section .co-trans-stats { gap: 14px; font-size: 12.5px; padding: 0 18px; margin-bottom: 30px }
    #checkout-section .co-trans-stats span.dot { width: 3px; height: 3px }

    /* OFFER card edges (no horizontal padding from .co-section, sit at 18px from edges) */
    #checkout-section .co-offer-card { margin-left: 0; margin-right: 0 }
    #checkout-section .co-offer-head { padding: 22px 22px; flex-direction: column; align-items: flex-start; gap: 14px }
    #checkout-section .co-offer-head-left h3 { font-size: 21px }
    #checkout-section .co-offer-left, #checkout-section .co-offer-right { padding: 28px 22px }
    #checkout-section .co-offer-foot { padding: 16px 22px; gap: 8px }

    /* INCLUDES list — keep tick + title + value all on one row */
    #checkout-section .co-includes li { flex-wrap: nowrap; padding: 13px 0; gap: 11px; align-items: flex-start }
    #checkout-section .co-item-icon { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0 }
    #checkout-section .co-item-icon svg { width: 18px; height: 18px }
    #checkout-section .co-includes li > div { flex: 1; min-width: 0; padding-top: 1px }
    #checkout-section .co-includes li b { font-size: 13.5px }
    #checkout-section .co-includes li small { font-size: 12px }
    #checkout-section .co-includes li .co-worth { font-size: 12.5px; padding-left: 8px; margin-top: 4px }

    /* Standalone value foot tighter */
    #checkout-section .co-includes-foot b { font-size: 22px }
    #checkout-section .co-includes-foot span { font-size: 12px }

    /* PRICING column compact */
    #checkout-section .co-price-old { font-size: 17px }
    #checkout-section .co-price-big { font-size: 58px }
    #checkout-section .co-price-big sup { font-size: 24px; top: 8px }
    #checkout-section .co-price-each { font-size: 12px }
    

    /* CTA tight */
    #checkout-section .co-cta { padding: 16px 18px; font-size: 14px; letter-spacing: .04em }
    #checkout-section .co-cta svg { width: 16px; height: 16px }
    #checkout-section .co-cta-anchor { font-size: 12px; margin-top: 10px }
    #checkout-section .co-cta-anchor b { font-size: 13.5px }
    #checkout-section .co-cta-anchor-dark { font-size: 13px; margin-top: 12px }
    #checkout-section .co-cta-anchor-dark b { font-size: 14.5px }

    /* HERO mobile */
    #checkout-section .co-eyebrow { font-size: 11px; padding: 7px 12px; letter-spacing: .12em }
    #checkout-section .co-title { font-size: clamp(28px, 8vw, 38px); margin: 16px 0 14px }
    #checkout-section .co-title .co-name { font-size: .56em }
    #checkout-section .co-subhead { font-size: 14.5px; margin-bottom: 22px }
    #checkout-section .co-stat-row { padding: 16px 0; margin-bottom: 22px }
    #checkout-section .co-stat-row > div { padding: 0 12px }
    #checkout-section .co-stat-row > div:first-child { padding-left: 0 }
    #checkout-section .co-stat-row > div:last-child { padding-right: 0 }
    #checkout-section .co-num { font-size: 24px }
    #checkout-section .co-lbl { font-size: 10px; letter-spacing: .06em; margin-top: 4px }
    #checkout-section .co-kicker-left { font-size: 10.5px; letter-spacing: .12em }

    /* CERTIFICATE card */
    #checkout-section .co-report-card { padding: 24px 20px }
    #checkout-section .co-orn-line { font-size: 13px }
    #checkout-section .co-small-cap { font-size: 9px; letter-spacing: .26em }
    #checkout-section .co-type-big { font-size: 72px }
    #checkout-section .co-type-caption { font-size: 15px; padding-bottom: 14px }
    
    
    #checkout-section .co-lock-overlay { padding: 12px 14px; gap: 10px; margin-bottom: 14px }
    #checkout-section .co-lock-overlay svg { width: 18px; height: 18px }
    #checkout-section .co-lock-overlay b { font-size: 13px }
    #checkout-section .co-lock-overlay p { font-size: 12px }
    #checkout-section .co-countdown-block { padding: 12px; margin-bottom: 14px }
    #checkout-section .co-count-lbl { font-size: 10px; margin-bottom: 6px }
    #checkout-section .co-timer-cell .co-n { font-size: 26px }
    #checkout-section .co-timer-cell .co-u { font-size: 8px }
    #checkout-section .co-timer-sep { font-size: 26px }
    #checkout-section .co-blur-title { font-size: 19px }
    #checkout-section .co-blur-sub { font-size: 11.5px }
    #checkout-section .co-blur-badge { width: 48px; height: 48px }

    /* H2 mobile */
    #checkout-section .co-h2 { font-size: clamp(24px, 7vw, 32px) !important; line-height: 1.1; padding: 0 4px }
    #checkout-section .co-section-sub { font-size: 14.5px; margin-bottom: 32px; padding: 0 8px }
    #checkout-section .co-kicker { font-size: 10.5px; letter-spacing: .14em }

    /* PEEK section heading specifically */
    #checkout-section .co-peek-pageno { font-size: 9.5px; letter-spacing: .14em; margin-bottom: 8px }
    #checkout-section .co-peek-h { font-size: 17px; line-height: 1.22; margin-bottom: 10px }
    #checkout-section .co-peek-body { font-size: 12.5px; line-height: 1.55 }
    #checkout-section .co-peek-foot { font-size: 10.5px; margin-top: 12px; padding-top: 10px }
    #checkout-section .co-peek-quote { font-size: 12.5px; padding: 10px 0 0 10px }
    #checkout-section .co-peek-mini-trait { font-size: 10.5px }
    #checkout-section .co-peek-list { font-size: 12.5px }

    /* FAQ mobile */
    #checkout-section .co-faq summary { padding: 18px 18px; font-size: 14px }
    #checkout-section .co-faq summary::after { font-size: 24px }
    #checkout-section .co-faq details p { padding: 0 18px 20px; font-size: 13.5px; line-height: 1.6 }

    /* FINAL CTA mobile */
    #checkout-section .co-final-timer { padding: 9px 14px; font-size: 12px }
    #checkout-section .co-final-timer b { font-size: 16px }
    #checkout-section .co-final-timer small { font-size: 9.5px; letter-spacing: .14em }
    #checkout-section .co-final p { font-size: 14px; margin-bottom: 22px }
    #checkout-section .co-micro { font-size: 11.5px }

    /* STICKY bar mobile */
    #checkout-section .co-sticky-bar { padding: 10px 12px; gap: 10px }
    #checkout-section .co-sticky-info b { font-size: 12px; line-height: 1.3 }
    #checkout-section .co-sticky-info small { font-size: 10.5px }
    #checkout-section .co-sticky-btn { padding: 11px 14px; font-size: 11px; gap: 6px; letter-spacing: .04em }
    #checkout-section .co-sticky-btn svg { width: 12px; height: 12px }

    /* TOP STRIP mobile */
    #checkout-section .co-top-strip { font-size: 11px; padding: 8px 12px; gap: 6px; line-height: 1.4 }
    #checkout-section .co-strip-sep { display: none }
    #checkout-section .co-dot { width: 6px; height: 6px }

    /* LIVE POPUP mobile — keep visible but smaller, above sticky bar */
    #checkout-section .co-live-pop { display: none }

    /* Footer */
    #checkout-section .co-footer { padding: 22px 18px; font-size: 11.5px }
    #checkout-section .co-logo-img { max-height: 26px }

    /* Reserve space at bottom for sticky bar */
    body.mbti-checkout-active { padding-bottom: 70px !important }
}

/* Very small phones */
@media (max-width: 380px) {
    #checkout-section .co-type-big { font-size: 60px }
    #checkout-section .co-price-big { font-size: 50px }
    #checkout-section .co-price-big sup { font-size: 22px; top: 6px }
    #checkout-section .co-num { font-size: 20px }
    #checkout-section .co-stat-row > div { padding: 0 6px }
    #checkout-section .co-h2 { font-size: 22px !important }
    #checkout-section .co-quote-card { width: 250px; padding: 16px 18px }
    #checkout-section .co-includes li b { font-size: 13px }
    #checkout-section .co-includes li small { font-size: 11.5px }
    #checkout-section .co-cta { padding: 14px 16px; font-size: 13px }
}

/* ==========================================================
   v10 → v11 FIXES (applied on top of v10's UI/UX baseline)
   1) Payment method logos
   2) Save pill centered (override align-self:flex-start)
   3) Buttons single-line (no wrap)
   4) Trait bars match JS-rendered structure
   ========================================================== */

/* (1) PAYMENT LOGOS — actual brand SVGs */
#checkout-section .co-pay-icons {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 14px 0 12px !important;
}
#checkout-section .co-pay-logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 1px solid rgba(11,16,32,.08) !important;
    border-radius: 5px !important;
    box-shadow: 0 1px 2px rgba(11,16,32,.04) !important;
    overflow: hidden !important;
    transition: transform .15s ease, box-shadow .15s ease !important;
}
#checkout-section .co-pay-logo:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(11,16,32,.08) !important;
}
#checkout-section .co-pay-logo svg {
    display: block !important;
    height: 22px !important;
    width: auto !important;
}
@media (max-width: 640px) {
    #checkout-section .co-pay-icons { gap: 6px !important; }
    #checkout-section .co-pay-logo { height: 22px !important; }
    #checkout-section .co-pay-logo svg { height: 20px !important; }
}

/* (2) SAVE PILL — center it (override v10's align-self:flex-start) */
#checkout-section .co-offer-right > * {
    align-self: center !important;
}
#checkout-section .co-save-pill {
    display: inline-block !important;
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 7px 16px !important;
    background: rgba(31,122,77,.08) !important;
    color: var(--co-green) !important;
    border: 1px solid rgba(31,122,77,.25) !important;
    border-radius: 100px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .02em !important;
    margin-bottom: 22px !important;
    margin-top: 0 !important;
    white-space: nowrap !important;
}
#checkout-section .co-price-label,
#checkout-section .co-price-old,
#checkout-section .co-price-each,
#checkout-section .co-secure-line {
    align-self: center !important;
    text-align: center !important;
}
#checkout-section .co-price-big {
    align-self: center !important;
    justify-content: center !important;
    text-align: center !important;
}
#checkout-section .co-pay-icons {
    align-self: center !important;
}

/* (3) BUTTONS — single-line, no wrap */
#checkout-section .co-cta,
#checkout-section button.co-cta,
#checkout-section .co-sticky-btn,
#checkout-section button.co-sticky-btn {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex-wrap: nowrap !important;
}
#checkout-section .co-cta > *,
#checkout-section .co-sticky-btn > * {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
@media (max-width: 640px) {
    #checkout-section .co-cta {
        font-size: 13px !important;
        padding: 16px 16px !important;
        letter-spacing: .02em !important;
        gap: 8px !important;
    }
    #checkout-section .co-cta svg {
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0 !important;
    }
    #checkout-section .co-sticky-btn {
        font-size: 11px !important;
        padding: 11px 14px !important;
        letter-spacing: .04em !important;
        gap: 6px !important;
    }
}
@media (max-width: 380px) {
    #checkout-section .co-cta {
        font-size: 12px !important;
        padding: 15px 14px !important;
        letter-spacing: .01em !important;
    }
    #checkout-section .co-sticky-btn {
        font-size: 10.5px !important;
        padding: 10px 12px !important;
    }
}

/* (4) TRAIT BARS — match JS-rendered structure
   JS outputs: <div class="co-trait-row"><div class="co-trait-head"><b>Name</b><span>NN%</span></div><div class="co-bar"><i style="width:NN%"></i></div></div> */
#checkout-section .co-traits {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin: 18px 0 20px !important;
}
#checkout-section .co-trait-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
#checkout-section .co-trait-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    color: var(--co-ink) !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}
#checkout-section .co-trait-head b {
    font-weight: 500 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    color: var(--co-ink) !important;
}
#checkout-section .co-trait-head span {
    font-weight: 600 !important;
    color: var(--co-gold-deep) !important;
    font-size: 13px !important;
}
#checkout-section .co-bar {
    height: 6px !important;
    background: rgba(166,121,42,.18) !important;
    border-radius: 100px !important;
    overflow: hidden !important;
    width: 100% !important;
    display: block !important;
}
#checkout-section .co-bar > i,
#checkout-section .co-bar i {
    display: block !important;
    height: 100% !important;
    background: linear-gradient(90deg, var(--co-gold), var(--co-gold-deep)) !important;
    border-radius: 100px !important;
    font-style: normal !important;
    transition: width .8s cubic-bezier(.2,.8,.2,1) !important;
}

/* CTA gradient lock — keep gold, prevent dark navy override from older rules */
#checkout-section .co-cta,
#checkout-section button.co-cta {
    background: linear-gradient(180deg, #D8A94B 0%, #B08528 100%) !important;
    color: #0B1020 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px -10px rgba(200,151,61,.6), inset 0 1px 0 rgba(255,255,255,.4) !important;
}
#checkout-section .co-cta svg {
    color: #0B1020 !important;
    stroke: #0B1020 !important;
}

/* ==========================================================
   COMPACT PRICING COLUMN (mobile-first, 2 lines + button)
   ========================================================== */
#checkout-section .co-price-block {
    text-align: center !important;
    margin-bottom: 18px !important;
    align-self: center !important;
    width: 100% !important;
}
#checkout-section .co-price-row {
    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 14px !important;
    margin-bottom: 12px !important;
    flex-wrap: nowrap !important;
}
#checkout-section .co-price-now {
    font-family: 'Fraunces', serif !important;
    font-size: 56px !important;
    font-weight: 500 !important;
    color: var(--co-ink) !important;
    line-height: 1 !important;
    letter-spacing: -.025em !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: baseline !important;
}
#checkout-section .co-price-now sup {
    font-size: 24px !important;
    color: var(--co-gold-deep) !important;
    margin-right: 2px !important;
    vertical-align: top !important;
    position: relative !important;
    top: 8px !important;
    font-weight: 400 !important;
}
#checkout-section .co-price-was {
    font-family: 'Fraunces', serif !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    color: var(--co-muted) !important;
    text-decoration: line-through !important;
    text-decoration-color: rgba(11,16,32,.4) !important;
    opacity: .65 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* Mobile — keep big number readable but tight */
@media (max-width: 640px) {
    #checkout-section .co-price-now { font-size: 48px !important; }
    #checkout-section .co-price-now sup { font-size: 20px !important; top: 6px !important; }
    #checkout-section .co-price-was { font-size: 18px !important; }
    #checkout-section .co-price-row { gap: 10px !important; margin-bottom: 10px !important; }
    #checkout-section .co-price-block { margin-bottom: 14px !important; }
}
@media (max-width: 380px) {
    #checkout-section .co-price-now { font-size: 42px !important; }
    #checkout-section .co-price-was { font-size: 16px !important; }
}

/* ==========================================================
   ULTRA-COMPACT PRICING (mobile-prioritised)
   ========================================================== */
@media (max-width: 640px) {
    /* Tight outer padding on the pricing column */
    #checkout-section .co-offer-right {
        padding: 22px 18px 24px !important;
    }

    /* Price row tighter */
    #checkout-section .co-price-block {
        margin-bottom: 14px !important;
    }
    #checkout-section .co-price-row {
        gap: 10px !important;
        margin-bottom: 8px !important;
    }
    #checkout-section .co-price-now {
        font-size: 44px !important;
        letter-spacing: -.03em !important;
    }
    #checkout-section .co-price-now sup {
        font-size: 18px !important;
        top: 4px !important;
    }
    #checkout-section .co-price-was {
        font-size: 16px !important;
    }

    /* Save pill — minimised: small inline pill, less padding */
    #checkout-section .co-save-pill {
        padding: 4px 10px !important;
        font-size: 11px !important;
        margin-bottom: 0 !important;
        line-height: 1.4 !important;
    }

    /* Tighten button against price */
    #checkout-section .co-price-cta {
        margin-bottom: 10px !important;
    }

    /* Trust + payment logos compact */
    #checkout-section .co-pay-icons {
        margin: 10px 0 8px !important;
        gap: 5px !important;
    }
    #checkout-section .co-pay-logo {
        height: 20px !important;
    }
    #checkout-section .co-pay-logo svg {
        height: 18px !important;
    }
    #checkout-section .co-secure-line {
        font-size: 11px !important;
    }
}

@media (max-width: 380px) {
    #checkout-section .co-offer-right { padding: 20px 16px 22px !important; }
    #checkout-section .co-price-now { font-size: 38px !important; }
    #checkout-section .co-price-now sup { font-size: 16px !important; top: 3px !important; }
    #checkout-section .co-price-was { font-size: 14px !important; }
    #checkout-section .co-save-pill { font-size: 10.5px !important; padding: 3px 9px !important; }
    #checkout-section .co-price-row { gap: 8px !important; margin-bottom: 6px !important; }
    #checkout-section .co-price-block { margin-bottom: 12px !important; }
    #checkout-section .co-pay-logo { height: 18px !important; }
    #checkout-section .co-pay-logo svg { height: 16px !important; }
}

/* ==========================================================
   PRICING HERO — SINGLE-ROW PREMIUM LAYOUT
   Big price ₹X (left) + struck price + save badge stacked (right)
   Then small subtext, then immediate button.
   ========================================================== */
#checkout-section .co-price-hero {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-bottom: 8px !important;
    flex-wrap: nowrap !important;
}
#checkout-section .co-price-now {
    font-family: 'Fraunces', serif !important;
    font-size: 64px !important;
    font-weight: 500 !important;
    color: var(--co-ink) !important;
    line-height: 1 !important;
    letter-spacing: -.03em !important;
    display: inline-flex !important;
    align-items: baseline !important;
    flex-shrink: 0 !important;
}
#checkout-section .co-price-now sup {
    font-size: 26px !important;
    color: var(--co-gold-deep) !important;
    margin-right: 2px !important;
    vertical-align: top !important;
    position: relative !important;
    top: 10px !important;
    font-weight: 400 !important;
}
#checkout-section .co-price-aside {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}
#checkout-section .co-price-was {
    font-family: 'Fraunces', serif !important;
    font-size: 20px !important;
    color: var(--co-muted) !important;
    text-decoration: line-through !important;
    text-decoration-color: rgba(11,16,32,.45) !important;
    opacity: .75 !important;
    line-height: 1 !important;
    font-weight: 400 !important;
}
#checkout-section .co-save-badge {
    background: linear-gradient(135deg, #1F7A4D 0%, #166440 100%) !important;
    color: #fff !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .14em !important;
    padding: 4px 10px !important;
    border-radius: 100px !important;
    text-transform: uppercase !important;
    line-height: 1.3 !important;
    display: inline-block !important;
    white-space: nowrap !important;
    box-shadow: 0 3px 8px -2px rgba(31,122,77,.4), inset 0 1px 0 rgba(255,255,255,.2) !important;
}
#checkout-section .co-price-subtext {
    text-align: center !important;
    font-size: 12px !important;
    color: var(--co-muted) !important;
    margin: 0 0 16px !important;
    font-weight: 500 !important;
    letter-spacing: .01em !important;
    align-self: center !important;
}
#checkout-section .co-price-subtext b {
    color: var(--co-green) !important;
    font-weight: 700 !important;
}

/* Hide redundant standalone-value on mobile (struck price already shows it) */
@media (max-width: 980px) {
    #checkout-section .co-includes-foot { display: none !important; }
}

/* MOBILE — even tighter pricing */
@media (max-width: 640px) {
    #checkout-section .co-offer-right { padding: 24px 18px 22px !important; }
    #checkout-section .co-price-hero {
        gap: 12px !important;
        margin-bottom: 6px !important;
    }
    #checkout-section .co-price-now { font-size: 50px !important; }
    #checkout-section .co-price-now sup { font-size: 22px !important; top: 7px !important; }
    #checkout-section .co-price-was { font-size: 17px !important; }
    #checkout-section .co-save-badge { font-size: 9px !important; padding: 3px 8px !important; letter-spacing: .12em !important; }
    #checkout-section .co-price-subtext { font-size: 11.5px !important; margin-bottom: 12px !important; }
    #checkout-section .co-price-cta { margin-bottom: 8px !important; padding: 16px 16px !important; font-size: 13px !important; }
    #checkout-section .co-pay-icons { margin: 8px 0 6px !important; gap: 5px !important; }
    #checkout-section .co-pay-logo { height: 19px !important; }
    #checkout-section .co-pay-logo svg { height: 17px !important; }
    #checkout-section .co-secure-line { font-size: 10.5px !important; }

    /* Compact offer foot — 3-column inline */
    #checkout-section .co-offer-foot {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-around !important;
        gap: 8px !important;
        padding: 14px 14px !important;
    }
    #checkout-section .co-offer-foot-item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 5px !important;
        font-size: 10px !important;
        line-height: 1.3 !important;
    }
    #checkout-section .co-offer-foot-item svg {
        width: 18px !important;
        height: 18px !important;
    }
    #checkout-section .co-offer-foot-item span {
        display: block !important;
        font-size: 10px !important;
    }
    #checkout-section .co-offer-foot-item span b {
        display: block !important;
        font-size: 11px !important;
        margin: 0 !important;
        margin-bottom: 1px !important;
    }
}

@media (max-width: 380px) {
    #checkout-section .co-price-now { font-size: 42px !important; }
    #checkout-section .co-price-now sup { font-size: 18px !important; top: 5px !important; }
    #checkout-section .co-price-was { font-size: 15px !important; }
    #checkout-section .co-save-badge { font-size: 8.5px !important; padding: 2px 7px !important; }
    #checkout-section .co-price-hero { gap: 10px !important; }
    #checkout-section .co-offer-foot-item { font-size: 9px !important; }
    #checkout-section .co-offer-foot-item span b { font-size: 10px !important; }
}

/* ============================================================================
 * v3.4.0 — CAREER MATCHER section (results page)
 * Lives between the existing #rd-careers chips and the "Full Report" CTA.
 * Type-group accent color set via .cm-section[data-group="..."].
 * ========================================================================== */
.cm-section{margin:32px auto 0;max-width:880px;background:#fff;border:1px solid #E5E1D6;border-radius:14px;padding:36px 40px 40px;position:relative;overflow:hidden;box-shadow:0 4px 16px rgba(15,27,60,.06);font-family:'Inter Tight',-apple-system,BlinkMacSystemFont,sans-serif;color:#1F2235;line-height:1.55}
.cm-section::before{content:"";position:absolute;top:0;right:0;width:240px;height:240px;background:linear-gradient(135deg,var(--cm-accent,#3E6DB5) 0%,transparent 60%);opacity:.05;pointer-events:none}
.cm-section[data-group="analyst"]{--cm-accent:#3E6DB5;--cm-accent-deep:#1E3A8A;--cm-accent-soft:#E8EFF9}
.cm-section[data-group="diplomat"]{--cm-accent:#5B7A46;--cm-accent-deep:#2F4F2F;--cm-accent-soft:#EAF1E4}
.cm-section[data-group="sentinel"]{--cm-accent:#B98536;--cm-accent-deep:#7C5A1F;--cm-accent-soft:#F8EFD9}
.cm-section[data-group="explorer"]{--cm-accent:#D65A28;--cm-accent-deep:#8C3D15;--cm-accent-soft:#FBE7DA}

.cm-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:11px;letter-spacing:2.4px;text-transform:uppercase;color:#6B6A5E;font-weight:600;border:1px solid #E5E1D6;padding:6px 13px;border-radius:999px;background:#fff;margin-bottom:16px}
.cm-eyebrow i{width:6px;height:6px;background:var(--cm-accent);border-radius:50%}
.cm-title{font-family:'Fraunces','Times New Roman',serif;font-size:38px;font-weight:400;letter-spacing:-.6px;line-height:1.05;color:#1F2235}
.cm-title em{font-style:italic;color:var(--cm-accent);font-weight:500}
.cm-num{position:absolute;top:24px;right:36px;font-family:'Fraunces',serif;font-size:96px;font-weight:300;color:var(--cm-accent);opacity:.06;line-height:1;letter-spacing:-3px;pointer-events:none}
.cm-rule{width:42px;height:2px;background:#C9A961;margin:14px 0 18px}
.cm-lead{font-size:14.5px;line-height:1.7;color:#3A3E52;max-width:620px}
.cm-lead b{color:#1F2235;font-weight:600}

/* Region toggle */
.cm-region-bar{margin-top:22px;padding:14px 16px;background:#FAF7F0;border:1px solid #EDE7D8;border-radius:8px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cm-region-bar .cm-rb-lbl{font-size:10px;letter-spacing:1.6px;text-transform:uppercase;color:#6B6A5E;font-weight:600;flex:0 0 auto}
.cm-region-bar .cm-rb-meta{font-size:11.5px;color:#6B6A5E;flex:1;text-align:right;letter-spacing:.2px}
.cm-region-bar .cm-rb-meta b{color:var(--cm-accent-deep);font-weight:600}
.cm-region-grp{display:flex;background:#fff;border:1px solid #EDE7D8;border-radius:6px;padding:3px;flex-wrap:wrap;gap:2px}
.cm-region-btn{background:transparent;border:0;color:#6B6A5E;padding:6px 11px;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer;border-radius:4px;transition:all .15s;letter-spacing:.2px;display:flex;align-items:center;gap:5px}
.cm-region-btn:hover{color:#1F2235;background:#FAF7F0}
.cm-region-btn.active{background:var(--cm-accent);color:#fff}
.cm-region-btn .flag{font-size:13px}

/* Industries */
.cm-industries{margin-top:18px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.cm-industries .lbl{font-size:10px;letter-spacing:1.6px;text-transform:uppercase;color:#6B6A5E;font-weight:600;margin-right:4px}
.cm-industries .pill{display:inline-flex;align-items:center;gap:5px;padding:5px 11px;background:var(--cm-accent-soft);border-radius:999px;font-size:12px;color:var(--cm-accent-deep);font-weight:500}
.cm-industries .pill i{width:4px;height:4px;background:var(--cm-accent);border-radius:50%}

/* Roles header */
.cm-roles-head{margin-top:30px;display:flex;justify-content:space-between;align-items:flex-end;border-bottom:1px solid #E5E1D6;padding-bottom:12px;margin-bottom:18px;flex-wrap:wrap;gap:8px}
.cm-roles-head h3{font-family:'Fraunces',serif;font-size:20px;font-weight:400;color:#1F2235;letter-spacing:-.2px}
.cm-roles-head h3 b{font-weight:500;color:var(--cm-accent);font-style:italic}
.cm-legend{font-size:10.5px;color:#6B6A5E}
.cm-legend span{display:inline-flex;align-items:center;gap:4px;margin-left:10px}
.cm-legend i{width:7px;height:7px;border-radius:2px;display:inline-block;background:var(--cm-accent)}

/* Role grid */
.cm-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.cm-role{background:#fff;border:1px solid #E5E1D6;border-radius:8px;padding:16px;position:relative;overflow:hidden;transition:all .2s}
.cm-role::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--cm-accent);opacity:.45}
.cm-role.tier-top::before{opacity:1}
.cm-role.tier-strong::before{opacity:.7}
.cm-role:hover{box-shadow:0 4px 16px rgba(15,27,60,.08);transform:translateY(-1px)}
.cm-role-top{display:flex;align-items:flex-start;gap:10px}
.cm-role-num{flex:0 0 auto;width:28px;height:28px;border-radius:6px;background:#FAF7F0;border:1px solid #EDE7D8;display:flex;align-items:center;justify-content:center;font-family:'Fraunces',serif;font-size:12px;font-weight:500;color:var(--cm-accent-deep);letter-spacing:.4px}
.cm-role-title{flex:1;min-width:0}
.cm-role-title h4{font-family:'Fraunces',serif;font-size:16px;font-weight:500;color:#1F2235;line-height:1.2;letter-spacing:-.15px;margin:0}
.cm-role-title .ind{font-size:10.5px;letter-spacing:1.3px;text-transform:uppercase;color:var(--cm-accent-deep);font-weight:600;margin-top:3px}
.cm-fit{flex:0 0 auto;text-align:right}
.cm-fit .pct{font-family:'JetBrains Mono','SF Mono',monospace;font-size:16px;font-weight:600;color:var(--cm-accent);line-height:1}
.cm-fit .tier{font-size:8.5px;letter-spacing:1.1px;text-transform:uppercase;color:#6B6A5E;font-weight:600;margin-top:2px}
.cm-fitbar{margin-top:12px;height:4px;background:#FAF7F0;border-radius:2px;overflow:hidden}
.cm-fitbar .fill{height:100%;background:linear-gradient(90deg,var(--cm-accent),var(--cm-accent-deep));border-radius:2px;width:0;transition:width 1s cubic-bezier(.4,0,.2,1)}
.cm-fitbar.animated .fill{width:var(--w,90%)}
.cm-salary{margin-top:12px;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;background:#FAF7F0;border:1px solid #EDE7D8;border-radius:6px;padding:9px 6px;position:relative}
.cm-region-tag{position:absolute;top:-8px;right:7px;background:var(--cm-accent);color:#fff;font-size:8.5px;font-weight:700;letter-spacing:.6px;padding:2px 6px;border-radius:3px;text-transform:uppercase;display:flex;align-items:center;gap:3px}
.cm-sal-cell{text-align:center;padding:0 3px;border-right:1px solid #EDE7D8}
.cm-sal-cell:last-child{border-right:0}
.cm-sal-cell .stage{font-size:8.5px;letter-spacing:1.1px;text-transform:uppercase;color:#6B6A5E;font-weight:600}
.cm-sal-cell .yrs{font-size:8.5px;color:#6B6A5E;font-weight:500}
.cm-sal-cell .amt{font-family:'JetBrains Mono','SF Mono',monospace;font-size:11.5px;font-weight:600;color:#1F2235;margin-top:3px;letter-spacing:-.3px;line-height:1.15;min-height:28px;display:flex;align-items:center;justify-content:center}
.cm-why{margin-top:11px;padding-top:10px;border-top:1px dashed #E5E1D6;font-size:11.5px;color:#3A3E52;line-height:1.55}
.cm-why b{color:var(--cm-accent-deep);font-weight:600}

/* Avoid + Insight callouts */
.cm-avoid{margin-top:30px;background:#FFF8F2;border:1px solid #F0DDC8;border-left:4px solid #D65A28;border-radius:6px;padding:18px 22px}
.cm-avoid h4{font-family:'Fraunces',serif;font-size:15px;font-weight:500;color:#8C3D15;margin:0 0 6px}
.cm-avoid h4 .x{display:inline-flex;width:16px;height:16px;background:#D65A28;color:#fff;border-radius:50%;align-items:center;justify-content:center;font-size:10px;font-weight:700;margin-right:7px;font-family:inherit;vertical-align:1px}
.cm-avoid p{margin:0;font-size:12.5px;line-height:1.7;color:#3A3E52}
.cm-insight{margin-top:18px;background:#0F1B3C;background-image:linear-gradient(135deg,#13204A 0%,#0F1B3C 100%);color:#fff;border-radius:6px;padding:22px 24px;display:flex;gap:18px;align-items:flex-start}
.cm-insight .badge{flex:0 0 auto;font-size:9.5px;letter-spacing:1.7px;text-transform:uppercase;color:#C9A961;font-weight:600;border:1px solid rgba(201,169,97,.4);padding:5px 10px;border-radius:4px;background:rgba(201,169,97,.06)}
.cm-insight p{flex:1;margin:0;font-size:13px;line-height:1.7;color:#D9DCE6}
.cm-insight p b{color:#fff;font-weight:600}

/* Mobile */
@media (max-width:760px){
  .cm-section{padding:26px 20px 30px;margin:20px auto 0;border-radius:10px}
  .cm-num{font-size:60px;top:14px;right:18px}
  .cm-title{font-size:26px}
  .cm-grid{grid-template-columns:1fr}
  .cm-region-bar{flex-direction:column;align-items:stretch}
  .cm-region-grp{justify-content:space-between;width:100%}
  .cm-region-btn{flex:1;justify-content:center;padding:7px 4px;font-size:11px;gap:4px}
  .cm-region-btn .flag{font-size:12px}
  .cm-region-bar .cm-rb-meta{text-align:left}
  .cm-roles-head{flex-direction:column;align-items:flex-start;gap:6px}
  .cm-legend span{margin-left:0;margin-right:10px}
  .cm-insight{flex-direction:column;gap:10px;padding:18px}
  .cm-sal-cell .amt{font-size:10.5px;min-height:24px}
}
