/* ============================================================
   WC2026 FUN BET - MAIN STYLES
   World Cup 2026 · USA · Canada · Mexico
   Theme: Deep Navy + Crimson + Gold – Bold & Energetic
   Fonts: Bebas Neue (display) + Outfit (body)
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --navy:       #0B1D3A;
  --navy-light: #132847;
  --navy-card:  #0F2249;
  --red:        #D42B2B;
  --red-light:  #F03535;
  --gold:       #F5A623;
  --gold-light: #FFB83A;
  --white:      #FFFFFF;
  --off-white:  #F0F4FF;
  --muted:      #7A8DAB;
  --success:    #27AE60;
  --warning:    #F39C12;
  --danger:     #E74C3C;
  --info:       #3498DB;

  --card-bg:    rgba(15, 34, 73, 0.9);
  --card-border:rgba(255,255,255,0.08);
  --glass:      rgba(255,255,255,0.05);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --glow-gold: 0 0 20px rgba(245,166,35,0.3);
  --glow-red:  0 0 20px rgba(212,43,43,0.3);

  --transition: all 0.2s ease;
  --nav-h: 68px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--off-white);
  background: var(--navy);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(212,43,43,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 100%, rgba(245,166,35,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

h1,h2,h3,h4,h5 { font-family: 'Outfit', sans-serif; font-weight: 800; line-height: 1.2; }
strong { font-weight: 700; }
code { font-family: 'Courier New', monospace; background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 4px; font-size: 0.85em; }
pre.code-block { background: rgba(0,0,0,0.4); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 16px; font-size: 0.82em; overflow-x: auto; white-space: pre-wrap; }
img { max-width: 100%; }

/* ── LAYOUT ── */
.container    { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.py-lg        { padding-top: 32px; padding-bottom: 64px; }
.mt-lg        { margin-top: 24px; }
.mb-md        { margin-bottom: 16px; }
.mb-lg        { margin-bottom: 24px; }
.mt-md        { margin-top: 16px; }
.grid-2col    { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.text-center  { text-align: center; }
.text-gold    { color: var(--gold) !important; }
.text-red     { color: var(--red) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted   { color: var(--muted) !important; }
.fw-bold      { font-weight: 700; }
.text-sm      { font-size: 0.82em; }
.py-md        { padding: 16px 0; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(11,29,58,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  z-index: 1000;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--white);
}
.nav-brand:hover { color: var(--gold); }
.brand-icon { font-size: 1.2rem; }
.nav-links {
  display: flex; list-style: none; gap: 2px;
  margin-left: auto;
  flex-shrink: 1;
  min-width: 0;
}
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: var(--glass);
  color: var(--white);
}
.nav-link.active { color: var(--gold); }
.nav-icon { font-size: 1rem; }
.nav-user {
  display: flex; align-items: center; gap: 10px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--card-border);
}
.user-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
  flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; }
.user-name { font-weight: 600; font-size: 0.85rem; color: var(--white); }
.logout-link { font-size: 0.75rem; color: var(--muted); }
.logout-link:hover { color: var(--red); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--off-white); border-radius: 2px; transition: var(--transition); }
.main-content { padding-top: var(--nav-h); min-height: 100vh; }

/* ── ALERTS ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-weight: 500;
  border-left: 4px solid;
}
.alert-success { background: rgba(39,174,96,0.15); border-color: var(--success); color: #5dde8e; }
.alert-error   { background: rgba(231,76,60,0.15);  border-color: var(--danger);  color: #f08070; }
.alert-info    { background: rgba(52,152,219,0.15); border-color: var(--info);    color: #7dc5f5; }
.alert-warning { background: rgba(243,156,18,0.15); border-color: var(--warning); color: var(--gold); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), #b01e1e);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(212,43,43,0.4);
}
.btn-primary:hover { background: linear-gradient(135deg,var(--red-light),var(--red)); transform: translateY(-1px); color: var(--white); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #d4870a);
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(245,166,35,0.4);
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); transform: translateY(-1px); color: var(--navy); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--card-border);
  color: var(--off-white);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(245,166,35,0.05); }
.btn-full   { width: 100%; }
.btn-lg     { padding: 13px 24px; font-size: 1rem; }
.btn-sm     { padding: 6px 12px; font-size: 0.8rem; }
.btn-danger { background: rgba(231,76,60,0.2); border: 1px solid var(--danger); color: #f08070; }
.btn-danger:hover { background: var(--danger); color: var(--white); }
.btn-warning{ background: rgba(243,156,18,0.2); border: 1px solid var(--warning); color: var(--gold); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.btn-pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 2px 12px rgba(212,43,43,0.4)} 50%{box-shadow:0 2px 24px rgba(212,43,43,0.7)} }

/* ── FORMS ── */
.form-group   { display: flex; flex-direction: column; gap: 6px; }
.form-label   { font-size: 0.85rem; font-weight: 600; color: var(--muted); letter-spacing: 0.5px; text-transform: uppercase; }
.form-input {
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  width: 100%;
}
.form-input:focus { outline: none; border-color: var(--gold); background: rgba(245,166,35,0.05); }
.form-input::placeholder { color: var(--muted); }
.form-input option { background: var(--navy-light); }
.form-hint { font-size: 0.78rem; color: var(--muted); }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pin-input { font-size: 1.4rem; letter-spacing: 6px; text-align: center; }
.form-input-sm { padding: 8px 12px; background: rgba(255,255,255,0.06); border: 1.5px solid var(--card-border); border-radius: var(--radius-sm); color: var(--white); font-family:'Outfit',sans-serif; }

.checkbox-label {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; padding: 12px; 
  background: rgba(245,166,35,0.05);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.checkbox-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--gold); width: 16px; height: 16px; }
.checkbox-text { font-size: 0.9rem; }

/* ── SECTION CARDS ── */
.section-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(8px);
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title { font-size: 1.1rem; font-weight: 700; }
.section-link  { font-size: 0.85rem; color: var(--gold); }
.section-desc  { font-size: 0.88rem; margin-bottom: 12px; }
.section-date  { font-size: 0.82rem; color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); padding: 24px; font-size: 0.9rem; }
.empty-card {
  text-align: center; padding: 60px 24px;
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-lg);
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-card h3 { margin-bottom: 8px; }
.empty-card p { color: var(--muted); margin-bottom: 20px; }

/* ── BADGES ── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.badge-upcoming  { background: rgba(52,152,219,0.2); color: #7dc5f5; }
.badge-live      { background: rgba(231,76,60,0.2);  color: #f08070; animation: livePulse 1s infinite; }
.badge-done      { background: rgba(39,174,96,0.2);  color: #5dde8e; }
.badge-postponed { background: rgba(243,156,18,0.2); color: var(--gold); }
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.live-dot { display:inline-block;width:8px;height:8px;background:var(--red);border-radius:50%;animation:livePulse 1s infinite; }

/* ── LOGIN PAGE ── */
.login-body { background: var(--navy); overflow-x: hidden; display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 20px; }
.login-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.login-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,29,58,0.96) 0%, rgba(25,10,10,0.94) 100%);
}
.login-particles { position: absolute; inset: 0; }
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: float linear infinite;
}
.particle:nth-child(odd)  { background: var(--red); }
.particle:nth-child(1)  { left:10%;  top:80%; animation-duration: 8s;  animation-delay: 0s;   width:6px; height:6px; }
.particle:nth-child(2)  { left:20%;  top:20%; animation-duration: 12s; animation-delay: 1s; }
.particle:nth-child(3)  { left:35%;  top:60%; animation-duration: 9s;  animation-delay: 2s;   width:3px; height:3px; }
.particle:nth-child(4)  { left:50%;  top:40%; animation-duration: 11s; animation-delay: 0.5s; }
.particle:nth-child(5)  { left:65%;  top:75%; animation-duration: 7s;  animation-delay: 3s;   width:5px; height:5px; }
.particle:nth-child(6)  { left:75%;  top:15%; animation-duration: 10s; animation-delay: 1.5s; }
.particle:nth-child(7)  { left:85%;  top:55%; animation-duration: 13s; animation-delay: 2.5s; width:3px; height:3px; }
.particle:nth-child(8)  { left:90%;  top:30%; animation-duration: 8s;  animation-delay: 0.8s; }
.particle:nth-child(9)  { left:5%;   top:45%; animation-duration: 9s;  animation-delay: 1.2s; width:6px; height:6px; }
.particle:nth-child(10) { left:45%;  top:85%; animation-duration: 11s; animation-delay: 2s; }
.particle:nth-child(11) { left:55%;  top:10%; animation-duration: 7s;  animation-delay: 3.5s; }
.particle:nth-child(12) { left:30%;  top:35%; animation-duration: 15s; animation-delay: 0.3s; width:2px; height:2px; }
@keyframes float {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50%  { opacity: 0.6; }
  100% { transform: translateY(-80px) rotate(180deg); opacity: 0; }
}
.login-wrapper { position: relative; z-index: 1; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; padding: 20px 0 40px; }
.login-hero { text-align: center; margin-bottom: 32px; }
.wc-trophy { font-size: 4rem; margin-bottom: 8px; filter: drop-shadow(0 4px 12px rgba(245,166,35,0.4)); animation: trophyBob 3s ease-in-out infinite; }
@keyframes trophyBob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.login-title { font-family: 'Bebas Neue', sans-serif; font-size: 5rem; letter-spacing: 4px; background: linear-gradient(135deg,var(--white),var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.login-subtitle { color: var(--muted); font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }
.host-flags { font-size: 2rem; margin-top: 16px; letter-spacing: 4px; }
.host-label { color: var(--muted); font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; margin-top: 4px; }
.login-card {
  background: rgba(15,34,73,0.95);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  width: 100%;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}
.card-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.card-desc  { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.back-link { text-align: center; margin-top: 16px; font-size: 0.85rem; }
.login-footer-note { color: var(--muted); font-size: 0.78rem; text-align: center; margin-top: 20px; }

.rules-box {
  background: rgba(245,166,35,0.05);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.rules-box h3 { font-size: 1rem; margin-bottom: 12px; color: var(--gold); }
.rules-list   { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rules-list li { font-size: 0.9rem; padding-left: 4px; }
.pin-optional {}

/* ── DASHBOARD HERO ── */
.dashboard-hero {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 28px;
  flex-wrap: wrap; gap: 16px;
}
.hero-greeting h1 { font-size: 1.8rem; font-weight: 800; }
.hero-greeting p  { color: var(--muted); font-size: 0.9rem; }

/* ── STATS GRID ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.15); }
.stat-icon  { font-size: 2rem; }
.stat-value { font-size: 1.8rem; font-weight: 800; font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; }
.stat-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-total { border-top: 3px solid var(--info); }
.stat-win   { border-top: 3px solid var(--success); }
.stat-loss  { border-top: 3px solid var(--danger); }
.stat-money { border-top: 3px solid var(--gold); }

/* ── MATCH MINI CARDS ── */
.match-mini {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
  gap: 12px;
  flex-wrap: wrap;
}
.match-mini:last-child { border-bottom: none; }
.match-mini.match-live { background: rgba(212,43,43,0.05); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0 -12px; }
.match-teams-mini { display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; }
.team-mini { font-size: 0.88rem; font-weight: 600; }
.vs-mini   { font-size: 0.8rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
.bet-pick-mini { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.btn-bet-now {
  font-size: 0.78rem; font-weight: 700;
  padding: 5px 12px;
  background: linear-gradient(135deg,var(--red),#b01e1e);
  color: var(--white);
  border-radius: 20px;
  border: none; cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
}
.btn-bet-now:hover { background: var(--red-light); color: var(--white); }

/* ── RESULT ROWS ── */
.results-list { display: flex; flex-direction: column; gap: 0; }
.result-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
  flex-wrap: wrap; gap: 8px;
}
.result-row:last-child { border-bottom: none; }
.result-teams { display: flex; align-items: center; gap: 8px; flex: 1; }
.team-result { font-size: 0.88rem; }
.score-badge {
  background: var(--navy);
  border: 1px solid var(--card-border);
  padding: 3px 10px; border-radius: 20px;
  font-weight: 800; font-size: 0.9rem; color: var(--gold);
}
.score-inline { font-weight: 800; color: var(--gold); margin: 0 4px; }
.result-meta  { display: flex; align-items: center; gap: 10px; }
.result-date  { font-size: 0.75rem; color: var(--muted); }
.bet-result   { font-size: 0.82rem; font-weight: 600; }
.bet-result-win     { color: var(--success); }
.bet-result-loss    { color: var(--danger); }
.bet-result-missed  { color: var(--warning); }
.bet-result-pending { color: var(--muted); }

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 28px; }
.page-title  { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.page-desc   { color: var(--muted); }

/* ── STATS HERO ── */
.stats-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-hero-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
}
.stat-hero-number { font-family:'Bebas Neue',sans-serif; font-size: 3rem; letter-spacing: 2px; }
.stat-hero-label  { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── WIN RATE BAR ── */
.win-rate-bar { display: flex; height: 36px; border-radius: var(--radius-sm); overflow: hidden; background: var(--navy); margin-bottom: 12px; }
.wr-fill { display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; transition: width 0.8s ease; }
.wr-win  { background: linear-gradient(90deg,var(--success),#1fa050); }
.wr-loss { background: linear-gradient(90deg,#b02020,var(--danger)); }
.wr-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.wrl-win, .wrl-loss, .wrl-pending { font-size: 0.82rem; color: var(--muted); }

/* ── FILTER TABS ── */
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tab {
  padding: 6px 14px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--muted); background: transparent;
  transition: var(--transition);
}
.filter-tab.active, .filter-tab:hover {
  background: var(--glass); color: var(--gold);
}

/* ── BET HISTORY ── */
.bet-history-list { display: flex; flex-direction: column; }
.bet-history-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--card-border);
}
.bet-history-item:last-child { border-bottom: none; }
.bhi-match {}
.bhi-teams { font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bhi-meta  { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.bhi-pick  { text-align: center; }
.bhi-pick-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; }
.bhi-pick-team  { font-size: 0.88rem; font-weight: 600; }
.bhi-result { text-align: right; }
.bhi-amount { display: block; font-size: 0.8rem; color: var(--danger); font-weight: 600; }
.result-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.result-badge-win     { background: rgba(39,174,96,0.2);  color: var(--success); }
.result-badge-loss    { background: rgba(231,76,60,0.2);  color: var(--danger); }
.result-badge-missed  { background: rgba(243,156,18,0.2); color: var(--warning); }
.result-badge-pending { background: rgba(122,141,171,0.2);color: var(--muted); }

.missed-list { display: flex; flex-direction: column; }
.missed-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--card-border);
  gap: 12px; flex-wrap: wrap;
}
.missed-item:last-child { border-bottom: none; }
.missed-teams { display: flex; align-items: center; gap: 6px; flex: 1; font-size: 0.88rem; }
.missed-meta  { font-size: 0.78rem; color: var(--muted); }

/* ── LEADERBOARD ── */
.fund-banner {
  background: linear-gradient(135deg, rgba(245,166,35,0.15), rgba(212,43,43,0.1));
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.fund-icon   { font-size: 3rem; }
.fund-amount { font-family:'Bebas Neue',sans-serif; font-size: 2.5rem; color: var(--gold); }
.fund-label  { color: var(--muted); font-size: 0.85rem; }
.fund-note   { flex: 1; font-size: 0.9rem; color: var(--off-white); }
.my-rank-card {
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.my-rank-num  { font-family:'Bebas Neue',sans-serif; font-size: 2.5rem; color: var(--gold); }
.my-rank-info strong { display: block; }
.leaderboard-card { padding: 0; overflow: hidden; }
.leaderboard-table { width: 100%; border-collapse: collapse; }
.leaderboard-table thead tr { background: rgba(0,0,0,0.2); }
.leaderboard-table th, .leaderboard-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--card-border); }
.leaderboard-table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); font-weight: 700; }
.lb-row:hover { background: rgba(255,255,255,0.03); }
.lb-row.lb-me { background: rgba(245,166,35,0.08); }
.lb-rank { font-family:'Bebas Neue',sans-serif; font-size: 1.2rem; color: var(--gold); width: 60px; }
.lb-name { display: flex; align-items: center; gap: 10px; }
.lb-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg,var(--red),var(--gold));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.82rem;
  flex-shrink: 0;
}
.you-badge { display: inline-block; background: var(--gold); color: var(--navy); font-size: 0.7rem; font-weight: 800; padding: 1px 8px; border-radius: 20px; margin-left: 6px; }
.mini-bar { width: 60px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.mini-bar-fill { height: 100%; background: linear-gradient(90deg,var(--success),var(--gold)); border-radius: 3px; }
.leaderboard-note { margin-top: 16px; font-size: 0.8rem; line-height: 1.8; }

/* ── BETTING PAGE ── */
.bet-progress-bar { margin-bottom: 24px; }
.bet-progress-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; font-weight: 600; }
.progress-bar-track { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.progress-bar-fill  { height: 100%; background: linear-gradient(90deg, var(--success), var(--gold)); border-radius: 4px; transition: width 0.8s ease; }

.filter-bar   { margin-bottom: 24px; display: flex; flex-direction: column; gap: 12px; }
.filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill  {
  padding: 6px 14px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--card-border);
  color: var(--muted); background: transparent;
  transition: var(--transition);
}
.filter-pill.active, .filter-pill:hover {
  background: rgba(245,166,35,0.1);
  border-color: var(--gold); color: var(--gold);
}

.quick-bet-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(52,152,219,0.1);
  border: 1px solid rgba(52,152,219,0.3);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 20px;
  font-size: 0.9rem; gap: 12px; flex-wrap: wrap;
}

.date-group  { margin-bottom: 24px; }
.date-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 2px solid var(--card-border);
  margin-bottom: 12px;
}
.date-label  { font-weight: 700; font-size: 0.95rem; text-transform: capitalize; }
.date-count  { font-size: 0.8rem; color: var(--muted); }

.match-bet-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: visible;
  transition: var(--transition);
}
.match-bet-card.focused  { border-color: var(--gold); box-shadow: var(--glow-gold); }
.match-bet-card.has-bet  { border-color: rgba(39,174,96,0.3); }
.match-bet-card:hover    { border-color: rgba(255,255,255,0.15); }
.match-bet-header {
  display: flex; gap: 8px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.2);
  flex-wrap: wrap;
  align-items: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.match-stage-tag { font-size: 0.75rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; }
.match-time-tag  { font-size: 0.75rem; color: var(--muted); }
.match-venue-tag { font-size: 0.73rem; color: var(--muted); margin-left: auto; }

.match-bet-body {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 0; padding: 20px 16px;
  align-items: center;
  overflow: visible;
}
.team-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: transparent; border: 2px solid var(--card-border);
  border-radius: var(--radius); padding: 16px 12px;
  cursor: pointer; transition: var(--transition);
  width: 100%; position: relative;
  overflow: visible;
  color: var(--off-white);
  font-family: 'Outfit', system-ui, sans-serif;
}
.team-btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(245,166,35,0.07);
  transform: scale(1.02);
}
.team-btn.selected {
  border-color: var(--success);
  background: rgba(39,174,96,0.1);
  color: var(--white);
}
.team-btn:disabled { cursor: not-allowed; opacity: 0.5; }
.team-flag-lg { font-size: 2.2rem; line-height: 1; }
.team-name-lg { font-size: 0.82rem; font-weight: 700; text-align: center; color: inherit; }
.picked-check {
  position: absolute; top: -8px; right: -8px;
  background: var(--success);
  color: var(--white);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800;
}
.vs-divider { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 12px; }
.vs-text     { font-family:'Bebas Neue',sans-serif; font-size: 1.4rem; color: var(--muted); }
.bet-placed-icon { font-size: 1rem; }

.bet-status-bar {
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.bet-confirmed { background: rgba(39,174,96,0.1);  color: #5dde8e; }
.bet-pending   { background: rgba(243,156,18,0.1); color: var(--gold); }
.bet-closed    { background: rgba(122,141,171,0.1);color: var(--muted); }
.btn-change-bet { background: none; border: none; color: var(--gold); cursor: pointer; font-size: 0.8rem; text-decoration: underline; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.9rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(100px); opacity: 0;
  transition: all 0.3s ease;
  max-width: 320px;
}
.toast.show, .toast.toast-visible { transform: translateY(0); opacity: 1; }
.toast.success, .toast.toast-success { border-color: var(--success); color: #5dde8e; }
.toast.error,   .toast.toast-error   { border-color: var(--danger);  color: #f08070; }
.toast.info,    .toast.toast-info    { border-color: var(--gold);    color: var(--gold); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--navy-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-header h3 { font-size: 1.2rem; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; padding: 4px; }
.modal-close:hover { color: var(--white); }
.modal-body { }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.quick-bet-options { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.qb-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 16px; border: 1px solid var(--card-border);
  border-radius: var(--radius); background: transparent;
  cursor: pointer; text-align: left; transition: var(--transition); color: var(--off-white);
  font-family: 'Outfit', sans-serif;
}
.qb-option:hover { border-color: var(--gold); background: rgba(245,166,35,0.07); }
.qb-option strong { font-size: 0.95rem; }
.qb-option span   { font-size: 0.8rem; color: var(--muted); }

/* ── ADMIN MODAL ── */
.admin-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center; justify-content: center;
  padding: 20px;
}

/* ── SITE FOOTER ── */
.site-footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--card-border);
  padding: 24px 0;
  margin-top: 40px;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-tagline { color: var(--muted); font-size: 0.82rem; margin-left: 8px; }
.footer-meta { font-size: 0.8rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.separator { color: var(--card-border); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .stats-grid, .stats-hero-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2col    { grid-template-columns: 1fr; }
  .nav-links    { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(11,29,58,0.98); border-bottom: 1px solid var(--card-border); padding: 12px; backdrop-filter: blur(12px); }
  .nav-links.open { display: flex; }
  .nav-toggle   { display: flex; margin-left: auto; }
  .nav-user     { display: none; }
  .match-bet-body { grid-template-columns: 1fr auto 1fr; }
  .team-flag-lg { font-size: 1.8rem; }
  .bet-history-item { grid-template-columns: 1fr auto; }
  .bhi-pick { display: none; }
  .leaderboard-table th:nth-child(4),
  .leaderboard-table td:nth-child(4) { display: none; }
}
@media (max-width: 600px) {
  .stats-grid, .stats-hero-grid { grid-template-columns: 1fr 1fr; }
  .login-card { padding: 24px 20px; }
  .login-title { font-size: 3.5rem; }
  .page-title  { font-size: 1.6rem; }
  .fund-banner { flex-direction: column; text-align: center; }
  .footer-inner { justify-content: center; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .match-bet-body { padding: 12px; gap: 4px; }
  .vs-divider { padding: 0 6px; }
}

/* ── DRAW BET BUTTON ── */
.match-bet-body.has-draw {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .5rem;
  align-items: stretch;
}
.match-bet-body.has-draw .team-btn:first-child,
.match-bet-body.has-draw .team-btn:last-child {
  min-width: 0;
}
.draw-btn {
  flex-direction: column;
  min-width: 72px;
  max-width: 90px;
  padding: .75rem .5rem;
  background: rgba(251,191,36,.07);
  border-color: rgba(251,191,36,.2);
}
.draw-btn:hover {
  background: rgba(251,191,36,.15);
  border-color: rgba(251,191,36,.5);
}
.draw-btn.selected {
  background: rgba(251,191,36,.2);
  border-color: var(--gold, #fbbf24);
  color: var(--gold, #fbbf24);
}
.draw-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: .25rem;
}

/* Knockout layout stays 2-col */
.match-bet-body:not(.has-draw) {
  display: flex;
  gap: .75rem;
  align-items: stretch;
}
