/* ================================================================
   FLUMOXIQ, BLAZING AURORA DESIGN SYSTEM
   Glassmorphism + Plasma Color Engine
   ================================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
    /* Core palette, plasma aurora */
    --primary:          #8B5CF6;   /* electric violet */
    --primary-dark:     #6D28D9;
    --primary-light:    #A78BFA;
    --secondary:        #06FFF5;   /* blazing cyan */
    --secondary-warm:   #00E5FF;
    --accent-fire:      #FF6B35;   /* fire orange */
    --accent-rose:      #F72585;   /* hot magenta */
    --accent-gold:      #FFD60A;   /* electric gold */
    --accent-lime:      #39FF14;   /* neon lime */

    /* Background layers */
    --bg-deep:          #050510;
    --bg-base:          #080818;
    --bg-surface:       #0D0D24;
    --bg-elevated:      #12122E;

    /* Text */
    --text-primary:     #F0EEFF;
    --text-secondary:   rgba(240, 238, 255, 0.65);
    --text-muted:       rgba(240, 238, 255, 0.35);

    /* Glass */
    --glass-bg:         rgba(255, 255, 255, 0.055);
    --glass-bg-hover:   rgba(255, 255, 255, 0.09);
    --glass-border:     rgba(255, 255, 255, 0.10);
    --glass-border-lit: rgba(139, 92, 246, 0.45);
    --glass-shadow:     0 8px 40px rgba(0, 0, 0, 0.55);

    /* Gradients */
    --grad-primary:   linear-gradient(135deg, #8B5CF6 0%, #6D28D9 50%, #4C1D95 100%);
    --grad-fire:      linear-gradient(135deg, #FF6B35 0%, #F72585 50%, #8B5CF6 100%);
    --grad-aurora:    linear-gradient(135deg, #06FFF5 0%, #8B5CF6 40%, #F72585 80%, #FF6B35 100%);
    --grad-gold:      linear-gradient(135deg, #FFD60A 0%, #FF6B35 100%);
    --grad-bg:        linear-gradient(145deg, #050510 0%, #0D0028 40%, #001525 70%, #050510 100%);

    /* Error */
    --error: #FF4D6D;

    /* Neons */
    --neon-blue:    #06FFF5;
    --neon-purple:  #BF5AF2;
    --neon-pink:    #F72585;
    --neon-orange:  #FF6B35;

    /* Radius */
    --r-sm:  10px;
    --r-md:  16px;
    --r-lg:  22px;
    --r-xl:  28px;
    --r-full: 999px;
}

/* ── Base Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Selective transitions, no blanket * transition (prevents jank) */
a, button, input, .glass-card, .option-btn, .nav-item, .btn-flutter {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

/* ── App Shell ── */
.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    background: var(--grad-bg);
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.08),
        0 0 80px rgba(8, 8, 24, 0.9),
        inset 0 0 120px rgba(139, 92, 246, 0.04);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Ambient aurora orbs in background */
.mobile-container::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: auroraDrift1 18s ease-in-out infinite;
}

.mobile-container::after {
    content: '';
    position: fixed;
    bottom: -15%;
    right: -15%;
    width: 55%;
    height: 55%;
    background: radial-gradient(ellipse, rgba(6, 255, 245, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: auroraDrift2 22s ease-in-out infinite;
}

.mobile-container::-webkit-scrollbar { width: 0; }

@keyframes auroraDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(8%, 12%) scale(1.1); }
    66%  { transform: translate(-6%, 6%) scale(0.95); }
}
@keyframes auroraDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(-10%, -8%) scale(1.08); }
    66%  { transform: translate(6%, -4%) scale(1.12); }
}

/* ── Glassmorphism Cards ── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    padding: 20px;
    margin-bottom: 18px;
    box-shadow:
        var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Iridescent top sheen */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.6) 30%,
        rgba(6, 255, 245, 0.6) 70%,
        transparent 100%);
    pointer-events: none;
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(139, 92, 246, 0.28);
    box-shadow:
        0 12px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(139, 92, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transform: translateY(-3px);
}

/* ── Animated Background ── */
.animated-bg {
    background: linear-gradient(
        -55deg,
        #050510,
        #130030,
        #001835,
        #0a001a,
        #001020,
        #050510
    );
    background-size: 500% 500%;
    animation: auroraShift 20s ease infinite;
}

@keyframes auroraShift {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 50% 0%; }
    50%  { background-position: 100% 50%; }
    75%  { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

/* ── Neon Text ── */
.neon-text {
    color: #fff;
    text-shadow:
        0 0 8px rgba(6, 255, 245, 0.9),
        0 0 20px rgba(6, 255, 245, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3);
}

.neon-border {
    border: 1px solid var(--secondary);
    box-shadow: 0 0 12px rgba(6, 255, 245, 0.4), inset 0 0 8px rgba(6, 255, 245, 0.05);
}

/* ── Blazing Buttons ── */
.btn-flutter {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, #4C1D95 50%, var(--primary-dark) 100%);
    border: 1px solid rgba(139, 92, 246, 0.45);
    border-radius: var(--r-full);
    color: #fff;
    padding: 13px 24px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 8px;
    box-shadow:
        0 4px 20px rgba(109, 40, 217, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

/* Shimmer sweep on hover */
.btn-flutter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}

.btn-flutter:hover::before { left: 160%; }

.btn-flutter:hover {
    background: linear-gradient(135deg, #9D6FFB 0%, #7C3AED 50%, #5B21B6 100%);
    box-shadow:
        0 8px 30px rgba(139, 92, 246, 0.65),
        0 0 0 1px rgba(167, 139, 250, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
    transform: translateY(-2px);
}

.btn-flutter:active { transform: scale(0.97) translateY(0); }

/* Fire variant */
.btn-fire {
    background: linear-gradient(135deg, #FF6B35 0%, #F72585 60%, #8B5CF6 100%);
    border-color: rgba(247, 37, 133, 0.5);
    box-shadow: 0 4px 22px rgba(247, 37, 133, 0.45);
}
.btn-fire:hover {
    box-shadow: 0 8px 32px rgba(247, 37, 133, 0.65);
    background: linear-gradient(135deg, #FF8855 0%, #FF3A9D 60%, #9D6FFB 100%);
}

/* Gold variant */
.btn-gold {
    background: linear-gradient(135deg, #FFD60A 0%, #FF6B35 100%);
    color: #000;
    border-color: rgba(255, 214, 10, 0.5);
    box-shadow: 0 4px 22px rgba(255, 107, 53, 0.45);
}
.btn-gold:hover {
    box-shadow: 0 8px 32px rgba(255, 214, 10, 0.6);
}

/* ── Inputs ── */
.input-flutter {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--r-md);
    padding: 14px 16px;
    color: var(--text-primary);
    width: 100%;
    margin-bottom: 14px;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.input-flutter::placeholder { color: var(--text-muted); }

.input-flutter:focus {
    border-color: var(--primary-light);
    background: rgba(139, 92, 246, 0.10);
    box-shadow:
        0 0 0 3px rgba(139, 92, 246, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ── Bottom Navigation ── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(5, 5, 20, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    justify-content: space-around;
    padding: 8px 6px 12px;
    border-top: 1px solid rgba(139, 92, 246, 0.18);
    z-index: 1000;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6), 0 -1px 0 rgba(139, 92, 246, 0.12);
}

/* Vivid top glow line on nav */
.bottom-nav::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary) 30%, var(--secondary) 70%, transparent);
    opacity: 0.7;
}

.nav-item {
    flex: 1;
    padding: 7px 4px;
    border-radius: var(--r-md);
    background: rgba(139, 92, 246, 0.07);
    margin: 0 3px;
    color: rgba(240, 238, 255, 0.40);
    text-decoration: none;
    font-size: 11px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item i {
    display: block;
    font-size: 19px;
    margin-bottom: 4px;
    transition: transform 0.22s ease;
}

.nav-item:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-primary);
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.2);
}

.nav-item:hover i { transform: scale(1.15); }

.nav-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.28) 0%, rgba(6, 255, 245, 0.12) 100%);
    color: var(--secondary);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.25),
        0 2px 8px rgba(6, 255, 245, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

.nav-item.active i {
    filter: drop-shadow(0 0 6px var(--secondary));
    transform: scale(1.1);
}

/* ── Landing Slider ── */
.slider-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Multi-color plasma orbs behind slides */
.slider-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(139, 92, 246, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 70%, rgba(247, 37, 133, 0.15) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 60% 20%, rgba(6, 255, 245, 0.10) 0%, transparent 60%),
        linear-gradient(160deg, #050510 0%, #0a0025 50%, #001020 100%);
    pointer-events: none;
    z-index: 0;
}

.slides-container {
    flex-grow: 1;
    /* v657: without this, a flex item's default min-height:auto lets its
       tallest child (the content-heavy "Get FlumoxIQ On Your Phone" slide)
       force this container taller than the space actually available,
       pushing the dots and Join button below the visible screen. */
    min-height: 0;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.68, -0.15, 0.265, 1.2);
    width: 900%; /* v656: 9 slides total, 100% / slide */
    position: relative;
    z-index: 1;
}

.slide {
    width: 11.1111%; /* v656: 100 / 9 slides */
    min-height: 0; /* v657: same flex min-size fix, applied per slide */
    display: flex;
    flex-direction: column;
    justify-content: safe center; /* v657: falls back to plain center on older engines; on modern ones it keeps content top-aligned instead of hidden when it doesn't fit */
    align-items: center;
    text-align: center;
    padding: 30px 24px;
    overflow-y: auto; /* v657: safety net, scroll within a slide rather than clip it */
}

.slide h1 {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.slide p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 280px;
}

/* Slide icon halos */
.slide .floating {
    position: relative;
    margin-bottom: 28px;
}

.slide .floating::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    animation: iconHalo 3s ease-in-out infinite;
}

@keyframes iconHalo {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* ── Slider Dots ── */
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dot:hover {
    background: rgba(139, 92, 246, 0.5);
    transform: scale(1.3);
}

.dot.active {
    width: 32px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    box-shadow:
        0 0 12px rgba(139, 92, 246, 0.7),
        0 0 24px rgba(6, 255, 245, 0.3);
}

/* ── Landing Slide Variants ── */
.premium-slide {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(247, 37, 133, 0.06) 100%);
}

.premium-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--grad-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.premium-subtitle {
    font-size: 1.05rem;
    color: var(--secondary);
    font-weight: 500;
}

.prize-icon { animation: bounce 2.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    40%       { transform: translateY(-18px); }
    60%       { transform: translateY(-10px); }
}

/* Reward badges on landing */
.badge {
    border-radius: var(--r-full);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 14px;
    transition: all 0.25s ease;
    cursor: default;
}

.badge:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
}

/* Landing CTA card */
.landing-actions {
    margin: 0 16px 36px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--r-xl);
    padding: 20px 18px;
    border: 1px solid rgba(139, 92, 246, 0.18);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.login-link {
    display: block;
    margin-top: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.2px;
    transition: color 0.2s;
}

.login-link:hover { color: var(--secondary); }

/* ── Quiz UI, Option Buttons ── */
.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--r-md);
    padding: 14px 16px;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.22s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.option-btn:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateX(5px);
    box-shadow:
        4px 0 20px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

.option-btn.correct {
    background: rgba(57, 255, 20, 0.12);
    border-color: #39FF14;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}

.option-btn.wrong {
    background: rgba(255, 77, 109, 0.12);
    border-color: var(--error);
    box-shadow: 0 0 20px rgba(255, 77, 109, 0.25);
}

/* Legacy option-card aliases */
.option-card { @extend .option-btn; }
.option-card:hover  { @extend .option-btn:hover; }
.option-card.correct { @extend .option-btn.correct; }
.option-card.wrong   { @extend .option-btn.wrong; }

/* ── Timer Circle ── */
.timer-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid transparent;
    background:
        linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
        linear-gradient(135deg, var(--secondary), var(--primary)) border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    margin: 20px auto;
    box-shadow: 0 0 20px rgba(6, 255, 245, 0.3);
}

/* ── Gradient Utilities ── */
.gradient-primary  { background: var(--grad-primary); }
.gradient-secondary { background: linear-gradient(135deg, var(--secondary) 0%, #00A5B5 100%); }
.gradient-accent   { background: var(--grad-fire); }
.gradient-warm     { background: var(--grad-gold); }
.gradient-aurora   { background: var(--grad-aurora); }

/* ── Badges ── */
.badge-primary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(139, 92, 246, 0.10));
    border: 1px solid rgba(139, 92, 246, 0.45);
    color: var(--primary-light);
}
.badge-success {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.20), rgba(57, 255, 20, 0.06));
    border: 1px solid rgba(57, 255, 20, 0.40);
    color: #7DFF6B;
}
.badge-warning {
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.25), rgba(255, 214, 10, 0.08));
    border: 1px solid rgba(255, 214, 10, 0.45);
    color: #FFE566;
}
.badge-danger {
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.25), rgba(255, 77, 109, 0.08));
    border: 1px solid rgba(255, 77, 109, 0.45);
    color: #FF8FA3;
}

/* ── Animations ── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-9px); }
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(6, 255, 245, 0.3); }
    50%       { box-shadow: 0 0 24px rgba(6, 255, 245, 0.65), 0 0 48px rgba(139, 92, 246, 0.25); }
}
@keyframes pulse-glow {
    0%   { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.6); }
    70%  { box-shadow: 0 0 0 14px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}
@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes fireFlicker {
    0%, 100% { text-shadow: 0 0 8px #FF6B35, 0 0 20px #F72585, 0 0 40px #8B5CF6; }
    50%       { text-shadow: 0 0 14px #FFD60A, 0 0 30px #FF6B35, 0 0 60px #F72585; }
}

.floating       { animation: float 3s ease-in-out infinite; }
.glowing        { animation: glow 2.2s ease-in-out infinite; }
.pulse-glow     { animation: pulse-glow 2s infinite; }
.spinner        { animation: spin 1s linear infinite; }
.modal-enter    { animation: slideUp 0.3s ease-out; }
.fade-enter     { animation: fadeIn 0.3s ease-out; }
.fire-text      { animation: fireFlicker 2s ease-in-out infinite; }

.shimmer-effect {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.04) 0%,
        rgba(139,92,246,0.18) 50%,
        rgba(255,255,255,0.04) 100%);
    background-size: 600px 100%;
    animation: shimmer 2.5s infinite;
}

/* ── Announcement Ticker ── */
.ann-ticker-wrap { position: relative; }
.ann-ticker-text {
    animation: annTicker 22s linear infinite;
    display: inline-block;
}
@keyframes annTicker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .ann-ticker-text { animation: none; }
}

/* ── Difficulty / Category Selectors ── */
.difficulty-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--r-md);
    color: var(--text-secondary);
    padding: 10px 14px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.22s ease;
    text-align: center;
    backdrop-filter: blur(8px);
}

.difficulty-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--primary-light);
    transform: translateY(-2px);
}

.difficulty-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(6, 255, 245, 0.12) 100%);
    border-color: var(--primary-light);
    color: #fff;
    box-shadow:
        0 0 18px rgba(139, 92, 246, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.10);
}

/* ── Progress / Rank Bars ── */
.progress-bar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--r-full);
    overflow: hidden;
    height: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--r-full);
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 0 12px rgba(6, 255, 245, 0.5);
    position: relative;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--r-full);
    filter: blur(4px);
}

/* ── Scoreboard / Leaderboard Rows ── */
.rank-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    margin-bottom: 8px;
    backdrop-filter: blur(12px);
    transition: all 0.22s ease;
}

.rank-row:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(139, 92, 246, 0.28);
    transform: translateX(4px);
}

.rank-row.gold-rank   { border-color: rgba(255, 214, 10, 0.4); box-shadow: 0 0 16px rgba(255, 214, 10, 0.12); }
.rank-row.silver-rank { border-color: rgba(192, 192, 192, 0.4); box-shadow: 0 0 16px rgba(192,192,192,0.10); }
.rank-row.bronze-rank { border-color: rgba(205, 127, 50, 0.4);  box-shadow: 0 0 16px rgba(205,127,50,0.10); }

/* ── Modal / Popup Overlay ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(13, 13, 36, 0.92);
    border: 1px solid rgba(139, 92, 246, 0.30);
    border-radius: var(--r-xl);
    padding: 28px 24px;
    max-width: 90%;
    width: 360px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(139, 92, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: slideUp 0.3s ease-out;
}

/* ── SweetAlert2 Overrides ── */
.swal2-popup {
    background: rgba(12, 12, 30, 0.95) !important;
    border: 1px solid rgba(139, 92, 246, 0.30) !important;
    border-radius: 24px !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 40px rgba(139,92,246,0.12) !important;
}

.swal2-title { color: var(--text-primary) !important; font-family: 'Space Grotesk', sans-serif !important; }
.swal2-content, .swal2-html-container { color: var(--text-secondary) !important; }

.swal2-confirm {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border-radius: 20px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 20px rgba(109, 40, 217, 0.45) !important;
}

.swal2-cancel {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 20px !important;
    color: var(--text-secondary) !important;
}

.swal2-container { z-index: 99999 !important; }

/* ── Streak / XP / Wallet Pills ── */
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 0.82rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.stat-pill.xp-pill {
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.18), rgba(255, 107, 53, 0.10));
    border-color: rgba(255, 214, 10, 0.35);
    color: var(--accent-gold);
    box-shadow: 0 0 16px rgba(255, 214, 10, 0.15);
}

.stat-pill.coin-pill {
    background: linear-gradient(135deg, rgba(6, 255, 245, 0.15), rgba(139, 92, 246, 0.10));
    border-color: rgba(6, 255, 245, 0.30);
    color: var(--secondary);
    box-shadow: 0 0 16px rgba(6, 255, 245, 0.12);
}

/* ── Scrollbar (thin purple) ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--r-full);
}

/* ── Responsive ── */
@media (max-width: 360px) {
    .slide h1 { font-size: 1.9rem; }
    .btn-flutter { font-size: 0.82rem; padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    /* v1002: this used to catch EVERYTHING, including .slides-container's own
       transition: transform 0.6s rule, which forced the landing page slider
       down to a 0.1ms transition, visually indistinguishable from an instant
       jump cut instead of a slide. Decorative looping animations (pulses,
       spinners, glows) should still respect reduced-motion, a one-shot
       content transition like the slider moving to the next slide is
       core UI feedback, not decoration, so it's excluded here. */
    *:not(.slides-container, .slides-container *), *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.1ms !important;
    }
}

/* ════════════════════════════════════════════════════════════════
   v205, MUSIC PLAYER (mini bar + full-screen overlay)
   ════════════════════════════════════════════════════════════════ */

.mini-player {
    position: fixed;
    bottom: 78px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 460px;
    background: rgba(13, 13, 36, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    z-index: 999;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    cursor: pointer;
}
.mini-player-progress { height: 2px; background: rgba(255,255,255,0.08); }
.mini-player-progress-fill { height: 100%; background: var(--grad-aurora); width: 0%; transition: width 0.2s linear; }
.mini-player-body { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.mini-player-art { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.mini-player-info { flex: 1; min-width: 0; }
.mini-player-title { font-size: 0.82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.mini-player-artist { font-size: 0.72rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-player-btn { background: rgba(255,255,255,0.08); border: none; color: var(--text-primary); width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; font-size: 0.9rem; }

.full-player {
    position: fixed; inset: 0; z-index: 4000; display: flex; flex-direction: column;
    background: var(--bg-deep); overflow: hidden;
}
.full-player-bg {
    position: absolute; inset: -10%; background-size: cover; background-position: center;
    filter: blur(70px) brightness(0.4) saturate(1.6); transform: scale(1.15); opacity: 0.9;
}
.full-player-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,4,18,0.35) 0%, rgba(8,4,18,0.75) 65%, rgba(8,4,18,0.95) 100%);
}
.full-player-content {
    position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column;
    padding: 18px 18px 24px; overflow-y: auto;
}
.full-player-top {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px;
    background: rgba(255,255,255,0.05); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-full); padding: 6px;
}
.full-player-top button {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: var(--text-primary);
    width: 38px; height: 38px; border-radius: 50%; font-size: 1rem;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.full-player-top-label { font-size: 0.7rem; letter-spacing: 2px; color: var(--text-secondary); font-weight: 700; }
.full-player-art-wrap { display: flex; justify-content: center; margin: 14px 0 28px; }
.full-player-art {
    width: min(78vw, 320px); height: min(78vw, 320px); border-radius: var(--r-xl); object-fit: cover;
    box-shadow: 0 25px 70px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.08), inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
}
.full-player-meta {
    text-align: center; margin-bottom: 22px; padding: 14px 18px;
    background: rgba(255,255,255,0.045); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.09); border-radius: var(--r-lg);
}
.full-player-meta h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; margin-bottom: 4px; }
.full-player-meta p { color: var(--text-secondary); font-size: 0.9rem; }
.full-player-seek {
    background: rgba(255,255,255,0.045); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.09); border-radius: var(--r-lg); padding: 12px 16px 8px;
}
.full-player-seek input[type="range"] { width: 100%; accent-color: var(--secondary); height: 4px; }
.full-player-times { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-secondary); margin-top: 4px; }
.full-player-controls {
    display: flex; align-items: center; justify-content: center; gap: 18px; margin: 20px 0;
    background: rgba(255,255,255,0.04); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.09); border-radius: var(--r-full); padding: 12px 10px;
}
.full-player-controls button { background: none; border: none; color: var(--text-primary); }
.ctrl-sm { font-size: 0.95rem; opacity: 0.55; }
.ctrl-md { font-size: 1.5rem; }
.ctrl-active { opacity: 1 !important; color: var(--secondary) !important; }
.full-player-play-btn {
    width: 64px; height: 64px; border-radius: 50%; background: var(--grad-primary);
    font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 30px rgba(139,92,246,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.18);
}
.full-player-actions {
    display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 16px;
    font-size: 0.8rem; color: var(--text-secondary);
    background: rgba(255,255,255,0.04); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.09); border-radius: var(--r-full); padding: 12px 14px;
}
.full-player-actions button { background: none; border: none; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.full-player-actions button.no-hover { pointer-events: none; }
.full-player-lyrics {
    max-height: 240px; overflow-y: auto; text-align: center; padding: 14px 10px;
    background: rgba(255,255,255,0.035); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-lg); margin-top: 4px;
}
.lyric-line { padding: 6px 0; color: var(--text-muted); font-size: 0.95rem; transition: all 0.25s; }
.lyric-line.active { color: var(--secondary); font-weight: 700; font-size: 1.05rem; }
.full-player-desc { text-align: center; color: var(--text-secondary); font-size: 0.85rem; padding: 10px 14px 20px; }

/* ════════════════════════════════════════════════════════════════
   v205, MUSIC BROWSE (templates/music.php, templates/artist.php)
   ════════════════════════════════════════════════════════════════ */

.music-tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 4px; }
.music-tab { flex-shrink: 0; padding: 8px 16px; border-radius: var(--r-full); background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-secondary); font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.music-tab.active { background: var(--grad-primary); color: white; border-color: transparent; }
.song-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md); cursor: pointer; }
.song-row:hover { background: rgba(255,255,255,0.04); }
.song-row-art { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,0.06); }
.song-row-info { flex: 1; min-width: 0; }
.song-row-title { font-weight: 700; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-row-artist { font-size: 0.78rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-row-meta { font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.song-row-like { background: none; border: none; color: var(--text-muted); font-size: 1rem; }
.song-row-like.liked { color: #F72585; }
.song-row-report { background: none; border: none; color: var(--text-muted); font-size: 0.85rem; opacity: 0.55; margin-left: 2px; }
.song-row-report:hover { opacity: 1; color: #F72585; }
.music-search-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.music-search-bar input { flex: 1; }

.artist-credit-status { padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 16px; font-size: 0.85rem; }
.artist-credit-status.pending { background: rgba(255,214,10,0.1); border: 1px solid rgba(255,214,10,0.3); color: #FFD60A; }
.artist-credit-status.approved { background: rgba(57,255,20,0.08); border: 1px solid rgba(57,255,20,0.25); color: #39FF14; }
.artist-credit-status.rejected { background: rgba(255,77,109,0.1); border: 1px solid rgba(255,77,109,0.3); color: var(--error); }
.submission-row { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--glass-bg); border: 1px solid var(--glass-border); margin-bottom: 10px; }
.submission-badge { padding: 4px 10px; border-radius: var(--r-full); font-size: 0.7rem; font-weight: 700; }
.submission-badge.pending { background: rgba(255,214,10,0.15); color: #FFD60A; }
.submission-badge.approved { background: rgba(57,255,20,0.15); color: #39FF14; }
.submission-badge.rejected { background: rgba(255,77,109,0.15); color: var(--error); }

/* ════════════════════════════════════════════════════════════════
   v205, COMMUNITY CHAT
   ════════════════════════════════════════════════════════════════ */

.chat-fab {
    position: fixed; bottom: 90px; right: max(16px, calc(50% - 230px + 16px));
    width: 54px; height: 54px; border-radius: 50%; background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center; color: white; font-size: 1.3rem;
    box-shadow: 0 8px 24px rgba(139,92,246,0.5); z-index: 950; text-decoration: none;
}
.chat-page-wrap { display: flex; flex-direction: column; height: calc(100vh - 140px); }
.chat-pinned { background: rgba(6,255,245,0.08); border: 1px solid rgba(6,255,245,0.25); border-radius: var(--r-md); padding: 8px 12px; margin-bottom: 10px; font-size: 0.8rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: 8px 4px; display: flex; flex-direction: column; gap: 10px; }

/* v1002/v1003: these two buttons (scroll to older / jump to newest) had no
   CSS anywhere in the project, so they rendered as bare, unstyled, easy-to-
   miss browser buttons. Small round icon-only buttons per feedback. */
.chat-scroll-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--text-primary, #fff);
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.chat-scroll-btn.up { top: 6px; }
.chat-scroll-btn.down { bottom: 10px; }
.chat-msg { max-width: 78%; padding: 9px 13px; border-radius: 16px; background: var(--glass-bg); border: 1px solid var(--glass-border); font-size: 0.88rem; position: relative; }
.chat-msg.mine { align-self: flex-end; background: rgba(139,92,246,0.22); border-color: rgba(139,92,246,0.35); }
.chat-msg-author { font-size: 0.72rem; font-weight: 700; color: var(--secondary); margin-bottom: 2px; }
.chat-msg-time { font-size: 0.65rem; color: var(--text-muted); margin-top: 3px; }
.chat-msg-reactions { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.chat-reaction-chip { background: rgba(255,255,255,0.08); border-radius: var(--r-full); padding: 1px 7px; font-size: 0.72rem; cursor: pointer; }
.chat-input-bar { display: flex; align-items: center; gap: 8px; padding: 10px 4px; border-top: 1px solid var(--glass-border); flex-shrink: 0; }
.chat-input-bar input[type="text"] { flex: 1; min-width: 0; }
.chat-input-bar button {
    -webkit-appearance: none; appearance: none; box-sizing: border-box;
    width: 40px; height: 40px; min-width: 40px; max-width: 40px; flex: 0 0 40px;
    border-radius: 50%; background: rgba(255,255,255,0.08); border: none;
    color: var(--text-primary); flex-shrink: 0; padding: 0;
    display: flex; align-items: center; justify-content: center;
}
.chat-input-bar button.send { background: var(--grad-primary); width: 36px; height: 36px; min-width: 36px; max-width: 36px; flex-basis: 36px; }
.chat-input-bar button.recording { background: var(--error); animation: pulseRec 1s infinite; }
@keyframes pulseRec { 0%,100%{opacity:1;} 50%{opacity:0.5;} }

/* ════════════════════════════════════════════════════════════════
   v205, ACHIEVEMENT BADGES & PROFILE
   ════════════════════════════════════════════════════════════════ */

.badge-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--r-full); padding: 5px 12px; font-size: 0.75rem; font-weight: 600; color: var(--text-primary); }
.badge-chip i { color: var(--accent-gold); }
.verified-tick { color: var(--secondary); font-size: 0.85em; margin-left: 4px; }
.level-pill { display: inline-flex; align-items: center; gap: 4px; background: var(--grad-primary); border-radius: var(--r-full); padding: 3px 10px; font-size: 0.72rem; font-weight: 700; }
.xp-bar-track { width: 100%; height: 6px; background: rgba(255,255,255,0.08); border-radius: var(--r-full); overflow: hidden; margin-top: 6px; }
.xp-bar-fill { height: 100%; background: var(--grad-aurora); }
