/* ============================================================
   FIFA World Cup 2026 — Custom Theme over Bootstrap 5
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy:         #003087;
  --navy-light:   #0D40B0;
  --navbar-bg1:   #1352BE;
  --navbar-bg2:   #1A54C5;
  --fifa-blue:    #1A54C5;
  --gold:         #FEBC12;
  --gold-dark:    #E0A800;
  --green:        #00BFB3;
  --green-dark:   #009E93;
  --red:          #BD2229;
  --red-dark:     #9E1B21;
  --campeon:      #F1677F;
  --campeon-dark: #D85070;
  --card-bg:      #0B3EA0;
  --card-border:  rgba(254,188,18,.18);
  --text-sub:     #8BAFC8;
  --input-bg:     #002070;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  background-color: var(--navy);
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

/* ── Navbar ── */
.navbar-wc {
  background: linear-gradient(135deg, var(--navbar-bg1) 0%, var(--navbar-bg2) 100%);
  border-bottom: 2px solid var(--gold);
  padding: 0 1.5rem;
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 900;
}
.navbar-brand-wc {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.navbar-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.navbar-brand-wc span { color: var(--gold); }
.badge-admin {
  font-size: .55rem;
  background: var(--red);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: middle;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

/* ── Auth pages ── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #001F5C 0%, #003087 50%, #001A5C 100%);
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}
.auth-wrap::before {
  content: "⚽";
  font-size: 22rem;
  position: absolute;
  opacity: .03;
  right: -4rem;
  bottom: -5rem;
  pointer-events: none;
  user-select: none;
}
.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo .trophy { display: block; margin: 0 auto .75rem; height: 110px; width: auto; object-fit: contain; }
.auth-logo h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 3px;
  color: #fff;
  margin: 0;
}
.auth-logo h1 span { color: var(--gold); }
.auth-logo p { color: var(--text-sub); font-size: .9rem; margin: .25rem 0 0; }

/* ── Form controls ── */
.form-label { color: #cbd5e1; font-size: .85rem; font-weight: 500; margin-bottom: .3rem; }
.form-control, .form-select {
  background: var(--input-bg) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: #e2e8f0 !important;
  border-radius: 8px !important;
  padding: .6rem .9rem !important;
  transition: border-color .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(245,184,0,.15) !important;
  outline: none;
}
.form-control::placeholder { color: #4a5568 !important; }
.form-select option { background: var(--input-bg); }

/* ── Buttons ── */
.btn-fifa-green {
  background: var(--green);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  padding: .6rem 1.2rem;
  transition: background .2s, transform .1s;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  font-size: .95rem;
}
.btn-fifa-green:hover  { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn-fifa-green:active { transform: translateY(0); }
.btn-fifa-green:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-fifa-gold {
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-weight: 700;
  border-radius: 8px;
  padding: .6rem 1.2rem;
  transition: background .2s, transform .1s;
  cursor: pointer;
  display: inline-block;
  font-size: .95rem;
}
.btn-fifa-gold:hover  { background: var(--gold-dark); color: var(--navy); transform: translateY(-1px); }
.btn-fifa-gold:active { transform: translateY(0); }

.btn-fifa-campeon {
  background: var(--campeon);
  color: #fff;
  border: none;
  font-weight: 700;
  border-radius: 8px;
  padding: .6rem 1.2rem;
  transition: background .2s, transform .1s;
  cursor: pointer;
  display: inline-block;
  font-size: .95rem;
}
.btn-fifa-campeon:hover  { background: var(--campeon-dark); color: #fff; transform: translateY(-1px); }
.btn-fifa-campeon:active { transform: translateY(0); }
.btn-fifa-campeon:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-fifa-outline {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid rgba(255,255,255,.15);
  font-weight: 500;
  border-radius: 8px;
  padding: .5rem 1rem;
  transition: all .2s;
  cursor: pointer;
  font-size: .9rem;
  text-decoration: none;
  display: inline-block;
}
.btn-fifa-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-danger-sm {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
  font-weight: 600;
  border-radius: 8px;
  padding: .4rem .85rem;
  font-size: .84rem;
  transition: all .2s;
  cursor: pointer;
}
.btn-danger-sm:hover { background: var(--red); color: #fff; }

/* ── Alert / Error ── */
.alert-wc {
  background: rgba(232,25,44,.12);
  border: 1px solid rgba(232,25,44,.35);
  color: #fca5a5;
  border-radius: 8px;
  padding: .65rem .9rem;
  font-size: .88rem;
  display: none;
  margin-bottom: 1rem;
}
.alert-wc.visible { display: block; }

/* ── Auth footer ── */
.auth-footer { text-align: center; margin-top: 1.25rem; color: var(--text-sub); font-size: .88rem; }
.auth-footer a { color: var(--gold); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Google sign-in ── */
.auth-divider { display:flex; align-items:center; margin: 1rem 0; color:var(--text-sub); font-size:.8rem; letter-spacing:.5px; }
.auth-divider::before, .auth-divider::after { content:""; flex:1; border-top:1px solid rgba(255,255,255,.12); }
.auth-divider span { padding:0 .85rem; }
#google-btn-container { width:100%; }
#google-btn-container iframe { width:100% !important; }

/* ── Page wrap ── */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.page-header { margin-bottom: 2rem; }
.page-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: #fff;
  margin: 0;
}
.page-header p { color: var(--text-sub); margin: .3rem 0 0; font-size: .92rem; }

/* ── Champion card ── */
.campeon-card {
  background: linear-gradient(135deg, #0B3A9E 0%, #0E44B8 100%);
  border: 1px solid rgba(254,188,18,.3);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.campeon-trophy { width: 120px; height: 120px; object-fit: contain; flex-shrink: 0; }
.campeon-info { flex: 1; min-width: 160px; }
.campeon-info h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin: 0 0 .2rem;
}
.campeon-info p { color: var(--text-sub); font-size: .88rem; margin: 0; }
.campeon-controls { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.campeon-controls .form-select { min-width: 190px; }

/* ── Stats bar ── */
.stats-bar-wrap {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: .8rem 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.stats-bar-item { display: flex; flex-direction: column; align-items: center; min-width: 54px; }
.stats-bar-num { font-family: 'Bebas Neue', sans-serif; font-size: 1.7rem; line-height: 1; color: #fff; }
.stats-bar-num.gold  { color: var(--gold); }
.stats-bar-num.green { color: #4ade80; }
.stats-bar-num.amber { color: #fb923c; }
.stats-bar-label { font-size: .6rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-sub); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; margin-top: .1rem; white-space: nowrap; }
.stats-bar-divider { width: 1px; height: 38px; background: rgba(255,255,255,.09); flex-shrink: 0; }
.stats-bar-progress-wrap { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; min-width: 130px; }
.stats-bar-progress-label { font-size: .65rem; color: var(--text-sub); }
.stats-progress { height: 6px; background: rgba(255,255,255,.08); border-radius: 10px; width: 100%; overflow: hidden; }
.stats-progress-bar { height: 100%; border-radius: 10px; transition: width .6s ease; }

/* ── Phase tabs ── */
.phase-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.phase-tab {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-sub);
  border-radius: 20px;
  padding: .35rem 1rem;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.phase-tab:hover  { border-color: var(--gold); color: var(--gold); }
.phase-tab.active { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(189,34,41,.8); color: #fff;
  font-family: 'Inter', sans-serif; font-size: .6rem; font-weight: 700;
  border-radius: 20px; padding: 0 .38rem; min-width: 16px; height: 16px;
  margin-left: .3rem; vertical-align: middle; line-height: 1;
}
.phase-tab.active .tab-badge { background: rgba(0,0,0,.25); }
.filter-tab {
  border-style: dashed !important;
  color: #94a3b8 !important;
}
.filter-tab.active { background: rgba(99,179,237,.12) !important; border-color: #63b3ed !important; color: #63b3ed !important; border-style: solid !important; }

/* Scroll to top */
.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px;
  background: var(--gold); border: none; border-radius: 50%;
  color: var(--navy); font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(245,184,0,.4);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 500;
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.scroll-top-btn:hover { background: var(--gold-dark); transform: translateY(-2px) !important; }


/* Skeleton placeholder dark theme */
.placeholder { background-color: rgba(255,255,255,.1) !important; }

/* ── Match stadium photo ── */
.match-stadium {
  height: 190px;
  position: relative;
  overflow: hidden;
  margin: -1.25rem -1.25rem 0;
  border-radius: 13px 13px 0 0;
  flex-shrink: 0;
}
.match-stadium img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform .5s ease;
}
.match-card:hover .match-stadium img { transform: scale(1.06); }
.match-stadium-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6,14,28,1) 0%,
    rgba(6,14,28,.82) 25%,
    rgba(6,14,28,.25) 60%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: .7rem 1rem;
  gap: .25rem;
}
.match-phase-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--gold);
  opacity: .9;
  margin-bottom: 0;
}
.match-stadium-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

/* ── Match grid ── */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.35rem;
}

/* ── Match card ── */
.match-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.25rem;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.match-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  border-color: rgba(245,184,0,.28);
}
.match-card.finalizado { border-color: rgba(245,184,0,.45); }
.match-card.apostado {
  border-color: rgba(0,132,61,.35);
}
.match-card.apostado::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--green);
  border-radius: 16px 0 0 16px;
}

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
  padding: .9rem 0 .65rem;
  margin-bottom: 0;
}
.team-side { text-align: center; }
.team-flag { font-size: 2.35rem; display: block; margin-bottom: .3rem; }
.team-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.2;
}
.vs-center { text-align: center; }
.vs-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--text-sub);
  letter-spacing: 2px;
}
.result-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 3px;
  line-height: 1;
}
.match-date {
  text-align: center;
  color: var(--text-sub);
  font-size: .78rem;
  margin-bottom: .75rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* ── Bet inputs ── */
.bet-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.bet-input {
  background: var(--input-bg) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #fff !important;
  border-radius: 8px !important;
  width: 64px;
  height: 44px;
  text-align: center;
  font-size: 1.3rem;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}
.bet-input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(245,184,0,.15) !important;
  outline: none;
}
.bet-input:disabled { opacity: .55; }
.bet-separator {
  color: var(--text-sub);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
}
.match-closed-msg { text-align: center; color: var(--text-sub); font-size: .8rem; padding: .4rem 0; }

/* ── Locked card ── */
.card-locked {
  opacity: .65;
  filter: saturate(.4);
}
.card-locked:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--card-border) !important;
}
.bet-locked-section {
  background: rgba(0,0,0,.3) !important;
  border-color: rgba(255,255,255,.06) !important;
}
.bet-locked-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--text-sub);
  font-size: .82rem;
  padding: .5rem 0;
}
.bet-locked-msg i { color: rgba(255,255,255,.3); font-size: .9rem; }
.bet-locked-msg strong { color: #e2e8f0; }

/* ── Points badge ── */
.pts-badge {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  padding: .25rem .7rem;
  border-radius: 20px;
  font-size: .95rem;
  text-align: center;
}
.pts-3 { background: rgba(245,184,0,.15); color: var(--gold); border: 1px solid rgba(245,184,0,.4); }
.pts-1 { background: rgba(0,132,61,.15); color: #4ade80; border: 1px solid rgba(0,132,61,.4); }
.pts-0 { background: rgba(232,25,44,.12); color: #f87171; border: 1px solid rgba(232,25,44,.3); }

/* ── Prediction buttons (1X2) ── */
.pred-btns {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.pred-btn {
  flex: 1 1 auto;
  padding: .5rem .75rem;
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: .5rem;
  background: rgba(255,255,255,.06);
  color: #e2e8f0;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  text-align: center;
  white-space: nowrap;
}
.pred-btn:hover {
  background: rgba(245,184,0,.15);
  border-color: rgba(245,184,0,.5);
  color: var(--gold);
}
.pred-btn.active {
  background: rgba(245,184,0,.22);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 8px rgba(245,184,0,.25);
}

/* ── Locked prediction tag ── */
.pred-tag {
  display: inline-block;
  padding: .3rem .7rem;
  border-radius: .4rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.pred-tag.pred-L { background: rgba(74,222,128,.12); color: #4ade80; border: 1px solid rgba(74,222,128,.35); }
.pred-tag.pred-E { background: rgba(245,184,0,.12); color: var(--gold); border: 1px solid rgba(245,184,0,.35); }
.pred-tag.pred-V { background: rgba(96,165,250,.12); color: #60a5fa; border: 1px solid rgba(96,165,250,.35); }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-sub);
  grid-column: 1 / -1;
}
.empty-state .empty-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.empty-state h3 { color: #94a3b8; font-size: 1.1rem; margin: 0; }
.empty-state p { font-size: .88rem; margin: .5rem 0 0; }

/* ── Ranking ── */
.ranking-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
}
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table thead th {
  background: rgba(245,184,0,.08);
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .85rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(245,184,0,.15);
  white-space: nowrap;
}
.ranking-table tbody tr { border-bottom: 1px solid rgba(255,255,255,.05); transition: background .15s; }
.ranking-table tbody tr:hover { background: rgba(255,255,255,.03); }
.ranking-table tbody tr.yo-row { background: rgba(245,184,0,.06); }
.ranking-table tbody td { padding: .8rem 1rem; font-size: .92rem; }

.pos-medal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  font-family: 'Bebas Neue', sans-serif; font-size: 1rem; font-weight: 700;
}
.pos-1 { background: linear-gradient(135deg,#F5B800,#ffdd00); color: #1a1a00; }
.pos-2 { background: linear-gradient(135deg,#94a3b8,#cbd5e1); color: #1a1a1a; }
.pos-3 { background: linear-gradient(135deg,#b45309,#d97706); color: #fff; }
.pos-n { background: rgba(255,255,255,.08); color: var(--text-sub); }

.yo-tag {
  background: var(--fifa-blue);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: .4rem;
  vertical-align: middle;
  letter-spacing: .5px;
}
.pts-total { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: var(--gold); letter-spacing: 1px; }
.legend-bar {
  text-align: right; color: var(--text-sub); font-size: .78rem;
  padding: .75rem 1rem; border-top: 1px solid rgba(255,255,255,.05);
}

/* ── Professional upgrades ── */

/* Page header gold accent underline */
.page-header { position: relative; }
.page-header::after {
  content: '';
  display: block;
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
  margin-top: .5rem;
}

/* Betting section wrapper */
.bet-section {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: .85rem .85rem .7rem;
  margin-top: auto;
  padding-top: .85rem;
}

/* Attempt dots */
.attempt-dots { display: flex; gap: .35rem; justify-content: center; align-items: center; margin-bottom: .6rem; }
.adot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  transition: all .2s;
}
.adot.used {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 6px rgba(245,184,0,.55);
}

/* Points corner badge */
.pts-badge-corner {
  position: absolute;
  top: .65rem; right: .65rem;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  padding: .18rem .65rem;
  border-radius: 20px;
  font-size: .82rem;
  z-index: 2;
}

/* VS pill */
.vs-pill {
  display: inline-block;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px;
  padding: .25rem .65rem;
  min-width: 52px;
  text-align: center;
}

/* Result score with glow */
.result-score {
  background: rgba(245,184,0,.09);
  border: 1px solid rgba(245,184,0,.2);
  border-radius: 8px;
  padding: .2rem .6rem;
  min-width: 56px;
  text-align: center;
  box-shadow: 0 0 14px rgba(245,184,0,.15);
}

/* Group chip (no stadium) */
.match-group-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(245,184,0,.1);
  border: 1px solid rgba(245,184,0,.22);
  border-radius: 6px;
  padding: .22rem .7rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: .2rem;
}

/* Match card status border accents */
.match-card.apostado       { border-color: rgba(0,132,61,.35); }
.match-card.apostado::after { background: var(--green); }
.match-card.finalizado     { border-color: rgba(245,184,0,.45); }

/* Ranking podium rows */
tr.podium-1 { background: rgba(245,184,0,.09) !important; }
tr.podium-2 { background: rgba(148,163,184,.06) !important; }
tr.podium-3 { background: rgba(180,83,9,.07) !important; }

/* Ranking avatar */
.rank-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.12); flex-shrink: 0; }
.rank-avatar-default {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(245,184,0,.1);
  border: 2px solid rgba(255,255,255,.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0;
}
.top-ring-1 { border-color: var(--gold) !important; box-shadow: 0 0 0 2px rgba(245,184,0,.25); }
.top-ring-2 { border-color: #94a3b8 !important; box-shadow: 0 0 0 2px rgba(148,163,184,.2); }
.top-ring-3 { border-color: #d97706 !important; box-shadow: 0 0 0 2px rgba(217,119,6,.25); }

/* Points total pill */
.pts-total {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem; color: var(--gold); letter-spacing: 1px;
  background: rgba(245,184,0,.1);
  border-radius: 8px;
  padding: .05rem .55rem;
  display: inline-block;
  white-space: nowrap;
}

/* Rank nombre wrap */
.rank-nombre-wrap { display: flex; align-items: center; gap: .6rem; }

/* ── Site Footer ── */
.site-footer {
  background: linear-gradient(135deg, #001F5C 0%, #003087 100%);
  border-top: 2px solid rgba(254,188,18,.18);
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1.1fr 1fr 1.1fr;
  gap: 2.5rem;
}
.footer-logo {
  height: 44px; width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  color: #fff;
  line-height: 1.2;
}
.footer-brand-name span { color: var(--gold); }
.footer-tagline {
  color: var(--text-sub);
  font-size: .82rem;
  line-height: 1.55;
  margin: .75rem 0 .9rem;
}
.footer-host-row {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: 1.15rem;
  flex-wrap: wrap;
}
.footer-host-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-transform: uppercase;
  background: rgba(245,184,0,.1);
  border: 1px solid rgba(245,184,0,.2);
  border-radius: 4px;
  padding: .1rem .45rem;
  margin-left: .2rem;
}
.footer-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin: 0 0 .9rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid rgba(245,184,0,.15);
}
.footer-info-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .4rem;
}
.footer-info-list li {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #94a3b8;
  font-size: .8rem;
  line-height: 1.3;
}
.footer-info-list li i { color: var(--gold); font-size: .8rem; flex-shrink: 0; }
.footer-links-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .1rem;
}
.footer-links-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: .84rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .3rem 0;
  border-radius: 6px;
  transition: color .18s;
}
.footer-links-list a:hover { color: var(--gold); }
.footer-links-list a i { font-size: .82rem; width: 1rem; text-align: center; flex-shrink: 0; }
.footer-social-row {
  display: flex; gap: .45rem; margin-top: 1.1rem; flex-wrap: wrap;
}
.footer-social-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #94a3b8;
  font-size: 1rem;
  text-decoration: none;
  transition: all .2s;
  flex-shrink: 0;
}
.footer-social-btn:hover {
  background: var(--gold); border-color: var(--gold); color: var(--navy);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1rem 1.5rem;
}
.footer-bottom-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: space-between; align-items: center;
}
.footer-copy { font-size: .72rem; color: rgba(255,255,255,.3); }
.footer-disclaimer {
  font-size: .68rem; color: rgba(255,255,255,.18);
  text-align: right; max-width: 460px;
}

@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1rem 1.5rem; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .footer-disclaimer { text-align: left; max-width: 100%; }
}

/* ── Match detail modal ── */
.match-modal-content {
  background: var(--card-bg);
  border: 1px solid rgba(245,184,0,.2);
  border-radius: 18px;
  overflow: hidden;
  color: #e2e8f0;
}
.match-modal-hero {
  height: 220px;
  background: linear-gradient(135deg, #001F5C 0%, #003087 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}
.match-modal-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,14,28,.96) 0%, rgba(6,14,28,.25) 55%, rgba(0,0,0,.3) 100%);
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: .9rem 1rem .85rem;
}
.match-modal-close {
  align-self: flex-end;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; cursor: pointer; transition: background .2s;
}
.match-modal-close:hover { background: rgba(232,25,44,.75); border-color: var(--red); }
.match-modal-hero-bottom { display: flex; flex-direction: column; gap: .3rem; }
.match-modal-phase-chip {
  display: inline-flex; align-items: center;
  background: rgba(245,184,0,.2); border: 1px solid rgba(245,184,0,.45);
  border-radius: 5px; padding: .15rem .65rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem; font-weight: 700; letter-spacing: 2px;
  color: var(--gold); text-transform: uppercase; width: fit-content;
}
.match-modal-venue {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .88rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,.8);
}
.match-modal-teams-row {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 1rem; align-items: center;
  padding: 1.75rem 1.5rem 1.2rem;
}
.modal-team-block { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.modal-team-flag { font-size: 3.8rem; line-height: 1; display: block; }
.modal-team-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 1.05rem; letter-spacing: 1px;
  text-transform: uppercase; color: #e2e8f0; line-height: 1.2;
}
.modal-center-block { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 110px; }
.modal-final-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem; color: var(--gold); letter-spacing: 4px; line-height: 1;
  background: rgba(245,184,0,.09); border: 1px solid rgba(245,184,0,.22);
  border-radius: 10px; padding: .15rem .9rem;
  box-shadow: 0 0 22px rgba(245,184,0,.15);
}
.modal-final-label {
  font-family: 'Barlow Condensed', sans-serif; font-size: .62rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 700;
}
.modal-vs-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.1rem; color: var(--text-sub); letter-spacing: 3px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px; padding: .25rem .9rem;
}
.modal-match-date { color: var(--text-sub); font-size: .78rem; }
.modal-countdown {
  display: flex; align-items: center; gap: .4rem;
  flex-wrap: wrap; justify-content: center; margin-top: .1rem;
}
.countdown-label {
  font-size: .65rem; color: var(--text-sub);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 1px; text-transform: uppercase; margin-right: .1rem;
}
.countdown-unit {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.55rem; color: #fff; line-height: 1;
  background: rgba(245,184,0,.1); border: 1px solid rgba(245,184,0,.2);
  border-radius: 6px; padding: .08rem .45rem; min-width: 42px; text-align: center;
}
.countdown-unit small { font-size: .55rem; color: var(--gold); font-family: 'Inter', sans-serif; display: block; line-height: 1; margin-top: 1px; }
.modal-finished-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(0,132,61,.12); border: 1px solid rgba(0,132,61,.3);
  border-radius: 20px; padding: .22rem .85rem;
  font-family: 'Barlow Condensed', sans-serif; font-size: .72rem;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #4ade80;
}
.modal-live-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(232,25,44,.12); border: 1px solid rgba(232,25,44,.35);
  border-radius: 20px; padding: .22rem .85rem;
  font-family: 'Barlow Condensed', sans-serif; font-size: .72rem;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #f87171;
}
.match-modal-bet-section {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1rem 1.5rem 1.3rem;
  background: rgba(0,0,0,.18);
}
.modal-bet-inner {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.modal-bet-label { color: var(--text-sub); font-size: .8rem; display: flex; align-items: center; gap: .35rem; white-space: nowrap; }
.modal-bet-score {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: #fff; letter-spacing: 3px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px; padding: .05rem .7rem; line-height: 1.25;
}
.modal-intentos {
  margin-left: auto; color: var(--text-sub); font-size: .74rem;
  display: flex; align-items: center; gap: .3rem;
}
.modal-no-bet {
  color: var(--text-sub); font-size: .84rem;
  display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
}
.modal-no-bet .gold-link { color: var(--gold); text-decoration: none; font-weight: 600; }
.modal-no-bet .gold-link:hover { text-decoration: underline; }

@media (max-width: 575px) {
  .match-modal-hero { height: 165px; }
  .match-modal-teams-row { gap: .5rem; padding: 1.25rem .9rem 1rem; }
  .modal-team-flag { font-size: 2.6rem; }
  .modal-team-name { font-size: .88rem; }
  .modal-final-score { font-size: 2.2rem; padding: .1rem .65rem; }
  .modal-center-block { min-width: 85px; }
  .match-modal-bet-section { padding: .85rem 1rem 1rem; }
}

/* Modal tabs */
.match-modal-tabs {
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 0 1rem;
  background: rgba(0,0,0,.15);
}
.modal-nav-tabs { border: none; gap: 0; }
.modal-nav-tabs .nav-link {
  color: var(--text-sub); border: none;
  border-bottom: 2px solid transparent; border-radius: 0;
  padding: .65rem 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .8rem; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; background: transparent;
  transition: color .2s, border-color .2s;
}
.modal-nav-tabs .nav-link:hover  { color: #e2e8f0; border-bottom-color: rgba(255,255,255,.2); }
.modal-nav-tabs .nav-link.active { color: var(--gold); border-bottom-color: var(--gold); background: transparent; }
.modal-tab-content { min-height: 240px; }

/* Tab 1 — Partido */
.modal-tab-partido { padding: 1.5rem 1.5rem 0; }

/* Tab 2 — Estadio */
.modal-tab-estadio { padding: 1.5rem; }
.modal-estadio-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: .75rem; margin-bottom: 1.1rem;
}
.modal-stat-tile {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: .75rem .9rem;
  display: flex; flex-direction: column; gap: .2rem;
}
.modal-stat-tile i { color: var(--gold); font-size: 1rem; margin-bottom: .2rem; }
.modal-stat-label { font-size: .65rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-sub); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; }
.modal-stat-value { font-size: .92rem; color: #e2e8f0; font-weight: 600; }
.modal-maps-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(66,133,244,.1); border: 1px solid rgba(66,133,244,.35);
  color: #7cb3f4; border-radius: 9px; padding: .55rem 1.1rem;
  font-size: .85rem; font-weight: 600; text-decoration: none;
  transition: all .2s; width: 100%; justify-content: center;
}
.modal-maps-btn:hover { background: rgba(66,133,244,.22); color: #a8d0ff; transform: translateY(-1px); }

/* Tab 3 — Equipos */
.modal-tab-equipos { padding: 1.5rem; }
.modal-equipos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.modal-equipo-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 1.1rem .9rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  transition: border-color .2s;
}
.modal-equipo-flag { font-size: 3rem; line-height: 1; }
.modal-equipo-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; color: #e2e8f0; }
.modal-equipo-nickname { font-size: .72rem; color: rgba(255,255,255,.4); font-style: italic; }
.modal-conf-badge {
  display: inline-block; border-radius: 4px; border: 1px solid;
  font-family: 'Barlow Condensed', sans-serif; font-size: .6rem;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: .1rem .5rem;
}
.modal-equipo-stats { display: flex; flex-direction: column; gap: .3rem; width: 100%; margin-top: .2rem; }
.modal-equipo-stat {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; color: var(--text-sub);
  border-bottom: 1px solid rgba(255,255,255,.05); padding-bottom: .25rem;
}
.modal-equipo-stat:last-child { border-bottom: none; }
.modal-equipo-stat span:last-child { color: #e2e8f0; font-weight: 600; text-align: right; max-width: 60%; }
.modal-equipo-titles { color: var(--gold) !important; }
.modal-team-btn {
  display: inline-flex; align-items: center; gap: .45rem; justify-content: center;
  background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.28);
  color: #4ade80; border-radius: 9px; padding: .45rem .9rem;
  font-size: .78rem; font-weight: 600; text-decoration: none;
  transition: all .2s; width: 100%; margin-top: .4rem;
}
.modal-team-btn:hover { background: rgba(74,222,128,.18); color: #86efac; transform: translateY(-1px); }

@media (max-width: 575px) {
  .modal-estadio-stats { grid-template-columns: 1fr 1fr; }
  .modal-equipos-grid { grid-template-columns: 1fr; gap: .75rem; }
  .modal-equipo-flag { font-size: 2.2rem; }
  .modal-tab-partido, .modal-tab-estadio, .modal-tab-equipos { padding: 1rem; }
}

/* Match card clickable cue */
.match-card { cursor: pointer; }
.match-card input, .match-card button { cursor: auto; }
.match-card button { cursor: pointer; }

/* ── Admin ── */
.admin-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.5rem;
  height: 100%;
}
.admin-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.result-row { display: grid; grid-template-columns: 1fr 28px 1fr; gap: .75rem; align-items: end; }
.result-sep { color: var(--text-sub); font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; text-align: center; padding-bottom: .4rem; }
.msg-ok  { color: #4ade80; font-size: .85rem; margin-top: .6rem; }
.msg-err { color: #f87171; font-size: .85rem; margin-top: .6rem; }

/* ── Seguridad: banner offline ── */
#offline-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9998;
  background: linear-gradient(90deg, #7c2d12, #991b1b);
  color: #fff; font-size: .82rem; font-weight: 700;
  text-align: center; padding: .5rem 1rem;
  letter-spacing: .5px; text-transform: uppercase;
  display: none; align-items: center; justify-content: center; gap: .6rem;
}
#offline-banner.show { display: flex; }

/* ── Seguridad: indicador de sesión ── */
.session-indicator {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .5px;
  color: #4ade80; opacity: .75;
  padding: .25rem .6rem; border-radius: 20px;
  border: 1px solid rgba(74,222,128,.2);
}
.session-indicator.warn { color: #fb923c; border-color: rgba(251,146,60,.2); }

/* ── Toast ── */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: .5rem;
}
.toast-wc {
  min-width: 240px; padding: .75rem 1.1rem; border-radius: 10px;
  font-size: .9rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.4);
  animation: slideIn .3s ease;
}
.toast-success { background: var(--green); color: #fff; }
.toast-error   { background: var(--red); color: #fff; }
@keyframes slideIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }

/* ── Spinner ── */
.spinner-wc {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin .65s linear infinite;
  vertical-align: middle;
  margin-right: .3rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Page fade-in ── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-wrap { animation: pageFadeIn .45s ease both; }

/* ── Card entrance stagger ── */
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.match-card.card-enter { animation: cardEnter .38s ease both; }

/* ── Ranking row stagger ── */
@keyframes rowFadeIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ranking-table tbody tr.row-enter { animation: rowFadeIn .3s ease both; }

/* ── Page header icon ── */
.page-icon {
  font-size: 1.55rem;
  vertical-align: middle;
  margin-right: .4rem;
  color: var(--gold);
  display: inline-block;
}

/* ── Focus states (accessibility) ── */
.phase-tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-fifa-green:focus-visible,
.btn-fifa-gold:focus-visible,
.btn-fifa-outline:focus-visible,
.btn-danger-sm:focus-visible,
.sidebar-logout-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.match-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(245,184,0,.12);
}

/* ── Apostado card glow ── */
.match-card.apostado {
  box-shadow: 0 0 0 1px rgba(0,132,61,.2), 0 4px 20px rgba(0,132,61,.1);
}
.match-card.apostado:hover {
  box-shadow: 0 10px 36px rgba(0,132,61,.2), 0 0 0 1px rgba(0,132,61,.32);
}

/* ── Phase tab active glow ── */
.phase-tab.active { box-shadow: 0 2px 14px rgba(245,184,0,.3); }

/* ── Grupos accordion (centralized from inline styles) ── */
.grupos-featured-label,
.grupos-section-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--text-sub);
  margin: 0 0 .75rem;
  display: flex;
  align-items: center;
}
.grupos-section-label { margin-top: 1.5rem; }
.grupos-featured-grid,
.grupos-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.35rem;
}
/* ── Grupo tabs ── */
.grupo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .75rem 0 1.25rem;
}
.grupo-tab {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: .35rem .75rem;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: #a0b8d0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.grupo-tab:hover {
  background: rgba(245,184,0,.12);
  border-color: rgba(245,184,0,.4);
  color: var(--gold);
}
.grupo-tab.active {
  background: rgba(245,184,0,.18);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 2px 10px rgba(245,184,0,.2);
}
.grupo-panel-hidden { display: none; }
.grupo-panels { min-height: 100px; }

/* ── Ranking page — larger avatar override ── */
.ranking-table .rank-avatar,
.ranking-table .rank-avatar-default {
  width: 44px; height: 44px;
}
.ranking-table .rank-nombre-wrap { display: flex; align-items: center; gap: .55rem; }

/* ── Bet section separator ── */
.bet-section {
  border-top-color: rgba(255,255,255,.12);
}

/* ── Match date polished ── */
.match-date {
  font-size: .79rem;
  letter-spacing: .2px;
}

/* ── Stats bar animated nums ── */
.stats-bar-num { transition: color .3s; }

@media (max-width: 575px) {
  .grupos-featured-grid,
  .grupos-mini-grid { grid-template-columns: 1fr; gap: .85rem; }
}

/* ── Navbar host-country flags ── */
.navbar-hosts {
  display: flex;
  align-items: center;
  gap: .1rem;
  margin-left: .5rem;
}
.navbar-hosts .hflag {
  font-size: 1.15rem;
  line-height: 1;
  opacity: .85;
  transition: opacity .2s, transform .2s;
}
.navbar-hosts .hflag:hover { opacity: 1; transform: scale(1.2); }

/* ── Auth split layout ── */
.auth-split {
  height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.auth-split-carousel {
  flex: 1 1 0;
  position: relative;
  overflow: hidden;
}
.auth-hero-img {
  position: relative;
  width: 100%;
  height: 100%;
}
.auth-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.auth-split-form {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
@media (max-width: 900px) {
  .auth-split { flex-direction: column; height: auto; min-height: 100vh; }
  .auth-split-carousel { flex: 0 0 45vw; min-height: 45vw; max-height: 50vh; }
  .auth-split-form { flex: 1; width: 100%; min-height: 0; }
}
@media (max-width: 576px) {
  .auth-split-carousel { flex: 0 0 52vw; min-height: 52vw; max-height: 55vw; }
}

/* ── FIFA Carousel (auth) ── */
.fifa-carousel,
.fifa-carousel .carousel-inner { height: 100%; }

/* Custom fade: stack all items via absolute, reveal active via opacity */
.fifa-carousel .carousel-item {
  position: absolute !important;
  inset: 0;
  height: 100% !important;
  opacity: 0;
  transition: opacity 0.65s ease-in-out;
}
.fifa-carousel .carousel-item.active { opacity: 1; }

/* Image-based slide */
.carousel-slide-img {
  height: 100%;
  position: relative;
  overflow: hidden;
}
.carousel-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.carousel-slide-img .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 2rem 1.75rem;
}
.slide-overlay-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  letter-spacing: 3px;
  color: #fff;
  line-height: 1;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.slide-overlay-title span { color: var(--gold); }
.slide-overlay-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin: .3rem 0 0;
}
.slide-overlay-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .2rem .65rem;
  border-radius: 4px;
  margin-bottom: .6rem;
}

/* CSS-only fallback slides (used when no image) */
.carousel-slide {
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Slide 1 — Logo 26 */
.slide-logo {
  background: #000;
}
.slide-logo::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(245,184,0,.18) 0%, transparent 70%);
}
.slide-26 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(7rem, 16vw, 12rem);
  line-height: .85;
  color: #111;
  letter-spacing: -4px;
  position: relative;
  z-index: 1;
  text-shadow: none;
  -webkit-text-stroke: 2px rgba(245,184,0,.3);
}
.slide-trophy-center {
  position: absolute;
  font-size: clamp(5rem, 12vw, 9rem);
  z-index: 2;
  filter: drop-shadow(0 0 30px rgba(245,184,0,.6));
  animation: floatTrophy 3s ease-in-out infinite;
}
@keyframes floatTrophy {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.slide-fifa-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 8px;
  position: relative;
  z-index: 2;
  margin-top: .5rem;
}
.slide-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  z-index: 2;
  margin-top: .5rem;
}

/* Slide 2 — Host countries */
.slide-hosts {
  background: linear-gradient(160deg, #1A54C5 0%, #003087 60%, #001F5C 100%);
}
.slide-hosts::before {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
}
.slide-hosts-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 4px;
  color: rgba(255,255,255,.6);
  margin-bottom: .5rem;
  position: relative;
}
.slide-hosts-subtitle {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  line-height: 1;
}
.host-country-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: .75rem 1rem;
  position: relative;
  transition: transform .2s;
  min-width: 90px;
}
.host-flag   { font-size: 2.2rem; display: block; margin-bottom: .3rem; }
.host-name   {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

/* Slide 3 — Sedes */
.slide-sedes {
  background: linear-gradient(160deg, #006B80 0%, #003087 100%);
}
.slide-sedes::after {
  content: "⚽";
  position: absolute;
  font-size: 18rem;
  opacity: .04;
  right: -3rem; bottom: -3rem;
  pointer-events: none;
}
.sedes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
}
.sede-pill {
  background: rgba(0,132,61,.15);
  border: 1px solid rgba(0,132,61,.35);
  border-radius: 20px;
  padding: .3rem .6rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: #4ade80;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sede-pill.canada { background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.3); color: #fca5a5; }
.sede-pill.mexico { background: rgba(245,184,0,.1); border-color: rgba(245,184,0,.3); color: var(--gold); }

/* Slide 4 — How to play */
.slide-howto {
  background: linear-gradient(160deg, #002070 0%, #003087 40%, #001F5C 100%);
}
.howto-rule {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: .7rem 1rem;
  text-align: left;
  width: 100%;
  max-width: 320px;
}
.howto-pts {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  line-height: 1;
  min-width: 40px;
  text-align: center;
}
.howto-desc {
  font-size: .82rem;
  color: #cbd5e1;
  line-height: 1.3;
}
.howto-desc strong { color: #fff; }

/* Carousel controls */
.fifa-carousel .carousel-control-prev-icon,
.fifa-carousel .carousel-control-next-icon {
  filter: drop-shadow(0 0 4px rgba(0,0,0,.8));
}
.fifa-carousel .carousel-indicators [data-bs-target] {
  width: 8px; height: 8px;
  border-radius: 50%;
  background-color: rgba(245,184,0,.5);
  border: none;
}
.fifa-carousel .carousel-indicators .active {
  background-color: var(--gold);
}

/* Index hero carousel */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  z-index: 10;
}

.hero-carousel-wrap {
  width: 100%;
  margin-bottom: 0;
}
.hero-carousel-item {
  height: clamp(220px, 38vw, 420px);
  position: relative;
  overflow: hidden;
}
.hero-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-carousel-item::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
}
/* fallback gradient backgrounds when no image */
.hero-carousel-item.h1 { background: linear-gradient(120deg, #002070 0%, #003087 100%); }
.hero-carousel-item.h2 { background: linear-gradient(120deg, #1A54C5 0%, #003087 100%); }
.hero-carousel-item.h3 { background: linear-gradient(120deg, #006B80 0%, #003087 100%); }

.hero-slide-content {
  position: absolute;
  inset: 0; z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 3rem);
}
.hero-slide-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.6rem, 5vw, 3rem);
  letter-spacing: 3px;
  color: #fff;
  margin: 0;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero-slide-content h2 span { color: var(--gold); }
.hero-slide-content p {
  color: rgba(255,255,255,.8);
  font-size: clamp(.78rem, 1.5vw, .95rem);
  margin: .35rem 0 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(245,184,0,.2); border: 1px solid rgba(245,184,0,.5);
  border-radius: 20px; padding: .2rem .85rem;
  font-family: 'Barlow Condensed', sans-serif; font-size: .78rem; font-weight: 700;
  color: var(--gold); letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: .6rem; width: fit-content;
}
.hero-flags { font-size: clamp(1.2rem, 3vw, 1.8rem); letter-spacing: .3rem; }

/* ── Mobile sidebar ── */
.nav-hamburger {
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  padding: .42rem .6rem;
  border-radius: 8px;
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
  display: none;
}

/* ── Nav left menu (desktop ≥576px) ── */
.nav-left-menu {
  position: relative;
  display: none;
}
@media (min-width: 576px) {
  .nav-left-menu { display: block; }
}
.nav-menu-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #e2e8f0;
  width: 32px; height: 32px;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.nav-menu-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.nav-menu-btn.active { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }

.nav-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: linear-gradient(160deg, #001040 0%, #001F5C 100%);
  border: 1px solid rgba(245,184,0,.2);
  border-radius: 10px;
  padding: .35rem 0;
  box-shadow: 0 10px 36px rgba(0,0,0,.55);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 960;
}
.nav-menu-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: all; }

/* ── Nav avatar (desktop ≥576px) ── */
.nav-avatar-wrap {
  position: relative;
  display: none;
}
@media (min-width: 576px) {
  .nav-avatar-wrap { display: block; }
}
.nav-avatar-btn {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: border-color .15s, opacity .15s;
  display: flex; align-items: center; justify-content: center;
}
.nav-avatar-btn:hover { border-color: var(--gold); opacity: .9; }
.nav-avatar-btn.active { border-color: var(--gold); }
.nav-avatar-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #c8910a 100%);
  color: #001040;
  font-weight: 700;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .02em;
  overflow: hidden;
}

.nav-avatar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: linear-gradient(160deg, #001040 0%, #001F5C 100%);
  border: 1px solid rgba(245,184,0,.2);
  border-radius: 10px;
  padding: .35rem 0;
  box-shadow: 0 10px 36px rgba(0,0,0,.55);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 960;
}
.nav-avatar-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: all; }

.nav-avatar-info {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem 1rem .5rem;
}
.nav-avatar-info-initial {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #c8910a 100%);
  color: #001040;
  font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-avatar-fullname {
  font-size: .82rem;
  color: #e2e8f0;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

/* ── Shared dropdown item styles ── */
.nav-dd-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .52rem 1rem;
  color: #c8d6e8;
  font-size: .85rem;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background .13s, color .13s;
}
.nav-dd-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-dd-item i { font-size: .88rem; width: 1rem; text-align: center; opacity: .7; }
.nav-dd-item:hover i { opacity: 1; }
.nav-dd-active { color: var(--gold) !important; }
.nav-dd-active i { opacity: 1 !important; color: var(--gold); }
.nav-dd-divider { height: 1px; background: rgba(255,255,255,.09); margin: .25rem 0; }
.nav-dd-logout { color: #f87171 !important; }
.nav-dd-logout:hover { background: rgba(248,113,113,.08) !important; }

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.sidebar-overlay.open { opacity: 1; pointer-events: all; }

.sidebar-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 270px;
  height: 100%;
  background: linear-gradient(160deg, #001F5C 0%, #003087 100%);
  border-right: 1px solid rgba(245,184,0,.2);
  z-index: 1050;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-drawer.open { transform: translateX(0); }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(245,184,0,.15);
  flex-shrink: 0;
}
.sidebar-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 2px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.sidebar-brand span { color: var(--gold); }
.sidebar-close {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 1.2rem;
  cursor: pointer;
  padding: .2rem .35rem;
  border-radius: 6px;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.sidebar-close:hover { color: #fff; background: rgba(255,255,255,.07); }

.sidebar-nav {
  flex: 1;
  padding: .75rem 0;
  overflow-y: auto;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1.5rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.sidebar-link:hover { background: rgba(245,184,0,.06); color: var(--gold); border-left-color: rgba(245,184,0,.4); }
.sidebar-link.active { background: rgba(245,184,0,.1); color: var(--gold); border-left-color: var(--gold); font-weight: 600; }
.sidebar-link i { font-size: 1.1rem; width: 1.3rem; text-align: center; flex-shrink: 0; }
.sidebar-link-admin { display: none; }

.sidebar-divider { height: 1px; background: rgba(255,255,255,.07); margin: .5rem 1.25rem; }

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.sidebar-logout-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(232,25,44,.35);
  color: var(--red);
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.sidebar-logout-btn:hover { background: var(--red-dark); color: #fff; border-color: var(--red-dark); }

/* Show hamburger + hide logout-btn on mobile */
@media (max-width: 575px) {
  .nav-hamburger { display: inline-block; }
  .btn-danger-sm.nav-logout-desktop { display: none !important; }
}

/* ── Responsive — tablet ── */
@media (max-width: 767px) {
  .page-header h1  { font-size: 1.75rem; }
  .admin-card      { padding: 1.1rem; }
  .ranking-table tbody td { padding: .7rem .75rem; }
  .ranking-table thead th { padding: .7rem .75rem; font-size: .78rem; }
  .modal-dialog    { margin: .75rem; }
}

/* ── Responsive — móvil ── */
@media (max-width: 575px) {
  /* Navbar */
  .navbar-wc { height: 54px; padding: 0 .75rem; }

  /* Page */
  .page-wrap  { padding: .75rem; }
  .page-header { margin-bottom: 1.25rem; }
  .page-header h1 { font-size: 1.45rem; }
  .page-header p  { font-size: .82rem; }

  /* Cards */
  .admin-card { padding: .9rem; }
  .admin-card-title { font-size: .9rem; margin-bottom: 1rem; }
  .match-card { padding: 1rem; }
  .ranking-card { border-radius: 10px; }

  /* Matches grid */
  .matches-grid { grid-template-columns: 1fr; gap: .85rem; }

  /* Match card content */
  .match-stadium { height: 160px; }
  .team-flag  { font-size: 1.8rem; }
  .team-name  { font-size: .88rem; }
  .result-score { font-size: 1.6rem; }
  .match-date { font-size: .72rem; }

  /* Bet inputs */
  .bet-input { width: 54px; height: 42px; font-size: 1.2rem; }
  .bet-separator { font-size: 1.3rem; }

  /* Phase tabs */
  .phase-tabs { gap: .35rem; margin-bottom: 1rem; }
  .phase-tab  { font-size: .75rem; padding: .28rem .75rem; }

  /* Champion card */
  .campeon-card { flex-direction: column; text-align: center; padding: 1rem; gap: .75rem; }
  .campeon-trophy { width: 90px; height: 90px; }
  .campeon-controls { justify-content: center; width: 100%; flex-direction: column; }
  .campeon-controls .form-select,
  .campeon-controls .btn-fifa-gold { width: 100%; }

  /* Ranking table — hide non-essential columns */
  .ranking-table .col-aciertos,
  .ranking-table .col-campeon { display: none; }
  .ranking-table tbody td { padding: .6rem .65rem; font-size: .85rem; }
  .ranking-table thead th { padding: .6rem .65rem; font-size: .75rem; }
  .legend-bar { font-size: .68rem; padding: .6rem .75rem; line-height: 1.5; }

  /* Ranking avatar */
  .rank-avatar,
  .rank-avatar-default { width: 36px !important; height: 36px !important; font-size: 1rem !important; margin-right: 7px !important; }

  /* Admin result row */
  .result-row { grid-template-columns: 1fr 22px 1fr; gap: .5rem; }
  .result-sep { font-size: 1.3rem; }

  /* Buttons — touch targets */
  .btn-fifa-green,
  .btn-fifa-gold  { min-height: 44px; padding: .6rem 1rem; }
  .btn-fifa-outline { min-height: 42px; padding: .5rem .9rem; }
  .btn-danger-sm  { min-height: 38px; }

  /* Form controls */
  .form-control, .form-select { min-height: 44px !important; }

  /* Modals */
  .modal-dialog { margin: .4rem; }
  .modal-body   { padding: 1rem; }
  .modal-header, .modal-footer { padding: .85rem 1rem; }

  /* Admin tables wrapper */
  .ranking-card > div[style*="overflow-x"] { -webkit-overflow-scrolling: touch; }

  /* Toast — full width on mobile */
  #toast-container { bottom: .75rem; right: .75rem; left: .75rem; }
  .toast-wc { min-width: 0; width: 100%; box-sizing: border-box; }

  /* Carousel */
  .sedes-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-carousel-item { height: 130px; }
  .hero-carousel-wrap { padding: 0; }
  .auth-split-carousel { flex: 0 0 52vw; min-height: 52vw; max-height: 55vw; }
}

/* ── Responsive — desktop legacy ── */
@media (max-width: 576px) {
  .campeon-card { flex-direction: column; text-align: center; }
  .campeon-controls { justify-content: center; width: 100%; }
  .campeon-controls .form-select { width: 100%; }
  .page-wrap { padding: 1rem; }
  .matches-grid { grid-template-columns: 1fr; }
  .navbar-wc { height: 54px; padding: 0 1rem; }
  .sedes-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-carousel-item { height: 130px; }
  .hero-carousel-wrap { padding: 0 1rem; }
}
