/* ═══════════════════════════════════════════════
   🧟 OUTBREAK PROTOCOL — ZP PANEL 2026
   Zombie Plague Command Center
   ═══════════════════════════════════════════════ */

:root {
    --bg-void: #020208;
    --bg-primary: #06060f;
    --bg-secondary: #0a0a18;
    --bg-card: rgba(8, 12, 22, 0.88);
    --bg-card-solid: #0b0f1a;
    --bg-card-hover: #0e1320;
    --bg-input: #070a14;
    --border: rgba(0, 255, 65, 0.07);
    --border-hover: rgba(0, 255, 65, 0.18);
    --border-strong: rgba(0, 255, 65, 0.3);

    --toxic: #00FF41;
    --toxic-dim: #00cc34;
    --toxic-dark: #009926;
    --toxic-glow: rgba(0, 255, 65, 0.12);
    --toxic-glow-strong: rgba(0, 255, 65, 0.3);

    --blood: #FF1744;
    --blood-dim: #d50032;
    --blood-glow: rgba(255, 23, 68, 0.15);

    --bio-yellow: #CCFF00;
    --bio-yellow-glow: rgba(204, 255, 0, 0.12);

    --cyan: #00E5FF;
    --cyan-glow: rgba(0, 229, 255, 0.12);

    --text: #b8c8c0;
    --text-bright: #dff0e6;
    --text-muted: #3e5c4a;
    --text-dim: #243530;

    --font-heading: 'Teko', sans-serif;
    --font-body: 'Barlow', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --sidebar-w: 264px;
    --radius: 8px;
}

/* Battlepass */
.bp-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
}
.bp-kicker {
    color: var(--bio-yellow);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}
.bp-hero h2 {
    color: var(--text-bright);
    font-family: var(--font-heading);
    font-size: 1.45rem;
    margin: 0 0 8px;
}
.bp-hero p {
    color: var(--text-muted);
    margin: 0;
    max-width: 680px;
    font-size: 0.88rem;
}
.bp-progress-line {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 8px;
}
.bp-progress-line strong { color: var(--bio-yellow); }
.bp-progress {
    height: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}
.bp-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--bio-yellow), #ff9f1c);
}
.bp-mini-rewards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}
.bp-mini-reward {
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    padding: 10px;
}
.bp-mini-reward small {
    display: block;
    color: var(--text-dim);
    font-size: 0.68rem;
    margin-bottom: 4px;
}
.bp-mini-reward b {
    color: var(--toxic);
    font-size: 0.82rem;
}
.bp-mission {
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    padding: 12px;
    margin-bottom: 10px;
}
.bp-mission div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.bp-mission strong {
    color: var(--toxic);
    font-size: 0.88rem;
}
.bp-mission span {
    color: var(--bio-yellow);
    font-family: var(--font-heading);
    font-size: 0.72rem;
}
.bp-mission small {
    display: block;
    color: var(--text-dim);
    margin-top: 6px;
}
.bp-weekly .bp-progress span {
    background: linear-gradient(90deg, #9b5cff, #d08cff);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── BODY & ATMOSPHERE ─── */
body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

/* Ambient light bleed */
body::before {
    content: '';
    position: fixed; inset: 0;
    background:
        radial-gradient(ellipse at 10% 90%, rgba(0,255,65,0.035) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 10%, rgba(255,23,68,0.025) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(0,229,255,0.012) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* CRT scanlines */
body::after {
    content: '';
    position: fixed; inset: 0;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 2px,
        rgba(0,255,65,0.007) 2px, rgba(0,255,65,0.007) 4px
    );
    pointer-events: none;
    z-index: 9998;
    animation: scanDrift 10s linear infinite;
}

@keyframes scanDrift {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Floating particles container */
.particles {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px; height: 2px;
    background: var(--toxic);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--toxic-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--toxic-dim); }

/* ─── LAYOUT ─── */
.layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ─── SIDEBAR ─── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-primary);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0; height: 100vh;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0; right: -1px;
    width: 1px; height: 100%;
    background: linear-gradient(180deg,
        var(--toxic) 0%, transparent 25%,
        transparent 75%, var(--blood) 100%);
    opacity: 0.25;
    pointer-events: none;
}

/* Brand / Logo */
.sidebar-brand {
    display: block;
    padding: 26px 20px 22px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.sidebar-brand::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 100%, var(--toxic-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.sidebar-brand:hover::before { opacity: 1; }

.brand-bio {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}

.bio-icon {
    color: var(--toxic);
    filter: drop-shadow(0 0 8px var(--toxic-glow-strong));
    animation: bioSpin 20s linear infinite;
    transition: filter 0.3s;
}

.sidebar-brand:hover .bio-icon {
    filter: drop-shadow(0 0 16px var(--toxic-glow-strong)) drop-shadow(0 0 30px var(--toxic-glow));
    animation-duration: 3s;
}

@keyframes bioSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sidebar-brand h1 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--toxic);
    text-shadow: 0 0 15px var(--toxic-glow-strong);
    line-height: 1;
    position: relative;
    z-index: 1;
    transition: all 0.2s;
}

.sidebar-brand:hover h1 {
    text-shadow: 0 0 20px var(--toxic-glow-strong), 0 0 40px var(--toxic-glow);
    animation: glitchText 0.4s ease;
}

@keyframes glitchText {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, 1px); filter: hue-rotate(90deg); }
    30% { transform: translate(2px, -1px); filter: hue-rotate(-90deg); }
    50% { transform: translate(-1px, -1px); filter: hue-rotate(45deg); }
    70% { transform: translate(1px, 2px); filter: hue-rotate(-45deg); }
    90% { transform: translate(0, -1px); }
}

.sidebar-brand small {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* Server Status */
.sidebar-server {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--toxic);
    box-shadow: 0 0 6px var(--toxic-glow-strong), 0 0 12px var(--toxic-glow);
    animation: dotPulse 2s ease infinite;
    flex-shrink: 0;
}

.status-dot.offline {
    background: var(--blood);
    box-shadow: 0 0 6px var(--blood-glow);
    animation: none;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.player-count {
    margin-left: auto;
    color: var(--toxic-dim);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 400;
}

.server-info-line {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    color: var(--text-dim);
}

.server-info-line span:last-child { color: var(--text-muted); font-size: 0.68rem; }

.btn-connect {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 7px 0;
    width: 100%;
    background: rgba(0,255,65,0.06);
    border: 1px solid rgba(0,255,65,0.15);
    border-radius: 5px;
    color: var(--toxic);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-connect:hover {
    background: rgba(0,255,65,0.12);
    border-color: var(--toxic);
    box-shadow: 0 0 20px var(--toxic-glow), inset 0 0 20px var(--toxic-glow);
}

.connect-pulse {
    width: 6px; height: 6px;
    background: var(--toxic);
    border-radius: 50%;
    animation: dotPulse 1.5s ease infinite;
}

/* Navigation */
.sidebar-nav { padding: 12px 0; flex: 1; overflow-y: auto; }

.nav-section { padding: 0 12px; margin-bottom: 2px; }

.nav-section-title {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-dim);
    padding: 14px 10px 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 1px;
    border: 1px solid transparent;
    position: relative;
}

.nav-link:hover {
    color: var(--text-bright);
    background: rgba(0,255,65,0.03);
    border-color: rgba(0,255,65,0.05);
}

.nav-link.active {
    color: var(--toxic);
    background: rgba(0,255,65,0.05);
    border-color: rgba(0,255,65,0.1);
    font-weight: 600;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 2px;
    background: var(--toxic);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px var(--toxic-glow-strong);
}

.nav-icon {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.6;
    flex-shrink: 0;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon { opacity: 1; }

/* Sidebar Footer */
.sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    font-size: 0.6rem;
    color: var(--text-dim);
    text-align: center;
    font-family: var(--font-mono);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 8px;
}

.social-links a {
    color: var(--text-dim);
    transition: all 0.25s;
    display: flex;
}

.social-links a:hover { color: var(--toxic); transform: translateY(-2px); }

/* ─── MAIN CONTENT ─── */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── TOPBAR ─── */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
    height: 56px;
    background: rgba(6, 6, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
    z-index: 50;
}

.topbar-left h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.topbar-right { display: flex; align-items: center; gap: 10px; }

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 5px;
    background: rgba(0,255,65,0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s;
}

.user-badge:hover { border-color: var(--border-hover); background: rgba(0,255,65,0.06); }

.user-avatar {
    width: 30px; height: 30px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--toxic-dark), var(--bg-void));
    border: 1px solid rgba(0,255,65,0.15);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--toxic);
    letter-spacing: 1px;
}

.user-info { display: flex; flex-direction: column; line-height: 1.2; }

.user-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
}

.credits-badge {
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--bio-yellow);
}

.content {
    padding: 24px 28px;
    flex: 1;
    animation: contentIn 0.35s ease-out;
}

@keyframes contentIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--bg-card-solid);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover { border-color: var(--border-hover); color: var(--text-bright); }

.btn-toxic, .btn-green {
    background: rgba(0,255,65,0.06);
    border-color: rgba(0,255,65,0.2);
    color: var(--toxic);
}

.btn-toxic:hover, .btn-green:hover {
    background: rgba(0,255,65,0.12);
    border-color: var(--toxic-dim);
    box-shadow: 0 0 15px var(--toxic-glow);
}

.btn-red, .btn-blood {
    background: rgba(255,23,68,0.06);
    border-color: rgba(255,23,68,0.2);
    color: var(--blood);
}

.btn-red:hover, .btn-blood:hover {
    background: rgba(255,23,68,0.12);
    border-color: var(--blood);
    box-shadow: 0 0 15px var(--blood-glow);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover { color: var(--blood); border-color: rgba(255,23,68,0.15); }

.btn-sm { padding: 5px 12px; font-size: 0.75rem; }
.btn-xs { padding: 3px 8px; font-size: 0.68rem; }
.btn[disabled] { opacity: 0.3; pointer-events: none; }
.w-full { width: 100%; }

/* ─── CARDS ─── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: border-color 0.3s;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: -1px; left: 24px; right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--toxic-dark), transparent);
    opacity: 0.35;
}

.card:hover { border-color: var(--border-hover); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-bright);
}

/* ─── STAT CARDS ─── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent, var(--toxic));
}

.stat-card::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at top left, var(--accent-glow, var(--toxic-glow)) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::after { opacity: 1; }
.stat-card:hover { transform: translateY(-2px); border-color: rgba(0,255,65,0.12); }

.stat-card .value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1;
    position: relative;
    z-index: 1;
}

.stat-card .label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 5px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.stat-card .icon-bg {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    opacity: 0.05;
    z-index: 0;
}

.stat-red { --accent: var(--blood); --accent-glow: var(--blood-glow); }
.stat-green { --accent: var(--toxic); --accent-glow: var(--toxic-glow); }
.stat-blue { --accent: var(--cyan); --accent-glow: var(--cyan-glow); }
.stat-yellow { --accent: var(--bio-yellow); --accent-glow: var(--bio-yellow-glow); }

/* ─── TABLES ─── */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }

thead th {
    font-family: var(--font-mono);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.62rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0,255,65,0.025);
    color: var(--text);
}

tbody tr { transition: background 0.15s; }
tbody tr:hover { background: rgba(0,255,65,0.015); }

/* ─── FORMS ─── */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 9px 13px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: all 0.25s;
    outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--toxic-dim);
    box-shadow: 0 0 0 2px var(--toxic-glow), 0 0 15px var(--toxic-glow);
}

.form-input::placeholder { color: var(--text-dim); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check input[type="checkbox"] { accent-color: var(--toxic); width: 15px; height: 15px; }

/* ─── ALERTS ─── */
.alert {
    padding: 12px 18px;
    border-radius: 5px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: alertIn 0.4s ease;
}

.alert-icon {
    width: 22px; height: 22px;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--font-mono);
}

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

.alert-success { background: rgba(0,255,65,0.04); border-color: rgba(0,255,65,0.12); color: var(--toxic); }
.alert-success .alert-icon { background: rgba(0,255,65,0.1); color: var(--toxic); }

.alert-error { background: rgba(255,23,68,0.04); border-color: rgba(255,23,68,0.12); color: var(--blood); }
.alert-error .alert-icon { background: rgba(255,23,68,0.1); color: var(--blood); }

.alert-info { background: rgba(0,229,255,0.04); border-color: rgba(0,229,255,0.12); color: var(--cyan); }
.alert-info .alert-icon { background: rgba(0,229,255,0.1); color: var(--cyan); }

.alert-reward { background: rgba(204,255,0,0.04); border-color: rgba(204,255,0,0.12); color: var(--bio-yellow); }
.alert-reward .alert-icon { background: rgba(204,255,0,0.1); color: var(--bio-yellow); }

/* ─── BADGES ─── */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    border: 1px solid;
}

.badge-online { background: rgba(0,255,65,0.06); color: var(--toxic); border-color: rgba(0,255,65,0.12); }
.badge-offline { background: rgba(255,23,68,0.06); color: var(--blood); border-color: rgba(255,23,68,0.12); }
.badge-admin { background: rgba(204,255,0,0.06); color: var(--bio-yellow); border-color: rgba(204,255,0,0.12); }
.badge-user { background: rgba(0,229,255,0.06); color: var(--cyan); border-color: rgba(0,229,255,0.12); }

/* ─── STORE ─── */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.store-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.store-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--toxic-dim), var(--bio-yellow), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}

.store-item:hover::before { opacity: 0.6; }

.store-item:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 25px var(--toxic-glow);
}

.store-item .item-category {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--toxic-dim);
    margin-bottom: 6px;
}

.store-item .item-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.store-item .item-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

.store-item .item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.store-item .item-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bio-yellow);
    text-shadow: 0 0 10px var(--bio-yellow-glow);
}

/* ─── AUTH ─── */
.auth-container { max-width: 400px; margin: 50px auto; }

.auth-container .card {
    border-color: rgba(0,255,65,0.1);
    box-shadow: 0 0 80px rgba(0,255,65,0.02);
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--toxic);
    text-shadow: 0 0 20px var(--toxic-glow-strong);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.auth-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.auth-footer a { color: var(--toxic-dim); text-decoration: none; }
.auth-footer a:hover { color: var(--toxic); text-decoration: underline; }

/* ─── PAGINATION ─── */
.pagination { display: flex; gap: 4px; margin-top: 18px; justify-content: center; }

.pg-btn {
    padding: 7px 12px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    transition: all 0.2s;
}

.pg-btn:hover, .pg-btn.active {
    border-color: var(--toxic-dim);
    color: var(--toxic);
}

/* ─── MAP PREVIEW ─── */
.map-preview {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.map-preview img { width: 100%; height: auto; display: block; }

/* ─── PLAYERS ─── */
.player-row .player-name { font-weight: 600; color: var(--text-bright); }
.player-row .player-score { font-family: var(--font-heading); font-weight: 700; color: var(--bio-yellow); }
.player-row .player-time { color: var(--text-muted); font-size: 0.78rem; font-family: var(--font-mono); }

/* ─── BILLING ─── */
.billing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.billing-option {
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.billing-option:hover {
    border-color: rgba(204,255,0,0.3);
    box-shadow: 0 0 20px var(--bio-yellow-glow);
}

.billing-option .amount {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bio-yellow);
}

.billing-option .price {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 4px;
    font-family: var(--font-mono);
}

/* ─── DOCUMENT ─── */
.doc-content { line-height: 1.8; font-size: 0.9rem; }
.doc-content h1, .doc-content h2, .doc-content h3 { font-family: var(--font-heading); margin: 18px 0 8px; color: var(--text-bright); letter-spacing: 1px; }
.doc-content p { margin-bottom: 12px; }
.doc-content ul, .doc-content ol { padding-left: 20px; margin-bottom: 12px; }

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-dim); }
.empty-state .icon { font-size: 2.5rem; margin-bottom: 10px; opacity: 0.15; }
.empty-state p { font-size: 0.85rem; }

/* ─── GRID UTILS ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; gap: 8px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-red { color: var(--blood); }
.text-green { color: var(--toxic); }
.text-yellow { color: var(--bio-yellow); }
.text-sm { font-size: 0.8rem; }
.text-xs { font-size: 0.68rem; }
.font-heading { font-family: var(--font-heading); }

/* Login page - hide sidebar/topbar for fullscreen */
body.page-login .sidebar,
body.page-login .topbar,
body.page-login .mobile-toggle,
body.page-login .particles { display: none !important; }

body.page-login .main-content { margin-left: 0; }
body.page-login .content { padding: 0; height: 100vh; }

/* ─── MOBILE ─── */
.mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px; right: 20px;
    z-index: 200;
    width: 48px; height: 48px;
    border-radius: 6px;
    background: var(--bg-primary);
    border: 1px solid var(--toxic-dark);
    color: var(--toxic);
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 0 15px var(--toxic-glow);
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .sidebar.open { transform: translateX(0); }
    .mobile-toggle { display: flex; }
    .main-content { margin-left: 0; }
    .content { padding: 16px; }
    .topbar { padding: 0 16px; height: 48px; }
    .topbar-left h2 { font-size: 1rem; letter-spacing: 2px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .store-grid { grid-template-columns: 1fr; }
    .user-info { display: none; }
    .theme-label { display: none; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   🩸 BLOOD THEME TOGGLE
   ═══════════════════════════════════════════════ */
body.theme-blood {
    --toxic: #FF1744;
    --toxic-dim: #d50032;
    --toxic-dark: #9b0023;
    --toxic-glow: rgba(255, 23, 68, 0.12);
    --toxic-glow-strong: rgba(255, 23, 68, 0.3);
    --blood: #FF1744;
    --blood-dim: #d50032;
    --blood-glow: rgba(255, 23, 68, 0.15);
    --border: rgba(255, 23, 68, 0.07);
    --border-hover: rgba(255, 23, 68, 0.18);
    --border-strong: rgba(255, 23, 68, 0.3);
    --text: #c8b8b8;
    --text-bright: #f0e0e0;
    --text-muted: #5c3a3a;
    --text-dim: #352424;
}

body.theme-blood::after {
    background: repeating-linear-gradient(
        0deg, transparent, transparent 2px,
        rgba(255,23,68,0.006) 2px, rgba(255,23,68,0.006) 4px
    );
}

body.theme-blood::before {
    background:
        radial-gradient(ellipse at 10% 90%, rgba(255,23,68,0.04) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 10%, rgba(255,80,80,0.025) 0%, transparent 55%);
}

/* Theme toggle button */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(0,255,65,0.05);
    border: 1px solid rgba(0,255,65,0.2);
    color: var(--toxic);
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    animation: toggleAttention 3s ease-in-out 2s 3;
}

.theme-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 4px var(--toxic-glow-strong));
    transition: all 0.3s;
}

.theme-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.theme-toggle:hover {
    background: rgba(0,255,65,0.12);
    border-color: var(--toxic);
    box-shadow: 0 0 18px var(--toxic-glow), inset 0 0 12px var(--toxic-glow);
    transform: scale(1.05);
}

.theme-toggle:hover .theme-icon {
    filter: drop-shadow(0 0 8px var(--toxic-glow-strong));
    transform: rotate(15deg);
}

@keyframes toggleAttention {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 14px var(--toxic-glow), 0 0 28px var(--toxic-glow); }
}

body.theme-blood .theme-toggle {
    background: rgba(255,23,68,0.05);
    border-color: rgba(255,23,68,0.2);
    color: var(--blood);
}

body.theme-blood .theme-toggle:hover {
    background: rgba(255,23,68,0.12);
    border-color: var(--blood);
    box-shadow: 0 0 18px var(--blood-glow), inset 0 0 12px var(--blood-glow);
}

/* ═══════════════════════════════════════════════
   ⌨️ TYPING ANIMATION
   ═══════════════════════════════════════════════ */
.typing-text {
    display: inline;
    border-right: 2px solid var(--toxic);
    animation: blink-caret 0.8s step-end infinite;
    padding-right: 2px;
}

.typing-text.done {
    border-right-color: transparent;
    animation: none;
}

@keyframes blink-caret {
    50% { border-right-color: transparent; }
}

/* ═══════════════════════════════════════════════
   🔐 LOGIN FULLSCREEN
   ═══════════════════════════════════════════════ */
.login-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-void);
    overflow: hidden;
}

.login-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 70%, rgba(0,255,65,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(255,23,68,0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 0%, var(--bg-void) 100%);
}

/* Animated grid lines */
.login-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,255,65,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,65,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPan 20s linear infinite;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

@keyframes gridPan {
    from { transform: translate(0, 0); }
    to { transform: translate(60px, 60px); }
}

.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
    animation: loginIn 0.6s ease-out;
}

@keyframes loginIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-bio-icon {
    display: block;
    margin: 0 auto 16px;
    color: var(--toxic);
    filter: drop-shadow(0 0 20px var(--toxic-glow-strong)) drop-shadow(0 0 40px var(--toxic-glow));
    animation: bioSpin 15s linear infinite;
}

.login-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--toxic);
    text-shadow: 0 0 30px var(--toxic-glow-strong), 0 0 60px var(--toxic-glow);
    line-height: 1;
    margin-bottom: 6px;
}

.login-subtitle {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 28px;
}

.login-form-card {
    background: rgba(8, 12, 22, 0.9);
    border: 1px solid rgba(0,255,65,0.1);
    border-radius: 10px;
    padding: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 80px rgba(0,255,65,0.03), 0 30px 60px rgba(0,0,0,0.5);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: rgba(0,255,65,0.08);
    border: 1px solid rgba(0,255,65,0.25);
    border-radius: 6px;
    color: var(--toxic);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    background: rgba(0,255,65,0.15);
    border-color: var(--toxic);
    box-shadow: 0 0 30px var(--toxic-glow), inset 0 0 30px var(--toxic-glow);
}

.login-btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(0,255,65,0.05) 50%, transparent 60%);
    animation: loginBtnShine 3s ease-in-out infinite;
}

@keyframes loginBtnShine {
    0%, 100% { transform: translateX(-100%) rotate(0); }
    50% { transform: translateX(100%) rotate(0); }
}

.login-server-ip {
    text-align: center;
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
}

.login-server-ip code {
    color: var(--text-muted);
    background: rgba(0,255,65,0.04);
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid rgba(0,255,65,0.06);
}

/* ═══════════════════════════════════════════════
   📊 STAT CARDS STAGGER ANIMATION
   ═══════════════════════════════════════════════ */
.stat-card {
    animation: statIn 0.5s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.08s; }
.stat-card:nth-child(3) { animation-delay: 0.16s; }
.stat-card:nth-child(4) { animation-delay: 0.24s; }

@keyframes statIn {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════════════════════
   🏆 TOP PLAYERS LEADERBOARD
   ═══════════════════════════════════════════════ */
.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
    animation: lbIn 0.4s ease-out backwards;
}

.leaderboard-item:last-child { border-bottom: none; }
.leaderboard-item:hover { padding-left: 6px; }

.leaderboard-item:nth-child(1) { animation-delay: 0.05s; }
.leaderboard-item:nth-child(2) { animation-delay: 0.1s; }
.leaderboard-item:nth-child(3) { animation-delay: 0.15s; }
.leaderboard-item:nth-child(4) { animation-delay: 0.2s; }
.leaderboard-item:nth-child(5) { animation-delay: 0.25s; }

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

.lb-rank {
    width: 32px; height: 32px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid;
}

.lb-rank-1 { background: rgba(255,215,0,0.1); color: #FFD700; border-color: rgba(255,215,0,0.2); text-shadow: 0 0 8px rgba(255,215,0,0.3); }
.lb-rank-2 { background: rgba(192,192,192,0.08); color: #C0C0C0; border-color: rgba(192,192,192,0.15); }
.lb-rank-3 { background: rgba(205,127,50,0.08); color: #CD7F32; border-color: rgba(205,127,50,0.15); }
.lb-rank-default { background: var(--bg-input); color: var(--text-dim); border-color: var(--border); }

.lb-name { flex: 1; font-weight: 600; font-size: 0.85rem; color: var(--text-bright); }

.lb-points {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bio-yellow);
    text-shadow: 0 0 8px var(--bio-yellow-glow);
}

/* ═══════════════════════════════════════════════
   🛒 STORE ENHANCED - TYPE BADGES
   ═══════════════════════════════════════════════ */
.store-item {
    animation: storeIn 0.4s ease-out backwards;
}

.store-item:nth-child(1) { animation-delay: 0s; }
.store-item:nth-child(2) { animation-delay: 0.06s; }
.store-item:nth-child(3) { animation-delay: 0.12s; }
.store-item:nth-child(4) { animation-delay: 0.18s; }
.store-item:nth-child(5) { animation-delay: 0.24s; }
.store-item:nth-child(6) { animation-delay: 0.3s; }

@keyframes storeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.store-item:hover .item-name {
    color: var(--toxic);
    transition: color 0.3s;
}

.mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid;
}

.mode-ammo { background: rgba(0,255,65,0.06); color: var(--toxic); border-color: rgba(0,255,65,0.12); }
.mode-points { background: rgba(0,229,255,0.06); color: var(--cyan); border-color: rgba(0,229,255,0.12); }
.mode-tokens { background: rgba(204,100,255,0.06); color: #cc64ff; border-color: rgba(204,100,255,0.12); }
.mode-vip { background: rgba(255,215,0,0.06); color: #FFD700; border-color: rgba(255,215,0,0.12); }

/* ═══════════════════════════════════════════════
   👤 PROFILE ENHANCED
   ═══════════════════════════════════════════════ */
.profile-hero {
    text-align: center;
    padding: 32px 20px 24px;
    position: relative;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--toxic-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.profile-avatar-lg {
    width: 90px; height: 90px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--toxic-dark), var(--bg-void));
    border: 2px solid rgba(0,255,65,0.2);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--toxic);
    margin: 0 auto 14px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 30px var(--toxic-glow);
    animation: avatarGlow 3s ease-in-out infinite alternate;
}

@keyframes avatarGlow {
    from { box-shadow: 0 0 20px var(--toxic-glow); }
    to { box-shadow: 0 0 35px var(--toxic-glow-strong), 0 0 60px var(--toxic-glow); }
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.profile-subtitle {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.profile-stats-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.profile-stat-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-top: 3px;
    font-family: var(--font-mono);
}
