/* ============================================================
   BOOYAH CENTRAL – Main Stylesheet
   Free Fire MAX Inspired Theme | Fiery Orange + Golden Yellow
   Gaming Dashboard Style | Battle Royale Aesthetics
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Black+Ops+One&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ═══════════════════════════════════════════════════════
     GOLD RUSH COLOR PALETTE
     Black + Metallic Gold + Cyan Accent Theme
     ═══════════════════════════════════════════════════════ */
  
  /* Primary Colors - Metallic Gold */
  --primary-orange: #D4AF37;
  --primary-orange-light: #FFD700;
  --primary-orange-dark: #B8860B;
  --flame-orange: #D4AF37;
  
  /* Secondary Colors - Rich Gold */
  --secondary-gold: #FFD700;
  --secondary-gold-light: #FFEB3B;
  --secondary-gold-dark: #D4AF37;
  --gold-accent: #FFD700;
  
  /* Background Colors - Dark Black */
  --bg-dark: #0A0A0A;
  --bg-dark-secondary: #141414;
  --bg-dark-tertiary: #1C1C1C;
  --bg-card: rgba(20, 20, 20, 0.95);
  --bg-card2: rgba(30, 30, 30, 0.98);
  
  /* Accent & Glow Colors - Gold */
  --glow-orange: 0 0 20px rgba(212, 175, 55, 0.5);
  --glow-gold: 0 0 20px rgba(255, 215, 0, 0.4);
  --glow-orange-strong: 0 0 30px rgba(212, 175, 55, 0.7);
  --glow-flame: 0 0 40px rgba(212, 175, 55, 0.6);
  --glow-gold-strong: 0 0 30px rgba(255, 215, 0, 0.6);
  
  /* Border Colors - Gold */
  --border: rgba(212, 175, 55, 0.15);
  --border-gold: rgba(255, 215, 0, 0.2);
  --border-orange: rgba(212, 175, 55, 0.3);
  --border-flame: rgba(212, 175, 55, 0.4);
  
  /* Text Colors */
  --text-primary: #F5F5F5;
  --text-secondary: #C0C0C0;
  --text-muted: #808080;
  --text-inverse: #0A0A0A;
  
  /* Accent Highlight - Cyan for WIN */
  --accent-cyan: #00D4FF;
  --accent-cyan-glow: 0 0 20px rgba(0, 212, 255, 0.5);
  
  /* Money Green for WIN text */
  --money-green: #22c55e;
  --money-green-glow: 0 0 20px rgba(34, 197, 94, 0.5);
  --money-green-light: #4ade80;
  --money-green-dark: #16a34a;
  
  /* Status Colors */
  --success: #00E676;
  --success-glow: rgba(0, 230, 118, 0.3);
  --danger: #FF4466;
  --danger-glow: rgba(255, 68, 102, 0.3);
  --warning: #FFAA00;
  --warning-glow: rgba(255, 170, 0, 0.3);
  
  /* Legacy aliases for compatibility */
  --neon-green: #D4AF37;
  --neon-purple: #FFD700;
  --neon-cyan: #00D4FF;
  --neon-orange: #D4AF37;
  
  /* Typography */
  --font-display: 'Orbitron', monospace;
  --font-ui: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
  max-width: 100vw;
}

/* ═══════════════════════════════════════════════════════
   PRELOADER - Shows on first load
   ═══════════════════════════════════════════════════════ */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0A0A0A;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.preloader-logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

.preloader-logo .logo-icon {
  font-size: 36px;
  color: #D4AF37;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}

.preloader-logo .logo-text {
  font-family: 'Orbitron', monospace;
  font-size: 28px;
  font-weight: 900;
  color: #D4AF37;
  letter-spacing: 2px;
}

.preloader-logo .logo-accent {
  color: #C0C0C0;
}

.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: #D4AF37;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6)); }
  50% { filter: drop-shadow(0 0 25px rgba(212, 175, 55, 1)); }
}

/* ═══════════════════════════════════════════════════════
   BACKGROUND EFFECTS - Free Fire MAX Style
   ═══════════════════════════════════════════════════════ */
.bg-grid {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 106, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 106, 0, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  max-width: 100vw;
  overflow: hidden;
}

.bg-particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 20% 20%, rgba(255, 106, 0, 0.03) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(255, 193, 7, 0.02) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(255, 69, 0, 0.02) 0%, transparent 40%);
  max-width: 100vw;
  overflow: hidden;
}

.bg-gradient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(15, 15, 15, 0.2) 0%, rgba(15, 15, 15, 0.3) 70%);
  max-width: 100vw;
  overflow: hidden;
}

/* Free Fire MAX Flame Effect Overlay */
.bg-flame-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: 
    linear-gradient(180deg, transparent 0%, rgba(255, 106, 0, 0.01) 50%, transparent 100%),
    linear-gradient(135deg, transparent 30%, rgba(255, 69, 0, 0.01) 50%, transparent 70%);
  opacity: 0.3;
}

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-family: 'Bebas Neue', sans-serif; line-height: 1.2; }
.rajdhani { font-family: var(--font-ui); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { 
  background: linear-gradient(180deg, var(--primary-orange), var(--primary-orange-light)); 
  border-radius: 4px; 
}

/* ──────────────────────────────────────────────────────── */
/*  HEADER                                                   */
/* ──────────────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(8,12,20,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px 0 24px;
  height: 70px;
  transition: var(--transition);
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
  box-sizing: border-box;
}

/* Free Fire MAX Style - Diagonal Accent Line */
.header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--primary-orange) 20%, 
    var(--secondary-gold) 50%, 
    var(--primary-orange) 80%, 
    transparent 100%
  );
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.5);
}

.header.scrolled {
  background: rgba(8,12,20,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
  position: relative;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 140px;
}

.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Mobile logo */
@media (max-width: 768px) {
  .logo img {
    height: 40px;
  }
}

.logo-icon { 
  font-size: 24px; 
  color: var(--primary-orange);
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.3));
  flex-shrink: 0;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 8px var(--primary-orange)); }
  50% { filter: drop-shadow(0 0 16px var(--primary-orange)); }
}

.logo-text {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 900;
  color: var(--primary-orange);
  letter-spacing: 2px;
  flex-shrink: 0;
  min-width: 80px;
}

.logo-accent { color: #C0C0C0; }

/* Header Right - Contains wallet and hamburger */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Wallet Icon in Header */
.header-wallet {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-orange);
  border-radius: 8px;
  color: var(--primary-orange);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.header-wallet:hover {
  background: rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
}

.header-wallet i {
  font-size: 16px;
}

/* Nav - hidden by default on desktop, shown in hamburger dropdown */
.nav { display: none; }

/* Auth section inside nav - for hamburger menu on desktop */
.nav-auth-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
}

/* Wallet Balance in Header */
.header-wallet {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-orange);
  border-radius: 8px;
  color: var(--primary-orange);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.header-wallet:hover {
  background: rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
}

.header-wallet i {
  font-size: 16px;
}

.nav-link {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  color: var(--text-secondary); text-decoration: none;
  padding: 8px 14px; border-radius: 8px;
  transition: var(--transition); letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}

.nav-link i { font-size: 12px; }

.nav-link:hover, .nav-link.active {
  color: var(--primary-orange);
  background: rgba(212, 175, 55, 0.12);
  transform: translateY(-2px);
}

/* Mobile Nav Links - Profile & Logout inside hamburger (looks like nav items) */
.mobile-nav-link {
  display: none;
}

/* Mobile Wallet Balance - shown inside hamburger when logged in */
.mobile-wallet-balance {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 10px 0;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.15), rgba(255, 193, 7, 0.15));
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--primary-orange);
  font-family: var(--font-ui);
  font-weight: 600;
}

.mobile-wallet-balance i {
  font-size: 18px;
}

.mobile-wallet-balance strong {
  color: var(--primary-orange-light);
}

/* Mobile Auth Buttons - Login/Signup inside hamburger */
.mobile-auth-buttons {
  display: none;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.mobile-auth-buttons a {
  flex: 1;
  justify-content: center;
  padding: 12px 16px;
  font-size: 14px;
  text-align: center;
}

/* Mobile Nav Actions - hidden on desktop */
.mobile-nav-actions {
  display: none;
}

/* Show mobile elements only on mobile (≤768px) */
@media (max-width: 768px) {
  .mobile-nav-link {
    display: flex;
  }
  
  .mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  /* Hide header actions and user menu on mobile */
  .header-actions {
    display: none !important;
  }
  
  .user-menu {
    display: none !important;
  }
}

/* Desktop - show hamburger menu and header-right */
@media (min-width: 769px) {
  .mobile-nav-link {
    display: none !important;
  }
  
  .mobile-auth-buttons {
    display: none !important;
  }
  
  /* Show header-right with wallet */
  .header-right {
    display: flex !important;
    align-items: center;
    gap: 12px;
  }
  
  /* Show wallet in header-right */
  .header-wallet {
    display: flex !important;
  }
  
  /* Show hamburger on desktop - positioned on right */
  .hamburger {
    display: flex !important;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    z-index: 10001;
  }
  
  /* Hide nav by default on desktop - will show when hamburger clicked */
  .nav {
    display: none !important;
  }
  
  /* Show nav when hamburger is active */
  .nav.open {
    display: flex !important;
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(8,12,20,0.98);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    flex-direction: column;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 1000;
  }
  
  .nav.open .nav-link {
    width: 100%;
    padding: 12px 16px;
  }
  
  /* Show nav-auth-section in the open dropdown */
  .nav-auth-section {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    padding-top: 0;
    width: 100%;
  }
  
  .nav.open .nav-auth-section {
    display: flex;
  }
  
  .nav.open .nav-auth-section .btn-outline,
  .nav.open .nav-auth-section .btn-neon {
    width: 100%;
    justify-content: center;
  }
  
  .nav.open .nav-auth-section .user-menu {
    width: 100%;
  }
  
  .nav.open .nav-auth-section .avatar-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Hide old header-actions */
  .header-actions {
    display: none !important;
  }
  
  /* Hide auth buttons by default - JS will show them based on auth state */
  #login-btn,
  #signup-btn {
    display: none;
  }
  
  /* When user is logged in, JS will show user-menu */
  .user-menu.visible {
    display: block;
  }
  
  /* When logged out, JS will show login/signup buttons */
  #login-btn.visible,
  #signup-btn.visible {
    display: inline-flex;
  }
}

.mobile-nav-actions .btn-outline,
.mobile-nav-actions .btn-neon {
  flex: 1;
  justify-content: center;
  padding: 12px 16px;
  font-size: 14px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.wallet-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 6px; padding: 6px 12px;
  font-family: var(--font-ui); font-weight: 600; font-size: 13px;
  color: #FFD700;
}

@keyframes subtle-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 106, 0, 0.2); }
  50% { box-shadow: 0 0 15px rgba(255, 106, 0, 0.3); }
}

/* Buttons */
.btn-neon, .btn-outline {
  font-family: var(--font-ui); font-weight: 700; font-size: 14px;
  padding: 8px 20px; border-radius: 6px; cursor: pointer;
  text-decoration: none; transition: var(--transition);
  letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 8px;
  border: none;
}

.btn-neon {
  background: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #D4AF37 100%);
  color: #000000;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-neon::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.btn-neon:hover::before {
  left: 100%;
}

.btn-neon:hover {
  background: linear-gradient(135deg, #FFD700 0%, #FFEB3B 50%, #FFD700 100%);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
  color: #000000;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-purple {
  background: linear-gradient(135deg, var(--secondary-gold), #B8860B);
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-purple:hover { 
  background: linear-gradient(135deg, var(--secondary-gold-light), var(--secondary-gold));
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

.btn-large { font-size: 16px; padding: 14px 36px; border-radius: 12px; }
.btn-danger { background: #ff4466; color: #fff; border: 2px solid #ff4466; }
.btn-danger:hover { background: #ff2244; }
.btn-success { background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark)); color: #fff; border: 2px solid var(--primary-orange); }

/* Green Gaming Join Button */
.join-match-btn {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  transition: all 0.25s ease;
  padding: 10px 20px;
  font-family: var(--font-ui);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  flex: 1;
  font-weight: 700;
}

.join-match-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.5);
}

/* ── Contest Card ─────────────────────────────────────── */
.contest-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,215,0,0.15);
}

.contest-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
  transition: transform 0.3s ease;
}

.contest-card:hover .contest-card-bg {
  transform: scale(1.03);
}

.contest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.65) 40%,
    rgba(8,12,20,0.92) 100%
  );
  z-index: 1;
}

.contest-card-content {
  position: relative;
  z-index: 2;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.contest-header {
  padding-bottom: 6px;
}

.contest-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(14px, 3.5vw, 18px);
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.contest-map {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-family: 'Rajdhani', sans-serif;
  margin-top: 2px;
}

.contest-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.contest-stat-box {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.contest-stat-val {
  font-family: 'Orbitron', monospace;
  font-size: clamp(14px, 4vw, 20px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.contest-stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-family: 'Rajdhani', sans-serif;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contest-progress {
  padding: 0 1px;
}

.contest-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-family: 'Rajdhani', sans-serif;
  margin-bottom: 6px;
}

.contest-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
}

.contest-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b00, #ffd700);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.contest-timer {
  text-align: center;
  padding: 4px 0;
}

.contest-timer-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 3px;
  font-family: 'Rajdhani', sans-serif;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.contest-timer-blocks {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.contest-timer-block {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  backdrop-filter: blur(4px);
}

.contest-timer-val {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #ffd700;
  line-height: 1;
}

.contest-timer-unit {
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  margin-top: 3px;
  font-family: 'Rajdhani', sans-serif;
}

.contest-footer {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.contest-btn-prize {
  flex: 1;
  padding: 11px 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.contest-btn-prize:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
}

.contest-btn-join {
  flex: 1;
  padding: 11px 8px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 12px rgba(124,58,237,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.contest-btn-join:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(124,58,237,0.45);
}

@media (max-width: 480px) {
  .contest-card-content { padding: 10px; gap: 8px; }
  .contest-stat-box { padding: 6px 4px; }
  .contest-stat-val { font-size: 14px; }
  .contest-timer-block { min-width: 42px; padding: 5px 8px; }
  .contest-timer-val { font-size: 16px; }
  .contest-btn-prize, .contest-btn-join { font-size: 11px; padding: 8px 6px; }
}

/* Match Live Badge */
.match-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255, 68, 85, 0.15);
  color: #ff4455;
  border: 1px solid rgba(255, 68, 85, 0.3);
}

/* Match Progress */
.match-progress {
  margin-bottom: 16px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-orange), var(--secondary-gold));
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Time Block */
.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 56px;
}

.time-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-orange);
}

.time-unit {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* User Menu */
.avatar-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-purple));
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: #000; position: relative;
  transition: var(--transition);
}

.avatar-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.5);
}

.dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 14px; min-width: 200px;
  padding: 10px; display: none; flex-direction: column;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  z-index: 100;
  animation: dropdown-appear 0.2s ease;
}

@keyframes dropdown-appear {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown.open { display: flex; }

.dropdown a {
  padding: 12px 16px; color: var(--text-secondary); text-decoration: none;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  border-radius: 8px; transition: var(--transition);
  display: flex; align-items: center; gap: 10px;
}

.dropdown a i { width: 18px; text-align: center; }

.dropdown a:hover { 
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.1), rgba(255, 193, 7, 0.08)); 
  color: var(--primary-orange);
  transform: translateX(4px);
}

.user-menu { position: relative; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: rgba(255, 106, 0, 0.1);
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
  flex-shrink: 0;
}

.hamburger:hover {
  background: rgba(255, 106, 0, 0.2);
  border-color: rgba(255, 106, 0, 0.4);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-orange);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ──────────────────────────────────────────────────────── */
/*  HERO                                                     */
/* ──────────────────────────────────────────────────────── */

/* Hero entrance animations */
@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes heroGlowPulse {
  0%, 100% {
    text-shadow: 0 0 20px rgba(255, 184, 0, 0.6), 0 0 40px rgba(255, 107, 0, 0.4);
  }
  50% {
    text-shadow: 0 0 30px rgba(255, 184, 0, 0.8), 0 0 60px rgba(255, 107, 0, 0.6), 0 0 80px rgba(255, 107, 0, 0.3);
  }
}

@keyframes heroBtnPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.7), 0 0 50px rgba(255, 215, 0, 0.3);
  }
}

@keyframes heroBackgroundGlow {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

.hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Dramatic hero background - desktop */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  /* Radial gradient glow from center-right */
  background: 
    /* Hexagonal pattern overlay */
    radial-gradient(ellipse at 80% 50%, rgba(255, 107, 0, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(255, 184, 0, 0.08) 0%, transparent 40%),
    /* Main amber glow */
    radial-gradient(ellipse at 70% 40%, rgba(255, 107, 0, 0.25) 0%, transparent 60%),
    /* Dark vignette */
    radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0.8) 100%);
  animation: heroBackgroundGlow 8s ease-in-out infinite;
}

/* Noise/grain texture overlay */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Hero Wrapper - Full Width Single Column */
.hero-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
  z-index: 2;
  padding: 0 0 0 20px;
  box-sizing: border-box;
  align-items: flex-start;
}

/* Hero Content - Hard left aligned */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  padding: 0;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-container {
  width: 100%;
  max-width: 560px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-align: left;
  align-items: flex-start;
}

/* Music Control */
.music-control {
  position: absolute;
  top: 110px;
  right: 20px;
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: rgba(255, 215, 0, 0.8);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.music-control:hover {
  background: rgba(255, 215, 0, 0.1);
  color: rgba(255, 215, 0, 1);
  transform: scale(1.05);
  box-shadow: none;
}

.music-control.playing {
  color: #FFD700;
  box-shadow: none;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(255, 215, 0, 0.12));
  border: 1px solid var(--border-orange);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-orange);
  letter-spacing: 1px;
  margin-bottom: 12px;
  white-space: nowrap;
}

.hero-badge i { font-size: 12px; }

/* Hero Title */
.hero-title {
  font-family: 'Bebas Neue', 'Black Ops One', sans-serif;
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* Individual title lines with animations */
.title-line { 
  text-align: left;
  width: 100%;
  display: block; 
  font-size: clamp(32px, 8vw, 80px);
  color: #D4AF37;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.8);
  opacity: 0;
  animation: heroSlideUp 0.6s ease forwards;
}

.title-line:nth-child(1) {
  animation-delay: 0.1s;
}

.title-line:nth-child(2) {
  animation-delay: 0.25s;
}

.title-line:nth-child(3) {
  animation-delay: 0.4s;
}

/* WIN. gets fiery glow effect */
.title-line.accent { 
  color: #FFD700;
  text-shadow: 0 0 25px rgba(255, 215, 0, 0.7), 0 0 50px rgba(255, 107, 0, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.8);
  animation: heroGlowPulse 2s ease-in-out infinite, heroSlideUp 0.6s ease forwards;
  animation-delay: 0.25s, 0.25s;
}

/* Hero Subtitle */
.hero-sub {
  text-align: left;
  max-width: 580px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 400;
  opacity: 0;
  animation: heroFadeIn 0.6s ease forwards;
  animation-delay: 0.55s;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Hero Buttons */
.hero-btns {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  opacity: 0;
  animation: heroFadeIn 0.6s ease forwards;
  animation-delay: 0.7s;
}

/* Primary button - Gold fill with glow */
.hero-btns .btn-neon {
  background: linear-gradient(135deg, #FFB800 0%, #FFD700 50%, #FFB800 100%);
  color: #000000;
  box-shadow: 0 4px 20px rgba(255, 184, 0, 0.4);
  animation: heroBtnPulse 2s ease-in-out infinite;
  animation-delay: 0.7s;
}

.hero-btns .btn-neon:hover {
  background: linear-gradient(135deg, #FFD700 0%, #FFEB3B 50%, #FFD700 100%);
  box-shadow: 0 6px 30px rgba(255, 184, 0, 0.6);
  transform: translateY(-2px);
  color: #000000;
}

/* Secondary button - Gold outline */
.hero-btns .btn-outline {
  background: transparent;
  color: #FFB800;
  border: 2px solid #FFB800;
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.2);
}

.hero-btns .btn-outline:hover {
  background: rgba(255, 184, 0, 0.15);
  border-color: #FFD700;
  color: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.4);
}

/* Hero Image Slider Background - Absolute */
.hero-slider-right {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hero-slider-right .image-slider-full {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  border-radius: 0;
}

/* Image Slider - Full Width */
.image-slider-full {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 12px;
}

/* Individual Slide */
.image-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

/* Dark overlay for 70% image visibility - Option 2 preferred method */
.image-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.image-slide.active {
  opacity: 1;
}

.image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Image Overlay */
.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  z-index: 2;
}

.overlay-heading {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  margin: 0;
  text-align: left;
  text-shadow: none;
}

/* Slider Dots - Completely Removed */
.image-slider-dots {
  display: none !important;
}

.image-dot {
  display: none !important;
}

/* ===== DESKTOP (≥1024px) ===== */
@media (min-width: 1024px) {
  .hero {
    padding: 100px 0 40px;
    min-height: auto;
  }
  
  .hero-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 520px;
    padding: 0 0 0 24px;
    border-radius: 0;
  }
  
  .hero-content {
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 0 24px;
    background: transparent;
  }
  
  .hero-container {
    max-width: 100%;
    text-align: left;
    align-items: flex-start;
    padding: 0;
  }
  
  .hero-badge {
    justify-content: flex-start;
    margin-bottom: 16px;
  }
  
  .hero-title {
    text-align: left;
    margin-bottom: 16px;
  }
  
  .hero-sub {
    text-align: left;
    margin-bottom: 24px;
  }
  
  .hero-btns {
    justify-content: flex-start;
  }
  
  .hero-slider-right {
    display: flex;
    align-items: center;
    position: relative;
    display: none;
  }
  
  .image-slider-full {
    height: 100%;
    min-height: 520px;
    border-radius: 0;
  }
  
  .overlay-heading {
    font-size: 22px;
    padding: 30px 24px;
    text-shadow: none;
  }
  
  .image-slider-dots {
    bottom: 20px;
    right: 20px;
  }
  
  .music-control {
    top: 110px;
    right: 24px;
  }
}

/* ===== TABLET (768px - 1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    padding: 85px 0 30px;
  }
  
  .hero-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 480px;
    padding: 0;
  }
  
  .hero-content {
    align-items: flex-start;
    justify-content: center;
    padding: 0 20px;
    background: transparent;
  }
  
  .hero-container {
    text-align: left;
    align-items: flex-start;
    padding: 0;
  }
  
  .hero-badge,
  .hero-title,
  .hero-sub,
  .hero-btns {
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
  }
  
  .hero-badge {
    justify-content: flex-start;
  }
  
  .hero-btns {
    justify-content: flex-start;
  }
  
  .hero-slider-right {
    position: relative;
  }
  
  .image-slider-full {
    height: 100%;
    min-height: 100%;
    border-radius: 0;
  }
  
  .overlay-heading {
    font-size: 18px;
    text-shadow: none;
  }
}

/* ===== MOBILE (≤767px) ===== */
@media (max-width: 767px) {
  /* Full-screen dramatic hero background */
  .hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 70px 16px 30px !important;
    margin: 0 !important;
    min-height: 100vh !important;
    height: 100vh !important;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-wrapper {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }

  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 16px !important;
    margin: 0 !important;
    text-align: left !important;
    align-items: flex-start !important;
    position: relative !important;
    left: 0 !important;
    z-index: 2;
  }

  .title-line {
    font-size: clamp(26px, 8vw, 48px) !important;
    text-align: left !important;
    width: 100% !important;
    letter-spacing: 1px !important;
    line-height: 1.1 !important;
    white-space: normal !important;
  }

  .hero-sub {
    text-align: left !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .hero-btns {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 0 !important;
  }
}
  
  /* Dramatic background with radial amber glow */
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    /* Radial amber/orange glow from upper-center */
    background: 
      radial-gradient(ellipse at 50% 30%, rgba(255, 107, 0, 0.35) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 60%, rgba(255, 107, 0, 0.2) 0%, transparent 40%),
      radial-gradient(ellipse at 50% 100%, rgba(26, 10, 0, 0.8) 0%, transparent 60%),
      linear-gradient(180deg, #000 0%, #0a0500 50%, #000 100%);
    animation: heroBackgroundGlow 8s ease-in-out infinite;
  }
  
  /* Hexagonal pattern overlay */
  .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 17.32V51.96L30 69.28L0 51.96V17.32L30 0z' fill='none' stroke='%23D4AF37' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
  }
  
  /* Floating embers animation */
  .hero .embers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
  }
  
  .hero .embers::before,
  .hero .embers::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 184, 0, 0.6);
    border-radius: 50%;
    animation: floatEmber 4s ease-in-out infinite;
  }
  
  .hero .embers::before {
    left: 20%;
    animation-delay: 0s;
  }
  
  .hero .embers::after {
    left: 70%;
    animation-delay: 2s;
  }
  
  @keyframes floatEmber {
    0% {
      transform: translateY(100vh) scale(0);
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    90% {
      opacity: 1;
    }
    100% {
      transform: translateY(-20px) scale(1);
      opacity: 0;
    }
  }
  
  /* Hero Wrapper */
  .hero-wrapper {
    gap: 0;
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    margin: 0;
    position: relative;
    z-index: 2;
  }
  
  /* Hero Content - Full Width */
  .hero-content {
    order: unset;
    width: 100%;
    flex: unset;
    padding: 0;
    background: transparent;
    position: relative;
    z-index: 10;
    margin-top: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-container {
    max-width: 100%;
    padding: 0;
    width: 100%;
  }
  
  /* Hero Badge */
  .hero-badge {
    font-size: 11px;
    padding: 8px 16px;
    margin-bottom: 20px;
    justify-content: flex-start;
    width: auto;
    align-self: flex-start;
  }
  
  /* Hero Title - Large scalable size */
  .hero-title {
    font-size: clamp(2.8rem, 10vw, 5rem) !important;
    margin-bottom: 16px;
    line-height: 1.05;
    text-align: left;
    width: 100%;
  }
  
  .title-line {
    display: block;
    text-align: left;
  }
  
  /* Hero Subtitle */
  .hero-sub {
    font-size: clamp(0.85rem, 3.5vw, 1rem) !important;
    margin-bottom: 24px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    padding: 0;
    max-width: 100%;
  }
  
  /* Hero Buttons - Full Width */
  .hero-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0;
  }
  
  .hero-btns .btn-neon, 
  .hero-btns .btn-outline {
    width: 100% !important;
    padding: 16px 20px;
    font-size: 1rem;
    white-space: nowrap;
    flex: unset;
    justify-content: center;
    min-width: unset;
  }
  
  /* Join Tournament - Solid gold with glow */
  .hero-btns .btn-neon {
    background: #FFB800 !important;
    color: #000 !important;
    font-weight: 700;
    box-shadow: 0 0 25px rgba(255, 184, 0, 0.5);
  }
  
  .hero-btns .btn-neon:hover {
    background: #FFD700 !important;
    box-shadow: 0 0 35px rgba(255, 184, 0, 0.7);
  }
  
  /* View Tournaments - Transparent with gold border */
  .hero-btns .btn-outline {
    background: transparent !important;
    color: #FFB800 !important;
    border: 2px solid #FFB800 !important;
  }
  
  .hero-btns .btn-outline:hover {
    background: rgba(255, 184, 0, 0.15) !important;
    border-color: #FFD700 !important;
    color: #FFD700 !important;
  }
  
  .overlay-heading {
    font-size: 15px;
    padding: 12px 16px;
    text-align: left;
    justify-content: flex-start;
    text-shadow: none;
  }
  
  .image-slider-dots {
    bottom: 12px;
    right: 12px;
  }
  
  .image-dot {
    width: 8px;
    height: 8px;
  }
  
  /* Hide slider on mobile - content only */
  .hero-slider-right {
    display: none !important;
  }
  
  .music-control {
    top: 85px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 14px;
    z-index: 100;
  }

/* Desktop only - show hero visual and left-align content */
@media (min-width: 1024px) {
  /* Navigation - keep hidden on desktop, shown in hamburger dropdown */
  .nav {
    display: none !important;
  }
  .hamburger { display: flex; }
  
  /* Hero - keep visual hidden on all devices */
  .hero-visual {
    display: none !important;
  }
  .hero {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
    padding: 120px 40px 80px;
    max-width: 100%;
    margin: 0;
    width: 100%;
    background-image: url('images/booyah-central-desktop.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }
  
  /* Hero slider - visible only on hero section */
  .hero-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
  }
  
  /* Darker overlay on hero content for readability */
  .hero::before {
    position: fixed;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.5) 100%);
  }
  
  /* Hide background for sections after hero */
  .section, 
  .footer,
  .page-wrapper {
    background: var(--bg-dark) !important;
  }
  .hero-content {
    max-width: 600px;
    text-align: left;
    align-items: flex-start;
    padding: 0;
    margin: 0;
  }
  .hero-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
    text-align: left;
    align-items: flex-start;
  }
  .hero-badge {
    justify-content: flex-start;
    margin-bottom: 20px;
  }
  .hero-title {
    text-align: left;
    align-items: flex-start;
    margin-bottom: 16px;
  }
  .hero-sub {
    text-align: left;
    padding: 0;
    margin-bottom: 32px;
    max-width: 500px;
  }
  .hero-btns {
    justify-content: flex-start;
    padding: 0;
    flex-direction: row;
    gap: 16px;
  }
  .hero-btns .btn-neon, .hero-btns .btn-outline {
    width: auto;
    min-width: 180px;
  }
  .hero-stats {
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    margin-top: 40px;
  }
}

/* Tablet: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Navigation */
  .nav { 
    display: none; 
    position: absolute; top: 70px; right: 8px; left: auto;
    background: rgba(8,12,20,0.98); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px; z-index: 9999;
    flex-direction: column; min-width: 240px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .nav.open { 
    display: flex; 
    animation: slideIn 0.3s ease;
  }
  .nav-link { padding: 14px 18px; }
  .hamburger { display: flex; }
  
  /* Hero - left aligned like desktop */
  .hero {
    flex-direction: column;
    text-align: left;
    padding: 80px 24px 60px;
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .hero-content {
    max-width: 100%;
    text-align: left;
    align-items: flex-start;
    padding: 0 24px;
  }
  .hero-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
    text-align: left;
    align-items: flex-start;
  }
  .hero-badge {
    justify-content: flex-start;
    margin-bottom: 12px;
  }
  .hero-title {
    text-align: left;
    font-size: clamp(28px, 5vw, 38px);
    margin-bottom: 10px;
  }
  .hero-sub {
    text-align: left;
    margin-bottom: 20px;
    max-width: 100%;
    font-size: 14px;
  }
  .hero-btns {
    justify-content: flex-start;
    flex-direction: row;
    gap: 12px;
    padding: 0;
    flex-wrap: wrap;
  }
  .hero-btns .btn-neon, .hero-btns .btn-outline {
    width: auto;
    min-width: 150px;
    max-width: 200px;
  }
  .hero-stats {
    justify-content: flex-start;
    margin-top: 20px;
    padding-left: 24px;
    padding-right: 24px;
    flex-wrap: wrap;
  }
  .hero-visual {
    display: none;
  }
  
  /* Other components */
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 20px; }
  
  /* Admin */
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}

/* Mobile: ≤767px */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  /* Navigation */
  .nav { 
    display: none; 
    position: absolute; top: 70px; right: 8px; left: auto;
    background: rgba(8,12,20,0.98); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px; z-index: 9999;
    flex-direction: column; min-width: 240px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .nav.open { 
    display: flex; 
    animation: slideIn 0.3s ease;
  }
  .nav-link { padding: 14px 18px; }
  
  /* Show hamburger on mobile - positioned on right */
  .hamburger { 
    display: flex !important; 
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
  }
  
  /* Show header actions (wallet badge) on mobile */
  .header-actions {
    display: flex !important;
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    gap: 8px;
    z-index: 9999;
  }
  
  /* Wallet badge visible on mobile */
  .wallet-badge {
    display: flex !important;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
  }
  
  /* Hide login/signup buttons on mobile when logged out */
  .header-actions .btn-outline,
  .header-actions .btn-neon {
    display: none !important;
  }
  
  /* Header layout for mobile */
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0 12px;
    position: relative;
  }
  
  /* Logo stays on left */
  .logo {
    flex-shrink: 0;
  }
  
  /* Header logo fix for mobile - ensure visible at all times */
  .header {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .header .logo {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
  }
  
  .logo-icon {
    display: inline-block !important;
  }
  
  .logo-text {
    display: inline-block !important;
    white-space: nowrap;
  }
  
  /* Hero - Full screen mobile with centered content */
  .hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 20px;
    background-image: url('/images/booyah-central-mobile-bg1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    overflow: hidden;
  }
  
  /* Dark overlay for readability */
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.35) 100%);
    z-index: 0;
  }
  
  .hero-content {
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  
  .hero-container {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    align-items: center;
  }
  
  .hero-badge {
    justify-content: center;
    font-size: 11px;
    padding: 8px 16px;
    white-space: nowrap;
    margin-bottom: 20px;
  }
  
  .hero-title {
    font-size: clamp(3rem, 11vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 16px;
    width: 100%;
  }
  
  .title-line {
    display: block;
    margin: 0;
    width: 100%;
  }
  
  .hero-sub {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 300px;
    margin: 10px auto 20px;
    text-align: center;
  }
  
  .hero-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: auto;
  }
  
  .hero-btns .btn-neon, .hero-btns .btn-outline {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    justify-content: center;
  }
  
  .hero-visual {
    display: none;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding-top: 16px;
    width: 100%;
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .stat {
    flex: 0 0 auto;
    max-width: none;
    text-align: center;
  }
  
  .stat-num {
    font-size: 18px;
  }
  
  .stat-label {
    font-size: 10px;
  }
  
  .stat-divider {
    display: none;
  }
  
  /* Other mobile components */
  .container { padding: 0 16px; }
  .section { padding: 50px 0; }
  .section-header { margin-bottom: 32px; }
  .section-divider { height: 40px; }
  .steps-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { text-align: left; }
  .social-links { justify-content: flex-start; }
  .stats-grid { grid-template-columns: 1fr; }
  .match-actions { flex-direction: column; }
  .match-actions .btn-neon, .match-actions .btn-outline { width: 100%; }
  .cta-btns { flex-direction: column; align-items: flex-start; }
  .cta-btns a { width: 100%; max-width: 100%; justify-content: center; }
  .auth-card { padding: 20px 14px; border-radius: 16px; }
  .modal { padding: 20px 16px; }
  
  /* Admin mobile */
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding: 20px; }
}

.hero-emblem {
  font-size: 120px; z-index: 2; position: relative;
  animation: float 3s ease-in-out infinite, glow-pulse 2s ease-in-out infinite;
  color: var(--primary-orange);
  filter: drop-shadow(0 0 40px var(--primary-orange));
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes glow-pulse {
  0%,100% { filter: drop-shadow(0 0 40px var(--primary-orange)); }
  50% { filter: drop-shadow(0 0 60px var(--primary-orange)); }
}

.hero-ring {
  position: absolute; border-radius: 50%; border: 1px solid;
  animation: spin linear infinite;
}

.ring1 { width: 240px; height: 240px; border-color: rgba(255, 106, 0, 0.3); animation-duration: 8s; }
.ring2 { width: 320px; height: 320px; border-color: rgba(255, 193, 7, 0.2); animation-duration: 12s; animation-direction: reverse; }
.ring3 { width: 400px; height: 400px; border-color: rgba(255, 106, 0, 0.1); animation-duration: 20s; }

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

.hero-card-glow {
  position: absolute; width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.25), transparent 70%);
  border-radius: 50%;
  animation: pulse-soft 3s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%,100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* ──────────────────────────────────────────────────────── */
/*  SECTION DIVIDERS                                         */
/* ──────────────────────────────────────────────────────── */
.section-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
  z-index: 1;
  width: 100%;
  max-width: 100vw;
}

.section-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  fill: var(--bg-dark);
  max-width: 100vw;
}

.divider-fill {
  fill: var(--bg-dark);
}

.section-divider.alt svg .divider-fill {
  fill: rgba(10,15,25,0.8);
}

/* ──────────────────────────────────────────────────────── */
/*  SECTIONS                                                 */
/* ──────────────────────────────────────────────────────── */
.section { 
  padding: 80px 0; 
  position: relative; 
  z-index: 1; 
  overflow-x: hidden;
}

.container { 
  max-width: 1280px; 
  margin: 0 auto; 
  padding: 0 24px; 
  width: 100%;
  box-sizing: border-box;
}

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

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 12px;
  font-weight: 700; letter-spacing: 3px; color: var(--primary-orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px); font-weight: 700;
  color: var(--primary-orange);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 12px;
  font-weight: 700; letter-spacing: 3px; color: var(--primary-orange);
  margin-bottom: 12px;
}

/* ── Steps ── */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; position: relative;
  transition: var(--transition); overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.08), rgba(255, 193, 7, 0.05));
  opacity: 0;
  transition: var(--transition);
}

.step-card:hover {
  border-color: rgba(255, 106, 0, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255, 106, 0, 0.2);
}

.step-card:hover::before { opacity: 1; }

.step-num {
  font-family: var(--font-display); font-size: 56px; font-weight: 900;
  color: rgba(255, 106, 0, 0.1); position: absolute; top: 12px; right: 24px;
  line-height: 1;
}

.step-icon { 
  font-size: 36px; margin-bottom: 18px; 
  color: var(--primary-orange);
  position: relative; z-index: 1;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.3));
}

.step-card h3 { 
  font-size: 18px; color: #ffffff; font-weight: 600; margin-bottom: 10px;
  position: relative; z-index: 1;
  text-shadow: none;
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.step-card p { 
  font-size: 14px; color: #cbd5e1; line-height: 1.6;
  position: relative; z-index: 1;
  font-family: var(--font-ui);
}

/* ── Rules ── */
.rules-section { background: rgba(10,15,25,0.5); }

.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.rule-card {
  background: var(--bg-card); border: 1px solid var(--border-purple);
  border-radius: 16px; padding: 24px;
  transition: var(--transition);
}

.rule-card:hover {
  border-color: rgba(168,85,247,0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(168,85,247,0.15);
}

.rule-icon { 
  font-size: 28px; margin-bottom: 14px; 
  color: var(--neon-purple);
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.3));
}

.rule-card h3 { font-size: 16px; color: #ffffff; font-weight: 600; margin-bottom: 8px; text-shadow: none; font-family: var(--font-display); letter-spacing: 1px; text-transform: uppercase; }

.rule-card p { font-size: 13px; color: #cbd5e1; line-height: 1.6; font-family: var(--font-ui); }

.rule-card strong { color: var(--primary-orange); }

/* ═══════════════════════════════════════════════════════
   CTA SECTION - Gold Rush Style
   ═══════════════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(255, 215, 0, 0.04));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center top, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
  color: var(--primary-orange);
}

.cta-content p {
  font-size: 18px; color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-btns {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap;
}

/* ──────────────────────────────────────────────────────── */
/*  FOOTER                                                   */
/* ──────────────────────────────────────────────────────── */
.footer {
  background: rgba(5,8,15,0.98); border-top: 1px solid var(--border);
  padding: 64px 0 24px; position: relative; z-index: 1;
}

.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
  gap: 48px; margin-bottom: 48px;
}

.footer-brand p { 
  font-size: 13px; color: var(--text-muted); 
  line-height: 1.8; margin-top: 16px; margin-bottom: 20px; 
}

.social-links { display: flex; gap: 10px; }

.social-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 16px; color: var(--text-secondary);
  transition: var(--transition);
}

.social-btn:hover { 
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.25), rgba(255, 193, 7, 0.15)); 
  border-color: var(--primary-orange); color: var(--primary-orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 106, 0, 0.3);
}

.footer-links h4, .footer-contact h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--text-muted); margin-bottom: 20px; font-family: var(--font-ui);
  display: flex; align-items: center; gap: 8px;
}

.footer-links h4 i, .footer-contact h4 i { color: var(--primary-orange); }

.footer-links a {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-secondary);
  text-decoration: none; padding: 6px 0; transition: var(--transition);
}

.footer-links a i { font-size: 10px; color: var(--text-muted); transition: var(--transition); }

.footer-links a:hover { 
  color: var(--primary-orange); 
  transform: translateX(4px);
}

.footer-links a:hover i { color: var(--primary-orange); }

.footer-contact p { 
  font-size: 13px; color: var(--text-secondary); 
  padding: 6px 0; display: flex; align-items: center; gap: 10px;
}

.footer-contact p i { color: var(--primary-orange); width: 16px; }

.notice-box {
  margin-top: 20px; background: rgba(255,170,0,0.08);
  border: 1px solid rgba(255,170,0,0.2); border-radius: 10px;
  padding: 14px; font-size: 12px; color: var(--text-secondary); 
  line-height: 1.6;
  display: flex; align-items: flex-start; gap: 10px;
}

.notice-box i { 
  color: #ffaa00; font-size: 14px; 
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  text-align: center; font-size: 13px; color: var(--text-muted);
}

.footer-bottom i { color: #ff4466; }

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(8,12,20,0.98); border-top: 1px solid var(--border);
  display: flex; padding: 8px 0;
  backdrop-filter: blur(10px);
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

/* Show mobile nav on small screens */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    height: 65px;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    display: flex !important;
  }
  
  /* Add padding to body when mobile nav is visible */
  body {
    padding-bottom: 65px;
    min-height: 100vh;
  }
  
  /* Ensure page wrapper fills viewport on mobile */
  .page-wrapper {
    min-height: 100vh;
    padding-top: 70px;
    padding-bottom: 75px;
    box-sizing: border-box;
  }
  
  /* Auth page mobile fix */
  .auth-page {
    min-height: unset;
    padding: 68px 12px 80px;
    align-items: flex-start;
  }
  
  /* Fix for html to prevent extra space */
  html {
    min-height: 100%;
    overflow-x: hidden;
  }
}

.mob-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 9px;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 4px;
  transition: var(--transition);
  min-width: 0;
  overflow: hidden;
}

.mob-nav i { 
  font-size: 22px; 
  width: 100%;
  text-align: center;
}

.mob-nav span { 
  font-size: 10px; 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mob-nav.active, .mob-nav:hover { 
  color: var(--primary-orange);
}

/* ──────────────────────────────────────────────────────── */
/*  AUTH PAGES                                              */
/* ──────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: flex-start;
  justify-content: center; padding: 72px 16px 90px; position: relative; z-index: 1;
}

.auth-card {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 24px; padding: 32px 28px; width: 100%; max-width: 460px;
  box-shadow: 0 0 80px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-orange-light), var(--secondary-gold));
}

.auth-close-btn {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  cursor: pointer;
}

.auth-close-btn:hover {
  background: rgba(255, 68, 85, 0.25);
  border-color: rgba(255, 68, 85, 0.4);
  color: #ff5566;
  transform: translateY(-50%) scale(1.1) rotate(90deg);
  box-shadow: 0 0 20px rgba(255, 68, 85, 0.3);
}

.auth-close-btn:active {
  transform: translateY(-50%) scale(0.95) rotate(90deg);
}

/* Smooth page close animation */
.auth-page.closing {
  animation: fadeOutUp 0.4s ease forwards;
}

@keyframes fadeOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.auth-logo { text-align: center; margin-bottom: 32px; }

.auth-title {
  font-size: 28px; font-weight: 900; text-align: center; margin-bottom: 8px;
}

.auth-sub { font-size: 14px; color: var(--text-muted); text-align: center; margin-bottom: 32px; }

/* Form */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block; font-family: var(--font-ui); font-size: 13px;
  font-weight: 600; color: var(--text-secondary); margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 14px 18px; color: var(--text-primary);
  font-size: 14px; font-family: var(--font-body); transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.1);
  background: rgba(255, 106, 0, 0.03);
}

.form-input::placeholder { color: var(--text-muted); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-btn {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  border: none; border-radius: 12px;
  color: #000; font-family: var(--font-ui); font-size: 16px; font-weight: 700;
  cursor: pointer; transition: var(--transition); letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.35);
}

.form-btn:hover { 
  background: linear-gradient(135deg, #ffe033, #ffd700);
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.55);
  transform: translateY(-2px);
}

.form-btn:disabled { background: var(--text-muted); cursor: not-allowed; box-shadow: none; }

.divider {
  display: flex; align-items: center; gap: 12px; margin: 24px 0;
  color: var(--text-muted); font-size: 12px;
}

.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.google-btn {
  width: 100%; padding: 14px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  color: var(--text-primary); font-family: var(--font-ui); font-size: 14px;
  font-weight: 600; cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 12px; transition: var(--transition);
}

.google-btn:hover { 
  background: rgba(255,255,255,0.1); 
  border-color: rgba(255,255,255,0.2);
}

.auth-link { text-align: center; margin-top: 24px; font-size: 13px; color: var(--text-muted); }

.auth-link a { color: var(--primary-orange); text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }

.error-msg {
  background: rgba(255,68,85,0.1); border: 1px solid rgba(255,68,85,0.3);
  border-radius: 10px; padding: 14px; font-size: 13px; color: #ff6677;
  margin-bottom: 16px; display: none;
}

.success-msg {
  background: rgba(0, 200, 100, 0.08); border: 1px solid rgba(0, 200, 100, 0.35);
  border-radius: 10px; padding: 14px; font-size: 13px; color: #00c864;
  margin-bottom: 16px; display: none;
}

/* ──────────────────────────────────────────────────────── */
/*  WALLET PAGE                                              */
/* ──────────────────────────────────────────────────────── */
.page-wrapper {
  padding-top: 90px; min-height: 100vh; position: relative; z-index: 1;
}

.page-header {
  padding: 32px 24px 24px; border-bottom: 1px solid var(--border);
  background: rgba(8,12,20,0.5);
}

.page-title { 
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1.2;
}

.page-sub { 
  color: var(--text-secondary); 
  margin-top: 8px; 
  font-size: 14px;
  font-family: var(--font-ui);
}

.wallet-hero {
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(255, 193, 7, 0.08));
  border: 1px solid var(--border-orange); border-radius: 24px;
  padding: 48px; text-align: center; margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.wallet-hero::before {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.1) 0%, transparent 50%);
  animation: wallet-pulse 4s ease-in-out infinite;
}

@keyframes wallet-pulse {
  0%,100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.wallet-amount-label { 
  font-family: var(--font-ui); font-size: 14px; color: var(--text-muted); 
  letter-spacing: 2px; margin-bottom: 10px; 
}

.wallet-amount {
  font-family: var(--font-display); font-size: 64px; font-weight: 900;
  color: var(--primary-orange); text-shadow: 0 0 40px rgba(255, 106, 0, 0.4);
}

.wallet-btns { display: flex; gap: 16px; justify-content: center; margin-top: 32px; }

.wallet-tabs { 
  display: flex; gap: 6px; margin-bottom: 28px; 
  padding: 6px; background: rgba(255,255,255,0.03); border-radius: 12px; 
}

.tab-btn {
  flex: 1; padding: 12px; background: none; border: none; border-radius: 10px;
  color: var(--text-muted); font-family: var(--font-ui); font-weight: 700; font-size: 14px;
  cursor: pointer; transition: var(--transition);
}

.tab-btn.active { 
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light)); 
  color: #000; 
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Add money */
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }

.amount-btn {
  padding: 18px; background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text-primary); font-family: var(--font-display);
  font-size: 18px; font-weight: 700; cursor: pointer; transition: var(--transition); text-align: center;
}

.amount-btn:hover, .amount-btn.selected {
  background: rgba(255, 106, 0, 0.1); border-color: var(--primary-orange);
  color: var(--primary-orange); box-shadow: var(--glow-orange);
}

.upi-options { display: flex; gap: 14px; margin-bottom: 28px; }

.upi-btn {
  flex: 1; padding: 18px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 14px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: 14px; color: var(--text-secondary);
  transition: var(--transition);
}

.upi-btn:hover, .upi-btn.selected {
  border-color: var(--primary-orange); color: var(--primary-orange);
  background: rgba(255, 106, 0, 0.08);
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.2);
}

.upi-btn span:first-child { font-size: 36px; }

.qr-box { 
  text-align: center; padding: 28px; background: #fff; 
  border-radius: 14px; display: inline-block; 
}

.qr-box img { width: 200px; height: 200px; }

/* Transactions table */
.table-wrapper { 
  overflow-x: auto; border-radius: 16px; 
  border: 1px solid var(--border); 
}

table { width: 100%; border-collapse: collapse; }

thead th {
  background: rgba(255, 106, 0, 0.08); padding: 16px 18px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  color: var(--text-muted); letter-spacing: 1px; text-align: left;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 16px 18px; font-size: 14px; color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover td { background: rgba(255,255,255,0.02); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 20px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-pending { 
  background: rgba(255,170,0,0.15); color: #ffaa00; 
  border: 1px solid rgba(255,170,0,0.3); 
}

.badge-approved { 
  background: rgba(255, 106, 0, 0.12); color: var(--primary-orange); 
  border: 1px solid var(--border-orange); 
}

.badge-cancelled { 
  background: rgba(255, 68, 85, 0.1); color: #ff6677; 
  border: 1px solid var(--danger-glow); 
}

.badge-rejected { 
  background: rgba(255, 68, 85, 0.1); color: var(--danger); 
  border: 1px solid var(--danger-glow); 
}

.badge-debit { color: var(--danger); }
.badge-credit { color: var(--success); }

/* ──────────────────────────────────────────────────────── */
/*  MATCHES PAGE                                             */
/* ──────────────────────────────────────────────────────── */
.matches-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
  gap: 20px; 
}

.match-list-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px; /* proper finish */
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  /* Bermuda-style background - gradient fallback */
  background: linear-gradient(135deg, rgba(20, 30, 40, 0.95) 0%, rgba(10, 15, 25, 0.98) 100%),
              url('../images/booyah-central-mobile-bg1.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.match-list-card:hover {
  border-color: var(--border-orange);
  box-shadow: 0 12px 40px rgba(212,175,55,0.2);
}

/* Dark overlay on card */
.match-list-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 0;
}

/* Ensure content is above overlay */
.match-list-card > * {
  position: relative;
  z-index: 1;
}

.match-list-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.15);
}

.mlc-header {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(255, 215, 0, 0.08));
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mlc-mode { 
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; 
  font-weight: 400;
  color: var(--primary-orange);
  letter-spacing: 1px;
}

.mlc-body { 
  padding: 16px; 
}

/* Stats row as stat blocks */
.mlc-stats { 
  display: flex; 
  gap: 12px; 
  margin-bottom: 14px;
}

.mlc-stat { 
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 10px;
}

.mlc-stat-val { 
  font-family: 'Bebas Neue', sans-serif; 
  font-size: 18px; 
  font-weight: 400; 
  color: #ffffff;
  letter-spacing: 1px;
}

.mlc-stat-label { 
  font-size: 10px; 
  color: var(--text-muted); 
  font-family: var(--font-ui);
  margin-top: 2px;
}

.mlc-footer { 
  display: flex; 
  gap: 10px; 
  padding: 0 16px 16px;
}

/* Premium Join Match Button */
.join-match-btn {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  transition: all 0.25s ease;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  flex: 1;
  height: 44px;
}

.join-match-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 255, 150, 0.6);
  background: linear-gradient(135deg, #00ff88, #00dd77);
}

/* Nickname Input - Premium Style */
.nickname-input {
  height: 42px;
  border: 1px solid var(--primary-orange) !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.nickname-input:focus {
  border-color: var(--primary-orange-light) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), 0 0 15px rgba(212, 175, 55, 0.3);
  outline: none;
}

.nickname-input::placeholder {
  color: var(--text-muted);
}

/* Nickname Note */
.nickname-note {
  font-size: 12px;
  color: #aaa;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(255, 170, 0, 0.08);
  border-radius: 6px;
  border-left: 2px solid var(--primary-orange);
}

.nickname-note i {
  margin-right: 6px;
  color: var(--primary-orange);
}

/* Secondary Details Button */
.mlc-footer .btn-outline {
  background: transparent;
  color: var(--primary-orange);
  border: 1px solid var(--primary-orange);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  flex: 1;
  height: 44px;
  transition: all 0.25s ease;
}

.mlc-footer .btn-outline:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--primary-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Match Progress */
.match-progress {
  margin-bottom: 12px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-orange), var(--secondary-gold));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Time Block - compact */
.mlc-body .time-block {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 8px;
  padding: 6px 12px;
  gap: 4px;
}

.mlc-body .time-val {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-orange);
}

.mlc-body .time-unit {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Match Live Badge */
.match-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255, 68, 85, 0.15);
  color: #ff4455;
  border: 1px solid rgba(255, 68, 85, 0.3);
}

/* Mobile optimization for match cards */
@media (max-width: 640px) {
  .match-list-card {
    /* Mobile height: 380-450px max */
    min-height: auto;
  }
  
  .mlc-header {
    padding: 12px 14px;
  }
  
  .mlc-mode {
    font-size: 16px;
  }
  
  .mlc-body {
    padding: 14px;
  }
  
  .mlc-stats {
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .mlc-stat {
    padding: 8px 6px;
  }
  
  .mlc-stat-val {
    font-size: 16px;
  }
  
  .mlc-footer {
    padding: 0 14px 14px;
    flex-direction: row;
  }
  
  .join-match-btn,
  .mlc-footer .btn-outline {
    height: 42px;
    font-size: 13px;
    padding: 10px 12px;
  }
}

/* Desktop optimization */
@media (min-width: 768px) {
  .match-list-card {
    /* Desktop height: 320-380px */
    max-height: 380px;
  }
}

/* Join Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  display: none; backdrop-filter: blur(5px);
}

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

.modal {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 24px; padding: 36px; width: 100%; max-width: 500px;
  position: relative;
}

.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255,255,255,0.05); border: none; border-radius: 10px;
  width: 36px; height: 36px; cursor: pointer; color: var(--text-muted); 
  font-size: 18px; transition: var(--transition);
}

.modal-close:hover { 
  background: rgba(255,68,85,0.2); 
  color: #ff4455;
}

.modal-title { font-size: 24px; font-weight: 900; margin-bottom: 24px; color: var(--primary-orange); }

/* ──────────────────────────────────────────────────────── */
/*  ADMIN - Cyber Enterprise Dark Theme                        */
/* ──────────────────────────────────────────────────────── */
.admin-layout { 
  display: flex; 
  min-height: 100vh; 
  background: linear-gradient(180deg, #0a0a0f 0%, #0d0d14 100%);
}

/* Slim Sophisticated Sidebar */
.admin-sidebar {
  width: 240px; 
  background: linear-gradient(180deg, #0f0f14 0%, #0a0a0f 100%);
  border-right: 1px solid #1a1a24;
  padding: 20px 12px; 
  display: flex; 
  flex-direction: column; 
  gap: 4px;
  position: fixed; 
  top: 0; 
  left: 0; 
  bottom: 0; 
  z-index: 100; 
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.admin-logo { 
  padding: 16px 12px; 
  margin-bottom: 16px;
  border-bottom: 1px solid #1a1a24;
}

.admin-logo .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-logo .logo-icon {
  font-size: 22px;
  color: #FFD700;
}

.admin-logo .logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #FFD700;
  letter-spacing: 1px;
}

.admin-logo div {
  font-size: 10px;
  color: #6b7280;
  font-family: 'Inter', sans-serif;
  margin-top: 6px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Sidebar Navigation Links */
.admin-nav-link {
  display: flex; 
  align-items: center; 
  gap: 12px; 
  padding: 12px 14px;
  color: #9ca3af; 
  text-decoration: none; 
  border-radius: 10px;
  font-family: 'Inter', sans-serif; 
  font-size: 13px; 
  font-weight: 500; 
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.admin-nav-link:hover { 
  background: rgba(255, 215, 0, 0.06); 
  color: #e5e7eb;
}

.admin-nav-link.active {
  background: rgba(255, 215, 0, 0.08); 
  color: #ffffff;
  border-color: rgba(255, 215, 0, 0.15);
}

.admin-nav-link span:first-child { 
  font-size: 18px; 
  width: 22px; 
  text-align: center;
  opacity: 0.9;
}

.admin-nav-link.active span:first-child {
  opacity: 1;
}

/* Main Content Area */
.admin-main { 
  margin-left: 240px; 
  flex: 1; 
  padding: 32px 40px; 
  min-height: 100vh;
  background: transparent;
}

/* Admin Header */
.admin-header { 
  margin-bottom: 32px; 
}

.admin-header h1 { 
  font-family: 'Inter', sans-serif;
  font-size: 28px; 
  font-weight: 600; 
  color: #ffffff;
  letter-spacing: -0.5px;
}

.admin-header p { 
  color: #6b7280; 
  font-size: 14px; 
  margin-top: 6px; 
  font-family: 'Inter', sans-serif;
}

/* Stats Grid - Glassmorphism Cards */
.stats-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; 
  margin-bottom: 32px; 
}

.stat-card {
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid #2D2D2D; 
  border-radius: 14px;
  padding: 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
}

.stat-card:hover { 
  border-color: rgba(255, 215, 0, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.stat-card-icon { 
  font-size: 24px; 
  margin-bottom: 16px;
  opacity: 0.9;
}

.stat-card-label { 
  font-family: 'Inter', sans-serif; 
  font-size: 12px; 
  color: #6b7280; 
  letter-spacing: 0.5px; 
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 500;
}

.stat-card-val { 
  font-family: 'Inter', sans-serif; 
  font-size: 32px; 
  font-weight: 700; 
  color: #ffffff;
  letter-spacing: -1px;
}

/* Cards - Glassmorphism */
.card {
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid #2D2D2D;
  border-radius: 14px; 
  padding: 24px; 
  margin-bottom: 24px;
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px; 
  font-weight: 600; 
  margin-bottom: 20px;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  color: #e5e7eb;
}

.card-title a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #FFD700;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.15);
  transition: all 0.2s ease;
}

.card-title a:hover {
  background: rgba(255, 215, 0, 0.12);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

/* Admin Mobile Styles */
@media (max-width: 900px) {
  .admin-mobile-header {
    display: flex;
  }
  
  .admin-hamburger {
    display: flex;
  }
  
  .admin-sidebar {
    transform: translateX(-100%);
    width: 280px;
    padding-top: 80px;
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
  }
  
  .admin-sidebar-overlay {
    display: block;
  }
  
  .admin-main {
    margin-left: 0;
    padding: 80px 20px 30px;
    min-height: 100vh;
  }
  
  .admin-header {
    margin-bottom: 24px;
  }
  
  .admin-header h1 {
    font-size: 24px;
  }
  
  .admin-header p {
    font-size: 13px;
  }
  
  /* Stats Grid - 2 columns on tablet */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-card-val {
    font-size: 28px;
  }
  
  .stat-card-label {
    font-size: 10px;
  }
  
  .stat-card-icon {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  /* Card adjustments */
  .card {
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 14px;
  }
  
  .card-title {
    font-size: 16px;
    margin-bottom: 16px;
  }
  
  /* Pending items grid - stack on mobile */
  .admin-pending-grid {
    display: flex !important;
    flex-direction: column;
    gap: 20px !important;
  }
  
  /* Table wrapper for horizontal scroll */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }
  
  table {
    min-width: 600px;
  }
  
  thead th {
    padding: 12px 14px;
    font-size: 11px;
    white-space: nowrap;
  }
  
  tbody td {
    padding: 12px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
  
  /* Buttons */
  .btn-neon, .btn-outline {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  /* Form elements */
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-input, .form-select {
    padding: 12px 14px;
    font-size: 14px;
  }
  
  /* Modal */
  .modal {
    padding: 24px 18px;
    border-radius: 18px;
    margin: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
  
  .modal-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-right: 30px;
  }
  
  /* Wallet tabs */
  .wallet-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .tab-btn {
    flex: 1 1 auto;
    min-width: calc(33% - 6px);
    padding: 10px 12px;
    font-size: 12px;
  }
  
  /* Action buttons in tables */
  .table-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .table-actions button {
    padding: 8px 12px;
    font-size: 12px;
    width: 100%;
  }
  
  /* Toast adjustments */
  .toast {
    left: 16px;
    right: 16px;
    bottom: 80px;
    min-width: auto;
    padding: 14px 18px;
    font-size: 13px;
  }
  
  /* Header button */
  .admin-header .btn-neon {
    padding: 10px 16px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
  }
  
  /* Login page */
  .login-card {
    padding: 32px 24px;
  }
  
  .login-logo {
    font-size: 20px;
    margin-bottom: 24px;
  }
  
  .login-title {
    font-size: 20px;
    margin-bottom: 24px;
  }
  
  /* Match modal specific */
  #create-modal .modal {
    max-width: calc(100vw - 32px);
    padding: 20px 16px;
  }
  
  #create-modal .form-row {
    gap: 12px;
  }
  
  #create-modal .form-group {
    margin-bottom: 14px;
  }
  
  #create-modal .form-label {
    font-size: 12px;
    margin-bottom: 6px;
  }
  
  #create-modal .form-input, 
  #create-modal select {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  #create-modal .form-btn {
    padding: 14px;
    font-size: 14px;
    margin-top: 8px;
  }
  
  /* Hide desktop header in admin pages */
  .header {
    display: none !important;
  }
  
  /* Mobile bottom nav should not appear on admin pages */
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .admin-main {
    padding: 76px 14px 24px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
  }
  
  .stat-card-icon {
    font-size: 28px;
    margin-bottom: 0;
  }
  
  .stat-card-content {
    flex: 1;
  }
  
  .stat-card-val {
    font-size: 24px;
  }
  
  .stat-card-label {
    font-size: 11px;
    margin-bottom: 0;
  }
  
  .card {
    padding: 16px;
    border-radius: 12px;
  }
  
  /* Stack buttons in header */
  .admin-header > div:first-child {
    display: flex;
    flex-direction: column;
  }
  
  .admin-header .btn-neon {
    margin-top: 16px;
  }
  
  /* Tab buttons full width */
  .wallet-tabs {
    flex-direction: column;
  }
  
  .tab-btn {
    width: 100%;
    flex: none;
  }
  
  /* Modal */
  .modal {
    padding: 18px 14px;
    margin: 12px;
    border-radius: 16px;
  }
  
  .modal-title {
    font-size: 18px;
  }
  
  /* Login */
  .login-card {
    padding: 28px 20px;
    border-radius: 16px;
  }
  
  .form-input {
    padding: 14px 16px;
  }
  
  .login-btn {
    padding: 14px;
    font-size: 15px;
  }
}

/* Toast */
.toast {
  position: fixed; bottom: 90px; right: 24px; z-index: 9999;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 22px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: translateY(100px); opacity: 0;
  transition: var(--transition);
  min-width: 300px;
}

.toast.show { transform: translateY(0); opacity: 1; }

.toast.success { border-color: var(--success-glow); color: var(--success); }

.toast.error { border-color: var(--danger-glow); color: var(--danger); }

.toast.info { border-color: rgba(255, 193, 7, 0.3); color: var(--secondary-gold); }

/* Profile Card Links - Orbitron font for white headings */
.profile-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
}

.profile-card-subtitle {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
}

/* Legal Pages - Orbitron font for headings */
.legal-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--primary-orange);
  margin-bottom: 16px;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 12px;
}

/* Header Fixes - Wallet Icon Alignment */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  position: relative;
  z-index: 100;
}

/* Wallet Icon in Header - Fixed - Always visible */
.header-wallet {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-orange);
  border-radius: 8px;
  color: var(--primary-orange);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 1001;
  visibility: visible !important;
  opacity: 1 !important;
}

.header-wallet:hover {
  background: rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
}

.header-wallet i {
  font-size: 16px;
}

/* Hamburger - Fixed z-index and spacing - Lower than wallet */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: rgba(255, 106, 0, 0.1);
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
  z-index: 1000;
}

.hamburger:hover {
  background: rgba(255, 106, 0, 0.2);
  border-color: rgba(255, 106, 0, 0.4);
}

/* Ensure wallet and hamburger don't overlap - Desktop */
@media (min-width: 769px) {
  .header-right {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
  }
  
  .header-wallet {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .hamburger {
    display: flex !important;
    position: relative;
    z-index: 1000;
  }
  
  /* Hide old header-actions on desktop */
  .header-actions {
    display: none !important;
  }
}

/* Mobile header fixes */
@media (max-width: 768px) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 12px;
    position: relative;
  }
  
  .header-right {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    position: relative;
    z-index: 1001;
    visibility: visible !important;
  }
  
  .header-wallet {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 6px 10px;
    font-size: 12px;
    min-width: auto;
    z-index: 1002;
  }
  
  .header-wallet i {
    font-size: 14px;
  }
  
  .header-wallet span {
    display: inline;
  }
  
  .hamburger {
    display: flex !important;
    position: relative;
    z-index: 1000;
    width: 36px;
    height: 36px;
    padding: 6px;
  }
  
  /* Hide old header-actions on mobile */
  .header-actions {
    display: none !important;
  }
}

/* Loading */
.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 106, 0, 0.2);
  border-top-color: var(--primary-orange);
  border-radius: 50%;
  animation: spin 0.4s linear infinite;
}

.spinner-inline {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

/* Empty state */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }

.empty-state-icon { font-size: 56px; margin-bottom: 18px; }

.empty-state h3 { font-size: 20px; margin-bottom: 10px; color: var(--text-secondary); }

.empty-state p { font-size: 14px; }

/* ──────────────────────────────────────────────────────── */
/*  RESPONSIVE                                               */
/* ──────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-visual { width: 320px; height: 320px; }
  .hero-emblem { font-size: 90px; }
  .ring1 { width: 180px; height: 180px; }
  .ring2 { width: 240px; height: 240px; }
  .ring3 { width: 320px; height: 320px; }
}

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

/* Match cards, forms, wallet, and other component styles remain unchanged */
.match-info-grid { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 640px) {
  .header { 
    padding: 0 12px; 
    height: 56px;
    z-index: 99999 !important;
    display: flex !important;
    visibility: visible !important;
  }
  
  /* Logo fix - ensure it's always visible on mobile */
  .header .logo {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: auto;
    flex-shrink: 0;
  }
  
  .header-inner { 
    gap: 6px; 
    padding-right: 40px;
    justify-content: flex-start;
  }
  
  /* Logo icon - keep inline-block for sizing but maintain flex properties */
  .logo-icon { 
    font-size: 18px;
    display: inline-block !important;
    flex-shrink: 0;
    width: auto;
  }
  
  /* Logo text - use inline-block to prevent wrapping but keep flex alignment */
  .logo-text { 
    font-size: 16px; 
    letter-spacing: 1px;
    display: inline-block !important;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .auth-close-btn {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .auth-close-btn:hover {
    transform: translateY(-50%) scale(1.1) rotate(90deg);
  }
  .auth-close-btn:active {
    transform: translateY(-50%) scale(0.95) rotate(90deg);
  }
  .btn-neon, .btn-outline {
    padding: 5px 10px; 
    font-size: 11px; 
    border-radius: 6px;
  }
  .btn-neon i, .btn-outline i {
    font-size: 10px;
  }
  
  /* Navigation */
  .nav { 
    display: none; 
    position: absolute; top: 70px; right: 8px; left: auto;
    background: rgba(8,12,20,0.98); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px; z-index: 9999;
    flex-direction: column; min-width: 240px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .nav.open { 
    display: flex; 
    animation: slideIn 0.3s ease;
  }
  .nav-link { padding: 14px 18px; }
  
  /* Show hamburger on mobile - positioned on right */
  .hamburger { 
    display: flex !important; 
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
  }
  
  /* Show header actions (wallet badge) on mobile */
  .header-actions {
    display: flex !important;
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    gap: 8px;
    z-index: 9999;
  }
  
  /* Wallet badge visible on mobile */
  .wallet-badge {
    display: flex !important;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
  }
  
  /* Hide login/signup buttons on mobile when logged out */
  .header-actions .btn-outline,
  .header-actions .btn-neon {
    display: none !important;
  }
  
  /* Header layout for mobile */
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0 12px;
    position: relative;
  }
  
  /* Logo stays on left */
  .logo {
    flex-shrink: 0;
  }
  
  /* Header logo fix for mobile - ensure visible at all times */
  .header {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .header .logo {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
  }
  
  .logo-icon {
    display: inline-block !important;
  }
  
  .logo-text {
    display: inline-block !important;
    white-space: nowrap;
  }
  
  /* Other mobile components */
  .container { padding: 0 16px; }
  .section { padding: 50px 0; }
  .section-header { margin-bottom: 32px; }
  .section-divider { height: 40px; }
  .steps-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { text-align: center; }
  .social-links { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .wallet-btns { flex-direction: column; align-items: center; }
  .wallet-tabs { flex-direction: column; }
  .tab-btn { text-align: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .match-actions { flex-direction: column; }
  .match-actions .btn-neon, .match-actions .btn-outline { width: 100%; }
  .toast { left: 16px; right: 16px; min-width: auto; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns a { width: 100%; max-width: 280px; justify-content: center; }
  .auth-card { padding: 32px 24px; }
  .modal { padding: 28px 20px; }
  
  /* Admin mobile */
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding: 20px; }
}

/* Nav overlay */


/* body.nav-open: no scroll lock needed - nav is an absolute dropdown */

/* Mobile specific fixes */
@media (max-width: 640px) {
  /* Ensure proper viewport handling */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  /* Fix for any element causing horizontal scroll */
  * {
    max-width: 100vw;
  }
  
  /* Ensure hero visual doesn't overflow */
  .hero-visual {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 1;
  }
  
  /* Ensure hero emblem is properly sized */
  .hero-emblem {
    font-size: 60px !important;
  }
  
  /* Fix ring animations */
  .ring1, .ring2, .ring3 {
    max-width: 100%;
  }
  
  /* Container padding fix for mobile */
  .container {
    padding: 0 16px;
  }
  
  /* Ensure all sections fit properly */
  .section {
    padding: 50px 0;
    overflow: hidden;
  }
  
  /* Match card mobile fix */
  .match-card {
    margin: 0 -8px;
    border-radius: 16px;
  }
  
  .match-body {
    padding: 20px 16px;
  }
  
  /* Fix details grid */
  .detail-card {
    padding: 16px;
  }
  
  /* Fix step cards */
  .step-card {
    padding: 20px 16px;
  }
  
  /* Footer mobile fix */
  .footer {
    padding: 40px 0 24px;
  }
  
  /* Section divider fix */
  .section-divider {
    height: 50px;
  }
  
  /* Leaderboard mobile */
  .winner-card {
    padding: 16px 12px;
  }
  
  /* Rule cards mobile */
  .rule-card {
    padding: 16px;
  }
}

/* Force mobile bottom nav visibility on all mobile breakpoints */
@media screen and (max-width: 768px), screen and (max-width: 640px), screen and (max-width: 480px), screen and (max-width: 400px), screen and (max-width: 375px) {
  .mobile-bottom-nav {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-transform: translateY(0) !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }
  
  .mobile-bottom-nav .mob-nav {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  body {
    padding-bottom: 70px !important;
  }
  
  .page-wrapper {
    padding-bottom: 80px !important;
  }
}

/* ============================================================
   MOBILE HERO SECTION FIX - Full viewport height with scaled content
   Left-aligned layout for mobile
   ============================================================ */
@media (max-width: 767px) {
  /* Hero section full height */
  section#hero-section.hero,
  .hero {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
  }

 /* Wrapper fills full height, left-aligned */
.hero-wrapper {
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 15px 20px 100px 20px;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start !important;
    text-align: left !important;
    flex: 1;
    width: 100%;
    gap: 0;
    padding-bottom: 0;
  }

  /* LEFT-ALIGN HEADING — large, bold, dominant */
  .hero-content h1,
  .hero-title,
  .title-line {
    text-align: left !important;
    width: 100%;
    font-size: clamp(48px, 13vw, 68px) !important;
    line-height: 1.0;
    font-weight: 700;
    letter-spacing: -px;
    margin: 0 !important;
    text-transform: uppercase;
    display: block;
  }

  /* FORCE LEFT-ALIGN DESCRIPTION — override any center alignment */
  .hero-content p,
  .hero-description,
  .hero-content .hero-description,
  .hero-section p,
  section#hero-section p,
  .hero-sub {
    text-align: left !important;
    align-self: flex-start !important;
    width: 85% !important;
    max-width: 300px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: 0 !important;
  }

  /* Fix any inline spans inside the paragraph */
  .hero-content p span,
  .hero-content p strong,
  .hero-description span,
  .hero-description strong,
  .hero-sub span,
  .hero-sub strong {
    text-align: left !important;
  }

  /* LEFT-ALIGNED BUTTONS — fixed width, not full screen stretch */
  .hero-buttons,
  .hero-cta,
  .hero-btns {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
    padding-bottom: 16px;
  }

  .hero-buttons a,
  .hero-buttons button,
  .hero-btns .btn-neon,
  .hero-btns .btn-outline,
  .btn-primary,
  .btn-secondary {
    width: 85%;
    max-width: 300px;
    padding: 15px 24px !important;
    font-size: 15px !important;
    font-weight: 700;
    text-align: center;
    justify-content: center;
    letter-spacing: 0.5px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: unset !important;
  }

  /* Hero badge positioning - left aligned */
  .hero-badge {
    margin-bottom: 16px !important;
    justify-content: flex-start !important;
    align-self: flex-start !important;
  }

  /* Hide right slider — not needed on mobile */
  .hero-slider-right {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════
   MOBILE HERO BACKGROUND SLIDER
   ═══════════════════════════════════════════════════════ */

/* Mobile slider container */
.mobile-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

/* Each slide */
.mobile-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

/* Active slide is visible */
.mobile-bg-slide.active {
  opacity: 1;
}

/* Dark overlay on each slide for readability */
.mobile-bg-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

/* Hide slider on desktop */
@media (min-width: 768px) {
  .mobile-bg-slider {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════
   DESKTOP HERO BACKGROUND
   ═══════════════════════════════════════════════════════ */

/* Desktop hero background */
@media (min-width: 768px) {
  section#hero-section,
  .hero {
    position: relative;
    background-image: url('images/booyah-central-desktop.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    min-height: 100vh;
    width: 100%;
  }

  /* Dark overlay so text stays readable */
  section#hero-section::before,
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 1;
  }

  /* Push all hero content above the overlay */
  .hero-wrapper,
  .hero-content {
    position: relative;
    z-index: 2;
  }
}


/* ═══════════════════════════════════════════════════
   ADMIN LIGHT MODE
═══════════════════════════════════════════════════ */
body.admin-light-mode {
  background: #f0f2f5 !important;
  color: #1a1a2e !important;
}
body.admin-light-mode .admin-sidebar {
  background: #1a2233 !important;
}
body.admin-light-mode .admin-main {
  background: #f0f2f5;
}
body.admin-light-mode .card {
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
  color: #1a1a2e;
}
body.admin-light-mode .card-title {
  color: #333 !important;
  border-bottom: 1px solid #e0e0e0 !important;
}
body.admin-light-mode table thead th {
  background: #f5f5f5 !important;
  color: #555 !important;
}
body.admin-light-mode table tbody tr:hover {
  background: #f9f9f9 !important;
}
body.admin-light-mode .admin-header h1,
body.admin-light-mode .admin-header p {
  color: #1a1a2e !important;
}
body.admin-light-mode .bg-grid {
  display: none;
}

/* ═══════════════════════════════════════════════════
   ADMIN SELECT DROPDOWN FIX (dark bg for options)
═══════════════════════════════════════════════════ */
.admin-layout select,
#create-modal select {
  background: #1a2233 !important;
  color: #e8e8e8 !important;
}
.admin-layout select option,
#create-modal select option {
  background: #1a2233 !important;
  color: #e8e8e8 !important;
}

/* ═══════════════════════════════════════════════════
   PWA META THEME
═══════════════════════════════════════════════════ */

/* ── Footer visibility fix ──────────────────────────────── */
.footer {
  padding-bottom: 80px !important; /* ensure footer fully visible above mobile nav */
}

@media (min-width: 769px) {
  .footer {
    padding-bottom: 70px !important;
    margin-bottom: 0 !important;
  }
  /* Show mobile bottom nav on desktop too */
  .mobile-bottom-nav {
    display: flex !important;
    height: 60px;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
  }
  body {
    padding-bottom: 60px;
  }
}

/* ── Contest card square/rectangle shape ────────────────── */
.contest-card {
  border-radius: 16px !important;
  min-height: auto !important;
}

/* ── My matches completed tab green dot ─────────────────── */
#my-tab-completed::before {
  content: '● ';
  color: #00ff88;
}

/* ═══════════════════════════════════════════════════
   ADMIN LIGHT MODE - COMPLETE TEXT FIX
═══════════════════════════════════════════════════ */
body.admin-light-mode {
  background: #f0f4f8 !important;
  color: #1a1a2e !important;
}
body.admin-light-mode .admin-main {
  background: #f0f4f8 !important;
}
body.admin-light-mode .card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #1a1a2e !important;
}
body.admin-light-mode .card-title,
body.admin-light-mode h1,
body.admin-light-mode h2,
body.admin-light-mode h3,
body.admin-light-mode p,
body.admin-light-mode label,
body.admin-light-mode span,
body.admin-light-mode td,
body.admin-light-mode th {
  color: #1a1a2e !important;
}
body.admin-light-mode .admin-header h1,
body.admin-light-mode .admin-header p {
  color: #1a1a2e !important;
}
body.admin-light-mode table thead th {
  background: #e8edf5 !important;
  color: #374151 !important;
  border-bottom: 2px solid #cbd5e1 !important;
}
body.admin-light-mode table tbody td {
  color: #1a1a2e !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
body.admin-light-mode table tbody tr:hover {
  background: #f1f5f9 !important;
}
body.admin-light-mode .form-input,
body.admin-light-mode select.form-input {
  background: #ffffff !important;
  color: #1a1a2e !important;
  border: 1px solid #cbd5e1 !important;
}
body.admin-light-mode .form-label {
  color: #374151 !important;
}
body.admin-light-mode .text-muted,
body.admin-light-mode [style*="rgba(255,255,255,0.4)"],
body.admin-light-mode [style*="rgba(255,255,255,0.5)"],
body.admin-light-mode [style*="var(--text-muted)"] {
  color: #6b7280 !important;
}
body.admin-light-mode .spinner {
  border-color: #e2e8f0 !important;
  border-top-color: #3b82f6 !important;
}
body.admin-light-mode .bg-grid { display: none !important; }

/* ── Join Success Popup animation ─────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ── Auth buttons in hamburger: hidden by default, shown by JS ── */
#login-btn,
#signup-btn {
  display: none;
}
#login-btn.visible,
#signup-btn.visible {
  display: inline-flex !important;
}
.user-menu {
  display: none;
}
.user-menu.visible {
  display: block !important;
}

/* ── Speaker nav icon ─────────────────────────────────────────── */
#nav-speaker-btn {
  margin-top: 6px;
  padding-top: 4px;
}

/* ════════════════════════════════════════════════════════════
   MY MATCHES PAGE — Enhanced Contest Card UI
   ════════════════════════════════════════════════════════════ */
.contest-card {
  border: 1px solid rgba(255,215,0,0.18) !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,107,0,0.05);
  margin-bottom: 20px !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 0 20px rgba(255,215,0,0.08);
}
.contest-card-overlay {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.6) 35%,
    rgba(8,12,20,0.95) 100%
  ) !important;
}
.contest-card-content {
  padding: 11px !important;
  gap: 8px !important;
}

/* Countdown timer blocks */
.countdown-block {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 48px;
  text-align: center;
}

/* ── FINAL AUTH FIX: hide login/signup globally until auth.js shows them ── */
#login-btn:not(.visible),
#signup-btn:not(.visible) {
  display: none !important;
}
#login-btn.visible {
  display: inline-flex !important;
}
#signup-btn.visible {
  display: inline-flex !important;
}

/* ── Nav user indicator (replaces avatar circle button) ─── */
.nav-user-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 10px;
  background: rgba(0,255,136,0.06);
  border: 1px solid rgba(0,255,136,0.15);
  width: 100%;
  box-sizing: border-box;
}
.nav-user-indicator:hover {
  background: rgba(0,255,136,0.1);
}

/* ── Download App button - grey version of btn-neon ──────── */
.btn-download-app {
  background: rgba(160,160,175,0.15) !important;
  color: rgba(255,255,255,0.8) !important;
  border: 1.5px solid rgba(180,180,200,0.35) !important;
  box-shadow: none !important;
}
.btn-download-app:hover {
  background: rgba(180,180,195,0.25) !important;
  border-color: rgba(200,200,220,0.55) !important;
  box-shadow: 0 4px 16px rgba(160,160,180,0.2) !important;
  transform: translateY(-2px);
}

/* ── Logout confirm modal ─────────────────────────────────── */
#logout-confirm-modal.modal-overlay {
  display: none;
  align-items: center;
  justify-content: center;
}
#logout-confirm-modal.modal-overlay.open {
  display: flex !important;
}

/* ── Admin page body override ──────────────────────────────── */
body:has(.admin-layout),
body:has(.admin-login-page) {
  background: #f4f6fb !important;
}
body:has(.admin-layout) .bg-grid,
body:has(.admin-layout) .bg-particles,
body:has(.admin-layout) .bg-gradient,
body:has(.admin-login-page) .bg-grid,
body:has(.admin-login-page) .bg-particles {
  display: none !important;
}

/* ── Download App button — grey override ─────────────────── */
.btn-download-app,
.btn-download-app.btn-neon,
.btn-neon.btn-download-app {
  background: rgba(130,130,145,0.18) !important;
  color: rgba(240,240,245,0.85) !important;
  border: 1.5px solid rgba(160,160,180,0.38) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.btn-download-app:hover,
.btn-download-app.btn-neon:hover,
.btn-neon.btn-download-app:hover {
  background: rgba(150,150,165,0.26) !important;
  border-color: rgba(185,185,205,0.55) !important;
  box-shadow: 0 3px 14px rgba(120,120,140,0.2) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}
.btn-download-app::before,
.btn-neon.btn-download-app::before {
  display: none !important;
}

/* ══════════════════════════════════════════════════════════════
   PATCH: Login success green (not red), Hamburger, Hero left,
   Contest square buttons, Download App grey
   ══════════════════════════════════════════════════════════════ */

/* FIX 1 — Login success message: green, not red */
#success-msg,
.success-msg {
  background: rgba(0,200,100,0.08) !important;
  border: 1px solid rgba(0,200,100,0.35) !important;
  color: #00c864 !important;
}

/* FIX 2 — Hamburger: ensure it is always visible & clickable */
.hamburger {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
  width: 40px !important;
  height: 40px !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  z-index: 10002 !important;
  position: relative !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}
.hamburger span {
  display: block !important;
  width: 18px !important;
  height: 2px !important;
  background: #fff !important;
  border-radius: 2px !important;
  transition: all 0.25s ease !important;
  pointer-events: none !important;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px) !important; }
.hamburger.active span:nth-child(2) { opacity: 0 !important; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px) !important; }

/* Ensure header-right is always positioned correctly */
.header-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-left: auto !important;
}

/* FIX 3 — Download App grey button */
.btn-download-app,
button.btn-download-app {
  background: rgba(130,130,145,0.18) !important;
  color: rgba(230,230,240,0.85) !important;
  border: 1.5px solid rgba(160,160,180,0.35) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.btn-download-app:hover,
button.btn-download-app:hover {
  background: rgba(150,150,165,0.28) !important;
  border-color: rgba(190,190,210,0.5) !important;
  box-shadow: none !important;
  transform: translateY(-2px) !important;
}

/* FIX 4 — Contest buttons: square/rounded-square shape */
.contest-btn-prize,
.contest-btn-join {
  border-radius: 6px !important;
}

/* FIX 5 — Hero: push ALL content hard to left edge */
.hero-wrapper {
  padding-left: 12px !important;
  padding-right: 12px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}
.hero-content {
  padding-left: 0 !important;
  margin-left: 0 !important;
  text-align: left !important;
  align-items: flex-start !important;
}
.hero-container {
  padding-left: 0 !important;
  margin-left: 0 !important;
  text-align: left !important;
}
@media (min-width: 768px) {
  .hero-wrapper {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
@media (min-width: 1024px) {
  .hero-wrapper {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
  .hero-content {
    max-width: 520px !important;
  }
}

/* ═══════════════════════════════════════════════════════
   HAMBURGER — DEFINITIVE RIGHT-CORNER FIX ALL PAGES
   ═══════════════════════════════════════════════════════ */
.header-inner {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.header-right {
  display: flex !important;
  align-items: center !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
  order: 99 !important;
}

.hamburger {
  display: flex !important;
  flex-shrink: 0 !important;
  position: static !important;
  transform: none !important;
}

/* Mobile: hamburger always top-right */
@media (max-width: 768px) {
  .header-right {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10001 !important;
    margin-left: 0 !important;
  }

  .hamburger {
    position: static !important;
    transform: none !important;
    width: 38px !important;
    height: 38px !important;
  }

  .logo {
    max-width: calc(100% - 60px) !important;
  }
}

/* Nav dropdown: always position from header-inner */
.nav.open {
  position: absolute !important;
  top: 70px !important;
  right: 8px !important;
  left: auto !important;
  z-index: 10000 !important;
  min-width: 240px !important;
  max-width: calc(100vw - 16px) !important;
}

/* ── User menu: show dropdown links directly when logged in ──── */
.user-menu { display: none; }
.user-menu.visible { display: block; }

/* In hamburger nav, dropdown links appear as regular nav items */
.nav .user-menu .dropdown {
  display: none !important;
}
.nav-user-indicator { display: none !important; }

/* ── Auth page mobile — no scroll ─────────────────────────── */
@media (max-width: 480px) {
  .auth-page {
    padding: 64px 10px 80px;
    align-items: flex-start;
  }
  .auth-card {
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }
  .auth-card .form-group {
    margin-bottom: 10px !important;
  }
  .auth-card .form-input {
    padding: 10px 14px !important;
    font-size: 14px !important;
  }
  .auth-card .form-label {
    font-size: 10px !important;
    margin-bottom: 4px !important;
  }
  .auth-card .form-btn {
    padding: 12px !important;
    font-size: 14px !important;
  }
  .auth-card h2 {
    font-size: 20px !important;
    margin-bottom: 4px !important;
  }
  .auth-card p {
    font-size: 12px !important;
    margin-bottom: 12px !important;
  }
  .auth-logo {
    margin-bottom: 10px !important;
  }
  .auth-logo img {
    height: 36px !important;
  }
  .auth-divider {
    margin: 10px 0 !important;
  }
  .auth-footer {
    margin-top: 10px !important;
    font-size: 12px !important;
  }
}

/* ── Signup page — tightest compression for many fields ─── */
@media (max-width: 600px) {
  .auth-page .auth-card .form-group + .form-group {
    margin-top: 6px !important;
  }
  /* 2-column grid for name + phone on mobile */
  .auth-two-col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
}
