/* =====================================================
   COPA DEL MUNDO 2026 - ESTILOS PRINCIPALES
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ── */
:root {
  --bg-primary: #070b14;
  --bg-card: #0d1525;
  --bg-card-hover: #111d35;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(212, 175, 55, 0.4);

  --gold: #d4af37;
  --gold-light: #f0d060;
  --gold-dark: #a88820;
  --accent-blue: #1e90ff;
  --accent-red: #ff4757;
  --accent-green: #2ed573;

  --text-primary: #ffffff;
  --text-secondary: #8899bb;
  --text-muted: #4a5568;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(30, 144, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════════════
   LOGIN SCREEN
══════════════════════════════════════════════════ */

#login-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-primary);
}

#login-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 80%, rgba(30, 144, 255, 0.07) 0%, transparent 50%);
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.login-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.35);
  animation: float-ball 3s ease-in-out infinite;
}

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

.login-card h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.login-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
  outline: none;
  transition: var(--transition);
  margin-bottom: 12px;
}

.login-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.login-error {
  font-size: 13px;
  color: var(--accent-red);
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 12px;
  text-align: left;
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0a0800;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.login-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(212, 175, 55, 0.5); }
.login-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.login-btn-ghost {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 20px;
}

.login-btn-ghost:hover { background: var(--bg-glass); color: var(--text-primary); }

.login-footer {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.login-formats {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.login-formats code {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--gold);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.shake { animation: shake 0.5s ease; }

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 11, 20, 0.85);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.logo-text strong { font-size: 15px; font-weight: 800; display: block; }
.logo-text span { font-size: 11px; font-weight: 500; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.nav-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.nav-btn-ghost:hover,
.nav-btn-ghost.active { background: var(--bg-glass); color: var(--text-primary); }

/* ── User badge ── */
.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

.logout-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
  transition: var(--transition);
  line-height: 1;
}

.logout-btn:hover { color: var(--accent-red); }

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */

.hero {
  position: relative;
  z-index: 1;
  padding: 60px 24px 48px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p { font-size: 17px; color: var(--text-secondary); max-width: 460px; margin: 0 auto 32px; line-height: 1.6; }

.hero-stats { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.hero-stat-value { font-size: 32px; font-weight: 900; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.hero-stat-label { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* Promo Banner */
.promo-banner {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin: 0 auto 30px auto;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.promo-content strong {
  color: var(--text-primary);
  font-size: 15px;
}

.promo-wa-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 10px 20px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.promo-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.wa-icon {
  width: 20px;
  height: 20px;
}

/* ══════════════════════════════════════════════════
   COUNTDOWN
══════════════════════════════════════════════════ */

.countdown-section {
  position: relative;
  z-index: 1;
  padding: 0 24px 40px;
}

.countdown-inner {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 32px;
  text-align: center;
}

.countdown-label { font-size: 11px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.countdown-match-name { margin-bottom: 20px; width: 100%; }

.cd-match-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.cd-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 120px;
}

.cd-team img.flag-img {
  width: 48px;
  height: 36px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  border-radius: 4px;
}

.cd-team span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.cd-vs {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-muted);
  font-style: italic;
}

.countdown-timer { display: flex; justify-content: center; gap: 12px; }
.countdown-unit { text-align: center; }
.countdown-value { display: block; font-size: 38px; font-weight: 900; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-unit-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.countdown-separator {
  font-size: 30px;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.4;
  align-self: flex-start;
  padding-top: 4px;
  animation: blink-sep 1s step-start infinite;
}

@keyframes blink-sep { 0%, 100% { opacity: 0.4; } 50% { opacity: 0; } }

/* ══════════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════════ */

.main-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover { color: var(--text-primary); background: var(--bg-glass); }

.tab-btn.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0a0800;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.3);
}

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

/* ── Prediction help banner ── */
.pred-help-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(30, 144, 255, 0.06);
  border: 1px solid rgba(30, 144, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ══════════════════════════════════════════════════
   GROUP CARDS
══════════════════════════════════════════════════ */

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
}

.group-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.group-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  transform: translateY(-2px);
}

.group-card-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.03) 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.group-letter {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  color: #0a0800;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.group-card-header h3 { font-size: 15px; font-weight: 700; }
.group-card-header p { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

/* ── Standings ── */
.standings { padding: 4px 0; }

.standings-header {
  display: grid;
  grid-template-columns: 24px 1fr 36px 36px 36px 36px 48px;
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.standings-row {
  display: grid;
  grid-template-columns: 24px 1fr 36px 36px 36px 36px 48px;
  padding: 9px 14px;
  align-items: center;
  border-top: 1px solid var(--border);
  transition: var(--transition);
}

.standings-row:hover { background: var(--bg-glass); }
.standings-row.qualified { background: rgba(46, 213, 115, 0.04); }
.standings-row.third-place { background: rgba(30, 144, 255, 0.04); }

.standing-pos { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.standing-pos.pos-1, .standing-pos.pos-2 { color: var(--accent-green); }
.standing-pos.pos-3 { color: var(--accent-blue); }

.standing-team { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.team-flag { font-size: 16px; line-height: 1; }

/* Bandera como imagen (flagcdn) */
.flag-img {
  display: inline-block;
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.standing-stat { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-align: center; }
.standing-pts { font-size: 14px; font-weight: 800; color: var(--text-primary); text-align: center; }

/* ══════════════════════════════════════════════════
   MATCH ROWS + PREDICTIONS INLINE
══════════════════════════════════════════════════ */

.group-matches {
  border-top: 1px solid var(--border);
  padding: 10px 0 4px;
}

.group-matches-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0 14px 8px;
}

.match-row {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.match-row:last-child { border-bottom: none; }
.match-row:hover { background: var(--bg-glass); }

.match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.match-date-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 5px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.match-team-name {
  flex: unset;
  max-width: 90px;
  text-align: right;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.match-team-name.away { text-align: left; }

.match-flags { font-size: 18px; line-height: 1; flex-shrink: 0; }

.match-score {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  min-width: 48px;
  text-align: center;
  flex-shrink: 0;
}

.match-score.pending {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 16px;
}

.match-score.played {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
  animation: score-appear 0.4s ease-out;
}

@keyframes score-appear { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.match-score.live {
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.2) 0%, rgba(255, 71, 87, 0.05) 100%);
  border: 1px solid rgba(255, 71, 87, 0.4);
  color: var(--accent-red);
  font-size: 11px;
  animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.3); }
  50% { box-shadow: 0 0 0 5px rgba(255, 71, 87, 0); }
}

/* ── Prediction inline ── */
.match-prediction {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

/* Estado: disponible para predecir */
.match-prediction.open {
  background: rgba(30, 144, 255, 0.06);
  border: 1px dashed rgba(30, 144, 255, 0.25);
  justify-content: center;
}

.pred-inputs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pred-open-label {
  font-size: 10px;
  color: var(--accent-blue);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 4px;
  width: 100%;
  text-align: center;
}

.pred-input-score {
  width: 38px;
  padding: 5px 2px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: var(--transition);
}

.pred-input-score:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.12);
}

.pred-dash { font-size: 16px; font-weight: 900; color: var(--text-muted); }

.pred-flag-label { font-size: 20px; line-height: 1; flex-shrink: 0; }

.pred-save-btn {
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, #1460cc 100%);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.2);
  letter-spacing: 0.3px;
}

.pred-save-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(30, 144, 255, 0.35); }
.pred-save-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Estado: predicción guardada (bloqueada) */
.match-prediction.saved {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.pred-lock-icon { font-size: 13px; flex-shrink: 0; opacity: 0.7; }

.pred-saved-value {
  font-size: 15px;
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.pred-saved-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  flex: 1;
}

.pred-result {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}

.pred-result.exact {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
}

.pred-result.winner {
  background: rgba(30, 144, 255, 0.12);
  border: 1px solid rgba(30, 144, 255, 0.3);
  color: var(--accent-blue);
}

.pred-result.miss {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.25);
  color: var(--accent-red);
}

/* Estado: cerrado sin predicción */
.match-prediction.closed {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  justify-content: center;
}

/* ══════════════════════════════════════════════════
   LEADERBOARD / RANKING
══════════════════════════════════════════════════ */

.poya-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.poya-header-text h2 { font-size: 26px; font-weight: 800; margin-bottom: 5px; }
.poya-header-text p { color: var(--text-secondary); font-size: 14px; }

.points-legend { display: flex; gap: 12px; flex-wrap: wrap; }

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.legend-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.legend-badge.exact {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.legend-badge.winner {
  background: rgba(30, 144, 255, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(30, 144, 255, 0.3);
}

.leaderboard { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }

.leaderboard-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  overflow: hidden;
}

.leaderboard-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
}

.leaderboard-row:nth-child(1)::before { background: var(--gold); }
.leaderboard-row:nth-child(2)::before { background: #c0c0c0; }
.leaderboard-row:nth-child(3)::before { background: #cd7f32; }
.leaderboard-row:hover { border-color: var(--border-glow); transform: translateX(2px); }

.leaderboard-row.is-me {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.04);
}

.me-badge {
  position: absolute;
  top: 8px;
  right: 12px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  color: var(--gold);
  padding: 2px 8px;
  letter-spacing: 0.5px;
}

.lb-rank { font-size: 22px; font-weight: 900; min-width: 34px; text-align: center; }
.lb-rank.rank-1 { color: var(--gold); }
.lb-rank.rank-2 { color: #c0c0c0; }
.lb-rank.rank-3 { color: #cd7f32; }
.lb-rank.rank-other { font-size: 15px; color: var(--text-muted); }

.lb-info { flex: 1; }
.lb-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.lb-phone { font-size: 12px; color: var(--text-muted); }

.lb-stats { display: flex; gap: 14px; align-items: center; }
.lb-stat { text-align: center; }
.lb-stat-value { font-size: 17px; font-weight: 800; line-height: 1; }
.lb-stat-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

.lb-pts {
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 7px;
  font-size: 18px;
  font-weight: 900;
  color: #0a0800;
  text-align: center;
  min-width: 54px;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.25);
}

.lb-pts-label { font-size: 9px; color: rgba(10,8,0,0.6); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.lb-discount {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.lb-discount.won {
  background: rgba(46, 213, 115, 0.1);
  border: 1px solid rgba(46, 213, 115, 0.3);
  color: var(--accent-green);
}

.lb-discount.none {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.empty-leaderboard { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.empty-leaderboard .empty-icon { font-size: 52px; margin-bottom: 14px; }
.empty-leaderboard h3 { font-size: 18px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }

/* ── Discount tiers ── */
.discount-tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}

.discount-pct { font-size: 24px; font-weight: 900; line-height: 1; margin: 4px 0; }
.discount-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

/* ══════════════════════════════════════════════════
   FIREBASE NOTICE
══════════════════════════════════════════════════ */

.firebase-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 160, 0, 0.06);
  border-top: 1px solid rgba(255, 160, 0, 0.2);
  border-bottom: 1px solid rgba(255, 160, 0, 0.2);
  font-size: 12px;
  color: #ffa000;
  font-weight: 600;
  text-align: center;
}

/* ══════════════════════════════════════════════════
   SPINNER + LOADING
══════════════════════════════════════════════════ */

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-inline {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

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

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  gap: 12px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ══════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 2000;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 360px;
  pointer-events: none;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: rgba(46, 213, 115, 0.12); border: 1px solid rgba(46, 213, 115, 0.4); color: var(--accent-green); }
.toast.error { background: rgba(255, 71, 87, 0.12); border: 1px solid rgba(255, 71, 87, 0.4); color: var(--accent-red); }
.toast.info { background: rgba(212, 175, 55, 0.08); border: 1px solid rgba(212, 175, 55, 0.3); color: var(--gold); }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .login-card { padding: 36px 24px; }
  .header-inner { height: 60px; }
  .logo-text { display: none; }
  .hero { padding: 36px 16px 28px; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero-stats { gap: 20px; }
  .main-content { padding: 0 14px 60px; }
  .groups-grid { grid-template-columns: 1fr; }
  .countdown-inner { padding: 18px 20px; }
  .countdown-value { font-size: 28px; }
  .standings-header, .standings-row { grid-template-columns: 22px 1fr 30px 30px 30px 30px 38px; font-size: 11px; padding: 7px 10px; }
  .poya-header { flex-direction: column; }
  .leaderboard-row { flex-wrap: wrap; gap: 10px; }
  .lb-stats { gap: 8px; }
}

@media (max-width: 480px) {
  .tabs { gap: 2px; }
  .tab-btn { padding: 8px 12px; font-size: 12px; }
  .nav-btn span { display: none; }
  .toast { right: 14px; bottom: 14px; left: 14px; max-width: none; }
  .pred-inputs-row { flex-wrap: wrap; gap: 4px; }
  .match-team-name { font-size: 11px; }
}
