/* ============================================================
   BingoBlitz Pro - Main Stylesheet v1.0
   2026 Neon Dark Design System
   ============================================================ */

:root {
  --bg-0: #03030f;
  --bg-1: #070718;
  --bg-2: #0d0d2b;
  --bg-3: #121236;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --glass: rgba(13,13,43,0.85);
  --glass-border: rgba(255,255,255,0.08);
  --glass-border-glow: rgba(139,92,246,0.3);
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-dark: #6d28d9;
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --green: #10b981;
  --red: #ef4444;
  --pink: #ec4899;
  --text-1: #f1f5f9;
  --text-2: #cbd5e1;
  --text-3: #94a3b8;
  --text-4: #475569;
  --neon-p: 0 0 20px rgba(139,92,246,0.6), 0 0 40px rgba(139,92,246,0.3);
  --neon-c: 0 0 20px rgba(6,182,212,0.6), 0 0 40px rgba(6,182,212,0.3);
  --neon-g: 0 0 20px rgba(245,158,11,0.6), 0 0 40px rgba(245,158,11,0.3);
  --shadow-lg: 0 25px 50px rgba(0,0,0,0.6);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Animated gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(139,92,246,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(6,182,212,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(245,158,11,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.page-wrap { position: relative; z-index: 1; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7,7,24,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.nav-logo .logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--neon-p);
  animation: logoFloat 3s ease-in-out infinite;
}
@keyframes logoFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.nav-logo .logo-text {
  background: linear-gradient(135deg, var(--purple-light), var(--cyan-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav-link:hover { color: var(--text-1); background: var(--bg-card-hover); }
.nav-link.active { color: var(--purple-light); background: rgba(139,92,246,0.1); }
.nav-user { display: flex; align-items: center; gap: 16px; }
.nav-coins {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-light);
}
.nav-avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--purple-dark), var(--cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  border: 2px solid var(--glass-border-glow);
  position: relative;
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-2); border-radius: 2px; transition: var(--transition); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(139,92,246,0.4);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(139,92,246,0.6), var(--neon-p); transform: translateY(-2px); }
.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), #0891b2);
  color: white;
  box-shadow: 0 4px 20px rgba(6,182,212,0.4);
}
.btn-cyan:hover { box-shadow: 0 8px 30px rgba(6,182,212,0.6); transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #1a1000;
  box-shadow: 0 4px 20px rgba(245,158,11,0.4);
}
.btn-gold:hover { box-shadow: 0 8px 30px rgba(245,158,11,0.6); transform: translateY(-2px); }
.btn-glass {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-2);
}
.btn-glass:hover { background: var(--bg-card-hover); color: var(--text-1); border-color: var(--glass-border-glow); }
.btn-danger { background: linear-gradient(135deg, var(--red), #dc2626); color: white; }
.btn-green { background: linear-gradient(135deg, var(--green), #059669); color: white; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 8px; }
.btn-xl { padding: 20px 48px; font-size: 1.2rem; border-radius: var(--radius); }

/* ============================================================
   CARDS / GLASS PANELS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.card:hover { border-color: var(--glass-border-glow); }
.card-glow {
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 0 30px rgba(139,92,246,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
}
.card-gold { border-color: rgba(245,158,11,0.4); box-shadow: 0 0 30px rgba(245,158,11,0.1); }
.card-cyan { border-color: rgba(6,182,212,0.3); box-shadow: 0 0 30px rgba(6,182,212,0.1); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--purple-light);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease;
}
.hero h1 .line1 {
  display: block;
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .line2 {
  display: block;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan-light), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  background-size: 200%;
}
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-3);
  max-width: 640px;
  margin: 0 auto 48px;
  animation: fadeInUp 0.8s ease;
}
.hero-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 80px;
  animation: fadeInUp 0.9s ease;
}
.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
  animation: fadeInUp 1s ease;
}
.hero-stat .num {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat .label { font-size: 0.9rem; color: var(--text-3); margin-top: 4px; }

/* Floating balls background */
.hero-balls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-ball {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  opacity: 0.12;
  animation: floatBall linear infinite;
}
@keyframes floatBall {
  0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.12; }
  90% { opacity: 0.12; }
  100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--purple-light);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-1), var(--text-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub { font-size: 1.1rem; color: var(--text-3); max-width: 500px; margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color, var(--purple)), transparent);
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-color, var(--glass-border-glow));
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 60px; height: 60px;
  background: rgba(139,92,246,0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: var(--transition);
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-5deg); }
.feature-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; color: var(--text-1); }
.feature-card p { color: var(--text-3); font-size: 0.95rem; line-height: 1.7; }

/* ============================================================
   BINGO GAME UI
   ============================================================ */
.game-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-rows: auto 1fr;
  gap: 20px;
  min-height: calc(100vh - 72px);
  padding: 92px 24px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.game-main { grid-column: 1; display: flex; flex-direction: column; gap: 20px; }
.game-sidebar { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 16px; }

/* Called ball display */
.ball-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.ball-display::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(139,92,246,0.08) 0%, transparent 70%);
}
.current-ball-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.current-ball {
  width: 160px; height: 160px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: default;
  transition: var(--transition);
}
.current-ball .ball-letter {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.8;
}
.current-ball .ball-number {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}
.ball-B { background: radial-gradient(circle at 35% 35%, #3b82f6, #1d4ed8); box-shadow: 0 0 40px rgba(59,130,246,0.5), inset -10px -10px 20px rgba(0,0,0,0.3), inset 5px 5px 10px rgba(255,255,255,0.15); }
.ball-I { background: radial-gradient(circle at 35% 35%, #8b5cf6, #6d28d9); box-shadow: 0 0 40px rgba(139,92,246,0.5), inset -10px -10px 20px rgba(0,0,0,0.3), inset 5px 5px 10px rgba(255,255,255,0.15); }
.ball-N { background: radial-gradient(circle at 35% 35%, #10b981, #059669); box-shadow: 0 0 40px rgba(16,185,129,0.5), inset -10px -10px 20px rgba(0,0,0,0.3), inset 5px 5px 10px rgba(255,255,255,0.15); }
.ball-G { background: radial-gradient(circle at 35% 35%, #f59e0b, #d97706); box-shadow: 0 0 40px rgba(245,158,11,0.5), inset -10px -10px 20px rgba(0,0,0,0.3), inset 5px 5px 10px rgba(255,255,255,0.15); }
.ball-O { background: radial-gradient(circle at 35% 35%, #ef4444, #dc2626); box-shadow: 0 0 40px rgba(239,68,68,0.5), inset -10px -10px 20px rgba(0,0,0,0.3), inset 5px 5px 10px rgba(255,255,255,0.15); }
.ball-empty { background: radial-gradient(circle at 35% 35%, #334155, #1e293b); border: 2px dashed rgba(255,255,255,0.1); }

.ball-announce {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-3);
  text-align: center;
}

/* Called numbers board */
.called-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 20px;
  width: 100%;
}
.called-board-header {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}
.cb-letter {
  text-align: center;
  font-weight: 900;
  font-size: 1rem;
  padding: 6px;
  border-radius: 6px;
}
.cb-letter-B { color: #3b82f6; background: rgba(59,130,246,0.1); }
.cb-letter-I { color: #8b5cf6; background: rgba(139,92,246,0.1); }
.cb-letter-N { color: #10b981; background: rgba(16,185,129,0.1); }
.cb-letter-G { color: #f59e0b; background: rgba(245,158,11,0.1); }
.cb-letter-O { color: #ef4444; background: rgba(239,68,68,0.1); }

.cb-number {
  text-align: center;
  padding: 5px 2px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  color: var(--text-4);
  background: rgba(255,255,255,0.03);
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.cb-number.called {
  background: rgba(139,92,246,0.25);
  color: var(--purple-light);
  box-shadow: 0 0 8px rgba(139,92,246,0.3);
  font-weight: 800;
}
.cb-number.latest {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: white;
  box-shadow: 0 0 12px rgba(139,92,246,0.6);
  transform: scale(1.15);
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1.15); opacity: 1; } }

/* Bingo Card */
.bingo-card-wrapper {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
}
.bingo-card-header {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.bingo-header-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 2px;
}
.hdr-B { background: rgba(59,130,246,0.2); color: #60a5fa; }
.hdr-I { background: rgba(139,92,246,0.2); color: #a78bfa; }
.hdr-N { background: rgba(16,185,129,0.2); color: #34d399; }
.hdr-G { background: rgba(245,158,11,0.2); color: #fbbf24; }
.hdr-O { background: rgba(239,68,68,0.2); color: #f87171; }

.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.bingo-cell {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.07);
  user-select: none;
}
.bingo-cell:hover:not(.daubed):not(.free) {
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.4);
  transform: scale(1.05);
}
.bingo-cell.called-not-daubed {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.4);
  animation: callPulse 0.5s ease;
}
@keyframes callPulse { 0%,100% { box-shadow: none; } 50% { box-shadow: 0 0 20px rgba(245,158,11,0.5); } }
.bingo-cell.daubed {
  background: radial-gradient(circle, rgba(139,92,246,0.9), rgba(109,40,217,0.95));
  border-color: var(--purple-light);
  box-shadow: 0 0 15px rgba(139,92,246,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: scale(1.02);
}
.bingo-cell.daubed::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 60%);
  border-radius: inherit;
}
.bingo-cell.free {
  background: radial-gradient(circle, rgba(245,158,11,0.8), rgba(217,119,6,0.9));
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(245,158,11,0.5);
  font-size: 0.75rem;
  letter-spacing: 1px;
  cursor: default;
}
.bingo-cell.win-line {
  animation: winCellPulse 0.5s ease infinite alternate;
}
@keyframes winCellPulse {
  from { box-shadow: 0 0 10px rgba(16,185,129,0.5); border-color: rgba(16,185,129,0.6); }
  to { box-shadow: 0 0 25px rgba(16,185,129,0.9); border-color: var(--green); }
}
.bingo-cell.daub-anim { animation: daub 0.35s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes daub { 0% { transform: scale(1.5); opacity: 0; } 100% { transform: scale(1.02); opacity: 1; } }

/* BINGO button */
.bingo-btn-container { margin-top: 20px; text-align: center; }
#btnBingo {
  width: 100%;
  padding: 18px;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 4px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), #d97706, var(--gold));
  background-size: 200%;
  color: #1a1000;
  box-shadow: 0 8px 32px rgba(245,158,11,0.4);
  transition: var(--transition);
  animation: bgShimmer 3s linear infinite;
  position: relative;
  overflow: hidden;
}
#btnBingo::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(transparent, rgba(255,255,255,0.15), transparent);
  transform: rotate(30deg) translateY(-100%);
  animation: sheen 3s ease-in-out infinite;
}
@keyframes sheen {
  0% { transform: rotate(30deg) translateY(-100%); }
  30%,100% { transform: rotate(30deg) translateY(200%); }
}
@keyframes bgShimmer {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
#btnBingo:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(245,158,11,0.6), var(--neon-g); }
#btnBingo:disabled { opacity: 0.4; cursor: not-allowed; transform: none; animation: none; }

/* Progress bar (how close to bingo) */
.progress-section { padding: 20px 24px; background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius); }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; }
.progress-label .pct { font-weight: 800; color: var(--cyan); }
.progress-track {
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 100px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(139,92,246,0.5);
}

/* ============================================================
   LOBBY
   ============================================================ */
.lobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.room-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  cursor: pointer;
}
.room-card:hover {
  border-color: var(--glass-border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.room-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.room-type-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.type-classic { background: rgba(139,92,246,0.2); color: var(--purple-light); }
.type-speed { background: rgba(239,68,68,0.2); color: #f87171; }
.type-ninety { background: rgba(6,182,212,0.2); color: var(--cyan-light); }
.type-tournament { background: rgba(245,158,11,0.2); color: var(--gold-light); }
.room-status-live { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--green); }
.room-status-live::before { content: ''; width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }

/* ============================================================
   LEADERBOARD
   ============================================================ */
.leaderboard-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.lb-tab {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  color: var(--text-3);
  transition: var(--transition);
}
.lb-tab:hover, .lb-tab.active {
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.4);
  color: var(--purple-light);
}
.lb-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  margin-bottom: 8px;
  transition: var(--transition);
}
.lb-entry:hover { border-color: var(--glass-border-glow); transform: translateX(4px); }
.lb-rank { width: 40px; text-align: center; font-size: 1.2rem; font-weight: 900; }
.lb-rank.gold { color: var(--gold); text-shadow: var(--neon-g); }
.lb-rank.silver { color: #94a3b8; }
.lb-rank.bronze { color: #b45309; }
.lb-avatar { font-size: 1.8rem; }
.lb-info { flex: 1; }
.lb-name { font-weight: 700; color: var(--text-1); }
.lb-level { font-size: 0.8rem; color: var(--text-3); }
.lb-score { font-size: 1.2rem; font-weight: 900; color: var(--purple-light); }

/* ============================================================
   PROFILE
   ============================================================ */
.profile-hero {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
}
.profile-avatar-large {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-dark), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 20px;
  border: 3px solid var(--glass-border-glow);
  box-shadow: var(--neon-p);
}
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 100px;
  font-weight: 700;
  margin-bottom: 24px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.stat-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-align: center;
}
.stat-card .stat-num {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card .stat-label { font-size: 0.85rem; color: var(--text-3); margin-top: 4px; }
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.achievement-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}
.achievement-card.earned { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.05); }
.achievement-card.locked { opacity: 0.4; filter: grayscale(0.8); }
.achievement-card:hover { transform: translateY(-4px); }
.ach-icon { font-size: 2.5rem; margin-bottom: 10px; }
.ach-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.ach-desc { font-size: 0.8rem; color: var(--text-3); }
.ach-rarity { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; }

/* ============================================================
   FORTUNE WHEEL
   ============================================================ */
.wheel-section {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 24px;
}
.wheel-container { position: relative; display: inline-block; margin: 40px 0; }
.wheel-canvas {
  border-radius: 50%;
  filter: drop-shadow(0 0 30px rgba(139,92,246,0.4));
  transition: filter 0.3s;
}
.wheel-container:hover .wheel-canvas { filter: drop-shadow(0 0 50px rgba(139,92,246,0.7)); }
.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 36px solid var(--gold);
  filter: drop-shadow(0 4px 8px rgba(245,158,11,0.6));
  z-index: 10;
}
.wheel-spin-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--gold), #d97706);
  border: 4px solid var(--bg-0);
  color: #1a1000;
  font-weight: 900;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: var(--neon-g);
}
.wheel-spin-btn:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.1); }
.wheel-spin-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   DAILY CHALLENGE
   ============================================================ */
.challenge-card {
  padding: 40px;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(6,182,212,0.05));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.challenge-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238b5cf6' fill-opacity='0.03'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.challenge-multiplier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(245,158,11,0.2);
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 100px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold-light);
  margin: 16px 0;
}
.countdown-timer { display: flex; gap: 16px; justify-content: center; margin-top: 20px; }
.countdown-unit { text-align: center; }
.countdown-num {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.countdown-label { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: rgba(7,7,24,0.95);
  border-right: 1px solid var(--glass-border);
  padding: 24px 16px;
  position: fixed;
  width: 260px;
  height: 100vh;
  overflow-y: auto;
  top: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-1);
  text-decoration: none;
}
.admin-logo span { font-size: 1.5rem; }
.admin-nav-section { margin-top: 24px; margin-bottom: 8px; }
.admin-nav-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-4); padding: 0 10px; margin-bottom: 8px; }
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-3);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  margin-bottom: 2px;
}
.admin-nav-link:hover { background: var(--bg-card-hover); color: var(--text-1); }
.admin-nav-link.active { background: rgba(139,92,246,0.15); color: var(--purple-light); border-left: 3px solid var(--purple); padding-left: 11px; }
.admin-nav-link .icon { font-size: 1.1rem; width: 20px; text-align: center; }
.admin-content { margin-left: 260px; padding: 32px; min-height: 100vh; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.admin-page-title { font-size: 1.8rem; font-weight: 900; }
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.admin-stat-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 20px;
}
.admin-stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.admin-stat-info .num { font-size: 1.8rem; font-weight: 900; }
.admin-stat-info .label { font-size: 0.85rem; color: var(--text-3); }
.admin-table-wrapper { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 14px 20px; text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-3); border-bottom: 1px solid var(--glass-border); background: rgba(255,255,255,0.02); }
.admin-table td { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.95rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.user-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-active { background: rgba(16,185,129,0.15); color: var(--green); }
.status-banned { background: rgba(239,68,68,0.15); color: var(--red); }
.locked-overlay {
  position: relative;
  pointer-events: none;
  opacity: 0.5;
}
.locked-overlay::after {
  content: '🔒 Demo Mode: Settings Locked';
  position: absolute;
  inset: 0;
  background: rgba(7,7,24,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
  border-radius: inherit;
  backdrop-filter: blur(4px);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--purple);
  background: rgba(139,92,246,0.05);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.form-input::placeholder { color: var(--text-4); }
.form-select option { background: var(--bg-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { font-size: 0.85rem; color: var(--red); margin-top: 6px; }
.form-hint { font-size: 0.82rem; color: var(--text-4); margin-top: 6px; }

/* Auth Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-2);
  border: 1px solid var(--glass-border-glow);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), var(--neon-p);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-title { font-size: 1.8rem; font-weight: 900; margin-bottom: 8px; }
.modal-sub { color: var(--text-3); margin-bottom: 32px; }
.modal-tabs { display: flex; gap: 4px; padding: 4px; background: rgba(255,255,255,0.05); border-radius: var(--radius-sm); margin-bottom: 28px; }
.modal-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-3);
  transition: var(--transition);
}
.modal-tab.active { background: var(--purple); color: white; box-shadow: 0 4px 15px rgba(139,92,246,0.4); }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  min-width: 300px;
  max-width: 420px;
  pointer-events: all;
  animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
}
@keyframes toastIn {
  from { transform: translateX(100%) scale(0.8); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}
.toast.out { animation: toastOut 0.3s ease forwards; }
@keyframes toastOut {
  to { transform: translateX(110%); opacity: 0; }
}
.toast::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}
.toast-success::before { background: var(--green); }
.toast-error::before { background: var(--red); }
.toast-info::before { background: var(--cyan); }
.toast-achievement::before { background: var(--gold); }
.toast-icon { font-size: 1.4rem; flex-shrink: 0; }
.toast-body { flex: 1; }
.toast-title { font-weight: 700; font-size: 0.95rem; }
.toast-msg { font-size: 0.85rem; color: var(--text-3); }

/* ============================================================
   CHAT
   ============================================================ */
.chat-panel {
  display: flex;
  flex-direction: column;
  height: 300px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.chat-header { padding: 12px 16px; border-bottom: 1px solid var(--glass-border); font-weight: 700; font-size: 0.9rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { font-size: 0.85rem; }
.chat-msg .cm-user { font-weight: 700; color: var(--purple-light); margin-right: 6px; }
.chat-msg.system { text-align: center; color: var(--text-4); font-style: italic; font-size: 0.8rem; }
.chat-msg.own .cm-user { color: var(--cyan-light); }
.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--glass-border); }
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--text-1);
  font-size: 0.9rem;
  outline: none;
}
.chat-input:focus { border-color: rgba(139,92,246,0.4); }

/* ============================================================
   COUNTDOWN & TIMER
   ============================================================ */
.timer-ring { position: relative; display: inline-block; }
.timer-ring svg { transform: rotate(-90deg); }
.timer-ring .bg { stroke: rgba(255,255,255,0.06); }
.timer-ring .fill { stroke: var(--cyan); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.timer-number { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 1.2rem; font-weight: 900; }

/* ============================================================
   SCROLL & MISC
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.5); }

.glow-text-purple { color: var(--purple-light); text-shadow: var(--neon-p); }
.glow-text-cyan { color: var(--cyan-light); text-shadow: var(--neon-c); }
.glow-text-gold { color: var(--gold-light); text-shadow: var(--neon-g); }

.badge-common { color: #94a3b8; }
.badge-rare { color: var(--cyan-light); }
.badge-epic { color: var(--purple-light); }
.badge-legendary { color: var(--gold-light); }

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.divider { height: 1px; background: var(--glass-border); margin: 24px 0; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

/* WIN CELEBRATION */
.win-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}
.win-overlay.show { opacity: 1; pointer-events: all; }
.win-card {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 60px 80px;
  text-align: center;
  box-shadow: 0 0 80px rgba(245,158,11,0.4), 0 40px 80px rgba(0,0,0,0.5);
  animation: winCardIn 0.6s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
}
@keyframes winCardIn { from { transform: scale(0.5) rotate(-10deg); } to { transform: scale(1) rotate(0deg); } }
.win-emoji { font-size: 5rem; display: block; margin-bottom: 16px; animation: bounce 0.6s ease infinite alternate; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-12px); } }
.win-title { font-size: 3rem; font-weight: 900; color: var(--gold-light); text-shadow: var(--neon-g); margin-bottom: 12px; }
.win-coins { font-size: 1.5rem; font-weight: 800; color: var(--gold); margin-bottom: 24px; }

/* ============================================================
   RESPONSIVE — Global pages
   ============================================================ */

/* Admin layout */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: rgba(7,7,24,0.97);
  border-right: 1px solid var(--glass-border);
  padding: 20px 14px;
  position: fixed;
  width: 260px;
  height: 100vh;
  overflow-y: auto;
  top: 0;
  display: flex;
  flex-direction: column;
  z-index: 300;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.admin-content { margin-left: 260px; padding: 28px; min-height: 100vh; }
.admin-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(7,7,24,0.97);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.admin-menu-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer;
}
.admin-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 250;
  backdrop-filter: blur(4px);
}
.admin-overlay.active { display: block; }

/* General responsive */
@media (max-width: 1024px) {
  .admin-content { margin-left: 260px; }
}
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 30px rgba(0,0,0,0.5);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; padding: 20px; }
  .admin-mobile-header { display: flex; }
  .admin-stats-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .admin-header { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Responsive admin table - card style on mobile */
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; }
  .admin-table tr { padding: 14px; border-bottom: 1px solid var(--glass-border); }
  .admin-table td { padding: 4px 0; font-size: 0.9rem; }
  .admin-table td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 2px;
  }
}

@media (max-width: 768px) {
  .nav { padding: 0 14px; height: 60px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(7,7,24,0.98);
    backdrop-filter: blur(20px);
    padding: 12px;
    border-bottom: 1px solid var(--glass-border);
    z-index: 999;
    gap: 4px;
  }
  .nav-link { padding: 12px 16px; border-radius: 10px; }
  .hamburger { display: flex; }
  .nav-coins { padding: 6px 12px; font-size: 0.85rem; }
  .form-row { grid-template-columns: 1fr; }
  .win-card { padding: 36px 24px; margin: 0 16px; }
  .win-title { font-size: 2.2rem; }
  .win-emoji { font-size: 3.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .hero-stat .num { font-size: 2rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .lobby-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-entry { gap: 10px; padding: 14px 14px; }
  .lb-score { font-size: 1rem; }
  .modal { padding: 24px 18px; margin: 16px; }
  .toast-container { bottom: 16px; right: 12px; left: 12px; }
  .toast { min-width: unset; max-width: 100%; }

  /* Section spacing */
  .features { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .container-sm { padding: 0 14px; }
  .hero h1 { font-size: 2.6rem; letter-spacing: -1px; }
  .hero p { font-size: 1rem; }
  .btn-xl { padding: 16px 32px; font-size: 1rem; }
  .modal { padding: 22px 16px; max-width: calc(100vw - 24px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .achievements-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .challenge-card { padding: 24px 20px; }
  .wheel-canvas { width: 300px !important; height: 300px !important; }
  .countdown-timer { gap: 8px; }
  .countdown-num { font-size: 1.6rem; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 2rem; }
  .achievements-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   V2.5 — New Features & Premium Enhancements
   ============================================================ */

/* Streak Rewards Grid — responsive */
.streak-rewards-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
@media (max-width: 700px) {
  .streak-rewards-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 400px) {
  .streak-rewards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Lucky ball — golden highlight on one cell */
.bingo-cell { position: relative; }
.bingo-cell.lucky {
  background: linear-gradient(135deg, rgba(245,158,11,0.22), rgba(251,191,36,0.08)) !important;
  border: 2px solid rgba(245,158,11,0.65) !important;
  box-shadow: 0 0 14px rgba(245,158,11,0.35), inset 0 0 8px rgba(245,158,11,0.1);
}
.bingo-cell.lucky::after {
  content: '★';
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.5rem;
  color: var(--gold);
  line-height: 1;
}
@keyframes luckyCalled {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.18); box-shadow: 0 0 32px rgba(245,158,11,0.9); }
  100% { transform: scale(1); }
}
.bingo-cell.lucky.daubed { animation: luckyCalled 0.7s ease; }

/* Ball history rail */
.ball-history-rail {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 8px;
  min-height: 30px;
  align-items: center;
  flex-wrap: nowrap;
}
.ball-history-item {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  opacity: 0.55;
  flex-shrink: 0;
  transition: opacity 0.4s;
}
.ball-history-item:last-child { opacity: 0.85; }

/* Reaction strip */
.reaction-strip {
  display: flex;
  gap: 2px;
  padding: 5px 8px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}
.react-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 5px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  flex: 1;
  text-align: center;
}
.react-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  transform: scale(1.25);
}
.react-btn:active { transform: scale(0.9); }

/* Hot streak dots */
.hot-streak-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg-card);
  border-radius: 8px;
  font-size: 0.78rem;
}
.hot-streak-dots { display: flex; gap: 4px; flex-shrink: 0; }
.hot-streak-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transition: background 0.3s, box-shadow 0.3s;
}
.hot-streak-dot.hit {
  background: var(--gold);
  box-shadow: 0 0 7px rgba(245,158,11,0.7);
}

/* Near-bingo card glow */
.bingo-card-wrapper.near-bingo {
  border-color: rgba(245,158,11,0.6) !important;
  box-shadow: 0 0 28px rgba(245,158,11,0.22), inset 0 0 20px rgba(245,158,11,0.06) !important;
}
@keyframes nearBingoPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(245,158,11,0.2); }
  50%       { box-shadow: 0 0 40px rgba(245,158,11,0.45), 0 0 60px rgba(245,158,11,0.12); }
}

/* Line complete flash */
@keyframes lineComplete {
  0%   { background: rgba(16,185,129,0.08); }
  40%  { background: rgba(16,185,129,0.32); box-shadow: 0 0 16px rgba(16,185,129,0.3); }
  100% { background: rgba(16,185,129,0.12); }
}

/* Premium bingo cell hover */
.bingo-cell:not(.free):not(.daubed):hover {
  transform: scale(1.04);
  box-shadow: 0 0 14px rgba(139,92,246,0.35);
  border-color: rgba(139,92,246,0.6) !important;
  z-index: 1;
}

/* Daily page premium card spacing */
@media (max-width: 600px) {
  .streak-rewards-grid > div {
    padding: 10px 4px !important;
  }
  .streak-rewards-grid > div > div:first-child {
    font-size: 1rem !important;
  }
}

/* Multiplayer chat panel reaction strip */
.chat-panel { display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; }

/* Admin unlimited spin badge */
.spin-unlimited-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple-light);
  margin-bottom: 12px;
}

/* Premium ball-letter subtle text-shadow */
.current-ball .ball-letter {
  text-shadow: 0 0 8px currentColor;
}
.current-ball .ball-number {
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* Daily login card polish */
.card-glow {
  animation: cardGlowPulse 3s ease-in-out infinite;
}
@keyframes cardGlowPulse {
  0%, 100% { box-shadow: var(--shadow-card); }
  50%       { box-shadow: 0 0 40px rgba(139,92,246,0.25), var(--shadow-card); }
}
