/* ==========================================================================
   FUTEBOL HUB — folha de estilo principal
   Paleta: verde gramado profundo + lima elétrica, com modo claro/escuro.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg:        #0a1410;
  --bg-2:      #0f1d17;
  --surface:   #132a20;
  --surface-2: #18342a;
  --line:      #23483a;
  --line-soft: #1c3a2e;

  --txt:       #eaf5ee;
  --txt-2:     #a3c2b0;
  --txt-3:     #6e9080;

  --lime:      #b6ff3d;
  --lime-dim:  #86c928;
  --cyan:      #35e0d0;
  --amber:     #ffbe3d;
  --red:       #ff5a6a;
  --violet:    #a98bff;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 22px 60px rgba(0,0,0,.5);

  --ff-display: 'Barlow Condensed', 'Inter', sans-serif;
  --ff-body:    'Inter', system-ui, -apple-system, sans-serif;
  --ff-mono:    'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1220px;
}

[data-theme="light"] {
  --bg:        #f2f7f3;
  --bg-2:      #e8f1ea;
  --surface:   #ffffff;
  --surface-2: #f4faf6;
  --line:      #cfe3d6;
  --line-soft: #e0ece4;

  --txt:       #0d2419;
  --txt-2:     #416353;
  --txt-3:     #6b8a78;

  --lime:      #4b9a12;
  --lime-dim:  #3d7f0d;
  --cyan:      #0d9488;
  --amber:     #b06d00;
  --red:       #cc2436;
  --violet:    #6d4fd0;

  --shadow:    0 8px 24px rgba(16,60,38,.10);
  --shadow-lg: 0 20px 50px rgba(16,60,38,.16);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { margin: 0; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
svg { width: 20px; height: 20px; stroke-linecap: round; stroke-linejoin: round; }

/* Linhas de campo decorativas no fundo */
.pitch-lines {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(182,255,61,.07), transparent 55%),
    radial-gradient(circle at 12% 82%, rgba(53,224,208,.05), transparent 50%);
}
.pitch-lines::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,.022) 50%, transparent 50.1%);
  background-size: 100% 100%;
}
[data-theme="light"] .pitch-lines { opacity: .55; }

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line-soft);
}
@supports not (background: color-mix(in srgb, red, blue)) {
  .site-header { background: var(--bg); }
}

.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 66px;
}

.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-mark {
  font-size: 24px; line-height: 1;
  filter: drop-shadow(0 0 10px rgba(182,255,61,.45));
  animation: spin-ball 14s linear infinite;
}
@keyframes spin-ball { to { transform: rotate(360deg); } }
.brand-text {
  font-family: var(--ff-display);
  font-size: 25px; font-weight: 700; letter-spacing: .3px;
  text-transform: uppercase;
}
.brand-text em { font-style: normal; color: var(--lime); }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-btn {
  position: relative;
  padding: 9px 15px; border-radius: 99px;
  font-size: 13.5px; font-weight: 600; color: var(--txt-2);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-btn:hover { color: var(--txt); background: var(--surface); }
.nav-btn.is-active { color: var(--bg); background: var(--lime); }
[data-theme="light"] .nav-btn.is-active { color: #fff; }

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

.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line-soft);
  color: var(--txt-2);
  transition: all .2s;
}
.icon-btn:hover { color: var(--lime); border-color: var(--lime); transform: translateY(-1px); }
.icon-btn.is-spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ico-sun { display: none; }
[data-theme="light"] .ico-moon { display: none; }
[data-theme="light"] .ico-sun { display: block; }

.burger { display: none; }

.live-dot {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 99px;
  background: color-mix(in srgb, var(--red) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 45%, transparent);
  font-family: var(--ff-mono); font-size: 12px; font-weight: 700;
  color: var(--red);
}
.live-dot i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.live-dot[hidden] { display: none; }

/* Faixa de status do scraping */
.status-strip {
  font-family: var(--ff-mono); font-size: 11px; color: var(--txt-3);
  text-align: center; padding: 0 20px;
  max-height: 0; overflow: hidden;
  transition: max-height .3s, padding .3s;
}
.status-strip.is-visible { max-height: 34px; padding: 7px 20px; border-top: 1px solid var(--line-soft); }

/* ---------- 4. Views ---------- */
main { position: relative; z-index: 1; padding: 30px 0 70px; min-height: 62vh; }

.view { display: none; animation: fade-up .4s cubic-bezier(.2,.7,.3,1); }
.view.is-active { display: block; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.view-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 24px;
}
.view-title {
  font-family: var(--ff-display); font-size: clamp(30px, 5vw, 44px);
  font-weight: 700; text-transform: uppercase; letter-spacing: -.3px;
}
.view-sub { margin: 5px 0 0; color: var(--txt-2); font-size: 14.5px; }

.section-title {
  font-family: var(--ff-display); font-size: 24px; font-weight: 700;
  text-transform: uppercase; margin: 38px 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* ---------- 5. Chips / filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 8px 15px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line-soft);
  font-size: 13px; font-weight: 600; color: var(--txt-2);
  transition: all .2s;
}
.chip:hover { border-color: var(--lime); color: var(--txt); }
.chip.is-active {
  background: var(--lime); border-color: var(--lime); color: var(--bg);
}
[data-theme="light"] .chip.is-active { color: #fff; }
.chip-alt.is-active { background: var(--cyan); border-color: var(--cyan); }

/* Contagem dentro do chip: "Ao vivo 5" */
.chip-n {
  display: inline-block; margin-left: 5px;
  font-family: var(--ff-mono); font-size: 10.5px; font-weight: 700;
  padding: 1px 5px; border-radius: 99px;
  background: color-mix(in srgb, var(--txt) 12%, transparent);
  color: inherit;
}
.chip.is-active .chip-n { background: color-mix(in srgb, var(--bg) 22%, transparent); }

/* Faixa sem jogo nenhum: visível mas inerte, para o layout não dançar */
.chip.is-empty {
  opacity: .38; cursor: not-allowed;
}
.chip.is-empty:hover { border-color: var(--line-soft); color: var(--txt-2); }

/* ---------- 5b. Barra de filtros em eixos ---------- */
/* Dia, horário e ligas são perguntas distintas — cada uma na sua linha, com
   rótulo. Numa fileira única o usuário não percebia que "Encerrados" e
   "Principais" se combinavam em vez de se substituírem. */
.filter-bar {
  display: flex; flex-direction: column; gap: 9px;
  margin: 4px 0 22px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.filter-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.filter-legend {
  font-family: var(--ff-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .9px;
  color: var(--txt-3);
  min-width: 54px;
}
.filter-line .chip { padding: 7px 13px; font-size: 12.5px; }

/* Botão de escape do estado vazio */
.btn-reset {
  margin-top: 14px; padding: 9px 18px; border-radius: 99px;
  background: var(--lime); border: none; color: var(--bg);
  font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.btn-reset:hover { filter: brightness(1.08); }

.search-input, .calc-input {
  padding: 10px 15px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--txt); font-size: 14px; font-family: inherit;
  transition: border-color .2s;
}
.search-input { min-width: 230px; }
.search-input:focus, .calc-input:focus { outline: none; border-color: var(--lime); }
.search-input::placeholder, .calc-input::placeholder { color: var(--txt-3); }

/* ---------- 6. Jogos ---------- */
.league-block { margin-bottom: 30px; }

.league-head {
  display: flex; align-items: center; gap: 10px;
  padding: 0 4px 11px;
}
.league-name {
  font-family: var(--ff-display); font-size: 17px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.league-count {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
  background: var(--surface-2); color: var(--txt-3);
}
.league-head::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }

.match-list { display: flex; flex-direction: column; gap: 9px; }

.match {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center; gap: 14px;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: transform .18s, border-color .18s, box-shadow .18s;
  cursor: pointer;
}
.match:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.match.is-live { border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.match.is-live::before {
  content: ''; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--red);
}
.match { position: relative; }

.match-time {
  font-family: var(--ff-mono); font-size: 13px; font-weight: 700;
  color: var(--txt-2); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.match-time .badge-live {
  display: inline-block; padding: 3px 8px; border-radius: 6px;
  background: var(--red); color: #fff; font-size: 11px;
}
.match-time .badge-done {
  display: inline-block; font-size: 10.5px; letter-spacing: .5px;
  color: var(--txt-3); text-transform: uppercase;
}
.match-hour { font-size: 13px; }

/* Selo de dia. Só é renderizado quando a data NÃO é hoje: era a informação
   que faltava no card e que fez um jogo de ontem passar por jogo do dia. */
.day-tag {
  font-family: var(--ff-mono); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  padding: 1.5px 6px; border-radius: 99px; white-space: nowrap;
}
.day-tag.is-past {
  background: color-mix(in srgb, var(--txt-3) 22%, transparent);
  color: var(--txt-2);
}
.day-tag.is-future {
  background: color-mix(in srgb, var(--cyan) 20%, transparent);
  color: var(--cyan);
}

/* Contagem regressiva: "em 25 min" */
.match-until {
  font-family: var(--ff-mono); font-size: 9.5px; font-weight: 600;
  color: var(--txt-3); white-space: nowrap;
}
.match.is-soon .match-until { color: var(--lime); }
.match.is-soon { border-color: color-mix(in srgb, var(--lime) 32%, transparent); }

.match-teams { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.team-row { display: flex; align-items: center; gap: 10px; }
.team-name {
  font-size: 15px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.team-row.is-winner .team-name { color: var(--lime); }
.team-score {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--ff-mono); font-size: 16px; font-weight: 700;
  min-width: 22px; text-align: right;
}

/* Barra de probabilidade compacta dentro do card */
.prob-bar-mini {
  display: flex; height: 5px; border-radius: 99px; overflow: hidden;
  background: var(--surface-2); min-width: 130px;
}
.prob-bar-mini span { display: block; height: 100%; transition: width .5s; }
.pb-home { background: var(--lime); }
.pb-draw { background: var(--txt-3); }
.pb-away { background: var(--cyan); }

.match-odds {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  flex-shrink: 0;
}
.odds-row { display: flex; gap: 5px; }
.odd {
  display: flex; flex-direction: column; align-items: center;
  min-width: 46px; padding: 5px 7px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid transparent;
  transition: all .2s;
}
.odd-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: .6px;
  color: var(--txt-3); text-transform: uppercase;
}
.odd-val { font-family: var(--ff-mono); font-size: 13px; font-weight: 700; }
.odd.is-fav { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 14%, var(--surface-2)); }
.odd.is-fav .odd-val { color: var(--lime); }

/* ---------- 7. Detalhe expandido do jogo ---------- */
.match-detail {
  grid-column: 1 / -1;
  margin-top: 4px; padding-top: 15px;
  border-top: 1px dashed var(--line);
  display: none;
  animation: fade-up .3s ease;
}
.match.is-open .match-detail { display: block; }

.detail-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
}
.detail-box {
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.detail-box h4 {
  font-size: 10.5px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--txt-3); margin-bottom: 8px;
}
.detail-line {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 13px; padding: 3px 0;
}
.detail-line b { font-family: var(--ff-mono); font-weight: 700; }

.form-pills { display: flex; gap: 3px; }
.form-pill {
  width: 19px; height: 19px; border-radius: 5px;
  display: grid; place-items: center;
  font-family: var(--ff-mono); font-size: 10px; font-weight: 700; color: #06120c;
}
.fp-W { background: var(--lime); }
.fp-D { background: var(--txt-3); color: #fff; }
.fp-L { background: var(--red); color: #fff; }

.conf-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.conf-alta   { background: color-mix(in srgb, var(--lime) 20%, transparent); color: var(--lime); }
.conf-média  { background: color-mix(in srgb, var(--amber) 20%, transparent); color: var(--amber); }
.conf-baixa  { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }
.conf-estimada { background: var(--surface-2); color: var(--txt-3); }

/* ---------- 8. Simulador ---------- */
.calc-card {
  padding: 24px; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.calc-title {
  font-family: var(--ff-display); font-size: 21px; font-weight: 700;
  text-transform: uppercase; margin-bottom: 15px;
}
.calc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.calc-input { flex: 1 1 190px; }
.calc-vs {
  font-family: var(--ff-display); font-size: 20px; font-weight: 700; color: var(--txt-3);
}
.btn-primary {
  padding: 11px 24px; border-radius: 11px;
  background: var(--lime); color: var(--bg);
  font-size: 14px; font-weight: 700;
  transition: transform .15s, filter .15s;
}
[data-theme="light"] .btn-primary { color: #fff; }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }

.calc-out { margin-top: 20px; }
.big-probs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.big-prob {
  padding: 16px 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); text-align: center;
  border: 1px solid transparent;
}
.big-prob.is-fav { border-color: var(--lime); }
.big-prob .bp-label {
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--txt-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.big-prob .bp-val {
  font-family: var(--ff-mono); font-size: 28px; font-weight: 700;
  margin: 4px 0 2px;
}
.big-prob .bp-odd { font-family: var(--ff-mono); font-size: 11px; color: var(--txt-3); }

.prob-area { display: grid; gap: 10px; }

/* ---------- 9. Classificação ---------- */
.table-wrap {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
}
.table-scroll { overflow-x: auto; }
table.standings { width: 100%; border-collapse: collapse; min-width: 620px; }
table.standings th {
  padding: 12px 10px; text-align: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .7px;
  text-transform: uppercase; color: var(--txt-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.standings th.th-team, table.standings td.td-team { text-align: left; }
table.standings td {
  padding: 11px 10px; text-align: center;
  font-size: 13.5px; border-bottom: 1px solid var(--line-soft);
}
table.standings tbody tr:last-child td { border-bottom: none; }
table.standings tbody tr:hover { background: var(--surface-2); }

.pos-badge {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 7px;
  font-family: var(--ff-mono); font-size: 12px; font-weight: 700;
  background: var(--surface-2); color: var(--txt-2);
}
.zone-title  { background: var(--lime); color: #06120c; }
.zone-cl     { background: color-mix(in srgb, var(--cyan) 75%, transparent); color: #04211f; }
.zone-relegation { background: var(--red); color: #fff; }

.td-team { font-weight: 600; white-space: nowrap; }
.td-pts { font-family: var(--ff-mono); font-weight: 700; font-size: 15px; }
.td-mono { font-family: var(--ff-mono); color: var(--txt-2); }

.zone-legend {
  display: flex; flex-wrap: wrap; gap: 16px;
  padding: 13px 16px; border-top: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--txt-3);
}
.zone-legend span { display: flex; align-items: center; gap: 6px; }
.zone-legend i { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- 10. Notícias ---------- */
.news-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
}
.news-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line);
}
.news-thumb {
  aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2);
  position: relative;
}
.news-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-thumb.no-img { display: grid; place-items: center; font-size: 34px; opacity: .2; }

.news-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; gap: 9px; }
.news-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--txt-3);
}
.news-source { color: var(--lime); }
.news-title {
  font-size: 15.5px; font-weight: 700; line-height: 1.32;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-desc {
  font-size: 13px; color: var(--txt-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 4px; }
.news-tag {
  font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 99px;
  background: var(--surface-2); color: var(--txt-3);
}

/* ---------- 11. Estados ---------- */
.empty, .loading {
  padding: 56px 20px; text-align: center; color: var(--txt-3);
}
.empty-icon { font-size: 42px; opacity: .4; margin-bottom: 12px; }
.empty h3 { font-size: 17px; color: var(--txt-2); margin-bottom: 6px; }
.empty p { font-size: 13.5px; margin: 0; }

.skeleton {
  height: 74px; border-radius: var(--radius);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 250% 100%;
  animation: shimmer 1.3s linear infinite;
  margin-bottom: 9px;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translate(-50%, 90px);
  padding: 12px 22px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--lime);
  color: var(--txt); font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 300;
  opacity: 0; transition: transform .3s cubic-bezier(.2,.8,.3,1), opacity .3s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- 12. Footer ---------- */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
  padding: 28px 0;
}
.footer-inner { text-align: center; }
.footer-inner p { margin: 0 0 8px; font-size: 13px; color: var(--txt-2); }
.disclaimer {
  max-width: 760px; margin: 0 auto !important;
  font-size: 11.5px !important; color: var(--txt-3) !important; line-height: 1.6;
}

/* ---------- 13. Responsivo ---------- */
@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: 66px 0 auto; z-index: 99;
    flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px; margin: 0;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .nav-btn { text-align: left; border-radius: var(--radius-sm); padding: 13px 15px; font-size: 15px; }
  .burger { display: grid; }
  .header-inner { gap: 10px; }
  .header-tools { margin-left: auto; }
}

@media (max-width: 700px) {
  .wrap { padding: 0 14px; }
  .match {
    grid-template-columns: 58px 1fr;
    gap: 10px; padding: 13px 14px;
  }
  .match-odds {
    grid-column: 1 / -1;
    flex-direction: row; align-items: center; justify-content: space-between;
    margin-top: 4px; padding-top: 10px;
    border-top: 1px solid var(--line-soft);
  }
  .prob-bar-mini { min-width: 90px; flex: 1; margin-right: 10px; }
  .team-name { font-size: 14px; }
  .big-probs { grid-template-columns: 1fr; }
  .search-input { min-width: 0; width: 100%; }
  .view-head { align-items: flex-start; }
  .news-grid { grid-template-columns: 1fr; }

  /* A coluna de horário cai para 58px no mobile e agora carrega até três
     linhas (hora, selo de dia, contagem). Reduzo os tipos em vez de deixar
     "Ontem" ou "em 25 min" quebrarem no meio da palavra. */
  .day-tag { font-size: 8px; padding: 1px 4px; }
  .match-until { font-size: 8.5px; }
  .match-hour { font-size: 12px; }

  /* Rótulo do eixo acima dos chips: em 320px, "Horário" + 5 chips na mesma
     linha não cabe, e o legend empurraria tudo para uma coluna estreita. */
  .filter-bar { padding: 12px 13px; gap: 12px; }
  .filter-line { align-items: flex-start; }
  .filter-legend { min-width: 100%; margin-bottom: -2px; }
  .filter-line .chip { padding: 6px 11px; font-size: 12px; }

  /* Cabeçalho: marca + 5 controles somavam ~411px numa faixa de 362px, então a
     página inteira ganhava rolagem horizontal de 19px. Encolho a marca (que
     pode ceder espaço) em vez dos botões, que precisam de área de toque. */
  .header-inner { gap: 8px; }
  .brand { min-width: 0; }
  .brand-text {
    font-size: 19px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .header-tools { gap: 5px; flex-shrink: 0; }
  .icon-btn { width: 34px; height: 34px; border-radius: 9px; }
  .icon-btn svg { width: 17px; height: 17px; }
}

/* Telas muito estreitas (≤360px): a marca vira só o ícone. Um logo cortado no
   meio da palavra comunica menos que o símbolo sozinho. */
@media (max-width: 360px) {
  .brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   VALIDAÇÃO DO MODELO (backtest)
   ========================================================================== */

.bt-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.bt-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bt-card.is-good { border-color: color-mix(in srgb, var(--lime) 45%, var(--line)); }
.bt-card.is-bad  { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }

.bt-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--txt-3);
  font-weight: 600;
}
.bt-value {
  font-family: var(--ff-display);
  font-size: 30px;
  line-height: 1.05;
  color: var(--txt);
}
.bt-card.is-good .bt-value { color: var(--lime); }
.bt-card.is-bad .bt-value  { color: var(--red); }
.bt-note { font-size: 12px; color: var(--txt-2); }

.bt-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 20px;
}

.bt-h2 {
  font-family: var(--ff-display);
  font-size: 21px;
  letter-spacing: .01em;
  margin: 0 0 8px;
  color: var(--txt);
}

.bt-p {
  font-size: 13.5px;
  color: var(--txt-2);
  margin: 0 0 16px;
  max-width: 74ch;
  line-height: 1.55;
}
.bt-muted { color: var(--txt-3); font-size: 12.5px; margin: 14px 0 0; }

.bt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.bt-table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--txt-3);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.bt-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--txt-2);
}
.bt-table tbody tr:last-child td { border-bottom: none; }
.bt-table tr.is-model td {
  background: color-mix(in srgb, var(--lime) 8%, transparent);
  color: var(--txt);
}
.bt-num { font-family: var(--ff-mono); font-size: 12.5px; white-space: nowrap; }
.bt-table .is-good { color: var(--lime); }
.bt-table .is-warn { color: var(--amber); }
.bt-table .is-bad  { color: var(--red); }

/* Barra de calibração: previsto (barra) vs. real (marcador) */
.bt-cal-cell {
  position: relative;
  min-width: 130px;
  height: 20px;
  padding: 0 !important;
  vertical-align: middle;
}
.bt-cal-cell::before {
  content: '';
  position: absolute;
  inset: 8px 0 auto 0;
  height: 5px;
  border-radius: 3px;
  background: var(--surface-2);
}
.bt-cal-bar {
  position: absolute;
  top: 8px;
  left: 0;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
}
.bt-cal-dot {
  position: absolute;
  top: 4px;
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--txt);
  box-shadow: 0 0 0 2px var(--surface);
}

.bt-method { background: var(--surface-2); }
.bt-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.bt-list li {
  font-size: 13.5px;
  color: var(--txt-2);
  line-height: 1.55;
}
.bt-list strong { color: var(--txt); }
.bt-list li.bt-warn::marker { color: var(--amber); }
.bt-list li.bt-warn strong { color: var(--amber); }

.empty code {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--lime);
}

/* ==========================================================================
   BILHETES / TRADE ESPORTIVO
   ========================================================================== */
.tk-list { display: flex; flex-direction: column; gap: 8px; }

.tk-leg {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'main nums' 'match nums';
  gap: 2px 14px;
  align-items: center;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.tk-leg-main { grid-area: main; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-leg-match { grid-area: match; font-size: 13px; color: var(--txt-2); }
.tk-leg-nums { grid-area: nums; text-align: right; display: flex; flex-direction: column; gap: 1px; }

.tk-market { font-weight: 650; font-size: 13.5px; color: var(--txt); }
.tk-sel { font-size: 12.5px; color: var(--txt-3); }
.tk-meta { font-size: 11.5px; color: var(--txt-3); margin-left: 6px; }
.tk-sub { display: block; font-size: 10.5px; color: var(--txt-3); font-family: var(--ff-body); }

.tk-prob { font-family: var(--ff-mono); font-size: 16px; font-weight: 600; color: var(--lime); }
.tk-odd, .tk-liab { font-size: 11px; color: var(--txt-3); font-family: var(--ff-mono); }
.tk-liab { color: var(--amber); }

/* Selo de status: vem do backtest, não de opinião */
.tk-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid;
  cursor: help;
  white-space: nowrap;
}
.tk-ok      { color: var(--lime);  border-color: color-mix(in srgb, var(--lime) 45%, transparent);  background: color-mix(in srgb, var(--lime) 10%, transparent); }
.tk-mid     { color: var(--cyan);  border-color: color-mix(in srgb, var(--cyan) 45%, transparent);  background: color-mix(in srgb, var(--cyan) 10%, transparent); }
.tk-neutral { color: var(--txt-3); border-color: var(--line); background: transparent; }
.tk-warn    { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); background: color-mix(in srgb, var(--amber) 10%, transparent); }

.tk-pos { color: var(--lime); }
.tk-neg { color: var(--red); }

/* Bilhete combinado: agrupa as pernas sob um cabeçalho com o total */
.tk-ticket {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.tk-ticket-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--lime) 7%, var(--surface-2));
  border-bottom: 1px solid var(--line);
}
.tk-ticket-n { font-family: var(--ff-display); font-size: 17px; letter-spacing: .02em; color: var(--txt); }
.tk-ticket-legs { font-size: 11.5px; color: var(--txt-3); }
.tk-ticket-prob { margin-left: auto; font-family: var(--ff-mono); font-size: 17px; font-weight: 600; color: var(--lime); }
.tk-ticket-odd { font-family: var(--ff-mono); font-size: 11.5px; color: var(--txt-3); }
.tk-ticket .tk-list { padding: 8px; gap: 6px; }
.tk-ticket .tk-leg { background: var(--surface); }

.tk-tbl-match { font-weight: 600; color: var(--txt); font-size: 13px; white-space: nowrap; }
.tk-table td:first-child { min-width: 190px; }
/* Jogo sem classificação: número existe, mas não é previsão de verdade */
.tk-table tr.tk-dim td { opacity: .5; }

@media (max-width: 700px) {
  .bt-block { padding: 16px 14px; }
  .bt-value { font-size: 26px; }
  .bt-cal-cell { display: none; }
  /* Só as tabelas que TÊM coluna de gráfico perdem a última coluna */
  .bt-table.has-cal thead th:last-child { display: none; }

  .tk-leg {
    grid-template-columns: 1fr;
    grid-template-areas: 'main' 'match' 'nums';
    gap: 4px;
  }
  .tk-leg-nums { text-align: left; flex-direction: row; align-items: baseline; gap: 10px; }
  .tk-ticket-head { flex-wrap: wrap; gap: 8px; }
  .tk-ticket-prob { margin-left: 0; }
}

/* ==========================================================================
   ÁREA RESTRITA (login de administrador)
   Bilhetes e Validação tratam de mercados de aposta e ficam atrás de login
   por precaução quanto à legislação brasileira de apostas.
   ========================================================================== */

/* Cadeado: fechado por padrão, aberto quando autenticado */
.ico-unlock { display: none; }
#adminBtn.is-on .ico-lock { display: none; }
#adminBtn.is-on .ico-unlock { display: block; }
#adminBtn.is-on { color: var(--lime); border-color: var(--lime); }

.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(4, 12, 8, .74);
  backdrop-filter: blur(4px);
}
.modal.is-open { display: flex; }

.modal-box {
  width: 100%; max-width: 430px;
  padding: 26px 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.modal-title {
  font-family: var(--ff-display); font-size: 26px; font-weight: 700;
  margin: 0 0 8px;
}
.modal-sub { font-size: 13.5px; color: var(--txt-2); line-height: 1.55; margin: 0 0 16px; }
.modal-box .calc-input { width: 100%; flex: none; }

.modal-error {
  min-height: 18px; margin: 8px 0 0;
  font-size: 12.5px; font-weight: 600; color: var(--red);
}
.modal-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 14px;
}
.btn-ghost {
  padding: 11px 20px; border-radius: 11px;
  border: 1px solid var(--line);
  background: transparent; color: var(--txt-2);
  font-size: 14px; font-weight: 600;
  transition: color .15s, border-color .15s;
}
.btn-ghost:hover { color: var(--txt); border-color: var(--txt-3); }
.modal-hint {
  margin: 16px 0 0; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--txt-3); line-height: 1.6;
}
.modal-hint code, .nodata-hint code {
  padding: 1px 5px; border-radius: 5px;
  background: var(--surface-2); font-family: var(--ff-mono); font-size: 11px;
}

/* ==========================================================================
   JOGO SEM DADOS
   Sem nenhum dos times em tabela monitorada, o modelo devolveria o mesmo
   número para qualquer confronto. Dizemos isso em vez de exibi-lo.
   ========================================================================== */
.odds-row.is-nodata {
  display: flex; align-items: center; justify-content: center;
  min-height: 42px;
}
.nodata-tag {
  padding: 5px 11px; border-radius: 20px;
  border: 1px dashed var(--line);
  background: var(--surface-2);
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--txt-3);
  white-space: nowrap; cursor: help;
}

.nodata-panel {
  padding: 16px 18px; border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  background: var(--surface-2);
}
.nodata-panel h4 {
  font-family: var(--ff-display); font-size: 17px; font-weight: 700;
  margin: 0 0 8px; color: var(--amber);
}
.nodata-panel p { font-size: 13px; color: var(--txt-2); line-height: 1.6; margin: 0 0 9px; }
.nodata-panel p:last-child { margin-bottom: 0; }
.nodata-panel b { color: var(--txt); }
.nodata-hint { font-size: 11.5px !important; color: var(--txt-3) !important; }

@media (max-width: 700px) {
  .modal-box { padding: 20px 18px 16px; }
  .modal-title { font-size: 22px; }
  .nodata-panel { padding: 13px 14px; }

  /* A faixa de status cabe em uma linha no desktop, mas quebra em duas ou três
     em telas estreitas — com `max-height: 34px` o texto ficava cortado no meio.
     Solto o limite e reduzo a fonte em vez de esconder informação. */
  .status-strip.is-visible {
    max-height: 60px;
    padding: 6px 14px;
    font-size: 10px;
    line-height: 1.45;
  }
}
