/* ============================================================
   BOLÃO COPA 2026 — Design System AGV
   Paleta AGV Visual Identity Skill v1.1
   Fontes: Montserrat (headings) + Inter (body/data)
   ============================================================ */

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

/* ---- TOKENS ------------------------------------------------ */
:root {
  /* AGV Brand Colors */
  --lime:      #A6CE39;
  --lime-dark: #8EB52F;
  --lime-light:#D4EE8A;
  --slate:     #334C52;
  --slate-dark:#1E2F33;

  /* Backgrounds */
  --bg:        #F1F5F9;
  --surface:   #FFFFFF;
  --surface-2: #F8FAFC;
  --surface-3: #EDF2F7;

  /* Semantic */
  --danger:    #C53030;
  --danger-bg: #FFF5F5;
  --success:   #2F855A;
  --success-bg:#F0FFF4;
  --warning:   #D69E2E;
  --warning-bg:#FFFFF0;
  --info:      #2B6CB0;
  --info-bg:   #EBF8FF;

  /* Text */
  --text:      #1A202C;
  --text-muted:#718096;
  --text-light:#A0AEC0;

  /* Borders */
  --border:    #E2E8F0;
  --border-2:  #CBD5E0;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow:    0 4px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.10);

  /* Radius */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;

  /* Typography */
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:  var(--bg);
  color:       var(--text);
  min-height:  100vh;
  line-height: 1.6;
}

a { color: var(--slate); text-decoration: none; }
a:hover { color: var(--lime-dark); }

img { max-width: 100%; display: block; }

/* ---- LAYOUT ----------------------------------------------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- HEADER ----------------------------------------------- */
.header {
  background:    var(--surface);
  border-bottom: 4px solid var(--lime);
  box-shadow:    var(--shadow-sm);
  position:      sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo-wrap {
  display:     flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-wrap img { height: 36px; width: auto; }

.logo-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size:   1.05rem;
  color:       var(--slate);
  line-height: 1.2;
}

.logo-sub {
  font-size:   0.7rem;
  color:       var(--text-muted);
  font-weight: 400;
}

/* ---- NAV -------------------------------------------------- */
.nav {
  display:     flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display:       flex;
  align-items:   center;
  gap:           0.35rem;
  padding:       0.4rem 0.85rem;
  border-radius: var(--r-sm);
  font-size:     0.82rem;
  font-weight:   500;
  color:         var(--text-muted);
  transition:    background 0.15s, color 0.15s;
}

.nav-link:hover, .nav-link.active {
  background: var(--surface-3);
  color:      var(--slate);
}

.nav-link.active {
  border-bottom: 2px solid var(--lime);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.nav-user {
  display:     flex;
  align-items: center;
  gap: 0.5rem;
  padding:     0.4rem 0.85rem;
  background:  var(--surface-3);
  border-radius: var(--r-sm);
  font-size:   0.82rem;
}

.nav-user .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--lime);
  display:     flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size:   0.75rem;
  color: var(--slate-dark);
}

/* ---- MAIN ------------------------------------------------- */
.main {
  padding: 2rem 0 3rem;
}

.page-title {
  font-family: var(--font-head);
  font-size:   1.6rem;
  font-weight: 700;
  color:       var(--slate);
  margin-bottom: 0.25rem;
}

.page-sub {
  font-size:  0.85rem;
  color:      var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ---- CARDS / KPIs ----------------------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  background:    var(--surface);
  border-radius: var(--r);
  border-top:    4px solid var(--lime);
  padding:       1.1rem 1.25rem;
  box-shadow:    var(--shadow);
}

.kpi-card.danger  { border-top-color: var(--danger); }
.kpi-card.success { border-top-color: var(--success); }
.kpi-card.info    { border-top-color: var(--info); }
.kpi-card.warning { border-top-color: var(--warning); }

.kpi-label {
  text-transform: uppercase;
  font-size:      0.68rem;
  font-weight:    600;
  letter-spacing: 0.06em;
  color:          var(--text-muted);
  margin-bottom:  0.4rem;
}

.kpi-value {
  font-family: var(--font-head);
  font-size:   1.9rem;
  font-weight: 700;
  color:       var(--slate);
  line-height: 1;
}

.kpi-desc {
  font-size:   0.75rem;
  color:       var(--text-muted);
  margin-top:  0.3rem;
}

/* ---- CARD ------------------------------------------------- */
.card {
  background:    var(--surface);
  border-radius: var(--r);
  box-shadow:    var(--shadow);
  overflow:      hidden;
}

.card-header {
  background:   var(--slate);
  padding:      0.9rem 1.25rem;
  display:      flex;
  align-items:  center;
  gap:          0.5rem;
}

.card-header h2 {
  font-family: var(--font-head);
  font-size:   0.95rem;
  font-weight: 700;
  color:       #fff;
  margin: 0;
}

.card-body { padding: 1.25rem; }

/* ---- TABS ------------------------------------------------- */
.tabs {
  display:     flex;
  flex-wrap:   wrap;
  gap:         0.25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding:     0.5rem 1rem;
  border:      none;
  background:  transparent;
  font-family: var(--font-body);
  font-size:   0.83rem;
  font-weight: 500;
  color:       var(--text-muted);
  cursor:      pointer;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  transition:  background 0.15s, color 0.15s;
  position:    relative;
  bottom: -2px;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover { color: var(--slate); background: var(--surface-3); }

.tab-btn.active {
  color:        var(--slate);
  font-weight:  600;
  border-bottom: 2px solid var(--lime);
}

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

/* Sub-tabs (grupos A–L) */
.subtabs {
  display:     flex;
  flex-wrap:   wrap;
  gap:         0.25rem;
  margin-bottom: 1rem;
}

.subtab-btn {
  width:        38px; height: 38px;
  border:       1px solid var(--border);
  background:   var(--surface);
  font-size:    0.78rem;
  font-weight:  600;
  color:        var(--text-muted);
  border-radius: var(--r-sm);
  cursor:       pointer;
  transition:   all 0.15s;
}

.subtab-btn:hover { border-color: var(--lime); color: var(--slate); }
.subtab-btn.active {
  background: var(--lime);
  color:      var(--slate-dark);
  border-color: var(--lime);
}

/* ---- MATCH CARDS ----------------------------------------- */
.matches-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.match-card {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--r);
  padding:       1rem 1.25rem;
  display:       grid;
  grid-template-columns: 1fr auto 1fr;
  gap:           0.75rem;
  align-items:   center;
  transition:    box-shadow 0.15s, border-color 0.15s;
}

.match-card:hover { box-shadow: var(--shadow); border-color: var(--lime-light); }

.match-card.finished { border-left: 3px solid var(--success); }
.match-card.live     { border-left: 3px solid var(--warning); animation: pulse 2s infinite; }
.match-card.scheduled { border-left: 3px solid var(--border-2); }

@keyframes pulse {
  0%, 100% { border-left-color: var(--warning); }
  50%       { border-left-color: var(--lime); }
}

.team-block {
  display:     flex;
  align-items: center;
  gap:         0.6rem;
}

.team-block.right {
  flex-direction: row-reverse;
  text-align: right;
}

.team-flag { font-size: 1.6rem; line-height: 1; }

.team-name {
  font-family: var(--font-head);
  font-size:   0.88rem;
  font-weight: 600;
  color:       var(--slate);
}

.match-center {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             0.2rem;
  min-width:       90px;
}

.match-score {
  font-family: var(--font-head);
  font-size:   1.5rem;
  font-weight: 700;
  color:       var(--slate);
  letter-spacing: 0.05em;
}

.match-score.pending { color: var(--text-light); font-size: 1.2rem; }

.match-meta {
  font-size: 0.68rem;
  color:     var(--text-muted);
  text-align: center;
}

/* ---- PALPITE INPUTS -------------------------------------- */
.predict-row {
  display:     flex;
  align-items: center;
  gap:         0.5rem;
  margin-top:  0.5rem;
}

.predict-input {
  width:        52px;
  padding:      0.35rem 0;
  text-align:   center;
  border:       2px solid var(--border);
  border-radius: var(--r-sm);
  font-family:  var(--font-head);
  font-size:    1.1rem;
  font-weight:  700;
  color:        var(--slate);
  outline:      none;
  transition:   border-color 0.15s;
  -moz-appearance: textfield;
}
.predict-input::-webkit-inner-spin-button,
.predict-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.predict-input:focus { border-color: var(--lime); }
.predict-input:read-only {
  background: var(--surface-3);
  border-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}

.predict-sep { color: var(--text-muted); font-weight: 700; }

.predict-save {
  padding:       0.35rem 0.75rem;
  background:    var(--lime);
  color:         var(--slate-dark);
  border:        none;
  border-radius: var(--r-sm);
  font-weight:   700;
  font-size:     0.78rem;
  cursor:        pointer;
  transition:    background 0.15s, transform 0.1s;
}
.predict-save:hover { background: var(--lime-dark); }
.predict-save:active { transform: scale(0.96); }

.predict-points {
  font-size:   0.78rem;
  font-weight: 700;
  padding:     0.2rem 0.6rem;
  border-radius: 999px;
}
.predict-points.exact  { background: var(--success-bg); color: var(--success); }
.predict-points.winner { background: var(--info-bg); color: var(--info); }
.predict-points.miss   { background: var(--surface-3); color: var(--text-muted); }

/* ---- RANKING TABLE --------------------------------------- */
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.ranking-table thead th {
  background:     var(--slate);
  color:          #fff;
  font-family:    var(--font-head);
  font-size:      0.72rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding:        0.7rem 0.9rem;
  text-align:     left;
}

.ranking-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.ranking-table tbody tr:nth-child(even) { background: var(--surface-2); }
.ranking-table tbody tr:hover { background: var(--info-bg); }

.ranking-table td {
  padding: 0.65rem 0.9rem;
  color:   var(--text);
}

.rank-pos {
  font-family: var(--font-head);
  font-weight: 700;
  font-size:   1rem;
  color:       var(--text-muted);
  width: 40px;
}

.rank-pos.gold   { color: #D69E2E; }
.rank-pos.silver { color: #718096; }
.rank-pos.bronze { color: #C05621; }

.rank-name { font-weight: 600; color: var(--slate); }
.rank-points {
  font-family: var(--font-head);
  font-size:   1.1rem;
  font-weight: 700;
  color:       var(--slate);
}

.progress-bar-wrap {
  background:    var(--border);
  border-radius: 10px;
  height:        8px;
  width:         80px;
  overflow:      hidden;
}

.progress-bar {
  height:        100%;
  background:    var(--lime);
  border-radius: 10px;
  transition:    width 0.6s ease;
}

/* ---- BADGES ---------------------------------------------- */
.badge {
  display:       inline-flex;
  align-items:   center;
  gap:           0.25rem;
  padding:       0.2rem 0.6rem;
  border-radius: 999px;
  font-size:     0.7rem;
  font-weight:   600;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-muted   { background: var(--surface-3);  color: var(--text-muted); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-info    { background: var(--info-bg);    color: var(--info); }
.badge-lime    { background: var(--lime-light);  color: var(--slate-dark); }

/* ---- FORMS ----------------------------------------------- */
.form-group { margin-bottom: 1.1rem; }

.form-label {
  display:     block;
  font-size:   0.78rem;
  font-weight: 600;
  color:       var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.form-input, .form-select {
  width:         100%;
  padding:       0.6rem 0.9rem;
  border:        2px solid var(--border);
  border-radius: var(--r-sm);
  font-family:   var(--font-body);
  font-size:     0.9rem;
  color:         var(--text);
  background:    var(--surface);
  outline:       none;
  transition:    border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--lime);
  box-shadow:   0 0 0 3px rgba(166,206,57,0.15);
}

.form-error {
  font-size:   0.75rem;
  color:       var(--danger);
  margin-top:  0.3rem;
}

/* ---- BUTTONS --------------------------------------------- */
.btn {
  display:       inline-flex;
  align-items:   center;
  gap:           0.4rem;
  padding:       0.6rem 1.35rem;
  border:        none;
  border-radius: var(--r-sm);
  font-family:   var(--font-body);
  font-size:     0.85rem;
  font-weight:   600;
  cursor:        pointer;
  transition:    background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--lime);
  color:      var(--slate-dark);
}
.btn-primary:hover { background: var(--lime-dark); box-shadow: var(--shadow); }

.btn-secondary {
  background: var(--slate);
  color:      #fff;
}
.btn-secondary:hover { background: var(--slate-dark); }

.btn-danger {
  background: var(--danger);
  color:      #fff;
}
.btn-danger:hover { background: #9B2C2C; }

.btn-ghost {
  background: transparent;
  color:      var(--text-muted);
  border:     1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-3); color: var(--slate); }

.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.78rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---- AUTH PAGES ------------------------------------------ */
.auth-wrap {
  min-height: 100vh;
  display:    flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate) 50%, #1a3a2a 100%);
  padding: 2rem 1rem;
}

.auth-card {
  background:    var(--surface);
  border-radius: var(--r-lg);
  box-shadow:    var(--shadow-lg);
  width:         100%;
  max-width:     420px;
  overflow:      hidden;
}

.auth-header {
  background:  linear-gradient(135deg, var(--slate) 0%, var(--slate-dark) 100%);
  padding:     2rem 2rem 1.5rem;
  text-align:  center;
  border-bottom: 4px solid var(--lime);
}

.auth-logo { height: 44px; margin: 0 auto 0.75rem; }

.auth-title {
  font-family: var(--font-head);
  font-size:   1.2rem;
  font-weight: 700;
  color:       #fff;
  margin-bottom: 0.25rem;
}

.auth-sub { font-size: 0.78rem; color: rgba(255,255,255,0.65); }

.auth-body { padding: 2rem; }

.auth-footer {
  text-align:  center;
  padding:     1rem 2rem 1.5rem;
  font-size:   0.8rem;
  color:       var(--text-muted);
  border-top:  1px solid var(--border);
}

.auth-footer a { color: var(--lime-dark); font-weight: 600; }

/* ---- ALERT ----------------------------------------------- */
.alert {
  padding:       0.75rem 1rem;
  border-radius: var(--r-sm);
  font-size:     0.83rem;
  margin-bottom: 1rem;
  border-left:   3px solid;
}
.alert-danger  { background: var(--danger-bg);  border-color: var(--danger);  color: var(--danger); }
.alert-success { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.alert-info    { background: var(--info-bg);    border-color: var(--info);    color: var(--info); }
.alert-warning { background: var(--warning-bg); border-color: var(--warning); color: var(--warning); }

/* ---- COUNTDOWN ------------------------------------------- */
.countdown {
  display:     flex;
  gap:         0.5rem;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size:   0.75rem;
  color:       var(--text-muted);
}

.countdown-unit {
  display:       flex;
  flex-direction: column;
  align-items:   center;
}

.countdown-num {
  font-size:   1.1rem;
  font-weight: 700;
  color:       var(--slate);
  line-height: 1;
}

.countdown-label {
  font-size:   0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color:       var(--text-light);
}

.countdown-sep { color: var(--lime); font-weight: 700; margin-bottom: 0.6rem; }

/* ---- ADMIN TABLE ----------------------------------------- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-table th {
  background:     var(--slate);
  color:          rgba(255,255,255,0.9);
  text-align:     left;
  padding:        0.65rem 0.9rem;
  font-family:    var(--font-head);
  font-size:      0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table td {
  padding:      0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tbody tr:hover { background: var(--surface-2); }

/* ---- FOOTER ---------------------------------------------- */
.footer {
  background:  var(--slate-dark);
  color:       rgba(255,255,255,0.5);
  text-align:  center;
  padding:     1.25rem 0;
  font-size:   0.75rem;
  margin-top:  auto;
}

.footer span { color: var(--lime); }

/* ---- RESPONSIVE ------------------------------------------ */
@media (max-width: 768px) {
  .header-inner { height: auto; flex-wrap: wrap; padding: 0.75rem 0; }
  .nav { flex-wrap: wrap; }
  .nav-link { font-size: 0.75rem; padding: 0.35rem 0.6rem; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .match-card { grid-template-columns: 1fr; gap: 0.4rem; }
  .match-center { flex-direction: row; gap: 0.5rem; padding: 0.3rem 0; }
  .ranking-table { font-size: 0.78rem; }
  .ranking-table td, .ranking-table th { padding: 0.5rem 0.5rem; }
  .progress-bar-wrap { display: none; }
  .page-title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .tabs { gap: 0; }
  .tab-btn { padding: 0.4rem 0.65rem; font-size: 0.75rem; }
}

/* ---- TOAST ----------------------------------------------- */
.toast-container {
  position: fixed;
  bottom:   1.5rem;
  right:    1.5rem;
  z-index:  9999;
  display:  flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background:    var(--surface);
  border-left:   4px solid var(--lime);
  border-radius: var(--r-sm);
  box-shadow:    var(--shadow-lg);
  padding:       0.75rem 1rem;
  font-size:     0.83rem;
  font-weight:   500;
  max-width:     300px;
  animation:     toast-in 0.3s ease forwards;
  pointer-events: all;
}

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

@keyframes toast-in {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---- UTILITIES ------------------------------------------- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.d-flex { display: flex; }
.gap-1  { gap: 0.5rem; }
.gap-2  { gap: 1rem; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.78rem; }
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

/* ============================================================
   MATCH CARD v2 — Bandeiras grandes + Nomes em PT
   ============================================================ */

/* Card container */
.match-card {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--r-lg);
  padding:       1.1rem 1.4rem;
  display:       grid;
  grid-template-columns: 1fr 160px 1fr;
  gap:           0.75rem;
  align-items:   center;
  transition:    box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  position:      relative;
}

.match-card:hover {
  box-shadow:    var(--shadow-lg);
  border-color:  var(--lime-light);
  transform:     translateY(-1px);
}

.match-card.finished  { border-left: 4px solid var(--success); }
.match-card.live      { border-left: 4px solid var(--warning); animation: pulse 2s infinite; }
.match-card.scheduled { border-left: 4px solid var(--border-2); }

/* ── Time block ──────────────────────────────────────────── */
.team-block {
  display:     flex;
  align-items: center;
  gap:         0.85rem;
}
.team-block.right {
  flex-direction: row-reverse;
}

/* Wrapper da bandeira */
.team-flag-wrap {
  flex-shrink: 0;
}

/* Bandeira grande */
.team-flag-lg {
  font-size:   2.6rem;
  line-height: 1;
  display:     block;
  filter:      drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  transition:  transform 0.2s;
}
.match-card:hover .team-flag-lg {
  transform: scale(1.08);
}
.team-flag-lg.placeholder-flag {
  font-size: 2rem;
  opacity:   0.5;
}

/* Info do time (nome + badge código) */
.team-info {
  display:        flex;
  flex-direction: column;
  gap:            0.15rem;
}
.team-info.right {
  align-items: flex-end;
}

/* Nome principal em Português */
.team-name-main {
  font-family:    var(--font-head);
  font-size:      1.05rem;
  font-weight:    700;
  color:          var(--slate);
  line-height:    1.2;
  letter-spacing: -0.01em;
}

/* Badge código FIFA */
.team-code-badge {
  display:        inline-block;
  font-family:    var(--font-head);
  font-size:      0.62rem;
  font-weight:    700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          var(--text-muted);
  background:     var(--surface-3);
  border:         1px solid var(--border);
  border-radius:  4px;
  padding:        0.1rem 0.4rem;
}

/* ── Centro do card ─────────────────────────────────────── */
.match-center {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             0.3rem;
  text-align:      center;
  min-width:       140px;
}

/* Placar finalizado */
.match-score-display {
  display:     flex;
  align-items: center;
  gap:         0.4rem;
}
.match-score-num {
  font-family: var(--font-head);
  font-size:   2rem;
  font-weight: 800;
  color:       var(--slate);
  line-height: 1;
  min-width:   2rem;
  text-align:  center;
}
.match-score-sep {
  font-family: var(--font-head);
  font-size:   1.4rem;
  font-weight: 300;
  color:       var(--text-muted);
}

/* "VS" antes de começar */
.match-vs-label {
  font-family: var(--font-head);
  font-size:   1.3rem;
  font-weight: 800;
  color:       var(--text-light);
  letter-spacing: 0.12em;
}

/* Meta: data + estádio */
.match-meta-block {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            0.1rem;
}
.match-date-time {
  font-size:   0.75rem;
  font-weight: 600;
  color:       var(--text-muted);
}
.match-stadium {
  font-size: 0.68rem;
  color:     var(--text-light);
}

/* ── Header e títulos maiores ───────────────────────────── */
.page-title {
  font-family:    var(--font-head);
  font-size:      1.85rem;
  font-weight:    800;
  color:          var(--slate);
  letter-spacing: -0.02em;
  margin-bottom:  0.2rem;
}

.page-sub {
  font-size:   0.9rem;
  color:       var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* Header bar — texto maior */
.logo-title {
  font-family:    var(--font-head);
  font-weight:    800;
  font-size:      1.15rem;
  color:          var(--slate);
  line-height:    1.15;
  letter-spacing: -0.01em;
}

/* Tabs — fonte maior e mais destaque */
.tab-btn {
  font-size:   0.88rem;
  font-weight: 600;
  padding:     0.55rem 1.1rem;
}
.tab-btn.active {
  font-size: 0.9rem;
}

/* Sub-tabs grupos — botões maiores */
.subtab-btn {
  width:       44px;
  height:      44px;
  font-size:   0.85rem;
  font-weight: 800;
}

/* Grupo header acima dos cards */
.group-header {
  display:       flex;
  align-items:   center;
  gap:           0.6rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--lime);
}
.group-title {
  font-family:    var(--font-head);
  font-size:      1.1rem;
  font-weight:    800;
  color:          var(--slate);
  letter-spacing: -0.01em;
}
.group-badge {
  background:  var(--lime);
  color:       var(--slate-dark);
  font-family: var(--font-head);
  font-size:   0.7rem;
  font-weight: 800;
  padding:     0.15rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Próxima partida — nome dos times maior */
.next-match-teams {
  font-family:    var(--font-head);
  font-size:      1rem;
  font-weight:    700;
  color:          var(--slate);
  margin-bottom:  0.3rem;
}

/* ── Responsivo para os novos componentes ────────────────── */
@media (max-width: 768px) {
  .match-card {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 0.6rem;
  }
  .match-center {
    flex-direction: column;
    padding: 0.5rem 0;
    border-top:    1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .team-block { justify-content: flex-start; }
  .team-block.right { flex-direction: row; }
  .team-info.right  { align-items: flex-start; }
  .team-flag-lg { font-size: 2rem; }
  .team-name-main { font-size: 0.95rem; }
  .match-score-num { font-size: 1.6rem; }
  .page-title { font-size: 1.45rem; }
}

@media (max-width: 480px) {
  .team-name-main { font-size: 0.88rem; }
  .team-flag-lg   { font-size: 1.8rem; }
}

