/* ═══════════════════════════════════════════════════════════════════════════
   SSPL AUCTION SYSTEM — MASTER DESIGN SYSTEM
   School Shooting Premier League | Powered by Eternal Worldwide
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ────────────────────────────────────────────────────── */
:root {
    /* Brand */
    --sspl-purple:      #6B3FA0;
    --sspl-purple-lt:   #8B5FC4;
    --sspl-purple-dk:   #4A2980;
    --sspl-magenta:     #E91E8C;
    --sspl-magenta-lt:  #FF4DAA;
    --sspl-magenta-dk:  #C0156E;

    /* Gold */
    --gold:             #FFD700;
    --gold-lt:          #FFE44D;
    --gold-dk:          #CC9900;
    --gold-dim:         rgba(255, 215, 0, 0.15);

    /* Status / Accent */
    --neon-green:       #00F5A0;
    --neon-green-dim:   rgba(0, 245, 160, 0.15);
    --neon-blue:        #00C8FF;
    --neon-red:         #FF4B6E;
    --neon-red-dim:     rgba(255, 75, 110, 0.15);
    --neon-orange:      #FF8C00;

    /* Backgrounds */
    --bg-0:             #030508;
    --bg-1:             #080C14;
    --bg-2:             #0D1320;
    --bg-3:             #101828;
    --bg-4:             #1A2235;
    --bg-5:             #212B40;

    /* Glassmorphism */
    --glass:            rgba(255, 255, 255, 0.04);
    --glass-hover:      rgba(255, 255, 255, 0.07);
    --glass-active:     rgba(255, 255, 255, 0.10);
    --glass-border:     rgba(255, 255, 255, 0.08);
    --glass-border-hv:  rgba(255, 255, 255, 0.16);

    /* Text */
    --text-100:         #F0F4FF;
    --text-200:         #C8D0E0;
    --text-300:         #8892A4;
    --text-400:         #5A6478;
    --text-500:         #384055;

    /* Gradients */
    --grad-brand:       linear-gradient(135deg, var(--sspl-purple) 0%, var(--sspl-magenta) 100%);
    --grad-brand-soft:  linear-gradient(135deg, rgba(107,63,160,0.25) 0%, rgba(233,30,140,0.25) 100%);
    --grad-gold:        linear-gradient(135deg, var(--gold) 0%, var(--neon-orange) 100%);
    --grad-dark:        linear-gradient(135deg, var(--bg-2), var(--bg-0));
    --grad-card:        linear-gradient(145deg, var(--bg-3) 0%, var(--bg-2) 100%);

    /* Layout */
    --sidebar-w:        260px;
    --sidebar-collapsed: 70px;
    --topbar-h:         60px;
    --footer-h:         40px;

    /* Spacing */
    --sp-1:  4px;
    --sp-2:  8px;
    --sp-3:  12px;
    --sp-4:  16px;
    --sp-5:  20px;
    --sp-6:  24px;
    --sp-8:  32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;

    /* Radius */
    --r-sm:  6px;
    --r-md:  10px;
    --r-lg:  16px;
    --r-xl:  22px;
    --r-2xl: 32px;
    --r-full: 9999px;

    /* Shadows */
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.3);
    --shadow-md:    0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg:    0 8px 40px rgba(0,0,0,0.5);
    --shadow-xl:    0 16px 60px rgba(0,0,0,0.6);
    --shadow-brand: 0 0 40px rgba(107,63,160,0.4);
    --shadow-gold:  0 0 30px rgba(255,215,0,0.35);
    --shadow-green: 0 0 24px rgba(0,245,160,0.3);
    --shadow-red:   0 0 24px rgba(255,75,110,0.3);

    /* Transitions */
    --ease:       cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:   cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast:     0.15s var(--ease);
    --t-base:     0.25s var(--ease);
    --t-slow:     0.4s var(--ease);
    --t-xslow:    0.6s var(--ease);

    /* Typography */
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Orbitron', 'Inter', monospace;

    /* Z-index layers */
    --z-content:  1;
    --z-sidebar:  100;
    --z-topbar:   90;
    --z-modal:    200;
    --z-toast:    300;
    --z-splash:   400;
}

/* ── 2. CSS RESET ────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-200);
    background: var(--bg-1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--bg-5); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--sspl-purple); }

/* ── 3. SPLASH SCREEN ────────────────────────────────────────────────────── */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: var(--z-splash);
    background: var(--bg-0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.splash-screen.splash-exit {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.splash-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.splash-content {
    position: relative;
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
}

/* Animated rings */
.splash-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
    pointer-events: none;
}
.splash-ring-1 {
    width: 300px; height: 300px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(107,63,160,0.2);
    animation: ringPulse 3s ease-in-out infinite;
}
.splash-ring-2 {
    width: 450px; height: 450px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(233,30,140,0.12);
    animation: ringPulse 3s ease-in-out 0.5s infinite;
}
.splash-ring-3 {
    width: 600px; height: 600px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(107,63,160,0.06);
    animation: ringPulse 3s ease-in-out 1s infinite;
}
@keyframes ringPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.03); }
}

.splash-logo {
    height: 90px;
    width: auto;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: all 0.8s var(--ease-spring);
    filter: drop-shadow(0 0 40px rgba(107,63,160,0.6));
}
.splash-logo.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.splash-tagline {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-300);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s var(--ease);
}
.splash-tagline.visible { opacity: 1; transform: translateY(0); }

.splash-season {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s var(--ease);
}
.splash-season.visible { opacity: 1; transform: translateY(0); }

.splash-powered {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    opacity: 0;
    transition: opacity 0.6s var(--ease);
}
.splash-powered.visible { opacity: 1; }
.splash-powered span { font-size: 11px; color: var(--text-400); text-transform: uppercase; letter-spacing: 2px; }
.splash-eternal-logo { height: 22px; width: auto; filter: brightness(0.8); }

.splash-loader {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--r-full);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.splash-loader.visible { opacity: 1; }
.splash-loader-bar {
    height: 100%;
    background: var(--grad-brand);
    border-radius: var(--r-full);
    animation: loadProgress 1.2s var(--ease-out) forwards;
}
@keyframes loadProgress {
    from { width: 0%; }
    to   { width: 100%; }
}

/* ── 4. LOGIN PAGE ───────────────────────────────────────────────────────── */
.login-body {
    min-height: 100vh;
    background: var(--bg-0);
    overflow: hidden;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    position: relative;
}

/* Background gradient orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}
.orb-1 {
    width: 600px; height: 600px;
    background: rgba(107,63,160,0.18);
    top: -200px; left: -200px;
    animation: orbFloat1 12s ease-in-out infinite;
}
.orb-2 {
    width: 500px; height: 500px;
    background: rgba(233,30,140,0.12);
    bottom: -150px; right: -100px;
    animation: orbFloat2 15s ease-in-out infinite;
}
.orb-3 {
    width: 300px; height: 300px;
    background: rgba(0,200,255,0.06);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    animation: orbFloat3 10s ease-in-out infinite;
}
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,30px)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,-20px)} }
@keyframes orbFloat3 { 0%,100%{transform:translate(-50%,-50%)} 50%{transform:translate(-45%,-55%)} }

.particles-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.login-container {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 1100px;
    margin: auto;
    min-height: 100vh;
    padding: var(--sp-8);
    gap: var(--sp-8);
    align-items: center;
    justify-content: center;
}

/* Brand panel (left) */
.login-brand-panel {
    flex: 1;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
    padding: var(--sp-8);
    animation: slideInLeft 0.8s var(--ease-out) both;
    animation-delay: 3.2s;
}
@keyframes slideInLeft {
    from { opacity:0; transform: translateX(-30px); }
    to   { opacity:1; transform: translateX(0); }
}

.brand-logo-wrap { display: flex; align-items: center; }
.brand-logo {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 30px rgba(107,63,160,0.5));
}

.brand-headline { }
.brand-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -1px;
}
.brand-subtitle {
    font-size: 13px;
    color: var(--text-300);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: var(--sp-1);
}

.brand-stats {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    padding: var(--sp-4) var(--sp-6);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    backdrop-filter: blur(12px);
}
.brand-stat { text-align: center; flex: 1; }
.brand-stat-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-100);
}
.brand-stat-label { font-size: 11px; color: var(--text-400); text-transform: uppercase; letter-spacing: 1px; }
.brand-stat-divider { width: 1px; height: 40px; background: var(--glass-border); }

.brand-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}
.brand-cat-pill {
    padding: var(--sp-1) var(--sp-3);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-300);
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    transition: var(--t-base);
}
.brand-cat-pill:hover {
    border-color: var(--sspl-purple);
    color: var(--sspl-purple-lt);
    background: rgba(107,63,160,0.15);
}

.brand-powered {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-top: auto;
}
.powered-label { font-size: 11px; color: var(--text-500); text-transform: uppercase; letter-spacing: 2px; }
.powered-logo { height: 24px; width: auto; opacity: 0.7; transition: var(--t-base); }
.powered-logo:hover { opacity: 1; }

/* Login card (right) */
.login-card {
    width: 420px;
    background: var(--grad-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-xl);
    padding: var(--sp-10);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl), 0 0 80px rgba(107,63,160,0.15);
    animation: slideInRight 0.8s var(--ease-out) both;
    animation-delay: 3.2s;
    position: relative;
    overflow: hidden;
}
@keyframes slideInRight {
    from { opacity:0; transform: translateX(30px); }
    to   { opacity:1; transform: translateX(0); }
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-brand);
}

.login-card-header {
    text-align: center;
    margin-bottom: var(--sp-8);
}
.login-icon {
    width: 56px; height: 56px;
    background: var(--grad-brand-soft);
    border: 1px solid rgba(107,63,160,0.3);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--sp-4);
    color: var(--sspl-purple-lt);
}
.login-card-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-100);
    letter-spacing: -0.5px;
}
.login-card-subtitle { font-size: 12px; color: var(--text-400); margin-top: var(--sp-1); text-transform: uppercase; letter-spacing: 1px; }

.login-form { display: flex; flex-direction: column; gap: var(--sp-5); }

/* Alert */
.alert {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 500;
}
.alert-danger {
    background: rgba(255,75,110,0.12);
    border: 1px solid rgba(255,75,110,0.3);
    color: var(--neon-red);
}
.alert-success {
    background: rgba(0,245,160,0.10);
    border: 1px solid rgba(0,245,160,0.3);
    color: var(--neon-green);
}
.alert-warning {
    background: rgba(255,215,0,0.10);
    border: 1px solid rgba(255,215,0,0.3);
    color: var(--gold);
}

/* Form */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-300); text-transform: uppercase; letter-spacing: 0.8px; }

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    left: var(--sp-4);
    color: var(--text-400);
    pointer-events: none;
    display: flex;
    align-items: center;
    transition: var(--t-base);
}
.form-input {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-4) var(--sp-3) 44px;
    font-size: 14px;
    color: var(--text-100);
    transition: var(--t-base);
    outline: none;
}
.form-input::placeholder { color: var(--text-500); }
.form-input:focus {
    border-color: var(--sspl-purple);
    box-shadow: 0 0 0 3px rgba(107,63,160,0.2);
    background: var(--bg-3);
}
.form-input:focus ~ .input-icon,
.input-wrap:focus-within .input-icon { color: var(--sspl-purple-lt); }

.input-toggle-pw {
    position: absolute;
    right: var(--sp-4);
    color: var(--text-500);
    display: flex;
    align-items: center;
    transition: var(--t-base);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.input-toggle-pw:hover { color: var(--text-200); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--t-base);
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-brand,
.btn-primary {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 4px 20px rgba(107,63,160,0.4);
}
.btn-brand:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(107,63,160,0.6);
}
.btn-brand:active,
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-200);
}
.btn-ghost:hover { background: var(--glass-hover); border-color: var(--glass-border-hv); }

.btn-gold {
    background: var(--grad-gold);
    color: #000;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(255,215,0,0.5); }

.btn-danger {
    background: rgba(255,75,110,0.15);
    border: 1px solid rgba(255,75,110,0.3);
    color: var(--neon-red);
}
.btn-danger:hover { background: rgba(255,75,110,0.25); }

.btn-success {
    background: rgba(0,255,170,0.15);
    border: 1px solid rgba(0,255,170,0.3);
    color: var(--neon-green);
}
.btn-success:hover { background: rgba(0,255,170,0.25); }
.btn-sm { padding: var(--sp-2) var(--sp-3); font-size: 12px; border-radius: var(--r-sm); }
.btn-lg { padding: var(--sp-4) var(--sp-8); font-size: 16px; border-radius: var(--r-lg); }
.btn-xl { padding: var(--sp-5) var(--sp-10); font-size: 18px; border-radius: var(--r-lg); font-weight: 700; }

.btn-login {
    width: 100%;
    padding: var(--sp-4) var(--sp-6);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: var(--r-lg);
}
.btn-login.loading { pointer-events: none; opacity: 0.8; }

.btn-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine {
    0%   { left: -100%; }
    50%, 100% { left: 100%; }
}

.btn-icon { display: flex; align-items: center; }
.btn-text { }

/* Login card footer */
.login-card-footer { margin-top: var(--sp-6); text-align: center; }
.login-live-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    background: rgba(0,245,160,0.08);
    border: 1px solid rgba(0,245,160,0.2);
    border-radius: var(--r-full);
    font-size: 11px;
    color: var(--text-400);
}

/* Live dot */
.live-dot {
    width: 7px; height: 7px;
    background: var(--neon-green);
    border-radius: 50%;
    display: inline-block;
    animation: livePulse 1.5s ease-in-out infinite;
}
.live-dot.red { background: var(--neon-red); }
.live-dot.gold { background: var(--gold); }
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,245,160,0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(0,245,160,0); }
}

/* ── 5. APP LAYOUT ───────────────────────────────────────────────────────── */
.app-body { background: var(--bg-1); }

.app-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ── 6. SIDEBAR ──────────────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--bg-0);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    z-index: var(--z-sidebar);
    transition: width var(--t-slow), transform var(--t-slow);
    overflow: hidden;
}

/* Sidebar header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-4) var(--sp-4);
    height: var(--topbar-h);
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}
.sidebar-brand { display: flex; align-items: center; overflow: hidden; }
.sidebar-logo { height: 36px; width: auto; min-width: 120px; object-fit: contain; transition: var(--t-slow); }
.sidebar-collapse-btn {
    color: var(--text-400);
    padding: var(--sp-2);
    border-radius: var(--r-sm);
    transition: var(--t-fast);
    flex-shrink: 0;
}
.sidebar-collapse-btn:hover { color: var(--text-200); background: var(--glass); }

/* Live pill */
.sidebar-live-pill {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin: var(--sp-3) var(--sp-4);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-full);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-400);
    transition: var(--t-base);
    overflow: hidden;
    white-space: nowrap;
}
.sidebar-live-pill.is-live {
    background: rgba(0,245,160,0.1);
    border-color: rgba(0,245,160,0.3);
    color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0,245,160,0.15);
}
.sidebar-live-pill.is-live .live-dot { background: var(--neon-green); }

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: var(--sp-2) var(--sp-3);
    overflow-y: auto;
    overflow-x: hidden;
}
.nav-section-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-500);
    padding: var(--sp-4) var(--sp-3) var(--sp-2);
    white-space: nowrap;
    overflow: hidden;
    transition: opacity var(--t-slow);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-3);
    border-radius: var(--r-md);
    color: var(--text-400);
    font-size: 13px;
    font-weight: 500;
    transition: var(--t-fast);
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 2px;
}
.nav-item:hover {
    color: var(--text-200);
    background: var(--glass);
}
.nav-item.active {
    color: var(--sspl-purple-lt);
    background: rgba(107,63,160,0.15);
    border: 1px solid rgba(107,63,160,0.2);
}
.nav-item.active .nav-icon svg { stroke: var(--sspl-purple-lt); }
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 3px;
    background: var(--grad-brand);
    border-radius: 0 var(--r-full) var(--r-full) 0;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
}
.nav-label { flex: 1; transition: opacity var(--t-slow); }

.nav-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: var(--r-full);
    flex-shrink: 0;
}
.nav-badge-live {
    background: rgba(0,245,160,0.2);
    color: var(--neon-green);
    animation: badgePulse 1.5s ease-in-out infinite;
}
@keyframes badgePulse {
    0%,100% { opacity:1; }
    50%      { opacity:0.5; }
}

.nav-ext-icon { color: var(--text-500); flex-shrink: 0; }

/* Sidebar footer */
.sidebar-footer {
    border-top: 1px solid var(--glass-border);
    padding: var(--sp-3) var(--sp-4);
    flex-shrink: 0;
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-2) 0;
    overflow: hidden;
}
.user-avatar {
    width: 34px; height: 34px;
    border-radius: var(--r-full);
    background: var(--grad-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.user-meta { flex: 1; overflow: hidden; min-width: 0; }
.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-200);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-role { font-size: 10px; color: var(--text-500); text-transform: uppercase; letter-spacing: 1px; }
.user-logout-btn {
    color: var(--text-500);
    padding: var(--sp-2);
    border-radius: var(--r-sm);
    transition: var(--t-fast);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.user-logout-btn:hover { color: var(--neon-red); background: var(--neon-red-dim); }

.sidebar-eternal {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding-top: var(--sp-2);
    font-size: 9px;
    color: var(--text-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    white-space: nowrap;
}
.eternal-sidebar-logo { height: 16px; width: auto; opacity: 0.5; flex-shrink: 0; }

/* ── 7. COLLAPSED SIDEBAR ────────────────────────────────────────────────── */
.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed);
}
.sidebar-collapsed .sidebar-logo { opacity: 0; min-width: 0; width: 0; }
.sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-badge,
.sidebar-collapsed .nav-ext-icon,
.sidebar-collapsed .nav-section-label,
.sidebar-collapsed .live-text,
.sidebar-collapsed .user-meta,
.sidebar-collapsed .user-logout-btn,
.sidebar-collapsed .sidebar-eternal { opacity: 0; width: 0; overflow: hidden; }
.sidebar-collapsed .sidebar-header { justify-content: center; }
.sidebar-collapsed .sidebar-collapse-btn { margin: 0 auto; }
.sidebar-collapsed .nav-item { justify-content: center; padding: var(--sp-3); }
.sidebar-collapsed .nav-item.active::before { top: 4px; bottom: 4px; }
.sidebar-collapsed .sidebar-live-pill { width: 36px; justify-content: center; }
.sidebar-collapsed .main-wrapper { margin-left: var(--sidebar-collapsed); }

/* ── 8. MAIN WRAPPER ─────────────────────────────────────────────────────── */
.main-wrapper {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--t-slow);
}

/* ── 9. TOP BAR ──────────────────────────────────────────────────────────── */
.topbar {
    height: var(--topbar-h);
    background: rgba(8,12,20,0.9);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    padding: 0 var(--sp-6);
    gap: var(--sp-4);
    position: sticky;
    top: 0;
    z-index: var(--z-topbar);
    flex-shrink: 0;
}
.topbar-left { display: flex; align-items: center; gap: var(--sp-3); flex: 1; }
.topbar-center { flex: 2; display: flex; justify-content: center; }
.topbar-right { flex: 1; display: flex; align-items: center; gap: var(--sp-3); justify-content: flex-end; }

.topbar-menu-btn {
    color: var(--text-400);
    padding: var(--sp-2);
    border-radius: var(--r-sm);
    display: none; /* shown on mobile */
    transition: var(--t-fast);
}
.topbar-menu-btn:hover { color: var(--text-100); background: var(--glass); }

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 13px;
}
.breadcrumb-home { color: var(--text-500); font-weight: 600; }
.breadcrumb-current { color: var(--text-200); font-weight: 600; }

.topbar-live-banner {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    background: rgba(0,245,160,0.08);
    border: 1px solid rgba(0,245,160,0.2);
    border-radius: var(--r-full);
    font-size: 12px;
    color: var(--text-300);
    animation: liveGlow 2s ease-in-out infinite;
}
.topbar-live-banner strong { color: var(--text-100); }
.topbar-bid { font-family: var(--font-display); font-size: 12px; color: var(--gold); font-weight: 700; }
@keyframes liveGlow {
    0%,100% { box-shadow: 0 0 0 0 rgba(0,245,160,0); }
    50%      { box-shadow: 0 0 12px rgba(0,245,160,0.2); }
}

.topbar-time {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-300);
    letter-spacing: 2px;
    min-width: 70px;
}

/* ── 10. PAGE CONTENT ────────────────────────────────────────────────────── */
.page-content {
    flex: 1;
    padding: var(--sp-6);
    max-width: 1600px;
    width: 100%;
}

/* Page header */
.page-header { margin-bottom: var(--sp-6); }
.page-header-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
}
.page-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-100);
    letter-spacing: -0.5px;
}
.page-subtitle { font-size: 13px; color: var(--text-400); margin-top: var(--sp-1); }
.page-header-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ── 11. STAT CARDS ──────────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
}
.stat-card-wide { grid-column: span 2; }

.stat-card {
    background: var(--grad-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    position: relative;
    overflow: hidden;
    transition: var(--t-base);
    cursor: default;
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--glass-border-hv);
    box-shadow: var(--shadow-lg);
}

.stat-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, var(--glow-color, transparent) 0%, transparent 60%);
    pointer-events: none;
}

.stat-icon {
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-3);
    flex-shrink: 0;
}
.stat-icon-purple { background: rgba(107,63,160,0.2); color: var(--sspl-purple-lt); }
.stat-icon-green  { background: rgba(0,245,160,0.15); color: var(--neon-green); }
.stat-icon-red    { background: rgba(255,75,110,0.15); color: var(--neon-red); }
.stat-icon-gold   { background: rgba(255,215,0,0.12); color: var(--gold); }
.stat-icon-blue   { background: rgba(0,200,255,0.15); color: var(--neon-blue); }

.stat-body { margin-bottom: var(--sp-3); }
.stat-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-100);
    line-height: 1;
    letter-spacing: -1px;
}
.stat-label { font-size: 12px; color: var(--text-400); margin-top: var(--sp-1); text-transform: uppercase; letter-spacing: 0.5px; }

.stat-trend {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}
.stat-trend-up     { color: var(--neon-green); }
.stat-trend-green  { color: var(--neon-green); }
.stat-trend-red    { color: var(--neon-red); }
.stat-trend-gold   { color: var(--gold); }

.stat-progress {
    height: 3px;
    background: var(--bg-5);
    border-radius: var(--r-full);
    margin-bottom: var(--sp-2);
    overflow: hidden;
}
.stat-progress-bar {
    height: 100%;
    border-radius: var(--r-full);
    transition: width 1.5s var(--ease-out);
}

.stat-badge-gold {
    position: absolute;
    top: var(--sp-4);
    right: var(--sp-4);
    padding: var(--sp-1) var(--sp-3);
    background: var(--gold-dim);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: var(--r-full);
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
}

/* ── 12. DASHBOARD GRID ──────────────────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--sp-4);
    margin-bottom: var(--sp-4);
}
.dashboard-grid-2col { grid-template-columns: 1fr 1fr; }

.dash-card {
    background: var(--grad-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.dash-card-lg { }

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-4) var(--sp-5);
    border-bottom: 1px solid var(--glass-border);
}
.dash-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-200);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.dash-card-link { font-size: 12px; color: var(--sspl-purple-lt); font-weight: 600; transition: var(--t-fast); }
.dash-card-link:hover { color: var(--sspl-magenta-lt); }

.dash-card-body { padding: var(--sp-5); }
.activity-scroll { max-height: 400px; overflow-y: auto; }

/* Category bars */
.category-bars { display: flex; flex-direction: column; gap: var(--sp-4); }
.cat-bar-row { display: flex; flex-direction: column; gap: var(--sp-2); }
.cat-bar-label { display: flex; align-items: center; justify-content: space-between; }
.cat-name { font-size: 13px; font-weight: 600; color: var(--text-200); }
.cat-total { font-size: 11px; color: var(--text-400); }

.cat-bar-track {
    height: 8px;
    background: var(--bg-5);
    border-radius: var(--r-full);
    overflow: hidden;
    display: flex;
}
.cat-bar-fill {
    height: 100%;
    transition: width 1.2s var(--ease-out);
    min-width: 0;
}
.cat-bar-sold    { background: var(--neon-green); }
.cat-bar-unsold  { background: var(--neon-red); }
.cat-bar-pending { background: var(--bg-4); }

.cat-bar-meta { display: flex; gap: var(--sp-4); }
.meta-sold    { font-size: 11px; color: var(--neon-green); }
.meta-pending { font-size: 11px; color: var(--text-400); }

.cat-legend {
    display: flex;
    gap: var(--sp-4);
    margin-top: var(--sp-3);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--glass-border);
}
.leg-item { display: flex; align-items: center; gap: var(--sp-2); font-size: 11px; color: var(--text-400); }
.leg-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Purse list */
.purse-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.purse-item { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }

.purse-team-info { display: flex; align-items: center; gap: var(--sp-2); min-width: 130px; }
.purse-team-avatar {
    width: 34px; height: 34px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}
.purse-team-name { font-size: 13px; font-weight: 600; color: var(--text-200); }
.purse-numbers { text-align: right; min-width: 80px; }
.purse-remaining { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text-100); }
.purse-label { font-size: 10px; color: var(--text-500); text-transform: uppercase; }
.purse-bar-wrap { flex: 1; min-width: 100px; }
.purse-bar-track { height: 6px; background: var(--bg-5); border-radius: var(--r-full); overflow: hidden; }
.purse-bar-fill { height: 100%; border-radius: var(--r-full); transition: width 1.5s var(--ease-out); }
.purse-bar-pct { font-size: 10px; color: var(--text-500); margin-top: 3px; text-align: right; }

/* Top sold list */
.top-sold-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.top-sold-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3);
    background: var(--glass);
    border-radius: var(--r-md);
    border: 1px solid var(--glass-border);
    transition: var(--t-fast);
}
.top-sold-item:hover { background: var(--glass-hover); border-color: var(--glass-border-hv); }

.ts-rank { width: 28px; text-align: center; flex-shrink: 0; }
.ts-rank-gold   { font-size: 20px; }
.ts-rank-silver { font-size: 20px; }
.ts-rank-bronze { font-size: 20px; }
.ts-rank-num { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-400); }

.ts-player-photo {
    width: 38px; height: 38px;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
    background: var(--bg-5);
}
.ts-player-photo img { width: 100%; height: 100%; object-fit: cover; }

.ts-info { flex: 1; min-width: 0; }
.ts-name { font-size: 13px; font-weight: 700; color: var(--text-100); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-meta { font-size: 11px; color: var(--text-400); }

.ts-price-wrap { text-align: right; }
.ts-price { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--gold); }
.ts-team { font-size: 11px; font-weight: 600; margin-top: 2px; }

/* Activity list */
.activity-list { display: flex; flex-direction: column; }
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--glass-border);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon { font-size: 18px; flex-shrink: 0; width: 32px; text-align: center; padding-top: 2px; }
.activity-body { flex: 1; min-width: 0; }
.activity-action { font-size: 13px; font-weight: 600; color: var(--text-200); }
.activity-meta { display: flex; gap: var(--sp-3); margin-top: 2px; }
.activity-user { font-size: 11px; color: var(--text-400); }
.activity-time { font-size: 11px; color: var(--text-500); }

/* Quick actions */
.quick-actions {
    display: flex;
    gap: var(--sp-3);
    margin-top: var(--sp-4);
    flex-wrap: wrap;
}
.quick-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 600;
    transition: var(--t-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.quick-btn-primary {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 4px 16px rgba(107,63,160,0.4);
}
.quick-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(107,63,160,0.5); }
.quick-btn-secondary {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-200);
}
.quick-btn-secondary:hover { background: var(--glass-hover); border-color: var(--glass-border-hv); }
.quick-btn-ghost {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-400);
}
.quick-btn-ghost:hover { background: var(--glass); color: var(--text-200); }

/* ── 13. BADGES ──────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--r-full);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.badge-live   { background: rgba(0,245,160,0.15); color: var(--neon-green); border: 1px solid rgba(0,245,160,0.3); animation: badgePulse 1.5s infinite; }
.badge-sold   { background: rgba(255,215,0,0.12);  color: var(--gold);       border: 1px solid rgba(255,215,0,0.3); }
.badge-unsold { background: rgba(255,75,110,0.12); color: var(--neon-red);   border: 1px solid rgba(255,75,110,0.3); }
.badge-muted  { background: var(--glass);          color: var(--text-400);   border: 1px solid var(--glass-border); }
.badge-rtm    { background: rgba(0,200,255,0.12);  color: var(--neon-blue);  border: 1px solid rgba(0,200,255,0.3); }

/* ── 14. APP FOOTER ──────────────────────────────────────────────────────── */
.app-footer {
    height: var(--footer-h);
    background: var(--bg-0);
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 var(--sp-6);
    flex-shrink: 0;
}
.footer-left, .footer-right { flex: 1; }
.footer-center { flex: 1; text-align: center; }
.footer-right { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-2); }
.footer-season, .footer-version { font-size: 11px; color: var(--text-500); }
.footer-powered { font-size: 10px; color: var(--text-500); text-transform: uppercase; letter-spacing: 1px; }
.footer-eternal-logo { height: 14px; width: auto; opacity: 0.4; filter: grayscale(1); }

/* ── 15. FLASH ALERTS ────────────────────────────────────────────────────── */
.flash-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-3) var(--sp-6);
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: opacity var(--t-slow);
}
.flash-success { background: rgba(0,245,160,0.1); border-color: rgba(0,245,160,0.2); color: var(--neon-green); }
.flash-danger  { background: rgba(255,75,110,0.1); border-color: rgba(255,75,110,0.2); color: var(--neon-red); }
.flash-warning { background: rgba(255,215,0,0.08); border-color: rgba(255,215,0,0.2); color: var(--gold); }
.flash-close { color: inherit; opacity: 0.6; font-size: 18px; background: none; border: none; cursor: pointer; }
.flash-close:hover { opacity: 1; }

/* ── 16. TOAST ───────────────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: var(--sp-6);
    right: var(--sp-6);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    pointer-events: none;
}
.toast {
    pointer-events: all;
    padding: var(--sp-3) var(--sp-5);
    background: var(--bg-3);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-200);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    animation: toastSlide 0.4s var(--ease-spring) both;
    max-width: 360px;
}
@keyframes toastSlide {
    from { opacity:0; transform: translateX(40px) scale(0.9); }
    to   { opacity:1; transform: translateX(0) scale(1); }
}
.toast.toast-success { border-color: rgba(0,245,160,0.3); color: var(--neon-green); }
.toast.toast-error   { border-color: rgba(255,75,110,0.3); color: var(--neon-red); }
.toast.toast-gold    { border-color: rgba(255,215,0,0.3); color: var(--gold); }

/* ── 17. EMPTY STATES ────────────────────────────────────────────────────── */
.empty-state-small { font-size: 13px; color: var(--text-500); padding: var(--sp-4) 0; text-align: center; }
.empty-state-small a { color: var(--sspl-purple-lt); }

.coming-soon-card {
    max-width: 400px;
    margin: var(--sp-16) auto;
    text-align: center;
    padding: var(--sp-10);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-xl);
}
.cs-icon { font-size: 60px; margin-bottom: var(--sp-4); }
.coming-soon-card h2 { font-size: 22px; font-weight: 700; color: var(--text-100); margin-bottom: var(--sp-3); }
.coming-soon-card p { color: var(--text-400); }

/* ── 18. MOBILE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card-wide { grid-column: span 1; }
    .dashboard-grid, .dashboard-grid-2col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-w) !important;
    }
    .sidebar-mobile-open .sidebar { transform: translateX(0); }
    .main-wrapper { margin-left: 0 !important; }
    .topbar-menu-btn { display: flex; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .login-container { flex-direction: column; padding: var(--sp-4); }
    .login-brand-panel { display: none; }
    .login-card { width: 100%; max-width: 420px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card-wide { grid-column: span 1; }
    .page-content { padding: var(--sp-4); }
}
