@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #000000;
    --bg2: #0a0a0a;
    --bg3: #171717;
    --purple: #38bdf8;
    --purple-light: #38bdf8;
    --purple-dark: #0284c7;
    --purple-glow: rgba(56, 189, 248, 0.4);
    --cyan: #06b6d4;
    --text: #ffffff;
    --text-muted: #9ca3af;
    --border: rgba(56, 189, 248, 0.45);
    --card: #0a0a0a;
    --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(56, 189, 248, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 80% 80%, rgba(56, 189, 248, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: env(safe-area-inset-top, 0px) 20px 0;
    height: calc(62px + env(safe-area-inset-top, 0px));
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Brand on the left (Rome RCE style: moon icon + SPINBACK RCE) */
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
}
.nav-brand .moon {
    color: var(--purple-light);
    filter: drop-shadow(0 0 8px rgba(56,189,248,0.6));
    transform: rotate(-15deg);
}
.nav-brand span { color: var(--purple-light); text-shadow: 0 0 10px rgba(56,189,248,0.55); }

/* Old nav-links + admin button now live inside the hamburger drawer.
   Keep them hidden on the public site so the header stays clean. */
.nav-links { display: none !important; }
.nav-left .btn-admin,
.nav-left .btn-discord { display: none !important; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 56px; /* space for fixed hamburger toggle on the right */
}

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border: none; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn-admin { background: #38bdf8; color: #000; }
.btn-admin:hover { background: #0284c7; }
.btn-primary { background: var(--purple); color: #000; }
.btn-primary:hover { background: var(--purple-light); box-shadow: 0 0 20px var(--purple-glow); }
.btn-outline { background: var(--purple); color: #000; border: 1.5px solid var(--purple); }
.btn-outline:hover { background: var(--purple-light); border-color: var(--purple-light); color: #000; box-shadow: 0 0 20px var(--purple-glow); }
.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-lg { padding: 13px 28px; font-size: 0.85rem; border-radius: 8px; }
.btn-cart { background: transparent; color: var(--text-muted); border: none; cursor: pointer; font-size: 1.3rem; }
.btn-cart:hover { color: var(--text); }

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
    z-index: 1;
}

.hero-pill {
    display: inline-block;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 18px;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 9vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 0;
    text-align: center;
}

.hero h1 .line1 { color: var(--text); display: block; }
.hero h1 .line2 { color: var(--purple-light); display: block; }

.hero-tagline {
    font-size: 0.78rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 16px 0 14px;
    text-align: center;
}

.hero-sub {
    max-width: 420px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 auto 36px;
    text-align: center;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(380px, 88vw);
    margin: 0 auto 56px;
    align-items: center;
}
.hero-buttons .btn-hero {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.95rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.18s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.hero-buttons .btn-hero svg { width: 18px; height: 18px; }
/* JOIN DISCORD — yellow filled with glow */
.btn-hero-discord {
    background: linear-gradient(180deg, #38bdf8 0%, #38bdf8 100%);
    color: #0a0a0a;
    box-shadow: 0 0 24px rgba(56,189,248,0.55), 0 0 56px rgba(56,189,248,0.25);
}
.btn-hero-discord:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 32px rgba(56,189,248,0.75), 0 0 72px rgba(56,189,248,0.35);
}
/* VIEW RULES — outline yellow */
.btn-hero-rules {
    background: transparent;
    color: var(--purple-light);
    border-color: rgba(56,189,248,0.55);
    box-shadow: 0 0 18px rgba(56,189,248,0.18) inset, 0 0 18px rgba(56,189,248,0.18);
}
.btn-hero-rules:hover {
    background: rgba(56,189,248,0.10);
    border-color: var(--purple-light);
    color: #bae6fd;
}
/* VISIT STORE — pink/purple filled with glow */
.btn-hero-store {
    background: linear-gradient(180deg, #a855f7 0%, #7e22ce 100%);
    color: #fff;
    box-shadow: 0 0 26px rgba(168,85,247,0.55), 0 0 60px rgba(168,85,247,0.30);
}
.btn-hero-store:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 34px rgba(168,85,247,0.75), 0 0 76px rgba(168,85,247,0.40);
}

/* Soft yellow radial glow behind the hero (Rome RCE style ambient lighting) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 45%, rgba(56,189,248,0.18), transparent 70%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(56,189,248,0.12), transparent 75%);
    pointer-events: none;
    z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-stats {
    display: flex;
    gap: 48px;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 14px 0;
}
.hero-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.22), transparent 65%);
    filter: blur(14px);
    pointer-events: none;
    z-index: -1;
}

.stat { text-align: center; }
.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(180deg, #bae6fd 0%, #38bdf8 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.55));
}
.stat-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Live server status card (Population + Queue, fed by RCON serverinfo) */
.server-status-card {
    margin: 36px auto 0;
    width: min(420px, 90vw);
    background: rgba(15, 15, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 18px 22px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.server-status-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 0;
}
.server-status-text { align-items: flex-start; min-width: 110px; }
.server-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.server-status-icon--pop { background: rgba(46, 204, 113, 0.18); color: #2ecc71; }
.server-status-icon--queue { background: rgba(243, 156, 18, 0.18); color: #f39c12; }
.server-status-icon--pop.is-offline { background: rgba(231, 76, 60, 0.18); color: #e74c3c; }
.server-status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}
.server-status-text { display: flex; flex-direction: column; }
.server-status-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.server-status-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.server-status-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    margin: 4px 0;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-hint .arrow { font-size: 1.2rem; animation: bounce 1.5s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ── PAGE SECTIONS ── */
.page-section {
    position: relative;
    z-index: 1;
    padding: 100px 48px 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -1px;
}

.section-title span { color: var(--purple-light); }

/* ── CARDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(56, 189, 248,0.2); }

.card-img { width: 100%; height: 160px; object-fit: cover; background: var(--bg3); }
.card-img-placeholder { width: 100%; height: 160px; background: linear-gradient(135deg, var(--bg3), var(--bg2)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.card-body { padding: 20px; }
.card-title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.card-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; margin-bottom: 14px; }
.card-price { font-family: 'Orbitron', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--purple-light); margin-bottom: 14px; }
.card-category { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--purple-light); opacity: 0.7; margin-bottom: 6px; }

/* ── STAFF ── */
.staff-card { text-align: center; padding: 32px 20px; }
.staff-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--purple); margin: 0 auto 14px; display: block; background: var(--bg3); }
.staff-avatar-placeholder { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--purple-dark), var(--purple)); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 14px; border: 3px solid var(--purple); }
.staff-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.staff-role { color: var(--purple-light); font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.staff-discord { color: var(--text-muted); font-size: 0.78rem; }

/* ── RULES ── */
.rule-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 14px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.rule-num { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--purple); min-width: 36px; }
.rule-title { font-weight: 700; margin-bottom: 4px; }
.rule-content { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

.rules-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 36px 0 16px;
}

.rules-category-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple-light);
}

.rules-category-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── MODAL ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal h3 { font-family: 'Orbitron', sans-serif; margin-bottom: 20px; font-size: 1.1rem; }
.modal-close { float: right; background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; margin-top: -4px; }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.5px; }
.form-control {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--purple); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control option { background: var(--bg2); }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 18px; font-size: 0.85rem; animation: slideIn 0.3s ease; max-width: 320px; }
.toast.success { border-color: #16a34a; }
.toast.error { border-color: #dc2626; }
@keyframes slideIn { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }

/* ── MISC ── */
.divider { height: 1px; background: var(--border); margin: 40px 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-purple { color: var(--purple-light); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.items-center { align-items: center; }

footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
}

footer .footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

footer .footer-logo span { color: var(--purple-light); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state p { font-size: 0.9rem; }

.payment-buttons { display: flex; flex-direction: column; gap: 8px; }

.loading { text-align: center; padding: 40px; color: var(--text-muted); }

@media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    .page-section { padding: 80px 20px 60px; }
    .hero-stats { gap: 28px; }
}

/* ════════════════════════════════════════════════════════
   ▼ HOMEPAGE V2 — UnitedRust-style redesign (May 2026)
   ════════════════════════════════════════════════════════ */

/* — Nav brand with logo image — */
.nav-brand--logo { gap: 8px; }
.nav-brand--logo .brand-logo {
    width: 34px; height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.45));
}
.nav-brand--logo .brand-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    font-size: 1rem;
}
.nav-brand--logo .brand-text em {
    font-style: normal;
    color: var(--purple-light);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
}

/* Sign-in Discord button (top-right) */
.btn-discord-signin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5865f2;
    color: #fff;
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.18s;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
}
.btn-discord-signin:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.55);
}
@media (max-width: 480px) {
    .btn-discord-signin span { display: none; }
    .btn-discord-signin { padding: 9px 12px; }
}
/* Reserve room on the right for the fixed hamburger toggle injected by menu.js */
nav .nav-actions { margin-right: 56px; }

/* — Hero v2 (logo + Unity title + tagline) — */
.hero--v2 {
    padding: 90px 24px 40px;
    min-height: auto;
    background:
        radial-gradient(ellipse 60% 50% at 50% 30%, rgba(56, 189, 248, 0.18), transparent 70%),
        radial-gradient(ellipse 70% 50% at 50% 70%, rgba(6, 182, 212, 0.06), transparent 70%);
}

.hero-logo-wrap {
    margin: 0 auto 14px;
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
}
.hero-logo-img {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.55));
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero-title-v2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(3.2rem, 11vw, 5.5rem);
    line-height: 1.15;
    letter-spacing: -2px;
    margin: 0 0 28px;
    padding-bottom: 8px;
    text-align: center;
}
.hero-title-v2 .hero-title-main {
    background: linear-gradient(180deg, #38bdf8 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 40px rgba(56, 189, 248, 0.4);
}

.hero--v2 .hero-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 6px;
    margin: 0 0 28px;
}

.hero-headline {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    line-height: 1.2;
    color: #fff;
    margin: 0 auto 18px;
    max-width: 600px;
    text-align: center;
}

.hero-sub-v2 {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 auto 32px;
    max-width: 480px;
    text-align: center;
}

.hero-cta-v2 {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(340px, 88vw);
    margin: 0 auto 48px;
}
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-cta-sm { padding: 12px 24px; font-size: 0.92rem; }
.btn-cta-primary {
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.4);
}
.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(251, 146, 60, 0.55);
}
.btn-cta-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}
.btn-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.trust-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 700px;
    margin: 24px auto 0;
    padding: 0 20px;
}
.trust-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}
.trust-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
}
@media (max-width: 520px) {
    .trust-text { white-space: normal; font-size: 0.8rem; }
}

/* — Top 3 stats (orange / green / white) — */
.top-stats {
    padding: 60px 24px;
    position: relative;
    z-index: 1;
}
.top-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}
@media (min-width: 720px) {
    .top-stats-grid {
        flex-direction: row;
        justify-content: space-around;
        gap: 24px;
    }
}
.top-stat { text-align: center; }
.top-stat-num {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 7vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 8px;
}
.top-stat--orange .top-stat-num { color: #38bdf8; text-shadow: 0 0 30px rgba(251, 146, 60, 0.4); }
.top-stat--green .top-stat-num  { color: #22c55e; text-shadow: 0 0 30px rgba(34, 197, 94, 0.4); }
.top-stat--white .top-stat-num  { color: #0ea5e9; text-shadow: 0 0 30px rgba(56, 189, 248, 0.4); }
.top-stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* — Leaderboards section — */
.lb-section {
    padding: 80px 24px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.lb-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 7vw, 3.4rem);
    color: #22c55e;
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.35);
    margin: 0 auto 16px;
    line-height: 1.15;
}
.lb-sub {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.55;
    font-size: 0.95rem;
}

.lb-card {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(15, 15, 17, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 8px;
    backdrop-filter: blur(8px);
    overflow: hidden;
}
.lb-row {
    display: grid;
    grid-template-columns: 70px 1fr 80px 80px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    text-align: left;
}
.lb-row:last-child { border-bottom: none; }
.lb-row--head {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-transform: uppercase;
}
.lb-col-rank { font-weight: 600; color: #fff; }
.lb-col-name {
    font-weight: 700; color: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    min-width: 0;
}
.lb-col-kills, .lb-col-deaths { text-align: right; font-weight: 700; }
@media (max-width: 420px) {
    .lb-row { grid-template-columns: 48px 1fr 56px 56px; padding: 12px 10px; gap: 6px; font-size: 0.85rem; }
}
.lb-green { color: #22c55e; }
.lb-red   { color: #ef4444; }
.lb-empty {
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.lb-view-all {
    display: inline-block;
    margin: 22px auto 0;
    color: #38bdf8;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}
.lb-view-all:hover { color: #fdba74; text-decoration: underline; }

.lb-cta-wrap {
    margin-top: 56px;
    text-align: center;
}
.lb-cta-text {
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: 1rem;
}

/* — Big stats grid (Linked / Discord / Hours / Uptime) — */
.big-stats {
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}
@media (min-width: 720px) {
    .big-stats { grid-template-columns: repeat(2, 1fr); gap: 48px; }
}
.big-stat-icon {
    width: 56px; height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.big-stat-icon--orange { color: #38bdf8; border-color: rgba(251, 146, 60, 0.3); }
.big-stat-icon--white  { color: #fff; }
.big-stat-icon--cyan   { color: #06b6d4; border-color: rgba(6, 182, 212, 0.3); }
.big-stat-icon--green  { color: #22c55e; border-color: rgba(34, 197, 94, 0.3); }

.big-stat-num {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 7vw, 3.2rem);
    line-height: 1;
    color: #fff;
    margin-bottom: 10px;
}
.big-stat-num--orange { color: #38bdf8; text-shadow: 0 0 25px rgba(251, 146, 60, 0.4); }
.big-stat-num--cyan   { color: #06b6d4; text-shadow: 0 0 25px rgba(6, 182, 212, 0.4); }
.big-stat-num--green  { color: #22c55e; text-shadow: 0 0 25px rgba(34, 197, 94, 0.4); }

.big-stat-label {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.big-stat-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* — Footer v2 — */
.footer-v2 {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 60px 24px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.footer-brand { margin-bottom: 48px; }
.footer-logo-img {
    width: 56px; height: 56px;
    object-fit: contain;
    margin: 0 auto 14px;
    display: block;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.4));
}
.footer-brand-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: 4px;
    color: #fff;
    margin-bottom: 12px;
}
.footer-brand-desc {
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.55;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto 40px;
}
@media (min-width: 720px) {
    .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.footer-col h4 {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}
.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 6px 0;
    transition: color 0.15s;
}
.footer-col a:hover { color: #38bdf8; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 22px;
    color: var(--text-muted);
    font-size: 0.85rem;
}


/* ════════════════════════════════════════════════════════════════
   SPINBACK THEME OVERRIDE — White background, light-blue accents
   Appended 2026-05-16. Overrides the original dark/amber theme.
   ════════════════════════════════════════════════════════════════ */

:root {
    --bg: #ffffff;
    --bg2: #f8fafc;
    --bg3: #f1f5f9;
    --purple: #38bdf8;
    --purple-light: #7dd3fc;
    --purple-dark: #0ea5e9;
    --purple-glow: rgba(56, 189, 248, 0.45);
    --cyan: #0ea5e9;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: rgba(56, 189, 248, 0.35);
    --card: #ffffff;
}

body { background: #ffffff; color: var(--text); }

body::before {
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(56, 189, 248, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 80% 80%, rgba(125, 211, 252, 0.08) 0%, transparent 60%);
}

nav {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.nav-brand { color: var(--text); }
.nav-brand .moon { color: var(--purple-dark); filter: drop-shadow(0 0 8px rgba(56,189,248,0.5)); }
.nav-brand span { color: var(--purple-dark); text-shadow: none; }

/* Buttons — all light blue */
.btn-admin { background: var(--purple); color: #ffffff; }
.btn-admin:hover { background: var(--purple-dark); }
.btn-primary { background: var(--purple); color: #ffffff; }
.btn-primary:hover { background: var(--purple-dark); box-shadow: 0 0 20px var(--purple-glow); }
.btn-outline { background: var(--purple); color: #ffffff; border: 1.5px solid var(--purple); }
.btn-outline:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: #ffffff; box-shadow: 0 0 20px var(--purple-glow); }

/* Hero title — dark text on white */
.hero h1 .line1 { color: var(--text); }
.hero h1 .line2 { color: var(--purple-dark); }

/* Hero buttons (yellow gradient → light blue) */
.btn-hero-discord {
    background: linear-gradient(180deg, #7dd3fc 0%, #38bdf8 100%) !important;
    color: #ffffff !important;
}
.btn-hero-rules:hover {
    background: rgba(56, 189, 248, 0.10) !important;
    border-color: var(--purple-dark) !important;
    color: var(--purple-dark) !important;
}
.btn-hero-store {
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%) !important;
    color: #ffffff !important;
}

/* Stat numbers (yellow gradient text → light blue) */
.stat-value {
    background: linear-gradient(180deg, #7dd3fc 0%, #38bdf8 50%, #0ea5e9 100%) !important;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero V2 title (orange gradient → light blue) */
.hero-title-v2 .hero-title-main {
    background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 100%) !important;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CTA primary (orange → light blue) */
.btn-cta-primary {
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%) !important;
    color: #ffffff !important;
}
.btn-cta-ghost {
    color: var(--purple-dark) !important;
    border: 2px solid var(--purple) !important;
    background: rgba(56, 189, 248, 0.06) !important;
}
.btn-cta-ghost:hover { background: rgba(56, 189, 248, 0.15) !important; }

/* Cards — white with subtle border */
.card, .lb-card, .top-stat, .big-stat {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

/* Leaderboard rows */
.lb-row { color: var(--text); border-bottom: 1px solid rgba(15, 23, 42, 0.06); }
.lb-row--head { color: var(--text-muted); }

/* Footer */
.footer-v2, footer {
    background: #f8fafc !important;
    color: var(--text);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.footer-v2 a, footer a { color: var(--text-muted); }
.footer-v2 a:hover, footer a:hover { color: var(--purple-dark); }
.footer-brand-title, .footer-col h4 { color: var(--text); }
.footer-logo { color: var(--text); }
.footer-logo span { color: var(--purple-dark); }

/* Modals */
.modal, .modal-overlay {
    background: rgba(15, 23, 42, 0.45) !important;
}
.modal-content, .modal-box {
    background: #ffffff !important;
    color: var(--text) !important;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

/* Inputs */
input, select, textarea {
    background: #ffffff !important;
    color: var(--text) !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--purple) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

/* Hero pill */
.hero-pill { color: var(--text-muted); border-color: var(--border); }

/* Trust strip */
.trust-text { color: var(--text-muted); }
.trust-line { background: rgba(15, 23, 42, 0.15); }

/* Big stat numbers default text color (dark on white) */
.big-stat-num, .top-stat-num { color: var(--text); }
.big-stat-label, .top-stat-label { color: var(--text-muted); }
.big-stat-desc { color: var(--text-muted); }

/* Brand text override (Unity → keep but in dark on white) */
.brand-text { color: #0ea5e9 !important; }
.brand-text em { color: #38bdf8 !important; font-style: normal; }
.nav-brand--logo .brand-text { color: #0ea5e9 !important; }
.nav-brand--logo .brand-text em { color: #38bdf8 !important; }

/* Section headings */
.lb-title, .lb-sub { color: var(--text); }
.lb-sub { color: var(--text-muted); }
.lb-view-all { color: var(--purple-dark); }
.lb-cta-text { color: var(--text-muted); }

/* Discord sign-in nav button — keep Discord brand color */
.btn-discord-signin {
    background: #5865f2 !important;
    color: #ffffff !important;
}

/* Logo sizing — the GIF is bigger, normalize */
.brand-logo { height: 36px; width: auto; }
.hero-logo-img { max-height: 140px; width: auto; }
.footer-logo-img { height: 48px; width: auto; }

/* iOS Safari fallback — solid blue instead of gradient-clip-text (which renders as a blue rectangle on iOS) */
.hero-title-v2 .hero-title-main {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: #0ea5e9 !important;
    text-shadow: 0 2px 12px rgba(56, 189, 248, 0.25);
}
.stat-value {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: #0ea5e9 !important;
}
