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

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

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --bg:        #070b14;
  --bg2:       #0d1424;
  --bg3:       #111d33;
  --glass:     rgba(255,255,255,.04);
  --glass2:    rgba(255,255,255,.07);
  --border:    rgba(255,255,255,.08);
  --border2:   rgba(255,255,255,.13);
  --gold:      #f5a623;
  --gold2:     #fbbf24;
  --gold-glow: rgba(245,166,35,.25);
  --green:     #22c55e;
  --green-dim: rgba(34,197,94,.15);
  --red:       #ef4444;
  --red-dim:   rgba(239,68,68,.15);
  --blue:      #3b82f6;
  --blue-dim:  rgba(59,130,246,.15);
  --text:      #f1f5f9;
  --text2:     #94a3b8;
  --text3:     #475569;
  --live:      #ef4444;
  --r:         10px;
  --r2:        16px;
  --shadow:    0 8px 32px rgba(0,0,0,.5);
  --shadow2:   0 24px 64px rgba(0,0,0,.7);
}

/* ── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { opacity: .8; }
::selection { background: var(--gold-glow); }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 60px;
  background: rgba(7,11,20,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 800; letter-spacing: -.3px;
  background: linear-gradient(135deg, var(--gold), #fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-brand-icon { font-size: 22px; -webkit-text-fill-color: initial; }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
  color: var(--text2); font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 8px;
  transition: all .2s; letter-spacing: -.1px;
}
.nav-links a:hover { background: var(--glass2); color: var(--text); opacity: 1; }
.nav-links a.active { background: var(--glass2); color: var(--text); }

.nav-divider { width: 1px; height: 20px; background: var(--border); margin: 0 8px; }

.nav-user {
  display: flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 14px 5px 8px;
}
.nav-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #e8591a);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #000;
}
.nav-username { font-size: 13px; font-weight: 600; color: var(--text); }

.btn-logout {
  color: var(--text3) !important; font-size: 12px;
  padding: 5px 12px !important; border-radius: 6px !important;
  background: transparent !important; border: 1px solid var(--border) !important;
  transition: all .2s !important;
}
.btn-logout:hover { border-color: var(--red) !important; color: var(--red) !important; }

/* ══════════════════════════════════════════════════════════════
   FLASH MESSAGES
══════════════════════════════════════════════════════════════ */
.flash-messages {
  position: fixed; top: 72px; right: 20px; z-index: 400;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.flash {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-radius: var(--r2);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow2); pointer-events: all;
  backdrop-filter: blur(20px); min-width: 280px; max-width: 400px;
  animation: slideIn .3s ease;
}
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } }
.flash button { background: none; border: none; cursor: pointer; color: inherit; font-size: 18px; margin-left: auto; line-height: 1; opacity: .6; }
.flash button:hover { opacity: 1; }
.flash-success { background: rgba(20,83,45,.9); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.flash-error   { background: rgba(69,10,10,.9);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.flash-info    { background: rgba(30,58,95,.9);  border: 1px solid rgba(59,130,246,.3); color: #93c5fd; }

/* ══════════════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════════════ */
.container { max-width: 1440px; margin: 0 auto; padding: 28px 20px; }

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.page-header h2 {
  font-size: 24px; font-weight: 800; letter-spacing: -.5px;
  background: linear-gradient(135deg, #fff 60%, var(--text2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.header-actions { display: flex; gap: 10px; align-items: center; }

.section-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text3);
  margin: 36px 0 16px; display: flex; align-items: center; gap: 8px;
}
.section-title::before { content: ''; flex: 0 0 3px; height: 14px; background: var(--gold); border-radius: 2px; }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, var(--gold), #e8851a);
  color: #000 !important; font-weight: 700; font-size: 13px; letter-spacing: -.1px;
  border: none; padding: 9px 20px; border-radius: var(--r);
  cursor: pointer; transition: all .2s; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(245,166,35,.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(245,166,35,.45); opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--glass); color: var(--text); font-weight: 600; font-size: 13px;
  border: 1px solid var(--border2); padding: 8px 18px; border-radius: var(--r);
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-secondary:hover { background: var(--glass2); border-color: var(--border2); transform: translateY(-1px); }

.btn-full { width: 100%; }

.btn-xs {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--glass); color: var(--text2);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px;
  cursor: pointer; font-size: 11px; font-weight: 600; transition: all .2s;
}
.btn-xs:hover { background: var(--glass2); color: var(--text); }
.btn-score { color: var(--gold) !important; }
.btn-danger { color: var(--red) !important; }

/* ══════════════════════════════════════════════════════════════
   LIVE TICKER
══════════════════════════════════════════════════════════════ */
.live-ticker {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(90deg, rgba(239,68,68,.12), rgba(239,68,68,.05));
  border: 1px solid rgba(239,68,68,.25);
  border-radius: var(--r2); padding: 12px 20px;
  margin-bottom: 24px; overflow-x: auto;
}
.live-badge {
  display: flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.ticker-matches { display: flex; gap: 20px; align-items: center; overflow-x: auto; }
.ticker-match {
  display: flex; align-items: center; gap: 8px;
  color: var(--text); font-size: 13px; font-weight: 500;
  padding: 4px 12px; border-radius: 8px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  white-space: nowrap; transition: all .2s;
}
.ticker-match:hover { background: rgba(255,255,255,.08); opacity: 1; }
.ticker-score { font-size: 15px; font-weight: 800; color: var(--gold); padding: 0 4px; }
.ticker-min { font-size: 10px; color: var(--red); font-weight: 700; background: rgba(239,68,68,.15); padding: 2px 6px; border-radius: 4px; }

/* ══════════════════════════════════════════════════════════════
   BRACKET SIMÉTRICO (estilo torneo, dos lados)
══════════════════════════════════════════════════════════════ */
.bracket-wrap { margin-bottom: 48px; }
.bracket-scroll { overflow-x: auto; padding: 8px 0 20px; }

.bracket-tree {
  display: flex; align-items: stretch; justify-content: center;
  min-width: max-content; gap: 0;
  background: radial-gradient(ellipse at 50% 45%, #102347 0%, #0a1430 45%, #060c1c 100%);
  border: 1px solid var(--border); border-radius: 22px;
  padding: 24px 24px 28px;
  box-shadow: 0 30px 90px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05);
  position: relative;
}

/* ── Sides ──────────────────────────────────────────────────── */
.tree-side { display: flex; align-items: stretch; }

/* ── Columns ────────────────────────────────────────────────── */
.bkt-col { display: flex; flex-direction: column; width: 168px; }
.bkt-col-head { text-align: center; margin-bottom: 14px; height: 22px; }
.round-label {
  display: inline-block; font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold);
  background: rgba(245,166,35,.1); border: 1px solid rgba(245,166,35,.22);
  padding: 4px 11px; border-radius: 20px; white-space: nowrap;
}
.bkt-col-body {
  display: flex; flex-direction: column;
  justify-content: space-around; flex: 1; gap: 10px;
}

/* ── Match card ─────────────────────────────────────────────── */
.bkt-match {
  position: relative; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border2); border-radius: 10px; overflow: hidden;
  transition: transform .18s, border-color .22s, box-shadow .22s;
}
.bkt-match:hover { transform: translateY(-2px); border-color: rgba(245,166,35,.5); box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.bkt-match.live { border-color: rgba(239,68,68,.55); box-shadow: 0 0 18px rgba(239,68,68,.25); }
.bkt-match.finished { opacity: .92; }
.bkt-match.empty { opacity: .5; }

.bkt-link { display: block; padding: 7px 9px; color: var(--text); }
.bkt-team { display: flex; align-items: center; gap: 7px; padding: 3px 2px; border-radius: 5px; }
.bkt-team + .bkt-team { border-top: 1px solid var(--border); margin-top: 1px; padding-top: 5px; }
.bkt-team.winner .tname { color: #fff; font-weight: 800; }
.bkt-team.winner .tscore { color: var(--gold); }
.bkt-team .flag { font-size: 15px; width: 19px; text-align: center; flex-shrink: 0; }
.bkt-team .tname { flex: 1; font-size: 11.5px; font-weight: 600; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bkt-team .tscore { font-size: 14px; font-weight: 800; color: var(--text); min-width: 16px; text-align: center; }
.bkt-team .tscore sup { font-size: 8px; color: var(--text3); }

.bkt-foot {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 5px 9px; border-top: 1px solid var(--border); background: rgba(0,0,0,.22);
  min-height: 30px;
}
.badge-date { font-size: 9.5px; color: var(--text3); font-weight: 600; }

/* inline pron in bracket foot */
.bkt-pron { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.bkt-pron .pron-input {
  width: 26px; text-align: center; background: rgba(255,255,255,.07);
  border: 1px solid var(--border2); color: var(--text); padding: 3px 0;
  border-radius: 5px; font-size: 12px; font-weight: 700; font-family: inherit;
}
.bkt-pron .pron-input:focus { outline: none; border-color: var(--gold); background: rgba(245,166,35,.1); }
.btn-pron {
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: var(--text2); border: 1px solid var(--border2);
  border-radius: 5px; cursor: pointer; font-size: 13px; font-weight: 700; font-family: inherit;
  transition: all .18s; flex-shrink: 0;
}
.btn-pron:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.btn-pron.saved { background: var(--green-dim); color: var(--green); border-color: rgba(34,197,94,.4); }
.bkt-mypron { font-size: 10px; font-weight: 700; color: var(--text3); margin-left: auto; white-space: nowrap; }
.bkt-mypron.pts-3 { color: var(--gold); }
.bkt-mypron.pts-1 { color: var(--green); }
.bkt-mypron.pts-0 { color: var(--red); }

/* ── Connectors ─────────────────────────────────────────────── */
/* horizontal stub leaving each match toward center */
.tree-side.left .bkt-col:not(:last-child) .bkt-match::after,
.tree-side.right .bkt-col:not(:last-child) .bkt-match::after {
  content: ''; position: absolute; top: 50%; width: 12px; height: 2px;
  background: var(--border2);
}
.tree-side.left .bkt-col:not(:last-child) .bkt-match::after { right: -13px; }
.tree-side.right .bkt-col:not(:last-child) .bkt-match::after { left: -13px; }
/* incoming stub on deeper columns */
.tree-side.left .bkt-col:not(:first-child) .bkt-match::before,
.tree-side.right .bkt-col:not(:first-child) .bkt-match::before {
  content: ''; position: absolute; top: 50%; width: 12px; height: 2px;
  background: var(--border2);
}
.tree-side.left .bkt-col:not(:first-child) .bkt-match::before { left: -13px; }
.tree-side.right .bkt-col:not(:first-child) .bkt-match::before { right: -13px; }

/* ── Center: Final + champion ───────────────────────────────── */
.tree-center { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 18px; min-width: 200px; }
.champion-badge {
  font-size: 46px; margin-bottom: 14px; line-height: 1;
  filter: drop-shadow(0 0 20px rgba(245,166,35,.5));
  animation: floaty 3s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.final-col { width: 196px; }
.final-label {
  font-size: 11px; letter-spacing: 2px; color: #000;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  border: none; padding: 5px 16px;
}
.final-col .bkt-match {
  border-color: rgba(245,166,35,.4);
  box-shadow: 0 0 30px rgba(245,166,35,.15);
  background: linear-gradient(180deg, rgba(245,166,35,.08), rgba(255,255,255,.02));
}
.final-col .bkt-col-head { margin-bottom: 12px; }
.third-place { margin-top: 18px; opacity: .85; }
.third-label { display: block; text-align: center; margin-bottom: 8px; font-size: 8px; background: rgba(255,255,255,.05); border-color: var(--border); color: var(--text2); }

/* ══════════════════════════════════════════════════════════════
   GROUPS GRID
══════════════════════════════════════════════════════════════ */
.groups-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px; margin-bottom: 40px;
}
.group-card {
  background: rgba(255,255,255,.025); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden; transition: border-color .25s, transform .2s;
}
.group-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.group-title {
  padding: 10px 16px; font-size: 12px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gold);
  background: rgba(245,166,35,.07); border-bottom: 1px solid rgba(245,166,35,.1);
  display: flex; align-items: center; gap: 8px;
}
.group-title::before { content: ''; width: 3px; height: 12px; background: var(--gold); border-radius: 2px; }

.group-match { border-bottom: 1px solid var(--border); }
.group-match:last-child { border-bottom: none; }
.group-match.live { background: rgba(239,68,68,.04); }
.group-match.finished { opacity: .82; }
.group-match-link { display: block; padding: 9px 16px 7px; color: var(--text); }
.group-match-link:hover { background: var(--glass); }
.gm-side { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.gm-side .flag { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.gm-team { flex: 1; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-num { font-size: 15px; font-weight: 900; color: var(--gold); min-width: 18px; text-align: center; }
.gm-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 0 16px 9px;
}
.gm-date { font-size: 10px; color: var(--text3); font-weight: 600; }
.gm-foot .bkt-pron { margin-left: auto; }
.gm-foot .bkt-mypron { margin-left: auto; }

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 80px 20px;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r2);
}
.empty-icon { font-size: 64px; display: block; margin-bottom: 20px; }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--text2); margin-bottom: 8px; }
.empty-state p { color: var(--text3); font-size: 14px; }

/* ══════════════════════════════════════════════════════════════
   PARTIDO DETAIL
══════════════════════════════════════════════════════════════ */
.partido-page { max-width: 860px; margin: 0 auto; }

.partido-hero {
  position: relative; overflow: hidden;
  border-radius: 20px; margin-bottom: 24px;
  border: 1px solid var(--border);
}
.partido-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0e1f42 0%, #071024 50%, #0a0d1a 100%);
}
.partido-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,166,35,.12), transparent 60%);
}
.partido-hero.live .partido-hero-bg {
  background: linear-gradient(160deg, #1f0a0a 0%, #120407 50%, #0a0d1a 100%);
}
.partido-hero.live .partido-hero-bg::after {
  background: radial-gradient(ellipse at 50% 0%, rgba(239,68,68,.15), transparent 60%);
}
.partido-hero-content { position: relative; z-index: 1; padding: 32px 28px 28px; }

.partido-meta-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.partido-fase-pill {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold); background: rgba(245,166,35,.12);
  border: 1px solid rgba(245,166,35,.2); padding: 4px 14px; border-radius: 20px;
}

.partido-scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px; margin-bottom: 24px;
}
.team-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.team-flag-hero { font-size: 52px; line-height: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.team-name-hero {
  font-size: 16px; font-weight: 800; text-align: center; letter-spacing: -.3px;
  line-height: 1.2;
}
.score-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.score-display {
  font-size: 56px; font-weight: 900; letter-spacing: -2px;
  background: linear-gradient(135deg, #fff, var(--text2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.score-display.vs-display {
  font-size: 28px; font-weight: 400; color: var(--text3);
  -webkit-text-fill-color: var(--text3);
}
.score-pen { font-size: 12px; color: var(--text2); font-weight: 600; }

.partido-venue {
  text-align: center; font-size: 12px; color: var(--text3); font-weight: 500;
}
.partido-venue span { color: var(--text2); }

/* ── Partidos sections ──────────────────────────────────────── */
.section-card {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border); border-radius: var(--r2);
  padding: 24px; margin-bottom: 20px;
}
.section-card h3 {
  font-size: 15px; font-weight: 700; letter-spacing: -.2px;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.count-badge {
  font-size: 11px; font-weight: 700; color: var(--text3);
  background: var(--glass2); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 10px;
}

/* Pronóstico form */
.pron-form-grid {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.pron-team-label { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pron-input-lg {
  width: 68px; text-align: center;
  background: rgba(255,255,255,.06); border: 2px solid var(--border2);
  color: var(--text); padding: 12px 8px; border-radius: 12px;
  font-size: 28px; font-weight: 900; font-family: inherit;
  transition: all .2s;
}
.pron-input-lg:focus { outline: none; border-color: var(--gold); background: rgba(245,166,35,.06); }
.pron-dash { font-size: 24px; color: var(--text3); font-weight: 800; }

.mi-pron-result {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 24px; border-radius: var(--r2);
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
}
.mi-pron-score { font-size: 36px; font-weight: 900; color: var(--gold); letter-spacing: -1px; }
.mi-pron-pts { display: flex; flex-direction: column; gap: 2px; }
.mi-pron-pts-label { font-size: 13px; font-weight: 700; }
.mi-pron-pts-sub { font-size: 11px; color: var(--text3); }
.mi-pron-result.pts-3 { background: rgba(245,158,11,.07); border-color: rgba(245,158,11,.25); }
.mi-pron-result.pts-3 .mi-pron-pts-label { color: var(--gold); }
.mi-pron-result.pts-1 { background: var(--green-dim); border-color: rgba(34,197,94,.25); }
.mi-pron-result.pts-1 .mi-pron-pts-label { color: var(--green); }
.mi-pron-result.pts-0 { background: var(--red-dim); border-color: rgba(239,68,68,.2); }
.mi-pron-result.pts-0 .mi-pron-pts-label { color: var(--red); }

/* Pronosticos table */
.pron-table-wrap { overflow-x: auto; }
.pron-table { width: 100%; border-collapse: collapse; }
.pron-table th {
  text-align: left; padding: 8px 14px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text3);
  border-bottom: 1px solid var(--border);
}
.pron-table td {
  padding: 12px 14px; font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.03);
  transition: background .15s;
}
.pron-table tr:hover td { background: var(--glass); }
.pron-table .pron-score-cell { font-size: 16px; font-weight: 800; color: var(--gold); }
.pron-table .pts-cell { text-align: center; }

.pts-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 13px; font-weight: 800;
}
.pts-chip.p3 { background: rgba(245,158,11,.15); color: var(--gold); border: 1px solid rgba(245,158,11,.35); }
.pts-chip.p1 { background: var(--green-dim); color: var(--green); border: 1px solid rgba(34,197,94,.3); }
.pts-chip.p0 { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239,68,68,.2); }

.you-tag {
  display: inline-block; background: linear-gradient(135deg, var(--gold), #e8851a);
  color: #000; font-size: 9px; font-weight: 800; letter-spacing: .5px;
  padding: 1px 6px; border-radius: 4px; margin-left: 6px; text-transform: uppercase;
}
.my-row td { background: rgba(245,166,35,.04) !important; }
.row-exact td { background: rgba(245,158,11,.06) !important; }
.row-correct td { background: rgba(34,197,94,.04) !important; }
.row-wrong td { background: rgba(239,68,68,.03) !important; }

/* Canales TV */
.canales-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-top: 12px;
}
.canales-label { font-size: 11px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.canal-btn {
  background: var(--blue-dim); color: #93c5fd;
  border: 1px solid rgba(59,130,246,.3);
  padding: 4px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; transition: all .2s;
}
.canal-btn:hover { background: rgba(59,130,246,.25); color: #bfdbfe; opacity: 1; }

.back-link { margin-top: 24px; }
.back-link a { color: var(--text3); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.back-link a:hover { color: var(--text); opacity: 1; }
.text-muted { color: var(--text3); font-size: 13px; }

/* ══════════════════════════════════════════════════════════════
   TABLA POSICIONES
══════════════════════════════════════════════════════════════ */
.tabla-hero {
  background: linear-gradient(160deg, #0e1f42, #071024);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 32px 28px; margin-bottom: 28px; text-align: center;
  position: relative; overflow: hidden;
}
.tabla-hero::before {
  content: '🏆'; position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  font-size: 80px; opacity: .08;
}
.tabla-hero h2 {
  font-size: 28px; font-weight: 900; letter-spacing: -.5px; margin-bottom: 4px;
  background: linear-gradient(135deg, var(--gold), #fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.tabla-hero p { color: var(--text3); font-size: 13px; }

.tabla-card {
  background: rgba(255,255,255,.025); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden; margin-bottom: 24px;
}
.tabla-pos { width: 100%; border-collapse: collapse; }
.tabla-pos thead tr {
  background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border2);
}
.tabla-pos th {
  padding: 12px 16px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--text3); text-align: left;
}
.tabla-pos th.center { text-align: center; }
.tabla-pos td {
  padding: 0; border-bottom: 1px solid rgba(255,255,255,.03);
}
.tabla-pos tr:last-child td { border-bottom: none; }

.tabla-row-inner {
  display: flex; align-items: center; padding: 14px 16px; gap: 0;
  transition: background .15s;
}
.tabla-pos tr:hover .tabla-row-inner { background: var(--glass); }

.rank-pos { width: 40px; text-align: center; font-size: 18px; flex-shrink: 0; }
.rank-pos.num { font-size: 14px; font-weight: 700; color: var(--text3); }

.rank-name { flex: 1; font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.rank-pts { width: 60px; text-align: center; font-size: 22px; font-weight: 900; color: var(--gold); }
.rank-stat { width: 70px; text-align: center; font-size: 13px; color: var(--text2); }

.rank-1 .tabla-row-inner { background: rgba(245,158,11,.06); }
.rank-2 .tabla-row-inner { background: rgba(148,163,184,.04); }
.rank-3 .tabla-row-inner { background: rgba(180,83,9,.05); }
.my-rank .tabla-row-inner { outline: 1px solid rgba(245,166,35,.25); }

.legend-card {
  background: rgba(255,255,255,.02); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 20px 24px;
}
.legend-card h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); margin-bottom: 14px; }
.legend-items { display: flex; gap: 24px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }

/* ══════════════════════════════════════════════════════════════
   AUTH PAGES
══════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse at 30% 50%, rgba(14,31,66,.8), transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(6,10,28,.9), transparent 60%),
              var(--bg);
}
.auth-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border2); border-radius: 24px;
  padding: 48px 44px; width: 100%; max-width: 460px;
  box-shadow: var(--shadow2), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
}
.auth-logo {
  text-align: center; margin-bottom: 36px;
}
.auth-logo-icon { font-size: 52px; display: block; margin-bottom: 14px; }
.auth-logo h1 {
  font-size: 26px; font-weight: 900; letter-spacing: -.5px;
  background: linear-gradient(135deg, var(--gold), #fff 60%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.auth-logo p { color: var(--text3); font-size: 13px; font-weight: 500; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { color: var(--text3); font-size: 11px; font-weight: 600; white-space: nowrap; }
.auth-alt { text-align: center; margin-top: 24px; color: var(--text3); font-size: 13px; }
.auth-alt a { font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.form-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--text3);
}
.form-input {
  background: rgba(255,255,255,.05); border: 1px solid var(--border2);
  color: var(--text); padding: 11px 14px; border-radius: var(--r);
  font-size: 14px; font-weight: 500; width: 100%; font-family: inherit;
  transition: all .2s;
}
.form-input:focus { outline: none; border-color: var(--gold); background: rgba(245,166,35,.04); box-shadow: 0 0 0 3px rgba(245,166,35,.1); }
.form-input::placeholder { color: var(--text3); }
.form-input select, select.form-input { cursor: pointer; }
.form-row { display: flex; gap: 14px; }
.form-hint { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* Override generic form-group inputs to use form-input style */
.form-group input:not(.pron-input):not(.pron-input-lg),
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.05); border: 1px solid var(--border2);
  color: var(--text); padding: 11px 14px; border-radius: var(--r);
  font-size: 14px; width: 100%; font-family: inherit; transition: all .2s;
}
.form-group input:not(.pron-input):not(.pron-input-lg):focus,
.form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(245,166,35,.04);
  box-shadow: 0 0 0 3px rgba(245,166,35,.1);
}
.form-group label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--text3);
}

/* ══════════════════════════════════════════════════════════════
   ADMIN
══════════════════════════════════════════════════════════════ */
.admin-section { margin-bottom: 36px; }
.admin-section > h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; letter-spacing: -.2px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  background: rgba(255,255,255,.02); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden;
}
.admin-table th {
  text-align: left; padding: 10px 14px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text3);
  background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.03);
  vertical-align: middle;
}
.admin-table tr:hover td { background: var(--glass); }
.admin-table tr:last-child td { border-bottom: none; }
.action-cell { white-space: nowrap; display: flex; gap: 4px; align-items: center; }

.fase-pill {
  background: rgba(245,166,35,.1); color: var(--gold);
  border: 1px solid rgba(245,166,35,.2);
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  white-space: nowrap;
}
.status-pill { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.status-in_play, .status-IN_PLAY { background: var(--red-dim); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.status-finished, .status-FINISHED { background: var(--green-dim); color: #86efac; border: 1px solid rgba(34,197,94,.3); }
.status-scheduled, .status-SCHEDULED, .status-timed, .status-TIMED { background: var(--glass); color: var(--text3); border: 1px solid var(--border); }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.75);
  z-index: 600; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.modal-content {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 20px; padding: 32px; width: 500px; max-width: 95vw;
  box-shadow: var(--shadow2); display: flex; flex-direction: column; gap: 20px;
}
.modal-content h3 { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.modal-actions { display: flex; gap: 10px; margin-top: 4px; }

.admin-form { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }

/* ══════════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-muted { color: var(--text3); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 5px 10px; font-size: 12px; }
  .nav-username { display: none; }

  .auth-card { padding: 32px 24px; }

  .partido-scoreboard { grid-template-columns: 1fr auto 1fr; gap: 12px; }
  .team-flag-hero { font-size: 36px; }
  .team-name-hero { font-size: 13px; }
  .score-display { font-size: 40px; }

  .pron-form-grid { gap: 10px; }
  .pron-team-label { font-size: 12px; }

  .form-row { flex-direction: column; }
  .tabla-pos th.hide-mob, .tabla-pos td.hide-mob { display: none; }
  .legend-items { flex-direction: column; gap: 10px; }

  .container { padding: 20px 14px; }
  .bracket-round { width: 160px; }
}

@media (max-width: 480px) {
  .partido-hero-content { padding: 20px 16px; }
  .score-display { font-size: 32px; }
  .team-flag-hero { font-size: 30px; }
}

/* ══════════════════════════════════════════════════════════════
   PENALES (selector + display)
══════════════════════════════════════════════════════════════ */
.pen-box {
  max-width: 460px; margin: 4px auto 18px; padding: 16px 18px;
  background: rgba(59,130,246,.06); border: 1px solid rgba(59,130,246,.25);
  border-radius: var(--r2);
}
.pen-box-title { font-size: 13px; font-weight: 700; text-align: center; margin-bottom: 14px; }
.pen-bonus {
  display: inline-block; font-size: 10px; font-weight: 800; color: #000;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  padding: 2px 8px; border-radius: 20px; margin-left: 6px; vertical-align: middle;
}
.pen-options { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pen-opt {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 16px; border-radius: var(--r);
  background: rgba(255,255,255,.04); border: 1px solid var(--border2);
  font-size: 13px; font-weight: 600; transition: all .2s;
}
.pen-opt:hover { background: rgba(255,255,255,.07); }
.pen-opt input { accent-color: var(--blue); width: 16px; height: 16px; }
.pen-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-dim); }
.pen-hint { font-size: 11px; color: var(--text3); text-align: center; margin-top: 10px; }

.mi-pron-pen { font-size: 12px; font-weight: 600; color: #93c5fd; margin-top: 4px; }
.pen-pick {
  display: inline-block; font-size: 10px; font-weight: 700; color: #93c5fd;
  background: var(--blue-dim); border: 1px solid rgba(59,130,246,.3);
  padding: 1px 7px; border-radius: 10px; margin-left: 8px;
}

/* chips de puntaje con bonus (2 = correcto+pen, 4 = exacto+pen) */
.pts-chip.p2 { background: var(--green-dim); color: var(--green); border: 1px solid rgba(34,197,94,.4); }
.pts-chip.p4 { background: rgba(245,158,11,.22); color: var(--gold); border: 1px solid var(--gold); }

/* ══════════════════════════════════════════════════════════════
   PERFIL DE JUGADOR
══════════════════════════════════════════════════════════════ */
.clickable-row { cursor: pointer; transition: background .15s; }
.clickable-row:hover .tabla-row-inner,
.clickable-row:hover td { background: rgba(245,166,35,.06); }

.jugador-hero {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(160deg, #0e1f42, #071024);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 24px 28px; margin-bottom: 20px;
}
.jugador-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), #e8591a);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #000;
}
.jugador-info { flex: 1; }
.jugador-info h3 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.jugador-pos { font-size: 13px; color: var(--text2); margin-top: 4px; }
.jugador-total { text-align: center; }
.jt-num { font-size: 40px; font-weight: 900; color: var(--gold); line-height: 1; }
.jt-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); }

.jugador-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px;
}
.stat-box {
  background: rgba(255,255,255,.025); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 16px 12px; text-align: center;
}
.stat-box .stat-num { font-size: 26px; font-weight: 900; }
.stat-box .stat-lbl { font-size: 11px; color: var(--text3); margin-top: 2px; }
.stat-box.gold .stat-num { color: var(--gold); }
.stat-box.green .stat-num { color: var(--green); }
.stat-box.red .stat-num { color: var(--red); }

.ultima-act {
  background: var(--blue-dim); border: 1px solid rgba(59,130,246,.25);
  border-radius: var(--r); padding: 12px 18px; font-size: 13px; color: #93c5fd;
}
.ultima-act strong { color: #bfdbfe; }

.jugador-pron-table .jp-match { display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.jp-fase { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--gold); font-weight: 700; }
.jp-teams { font-size: 13px; font-weight: 600; }
.jp-vs { color: var(--text3); font-weight: 400; font-size: 11px; }
.jugador-pron-table td { vertical-align: middle; }

@media (max-width: 768px) {
  .jugador-stats { grid-template-columns: repeat(3, 1fr); }
  .jugador-hero { flex-wrap: wrap; }
}

/* ── Pronósticos ocultos (privacidad pre-partido) ───────────── */
.pron-hidden {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; border-radius: var(--r2);
  background: rgba(255,255,255,.02); border: 1px dashed var(--border2);
}
.pron-hidden-icon { font-size: 32px; flex-shrink: 0; }
.pron-hidden strong { font-size: 14px; }
.pron-hidden p { font-size: 12px; color: var(--text3); margin-top: 3px; }

/* ── Pestaña Hoy ────────────────────────────────────────────── */
.hoy-date { color: var(--text2); font-size: 13px; font-weight: 500; text-transform: capitalize; }
.hoy-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.hoy-card { padding: 18px 20px; }
.hoy-card.live { border-color: rgba(34,197,94,.4); box-shadow: 0 0 0 1px rgba(34,197,94,.15); }
.hoy-card.finished { opacity: .92; }
.hoy-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }

.hoy-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 6px 0 14px; }
.hoy-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.hoy-flag { font-size: 34px; line-height: 1; }
.hoy-tname { font-size: 13px; font-weight: 600; color: var(--text); }
.hoy-team.winner .hoy-tname { color: var(--gold2); }
.hoy-score { font-size: 22px; font-weight: 800; color: var(--text); min-width: 64px; text-align: center; }
.hoy-vs { font-size: 15px; font-weight: 700; color: var(--text3); letter-spacing: 1px; }
.hoy-pen { font-size: 10px; font-weight: 600; color: var(--text2); margin-top: 2px; }

.hoy-card .canales-row { margin: 4px 0 14px; }
.hoy-pron-form { border-top: 1px solid var(--border); padding-top: 14px; }
.hoy-pron-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 12px; }
.hoy-pron-actions .btn-primary { padding: 9px 26px; }
.hoy-pron-actions .form-hint { font-size: 11px; color: var(--text3); }
.pen-box-hoy { margin-top: 12px; }

.hoy-mypron { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--border); padding-top: 14px; font-size: 13px; color: var(--text2); }
.hoy-mypron strong { color: var(--text); font-size: 15px; }
.hoy-mypron .pen-pick { display: block; font-size: 11px; color: var(--text3); }
.hoy-mypron-pts { font-weight: 700; color: var(--gold2); white-space: nowrap; }
.hoy-mypron.pts-3 .hoy-mypron-pts { color: var(--green); }
.hoy-mypron.pts-0 .hoy-mypron-pts { color: var(--text3); }
.hoy-nopron { border-top: 1px solid var(--border); padding-top: 14px; font-size: 12px; color: var(--text3); text-align: center; }

.hoy-empty { text-align: center; padding: 50px 20px; }
.hoy-empty-icon { font-size: 52px; margin-bottom: 10px; }
.hoy-empty h3 { font-size: 18px; margin-bottom: 6px; }
.hoy-empty p { color: var(--text2); font-size: 13px; }
