/* ============================================
   RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #d4af37;
  --gold-light: #f0c14b;
  --gold-dark: #b8941f;
  --bg: #08080a;
  --card-bg: #111114;
  --card-border: #1f1f24;
  --text: #ffffff;
  --text-dim: #888;
  --text-dimmer: #555;
  --site-primary: #f0c14b;
  --site-glow: rgba(240, 193, 75, 0.4);
}

html, body { min-height: 100vh; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 0;
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding: 0.75rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav-brand:hover { transform: scale(1.03); }

.nav-logo-img {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
  transition: all 0.3s;
  border: 1px solid rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
  display: block;
}

.nav-brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #fff 0%, #f0c14b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 8px 18px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s;
  position: relative;
  letter-spacing: 0.2px;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #f0c14b;
  background: rgba(212, 175, 55, 0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f0c14b, transparent);
  border-radius: 2px;
}

.nav-free {
  color: #f0c14b !important;
}

.nav-free .free-icon {
  font-size: 0.9rem;
  margin-right: 2px;
  display: inline-block;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); filter: brightness(1.3); }
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #5865F2, #4752c4);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.5);
  filter: brightness(1.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HOME PAGE - HERO
   ============================================ */
body.home-page { padding: 0; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/bg-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.75) 70%),
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.5) 30%, rgba(8,8,10,0.85) 80%, #08080a 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  margin-top: 8vh;
  animation: fadeInUp 0.9s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-brand {
  display: block;
  background: linear-gradient(135deg, #f0c14b 0%, #d4af37 50%, #b8941f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 900;
  margin-top: 0.3rem;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  margin-bottom: 2.5rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.code-box {
  display: inline-block;
  background: rgba(15, 15, 18, 0.85);
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 18px;
  padding: 1.25rem 1.75rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(212,175,55,0.15);
  transition: all 0.3s ease;
}

.code-box:hover {
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 60px rgba(212,175,55,0.25);
}

.code-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.code-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.code-value #codeText {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--gold-light);
  text-shadow: 0 0 30px rgba(240, 193, 75, 0.5);
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f0c14b, #b8941f);
  color: #0a0a0a;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(240, 193, 75, 0.4);
}

.copy-btn.copied {
  background: linear-gradient(135deg, #00ff88, #00aa55);
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s;
}

.scroll-hint:hover { color: rgba(240, 193, 75, 0.9); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 0%, #f0c14b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.cta-content p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #f0c14b, #b8941f);
  color: #0a0a0a;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
  position: relative;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.5);
  filter: brightness(1.1);
}

.cta-button svg { transition: transform 0.3s; }
.cta-button:hover svg { transform: translateX(4px); }

/* ============================================
   SOCIAL SECTION
   ============================================ */
.social-section {
  padding: 5rem 2rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  color: #fff;
}

.section-header p {
  color: #888;
  font-size: 1rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(160deg, #17171c 0%, #0f0f12 100%);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.social-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.social-card:hover .social-icon { transform: scale(1.1); }

.social-card.discord .social-icon { background: rgba(88, 101, 242, 0.15); color: #5865F2; }
.social-card.x .social-icon { background: rgba(255, 255, 255, 0.08); color: #fff; }
.social-card.kick .social-icon { background: rgba(83, 252, 24, 0.15); color: #53fc18; }

.social-info { text-align: left; }
.social-name { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.social-handle { color: var(--text-dim); font-size: 0.85rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #1a1a1f;
  margin-top: 2rem;
}

.site-footer p {
  color: var(--text-dimmer);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.site-footer .disclaimer {
  color: #444;
  font-size: 0.75rem;
}

/* ============================================
   FREE / PARTNERS PAGE
   ============================================ */
.page-header {
  text-align: center;
  padding: 10rem 2rem 3rem;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 0%, #f0c14b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--text-dim);
  font-size: 1.05rem;
}

.partners-section {
  padding: 2rem 2rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.partners-header {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.partners-header .heart {
  font-size: 1.8rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  20%, 60% { transform: scale(1.15); }
  40%, 80% { transform: scale(1); }
}

.partners-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1050px;
  margin: 0 auto;
}

.partner-card {
  background: linear-gradient(160deg, #17171c 0%, #0f0f12 100%);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.partner-card::after {
  content: '';
  position: absolute;
  bottom: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 250%;
  height: 60%;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  z-index: 0;
}

.partner-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.3);
}

.partner-card > * { position: relative; z-index: 1; }

.partner-rusty::after { background: radial-gradient(circle, rgba(220, 38, 38, 0.5), transparent 70%); }
.partner-cs2::after { background: radial-gradient(circle, rgba(6, 182, 212, 0.5), transparent 70%); }
.partner-unbox::after { background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 70%); }
.partner-maxxed::after { background: radial-gradient(circle, rgba(34, 197, 94, 0.5), transparent 70%); }

.partner-rusty:hover { box-shadow: 0 20px 40px rgba(220, 38, 38, 0.15); }
.partner-cs2:hover { box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15); }
.partner-unbox:hover { box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15); }
.partner-maxxed:hover { box-shadow: 0 20px 40px rgba(34, 197, 94, 0.15); }

.partner-logo-wrap {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.partner-logo { max-width: 100%; max-height: 100%; object-fit: contain; }

.partner-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.partner-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-dim);
  padding: 8px 0;
}

.partner-code .arrow { color: var(--text-dimmer); font-size: 1.1rem; }

.partner-code strong {
  color: #f0c14b;
  font-weight: 800;
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', monospace;
}

.partner-features {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.partner-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #bbb;
  padding: 0 0.5rem;
  text-align: left;
}

.partner-features .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.partner-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
  margin-top: auto;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.partner-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.partner-btn-rusty { background: linear-gradient(135deg, #dc2626, #991b1b); }
.partner-btn-cs2 { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.partner-btn-unbox { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.partner-btn-maxxed { background: linear-gradient(135deg, #22c55e, #15803d); }

/* ============================================
   LEADERBOARD PAGE
   ============================================ */
.leaderboard-page { padding: 0; }

body.leaderboard-page {
  background-color: #08080a;
  position: relative;
  overflow-x: hidden;
}

body.leaderboard-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--site-glow) 0%, transparent 60%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
  transition: background 0.6s ease;
  pointer-events: none;
}

body.leaderboard-page::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.6;
}

.leaderboard-page .navbar,
.leaderboard-page .site-tabs-wrap,
.leaderboard-page .lb-main,
.leaderboard-page .site-footer {
  position: relative;
  z-index: 1;
}

.site-tabs-wrap {
  margin-top: 6rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.site-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.site-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.5rem 2.5rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.site-tab:hover { color: rgba(255, 255, 255, 0.7); }

.site-tab.active {
  color: var(--tab-color);
  border-bottom-color: var(--tab-color);
}

.site-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--tab-color);
  box-shadow: 0 0 12px var(--tab-glow);
}

.site-tab-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
}

.site-tab-placeholder {
  width: 42px;
  height: 42px;
  background: var(--tab-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #000;
}

.site-tab-name { white-space: nowrap; }
.tab-loading { padding: 2rem; color: var(--text-dim); font-size: 0.9rem; }

.lb-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.lb-header {
  background: linear-gradient(160deg, #17171c 0%, #0d0d10 100%);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.lb-site-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: 0 8px 24px var(--site-glow);
  overflow: hidden;
}

.lb-site-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.lb-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #bbb;
  margin-bottom: 0.5rem;
}

.prize-pool-large { margin: 0.75rem 0; }

.prize-pool-large span {
  font-size: 3.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f0c14b 0%, #d4af37 50%, #b8941f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
}

.period-label {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.code-badge {
  display: inline-block;
  background: #0a0a0c;
  border: 1px solid #2a2a32;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.code-badge span {
  color: #f0c14b;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 1px;
  margin-left: 4px;
}

/* ============================================
   PODIUM
   ============================================ */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: flex-end;
  gap: 1rem;
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.podium-item {
  background: linear-gradient(160deg, #17171c 0%, #0f0f12 100%);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.75rem 1rem 1.5rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.podium-item.rank-1 {
  padding: 2.25rem 1rem 1.75rem;
  border-color: var(--site-primary);
  box-shadow: 0 12px 32px var(--site-glow);
  transform: translateY(-8px);
  z-index: 2;
}

.podium-item.rank-2 { border-color: rgba(192, 192, 192, 0.2); }
.podium-item.rank-3 { border-color: rgba(205, 127, 50, 0.2); }

.podium-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #888;
  font-family: 'JetBrains Mono', monospace;
}

.podium-item.rank-1 .podium-badge {
  background: var(--site-primary);
  color: #000;
  border-color: transparent;
}

.podium-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1a1a20;
  border: 3px solid var(--site-primary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--site-glow);
}

.podium-item.rank-1 .podium-avatar {
  width: 88px;
  height: 88px;
  border-width: 4px;
}

.podium-item.rank-2 .podium-avatar { border-color: #c0c0c0; box-shadow: 0 0 20px rgba(192,192,192,0.3); }
.podium-item.rank-3 .podium-avatar { border-color: #cd7f32; box-shadow: 0 0 20px rgba(205,127,50,0.3); }

.podium-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podium-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.podium-item.rank-1 .podium-name { font-size: 1.15rem; }

.podium-wagered-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.podium-wager-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ccc;
}

.podium-prize {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.25rem;
}

.podium-item.rank-1 .podium-prize { font-size: 2.2rem; }

.prize-icon {
  color: var(--site-primary);
  font-size: 1.4rem;
  font-weight: 800;
}

.podium-item.rank-1 .prize-icon { font-size: 1.7rem; }

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-wrap {
  text-align: center;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
  max-width: 700px;
}

.countdown-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 70px;
}

.cd-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -2px;
  text-shadow: 0 0 30px rgba(240, 193, 75, 0.3);
}

.cd-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   TABLE
   ============================================ */
.table-wrap {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
}

.lb-table th,
.lb-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #1a1a1f;
}

.lb-table th {
  color: var(--text-dimmer);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #0a0a0c;
}

.col-rank { width: 70px; text-align: center; }
.col-prize { text-align: right; }

.lb-table td.col-rank,
.lb-table th.col-rank { text-align: center; }
.lb-table td.col-prize,
.lb-table th.col-prize { text-align: right; }

.lb-table tbody tr:last-child td { border-bottom: none; }
.lb-table tbody tr:hover { background: #16161a; }

.rank-cell {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.username-cell { font-weight: 600; color: #eee; }

.wager-cell {
  color: #bbb;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.prize-cell {
  color: var(--site-primary);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.prize-cell.no-prize {
  color: var(--text-dimmer);
  font-weight: 400;
}

.table-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a1a20;
  border: 2px solid var(--site-primary);
  object-fit: cover;
  flex-shrink: 0;
}

.loading-row, .error-row {
  text-align: center !important;
  padding: 3rem 1rem !important;
  color: var(--text-dim);
}

.error-row { color: #ff5555; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-container { padding: 0 1.25rem; gap: 1rem; }
  .nav-brand-name { font-size: 0.95rem; }
  .nav-logo-img { width: 36px !important; height: 36px !important; }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 14, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transform: translateY(-150%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    justify-content: flex-start;
    align-items: stretch;
  }

  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 14px 18px; font-size: 1rem; border-radius: 12px; }
  .nav-link.active::after { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 0.8rem; }
  .nav-cta span { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 3rem 1.25rem 5rem; min-height: 90vh; }
  .hero-content { margin-top: 5vh; }
  .code-box { padding: 1rem 1.25rem; }
  .copy-btn { padding: 8px 14px; font-size: 0.8rem; }

  .cta-section { padding: 3rem 1.25rem; }
  .cta-content { padding: 2rem 1.5rem; }

  .social-grid { grid-template-columns: 1fr; }
  .social-card { padding: 1rem 1.25rem; }
  .social-icon { width: 44px; height: 44px; }

  .partners-section { padding: 1rem 1.25rem 4rem; }
  .partners-grid { grid-template-columns: 1fr; }
  .partner-card { padding: 1.75rem 1.25rem; }

  .page-header { padding: 7rem 1.25rem 2rem; }

  .site-tabs-wrap { margin-top: 5rem; padding: 0 1rem; }
  .site-tab { padding: 1rem 1.25rem; font-size: 0.95rem; gap: 8px; }
  .site-tab-logo, .site-tab-placeholder { width: 32px; height: 32px; font-size: 0.9rem; }

  .lb-main { padding: 1rem; }
  .lb-header { padding: 2rem 1rem; }
  .prize-pool-large span { font-size: 2.5rem; }
  .lb-header h2 { font-size: 1.1rem; }

  .podium { gap: 0.5rem; padding: 0 0.75rem; }
  .podium-item { padding: 1.25rem 0.5rem 1rem; }
  .podium-item.rank-1 { padding: 1.5rem 0.5rem 1.25rem; }
  .podium-avatar { width: 52px; height: 52px; }
  .podium-item.rank-1 .podium-avatar { width: 62px; height: 62px; }
  .podium-name { font-size: 0.8rem; }
  .podium-item.rank-1 .podium-name { font-size: 0.9rem; }
  .podium-wager-box { font-size: 0.7rem; padding: 4px 10px; }
  .podium-prize { font-size: 1.3rem; }
  .podium-item.rank-1 .podium-prize { font-size: 1.6rem; }

  .countdown-timer { gap: 0.75rem; }
  .cd-block { min-width: 55px; }
  .cd-value { font-size: 1.75rem; }
  .cd-label { font-size: 0.6rem; letter-spacing: 1px; }
  .countdown-label { font-size: 0.7rem; letter-spacing: 2px; }

  .lb-table th, .lb-table td { padding: 12px 12px; font-size: 0.88rem; }
  .col-rank { width: 50px; }
  .table-avatar { width: 28px; height: 28px; }
}

/* ============================================
   PER-SITE BACKGROUNDS
   ============================================ */

/* Maxxed.io background */
body.site-maxxed {
  background-image: url('/assets/maxxed-bg.png') !important;
  background-size: cover !important;
  background-position: center top !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

/* Dark overlay for Maxxed */
body.site-maxxed::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(34, 197, 94, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(8, 8, 10, 0.85) 100%);
  pointer-events: none;
}

body.site-maxxed.leaderboard-page {
  background-color: transparent;
}

body.site-maxxed::after {
  opacity: 0.15;
}

/* ============================================
   MAXXED — TRANSPARENT CARDS
   ============================================ */

body.site-maxxed .lb-header {
  background: rgba(15, 15, 18, 0.5) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(34, 197, 94, 0.25) !important;
}

body.site-maxxed .podium-item {
  background: rgba(15, 15, 18, 0.5) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.08);
}

body.site-maxxed .podium-item.rank-1 {
  background: rgba(15, 15, 18, 0.55) !important;
  border-color: rgba(34, 197, 94, 0.5) !important;
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.25);
}

body.site-maxxed .table-wrap {
  background: rgba(15, 15, 18, 0.5) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.08);
}

body.site-maxxed .lb-table th {
  background: rgba(10, 10, 12, 0.6) !important;
}

body.site-maxxed .lb-table tbody tr:hover {
  background: rgba(34, 197, 94, 0.08) !important;
}

body.site-maxxed .cd-value {
  text-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}/* ============================================
   CS2REAPER BACKGROUND
   ============================================ */
body.site-cs2reaper {
  background-image: url('/assets/cs2reaper-bg.png') !important;
  background-size: cover !important;
  background-position: center top !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

body.site-cs2reaper::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(6, 182, 212, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(8, 8, 10, 0.85) 100%);
  pointer-events: none;
}

body.site-cs2reaper.leaderboard-page {
  background-color: transparent;
}

body.site-cs2reaper::after {
  opacity: 0.15;
}

body.site-cs2reaper .lb-header,
body.site-cs2reaper .podium-item,
body.site-cs2reaper .table-wrap {
  background: rgba(15, 15, 18, 0.5) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.site-cs2reaper .lb-header {
  border-color: rgba(6, 182, 212, 0.25) !important;
}

body.site-cs2reaper .podium-item.rank-1 {
  background: rgba(15, 15, 18, 0.55) !important;
  border-color: rgba(6, 182, 212, 0.5) !important;
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.25);
}

body.site-cs2reaper .lb-table th {
  background: rgba(10, 10, 12, 0.6) !important;
}

body.site-cs2reaper .lb-table tbody tr:hover {
  background: rgba(6, 182, 212, 0.08) !important;
}

body.site-cs2reaper .cd-value {
  text-shadow: 0 0 30px rgba(6, 182, 212, 0.6);
}/* ============================================
   RUSTYWAGER BACKGROUND
   ============================================ */
body.site-rustywager {
  background-image: url('/assets/rustywager-bg.png') !important;
  background-size: cover !important;
  background-position: center top !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

body.site-rustywager::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(220, 38, 38, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(8, 8, 10, 0.85) 100%);
  pointer-events: none;
}

body.site-rustywager.leaderboard-page {
  background-color: transparent;
}

body.site-rustywager::after {
  opacity: 0.15;
}

body.site-rustywager .lb-header,
body.site-rustywager .podium-item,
body.site-rustywager .table-wrap {
  background: rgba(15, 15, 18, 0.5) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.site-rustywager .lb-header {
  border-color: rgba(220, 38, 38, 0.25) !important;
}

body.site-rustywager .podium-item.rank-1 {
  background: rgba(15, 15, 18, 0.55) !important;
  border-color: rgba(220, 38, 38, 0.5) !important;
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.25);
}

body.site-rustywager .lb-table th {
  background: rgba(10, 10, 12, 0.6) !important;
}

body.site-rustywager .lb-table tbody tr:hover {
  background: rgba(220, 38, 38, 0.08) !important;
}

body.site-rustywager .cd-value {
  text-shadow: 0 0 30px rgba(220, 38, 38, 0.6);
}/* ============================================
   UNBOXGG BACKGROUND
   ============================================ */
body.site-unboxgg {
  background-image: url('/assets/unboxgg-bg.png') !important;
  background-size: cover !important;
  background-position: center top !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

body.site-unboxgg::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(8, 8, 10, 0.85) 100%);
  pointer-events: none;
}

body.site-unboxgg.leaderboard-page {
  background-color: transparent;
}

body.site-unboxgg::after {
  opacity: 0.15;
}

body.site-unboxgg .lb-header,
body.site-unboxgg .podium-item,
body.site-unboxgg .table-wrap {
  background: rgba(15, 15, 18, 0.5) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.site-unboxgg .lb-header {
  border-color: rgba(139, 92, 246, 0.25) !important;
}

body.site-unboxgg .podium-item.rank-1 {
  background: rgba(15, 15, 18, 0.55) !important;
  border-color: rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.25);
}

body.site-unboxgg .lb-table th {
  background: rgba(10, 10, 12, 0.6) !important;
}

body.site-unboxgg .lb-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.08) !important;
}

body.site-unboxgg .cd-value {
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}/* ============================================
   PREVIOUS LEADERBOARD BUTTON
   ============================================ */
.prev-lb-btn-wrap {
  max-width: 900px;
  margin: 0 auto 1rem;
  display: flex;
  justify-content: flex-end;
  padding: 0 1rem;
}

.prev-lb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(15, 15, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.prev-lb-btn:hover {
  color: #fff;
  background: rgba(15, 15, 18, 0.8);
  border-color: var(--site-primary);
  box-shadow: 0 8px 24px var(--site-glow);
  transform: translateY(-2px);
}

.prev-lb-btn svg {
  transition: transform 0.3s;
}

.prev-lb-btn:hover svg {
  transform: translateX(-3px);
}

/* ============================================
   PREVIOUS LEADERBOARD MODAL
   ============================================ */
.prev-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.prev-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.prev-modal {
  background: linear-gradient(160deg, #14141a 0%, #0a0a0e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 60px var(--site-glow);
}

.prev-modal-overlay.open .prev-modal {
  transform: scale(1);
}

.prev-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.prev-modal-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  margin: 0;
}

.prev-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.prev-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.prev-modal-period {
  padding: 0.75rem 1.75rem;
  color: var(--site-primary);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.2);
}

.prev-modal-body {
  overflow-y: auto;
  padding: 0.5rem 0.75rem 1rem;
  flex: 1;
}

/* Scrollbar */
.prev-modal-body::-webkit-scrollbar {
  width: 8px;
}

.prev-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

.prev-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.prev-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--site-primary);
}

/* Table inside modal */
.prev-table {
  width: 100%;
  border-collapse: collapse;
}

.prev-table th,
.prev-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.prev-table th {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: transparent;
}

.prev-table tbody tr:last-child td {
  border-bottom: none;
}

.prev-table tbody tr {
  transition: background 0.15s;
}

.prev-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.prev-table .rank-cell {
  font-weight: 800;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'JetBrains Mono', monospace;
}

.prev-table tr.rank-1 .rank-cell { color: #ffd700; }
.prev-table tr.rank-2 .rank-cell { color: #c0c0c0; }
.prev-table tr.rank-3 .rank-cell { color: #cd7f32; }

.prev-table .username-cell {
  font-weight: 600;
  color: #ddd;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.prev-table .wager-cell {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.9rem;
}

.prev-table .prize-cell {
  color: var(--site-primary);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.prev-table .prize-cell.no-prize {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 400;
}

/* Responsive */
@media (max-width: 640px) {
  .prev-lb-btn-wrap { padding: 0 0.5rem; }
  .prev-lb-btn { padding: 8px 14px; font-size: 0.82rem; }

  .prev-modal-overlay { padding: 0.75rem; }
  .prev-modal { max-height: 90vh; border-radius: 16px; }
  .prev-modal-header { padding: 1.25rem 1.25rem; }
  .prev-modal-header h2 { font-size: 1.15rem; }
  .prev-modal-period { padding: 0.6rem 1.25rem; font-size: 0.78rem; }
  .prev-table th, .prev-table td { padding: 12px 10px; font-size: 0.85rem; }
  .prev-table .username-cell,
  .prev-table .wager-cell,
  .prev-table .prize-cell,
  .prev-table .rank-cell { font-size: 0.8rem; }
}
/* ============================================
   ADMIN PANEL
   ============================================ */

body.admin-page {
  background: #08080a;
  min-height: 100vh;
  padding: 0;
}

/* ===== LOGIN SCREEN ===== */
.admin-login {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212, 175, 55, 0.1) 0%, transparent 60%),
    #08080a;
  z-index: 100;
}

.login-card {
  background: linear-gradient(160deg, #17171c 0%, #0f0f12 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.login-logo {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.login-card h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.login-card > p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.login-card .form-group {
  text-align: left;
  margin-bottom: 1.25rem;
}

.login-card .form-group label {
  display: block;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.login-card input {
  width: 100%;
  padding: 14px 16px;
  background: #0a0a0c;
  border: 1px solid #2a2a32;
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.25s;
}

.login-card input:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(240, 193, 75, 0.15);
}

.login-card input::placeholder {
  color: var(--text-dimmer);
}

.btn-primary {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f0c14b, #b8941f);
  border: none;
  border-radius: 12px;
  color: #0a0a0a;
  font-size: 1rem;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-error {
  color: #ff5555;
  font-size: 0.9rem;
  margin-top: 1rem;
  min-height: 20px;
}

/* ===== DASHBOARD ===== */
.admin-dashboard {
  min-height: 100vh;
  padding: 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 15, 18, 0.6);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.admin-brand h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.admin-brand p {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 85, 85, 0.1);
  border: 1px solid rgba(255, 85, 85, 0.25);
  border-radius: 10px;
  color: #ff7777;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-logout:hover {
  background: rgba(255, 85, 85, 0.2);
  border-color: rgba(255, 85, 85, 0.5);
  transform: translateY(-2px);
}

.admin-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Toolbar */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(15, 15, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.site-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-selector label {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
}

.site-selector select {
  padding: 10px 16px;
  background: #0a0a0c;
  border: 1px solid #2a2a32;
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 180px;
  transition: border-color 0.2s;
}

.site-selector select:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

.site-selector select:focus {
  outline: none;
  border-color: var(--gold-light);
}

.period-info {
  color: var(--gold-light);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Admin Card */
.admin-card {
  background: linear-gradient(160deg, #17171c 0%, #0f0f12 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.admin-card h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.2px;
}

.card-hint {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.card-hint code {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--gold-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

/* Add Form */
.add-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.add-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.add-form .form-group label {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
}

.add-form input {
  padding: 12px 14px;
  background: #0a0a0c;
  border: 1px solid #2a2a32;
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.add-form input:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(240, 193, 75, 0.1);
}

.add-form input::placeholder {
  color: var(--text-dimmer);
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #f0c14b, #b8941f);
  border: none;
  border-radius: 10px;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

/* Bulk */
#bulkData {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  background: #0a0a0c;
  border: 1px solid #2a2a32;
  border-radius: 10px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s;
}

#bulkData:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(240, 193, 75, 0.1);
}

#bulkData::placeholder {
  color: var(--text-dimmer);
}

.bulk-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-bulk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(240, 193, 75, 0.1);
  border: 1px solid rgba(240, 193, 75, 0.3);
  border-radius: 10px;
  color: var(--gold-light);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-bulk:hover {
  background: rgba(240, 193, 75, 0.2);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-bulk:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.bulk-status {
  color: #00ff88;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Players List */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-header h2 {
  margin-bottom: 0;
}

.players-count {
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  padding: 6px 14px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 999px;
}

.players-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
}

.players-table {
  width: 100%;
  border-collapse: collapse;
}

.players-table th,
.players-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.players-table th {
  color: var(--text-dimmer);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(10, 10, 12, 0.5);
}

.players-table th:first-child {
  border-top-left-radius: 12px;
  width: 60px;
  text-align: center;
}

.players-table th:last-child {
  border-top-right-radius: 12px;
  text-align: right;
  width: 80px;
}

.players-table tbody tr:last-child td {
  border-bottom: none;
}

.players-table tbody tr {
  transition: background 0.15s;
}

.players-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.players-table .rank-cell {
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  text-align: center;
}

.players-table .rank-1 { color: #ffd700; }
.players-table .rank-2 { color: #c0c0c0; }
.players-table .rank-3 { color: #cd7f32; }

.players-table .username-cell {
  color: #eee;
  font-weight: 600;
}

.players-table .wager-cell {
  color: var(--gold-light);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.players-table .prize-cell {
  color: #00ff88;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.players-table .prize-cell.no-prize {
  color: var(--text-dimmer);
  font-weight: 400;
}

.players-table .actions-cell {
  text-align: right;
}

.btn-delete {
  padding: 8px;
  background: rgba(255, 85, 85, 0.1);
  border: 1px solid rgba(255, 85, 85, 0.2);
  border-radius: 8px;
  color: #ff5555;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-delete:hover {
  background: rgba(255, 85, 85, 0.2);
  border-color: rgba(255, 85, 85, 0.5);
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .admin-header { padding: 1rem; }
  .admin-main { padding: 1rem; }
  .admin-card { padding: 1.25rem; }
  .admin-brand h1 { font-size: 1rem; }
  .admin-logo { width: 40px; height: 40px; }

  .login-card { padding: 2rem 1.5rem; }

  .add-form .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .btn-add { width: 100%; justify-content: center; }

  .site-selector { width: 100%; }
  .site-selector select { width: 100%; }

  .admin-toolbar { padding: 1rem; }

  .players-table th,
  .players-table td { padding: 10px 12px; font-size: 0.82rem; }
}/* ============================================
   ARCHIVE ACTIONS
   ============================================ */
.archive-card {
  border-color: rgba(212, 175, 55, 0.2);
}

.archive-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-archive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #f0c14b, #b8941f);
  border: none;
  border-radius: 10px;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-archive:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.btn-archive:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-clear-archive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 85, 85, 0.1);
  border: 1px solid rgba(255, 85, 85, 0.25);
  border-radius: 10px;
  color: #ff7777;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-clear-archive:hover {
  background: rgba(255, 85, 85, 0.2);
  border-color: rgba(255, 85, 85, 0.5);
  transform: translateY(-2px);
}

.btn-clear-archive:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.archive-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: #00ff88;
}

@media (max-width: 640px) {
  .btn-archive,
  .btn-clear-archive {
    width: 100%;
    justify-content: center;
  }
}/* ============================================
   GENERIC MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: linear-gradient(160deg, #17171c 0%, #0f0f12 100%);
  border: 1px solid rgba(240, 193, 75, 0.25);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.modal-overlay.open .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.modal-body .form-group {
  margin-bottom: 1.25rem;
}

.modal-body .form-group label {
  display: block;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-body input[type="date"],
.modal-body input[type="number"],
.modal-body select {
  width: 100%;
  padding: 12px 14px;
  background: #0a0a0c;
  border: 1px solid #2a2a32;
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.modal-body input:focus,
.modal-body select:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(240, 193, 75, 0.1);
}

.modal-body input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.checkbox:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(240, 193, 75, 0.2);
}

.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #f0c14b;
  cursor: pointer;
}

.checkbox span {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 500;
}

.modal-warning {
  padding: 12px 16px;
  background: rgba(255, 85, 85, 0.08);
  border: 1px solid rgba(255, 85, 85, 0.2);
  border-radius: 10px;
  color: #ff7777;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-cancel {
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ccc;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-confirm {
  padding: 12px 22px;
  background: linear-gradient(135deg, #f0c14b, #b8941f);
  border: none;
  border-radius: 10px;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 640px) {
  .modal-overlay { padding: 0.75rem; }
  .modal-header { padding: 1.25rem; }
  .modal-body { padding: 1.25rem; }
  .modal-footer { padding: 1rem 1.25rem; flex-direction: column-reverse; }
  .btn-cancel,
  .btn-confirm { width: 100%; justify-content: center; }
}

/* Period Management */
.period-card {
  border-color: rgba(240, 193, 75, 0.25);
  background: linear-gradient(160deg, rgba(240, 193, 75, 0.05) 0%, rgba(15, 15, 18, 0.9) 100%);
}

.period-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-new-period {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #f0c14b, #b8941f);
  border: none;
  border-radius: 10px;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.btn-new-period:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5);
}

.btn-new-period:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.period-status {
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .btn-new-period { width: 100%; justify-content: center; }
}/* ============================================
   PRIZE DISTRIBUTION
   ============================================ */
.prizes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.prizes-grid::-webkit-scrollbar {
  width: 6px;
}

.prizes-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}

.prizes-grid::-webkit-scrollbar-thumb {
  background: rgba(240, 193, 75, 0.3);
  border-radius: 3px;
}

.prizes-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 193, 75, 0.5);
}

.prize-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px 12px;
  transition: all 0.2s;
}

.prize-row:hover {
  border-color: rgba(240, 193, 75, 0.2);
}

.prize-rank {
  color: var(--gold-light);
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  min-width: 28px;
}

.prize-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 4px;
  outline: none;
  width: 100%;
}

.prize-input:focus {
  color: var(--gold-light);
}

.prizes-total {
  text-align: center;
  padding: 10px;
  background: rgba(240, 193, 75, 0.08);
  border: 1px solid rgba(240, 193, 75, 0.15);
  border-radius: 10px;
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.prizes-total span {
  font-size: 1.05rem;
  font-weight: 800;
}

@media (max-width: 640px) {
  .prizes-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

/* ===== FADE IN UP ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px var(--site-glow);
  }
  50% {
    box-shadow: 0 0 40px var(--site-glow);
  }
}

@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* ===== HEADER ANIMATION ===== */
.lb-header {
  animation: fadeInDown 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.lb-site-logo {
  animation: fadeInScale 0.6s 0.2s backwards cubic-bezier(0.4, 0, 0.2, 1);
}

.lb-header h2 {
  animation: fadeInUp 0.6s 0.3s backwards;
}

.prize-pool-large {
  animation: fadeInUp 0.6s 0.4s backwards;
}

/* ===== PRIZE POOL GLOW ===== */
.prize-pool-large span {
  position: relative;
  animation: subtleFloat 3s ease-in-out infinite;
}

/* ===== PODIUM ANIMATIONS ===== */
.podium-item {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s;
}

/* Podium entry order: 2nd, 1st, 3rd */
.podium-item.rank-2 { animation-delay: 0.2s; }
.podium-item.rank-1 { animation-delay: 0.4s; }
.podium-item.rank-3 { animation-delay: 0.6s; }

/* Podium hover */
.podium-item:hover {
  transform: translateY(-8px) scale(1.02);
}

.podium-item.rank-1:hover {
  transform: translateY(-12px) scale(1.03);
}

/* ===== PODIUM AVATAR GLOW ===== */
.podium-avatar {
  transition: transform 0.4s, box-shadow 0.4s;
}

.podium-item.rank-1 .podium-avatar {
  animation: pulseGlow 3s ease-in-out infinite;
}

.podium-item:hover .podium-avatar {
  transform: scale(1.08);
}

/* ===== COUNTDOWN ===== */
.countdown-wrap {
  animation: fadeInUp 0.7s 0.7s backwards;
}

.cd-value {
  transition: transform 0.2s, color 0.3s;
  display: inline-block;
}

.cd-block:hover .cd-value {
  transform: scale(1.1);
  color: var(--site-primary);
}

/* Last seconds pulse */
.cd-value.urgent {
  animation: pulseGlow 1s ease-in-out infinite;
  color: #ff5555;
  text-shadow: 0 0 30px rgba(255, 85, 85, 0.8);
}

/* ===== TABLE ANIMATIONS ===== */
.table-wrap {
  animation: fadeInUp 0.7s 0.9s backwards;
}

.lb-table tbody tr {
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  transition: background 0.3s, transform 0.2s;
}

/* Stagger rows */
.lb-table tbody tr:nth-child(1) { animation-delay: 1s; }
.lb-table tbody tr:nth-child(2) { animation-delay: 1.1s; }
.lb-table tbody tr:nth-child(3) { animation-delay: 1.2s; }
.lb-table tbody tr:nth-child(4) { animation-delay: 1.3s; }
.lb-table tbody tr:nth-child(5) { animation-delay: 1.4s; }
.lb-table tbody tr:nth-child(6) { animation-delay: 1.5s; }
.lb-table tbody tr:nth-child(7) { animation-delay: 1.6s; }

.lb-table tbody tr:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.03);
}

/* ===== TABLE AVATAR ===== */
.table-avatar {
  transition: transform 0.3s, border-color 0.3s;
}

.lb-table tbody tr:hover .table-avatar {
  transform: scale(1.1);
  border-color: var(--site-primary);
}

/* ===== PREVIOUS LB BUTTON ===== */
.prev-lb-btn {
  animation: fadeInUp 0.6s 0.8s backwards;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prev-lb-btn svg {
  transition: transform 0.3s;
}

.prev-lb-btn:hover svg {
  transform: translateX(-4px);
}

/* ===== SITE TABS ===== */
.site-tabs-wrap {
  animation: fadeInDown 0.6s;
}

.site-tab {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.site-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--tab-color, var(--gold-light)));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 8px;
  pointer-events: none;
}

.site-tab:hover::before {
  opacity: 0.05;
}

.site-tab.active {
  transform: translateY(-2px);
}

/* ===== NUMBER COUNTER ===== */
.counter-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ===== SHIMMER LOADING ===== */
.loading-row {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

/* ===== SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
}

/* ===== REDUCE MOTION (Accessibility) ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ============================================
   AUTO REFRESH TIMER
   ============================================ */
.refresh-timer-wrap {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
}

.refresh-timer {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(15, 15, 18, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transition: all 0.3s;
}

.refresh-timer:hover {
  border-color: var(--site-primary);
  box-shadow: 0 0 20px var(--site-glow);
}

.refresh-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--site-primary);
  animation: rotateSlow 12s linear infinite;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.refresh-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.refresh-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}

.refresh-time {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}

/* Update state (flash) */
.refresh-timer.updating {
  border-color: #00ff88;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
  background: rgba(0, 255, 136, 0.1);
}

.refresh-timer.updating .refresh-icon {
  color: #00ff88;
  animation: spinFast 0.5s linear infinite;
}

@keyframes spinFast {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .refresh-timer {
    padding: 8px 16px;
    gap: 10px;
  }
  .refresh-icon {
    width: 26px;
    height: 26px;
  }
  .refresh-icon svg {
    width: 14px;
    height: 14px;
  }
  .refresh-time {
    font-size: 0.9rem;
  }
  .refresh-label {
    font-size: 0.6rem;
  }
}/* ============================================
   EDIT BUTTON
   ============================================ */
.actions-cell {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.btn-edit {
  padding: 8px;
  background: rgba(240, 193, 75, 0.1);
  border: 1px solid rgba(240, 193, 75, 0.25);
  border-radius: 8px;
  color: var(--gold-light);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-edit:hover {
  background: rgba(240, 193, 75, 0.2);
  border-color: var(--gold-light);
  transform: scale(1.05);
}

/* ===== MODAL INFO ===== */
.modal-info {
  padding: 12px 14px;
  background: rgba(240, 193, 75, 0.06);
  border: 1px solid rgba(240, 193, 75, 0.15);
  border-radius: 10px;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* ===== SMALL MODAL ===== */
.modal-small {
  max-width: 460px;
}