/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #FFD700;
  --gold-light: #FFE55C;
  --gold-dark: #B8960C;
  --bg: #0A0A0F;
  --bg-card: #111118;
  --bg-dark: #070709;
  --surface: #16161F;
  --surface2: #1E1E2A;
  --border: rgba(255,215,0,0.12);
  --border-subtle: rgba(255,255,255,0.06);
  --text: #E8E8F0;
  --text-muted: #8888A0;
  --text-dim: #555568;
  --discord: #5865F2;
  --red: #E74C3C;
  --green: #2ECC71;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 40px rgba(255,215,0,0.15);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ─── UTILITY ───────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.gold { color: var(--gold); }
.gold-gradient {
  background: linear-gradient(135deg, #FFD700 0%, #FFF176 50%, #FFB300 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.85);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(10,10,15,0.97);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-icon { font-size: 1.5rem; }
.logo-text { font-size: 1.25rem; letter-spacing: -0.01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  justify-content: flex-end;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--text); background: var(--surface); }

.btn-discord {
  background: var(--discord) !important;
  color: white !important;
  font-weight: 600 !important;
}

.btn-discord:hover { opacity: 0.9; transform: translateY(-1px); }

.account-nav { position: relative; }
.account-link { background: var(--gold) !important; color: var(--bg) !important; font-weight: 700 !important; white-space: nowrap; }
.account-link:hover { background: var(--gold-light) !important; transform: translateY(-1px); }

.btn-admin {
  background: var(--gold) !important;
  color: var(--bg) !important;
  font-weight: 700 !important;
}

.btn-admin:hover { background: var(--gold-light) !important; transform: translateY(-1px); }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border-subtle);
  gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-link {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}

.mobile-link:hover { color: var(--text); background: var(--surface); }
.mobile-discord {
  background: var(--discord);
  color: white !important;
  text-align: center;
  margin-top: 8px;
}

.mobile-admin {
  background: var(--gold);
  color: var(--bg) !important;
  text-align: center;
  font-weight: 700;
}
.mobile-account-link { background: var(--gold); color: var(--bg) !important; text-align: center; font-weight: 700; }

.notification-nav {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.notification-bell {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.notification-bell:hover {
  border-color: rgba(255,215,0,0.4);
  background: rgba(255,215,0,0.08);
}

.bell-icon { font-size: 1.05rem; }

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 0.64rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 5px;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(360px, calc(100vw - 28px));
  max-height: min(420px, 60vh);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(16, 18, 25, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.44);
  z-index: 200;
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: var(--text);
}

.notification-panel-header button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.notification-panel-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.notification-action {
  flex: 1;
  border: 1px solid rgba(255,215,0,0.2);
  background: rgba(255,215,0,0.08);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.notification-action.secondary {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.notification-list {
  max-height: 360px;
  overflow: auto;
  padding: 8px;
}

.notification-entry {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.02);
  margin-bottom: 8px;
}

.notification-entry.win {
  border-color: rgba(46, 204, 113, 0.2);
}

.notification-entry.lose {
  border-color: rgba(231, 76, 60, 0.2);
}

.notification-entry.info {
  border-color: rgba(255,215,0,0.2);
}

.notification-entry-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  font-size: 1rem;
}

.notification-entry.win .notification-entry-icon { background: rgba(46, 204, 113, 0.13); }
.notification-entry.lose .notification-entry-icon { background: rgba(231, 76, 60, 0.13); }
.notification-entry.info .notification-entry-icon { background: rgba(255, 215, 0, 0.13); }

.notification-entry strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.notification-entry p {
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.notification-entry time {
  display: block;
  margin-top: 5px;
  color: var(--text-dim);
  font-size: 0.66rem;
}

.notification-empty {
  padding: 18px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ─── NOTIFICATIONS ─────────────────────────────────────────── */
#notificationCenter {
  position: fixed;
  top: 86px;
  right: 18px;
  z-index: 140;
  width: min(340px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.notification-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(20, 22, 29, 0.95);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: translateX(18px);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: auto;
}

.notification-item.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-item.success {
  border-color: rgba(46, 204, 113, 0.4);
  background: rgba(13, 26, 18, 0.96);
}

.notification-item.error {
  border-color: rgba(231, 76, 60, 0.42);
  background: rgba(35, 15, 15, 0.96);
}

.notification-item.info {
  border-color: rgba(255, 215, 0, 0.25);
  background: rgba(20, 18, 12, 0.96);
}

.notification-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: rgba(255,255,255,0.05);
}

.notification-item.success .notification-icon { background: rgba(46, 204, 113, 0.18); }
.notification-item.error .notification-icon { background: rgba(231, 76, 60, 0.18); }
.notification-item.info .notification-icon { background: rgba(255, 215, 0, 0.16); }

.notification-body { display: grid; gap: 3px; }
.notification-title { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.notification-message { font-size: 0.8rem; line-height: 1.45; color: var(--text-muted); }
.notification-close {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 2px;
}

@media (max-width: 640px) {
  #notificationCenter {
    top: 76px;
    right: 12px;
    width: min(280px, calc(100vw - 18px));
  }

  .notification-item {
    padding: 10px 11px 10px 10px;
  }
}

/* ─── ACCOUNT PAGE ─────────────────────────────────────────── */
.account-page { min-height: 100vh; background: radial-gradient(circle at 15% 10%, rgba(255,215,0,0.08), transparent 34%), var(--bg); }
.account-nav-actions { display: flex; align-items: center; gap: 10px; }
.account-back, .account-logout-top { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 8px; font-size: 0.86rem; font-weight: 700; }
.account-back { color: var(--text-muted); border: 1px solid var(--border-subtle); }
.account-back:hover { color: var(--text); border-color: var(--gold); }
.account-logout-top { width: auto; margin: 0; background: var(--gold); color: var(--bg); border: 0; }
.account-logout-top:hover { color: var(--bg); background: var(--gold-light); }
.account-main { max-width: 1080px; margin: 0 auto; padding: 120px 24px 64px; }
.account-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.account-heading h1 { margin-top: 8px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; }
.account-heading p { color: var(--text-muted); margin-top: 8px; }
.account-status { padding: 8px 12px; border: 1px solid rgba(255,215,0,0.3); border-radius: 999px; color: var(--gold); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.account-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.account-metric { padding: 18px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 10px; }
.account-metric span, .account-metric small { display: block; color: var(--text-muted); font-size: 0.78rem; }
.account-metric strong { display: block; color: var(--text); font-size: 1.7rem; margin: 5px 0 2px; }
.account-metric small { color: var(--text-dim); }
.account-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 18px; }
.account-panel { padding: 22px; background: rgba(17,17,24,0.9); border: 1px solid var(--border-subtle); border-radius: 12px; }
.account-panel-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.account-panel-heading > span { font-size: 1.35rem; }
.account-panel h2 { font-size: 1.05rem; }
.account-panel-heading p { color: var(--text-muted); font-size: 0.78rem; margin-top: 2px; }
.account-live-badge { margin-left: auto; padding: 4px 8px; border: 1px solid rgba(46,204,113,0.35); border-radius: 999px; color: var(--green); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; }
.account-loading-line { color: var(--text-muted); font-size: 0.8rem; grid-column: 1 / -1; }
.account-wallet-panel { margin-bottom: 18px; border-color: rgba(255,215,0,0.18); background: linear-gradient(145deg, rgba(30,30,42,0.96), rgba(17,17,24,0.92)); }
.account-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.account-metrics .account-metric { padding: 14px; background: var(--surface); }
.account-metrics .account-metric strong { font-size: 1.35rem; }
.application-panel { max-width: 760px; margin: 40px auto; }
.application-form { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; }
.application-form label { display:grid; gap:7px; color:var(--text-muted); font-size:.8rem; font-weight:700; }
.application-form input, .application-form select { width:100%; background:var(--surface); color:var(--text); border:1px solid var(--border-subtle); border-radius:8px; padding:11px 13px; font:inherit; }
.application-form label:nth-child(4), .application-form label:nth-child(5), .application-form label:nth-child(6), .application-form button { grid-column:1 / -1; }
.application-form button { justify-content:center; margin-top:8px; }
.btn-admin-apply { color:var(--gold); }
@media (max-width: 640px) { .application-form { grid-template-columns:1fr; } .application-form label, .application-form button { grid-column:auto; } }
.live-team a, .active-fixture a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); }
.live-team a:hover, .active-fixture a:hover { color: var(--gold); }
.account-detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.account-detail-list div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid var(--border-subtle); font-size: 0.85rem; }
.account-detail-list span { color: var(--text-muted); }
.account-detail-list strong { color: var(--text); text-align: right; overflow-wrap: anywhere; }
.account-state { max-width: 560px; margin: 100px auto; padding: 36px; text-align: center; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; }
.account-state h1 { margin-bottom: 8px; }
.account-state p { color: var(--text-muted); margin-bottom: 20px; }

/* ─── HALL OF FAME ─────────────────────────────────────────── */
.hall-page { min-height: 100vh; background: radial-gradient(circle at 85% 8%, rgba(255,215,0,0.08), transparent 32%), var(--bg); }
.hall-nav-actions { display: flex; gap: 10px; align-items: center; }
.hall-back, .hall-account { padding: 8px 14px; border-radius: 8px; font-size: 0.84rem; font-weight: 700; white-space: nowrap; }
.hall-back { color: var(--text-muted); border: 1px solid var(--border-subtle); }
.hall-account { color: var(--bg); background: var(--gold); }
.hall-main { max-width: 1120px; margin: 0 auto; padding: 120px 24px 72px; }
.hall-heading { margin-bottom: 32px; }
.hall-heading h1 { font-size: clamp(2.3rem, 6vw, 4.5rem); line-height: 1; margin: 10px 0; }
.hall-heading p { color: var(--text-muted); }
.hall-season-picker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--text-muted); font-size: 0.82rem; }
.hall-season-picker select { min-width: 210px; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.hall-season { margin-bottom: 34px; padding: 24px; background: rgba(17,17,24,0.86); border: 1px solid var(--border-subtle); border-radius: 14px; }
.hall-season-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.hall-season-heading h2 { margin-top: 6px; font-size: 1.65rem; }
.hall-date { color: var(--text-dim); font-size: 0.78rem; }
.hall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hall-category { padding: 16px; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 10px; }
.hall-category-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.hall-category-heading span { font-size: 1.2rem; }
.hall-category-heading h2 { font-size: 0.98rem; }
.hall-row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border-subtle); font-size: 0.82rem; }
.hall-rank { color: var(--text-dim); }
.hall-winner .hall-rank, .hall-winner strong { color: var(--gold); }
.hall-player { min-width: 0; color: var(--text-muted); overflow-wrap: anywhere; }
.hall-player span { color: var(--text); }
.hall-player small { display: block; color: var(--text-dim); font-size: 0.65rem; }
.hall-row strong { color: var(--text); white-space: nowrap; }
.hall-empty, .hall-state { color: var(--text-muted); text-align: center; padding: 28px; }

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #FFD700 0%, transparent 70%);
  top: -100px; left: -150px;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #FF8C00 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.orb3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #5865F2 0%, transparent 70%);
  top: 40%; left: 50%;
  transform: translateX(-50%);
  animation: orbFloat 12s ease-in-out infinite;
  opacity: 0.2;
}

.field-lines {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,215,0,0.02) 0px,
      rgba(255,215,0,0.02) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,215,0,0.02) 0px,
      rgba(255,215,0,0.02) 1px,
      transparent 1px,
      transparent 80px
    );
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-num::after { content: '+'; font-size: 1.4rem; }

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

.hero-ball {
  position: absolute;
  font-size: 12rem;
  opacity: 0.04;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  animation: ballSpin 20s linear infinite;
}

@keyframes ballSpin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #FFD700, #FFB300);
  color: #0A0A0F;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,215,0,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-room {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}

.btn-room:hover {
  background: var(--surface);
  border-color: var(--border);
  transform: translateY(-1px);
}

.section-live { background: #0d1015; border-top: 1px solid rgba(255,215,0,0.12); border-bottom: 1px solid rgba(255,215,0,0.12); }
.live-tag { color: #ff6b6b; border-color: rgba(255,107,107,0.35); }
.live-header { margin-bottom: 30px; }
.live-auth, .live-code { display: flex; align-items: center; gap: 16px; margin: 0 auto 18px; max-width: 900px; padding: 16px 18px; background: #151922; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; }
.live-auth > div { flex: 1; }
.live-auth p, .live-code span { color: var(--text-muted); font-size: 0.82rem; margin-top: 4px; }
.live-room-picker { display: flex; align-items: center; justify-content: flex-end; gap: 10px; max-width: 900px; margin: 0 auto 18px; }
.live-room-picker label { color: var(--text-muted); font-size: 0.78rem; font-weight: 700; }
.live-room-picker select { min-width: 230px; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; background: #0e1219; color: var(--text); font: inherit; }
.player-stats { display: flex; flex-wrap: wrap; gap: 10px 18px; max-width: 900px; margin: 0 auto 18px; padding: 14px 18px; background: #151922; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; }
.player-stats span { color: var(--text-muted); font-size: 0.78rem; }
.player-stats b { color: var(--gold); margin-left: 4px; }
.live-code label { color: var(--text-muted); font-size: 0.82rem; }
.live-code select { background: #0e1219; border: 1px solid rgba(255,255,255,0.12); border-radius: 7px; color: var(--text); padding: 10px; }
.live-code strong { color: var(--gold); font-size: 1.3rem; letter-spacing: 0.12em; }
.live-code b { color: var(--gold); }
.live-logout { white-space: nowrap; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.live-card { position: relative; overflow: hidden; background: linear-gradient(145deg, rgba(28,34,46,0.98), rgba(15,18,26,0.98)); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 20px; box-shadow: 0 18px 45px rgba(0,0,0,0.28); }
.live-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.7; }
.live-card-top, .live-score, .live-bet-form { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.live-room { color: var(--gold); font-weight: 700; }
.live-match-id { display: block; color: var(--text-dim); font-size: 0.67rem; margin-top: 3px; }
.live-now { display: inline-flex; align-items: center; gap: 5px; color: #ff8585; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; }
.live-now i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #ff5d5d; box-shadow: 0 0 0 4px rgba(255,93,93,0.12); animation: livePulse 1.7s infinite; }
@keyframes livePulse { 50% { opacity: 0.45; transform: scale(0.78); } }
.live-screen { margin: 18px 0 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; background: #080a0d; }
.live-screen-header { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; color: var(--text-muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.live-screen-header span:last-child { color: #ff8585; }
.live-screen-frame { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border: 0; background: #050608; }
.live-screen-fallback { display: block; padding: 8px 12px 10px; color: var(--gold); font-size: 0.72rem; font-weight: 700; }
.live-screen-unavailable { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 20px; color: var(--text-dim); font-size: 0.78rem; text-align: center; }
.live-score { margin: 24px 0; }
.live-score strong { font-size: 2.15rem; white-space: nowrap; }
.live-score i { color: var(--text-dim); font-style: normal; }
.live-team { display: flex; flex-direction: column; gap: 6px; max-width: 38%; font-size: 0.95rem; }
.live-team b { color: var(--text); font-size: 0.95rem; line-height: 1.35; overflow-wrap: anywhere; }
.live-team.blue { text-align: right; align-items: flex-end; }
.live-market-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--text-dim); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; }
.live-market-label span:last-child { color: var(--gold); font-weight: 700; letter-spacing: 0.04em; }
.live-competition-detail { margin: -8px 0 14px; padding: 7px 9px; border: 1px solid rgba(255,215,0,0.18); border-radius: 7px; color: var(--gold-light); font-size: 0.72rem; font-weight: 700; line-height: 1.35; }
.live-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.odd-btn { min-height: 58px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.045); color: var(--text); border-radius: 9px; padding: 8px 4px; cursor: pointer; font-size: 0.72rem; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.odd-btn:hover:not(:disabled) { border-color: rgba(255,215,0,0.5); transform: translateY(-1px); }
.odd-btn span { display: block; font-size: 0.85rem; margin-bottom: 2px; }
.odd-btn b { display: block; color: var(--gold); margin-top: 3px; }
.odd-btn.selected { border-color: var(--gold); background: linear-gradient(145deg, rgba(255,215,0,0.18), rgba(255,179,0,0.06)); box-shadow: inset 0 0 0 1px rgba(255,215,0,0.18), 0 5px 18px rgba(255,215,0,0.1); }
.odd-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.live-bet-form { margin-top: 16px; }
.live-amount-wrap { position: relative; flex: 1; }
.live-amount-wrap > span { position: absolute; left: 12px; top: 50%; color: var(--gold); transform: translateY(-50%); font-weight: 800; }
.live-bet-form input { min-width: 0; width: 100%; background: #0e1219; border: 1px solid rgba(255,255,255,0.12); border-radius: 9px; color: var(--text); padding: 12px 12px 12px 28px; outline: none; }
.live-bet-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,215,0,0.1); }
.live-bet-form .live-submit { padding: 12px 14px; white-space: nowrap; }
.live-quick-bets { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.live-quick-bets > span { color: var(--text-dim); font-size: 0.68rem; margin-right: 3px; }
.live-quick-bets button { padding: 5px 8px; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 0.68rem; }
.live-quick-bets button:hover:not(:disabled) { color: var(--gold); border-color: var(--gold); }
.live-quick-bets button:disabled { opacity: 0.4; cursor: not-allowed; }
.live-bet-summary { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); color: var(--text-dim); font-size: 0.72rem; }
.live-bet-summary strong { color: var(--text); margin-left: 3px; }
.live-bet-summary .live-payout { color: var(--green); }
.live-help, .live-watch { display: block; color: var(--text-muted); font-size: 0.75rem; margin-top: 12px; }
.live-help.is-success { color: var(--green); }
.live-help.is-error { color: #ff8585; }
.live-help.is-closed { color: var(--text-dim); }
.live-watch { color: var(--gold); font-weight: 700; }
.live-empty { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 45px 20px; border: 1px dashed rgba(255,255,255,0.15); border-radius: 12px; }
.live-empty span { display: block; font-size: 2rem; margin-bottom: 8px; }

.btn-gold {
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,179,0,0.1)) !important;
  border-color: rgba(255,215,0,0.4) !important;
  color: var(--gold) !important;
}

.btn-gold:hover {
  background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(255,179,0,0.2)) !important;
  box-shadow: 0 4px 20px rgba(255,215,0,0.2) !important;
}

/* ─── SECTIONS ──────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.25);
  color: var(--gold);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ─── ROOMS ─────────────────────────────────────────────────── */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.room-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: all 0.3s ease;
}

.room-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.room-card.featured {
  border-color: rgba(255,215,0,0.3);
  box-shadow: 0 0 0 1px rgba(255,215,0,0.1), var(--shadow-gold);
}

.room-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}

.room-badge.live {
  background: rgba(46,204,113,0.15);
  color: var(--green);
}

.room-badge.featured-badge {
  background: rgba(255,215,0,0.15);
  color: var(--gold);
}

.room-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.room-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.room-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.room-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.room-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.room-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.room-live-count { color: var(--gold-light) !important; font-weight: 700; }
.room-live-count.room-status-live { color: var(--green) !important; }
.room-live-info { display: grid; gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.08); color: var(--text-muted); font-size: 0.72rem; line-height: 1.4; }
.room-live-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.active-page { min-height: 100vh; background: radial-gradient(circle at 85% 8%, rgba(255,215,0,0.08), transparent 32%), var(--bg); }
.active-main { max-width: 1180px; margin: 0 auto; padding: 120px 24px 72px; }
.active-heading { margin-bottom: 28px; }
.active-heading h1 { margin: 8px 0; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.05; }
.active-heading p { color: var(--text-muted); }
.active-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.active-room { min-width: 0; padding: 20px; background: rgba(17,17,24,0.9); border: 1px solid var(--border-subtle); border-radius: 12px; }
.active-room h2 { margin-bottom: 14px; color: var(--gold); font-size: 1.05rem; }
.active-competition { margin-bottom: 12px; padding: 9px 10px; border: 1px solid rgba(255,215,0,0.18); border-radius: 8px; color: var(--gold-light); font-size: 0.78rem; font-weight: 700; line-height: 1.45; }
.active-competition span { color: var(--text-muted); font-weight: 500; }
.active-block { padding: 14px 0; border-top: 1px solid var(--border-subtle); }
.active-block h3 { margin-bottom: 8px; color: var(--text); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.active-standings { min-height: 130px; color: var(--text-muted); white-space: pre-wrap; font-size: 0.78rem; line-height: 1.55; }
.active-fixture { color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; }
.active-fixture strong { color: var(--text); }
.active-empty { grid-column: 1 / -1; padding: 44px 20px; border: 1px dashed var(--border-subtle); border-radius: 12px; color: var(--text-muted); text-align: center; }
@media (max-width: 900px) { .active-grid { grid-template-columns: 1fr; } }
.room-live-count.room-status-offline { color: var(--text-dim) !important; font-weight: 500; }

/* ─── FEATURES ──────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--c, var(--gold));
  transition: height 0.3s ease;
  border-radius: 0 0 3px 3px;
}

.feature-card:hover::before { height: 100%; }

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 12px var(--c, #FFD700));
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.feature-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-detail span {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ─── STEPS ─────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 280px;
  position: relative;
}

.step-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.04em;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  padding-top: 6px;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-arrow {
  font-size: 1.8rem;
  color: var(--gold);
  opacity: 0.3;
  padding: 20px 16px 0;
  flex-shrink: 0;
}

/* ─── LEADERBOARD ───────────────────────────────────────────── */
.leaderboard-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.lb-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.lb-tab {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.lb-tab:hover {
  border-color: var(--border);
  color: var(--text);
}

.lb-tab.active {
  background: rgba(255,215,0,0.12);
  border-color: rgba(255,215,0,0.3);
  color: var(--gold);
}

.leaderboard {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.lb-header {
  display: grid;
  grid-template-columns: 40px 1fr 80px 100px 80px;
  padding: 14px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
}

.lb-header > span,
.lb-row > * {
  min-width: 0;
}

.lb-header > span {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.lb-row {
  display: grid;
  grid-template-columns: 40px 1fr 80px 100px 80px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  transition: background 0.15s;
}

.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: var(--surface); }

.lb-row.top1 { background: rgba(255,215,0,0.06); }
.lb-row.top2 { background: rgba(192,192,192,0.04); }
.lb-row.top3 { background: rgba(205,127,50,0.04); }

.lb-rank {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
}

.lb-rank.r1 { color: #FFD700; }
.lb-rank.r2 { color: #C0C0C0; }
.lb-rank.r3 { color: #CD7F32; }

.lb-name {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.lb-puan {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
}

.lb-wbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.lb-mmr {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.lb-loading {
  padding: 60px 20px;
  text-align: center;
}

.lb-loading p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.lb-hint {
  font-size: 0.78rem;
  color: var(--text-dim) !important;
  margin-top: 4px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

.lb-formula {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.formula-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.formula-icon { font-size: 1.5rem; flex-shrink: 0; }

.formula-card strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.formula-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── REC CARDS ─────────────────────────────────────────────── */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.rec-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.spinner-sm {
  width: 20px; height: 20px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.rec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rec-card:hover {
  border-color: rgba(255,215,0,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.rec-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rec-league {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(255,215,0,0.08);
  padding: 3px 10px;
  border-radius: 999px;
}

.rec-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.rec-score {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.rec-score .score-red { color: #E74C3C; }
.rec-score .score-sep { color: var(--text-dim); margin: 0 6px; }
.rec-score .score-blue { color: #3498DB; }

.rec-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rec-team {
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 10px;
}

.rec-team-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.rec-team.red .rec-team-label { color: #E74C3C; }
.rec-team.blue .rec-team-label { color: #3498DB; }

.rec-team-players {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.rec-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.rec-duration {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.rec-watch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.25);
  color: var(--gold);
  transition: all 0.15s;
}

.rec-watch:hover {
  background: rgba(255,215,0,0.2);
  transform: translateY(-1px);
}

.rec-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.rec-empty span { font-size: 2.5rem; display: block; margin-bottom: 12px; }

/* ─── DISCORD CTA ───────────────────────────────────────────── */
.discord-cta {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 120px 24px;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.cta-orb1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #5865F2 0%, transparent 70%);
  top: -100px; left: -100px;
  opacity: 0.3;
}

.cta-orb2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #FFD700 0%, transparent 70%);
  bottom: -100px; right: -80px;
  opacity: 0.2;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-icon {
  width: 80px;
  height: 80px;
  background: rgba(88,101,242,0.2);
  border: 1px solid rgba(88,101,242,0.4);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  color: #7289DA;
}

.discord-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.discord-cta p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .logo-icon { font-size: 1.8rem; }

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }

  .account-main { padding-top: 100px; }
  .account-heading { align-items: flex-start; flex-direction: column; }
  .account-overview { grid-template-columns: repeat(2, 1fr); }
  .account-columns { grid-template-columns: 1fr; }
  .account-detail-list { grid-template-columns: 1fr; }
  .hall-main { padding-top: 100px; }
  .hall-season { padding: 16px; }
  .hall-season-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .hall-grid { grid-template-columns: 1fr; }
  .hall-nav-actions { gap: 6px; }
  .hall-back, .hall-account { padding: 7px 9px; font-size: 0.75rem; }
  .live-bet-form { align-items: stretch; flex-direction: column; }
  .live-bet-form .live-submit { width: 100%; }
  .live-room-picker { align-items: stretch; flex-direction: column; }
  .live-room-picker select { width: 100%; min-width: 0; }
  .live-quick-bets { overflow-x: auto; padding-bottom: 2px; }
  .live-quick-bets > span { flex: 0 0 auto; }
  .live-quick-bets button { flex: 0 0 auto; }
  .live-bet-summary { font-size: 0.68rem; }

  .hero-ball { display: none; }

  .rooms-grid { grid-template-columns: 1fr; }

  .features-grid { grid-template-columns: 1fr; }

  .steps {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .step { max-width: 100%; }
  .step-arrow { display: none; }

  .lb-header, .lb-row {
    grid-template-columns: 40px 1fr 70px 80px;
  }

  .lb-header span:last-child,
  .lb-row .lb-mmr { display: none; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-num { font-size: 1.8rem; }

  .lb-formula { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}

/* ─── ANIMATIONS ────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }
.fade-up:nth-child(7) { transition-delay: 0.6s; }
.fade-up:nth-child(8) { transition-delay: 0.7s; }
.fade-up:nth-child(9) { transition-delay: 0.8s; }

/* ─── PREMIUM EDITION ──────────────────────────────────────── */
:root {
  --gold: #e8bb68;
  --gold-light: #f7d995;
  --gold-dark: #9a7134;
  --bg: #080a0b;
  --bg-card: #101416;
  --bg-dark: #050606;
  --surface: #151a1b;
  --surface2: #1c2423;
  --border: rgba(232,187,104,0.22);
  --border-subtle: rgba(224,235,226,0.09);
  --text: #edf1eb;
  --text-muted: #9aa69e;
  --text-dim: #5d6862;
  --green: #74d6a0;
  --shadow: 0 22px 70px rgba(0,0,0,0.42);
  --shadow-gold: 0 20px 70px rgba(182,132,54,0.16);
}

html { background: var(--bg); }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); }
h1, h2, h3, .logo-text, .nav-links, .section-tag, .btn, .room-badge { font-family: 'Space Grotesk', sans-serif; }
.gold-gradient { background: linear-gradient(110deg, #f9dda0 0%, #c78c3f 44%, #f4d28b 82%); -webkit-background-clip: text; background-clip: text; }
.container { max-width: 1240px; }

.nav { background: rgba(8,10,11,0.76); border-bottom-color: rgba(232,187,104,0.14); }
.nav.scrolled { background: rgba(8,10,11,0.96); border-bottom-color: var(--border); }
.nav-inner { max-width: 1240px; height: 72px; }
.logo { letter-spacing: 0; }
.logo-icon { filter: drop-shadow(0 0 12px rgba(232,187,104,0.45)); }
.logo-text { font-size: 1.18rem; }
.nav-links { gap: 2px; }
.nav-links a { border-radius: 5px; color: #98a39c; letter-spacing: 0.01em; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.055); }
.btn-discord { background: #5865f2 !important; border-radius: 5px !important; }
.btn-admin, .account-link { background: var(--gold) !important; border-radius: 5px !important; }
.hamburger { color: var(--gold); }

.hero { min-height: 780px; padding-top: 138px; background: radial-gradient(ellipse at 72% 36%, rgba(77,111,89,0.18), transparent 42%), radial-gradient(ellipse at 18% 12%, rgba(232,187,104,0.12), transparent 35%), var(--bg); }
.hero-bg { opacity: 0.5; }
.orb { filter: blur(110px); opacity: 0.18; }
.orb1 { background: radial-gradient(circle, #d39b4d 0%, transparent 68%); }
.orb2 { background: radial-gradient(circle, #47745e 0%, transparent 68%); }
.orb3 { display: none; }
.field-lines { opacity: 0.6; background: linear-gradient(rgba(232,187,104,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(232,187,104,0.035) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 78%); }
.hero-content { max-width: 900px; text-align: left; margin-left: max(0px, calc((100vw - 1240px) / 2)); }
.hero-badge { padding: 7px 12px; margin-bottom: 30px; border-radius: 4px; background: rgba(232,187,104,0.09); border-color: rgba(232,187,104,0.3); color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; }
.hero-title { font-size: clamp(3.5rem, 8vw, 7.8rem); line-height: 0.92; letter-spacing: -0.07em; max-width: 850px; }
.hero-sub { display: inline-block; margin-top: 14px; color: #b4beb6; font-size: clamp(1.25rem, 2.8vw, 2rem); font-weight: 500; letter-spacing: -0.035em; }
.hero-desc { max-width: 570px; margin: 28px 0 34px; color: #a1ada5; font-size: 1rem; line-height: 1.75; }
.hero-btns { justify-content: flex-start; margin-bottom: 48px; }
.btn { border-radius: 5px; padding: 13px 20px; font-size: 0.86rem; }
.btn-primary { background: var(--gold); box-shadow: 0 12px 30px rgba(232,187,104,0.16); }
.btn-primary:hover { background: var(--gold-light); box-shadow: 0 15px 36px rgba(232,187,104,0.26); }
.btn-outline { border-color: rgba(224,235,226,0.18); }
.btn-outline:hover { border-color: var(--gold); }
.hero-stats { justify-content: flex-start; gap: 28px; }
.stat { text-align: left; }
.stat-num { color: var(--gold-light); font-size: 2rem; }
.stat-label { color: var(--text-dim); font-size: 0.68rem; }
.stat-divider { height: 34px; background: rgba(232,187,104,0.22); }
.hero-ball { opacity: 0.025; }

.section { padding: 116px 0; }
.section-dark { background: #060808; }
.section-live { background: linear-gradient(180deg, #0b100e, #080a0b); border-top-color: rgba(116,214,160,0.12); border-bottom-color: rgba(232,187,104,0.13); }
.section-header { margin-bottom: 56px; text-align: left; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.06em; }
.section-header p { max-width: 580px; margin: 0; color: var(--text-muted); }
.section-tag { padding: 5px 10px; border-radius: 4px; background: rgba(232,187,104,0.08); border-color: rgba(232,187,104,0.25); color: var(--gold-light); font-size: 0.65rem; letter-spacing: 0.16em; }

.rooms-grid, .features-grid { gap: 14px; }
.room-card, .feature-card { background: linear-gradient(145deg, #141a1a, #0d1112); border-color: rgba(224,235,226,0.09); border-radius: 8px; box-shadow: 0 14px 38px rgba(0,0,0,0.2); }
.room-card { padding: 28px; }
.room-card:hover, .feature-card:hover { transform: translateY(-6px); border-color: rgba(232,187,104,0.32); box-shadow: var(--shadow); }
.room-card.featured { border-color: rgba(232,187,104,0.4); box-shadow: var(--shadow-gold); }
.room-icon { filter: saturate(0.75); }
.room-card h3 { letter-spacing: -0.045em; }
.room-subtitle { color: var(--gold); }
.room-desc, .feature-card p { color: #929e96; }
.tag { border-radius: 4px; background: rgba(255,255,255,0.035); border-color: rgba(224,235,226,0.09); }
.btn-room { border-radius: 5px; background: rgba(255,255,255,0.04); }
.btn-room:hover { border-color: var(--gold); color: var(--gold-light); }
.feature-card { padding: 24px; }
.feature-card::before { background: var(--gold); }
.feature-icon { opacity: 0.85; filter: saturate(0.7) drop-shadow(0 0 12px var(--c, #e8bb68)); }

.steps { justify-content: space-between; }
.step { max-width: 330px; }
.step-num { color: var(--gold); opacity: 0.38; font-family: 'Space Grotesk', sans-serif; }
.step-content p { color: #8f9b94; }
.step-arrow { color: var(--gold); }

.leaderboard-wrap { max-width: 900px; margin: 0; }
.lb-tabs { gap: 5px; }
.lb-tab { border-radius: 5px; background: #111718; border-color: rgba(224,235,226,0.09); }
.lb-tab.active { background: rgba(232,187,104,0.12); border-color: rgba(232,187,104,0.42); color: var(--gold-light); }
.leaderboard { border-radius: 8px; background: #101516; border-color: rgba(224,235,226,0.1); box-shadow: var(--shadow); }
.lb-header { color: #69766e; border-bottom-color: rgba(224,235,226,0.09); }
.lb-row { border-bottom-color: rgba(224,235,226,0.07); }
.lb-row:hover { background: rgba(232,187,104,0.05); }
.lb-row.top1 { background: rgba(232,187,104,0.08); }
.lb-formula { gap: 12px; }
.formula-card { background: #101516; border-color: rgba(224,235,226,0.08); border-radius: 8px; }

.live-header { margin-bottom: 34px; }
.live-tag { color: #8ce0ad; border-color: rgba(116,214,160,0.3); background: rgba(116,214,160,0.07); }
.live-card { border-radius: 9px; background: linear-gradient(145deg, #17201d, #0d1211); border-color: rgba(116,214,160,0.13); }
.live-card::before { background: linear-gradient(90deg, transparent, #74d6a0, transparent); }
.live-card:hover { border-color: rgba(116,214,160,0.4); box-shadow: 0 20px 55px rgba(0,0,0,0.35); }
.odd-btn { border-radius: 6px; background: rgba(255,255,255,0.035); }
.odd-btn.selected { border-color: var(--gold); }

.footer { background: #050606; border-top-color: rgba(232,187,104,0.15); }
.footer-col h4 { color: var(--gold); }
.footer-col a:hover { color: var(--gold-light); }

@media (max-width: 900px) {
  .hero-content { margin-left: 0; }
  .nav-links a { padding-left: 8px; padding-right: 8px; }
}

@media (max-width: 768px) {
  .hero { min-height: 700px; padding-top: 122px; }
  .hero-content { text-align: left; }
  .hero-title { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-btns, .hero-stats { justify-content: flex-start; }
  .section { padding: 82px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 2.1rem; }
  .steps { gap: 28px; }
  .step { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero { padding-left: 18px; padding-right: 18px; }
  .hero-desc { font-size: 0.92rem; }
  .hero-btns { align-items: stretch; }
  .hero-stats { gap: 14px; }
  .stat-num { font-size: 1.55rem; }
  .stat-label { font-size: 0.58rem; }
  .container { padding-left: 18px; padding-right: 18px; }
}
