/* ==========================================================================
   Red Seal Ace - Modern PocketPrep & Apple/Tesla Inspired Design System
   ========================================================================== */

:root {
    /* Brand & Theme Colors */
    --primary: #0f172a;
    /* Deep PocketPrep Slate/Navy */
    --primary-light: #1e293b;
    --primary-accent: #2563eb;
    /* Vibrant Royal Blue */
    --accent-gold: #f59e0b;
    /* PocketPrep Gold */
    --accent-cyan: #06b6d4;

    /* Semantic States (PocketPrep Inspired) */
    --correct-color: #10b981;
    /* Emerald Green */
    --correct-bg: #f0fdf4;
    --correct-border: #86efac;
    --correct-glow: rgba(16, 185, 129, 0.2);

    --wrong-color: #ef4444;
    /* Rose Red */
    --wrong-bg: #fef2f2;
    --wrong-border: #fca5a5;
    --wrong-glow: rgba(239, 68, 68, 0.2);

    /* Neutral Colors & Surfaces */
    --bg-page: #f4f7fb;
    /* Ultra-clean Slate Tint */
    --card-bg: #ffffff;
    --card-bg-glass: rgba(255, 255, 255, 0.88);
    --border-color: #e2e8f0;
    --border-light: #edf2f7;

    /* Text Colors */
    --text-primary: #0f172a;
    /* Rich Slate 900 */
    --text-secondary: #475569;
    /* Slate 600 */
    --text-muted: #94a3b8;
    /* Slate 400 */

    /* Elevation & Shadows */
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.06), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
    --shadow-card: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
    --shadow-btn: 0 6px 18px -3px rgba(15, 23, 42, 0.25);

    /* Radii */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Base & Reset
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-page);
    background-image:
        radial-gradient(at 10% 10%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
        radial-gradient(at 90% 15%, rgba(245, 158, 11, 0.06) 0px, transparent 50%),
        radial-gradient(at 50% 95%, rgba(16, 185, 129, 0.04) 0px, transparent 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 28px 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   App Container & Challenge Header (3-Line Mobile Optimized Layout)
   -------------------------------------------------------------------------- */
.app-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease-out;
}

/* Eye-Catching Dark Crimson Iridescent Header Banner */
.challenge-header {
    margin-bottom: 20px;
    padding: 22px 20px;
    background: linear-gradient(140deg, #09090b 0%, #1c0512 25%, #450a1b 60%, #7f1d1d 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 32px -6px rgba(127, 29, 29, 0.45), 0 4px 12px rgba(9, 9, 11, 0.25);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.challenge-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.challenge-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.challenge-pretitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 2px;
}

/* Highlighted "Are you ready" Framed Badge with Normal Case */
.ready-highlight {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
    background: rgba(244, 63, 94, 0.22);
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid rgba(254, 205, 211, 0.3);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.2);
    text-transform: none;
}

.ready-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fecdd3;
    letter-spacing: 0.02em;
    text-transform: none;
}

.challenge-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 3px 0 6px 0;
}

/* --------------------------------------------------------------------------
   Glitch, Subliminal Flash & VHS Interference CTA Container
   -------------------------------------------------------------------------- */
.challenge-cta-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
}

/* Primary Glowing Call-to-Action with Lightning Pulse */
.challenge-cta.cta-primary {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.16rem;
    font-weight: 900;
    color: #fde047;
    /* Radiant Gold */
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
    width: 100%;
    text-align: center;
    text-shadow:
        0 0 8px rgba(253, 224, 71, 0.7),
        0 0 20px rgba(245, 158, 11, 0.5),
        0 0 32px rgba(239, 68, 68, 0.3);
    animation: ctaPrimaryGlitch 3.4s ease-in-out infinite;
    transform-origin: center;
    display: inline-block;
}

/* Subliminal Secret Glitch Text ("THINK YOU CAN PASS?") */
.challenge-cta.cta-glitch {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.22rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow:
        -3px 0 #00ffff,
        3px 0 #ff0055,
        0 0 16px rgba(255, 255, 255, 0.95);
    opacity: 0;
    pointer-events: none;
    animation: ctaSecretGlitch 3.4s steps(1, end) infinite;
    transform-origin: center;
}

/* VHS CRT Scanline Static Overlay */
.vhs-scanlines {
    position: absolute;
    inset: -6px -12px;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.45) 0px,
            rgba(0, 0, 0, 0.45) 1px,
            rgba(255, 255, 255, 0.08) 1px,
            rgba(255, 255, 255, 0.08) 2px,
            transparent 2px,
            transparent 4px);
    opacity: 0;
    pointer-events: none;
    border-radius: 8px;
    animation: vhsStaticInterference 3.4s steps(1, end) infinite;
}

/* 1. Keyframes for Main Text: Steady -> Micro-pulse -> Disappear in Glitch -> Big Punch Return */
@keyframes ctaPrimaryGlitch {

    0%,
    87.5%,
    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow:
            0 0 8px rgba(253, 224, 71, 0.7),
            0 0 20px rgba(245, 158, 11, 0.5),
            0 0 32px rgba(239, 68, 68, 0.3);
        filter: brightness(1);
    }

    88.5% {
        opacity: 1;
        transform: scale(1.025);
        text-shadow:
            0 0 12px rgba(253, 224, 71, 0.9),
            0 0 24px rgba(245, 158, 11, 0.7),
            0 0 38px rgba(239, 68, 68, 0.45);
        filter: brightness(1.15);
    }

    89.8% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }

    90.4% {
        opacity: 0;
        transform: skewX(-10deg) scale(0.95);
        filter: blur(1.5px);
    }

    91.7% {
        opacity: 0;
        transform: skewX(10deg) scale(0.95);
    }

    92.0% {
        opacity: 1;
        transform: scale(1.09);
        text-shadow:
            0 0 20px rgba(253, 224, 71, 1),
            0 0 40px rgba(245, 158, 11, 0.95),
            0 0 60px rgba(239, 68, 68, 0.75),
            0 0 85px rgba(245, 158, 11, 0.5);
        filter: brightness(1.4);
    }

    93.6% {
        opacity: 1;
        transform: scale(1);
        text-shadow:
            0 0 8px rgba(253, 224, 71, 0.7),
            0 0 20px rgba(245, 158, 11, 0.5),
            0 0 32px rgba(239, 68, 68, 0.3);
        filter: brightness(1);
    }
}

/* 2. Keyframes for Subliminal Secret Glitch Text: Flash for ~0.08s */
@keyframes ctaSecretGlitch {

    0%,
    90.3%,
    100% {
        opacity: 0;
        transform: scale(0.92);
    }

    90.5% {
        opacity: 1;
        transform: skewX(-8deg) scale(1.05);
        text-shadow: -4px 0 #00ffff, 4px 0 #ff0055, 0 0 20px rgba(255, 255, 255, 1);
    }

    91.1% {
        opacity: 1;
        transform: skewX(6deg) scale(1.03);
        text-shadow: 4px 0 #00ffff, -4px 0 #ff0055, 0 0 15px rgba(255, 0, 85, 0.9);
    }

    91.7% {
        opacity: 0;
        transform: scale(1);
    }
}

/* 3. Keyframes for VHS Static Interference */
@keyframes vhsStaticInterference {

    0%,
    90.3%,
    100% {
        opacity: 0;
    }

    90.5% {
        opacity: 0.85;
        background-color: rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
    }

    91.1% {
        opacity: 0.7;
        background-color: rgba(225, 29, 72, 0.12);
        transform: translateY(2px);
    }

    91.7% {
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   Main Quiz Card (PocketPrep & Tesla Minimalist Style)
   -------------------------------------------------------------------------- */
.card {
    background: var(--card-bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px 28px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   Dual Progress Bars (Top of Card)
   -------------------------------------------------------------------------- */
.dual-progress-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 28px 0;
    background: transparent;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

/* Top Bar: 5-Question Block Progress (Blue -> Cyan) */
.progress-fill.questions-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
    border-radius: 0 4px 4px 0;
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Bottom Bar: XP / Score / Readiness (Dynamic Red -> Yellow -> Green) */
.progress-fill.xp-fill {
    height: 100%;
    width: 0%;
    background: #ef4444;
    border-radius: 0 4px 4px 0;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.5s ease;
}

.threshold-tick {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.4);
    z-index: 10;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
    font-weight: 600;
}

.progress-labels.top-labels {
    margin-bottom: 2px;
}

.progress-labels.bottom-labels {
    margin-top: 2px;
}

.progress-labels-hidden {
    display: none !important;
}

/* Skill Badges */
.skill-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 1px 0;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.skill-badge {
    font-weight: 700;
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.badge-novice {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 10px !important;
    padding: 3px 8px !important;
    display: inline-block;
    background: rgba(148, 163, 184, 0.15) !important;
    color: #64748B !important;
    border: none !important;
}

.badge-apprentice {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 10px !important;
    padding: 3px 8px !important;
    display: inline-block;
    background: rgba(16, 185, 129, 0.12) !important;
    color: #059669 !important;
    border: none !important;
}

.badge-technician {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 10px !important;
    padding: 3px 8px !important;
    display: inline-block;
    background: rgba(6, 182, 212, 0.14) !important;
    color: #0891b2 !important;
    border: none !important;
}

.badge-journeyman {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 10px !important;
    padding: 3px 8px !important;
    display: inline-block;
    background: rgba(2, 132, 199, 0.12) !important;
    color: #0284C7 !important;
    border: none !important;
}

.badge-foreman {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 10px !important;
    padding: 3px 8px !important;
    display: inline-block;
    background: rgba(99, 102, 241, 0.14) !important;
    color: #6366f1 !important;
    border: none !important;
}

.badge-master {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 10px !important;
    padding: 3px 8px !important;
    display: inline-block;
    background: rgba(139, 92, 246, 0.12) !important;
    color: #7C3AED !important;
    border: none !important;
}

.badge-ace {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 10px !important;
    padding: 3px 8px !important;
    display: inline-block;
    background: rgba(245, 158, 11, 0.15) !important;
    color: #D97706 !important;
    border: none !important;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.3) !important;
}

/* Centered Question Text */
#question-text {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    margin-bottom: 26px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Option Buttons Grid (Refined Top-Anchor Keycap & Structured Divider)
   -------------------------------------------------------------------------- */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 24px;
}

.option-btn {
    position: relative;
    display: flex;
    align-items: flex-start;
    /* Locks keycap to the top row consistently */
    gap: 16px;
    width: 100%;
    padding: 14px 18px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Distinct Keycap Letter Badge with Vertical Separator */
.opt-letter {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    font-size: 1.02rem;
    font-weight: 800;
    background: #f1f5f9;
    color: var(--text-secondary);
    border-radius: 9px;
    transition: all var(--transition-fast);
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
}

/* Subtle Vertical Divider between Keycap column and Text column */
.opt-letter::after {
    content: '';
    position: absolute;
    right: -9px;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 1px;
    background: #e2e8f0;
    transition: background var(--transition-fast);
}

/* Option Content Typography with Typographic Balance & Baseline Alignment */
.opt-text {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.45;
    color: #1e293b;
    letter-spacing: -0.01em;
    flex: 1;
    text-wrap: pretty;
    /* Prevents dangling single words like 'it' */
    padding-top: 6px;
    /* Aligns first line baseline perfectly with 38px keycap */
    transition: color var(--transition-fast);
}

.option-btn:hover:not(:disabled) {
    border-color: #94a3b8;
    background-color: #f8fafc;
    transform: translateY(-1.5px);
    box-shadow: var(--shadow-md);
}

.option-btn:hover:not(:disabled) .opt-text {
    color: #0f172a;
}

.option-btn:hover:not(:disabled) .opt-letter {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: var(--text-primary);
}

.option-btn:hover:not(:disabled) .opt-letter::after {
    background: #cbd5e1;
}

.option-btn:active:not(:disabled) {
    transform: scale(0.99);
}

/* Correct Answer State (PocketPrep Green) */
.option-btn.correct {
    border-color: var(--correct-color) !important;
    background: linear-gradient(135deg, #ffffff 0%, var(--correct-bg) 100%) !important;
    box-shadow: 0 0 0 3px var(--correct-glow), var(--shadow-sm) !important;
    animation: correctPulse 0.35s ease-out;
}

.option-btn.correct .opt-text {
    color: #065f46 !important;
    font-weight: 600;
}

.option-btn.correct .opt-letter {
    background: var(--correct-color) !important;
    color: #ffffff !important;
    border-color: var(--correct-color) !important;
}

.option-btn.correct .opt-letter::after {
    background: var(--correct-border) !important;
}

.option-btn.correct::after {
    content: '✓';
    margin-left: auto;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--correct-color);
    padding-left: 8px;
    padding-top: 5px;
    align-self: flex-start;
    font-family: 'Outfit', sans-serif;
}

/* Wrong Answer State (PocketPrep Red) */
.option-btn.wrong {
    border-color: var(--wrong-color) !important;
    background: linear-gradient(135deg, #ffffff 0%, var(--wrong-bg) 100%) !important;
    box-shadow: 0 0 0 3px var(--wrong-glow), var(--shadow-sm) !important;
    animation: shakeSoft 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    cursor: not-allowed;
}

.option-btn.wrong .opt-text {
    color: #991b1b !important;
    font-weight: 600;
}

.option-btn.wrong .opt-letter {
    background: var(--wrong-color) !important;
    color: #ffffff !important;
    border-color: var(--wrong-color) !important;
}

.option-btn.wrong .opt-letter::after {
    background: var(--wrong-border) !important;
}

.option-btn.wrong::after {
    content: '✕';
    margin-left: auto;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--wrong-color);
    padding-left: 8px;
    padding-top: 5px;
    align-self: flex-start;
    font-family: 'Outfit', sans-serif;
}

.option-btn:disabled {
    cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Explanation Box (PocketPrep Callout)
   -------------------------------------------------------------------------- */
.explanation {
    margin-top: 20px;
    margin-bottom: 24px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-accent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.explanation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.explanation h3 {
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
    text-align: left;
}

.explanation p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-primary);
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   Controls & Action Button (Tesla/PocketPrep Style Button)
   -------------------------------------------------------------------------- */
.controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.primary-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.35);
}

.primary-btn:active {
    transform: scale(0.98);
}

/* Guest Save Progress Button: Identical dimensions to Next Question, styled with green border matching correct answer */
.guest-save-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ffffff 0%, var(--correct-bg) 100%);
    color: #065f46;
    border: 2px solid var(--correct-color);
    border-radius: var(--radius-md);
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 0 0 2px var(--correct-glow), var(--shadow-sm);
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.guest-save-btn:hover {
    background: linear-gradient(135deg, var(--correct-bg) 0%, #dcfce7 100%);
    border-color: #059669;
    color: #064e3b;
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px var(--correct-glow), 0 8px 20px -2px rgba(16, 185, 129, 0.25);
}

.guest-save-btn:active {
    transform: scale(0.98);
}

/* --------------------------------------------------------------------------
   Utility Classes & Keyframes
   -------------------------------------------------------------------------- */
.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes correctPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.015);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shakeSoft {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-3px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(3px, 0, 0);
    }
}

/* --------------------------------------------------------------------------
   Post-Question 5 Overlay (Glassmorphic Trigger)
   -------------------------------------------------------------------------- */
.quiz-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 50;
    border-radius: var(--radius-xl);
    animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.overlay-badge {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 18px;
    border-radius: var(--radius-full);
}

.overlay-glass-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.overlay-glass-card p {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.pulse-action {
    animation: ctaPrimaryPulse 2.5s infinite;
}

@keyframes ctaPrimaryPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: var(--shadow-btn);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    }
}

/* --------------------------------------------------------------------------
   Assessment & Results Modal
   -------------------------------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(226, 232, 240, 0.8);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 32px 28px;
    animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.close-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.close-modal-btn:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

/* Radial / Circular Score Gauge */
.modal-header-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.score-circle-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
}

.circular-chart {
    display: block;
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3;
}

.circle-progress {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 1s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.5s ease;
}

.score-number-display {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.score-percent {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.score-sub-badge {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 6px;
}

/* Performance Tier Badge Variants */
.tier-solid {
    background: #dcfce7;
    color: #15803d;
}

.tier-boundary {
    background: #fef3c7;
    color: #b45309;
}

.tier-needs-improvement {
    background: #fee2e2;
    color: #b91c1c;
}

.modal-body-content {
    text-align: center;
}

.modal-body-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.assessment-feedback-text {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Pacing Breakdown Component */
.pacing-breakdown-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    text-align: left;
}

.pacing-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pacing-item-row .q-num {
    font-weight: 700;
    color: var(--text-primary);
}

.pacing-item-row .q-time {
    font-family: 'Outfit', monospace;
    font-weight: 600;
}

.pacing-item-row .q-score {
    font-weight: 700;
}

.q-score.positive {
    color: #16a34a;
}

.q-score.zero {
    color: #dc2626;
}

/* Soft-Gate Card */
.soft-gate-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    border: 1.5px solid #bbf7d0;
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    text-align: center;
}

.soft-gate-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.soft-gate-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 6px;
}

.soft-gate-card p {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.soft-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.soft-gate-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.soft-gate-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.text-link-btn {
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 12px;
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.text-link-btn:hover {
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Responsive Mobile Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .rpg-skills {
        display: flex;
        flex-direction: column;
        gap: 2px;
        background: transparent;
        border: none;
        padding: 0;
        margin: 0 auto;
        width: 100%;
        max-width: 210px;
        position: static;
        transform: none;
        z-index: auto;
    }

    .rpg-skill-name {
        flex: 1;
        text-align: right;
        padding-right: 4px;
        font-size: 11px;
        font-weight: 600;
        color: #475569;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .rpg-skill-badge-wrapper {
        flex: 1;
        text-align: left;
        padding-left: 4px;
        display: flex;
        justify-content: flex-start;
    }

    .rpg-skill-badge {
        font-size: 7px !important;
        padding: 1px 4px !important;
    }

    .rpg-header {
        padding: 8px 10px;
    }

    .rpg-prv-slot {
        width: 80px;
        height: 80px;
    }

    .challenge-header {
        padding: 18px 14px;
        margin-bottom: 16px;
    }

    .ready-highlight {
        font-size: 0.95rem;
        padding: 2px 8px;
    }

    .ready-sub {
        font-size: 0.88rem;
    }

    .challenge-title {
        font-size: 1.32rem;
        margin: 2px 0 5px 0;
    }

    .challenge-cta.cta-primary {
        font-size: 1.02rem;
        letter-spacing: 0.04em;
    }

    .challenge-cta.cta-glitch {
        font-size: 1.05rem;
        letter-spacing: 0.08em;
    }

    .card {
        padding: 22px 16px;
        border-radius: var(--radius-lg);
    }

    .dual-progress-container {
        margin: -22px -16px 18px -16px;
    }

    #question-text {
        font-size: 1.1rem;
        margin-bottom: 18px;
        text-align: center;
    }

    .options-grid {
        gap: 12px;
    }

    .option-btn {
        padding: 12px 14px;
        gap: 14px;
    }

    .opt-letter {
        min-width: 36px;
        height: 36px;
        font-size: 0.94rem;
        border-radius: 8px;
        margin-top: 1px;
    }

    .opt-letter::after {
        right: -8px;
        height: 22px;
    }

    .opt-text {
        font-size: 0.96rem;
        line-height: 1.4;
        padding-top: 6px;
    }
}

/* --------------------------------------------------------------------------
   Auth Modal & Toast Notification
   -------------------------------------------------------------------------- */
.auth-modal-card {
    max-width: 400px;
    padding: 32px 24px;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.auth-social-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
}

.google-btn {
    background: #ffffff;
    color: #3c4043;
}

.google-btn:hover {
    background: #f8f9fa;
    border-color: #dadce0;
}

.apple-btn {
    background: #000000;
    color: #ffffff;
    border: none;
}

.apple-btn:hover {
    background: #1a1a1a;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}

.auth-divider span {
    padding: 0 12px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form .input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-form .input-group input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.auth-terms-group {
    display: flex;
    flex-direction: column;
    margin: 6px 0 8px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.auth-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.84rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.45;
    user-select: none;
}

.auth-terms-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.auth-terms-label input[type="checkbox"]:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.auth-terms-label input[type="checkbox"]:checked {
    background-color: #0284c7;
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.auth-terms-label input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
}

.auth-terms-link {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.auth-terms-link:hover {
    color: #7dd3fc;
}

/* Pulsing & blinking animation for registration consent requirement */
.auth-terms-group.needs-consent {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.22);
    animation: authShake 0.4s ease-in-out;
}

.auth-terms-group.needs-consent .auth-terms-label input[type="checkbox"] {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.4);
    animation: consentPulse 1.25s infinite ease-in-out;
}

.auth-terms-group.needs-consent .auth-terms-text {
    color: #fef3c7;
}

.auth-terms-group.has-error {
    animation: authShake 0.4s ease-in-out;
}

.auth-terms-group.has-error .auth-terms-label input[type="checkbox"] {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@keyframes consentPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35), 0 0 10px rgba(245, 158, 11, 0.6);
        border-color: #f59e0b;
    }
    50% {
        transform: scale(1.18);
        box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.65), 0 0 22px rgba(245, 158, 11, 0.95);
        border-color: #fbbf24;
    }
}

.auth-terms-hint {
    margin-top: 6px;
    margin-left: 28px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.35;
    animation: fadeIn 0.25s ease;
}

.auth-terms-hint.hidden {
    display: none !important;
}

@keyframes authShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.auth-submit-btn {
    margin-top: 8px;
    width: 100%;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.hidden {
    display: none;
}

.hidden {
    display: none !important;
}



/* =================================================================
   PRV Companion Layer Styles
   ================================================================= */
#prv-companion-layer {
    position: fixed;
    z-index: 9999;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    /* Let clicks pass through container */
}

#prv-companion-layer * {
    pointer-events: auto;
    /* Re-enable for children */
}

/* Fullscreen Mode (Interaction) */
#prv-companion-layer.prv-fullscreen-mode {
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    /* Dark overlay */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#prv-companion-layer.prv-fullscreen-mode #prv-svg-container {
    width: 360px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    transform: translateY(0) scale(1);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Widget Mode (Bottom Right) */
#prv-companion-layer.prv-widget-mode {
    bottom: 70px;
    right: calc(max(20px, 50vw - 320px + 16px));
    width: 120px;
    height: 120px;
    background: transparent;
    backdrop-filter: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    touch-action: none;
    cursor: grab;
    z-index: 1000;
}

#prv-companion-layer.prv-widget-mode:active {
    cursor: grabbing;
}

#prv-companion-layer.prv-widget-mode #prv-svg-container {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
    transform-origin: bottom right;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    animation: float-sway 6s ease-in-out infinite;
}

@keyframes float-sway {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-4px) rotate(-2deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(-4px) rotate(2deg);
    }
}

/* --- System Note HUD --- */
#prv-system-note {
    position: absolute;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-left: 4px solid #38bdf8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 14px 20px;
    color: #e0f2fe;
    font-family: 'Outfit', monospace;
    font-size: 14px;
    line-height: 1.5;
    max-width: 400px;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.system-note-icon {
    font-size: 18px;
    margin-top: 2px;
    animation: rotate-gear 4s linear infinite;
}

@keyframes rotate-gear {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.prv-fullscreen-mode #prv-system-note {
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
}

.prv-widget-mode #prv-system-note {
    display: none !important;
    /* Hide system notes in widget mode */
}

/* --- PRV Speech Bubble --- */
#prv-speech-bubble {
    position: absolute;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 14px 18px;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    max-width: 250px;
    z-index: 10;
    transition: opacity 0.2s ease;
}

#prv-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
    display: block;
    width: 0;
}

.prv-fullscreen-mode #prv-speech-bubble {
    top: 30%;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
}

.prv-fullscreen-mode #prv-speech-bubble.anim-speech-jiggle {
    animation: speech-jiggle 0.2s ease-in-out infinite alternate !important;
}

.prv-widget-mode #prv-speech-bubble {
    bottom: 130px;
    right: 0px;
    left: auto;
    top: auto;
    transform: none;
    pointer-events: none;
}

.prv-widget-mode #prv-speech-bubble::after {
    left: auto;
    right: 45px;
    transform: none;
}

.prv-widget-mode #prv-speech-bubble.anim-speech-jiggle {
    animation: widget-speech-jiggle 0.2s ease-in-out infinite alternate !important;
}

@keyframes widget-speech-jiggle {
    0% {
        transform: scale(1) rotate(-1.5deg);
    }
    100% {
        transform: scale(1.04) rotate(1.5deg);
    }
}

@keyframes speech-jiggle {
    0% {
        transform: translateX(-50%) translateY(-100%) scale(1) rotate(-1deg);
    }

    100% {
        transform: translateX(-50%) translateY(-100%) scale(1.03) rotate(1deg);
    }
}

/* ================= PRV GLOBAL SPEECH BUBBLE (FLOATING HINT) ================= */
#prv-dialog-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.1) !important;
    /* Ultra-subtle overlay: Questions & choices remain 100% visible and readable! */
    backdrop-filter: none !important;
    /* NO BLUR so quiz text is crystal clear! */
    -webkit-backdrop-filter: none !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 135px !important;
    /* Positioned directly under RPG header near PRV! */
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
    opacity: 1;
    pointer-events: auto !important;
    cursor: pointer;
}

#prv-dialog-overlay.hidden {
    display: none !important;
    pointer-events: none !important;
}

.prv-modal-bubble {
    background: #0f172a !important;
    border: 2px solid #38bdf8 !important;
    border-radius: 14px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 20px rgba(56, 189, 248, 0.25) !important;
    width: 100% !important;
    max-width: 440px !important;
    padding: 24px 28px 22px 24px !important;
    color: #f8fafc !important;
    position: relative !important;
    animation: prvBubbleSlideIn 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: default !important;
    user-select: text !important;
    z-index: 100000 !important;
}

/* Comic tail pointing up to PRV slot in the header */
.prv-modal-bubble::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 36px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #38bdf8;
}

.prv-modal-bubble::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 37px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #0f172a;
}

@keyframes prvBubbleSlideIn {
    0% {
        transform: translateY(-10px) scale(0.95);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.prv-bubble-close-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s;
    z-index: 10;
}

.prv-bubble-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.prv-modal-bubble-body {
    margin: 0 !important;
    padding-right: 14px !important;
}

#prv-modal-speech-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    line-height: 1.55;
    color: #f1f5f9;
    font-weight: 500;
    margin: 0;
}

/* Staging Area for Drag and Drop */
#prv-parts-staging {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.draggable-part {
    background: none !important;
    border: none !important;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: grab;
    user-select: none;
    transition: transform 0.25s ease;
    font-weight: 600;
    box-shadow: none !important;
}

.draggable-part:hover {
    background: none !important;
    transform: translateY(-2px);
}

.draggable-part:active {
    cursor: grabbing;
}

/* ================= CSS ANIMATIONS ================= */
#prv-eye-left,
#prv-eye-right,
#prv-nose,
#prv-mouth {
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Повільний дзен-рух зрачків */
.pupil {
    transform-box: fill-box;
    transform-origin: center;
    animation: pupil-zen-look 9s ease-in-out infinite;
}

@keyframes pupil-zen-look {

    0%,
    100% {
        transform: translateX(0);
    }

    25%,
    45% {
        transform: translateX(-3px);
    }

    50% {
        transform: translateX(0);
    }

    70%,
    90% {
        transform: translateX(3px);
    }
}

/* Моргання / Підмигування */
.anim-blink {
    animation: eye-blink 0.22s ease-in-out;
}

@keyframes eye-blink {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.1);
    }
}

/* Плавне та повільне Дзен-мовлення */
.anim-talking {
    animation: mouth-zen-speak 0.55s ease-in-out infinite;
}

@keyframes mouth-zen-speak {

    0%,
    100% {
        transform: scaleY(1) translateY(0);
    }

    50% {
        transform: scaleY(0.85) translateY(2px);
    }
}

/* Рух носа під час роздумів */
.anim-nose-think {
    animation: nose-bounce 0.4s ease-in-out infinite;
}

@keyframes nose-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}


/* PRV Layer Hidden and Scoped Mode Guarantees */
#prv-companion-layer.hidden,
body > #prv-companion-layer.hidden,
.rpg-prv-slot #prv-companion-layer.hidden {
    display: none !important;
}

body > #prv-companion-layer {
    position: fixed !important;
}



.prv-skip-btn {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 185, 129, 0.9);
    color: white;
    border: 1px solid #059669;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background 0.2s;
    z-index: 100;
}

.prv-skip-btn:hover {
    background: #059669;
}

/* --- RPG Header Styles --- */
.rpg-header {
    position: relative;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    overflow: visible;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    min-height: 100px;
    max-height: 120px;
}

/* --- PRV Header Comic Speech Cloud --- */
.prv-header-bubble {
    position: absolute;
    top: calc(100% + 8px);
    left: 10px;
    width: calc(100% - 20px);
    max-width: 360px;
    background: #ffffff;
    border: 2px solid #38bdf8;
    border-radius: 18px;
    padding: 12px 16px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.22), 0 0 16px rgba(56, 189, 248, 0.25);
    z-index: 100;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    animation: prvBubblePop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.prv-header-bubble.hidden {
    display: none !important;
}

/* Tail pointing up to PRV */
.prv-header-bubble::before {
    content: '';
    position: absolute;
    top: -11px;
    left: 36px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 11px solid #38bdf8;
}

.prv-header-bubble::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 37px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #ffffff;
}

@keyframes prvBubblePop {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.prv-header-bubble-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.prv-header-bubble-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prv-header-bubble-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s ease;
}

.prv-header-bubble-close:hover {
    color: #0f172a;
}

.prv-header-bubble-text {
    font-size: 13.5px;
    line-height: 1.45;
    color: #334155;
    margin: 0;
    font-weight: 500;
}

.prv-header-bubble-text strong {
    color: #0f172a;
    font-weight: 700;
}

.rpg-prv-slot {
    width: 90px;
    height: 90px;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto 0;
}

.rpg-prv-slot #prv-companion-layer.prv-header-mode {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

.rpg-prv-slot #prv-companion-layer.prv-header-mode #prv-svg-container {
    width: 75px !important;
    height: 75px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: auto !important;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
    animation: float-sway 6s ease-in-out infinite;
}

.rpg-prv-slot #prv-companion-layer.prv-header-mode svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    margin: auto !important;
}

.rpg-prv-slot #prv-companion-layer.prv-header-mode #prv-speech-bubble,
.rpg-prv-slot #prv-companion-layer.prv-header-mode #prv-system-note,
.rpg-prv-slot #prv-companion-layer.prv-header-mode #prv-skip-btn {
    display: none !important;
}

.rpg-skills {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: transparent;
    border: none;
    padding: 2px 4px;
    margin: 0 auto;
    width: 100%;
    max-width: 210px;
    position: static;
    transform: none;
    z-index: auto;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.rpg-skills:hover {
    filter: brightness(1.15);
    background: rgba(255, 255, 255, 0.04);
}

.skill-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 1px 0;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}

.skill-row:last-child {
    border-bottom: none;
}

.rpg-skill-name {
    flex: 1;
    text-align: right;
    padding-right: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rpg-skill-badge-wrapper {
    flex: 1;
    text-align: left;
    padding-left: 4px;
    display: flex;
    justify-content: flex-start;
}

.rpg-redemption-banner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #f59e0b;
    border-radius: 10px;
    padding: 5px 10px;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.22);
    user-select: none;
    pointer-events: none;
    animation: redemption-header-pulse 3s ease-in-out infinite;
    min-width: 90px;
    max-width: 110px;
}

@keyframes redemption-header-pulse {
    0%, 100% {
        box-shadow: 0 3px 12px rgba(245, 158, 11, 0.22);
        border-color: #f59e0b;
    }
    50% {
        box-shadow: 0 4px 18px rgba(245, 158, 11, 0.38);
        border-color: #d97706;
    }
}

.rpg-redemption-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 900;
    color: #b45309;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}

.rpg-redemption-sub {
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 700;
    color: #92400e;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-top: 2px;
    opacity: 0.85;
}

.rpg-user-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-shrink: 0;
    min-width: 68px;
    padding-top: 2px;
}

.header-xp-bounty-btn {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 10px;
    padding: 3px 6px;
    min-height: 24px;
    width: 64px;
    max-width: 64px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #111827;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
    line-height: 1;
    overflow: hidden;
}

.header-xp-bounty-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.5);
}

.header-xp-bounty-btn:active {
    transform: scale(0.96);
}

.rpg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    user-select: none;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rpg-avatar:hover {
    transform: scale(1.06);
}

.rpg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}


@media (max-width: 480px) {
    .rpg-skills {
        display: flex;
        flex-direction: column;
        gap: 2px;
        background: transparent;
        border: none;
        padding: 0;
        margin: 0 auto;
        width: 100%;
        max-width: 210px;
        position: static;
        transform: none;
        z-index: auto;
    }

    .rpg-skill-name {
        flex: 1;
        text-align: right;
        padding-right: 4px;
        font-size: 11px;
        font-weight: 600;
        color: #475569;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .rpg-skill-badge-wrapper {
        flex: 1;
        text-align: left;
        padding-left: 4px;
        display: flex;
        justify-content: flex-start;
    }

    .rpg-skill-badge {
        font-size: 7px !important;
        padding: 1px 4px !important;
    }

    .header-xp-bounty-btn {
        font-size: 7.5px;
        padding: 2px 4px;
        min-height: 18px;
        width: 54px;
        max-width: 54px;
        border-radius: 7px;
        letter-spacing: 0.02em;
    }

    .rpg-user-section {
        min-width: 56px;
        gap: 4px;
        padding-top: 1px;
    }

    .rpg-header {
        padding: 8px 10px;
    }

    .rpg-prv-slot {
        width: 80px;
        height: 80px;
    }

    .rpg-redemption-banner {
        padding: 4px 8px;
        border-radius: 8px;
        min-width: 80px;
        max-width: 100px;
    }

    .rpg-redemption-title {
        font-size: 9.5px;
    }

    .rpg-redemption-sub {
        font-size: 7.5px;
    }
}

.draggable-part {
    transition: transform 0.25s ease;
}

.draggable-part.is-dragging {
    transition: none;
    /* No transition while actively dragging to prevent lag */
}

.draggable-part .part-label {
    opacity: 1;
    transition: opacity 0.15s ease;
    font-weight: 600;
    color: #475569;
    font-size: 13px;
}

.draggable-part.is-dragging .part-label {
    opacity: 0;
}

#prv-parts-staging {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Level Up & Free Practice Limit Modals */
.level-up-badge-glow {
    animation: levelUpPulse 2s infinite ease-in-out;
}

@keyframes levelUpPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 35px rgba(245, 158, 11, 0.7);
    }
}

.level-card-glass {
    background: rgba(17, 24, 39, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1.5px solid rgba(251, 191, 36, 0.35) !important;
    border-radius: 20px !important;
}

/* =================================================================
   Question Comments & Tester Feedback System
   ================================================================= */
.comment-modal-card {
    background: #111827;
    border: 1px solid #374151;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 540px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    color: #f3f4f6;
}

.comment-item-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s;
}

.comment-item-card:hover {
    border-color: #475569;
}

.comment-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: #94a3b8;
}

.comment-item-author {
    font-weight: 600;
    color: #60a5fa;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-item-time {
    color: #64748b;
}

.comment-item-text {
    font-size: 0.85rem;
    color: #f1f5f9;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.15);
    }
}

/* ==========================================================================
   Account Flyout Card (Opens to the left of the avatar inside header)
   ========================================================================== */
.account-flyout-card {
    position: absolute;
    top: 8px;
    bottom: 8px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding: 4px 14px;
    width: max-content;
    min-width: 175px;
    max-width: calc(100% - 76px);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    user-select: none;
    animation: flyoutSlideLeft 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.challenge-header .account-flyout-card {
    right: 54px;
    background: rgba(18, 10, 22, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(244, 63, 94, 0.35);
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.6), 0 0 16px rgba(244, 63, 94, 0.15);
}

.rpg-header .account-flyout-card {
    right: 70px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
}

.flyout-email {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.challenge-header .flyout-email {
    color: #e2e8f0;
}

.rpg-header .flyout-email {
    color: #334155;
}

.flyout-status-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    padding: 3.5px 10px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    box-sizing: border-box;
    max-width: 100%;
}

.flyout-status-row:hover {
    transform: translateY(-1px);
    filter: brightness(1.15);
}

.flyout-status-row:active {
    transform: translateY(0);
}

/* Free User Upgrade Badge */
.challenge-header .flyout-status-row.status-free {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.28), rgba(16, 185, 129, 0.22));
    border: 1px solid rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
    animation: flyoutBadgePulse 2.4s infinite ease-in-out;
}

.challenge-header .flyout-status-row.status-free:hover {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.42), rgba(16, 185, 129, 0.35));
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}

.rpg-header .flyout-status-row.status-free {
    background: linear-gradient(135deg, #f0f9ff, #ecfdf5);
    border: 1px solid #38bdf8;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.16);
    animation: flyoutBadgePulse 2.4s infinite ease-in-out;
}

.rpg-header .flyout-status-row.status-free:hover {
    background: linear-gradient(135deg, #e0f2fe, #d1fae5);
    border-color: #0284c7;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.28);
}

@keyframes flyoutBadgePulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
    }
    50% {
        box-shadow: 0 0 15px rgba(56, 189, 248, 0.55);
    }
}

/* Premium Active Badge */
.challenge-header .flyout-status-row.status-premium {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.challenge-header .flyout-status-row.status-premium:hover {
    background: rgba(16, 185, 129, 0.32);
    border-color: #34d399;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.rpg-header .flyout-status-row.status-premium {
    background: #f0fdf4;
    border: 1px solid #86efac;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
}

.rpg-header .flyout-status-row.status-premium:hover {
    background: #dcfce7;
    border-color: #10b981;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.22);
}

/* Expired Badge */
.challenge-header .flyout-status-row.status-expired {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.45);
}

.rpg-header .flyout-status-row.status-expired {
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

/* God / Angel Badges */
.challenge-header .flyout-status-row.status-god,
.challenge-header .flyout-status-row.status-angel {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.rpg-header .flyout-status-row.status-god,
.rpg-header .flyout-status-row.status-angel {
    background: #fffbeb;
    border: 1px solid #fde68a;
}


.flyout-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    padding: 3px 14px;
    min-height: 25px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}

.challenge-header .flyout-logout-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.challenge-header .flyout-logout-btn:hover {
    background: rgba(239, 68, 68, 0.35);
    color: #ffffff;
    border-color: #ef4444;
}

.rpg-header .flyout-logout-btn {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.rpg-header .flyout-logout-btn:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

@keyframes flyoutSlideLeft {
    from {
        opacity: 0;
        transform: translateX(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@media (max-width: 480px) {
    .account-flyout-card {
        top: 6px;
        bottom: 6px;
        min-width: 160px;
        padding: 3px 10px;
    }

    .challenge-header .account-flyout-card {
        right: 50px;
    }

    .rpg-header .account-flyout-card {
        right: 64px;
    }
}

/* Tester & God Panel Controls */
#god-instant-solve-btn {
    background: rgba(16, 185, 129, 0.16) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #10b981 !important;
}

#god-instant-solve-btn:hover {
    background: rgba(16, 185, 129, 0.3) !important;
    border-color: rgba(16, 185, 129, 0.65) !important;
    color: #34d399 !important;
    transform: translateY(-1px);
}

#tester-reset-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #f87171 !important;
}

/* ==========================================================================
   Guest vs Authenticated Session Separation Styles
   ========================================================================== */

.guest-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 10px;
    padding: 8px 14px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease-out;
}

.guest-banner-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.guest-banner-tag {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.guest-banner-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    padding: 5px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.guest-banner-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

.expired-card-glass {
    background: rgba(17, 24, 39, 0.92) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border: 1.5px solid rgba(239, 68, 68, 0.4) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 25px rgba(239, 68, 68, 0.15) !important;
}

.guest-limit-glass {
    background: rgba(17, 24, 39, 0.92) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.15) !important;
}

/* Discipline Mastery & Skills Diagnostic Modal */
.skill-diagnostic-card {
    max-width: 440px !important;
    width: 90% !important;
    text-align: left;
    background: #111827 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    padding: 24px 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 0, 0, 0.5) !important;
    position: relative;
    user-select: none;
}

.skill-diag-header {
    text-align: center;
    margin-bottom: 20px;
}

.skill-diag-icon {
    font-size: 32px;
    margin-bottom: 6px;
    line-height: 1;
}

.skill-diag-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.01em;
}

.skill-diag-description {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0 auto;
    max-width: 340px;
}

.skills-diagnostic-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.skill-diag-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.skill-diag-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.skill-diag-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.skill-diag-current-rank {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 8px;
    padding: 2.5px 7px;
    flex-shrink: 0;
}

.skill-diag-category-name {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.02em;
    text-align: center;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-diag-next-rank {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: right;
    flex-shrink: 0;
}

.skill-diag-next-rank.locked-rank {
    color: #fbbf24;
    font-weight: 700;
}

.skill-diag-bar-track {
    height: 8px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.skill-diag-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-diag-close-action {
    width: 100%;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f1f5f9 !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.skill-diag-close-action:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
}

/* ============================================================ */
/* HIGH-RISE PRESSURE SPIRE MODAL                               */
/* ============================================================ */

:root {
    --spire-tester-offset: 68px;
}

#pressure-spire-modal.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    background: rgba(4, 8, 16, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 2000;
    box-sizing: border-box;
}

#pressure-spire-modal .pressure-spire-dialog {
    background-color: #080e18;
    background-image: 
        linear-gradient(to right, rgba(19, 35, 56, 0.75) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(19, 35, 56, 0.75) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
    border: 1.5px solid #1e324d;
    border-radius: 18px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(2, 132, 199, 0.25);
    width: 100%;
    max-width: 460px;
    height: 100%;
    max-height: 840px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    margin: auto;
}

#pressure-spire-modal .pressure-spire-svg-wrap {
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    padding: 4px;
    box-sizing: border-box;
}

#pressure-spire-modal .pressure-spire-svg-wrap svg {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
}

/* Pulsing amber border on the Redemption Run card */
.spire-redemption-card-border {
    animation: spire-redemption-pulse 2s ease-in-out infinite;
}

@keyframes spire-redemption-pulse {
    0%, 100% {
        stroke: #f59e0b;
        stroke-width: 2;
        filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
    }
    50% {
        stroke: #fde047;
        stroke-width: 2.5;
        filter: drop-shadow(0 0 12px rgba(253, 224, 71, 0.85));
    }
}

/* Close Pill Interactive Styles */
#spire-svg-close-btn {
    cursor: pointer;
}
#spire-svg-close-btn rect.close-pill-bg {
    transition: all 0.2s ease;
}
#spire-svg-close-btn:hover rect.close-pill-bg,
#spire-svg-close-btn:active rect.close-pill-bg {
    fill: rgba(239, 68, 68, 0.35) !important;
    stroke: rgba(239, 68, 68, 0.85) !important;
}

/* Mobile: Full Screen Edge-to-Edge */
@media (max-width: 600px) {
    #pressure-spire-modal.modal-backdrop {
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: stretch !important;
    }

    #pressure-spire-modal .pressure-spire-dialog {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
    }

    #pressure-spire-modal .pressure-spire-svg-wrap {
        padding: 2px !important;
    }
}

/* Dynamic Offset when God / Angel / Tester panel is active at the bottom */
body.has-tester-panel #pressure-spire-modal.modal-backdrop,
body:has(#tester-panel:not(.hidden)) #pressure-spire-modal.modal-backdrop,
#pressure-spire-modal.with-tester-offset {
    top: 0 !important;
    bottom: var(--spire-tester-offset, 68px) !important;
    height: auto !important;
    max-height: calc(100dvh - var(--spire-tester-offset, 68px)) !important;
}

body.has-tester-panel #pressure-spire-modal .pressure-spire-dialog,
body:has(#tester-panel:not(.hidden)) #pressure-spire-modal .pressure-spire-dialog,
#pressure-spire-modal.with-tester-offset .pressure-spire-dialog {
    height: 100% !important;
    max-height: 100% !important;
}

@media (max-width: 600px) {
    body.has-tester-panel #pressure-spire-modal.modal-backdrop,
    body:has(#tester-panel:not(.hidden)) #pressure-spire-modal.modal-backdrop,
    #pressure-spire-modal.with-tester-offset {
        top: 0 !important;
        bottom: var(--spire-tester-offset, 68px) !important;
        height: auto !important;
        max-height: calc(100dvh - var(--spire-tester-offset, 68px)) !important;
        padding: 0 !important;
    }

    body.has-tester-panel #pressure-spire-modal .pressure-spire-dialog,
    body:has(#tester-panel:not(.hidden)) #pressure-spire-modal .pressure-spire-dialog,
    #pressure-spire-modal.with-tester-offset .pressure-spire-dialog {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100% !important;
        max-height: 100% !important;
    }

    body.has-tester-panel #pressure-spire-modal .pressure-spire-svg-wrap,
    body:has(#tester-panel:not(.hidden)) #pressure-spire-modal .pressure-spire-svg-wrap,
    #pressure-spire-modal.with-tester-offset .pressure-spire-svg-wrap {
        height: 100% !important;
        padding: 2px 2px 4px 2px !important;
    }
}

/* Category badge & card pulse animation for skill practice point allocation */
@keyframes category-badge-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 14px 4px rgba(56, 189, 248, 0.55);
        border-color: #38bdf8;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.category-badge-pulse {
    animation: category-badge-pulse 1.1s ease-out;
}

/* ==========================================================================
   TRADE INSIGHT & AI MENTORSHIP (LEVEL 5+) STYLES
   ========================================================================== */

/* Explanation Box Trigger Wrap */
.trade-insight-trigger-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    border: none;
}

/* Unlocked Button (Level 5+) - Dark Badge Button */
.trade-insight-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    padding: 8px 18px;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
    line-height: 1.25;
}

.trade-insight-btn:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35), 0 0 10px rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.trade-insight-btn:active {
    transform: scale(0.97);
}

/* Locked Pill Badge (< Level 5) - Light Grey Badge */
.trade-insight-locked-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 8px 18px;
    color: #475569;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: default;
    user-select: none;
    white-space: nowrap;
    line-height: 1.25;
}

.trade-insight-locked-pill:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
}

/* Modal Card Structure */
.trade-insight-card {
    max-width: 640px !important;
    width: 94% !important;
    max-height: 88vh !important;
    height: auto !important;
    background: #0f172a !important;
    border: 1.5px solid rgba(56, 189, 248, 0.3) !important;
    border-radius: 20px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.15) !important;
    position: relative;
    user-select: text;
}

/* Header */
.trade-insight-header {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 48px 12px 20px;
    position: relative;
}

.ti-header-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.ti-category-badge {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
}

.ti-modal-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    margin: 0 !important;
    letter-spacing: -0.01em;
}

.ti-question-preview {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Scrollable Body */
.trade-insight-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.trade-insight-body::-webkit-scrollbar {
    width: 6px;
}
.trade-insight-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.trade-insight-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* Skeleton Loader */
.ti-skeleton-container {
    padding: 28px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ti-skeleton-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(56, 189, 248, 0.2);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: ti-spin 0.8s linear infinite;
}

@keyframes ti-spin {
    to { transform: rotate(360deg); }
}

.ti-skeleton-lines {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
}

.ti-skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: ti-shimmer 1.6s infinite;
    border-radius: 6px;
    width: 100%;
}

.ti-skeleton-line.short { width: 45%; margin: 0 auto; }
.ti-skeleton-line.medium { width: 75%; }

@keyframes ti-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ti-loading-status {
    font-size: 13px;
    color: #38bdf8;
    font-weight: 500;
    margin: 0;
    min-height: 22px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.ti-loading-status.fade-out {
    opacity: 0;
    transform: translateY(-4px);
}

/* Error Card */
.ti-error-card {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ti-error-icon { font-size: 20px; }
.ti-error-title { font-size: 13px; font-weight: 700; color: #fbbf24; }
.ti-error-msg { font-size: 12px; color: #cbd5e1; }

/* Content View & Sections */
.ti-content-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ti-section {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 16px 18px;
    transition: border-color 0.2s ease;
}

.ti-section:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.ti-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ti-sec-icon {
    font-size: 16px;
}

.ti-section-header h3 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    margin: 0 !important;
    letter-spacing: -0.01em;
}

.ti-counter-pill {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 9999px;
    padding: 2px 8px;
    font-size: 10.5px;
    font-weight: 700;
}

/* Markdown Formatting */
.ti-markdown-content {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: #cbd5e1;
}

.ti-markdown-content .ti-p {
    margin: 0 0 16px 0;
}

.ti-markdown-content .ti-p:last-child {
    margin-bottom: 0;
}

.ti-markdown-content .ti-md-h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #38bdf8;
    margin: 14px 0 6px 0;
}

.ti-markdown-content .ti-md-h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fbbf24;
    margin: 12px 0 4px 0;
}

.ti-markdown-content strong {
    color: #ffffff;
    font-weight: 700;
}

.ti-markdown-content code.ti-code {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #7dd3fc;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 12px;
    font-family: ui-monospace, monospace;
}

.ti-markdown-content ul.ti-ul {
    margin: 6px 0 12px 0;
    padding-left: 20px;
}

.ti-markdown-content li.ti-li {
    margin-bottom: 4px;
    color: #cbd5e1;
}

/* Video Frame Container */
.ti-video-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ti-video-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Image Container */
.ti-image-frame-wrap {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.ti-image-frame-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* FAQ Accordion */
.ti-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ti-empty-faq {
    font-size: 12.5px;
    color: #64748b;
    font-style: italic;
    margin: 4px 0;
}

.ti-faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ti-faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(56, 189, 248, 0.3);
}

.ti-faq-item.open {
    background: rgba(14, 165, 233, 0.05);
    border-color: rgba(56, 189, 248, 0.45);
}

.ti-faq-question-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ti-faq-q-text {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

.ti-faq-chevron {
    font-size: 10px;
    color: #38bdf8;
    transition: transform 0.25s ease;
}

.ti-faq-item.open .ti-faq-chevron {
    transform: rotate(180deg);
}

.ti-faq-answer-row {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, padding 0.2s ease;
}

.ti-faq-item.open .ti-faq-answer-row {
    max-height: 400px;
    opacity: 1;
    padding-top: 10px;
}

.ti-faq-a-text {
    font-size: 12.5px;
    line-height: 1.55;
    color: #94a3b8;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
}

/* Mentor Ask Box */
.ti-mentor-ask-box {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(8, 14, 26, 0.95) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Prompt Chips */
.ti-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ti-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 4px 10px;
    font-size: 11.5px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ti-chip:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.4);
    color: #e0f2fe;
}

/* Chat thread */
.ti-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 6px 0;
}

.ti-chat-bubble-user {
    align-self: flex-end;
    background: #0284c7;
    color: #ffffff;
    border-radius: 12px 12px 2px 12px;
    padding: 8px 12px;
    font-size: 12.5px;
    max-width: 85%;
    line-height: 1.4;
}

.ti-chat-bubble-prv {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #e2e8f0;
    border-radius: 12px 12px 12px 2px;
    padding: 10px 14px;
    font-size: 12.5px;
    max-width: 90%;
    line-height: 1.5;
}

.ti-faq-added-pill {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 9999px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    margin-top: 6px;
}

/* Input Form */
.ti-ask-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 4px 6px 4px 14px;
    transition: border-color 0.2s ease;
}

.ti-ask-form:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.ti-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

.ti-input::placeholder {
    color: #64748b;
    font-size: 12px;
}

.ti-mic-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ti-mic-svg {
    width: 17px;
    height: 17px;
    display: block;
    pointer-events: none;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.ti-mic-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    transform: scale(1.05);
}

.ti-mic-btn.listening {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ef4444;
    animation: pulse-mic 1.2s infinite ease-in-out;
}

@keyframes pulse-mic {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.ti-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.ti-send-btn:hover {
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    transform: scale(1.05);
}

.ti-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 600px) {
    .trade-insight-card {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
    }
    
    .trade-insight-header {
        padding: 16px 16px 12px 16px;
    }
    
    .trade-insight-body {
        padding: 14px 16px 20px 16px;
    }
}

/* --------------------------------------------------------------------------
   Question 36 Paywall Teaser Overlay (Blurred Background + Centered Card)
   -------------------------------------------------------------------------- */
.quiz-card-paywalled {
    filter: blur(2.5px) !important;
    -webkit-filter: blur(2.5px) !important;
    opacity: 0.88 !important;
    pointer-events: none !important;
    user-select: none !important;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.quiz-paywall-teaser {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    padding: 24px 16px;
    pointer-events: auto;
    min-height: 480px;
    box-sizing: border-box;
}

.quiz-paywall-teaser.hidden {
    display: none !important;
}

.paywall-teaser-glass-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16), 0 0 35px rgba(245, 158, 11, 0.18);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    margin-top: 10px;
}

.paywall-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #d97706;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 9999px;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.paywall-badge:hover {
    background: rgba(245, 158, 11, 0.25);
    transform: scale(1.02);
}

.paywall-title {
    display: none !important;
}

.paywall-desc {
    font-size: 14.5px;
    font-weight: 500;
    color: #334155;
    line-height: 1.6;
    margin: 6px 0 20px 0;
    max-width: 380px;
}

.paywall-pro-perks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(217, 119, 6, 0.03));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 22px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.paywall-pro-perks.hidden {
    display: none !important;
}

.pro-perk-item {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.pro-perk-item .check {
    color: #16a34a;
    font-weight: 800;
    font-size: 14px;
}

.paywall-bounty-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.09), rgba(217, 119, 6, 0.04));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

.bounty-box-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.bounty-box-body {
    flex: 1;
}

.bounty-box-heading {
    font-size: 13px;
    font-weight: 700;
    color: #b45309;
    margin-bottom: 4px;
}

.bounty-box-text {
    font-size: 12px;
    color: #475569;
    line-height: 1.45;
}

.bounty-pill-mini {
    display: inline-block;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(234, 88, 12, 0.3);
}

.paywall-upgrade-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.paywall-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

/* --------------------------------------------------------------------------
   Adaptive Subscription Paywall Modal (3 Pricing Tiers + Dynamic Pitches)
   -------------------------------------------------------------------------- */
#subscription-paywall-modal.modal-backdrop {
    z-index: 1050;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.subscription-modal-card {
    background: linear-gradient(165deg, #0f172a 0%, #0b1120 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(245, 158, 11, 0.15) !important;
    border-radius: 24px !important;
    width: 100% !important;
    max-width: 880px !important;
    padding: 34px 30px 28px !important;
    color: #f8fafc !important;
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.subscription-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.subscription-close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: scale(1.08);
}

/* Dynamic Marketing Header (Badge Only) */
.sub-header-container {
    text-align: center;
    margin-bottom: 12px;
}

.sub-pitch-badge-wrapper {
    margin-bottom: 4px;
}

.sub-pitch-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 9999px;
    padding: 5px 16px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
}

.sub-pitch-badge:hover {
    background: rgba(245, 158, 11, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.sub-pitch-title {
    display: none;
}

.sub-pitch-desc {
    display: none;
}

/* Pricing Tiers Grid */
.sub-tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.sub-tier-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(30, 41, 59, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: 16px 16px 14px;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
}

.sub-tier-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(30, 41, 59, 0.75);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Most Popular card styling */
.sub-tier-card.is-popular {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Active / Selected state */
.sub-tier-card.is-selected {
    border-color: #f59e0b !important;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.16) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.3), inset 0 0 16px rgba(245, 158, 11, 0.08) !important;
    transform: translateY(-2px);
}

.sub-tier-badge-slot {
    min-height: 22px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.sub-tier-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-emergency {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-popular {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.badge-value {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.sub-tier-name {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 2px;
    line-height: 1.2;
}

/* Compact Horizontal Pricing Row */
.sub-tier-pricing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 10px;
    gap: 8px;
}

.sub-tier-meta-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.sub-tier-duration {
    font-size: 12.5px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 2px;
    line-height: 1.2;
}

.sub-tier-per-day {
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
    margin: 0;
    line-height: 1.2;
}

.sub-tier-price {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1;
    letter-spacing: -0.5px;
}

.sub-currency {
    font-size: 15px;
    font-weight: 700;
    vertical-align: super;
    margin-right: 2px;
    color: #fbbf24;
}

.sub-tier-desc {
    font-size: 12px;
    line-height: 1.4;
    color: #cbd5e1;
    margin: 0 0 14px;
    flex-grow: 1;
}

.sub-tier-select-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.indicator-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: inline-block;
    transition: all 0.2s ease;
}

.sub-tier-card.is-selected .sub-tier-select-indicator {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.55);
}

.sub-tier-card.is-selected .indicator-circle {
    border-color: #f59e0b;
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

/* Feature Checklist */
.sub-features-container {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 22px;
}

.sub-features-title {
    font-size: 12px;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    text-align: center;
}

.sub-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.sub-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: #cbd5e1;
    line-height: 1.4;
}

.feature-check {
    color: #10b981;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Action Area */
.sub-action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sub-cta-btn {
    width: 100%;
    max-width: 480px;
    padding: 15px 24px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 16.5px;
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sub-cta-btn:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6);
}

.sub-cta-arrow {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.sub-cta-btn:hover .sub-cta-arrow {
    transform: translateX(4px);
}

.sub-trust-footer {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    max-width: 580px;
}

.sub-trust-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 5px;
}

.sub-trust-badges .dot {
    color: #475569;
}

.sub-payment-methods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.sub-pay-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.sub-pay-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .subscription-modal-card {
        padding: 24px 16px 20px !important;
        border-radius: 18px !important;
    }

    .sub-pitch-title {
        font-size: 22px;
    }

    .sub-pitch-desc {
        font-size: 13px;
    }

    .sub-tiers-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sub-tier-card {
        padding: 16px 14px 14px;
    }

    .sub-features-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sub-cta-btn {
        font-size: 15.5px;
        padding: 13px 18px;
    }
}

/* --------------------------------------------------------------------------
   Subtle Legal & Support Footer Strip (Compact Starting View & Global)
   -------------------------------------------------------------------------- */
.app-site-footer {
    width: 100%;
    margin: 10px auto 16px;
    padding: 10px 16px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-legal-link {
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.15s ease;
    letter-spacing: 0.15px;
}

.footer-legal-link:hover {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 2.5px;
}

.footer-legal-bullet {
    color: #334155;
    font-size: 0.65rem;
    user-select: none;
}

.footer-legal-copy {
    font-size: 0.65rem;
    color: #64748b;
    letter-spacing: 0.2px;
}
