/* ============================================================
   styles/main.css — MUN26 · Design System
   Baseado no handoff do Claude Design (Abril 2026)
   Accent: Lime #CBFF3D · Fonts: Anton + Geist + JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Geist:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

/* ─── Reset ──────────────────────────────────────────────── */

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

/* ─── Design Tokens ──────────────────────────────────────── */

:root {
  /* Backgrounds */
  --bg-0:       #0A0B07;   /* app bg — preto quente */
  --bg-1:       #14160E;   /* surface cards */
  --bg-2:       #1C1F16;   /* chips / inputs / elevado */
  --bg-3:       #262A1E;   /* botões secundários */

  /* Borders */
  --line:       #2A2E22;
  --line-soft:  #1F2218;

  /* Text */
  --txt:        #F0F2E8;   /* principal */
  --txt-2:      #B5B8AB;   /* secundário */
  --txt-mute:   #6E7163;   /* terciário / labels */
  --txt-dim:    #4A4D42;   /* muito esbatido */

  /* Accents */
  --lime:       #CBFF3D;   /* accent primário */
  --lime-d:     #9CC22E;   /* lime hover/pressed */
  --live:       #FF3D5E;   /* ao vivo / erro */
  --gold:       #FFC53D;   /* 1º lugar */
  --silver:     #C0C0CE;   /* 2º lugar */
  --bronze:     #CD7F32;   /* 3º lugar */
  --blue:       #5DA8FF;   /* info */

  /* Border radii */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  28px;

  /* Fonts */
  --font-display: 'Anton', sans-serif;       /* scores, títulos grandes */
  --font-body:    'Geist', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace; /* odds, scores tabulares */

  /* Bottom bar height (para padding do conteúdo) */
  --bar-h: 68px;
}

/* ─── Base ───────────────────────────────────────────────── */

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--txt);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

/* ─── Utilitários ────────────────────────────────────────── */

.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.loading-inline {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--txt-mute);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--txt-mute);
  line-height: 1.7;
}
.empty-state span { font-size: 0.875rem; color: var(--txt-dim); }

/* ─── Stripes (hero cards) ───────────────────────────────── */

.stripes {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(203,255,61,0.04) 0,
    rgba(203,255,61,0.04) 6px,
    transparent 6px,
    transparent 12px
  );
}

/* ─── Live dot ───────────────────────────────────────────── */

.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 99px;
  background: var(--live);
  flex-shrink: 0;
  animation: dot-pulse 1.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.85); }
}

/* ─── Chips ──────────────────────────────────────────────── */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--txt-2);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { background: var(--bg-3); }

.chip-live {
  background: rgba(255,61,94,0.12);
  border-color: rgba(255,61,94,0.35);
  color: #FFB0BF;
}
.chip-lime {
  background: rgba(203,255,61,0.12);
  border-color: rgba(203,255,61,0.4);
  color: var(--lime);
}

/* ─── Cards ──────────────────────────────────────────────── */

.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

/* ─── Botões ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 0.875rem;
  background: var(--lime);
  color: var(--bg-0);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-primary:hover:not(:disabled) {
  background: var(--lime-d);
  box-shadow: 0 4px 18px rgba(203,255,61,0.25);
}
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-2);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-secondary:hover { background: var(--bg-3); border-color: var(--txt-dim); }

.btn-back {
  background: none;
  border: none;
  color: var(--txt-mute);
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color 0.15s;
}
.btn-back:hover { color: var(--txt); }

/* ─── Formulários ────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }

.field label {
  font-size: 11px;
  color: var(--txt-mute);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.field input, .field select {
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(203,255,61,0.12);
}
.field select option { background: var(--bg-1); }

/* ─── Login ──────────────────────────────────────────────── */

.login-container {
  display: flex; flex-direction: column;
  min-height: 100vh; justify-content: center;
  padding: 2rem 1.5rem; gap: 2rem;
}
.login-header { text-align: center; }
.login-logo   { font-size: 3rem; margin-bottom: 0.5rem; }

.login-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  color: var(--txt);
  text-transform: uppercase;
}

.login-subtitle { color: var(--txt-mute); font-size: 13px; margin-top: 6px; }
.login-form     { display: flex; flex-direction: column; gap: 0; }

.login-error {
  background: rgba(255,61,94,0.1);
  border: 1px solid rgba(255,61,94,0.35);
  color: #FFB0BF;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  margin-bottom: 1rem;
}

/* ─── Dashboard Header ───────────────────────────────────── */

.dashboard-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,11,7,0.92);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 18px 8px;
}

.hdr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }

.logo-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--lime);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.logo-icon::after {
  content: '';
  position: absolute;
  right: -6px; bottom: -6px;
  width: 14px; height: 14px;
  background: var(--bg-0);
  transform: rotate(45deg);
}
.logo-icon span {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--bg-0);
  position: relative; z-index: 1;
  letter-spacing: 0.5px;
}

.logo-name {
  display: flex; flex-direction: column; gap: 1px; line-height: 1;
}
.logo-name-main {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.5px;
  color: var(--txt);
}
.logo-name-sub {
  font-size: 10px;
  color: var(--txt-mute);
  font-weight: 500;
}

/* Header direito — saldo + notif + avatar */
.hdr-right { display: flex; align-items: center; gap: 8px; }

.hdr-balance {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 1px; line-height: 1;
}
.hdr-bal-label {
  font-size: 9px; font-weight: 700;
  color: var(--txt-dim); text-transform: uppercase; letter-spacing: 0.12em;
}
.hdr-bal-amt {
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 700;
  color: var(--lime);
}

.hdr-notif {
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; flex-shrink: 0;
  transition: border-color 0.15s;
}
.hdr-notif:hover { border-color: var(--txt-dim); }

.hdr-notif-badge {
  position: absolute; top: 3px; right: 3px;
  min-width: 14px; height: 14px; padding: 0 4px;
  background: var(--live); color: #fff;
  font-size: 9px; font-weight: 700;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--bg-0);
}

.hdr-avatar {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--bg-0);
  cursor: pointer; flex-shrink: 0;
  border: none; transition: opacity 0.15s;
}
.hdr-avatar:hover { opacity: 0.85; }

/* Compatibilidade com código antigo */
.dashboard-title { display: none; }
.dashboard-user  { display: none; }
.btn-avatar      { display: none; }
.btn-logout      {
  background: none; border: none;
  color: var(--txt-dim); font-size: 16px;
  cursor: pointer; padding: 4px;
  transition: color 0.15s; flex-shrink: 0;
}
.btn-logout:hover { color: var(--txt); }

/* ─── Bottom Tab Bar ─────────────────────────────────────── */

.bottom-bar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: rgba(10,11,7,0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--line-soft);
  display: flex;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 30;
}

.b-tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 4px;
  background: none; border: none;
  cursor: pointer; position: relative;
  font-family: var(--font-body);
  transition: opacity 0.15s;
}

/* Indicador activo: barra 22×2 no topo com glow */
.b-tab.active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 2px;
  background: var(--lime);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 0 12px var(--lime);
}

.b-tab-icon {
  width: 22px; height: 22px;
  color: var(--txt-dim);
  transition: color 0.15s;
}
.b-tab.active .b-tab-icon { color: var(--lime); }

.b-tab-label {
  font-size: 10px; font-weight: 600;
  color: var(--txt-dim);
  text-transform: uppercase; letter-spacing: 0.05em;
  transition: color 0.15s;
}
.b-tab.active .b-tab-label { color: var(--lime); }

/* Live dot no tab de Jogos */
.b-live-dot {
  position: absolute; top: 4px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 6px var(--live);
  animation: dot-pulse 1.4s ease-in-out infinite;
}

/* ─── Tab Content ────────────────────────────────────────── */

.tab-content {
  padding: 0 0 calc(var(--bar-h) + 1rem);
  min-height: calc(100vh - 60px);
}

/* Wrapper interno de cada ecrã */
.screen {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* ─── Screen Headers ─────────────────────────────────────── */

.screen-header {
  padding: 6px 18px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.screen-header-left { display: flex; flex-direction: column; gap: 2px; }

.screen-subtitle {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--txt-mute);
}

.screen-title {
  font-family: var(--font-display);
  font-size: 38px; line-height: 0.95;
  color: var(--txt);
  text-transform: uppercase;
}

/* Section labels dentro dos ecrãs */
.sec-header {
  padding: 20px 18px 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.sec-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--txt-2);
}
.sec-count { font-size: 11px; color: var(--txt-mute); font-family: var(--font-mono); }
.sec-action { font-size: 11px; font-weight: 600; color: var(--lime); cursor: pointer; }

/* ─── Fixture Cards ──────────────────────────────────────── */

/* Compatibilidade com dashboard.js */
.fixture-day       { margin-bottom: 0; }
.fixture-day-label {
  font-size: 10px; font-weight: 700; color: var(--txt-dim);
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 20px 18px 10px;
}

.fixture-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  margin: 0 18px 8px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.15s;
}
.fixture-card:hover { border-color: var(--line-soft); }

.fixture-card.fixture-live {
  border-color: #3A4A1E;
  background: linear-gradient(180deg, #1A1F12 0%, #14160E 100%);
  box-shadow: 0 0 0 1px rgba(203,255,61,0.08), 0 20px 40px -10px rgba(0,0,0,0.5);
}
.fixture-card.fixture-done { opacity: 0.65; }

.fixture-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.fixture-team {
  display: flex; align-items: center; gap: 10px;
}
.fixture-team-away {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.team-flag   { font-size: 1.1rem; flex-shrink: 0; }
.team-name   {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--txt);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.team-winner { color: var(--txt); }

.fixture-middle {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px; flex-shrink: 0;
}

.fixture-score {
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 700;
  color: var(--txt);
  letter-spacing: 0.04em;
}
.fixture-vs { font-size: 11px; color: var(--txt-dim); font-weight: 600; }

.badge-live {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800;
  background: rgba(255,61,94,0.12);
  border: 1px solid rgba(255,61,94,0.35);
  color: #FFB0BF;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-ft {
  font-size: 10px; font-weight: 700; color: var(--txt-dim);
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 999px;
}
.badge-time {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600; color: var(--txt-2);
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 4px 8px; border-radius: 6px;
}
.badge-pst {
  font-size: 10px; font-weight: 700;
  color: var(--gold); background: rgba(255,197,61,0.1);
  padding: 2px 8px; border-radius: 999px;
}

.fixture-round { font-size: 10px; color: var(--txt-dim); text-align: center; margin-top: 4px; }

/* Odds inline nos fixture cards */
.fixture-odds {
  display: flex; gap: 6px; margin-top: 2px;
}
.fixture-odd-btn {
  flex: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; font-size: 11px;
  cursor: pointer; transition: border-color 0.15s;
}
.fixture-odd-btn:hover { border-color: var(--lime); }
.fixture-odd-lbl { color: var(--txt-mute); font-weight: 600; }
.fixture-odd-val { font-family: var(--font-mono); color: var(--lime); font-weight: 600; font-size: 12px; }

/* ─── Standings / Grupos ─────────────────────────────────── */

.standings-group { margin-bottom: 1.5rem; padding: 0 18px; }

.standings-group-header {
  font-size: 11px; font-weight: 700; color: var(--lime);
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 0.25rem 0; margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(203,255,61,0.2);
}

.standings-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
  background: var(--bg-1);
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line);
}
.standings-table thead tr { background: var(--bg-2); }
.standings-table th {
  padding: 8px 10px;
  color: var(--txt-dim); font-weight: 700;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
}
.standings-table td { padding: 9px 10px; border-top: 1px solid var(--line-soft); color: var(--txt-2); }
.standings-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.standings-table tbody tr.row-qualify td { color: var(--txt); }
.standings-table tbody tr.row-qualify td:first-child { border-left: 2px solid var(--lime); }
.standings-table tbody tr.row-me td { background: rgba(203,255,61,0.05); }
.standings-table tbody tr.row-me td:first-child { border-left: 2px solid var(--lime); }

.col-pos  { width: 1.5rem; text-align: center; }
.col-team { text-align: left; }
.col-num  { width: 2rem; text-align: center; }
.col-pts  { font-weight: 700; color: var(--lime) !important; font-family: var(--font-mono); }

.standings-flag      { margin-right: 6px; font-size: 1rem; }
.standings-team-name { font-size: 13px; }

/* ─── Coming Soon ────────────────────────────────────────── */

.coming-soon-tab {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 4rem 1rem; gap: 0.5rem;
}
.coming-soon-icon  { font-size: 2.5rem; margin-bottom: 0.5rem; opacity: 0.2; }
.coming-soon-title { font-size: 14px; font-weight: 600; color: var(--txt-dim); }
.coming-soon-desc  { font-size: 12px; color: var(--txt-dim); }

/* ─── Perfil ─────────────────────────────────────────────── */

.profile-container { padding: 18px; }
.profile-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.profile-header h2 { font-family: var(--font-display); font-size: 28px; text-transform: uppercase; }

.profile-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 24px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-lg); margin-bottom: 1rem;
}
.profile-avatar  { font-size: 3.5rem; line-height: 1; }
.profile-info    { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.profile-username{ font-family: var(--font-display); font-size: 24px; text-transform: uppercase; color: var(--txt); }
.profile-team    { font-size: 13px; color: var(--txt-mute); }
.profile-balance { font-family: var(--font-mono); font-size: 16px; color: var(--lime); font-weight: 700; }

.profile-edit {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px;
  display: flex; flex-direction: column; gap: 0;
}

.emoji-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.emoji-btn {
  font-size: 1.4rem; background: var(--bg-2);
  border: 2px solid transparent; border-radius: 10px;
  padding: 6px; cursor: pointer; line-height: 1;
  transition: border-color 0.15s, background 0.15s;
}
.emoji-btn:hover    { background: var(--bg-3); }
.emoji-btn.selected { border-color: var(--lime); background: rgba(203,255,61,0.08); }

.edit-error {
  background: rgba(255,61,94,0.1);
  border: 1px solid rgba(255,61,94,0.35);
  color: #FFB0BF;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 13px; margin-bottom: 1rem;
}
.edit-actions { display: flex; gap: 10px; margin-top: 8px; }
.edit-actions .btn-secondary { flex: 1; }
.edit-actions .btn-primary   { flex: 2; }

/* ─── Apostas ────────────────────────────────────────────── */

.bets-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 18px 16px;
}
.bets-balance       { display: flex; flex-direction: column; gap: 2px; }
.bets-balance-label {
  font-size: 10px; color: var(--txt-dim); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.bets-balance-amount {
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 700; color: var(--lime);
  line-height: 1;
}

.btn-history {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 8px 10px;
  font-size: 1rem; cursor: pointer; transition: border-color 0.15s;
}
.btn-history:hover { border-color: var(--txt-dim); }

.bet-card { cursor: default; }
.bet-card-action { margin-top: 10px; display: flex; justify-content: flex-end; }

.btn-bet-open {
  background: var(--lime); color: var(--bg-0);
  border: none; border-radius: var(--r-sm);
  padding: 8px 16px;
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background 0.15s;
}
.btn-bet-open:hover { background: var(--lime-d); }

.bet-unavailable { font-size: 12px; color: var(--txt-dim); }
.bet-locked      { color: var(--txt-mute); }

.bet-placed {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--txt-2);
}
.bet-placed-icon { font-size: 1rem; flex-shrink: 0; }
.bet-placed-text { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bet-return      { color: var(--lime); font-weight: 700; font-family: var(--font-mono); }
.bet-placed.bet-win .bet-placed-text { color: #a8d830; }
.bet-placed.bet-loss { opacity: 0.5; }

/* Formulário de aposta */
.bet-form-container { display: flex; flex-direction: column; gap: 12px; padding: 0 18px; }

.bet-match-header {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px; text-align: center;
}
.bet-match-teams {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; font-family: var(--font-display); font-size: 16px;
  margin-bottom: 4px; text-transform: uppercase;
}
.bet-match-vs   { font-size: 11px; color: var(--txt-dim); font-family: var(--font-body); }
.bet-match-time { font-size: 12px; color: var(--txt-mute); }

.odds-label {
  font-size: 11px; color: var(--txt-mute); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.odds-stub-badge {
  font-size: 10px; background: rgba(255,197,61,0.1);
  color: var(--gold); border: 1px solid rgba(255,197,61,0.3);
  border-radius: 4px; padding: 1px 6px;
}

.odds-row { display: flex; gap: 6px; }
.odds-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 10px 6px;
  background: var(--bg-2); border: 1.5px solid var(--line);
  border-radius: 12px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.odds-btn:hover    { border-color: var(--txt-dim); background: var(--bg-3); }
.odds-btn.selected { border-color: var(--lime); background: rgba(203,255,61,0.08); }

.odds-team {
  font-size: 10px; color: var(--txt-dim); text-align: center;
  line-height: 1.3; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.odds-btn.selected .odds-team { color: rgba(203,255,61,0.7); }

.odds-value {
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 700;
  color: var(--txt-2); line-height: 1;
}
.odds-btn.selected .odds-value { color: var(--lime); }

.stake-input-row { position: relative; }
.stake-input-row input {
  width: 100%; padding: 12px 36px 12px 14px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--txt);
  font-family: var(--font-mono); font-size: 16px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.stake-input-row input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(203,255,61,0.12);
}
.stake-currency {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%); color: var(--txt-mute);
  font-size: 13px; pointer-events: none;
}

.stake-hints { display: flex; gap: 6px; margin-top: 6px; }
.stake-hint-btn {
  flex: 1; padding: 6px 0;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--txt-mute);
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.stake-hint-btn:hover { border-color: var(--lime); color: var(--txt); }

.bet-summary {
  background: rgba(203,255,61,0.08);
  border: 1px solid rgba(203,255,61,0.3);
  border-radius: var(--r-sm); padding: 10px 14px;
  font-family: var(--font-mono); font-size: 15px;
  color: var(--lime); font-weight: 700; text-align: center;
}
.bet-balance-info { font-size: 12px; color: var(--txt-dim); text-align: center; }

.history-card {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px; margin: 0 18px 8px;
}
.history-card.bet-win  { border-color: rgba(203,255,61,0.25); background: rgba(203,255,61,0.05); }
.history-card.bet-loss { opacity: 0.6; }

.history-match   { font-family: var(--font-display); font-size: 16px; text-transform: uppercase; margin-bottom: 6px; }
.history-details { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.history-pick    { font-size: 13px; color: var(--txt-2); }
.history-odd {
  font-family: var(--font-mono); font-size: 12px; color: var(--txt-mute);
  background: var(--bg-2); border-radius: 4px;
  padding: 2px 6px; font-weight: 600;
}
.history-financials { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--txt-mute); }
.history-payout         { font-family: var(--font-mono); font-weight: 700; }
.history-payout.win     { color: var(--lime); }
.history-payout.loss    { color: var(--txt-dim); }
.history-payout.pending { color: var(--gold); }
.history-date           { font-size: 11px; color: var(--txt-dim); margin-top: 4px; }

/* ─── Palpites ───────────────────────────────────────────── */

.preds-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 18px 16px;
}

.pred-placed {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--txt-2);
}
.pred-placed-icon { font-size: 1rem; flex-shrink: 0; }
.pred-placed-text { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.pred-pts {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 5px;
}
.pred-pts-3 { background: rgba(203,255,61,0.1); color: var(--lime); border: 1px solid rgba(203,255,61,0.3); }
.pred-pts-1 { background: rgba(93,168,255,0.1); color: var(--blue); border: 1px solid rgba(93,168,255,0.3); }
.pred-pts-0 { background: var(--bg-2); color: var(--txt-dim); }

.pred-exact  .pred-placed-text { color: #a8d830; }
.pred-winner .pred-placed-text { color: var(--blue); }
.pred-miss                     { opacity: 0.5; }

.pred-score-section {
  background: linear-gradient(180deg, #1A1F12 0%, #14160E 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px; margin: 0 18px;
  overflow: hidden; position: relative;
}

.pred-score-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 16px;
}

.pred-score-team {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; flex: 1;
  background: rgba(10,11,7,0.55);
  border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 10px;
}

.pred-team-name {
  font-size: 13px; color: var(--txt-mute);
  text-align: center; font-weight: 600;
}

.pred-score-controls { display: flex; align-items: center; gap: 10px; }

.pred-score-btn {
  width: 34px; height: 34px;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 50%; color: var(--txt);
  font-size: 18px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s; line-height: 1;
}
.pred-score-btn:hover { border-color: var(--txt-dim); }

.pred-score-val {
  font-family: var(--font-display);
  font-size: 64px; line-height: 0.9;
  color: var(--lime);
  text-shadow: 0 0 24px rgba(203,255,61,0.3);
  min-width: 50px; text-align: center;
}

.pred-score-sep {
  font-family: var(--font-display);
  font-size: 32px; color: var(--txt-dim); flex-shrink: 0;
}

.pred-quick-scores {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-top: 10px; justify-content: center;
}
.pred-quick-btn {
  padding: 5px 8px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px; color: var(--txt-mute);
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
}
.pred-quick-btn:hover   { border-color: var(--txt-dim); color: var(--txt); }
.pred-quick-btn.selected { border-color: var(--lime); background: rgba(203,255,61,0.08); color: var(--lime); }

.pred-points-info {
  background: rgba(10,11,7,0.5);
  border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 12px 14px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-top: 12px;
}
.pred-points-row {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 13px; color: var(--txt-mute);
}
.pred-pts-label   { font-weight: 700; font-family: var(--font-mono); font-size: 15px; }
.pred-pts-label-3 { color: var(--lime); }
.pred-pts-label-1 { color: var(--blue); }
.pred-pts-label-0 { color: var(--txt-dim); }

.pred-stats-card {
  display: flex;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  margin: 0 18px 16px;
}
.pred-stat {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 3px; padding: 16px 8px;
  border-right: 1px solid var(--line-soft);
}
.pred-stat:last-child { border-right: none; }
.pred-stat-val {
  font-family: var(--font-display);
  font-size: 28px; color: var(--txt); line-height: 1;
}
.pred-stat-label { font-size: 10px; color: var(--txt-dim); text-align: center; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* ─── Ranking ────────────────────────────────────────────── */

.ranking-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 18px 16px;
}
.ranking-title { font-family: var(--font-display); font-size: 28px; text-transform: uppercase; }
.ranking-live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700;
  color: var(--lime); background: rgba(203,255,61,0.1);
  border: 1px solid rgba(203,255,61,0.3);
  border-radius: 999px; padding: 3px 10px; letter-spacing: 0.04em;
}

/* Pódio */
.ranking-podium {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: flex-end;
  gap: 6px;
  margin: 0 18px 20px;
  padding: 20px 12px 0;
  background: linear-gradient(180deg, rgba(203,255,61,0.04) 0%, transparent 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
}

.podium-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding-bottom: 16px;
}

.podium-crown { font-size: 1rem; line-height: 1; }

.podium-avatar {
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.podium-card:nth-child(2) .podium-avatar {
  width: 64px; height: 64px; font-size: 14px;
  box-shadow: 0 0 0 3px rgba(255,197,61,0.5), 0 0 24px rgba(255,197,61,0.4);
}
.podium-card:not(:nth-child(2)) .podium-avatar {
  width: 52px; height: 52px;
}

.podium-name {
  font-size: 11px; font-weight: 700; color: var(--txt-2);
  text-align: center; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 100%;
}

.podium-points {
  font-family: var(--font-display);
  font-size: 22px; color: var(--txt); line-height: 1;
}
.podium-card.podium-first .podium-points { color: var(--gold); font-size: 28px; }
.podium-points span { font-family: var(--font-body); font-size: 10px; color: var(--txt-dim); }

.podium-balance { font-size: 10px; color: var(--txt-dim); font-family: var(--font-mono); }

/* Degraus do pódio */
.podium-base {
  width: 100%; border-radius: 6px 6px 0 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.08em;
  padding: 4px 0;
}
.podium-base-1 { height: 52px; background: rgba(255,197,61,0.15); border: 1px solid rgba(255,197,61,0.3); color: var(--gold); }
.podium-base-2 { height: 36px; background: rgba(192,192,206,0.1); border: 1px solid rgba(192,192,206,0.2); color: var(--silver); }
.podium-base-3 { height: 24px; background: rgba(205,127,50,0.1); border: 1px solid rgba(205,127,50,0.2); color: var(--bronze); }

/* Tabela 4º+ */
.rank-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s;
}
.rank-row:last-child { border-bottom: none; }
.rank-row:hover { background: rgba(255,255,255,0.02); }
.rank-row.me { background: rgba(203,255,61,0.04); }

.rank-pos { font-size: 12px; color: var(--txt-dim); width: 20px; text-align: center; font-weight: 700; }
.rank-avatar {
  width: 32px; height: 32px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--bg-0);
  flex-shrink: 0;
}
.rank-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rank-name { font-size: 13px; font-weight: 700; color: var(--txt-2); }
.rank-row.me .rank-name { color: var(--lime); }
.rank-sub  { font-size: 11px; color: var(--txt-dim); }
.rank-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rank-pts {
  font-family: var(--font-display);
  font-size: 20px; color: var(--txt); line-height: 1;
}
.rank-row.me .rank-pts { color: var(--lime); }
.rank-bal { font-family: var(--font-mono); font-size: 11px; color: var(--txt-dim); }

/* ─── Predictor ──────────────────────────────────────────── */

.predictor-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 18px 16px;
}
.predictor-title { font-family: var(--font-display); font-size: 28px; text-transform: uppercase; }
.predictor-pts {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 700;
  color: var(--lime); background: rgba(203,255,61,0.1);
  border: 1px solid rgba(203,255,61,0.3);
  border-radius: 999px; padding: 4px 12px;
}

.predictor-tabs { display: flex; gap: 6px; margin: 0 18px 16px; }
.predictor-tab-btn {
  flex: 1; padding: 10px 8px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-md); color: var(--txt-mute);
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
}
.predictor-tab-btn:hover:not([disabled]) { border-color: var(--txt-dim); color: var(--txt-2); }
.predictor-tab-btn.active {
  border-color: var(--lime); background: rgba(203,255,61,0.08); color: var(--lime);
}
.predictor-tab-btn[disabled] { opacity: 0.3; cursor: not-allowed; }

.pred-groups-info { font-size: 12px; color: var(--txt-mute); margin: 0 18px 16px; line-height: 1.6; }

.pred-group-card {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 14px;
  margin: 0 18px 8px;
}
.pred-group-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pred-group-label  { font-size: 11px; font-weight: 700; color: var(--lime); text-transform: uppercase; letter-spacing: 0.12em; }
.pred-group-hint   { font-size: 11px; color: var(--txt-dim); }
.pred-group-locked { font-size: 11px; color: var(--txt-mute); }

.pred-group-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.pred-group-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); font-size: 13px;
  transition: background 0.1s, border-color 0.1s; user-select: none;
}
.pred-group-list.is-draggable .pred-group-item { cursor: grab; }
.pred-group-list.is-draggable .pred-group-item:active { cursor: grabbing; }
.pred-group-item.qualifies { border-left: 2px solid var(--lime); }
.pred-group-item.dragging  { opacity: 0.4; }
.pred-group-item.drag-over { border-color: var(--lime); background: rgba(203,255,61,0.06); }
.pred-group-list.is-locked .pred-group-item { opacity: 0.65; }

.pred-group-pos  { font-size: 11px; color: var(--txt-dim); width: 20px; flex-shrink: 0; }
.pred-group-flag { font-size: 1rem; flex-shrink: 0; }
.pred-group-name { flex: 1; color: var(--txt-2); font-weight: 600; }
.pred-group-drag { color: var(--line); font-size: 13px; margin-left: auto; }

#groups-save-area, #bracket-save-area {
  margin: 12px 18px 0; display: flex; flex-direction: column; gap: 8px;
}
.pred-save-ok { font-size: 13px; color: var(--lime); text-align: center; padding: 6px; }

/* Bracket */
.bracket-round { margin: 0 18px 20px; }
.bracket-round-header {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700; color: var(--lime);
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 0.25rem 0; margin-bottom: 8px;
  border-bottom: 1px solid rgba(203,255,61,0.2);
}
.bracket-pts-badge {
  font-size: 10px; font-weight: 700; color: var(--gold);
  background: rgba(255,197,61,0.1); border: 1px solid rgba(255,197,61,0.25);
  border-radius: 4px; padding: 2px 7px;
  text-transform: none; letter-spacing: 0;
}

.bracket-game {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 6px; position: relative;
}
.bracket-game.correct { border-color: rgba(203,255,61,0.3); background: rgba(203,255,61,0.05); }
.bracket-game.wrong   { border-color: rgba(255,61,94,0.2); }
.bracket-game.is-locked { opacity: 0.8; }

.bracket-team {
  flex: 1; display: flex; align-items: center; gap: 6px;
  padding: 7px 10px;
  background: var(--bg-2); border: 1.5px solid var(--line);
  border-radius: 9px; color: var(--txt-mute);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  cursor: pointer; text-align: left; min-width: 0;
  transition: all 0.15s;
}
.bracket-team span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bracket-team:hover:not([disabled]) { border-color: var(--txt-dim); color: var(--txt-2); background: var(--bg-3); }
.bracket-team.selected { border-color: var(--lime); background: rgba(203,255,61,0.08); color: var(--lime); font-weight: 700; }
.bracket-team.wrong    { border-color: rgba(255,61,94,0.4); background: rgba(255,61,94,0.05); color: #FF8090; }
.bracket-team.real-winner.selected { border-color: var(--lime); }
.bracket-team[disabled] { cursor: default; }

.bracket-vs { font-size: 11px; color: var(--txt-dim); flex-shrink: 0; font-weight: 700; }

.bracket-correct-badge {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--lime); background: rgba(203,255,61,0.1);
  border: 1px solid rgba(203,255,61,0.3);
  border-radius: 5px; padding: 2px 6px;
}
.bracket-locked-badge { font-size: 12px; color: var(--txt-dim); flex-shrink: 0; }
