/* ============================================================
   ALGA ARENA — ESPORTS PREMIUM DESIGN SYSTEM
   Version: 2.0.0 — Cyber Arena OS
   Premium 3D · Neon · HUD · Gamer Identity
   ============================================================ */

/* ============================================================
   1. EXTENDED DESIGN TOKENS
   ============================================================ */
:root {
    /* Gaming Typography */
    --font-pixel:  'Pixelify Sans', 'Press Start 2P', monospace;
    --font-hud:    'Chakra Petch', 'Oxanium', 'Rajdhani', sans-serif;
    --font-ui:     'Oxanium', 'Rajdhani', sans-serif;
    --font-body:   'Inter', system-ui, sans-serif;

    /* Neon Glow System */
    --glow-cyan:     0 0 12px rgba(0,212,255,0.6), 0 0 30px rgba(0,212,255,0.25), 0 0 60px rgba(0,212,255,0.1);
    --glow-cyan-sm:  0 0 8px rgba(0,212,255,0.5), 0 0 20px rgba(0,212,255,0.2);
    --glow-violet:   0 0 12px rgba(124,92,252,0.6), 0 0 30px rgba(124,92,252,0.25), 0 0 60px rgba(124,92,252,0.1);
    --glow-gold:     0 0 12px rgba(255,215,0,0.6), 0 0 30px rgba(255,215,0,0.25), 0 0 60px rgba(255,215,0,0.1);
    --glow-red:      0 0 12px rgba(255,59,87,0.6), 0 0 30px rgba(255,59,87,0.25);
    --glow-green:    0 0 12px rgba(34,212,126,0.6), 0 0 30px rgba(34,212,126,0.2);

    /* 3D Depth Shadow System */
    --depth-card:      0 1px 0 rgba(255,255,255,0.05) inset, 0 4px 0 rgba(0,0,0,0.3), 0 12px 32px rgba(0,0,0,0.6), 0 24px 60px rgba(0,0,0,0.4);
    --depth-card-hover: 0 1px 0 rgba(255,255,255,0.08) inset, 0 8px 0 rgba(0,0,0,0.35), 0 20px 48px rgba(0,0,0,0.65), 0 32px 80px rgba(0,0,0,0.45), 0 0 40px rgba(0,212,255,0.07);
    --depth-float:     0 16px 48px rgba(0,0,0,0.7), 0 4px 12px rgba(0,0,0,0.5);
    --depth-inset:     inset 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);

    /* Glass / Acrylic Surfaces */
    --glass-bg:        rgba(15,17,23,0.85);
    --glass-border:    rgba(255,255,255,0.08);
    --glass-inner:     inset 0 1px 0 rgba(255,255,255,0.07), inset 0 -1px 0 rgba(0,0,0,0.3);
    --glass-blur:      blur(20px) saturate(180%);

    /* Neon Border System */
    --border-neon-cyan:   1px solid rgba(0,212,255,0.4);
    --border-neon-violet: 1px solid rgba(124,92,252,0.4);
    --border-neon-gold:   1px solid rgba(255,215,0,0.4);
    --border-neon-red:    1px solid rgba(255,59,87,0.4);
    --border-top-cyan:    2px solid rgba(0,212,255,0.5);
    --border-top-violet:  2px solid rgba(124,92,252,0.5);
    --border-top-gold:    2px solid rgba(255,215,0,0.5);

    /* Holographic / Iridescent */
    --holo-gradient: linear-gradient(135deg,
        rgba(0,212,255,0.06) 0%,
        rgba(124,92,252,0.04) 30%,
        rgba(255,215,0,0.03) 60%,
        rgba(0,212,255,0.05) 100%
    );

    /* Rank Colors (enhanced) */
    --rank-iron-glow:     rgba(120,120,130,0.4);
    --rank-bronze-glow:   rgba(205,127,50,0.4);
    --rank-silver-glow:   rgba(168,180,192,0.4);
    --rank-gold-glow:     rgba(255,215,0,0.45);
    --rank-platinum-glow: rgba(229,228,226,0.35);
    --rank-diamond-glow:  rgba(185,242,255,0.45);
    --rank-mythic-glow:   rgba(255,59,87,0.5);
    --rank-legend-glow:   rgba(124,92,252,0.5);

    /* Angular Clip Paths */
    --clip-hud-tl:  polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
    --clip-hud-tr:  polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    --clip-hud-br:  polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    --clip-card-cut: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);

    /* Scan line pattern */
    --scan-lines: repeating-linear-gradient(0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.04) 2px,
        rgba(0,0,0,0.04) 4px
    );

    /* Grid pattern */
    --grid-pattern: linear-gradient(rgba(0,212,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,212,255,0.025) 1px, transparent 1px);
    --grid-size: 32px 32px;
}

/* ============================================================
   2. UPGRADED TYPOGRAPHY SYSTEM
   ============================================================ */
.font-pixel { font-family: var(--font-pixel); }
.font-hud   { font-family: var(--font-hud); }
.font-ui    { font-family: var(--font-ui); }

/* Override h1/h2 to use gaming pixel font */
h1, .h1, .display-hero { font-family: var(--font-pixel) !important; }
h2, .h2                { font-family: var(--font-hud) !important; }
h3, .h3, .card-title   { font-family: var(--font-hud) !important; }
h4, h5, h6             { font-family: var(--font-hud) !important; }

/* Page headings override */
.page-heading-pixel {
    font-family: var(--font-pixel) !important;
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: var(--arena-text-primary);
}

.page-subheading {
    font-family: var(--font-hud);
    font-size: 0.875rem;
    color: var(--arena-text-muted);
    letter-spacing: 0.04em;
    margin-top: 4px;
}

/* HUD text style */
.text-hud {
    font-family: var(--font-hud);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--arena-text-muted);
}

/* Scoreboard / counter style */
.text-scoreboard {
    font-family: var(--font-pixel);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

/* Neon text highlight */
.text-neon-cyan {
    color: var(--arena-accent);
    text-shadow: 0 0 8px rgba(0,212,255,0.6), 0 0 20px rgba(0,212,255,0.25);
}
.text-neon-violet {
    color: var(--arena-violet);
    text-shadow: 0 0 8px rgba(124,92,252,0.6), 0 0 20px rgba(124,92,252,0.25);
}
.text-neon-gold {
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255,215,0,0.6), 0 0 20px rgba(255,215,0,0.25);
}

/* ============================================================
   3. UPGRADED SIDEBAR — GLASS + NEON SYSTEM
   REVERTED TO ORIGINAL STATE TO MATCH THE FIRST ONE AS REQUESTED
   ============================================================ */

/* ============================================================
   4. UPGRADED HEADER — CYBER COMMAND BAR
   ============================================================ */
.arena-header {
    background: rgba(9,11,15,0.92) !important;
    backdrop-filter: blur(24px) saturate(160%) !important;
    border-bottom: 1px solid rgba(0,212,255,0.1) !important;
    box-shadow: 0 1px 0 rgba(0,212,255,0.06), 0 4px 24px rgba(0,0,0,0.4) !important;
}

/* Search bar HUD style */
.header-search input {
    background: rgba(15,17,23,0.9) !important;
    border: 1px solid rgba(0,212,255,0.15) !important;
    font-family: var(--font-hud) !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.03em;
    transition: all 200ms ease !important;
}

.header-search input:focus {
    background: rgba(15,17,23,0.98) !important;
    border-color: rgba(0,212,255,0.5) !important;
    box-shadow: 0 0 0 2px rgba(0,212,255,0.1), 0 0 16px rgba(0,212,255,0.08) !important;
}

/* HUD bracket corners on search */
.header-search::before,
.header-search::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    z-index: 2;
    pointer-events: none;
}

.header-search::before {
    top: 0;
    left: 0;
    border-top: 1.5px solid rgba(0,212,255,0.5);
    border-left: 1.5px solid rgba(0,212,255,0.5);
}

.header-search::after {
    bottom: 0;
    right: 0;
    border-bottom: 1.5px solid rgba(0,212,255,0.5);
    border-right: 1.5px solid rgba(0,212,255,0.5);
}

.header-search { position: relative; }

/* Action buttons HUD style */
.header-btn {
    background: rgba(22,24,32,0.9) !important;
    border: 1px solid rgba(0,212,255,0.12) !important;
    transition: all 160ms ease !important;
}

.header-btn:hover {
    background: rgba(0,212,255,0.08) !important;
    border-color: rgba(0,212,255,0.35) !important;
    box-shadow: 0 0 12px rgba(0,212,255,0.15) !important;
    color: var(--arena-accent) !important;
}

/* Notification badge pulse */
.header-btn .badge-dot {
    background: var(--arena-red) !important;
    box-shadow: 0 0 8px rgba(255,59,87,0.7) !important;
    animation: notif-pulse 2s ease-in-out infinite;
}

@keyframes notif-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(255,59,87,0.7); transform: scale(1); }
    50%       { box-shadow: 0 0 16px rgba(255,59,87,0.9); transform: scale(1.2); }
}

/* Create button */
.header-create {
    background: linear-gradient(135deg, #00D4FF 0%, #0090BE 100%) !important;
    box-shadow: 0 2px 12px rgba(0,212,255,0.3), inset 0 1px 0 rgba(255,255,255,0.2) !important;
    font-family: var(--font-hud) !important;
    letter-spacing: 0.06em;
    clip-path: var(--clip-hud-tr);
}

.header-create:hover {
    box-shadow: 0 4px 24px rgba(0,212,255,0.5), inset 0 1px 0 rgba(255,255,255,0.3) !important;
    transform: translateY(-1px);
}

/* Profile avatar glow */
.header-profile .avatar {
    border: 2px solid var(--arena-accent) !important;
    box-shadow: 0 0 10px rgba(0,212,255,0.35) !important;
}

.header-profile .profile-name {
    font-family: var(--font-hud) !important;
    font-weight: 700 !important;
}

.header-profile .profile-rank {
    font-family: var(--font-hud) !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.04em;
}

/* ============================================================
   5. UPGRADED CARD SYSTEM — 3D DEPTH
   ============================================================ */
.card-arena {
    background:
        var(--holo-gradient),
        var(--scan-lines),
        var(--arena-surface-01) !important;
    border: 1px solid rgba(0,212,255,0.1) !important;
    border-top: 2px solid rgba(0,212,255,0.3) !important;
    border-radius: 8px !important;
    box-shadow: var(--depth-card) !important;
    transition: all 220ms cubic-bezier(0.16,1,0.3,1) !important;
    position: relative;
    overflow: hidden;
}

/* Inner top highlight */
.card-arena::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), rgba(0,212,255,0.15), rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

.card-arena:hover {
    border-color: rgba(0,212,255,0.25) !important;
    border-top-color: rgba(0,212,255,0.5) !important;
    box-shadow: var(--depth-card-hover) !important;
    transform: translateY(-3px) !important;
}

/* Card variants */
.card-violet {
    border-top-color: rgba(124,92,252,0.5) !important;
}

.card-violet:hover {
    border-top-color: rgba(124,92,252,0.7) !important;
    box-shadow: var(--depth-card-hover), 0 0 40px rgba(124,92,252,0.06) !important;
}

.card-gold {
    border-top-color: rgba(255,215,0,0.5) !important;
}

.card-gold:hover {
    border-top-color: rgba(255,215,0,0.7) !important;
    box-shadow: var(--depth-card-hover), 0 0 40px rgba(255,215,0,0.06) !important;
}

/* Glass card */
.card-glass {
    background: rgba(15,17,23,0.7) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-top: 1px solid rgba(255,255,255,0.12) !important;
}

/* Card header upgrade */
.card-header {
    background: linear-gradient(180deg, rgba(0,212,255,0.04) 0%, transparent 100%);
    border-bottom: 1px solid rgba(0,212,255,0.1) !important;
}

.card-title {
    font-family: var(--font-pixel) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.06em;
    text-shadow: 0 0 8px rgba(0,212,255,0.3);
}

/* ============================================================
   6. PREMIUM PLAYER CARDS — GAMER ID CARD
   ============================================================ */
.player-card {
    background:
        var(--holo-gradient),
        linear-gradient(160deg, rgba(0,212,255,0.04) 0%, transparent 60%),
        var(--arena-surface-01) !important;
    border: 1px solid rgba(0,212,255,0.1) !important;
    border-top: 2px solid rgba(0,212,255,0.3) !important;
    border-radius: 10px !important;
    box-shadow: var(--depth-card) !important;
    transition: all 220ms cubic-bezier(0.16,1,0.3,1) !important;
    clip-path: var(--clip-card-cut);
    overflow: visible !important;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 20px; height: 20px;
    background: rgba(0,212,255,0.25);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    pointer-events: none;
    z-index: 2;
}

.player-card:hover {
    border-color: rgba(0,212,255,0.3) !important;
    border-top-color: rgba(0,212,255,0.6) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.08) inset,
        0 8px 0 rgba(0,0,0,0.4),
        0 20px 52px rgba(0,0,0,0.65),
        0 0 40px rgba(0,212,255,0.1) !important;
    transform: translateY(-5px) perspective(600px) rotateX(1deg) !important;
}

/* LFT left edge */
.player-card.player-lft::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, #22D47E, rgba(34,212,126,0.3));
    box-shadow: 0 0 12px rgba(34,212,126,0.6);
}

/* Player avatar upgrade */
.player-card-avatar {
    border: 3px solid var(--arena-accent) !important;
    box-shadow: 0 0 16px rgba(0,212,255,0.4) !important;
    background: var(--arena-surface-02) !important;
}

/* Player name */
.player-card-name {
    font-family: var(--font-hud) !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.01em;
}

/* Stats block upgrade */
.player-stats-block {
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(0,212,255,0.08) !important;
    border-radius: 6px !important;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

.player-stat-value {
    font-family: var(--font-hud) !important;
    font-weight: 800 !important;
    color: var(--arena-accent) !important;
    text-shadow: 0 0 8px rgba(0,212,255,0.4);
}

.player-stat-label {
    font-family: var(--font-hud);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--arena-text-muted);
}

/* ============================================================
   7. PREMIUM TEAM CARDS — ORG ROSTER PANEL
   ============================================================ */
.team-card {
    background:
        linear-gradient(145deg, rgba(124,92,252,0.04) 0%, transparent 60%),
        var(--arena-surface-01) !important;
    border: 1px solid rgba(124,92,252,0.12) !important;
    border-top: 2px solid rgba(124,92,252,0.35) !important;
    border-radius: 10px !important;
    box-shadow: var(--depth-card) !important;
    transition: all 220ms cubic-bezier(0.16,1,0.3,1) !important;
}

.team-card:hover {
    border-color: rgba(124,92,252,0.25) !important;
    border-top-color: rgba(124,92,252,0.55) !important;
    box-shadow: var(--depth-card-hover), 0 0 40px rgba(124,92,252,0.06) !important;
    transform: translateY(-4px) !important;
}

.team-card-header {
    background: linear-gradient(180deg, rgba(124,92,252,0.06) 0%, transparent 100%);
    border-bottom: 1px solid rgba(124,92,252,0.1) !important;
}

.team-logo {
    background: rgba(22,24,32,0.9) !important;
    border: 1px solid rgba(124,92,252,0.2) !important;
    box-shadow: 0 0 12px rgba(124,92,252,0.15) !important;
    border-radius: 8px !important;
}

.team-name {
    font-family: var(--font-hud) !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
}

/* ============================================================
   8. PREMIUM TOURNAMENT CARDS — MAJOR EVENT TILES
   ============================================================ */
.tournament-card {
    background: var(--arena-surface-01) !important;
    border: 1px solid rgba(255,215,0,0.1) !important;
    border-top: 2px solid rgba(255,215,0,0.35) !important;
    border-radius: 10px !important;
    box-shadow: var(--depth-card) !important;
    transition: all 220ms cubic-bezier(0.16,1,0.3,1) !important;
    overflow: hidden;
}

.tournament-card:hover {
    border-color: rgba(255,215,0,0.22) !important;
    border-top-color: rgba(255,215,0,0.6) !important;
    box-shadow: var(--depth-card-hover), 0 0 40px rgba(255,215,0,0.06) !important;
    transform: translateY(-4px) !important;
}

.tournament-card-cover {
    height: 180px !important;
    background: linear-gradient(135deg, #1A1A2E 0%, #0F0F23 100%) !important;
}

.tournament-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(9,11,15,0.9) 100%);
}

.tournament-card-cover img {
    filter: brightness(0.75) saturate(1.2);
}

.tournament-card:hover .tournament-card-cover img {
    transform: scale(1.06) !important;
    filter: brightness(0.85) saturate(1.3);
}

/* Prize badge premium */
.prize-badge {
    background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(20,15,0,0.9)) !important;
    border: 1px solid rgba(255,215,0,0.5) !important;
    box-shadow: 0 0 12px rgba(255,215,0,0.3), inset 0 1px 0 rgba(255,215,0,0.15) !important;
    font-family: var(--font-hud) !important;
    font-weight: 800 !important;
    color: #FFD700 !important;
    text-shadow: 0 0 8px rgba(255,215,0,0.5);
}

.tournament-card-name {
    font-family: var(--font-hud) !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.01em;
}

/* ============================================================
   9. 3D RANK BADGE SYSTEM
   ============================================================ */
.rank-badge {
    font-family: var(--font-hud) !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all 160ms ease;
}

.rank-badge.iron {
    background: linear-gradient(135deg, rgba(100,100,110,0.25), rgba(80,80,90,0.15)) !important;
    color: #9090A0 !important;
    border-color: rgba(120,120,130,0.3);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, rgba(205,127,50,0.25), rgba(160,100,40,0.15)) !important;
    color: #E8A055 !important;
    border-color: rgba(205,127,50,0.35);
    box-shadow: 0 0 8px rgba(205,127,50,0.15);
}

.rank-badge.silver {
    background: linear-gradient(135deg, rgba(168,180,192,0.25), rgba(140,155,168,0.15)) !important;
    color: #C8D4E0 !important;
    border-color: rgba(168,180,192,0.35);
    box-shadow: 0 0 8px rgba(168,180,192,0.15);
}

.rank-badge.gold {
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(200,160,0,0.1)) !important;
    color: #FFD700 !important;
    border-color: rgba(255,215,0,0.4);
    box-shadow: 0 0 12px rgba(255,215,0,0.2), inset 0 1px 0 rgba(255,215,0,0.1);
    text-shadow: 0 0 8px rgba(255,215,0,0.5);
}

.rank-badge.platinum {
    background: linear-gradient(135deg, rgba(229,228,226,0.2), rgba(180,180,178,0.1)) !important;
    color: #E8E6E4 !important;
    border-color: rgba(229,228,226,0.35);
    box-shadow: 0 0 12px rgba(229,228,226,0.15);
    text-shadow: 0 0 6px rgba(229,228,226,0.4);
}

.rank-badge.diamond {
    background: linear-gradient(135deg, rgba(185,242,255,0.2), rgba(0,212,255,0.08)) !important;
    color: #B9F2FF !important;
    border-color: rgba(185,242,255,0.4);
    box-shadow: 0 0 14px rgba(185,242,255,0.25), 0 0 30px rgba(0,212,255,0.1);
    text-shadow: 0 0 8px rgba(185,242,255,0.6);
}

.rank-badge.mythic {
    background: linear-gradient(135deg, rgba(255,59,87,0.2), rgba(200,20,50,0.1)) !important;
    color: #FF5070 !important;
    border-color: rgba(255,59,87,0.4);
    box-shadow: 0 0 14px rgba(255,59,87,0.25), 0 0 30px rgba(255,59,87,0.1);
    text-shadow: 0 0 8px rgba(255,59,87,0.6);
    animation: mythic-shimmer 3s ease-in-out infinite;
}

@keyframes mythic-shimmer {
    0%, 100% { box-shadow: 0 0 14px rgba(255,59,87,0.25), 0 0 30px rgba(255,59,87,0.1); }
    50%       { box-shadow: 0 0 20px rgba(255,59,87,0.4), 0 0 50px rgba(255,59,87,0.15); }
}

.rank-badge.legend {
    background: linear-gradient(135deg, rgba(124,92,252,0.25), rgba(180,100,252,0.1)) !important;
    color: #A880FF !important;
    border-color: rgba(124,92,252,0.45);
    box-shadow: 0 0 16px rgba(124,92,252,0.3), 0 0 40px rgba(124,92,252,0.12);
    text-shadow: 0 0 10px rgba(124,92,252,0.7);
    animation: legend-shimmer 3s ease-in-out infinite;
}

@keyframes legend-shimmer {
    0%, 100% { box-shadow: 0 0 16px rgba(124,92,252,0.3), 0 0 40px rgba(124,92,252,0.12); }
    50%       { box-shadow: 0 0 24px rgba(124,92,252,0.5), 0 0 60px rgba(124,92,252,0.2); }
}

/* ============================================================
   10. HUD FILTER TOOLBAR
   ============================================================ */
.filter-hud {
    background: rgba(9,11,15,0.95) !important;
    border: 1px solid rgba(0,212,255,0.12) !important;
    border-top: 2px solid rgba(0,212,255,0.25) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04) !important;
    position: relative;
    overflow: hidden;
}

.filter-hud::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    background: var(--grid-pattern);
    background-size: 24px 24px;
    opacity: 0.2;
    pointer-events: none;
}

/* HUD bracket corner decorations */
.filter-hud-inner {
    position: relative;
    z-index: 1;
}

/* Filter inputs in HUD style */
.filter-hud .input-arena,
.filter-hud .form-control,
.filter-hud .form-select {
    background: rgba(15,17,23,0.9) !important;
    border: 1px solid rgba(0,212,255,0.12) !important;
    font-family: var(--font-hud) !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.03em;
    color: var(--arena-text-primary) !important;
}

.filter-hud .input-arena:focus,
.filter-hud .form-control:focus,
.filter-hud .form-select:focus {
    border-color: rgba(0,212,255,0.4) !important;
    box-shadow: 0 0 0 2px rgba(0,212,255,0.08) !important;
}

/* Game filter chips */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(22,24,32,0.9);
    border: 1px solid rgba(0,212,255,0.12);
    border-radius: 4px;
    font-family: var(--font-hud);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--arena-text-secondary);
    cursor: pointer;
    transition: all 160ms ease;
    text-decoration: none;
}

.filter-chip:hover,
.filter-chip.active {
    background: rgba(0,212,255,0.1);
    border-color: rgba(0,212,255,0.4);
    color: var(--arena-accent);
    box-shadow: 0 0 12px rgba(0,212,255,0.12);
}

.filter-chip.active {
    box-shadow: 0 0 16px rgba(0,212,255,0.2), inset 0 1px 0 rgba(0,212,255,0.1);
}

/* ============================================================
   11. UPGRADED STAT CARDS
   ============================================================ */
.stat-card {
    background:
        linear-gradient(135deg, rgba(0,212,255,0.04) 0%, transparent 60%),
        var(--grid-pattern),
        var(--arena-surface-01) !important;
    background-size: auto, var(--grid-size), auto !important;
    border: 1px solid rgba(0,212,255,0.1) !important;
    border-top: 2px solid rgba(0,212,255,0.3) !important;
    border-radius: 10px !important;
    box-shadow: var(--depth-card) !important;
    transition: all 220ms cubic-bezier(0.16,1,0.3,1) !important;
}

.stat-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--depth-card-hover) !important;
}

.stat-card.accent-cyan {
    border-top-color: rgba(0,212,255,0.45) !important;
}

.stat-card.accent-cyan:hover {
    box-shadow: var(--depth-card-hover), 0 0 30px rgba(0,212,255,0.06) !important;
}

.stat-card.accent-warm {
    background:
        linear-gradient(135deg, rgba(245,166,35,0.04) 0%, transparent 60%),
        var(--grid-pattern),
        var(--arena-surface-01) !important;
    background-size: auto, var(--grid-size), auto !important;
    border-top-color: rgba(245,166,35,0.4) !important;
}

.stat-card.accent-violet {
    background:
        linear-gradient(135deg, rgba(124,92,252,0.04) 0%, transparent 60%),
        var(--grid-pattern),
        var(--arena-surface-01) !important;
    background-size: auto, var(--grid-size), auto !important;
    border-top-color: rgba(124,92,252,0.4) !important;
}

.stat-card.accent-red {
    background:
        linear-gradient(135deg, rgba(255,59,87,0.04) 0%, transparent 60%),
        var(--grid-pattern),
        var(--arena-surface-01) !important;
    background-size: auto, var(--grid-size), auto !important;
    border-top-color: rgba(255,59,87,0.4) !important;
}

.stat-card.accent-green {
    background:
        linear-gradient(135deg, rgba(34,212,126,0.04) 0%, transparent 60%),
        var(--grid-pattern),
        var(--arena-surface-01) !important;
    background-size: auto, var(--grid-size), auto !important;
    border-top-color: rgba(34,212,126,0.4) !important;
}

.stat-value {
    font-family: var(--font-hud) !important;
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--arena-text-primary) !important;
}

.stat-label {
    font-family: var(--font-hud) !important;
    letter-spacing: 0.12em !important;
    font-size: 0.65rem !important;
}

.stat-icon {
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.stat-icon.cyan {
    box-shadow: 0 0 12px rgba(0,212,255,0.25) !important;
}

.stat-icon.warm {
    box-shadow: 0 0 12px rgba(245,166,35,0.25) !important;
}

.stat-icon.violet {
    box-shadow: 0 0 12px rgba(124,92,252,0.25) !important;
}

/* ============================================================
   12. RANKINGS PAGE — PODIUM + LEADERBOARD
   ============================================================ */
/* Podium section */
.rankings-podium {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 12px;
    align-items: end;
    margin-bottom: 32px;
}

.podium-card {
    border-radius: 10px;
    padding: 24px 16px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 220ms ease;
}

.podium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--scan-lines);
    opacity: 0.5;
}

.podium-card-inner { position: relative; z-index: 1; }

.podium-1 {
    background: linear-gradient(160deg, rgba(255,215,0,0.12), rgba(20,16,0,0.6));
    border: 1px solid rgba(255,215,0,0.3);
    border-top: 2px solid rgba(255,215,0,0.6);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 30px rgba(255,215,0,0.08);
    min-height: 200px;
}

.podium-2 {
    background: linear-gradient(160deg, rgba(168,180,192,0.1), rgba(15,17,23,0.6));
    border: 1px solid rgba(168,180,192,0.25);
    border-top: 2px solid rgba(168,180,192,0.5);
    box-shadow: 0 10px 32px rgba(0,0,0,0.5);
    min-height: 170px;
}

.podium-3 {
    background: linear-gradient(160deg, rgba(205,127,50,0.1), rgba(15,17,23,0.6));
    border: 1px solid rgba(205,127,50,0.25);
    border-top: 2px solid rgba(205,127,50,0.5);
    box-shadow: 0 10px 32px rgba(0,0,0,0.5);
    min-height: 155px;
}

.podium-rank-number {
    font-family: var(--font-pixel);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.podium-1 .podium-rank-number { color: #FFD700; text-shadow: 0 0 16px rgba(255,215,0,0.7); }
.podium-2 .podium-rank-number { color: #C8D4E0; text-shadow: 0 0 12px rgba(168,180,192,0.5); }
.podium-3 .podium-rank-number { color: #E8A055; text-shadow: 0 0 12px rgba(205,127,50,0.5); }

.podium-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    display: block;
}

.podium-1 .podium-avatar {
    border: 3px solid #FFD700;
    box-shadow: 0 0 20px rgba(255,215,0,0.45);
    width: 76px; height: 76px;
}

.podium-2 .podium-avatar {
    border: 2px solid rgba(168,180,192,0.6);
    box-shadow: 0 0 14px rgba(168,180,192,0.3);
}

.podium-3 .podium-avatar {
    border: 2px solid rgba(205,127,50,0.6);
    box-shadow: 0 0 14px rgba(205,127,50,0.3);
}

.podium-name {
    font-family: var(--font-hud);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--arena-text-primary);
    margin-bottom: 2px;
}

.podium-score {
    font-family: var(--font-hud);
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--arena-accent);
}

.podium-1 .podium-score { color: #FFD700; text-shadow: 0 0 8px rgba(255,215,0,0.5); }

/* Ranking table enhancements */
.rank-row-1 {
    background: linear-gradient(90deg, rgba(255,215,0,0.06) 0%, transparent 60%) !important;
    border-left: 3px solid rgba(255,215,0,0.5) !important;
}
.rank-row-2 {
    background: linear-gradient(90deg, rgba(168,180,192,0.05) 0%, transparent 60%) !important;
    border-left: 3px solid rgba(168,180,192,0.4) !important;
}
.rank-row-3 {
    background: linear-gradient(90deg, rgba(205,127,50,0.05) 0%, transparent 60%) !important;
    border-left: 3px solid rgba(205,127,50,0.4) !important;
}

.rank-position {
    font-family: var(--font-pixel) !important;
    font-size: 0.85rem !important;
}

.rank-position.top-1 {
    color: #FFD700 !important;
    text-shadow: 0 0 8px rgba(255,215,0,0.6) !important;
}

.rank-position.top-2 {
    color: #C8D4E0 !important;
    text-shadow: 0 0 6px rgba(168,180,192,0.5) !important;
}

.rank-position.top-3 {
    color: #E8A055 !important;
    text-shadow: 0 0 6px rgba(205,127,50,0.5) !important;
}

/* Game filter tabs for rankings */
.game-tab-btn {
    font-family: var(--font-hud) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px !important;
    transition: all 160ms ease;
}

.game-tab-btn.btn-primary {
    box-shadow: 0 0 16px rgba(0,212,255,0.3), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

/* ============================================================
   13. UPGRADED BUTTONS
   ============================================================ */
.btn-arena {
    font-family: var(--font-hud) !important;
    letter-spacing: 0.08em !important;
    font-size: 0.78rem !important;
    transition: all 180ms cubic-bezier(0.16,1,0.3,1) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #00D4FF 0%, #0090BE 100%) !important;
    box-shadow: 0 2px 12px rgba(0,212,255,0.25), inset 0 1px 0 rgba(255,255,255,0.2) !important;
    border: 1px solid rgba(0,212,255,0.3) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #10DEFF 0%, #00A8D8 100%) !important;
    box-shadow: 0 4px 24px rgba(0,212,255,0.45), inset 0 1px 0 rgba(255,255,255,0.25) !important;
    transform: translateY(-2px) !important;
}

.btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 6px rgba(0,212,255,0.2), inset 0 2px 4px rgba(0,0,0,0.2) !important;
}

.btn-secondary {
    background: rgba(22,24,32,0.9) !important;
    border: 1px solid rgba(0,212,255,0.15) !important;
    color: var(--arena-text-secondary) !important;
}

.btn-secondary:hover {
    background: rgba(0,212,255,0.08) !important;
    border-color: rgba(0,212,255,0.35) !important;
    color: var(--arena-accent) !important;
    box-shadow: 0 0 16px rgba(0,212,255,0.1) !important;
}

.btn-ghost {
    border: 1px solid rgba(255,255,255,0.1) !important;
    font-family: var(--font-hud) !important;
}

.btn-ghost:hover {
    border-color: rgba(0,212,255,0.25) !important;
    background: rgba(0,212,255,0.05) !important;
}

/* Glow button variant */
.btn-glow {
    animation: btn-glow-pulse 2.5s ease-in-out infinite;
}

@keyframes btn-glow-pulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(0,212,255,0.25), inset 0 1px 0 rgba(255,255,255,0.2); }
    50%       { box-shadow: 0 4px 28px rgba(0,212,255,0.5), inset 0 1px 0 rgba(255,255,255,0.3); }
}

/* ============================================================
   14. UPGRADED TABLES
   ============================================================ */
.table-arena {
    font-family: var(--font-hud) !important;
}

.table-arena th {
    font-family: var(--font-hud) !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.12em !important;
    color: rgba(0,212,255,0.6) !important;
    border-bottom: 1px solid rgba(0,212,255,0.12) !important;
}

.table-arena td {
    font-size: 0.85rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
    vertical-align: middle;
}

.table-arena tbody tr:hover {
    background: rgba(0,212,255,0.04) !important;
}

/* ============================================================
   15. LIVE BADGE ENHANCED
   ============================================================ */
.badge-live {
    font-family: var(--font-hud) !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    box-shadow: 0 0 10px rgba(255,59,87,0.2) !important;
}

.badge-live::before {
    box-shadow: 0 0 6px rgba(255,59,87,0.7);
}

/* ============================================================
   16. PAGE HERO SECTIONS (Non-Dashboard Pages)
   ============================================================ */
.page-hero {
    position: relative;
    padding: 32px 0 24px;
    margin-bottom: 8px;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.4), rgba(124,92,252,0.3), transparent);
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 10% 50%, rgba(0,212,255,0.04) 0%, transparent 70%),
        var(--grid-pattern);
    background-size: auto, var(--grid-size);
    pointer-events: none;
}

.page-hero-content { position: relative; z-index: 1; }

/* HUD corner brackets on page hero */
.page-hero-inner {
    position: relative;
}

.page-hero-inner::before,
.page-hero-inner::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    pointer-events: none;
}

.page-hero-inner::before {
    top: -4px; left: -4px;
    border-top: 2px solid rgba(0,212,255,0.4);
    border-left: 2px solid rgba(0,212,255,0.4);
}

.page-hero-inner::after {
    bottom: -4px; right: -4px;
    border-bottom: 2px solid rgba(0,212,255,0.4);
    border-right: 2px solid rgba(0,212,255,0.4);
}

/* ============================================================
   17. COMMAND PALETTE UPGRADE
   ============================================================ */
.command-palette {
    background: rgba(9,11,15,0.97) !important;
    border: 1px solid rgba(0,212,255,0.2) !important;
    border-top: 2px solid rgba(0,212,255,0.4) !important;
    backdrop-filter: blur(24px) !important;
    box-shadow: 0 24px 64px rgba(0,0,0,0.8), 0 0 40px rgba(0,212,255,0.08) !important;
}

.command-palette-input {
    font-family: var(--font-hud) !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.02em;
}

.command-group-label {
    font-family: var(--font-hud) !important;
    letter-spacing: 0.12em !important;
    color: rgba(0,212,255,0.5) !important;
}

.command-result-item:hover {
    background: rgba(0,212,255,0.06) !important;
    border-left: 2px solid rgba(0,212,255,0.4);
}

/* ============================================================
   18. NOTIFICATION PANEL UPGRADE
   ============================================================ */
.notification-panel {
    background: rgba(9,11,15,0.97) !important;
    border: 1px solid rgba(0,212,255,0.15) !important;
    border-top: 2px solid rgba(0,212,255,0.3) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 0 20px rgba(0,212,255,0.06) !important;
}

.notification-header .card-title {
    font-family: var(--font-pixel) !important;
    font-size: 0.7rem !important;
}

.notification-item.unread {
    border-left: 2px solid rgba(0,212,255,0.5) !important;
    background: rgba(0,212,255,0.04) !important;
}

/* ============================================================
   19. DROPDOWN UPGRADE
   ============================================================ */
.dropdown-arena {
    background: rgba(9,11,15,0.97) !important;
    border: 1px solid rgba(0,212,255,0.15) !important;
    border-top: 2px solid rgba(0,212,255,0.3) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7) !important;
}

.dropdown-item-arena {
    font-family: var(--font-hud) !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.03em;
    transition: all 120ms ease !important;
}

.dropdown-item-arena:hover {
    background: rgba(0,212,255,0.07) !important;
    color: var(--arena-accent) !important;
    padding-left: 22px !important;
}

/* ============================================================
   20. MOBILE BOTTOM NAV UPGRADE
   ============================================================ */
.mobile-bottom-nav {
    background: rgba(9,11,15,0.97) !important;
    backdrop-filter: blur(24px) !important;
    border-top: 1px solid rgba(0,212,255,0.15) !important;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.5), 0 -1px 0 rgba(0,212,255,0.06) !important;
}

.mobile-nav-item {
    font-family: var(--font-hud) !important;
    font-size: 0.6rem !important;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 160ms ease;
}

.mobile-nav-item.active {
    color: var(--arena-accent) !important;
    position: relative;
}

.mobile-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%; transform: translateX(-50%);
    width: 20px; height: 2px;
    background: var(--arena-accent);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(0,212,255,0.7);
}

.mobile-nav-fab {
    background: linear-gradient(135deg, #00D4FF, #0090BE) !important;
    box-shadow: 0 0 0 3px rgba(0,212,255,0.15), 0 4px 16px rgba(0,212,255,0.3) !important;
    animation: fab-glow 3s ease-in-out infinite;
}

@keyframes fab-glow {
    0%, 100% { box-shadow: 0 0 0 3px rgba(0,212,255,0.15), 0 4px 16px rgba(0,212,255,0.3); }
    50%       { box-shadow: 0 0 0 5px rgba(0,212,255,0.2), 0 6px 24px rgba(0,212,255,0.5); }
}

/* ============================================================
   21. EMPTY STATES UPGRADE
   ============================================================ */
.empty-state {
    position: relative;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(0,212,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.empty-title {
    font-family: var(--font-hud) !important;
    letter-spacing: 0.03em;
}

/* ============================================================
   22. BADGE ARENA UPGRADES
   ============================================================ */
.badge-accent {
    font-family: var(--font-hud) !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    border: 1px solid rgba(0,212,255,0.25);
    box-shadow: 0 0 8px rgba(0,212,255,0.1);
}

.badge-warm {
    font-family: var(--font-hud) !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    border: 1px solid rgba(245,166,35,0.25);
}

.badge-green {
    font-family: var(--font-hud) !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    border: 1px solid rgba(34,212,126,0.25);
    box-shadow: 0 0 8px rgba(34,212,126,0.1);
}

.badge-violet {
    font-family: var(--font-hud) !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    border: 1px solid rgba(124,92,252,0.25);
}

.badge-muted {
    font-family: var(--font-hud) !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
}

/* ============================================================
   23. FORM / INPUT UPGRADES
   ============================================================ */
.input-arena {
    font-family: var(--font-hud) !important;
    font-size: 0.875rem !important;
    background: rgba(15,17,23,0.9) !important;
    border: 1px solid rgba(0,212,255,0.12) !important;
    transition: all 180ms ease !important;
}

.input-arena::placeholder {
    font-family: var(--font-hud) !important;
    letter-spacing: 0.02em;
    opacity: 0.5;
}

.input-arena:focus {
    border-color: rgba(0,212,255,0.4) !important;
    background: rgba(15,17,23,0.98) !important;
    box-shadow: 0 0 0 2px rgba(0,212,255,0.08), 0 0 16px rgba(0,212,255,0.06) !important;
}

select.input-arena,
.form-select.input-arena {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300D4FF' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}

/* ============================================================
   24. REVEAL ANIMATION SYSTEM
   ============================================================ */
[data-reveal] > * {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 400ms cubic-bezier(0.16,1,0.3,1), transform 400ms cubic-bezier(0.16,1,0.3,1);
}

[data-reveal].revealed > * {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal] > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal] > *:nth-child(2) { transition-delay: 60ms; }
[data-reveal] > *:nth-child(3) { transition-delay: 120ms; }
[data-reveal] > *:nth-child(4) { transition-delay: 180ms; }
[data-reveal] > *:nth-child(5) { transition-delay: 240ms; }
[data-reveal] > *:nth-child(6) { transition-delay: 300ms; }
[data-reveal] > *:nth-child(7) { transition-delay: 360ms; }
[data-reveal] > *:nth-child(8) { transition-delay: 420ms; }

/* Card hover tilt for supported cards */
.card-tilt {
    transition: transform 220ms cubic-bezier(0.16,1,0.3,1), box-shadow 220ms ease !important;
}

.card-tilt:hover {
    transform: translateY(-5px) perspective(800px) rotateX(1.5deg) !important;
}

/* Count-up animation class */
.count-up-value {
    display: inline-block;
    animation: count-up-fade 600ms cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes count-up-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   25. GAME TAG UPGRADE
   ============================================================ */
.game-tag {
    font-family: var(--font-hud) !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    border: 1px solid rgba(0,212,255,0.12) !important;
    background: rgba(15,17,23,0.8) !important;
    transition: all 160ms ease;
}

.game-tag:hover {
    background: rgba(0,212,255,0.08) !important;
    border-color: rgba(0,212,255,0.3) !important;
    color: var(--arena-accent) !important;
}

/* ============================================================
   26. VERIFIED BADGE UPGRADE
   ============================================================ */
.badge-verified {
    color: var(--arena-accent) !important;
    text-shadow: 0 0 8px rgba(0,212,255,0.5);
}

/* ============================================================
   27. STATUS DOT UPGRADE
   ============================================================ */
.status-dot.online {
    box-shadow: 0 0 8px rgba(34,212,126,0.7), 0 0 16px rgba(34,212,126,0.3) !important;
}

.status-dot.live {
    box-shadow: 0 0 8px rgba(255,59,87,0.7), 0 0 16px rgba(255,59,87,0.3) !important;
}

/* ============================================================
   28. PROGRESS BAR UPGRADE
   ============================================================ */
.progress {
    background: rgba(0,0,0,0.3) !important;
    border-radius: 4px !important;
    overflow: visible !important;
}

.progress-bar {
    background: linear-gradient(90deg, #00D4FF, #00F5A0) !important;
    border-radius: 4px !important;
    box-shadow: 0 0 10px rgba(0,212,255,0.5) !important;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: -2px; right: -2px;
    width: 6px; height: calc(100% + 4px);
    background: #fff;
    border-radius: 3px;
    opacity: 0.8;
    box-shadow: 0 0 8px rgba(0,212,255,0.8);
}

/* ============================================================
   29. CHAT / MESSAGES UPGRADE
   ============================================================ */
.chat-item.active {
    background: rgba(0,212,255,0.06) !important;
    border-inline-start: 2px solid var(--arena-accent) !important;
    border-left-color: var(--arena-accent) !important;
    box-shadow: inset 3px 0 12px rgba(0,212,255,0.1) !important;
}

.chat-sidebar {
    background: rgba(9,11,15,0.98) !important;
    border-right: 1px solid rgba(0,212,255,0.08) !important;
}

/* ============================================================
   30. SUBSCRIPTION CARDS UPGRADE
   ============================================================ */
.subscription-card-featured {
    border: 1px solid rgba(0,212,255,0.3) !important;
    border-top: 2px solid var(--arena-accent) !important;
    box-shadow: var(--depth-card), 0 0 40px rgba(0,212,255,0.08) !important;
}

.subscription-card-premium {
    border: 1px solid rgba(124,92,252,0.3) !important;
    border-top: 2px solid var(--arena-violet) !important;
    box-shadow: var(--depth-card), 0 0 40px rgba(124,92,252,0.08) !important;
}

/* ============================================================
   31. HUD DECORATION ELEMENTS
   ============================================================ */
/* Corner bracket decoration */
.hud-corners {
    position: relative;
}

.hud-corners::before,
.hud-corners::after {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    pointer-events: none;
    z-index: 10;
}

.hud-corners::before {
    top: 0; left: 0;
    border-top: 1.5px solid rgba(0,212,255,0.5);
    border-left: 1.5px solid rgba(0,212,255,0.5);
}

.hud-corners::after {
    bottom: 0; right: 0;
    border-bottom: 1.5px solid rgba(0,212,255,0.5);
    border-right: 1.5px solid rgba(0,212,255,0.5);
}

/* Scanning line animation for hero areas */
.hud-scan-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.6), transparent);
    animation: hud-scan 4s linear infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes hud-scan {
    0%   { top: 0%; opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Neon divider */
.neon-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.35), rgba(124,92,252,0.25), transparent);
    border: none;
    margin: 0;
}

/* ============================================================
   32. RESPONSIVE / MOBILE OPTIMIZATIONS
   ============================================================ */
@media (max-width: 768px) {
    /* Disable heavy perspective transforms on mobile */
    .player-card:hover,
    .card-tilt:hover {
        transform: translateY(-2px) !important;
    }

    /* Reduce glow intensity */
    .rank-badge.legend,
    .rank-badge.mythic {
        animation: none !important;
    }

    /* Podium on mobile: stack vertically */
    .rankings-podium {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .podium-card {
        min-height: auto !important;
    }

    /* Logo pulse stays but lighter */
    .sidebar-brand .brand-logo {
        animation: logo-pulse 6s ease-in-out infinite !important;
    }

    /* Filter HUD scrollable */
    .filter-hud form {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .card-arena:hover {
        transform: translateY(-1px) !important;
    }

    .hud-corners::before,
    .hud-corners::after {
        display: none;
    }
}

/* ============================================================
   33. REDUCED MOTION SUPPORT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .card-arena:hover,
    .player-card:hover,
    .team-card:hover,
    .tournament-card:hover,
    .stat-card:hover {
        transform: none !important;
    }
}

/* ============================================================
   34. SECTION-SPECIFIC BACKGROUNDS
   ============================================================ */
/* Players page hero bg */
.players-hero-bg {
    background:
        radial-gradient(ellipse 50% 60% at 5% 50%, rgba(0,212,255,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 95% 50%, rgba(124,92,252,0.04) 0%, transparent 70%),
        var(--grid-pattern);
    background-size: auto, auto, var(--grid-size);
}

/* Tournaments page hero bg */
.tournaments-hero-bg {
    background:
        radial-gradient(ellipse 50% 60% at 5% 50%, rgba(255,215,0,0.05) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 95% 50%, rgba(255,59,87,0.03) 0%, transparent 70%),
        var(--grid-pattern);
    background-size: auto, auto, var(--grid-size);
}

/* Rankings page hero bg */
.rankings-hero-bg {
    background:
        radial-gradient(ellipse 50% 60% at 5% 50%, rgba(255,215,0,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 95% 50%, rgba(124,92,252,0.04) 0%, transparent 70%),
        var(--grid-pattern);
    background-size: auto, auto, var(--grid-size);
}
