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

/* ─── Design Tokens — Cartola Scout Premium ─────────────────────── */
:root {
  /* Fundo mais profundo — dark navy genuíno */
  --bg:          #060a0f;
  --surface:     #0d1421;
  --surface-2:   #111d2e;
  --surface-3:   #1a2840;
  --border:      #1e3048;
  --border-2:    #2d4a6e;

  /* Gold — identidade Cartola (chapéu dourado), mais sofisticado */
  --gold:        #c9a227;
  --gold-light:  #f0c755;
  --gold-glow:   rgba(201, 162, 39, 0.18);

  /* Green — confirmação/sucesso, mais vibrante */
  --green:       #00c56e;
  --green-dim:   #00875a;
  --green-glow:  rgba(0, 197, 110, 0.15);

  --orange:      #f97316;
  --red:         #ef4444;
  --blue:        #3b82f6;
  --purple:      #a855f7;
  --cyan:        #06b6d4;

  /* Texto levemente azulado — mais premium que cinza puro */
  --text:        #e8f0fe;
  --text-2:      #8ba4c0;
  --text-3:      #4d6a88;

  /* Position colors */
  --pos-gol:     #f59e0b;
  --pos-lat:     #3b82f6;
  --pos-zag:     #8b5cf6;
  --pos-mei:     #06b6d4;
  --pos-ata:     #ef4444;
  --pos-tec:     #64748b;

  --radius:      10px;
  --radius-lg:   16px;
  --sidebar-w:   220px;
  --topbar-h:    60px;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─────────────────────────────────────────────────────── */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  padding: 1.5rem 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.sidebar-logo-icon {
  width: 36px; height: 36px;
  background: var(--gold-glow);
  border: 1px solid var(--gold);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 12px var(--gold-glow);
}
.sidebar-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.sidebar-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 1.25rem 0.5rem;
  margin-top: 0.5rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0.75rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}
.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}
.nav-item.active {
  background: var(--gold-glow);
  color: var(--gold-light);
  border: 1px solid rgba(201,162,39,0.25);
  font-weight: 600;
}
.nav-item .icon { font-size: 1rem; width: 20px; text-align: center; }

.sidebar-bottom {
  margin-top: auto;
  padding: 1rem 0.75rem 0;
  border-top: 1px solid var(--border);
}

/* ─── Main Area ──────────────────────────────────────────────────── */
.main-area {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Topbar ─────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  flex: 1;
}
.topbar-title span { color: var(--text-3); font-weight: 500; }

.live-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}
.live-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.countdown {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  background: var(--gold-glow);
  border: 1px solid rgba(201,162,39,0.35);
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 10px var(--gold-glow);
  animation: gold-pulse 2s ease-in-out infinite;
}
@keyframes gold-pulse {
  0%, 100% { box-shadow: 0 0 10px var(--gold-glow); }
  50% { box-shadow: 0 0 20px rgba(201,162,39,0.35); }
}

/* ─── Page Content ───────────────────────────────────────────────── */
.page {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 1200px;
}

/* ─── Section Headers ────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title::before {
  content: '';
  display: block;
  width: 3px; height: 14px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-light));
  border-radius: 2px;
  box-shadow: 0 0 6px var(--gold-glow);
}

/* ─── Stat Cards ─────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent, var(--green));
  opacity: 0.8;
}
.stat-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.stat-card.gold::before { --accent: var(--gold); }
.stat-card.gold { border-color: rgba(201,162,39,0.2); }
.stat-card.blue::before  { --accent: var(--blue); }
.stat-card.purple::before { --accent: var(--purple); }

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-value .unit {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 2px;
}
.stat-sub {
  font-size: 0.75rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.stat-up   { color: var(--green); }
.stat-down { color: var(--red); }

/* ─── Match Cards ────────────────────────────────────────────────── */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.match-card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.match-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.match-card:hover {
  border-color: rgba(201,162,39,0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.match-card:hover::after { opacity: 1; }

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.match-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}
.match-team.away { flex-direction: row-reverse; }
.match-team-flag { font-size: 1.4rem; }
.match-team-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.match-team.away .match-team-name { text-align: right; }

.match-vs {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.match-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  min-width: 48px;
}

.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.match-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  border: 1px solid;
}
.match-tag.favorito {
  color: var(--green);
  background: var(--green-glow);
  border-color: rgba(0,230,118,0.25);
}
.match-tag.equilibrado {
  color: var(--gold);
  background: var(--gold-glow);
  border-color: rgba(251,191,36,0.25);
}
.match-tag.desfavorito {
  color: var(--red);
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.25);
}

.match-odds {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.match-odd {
  font-size: 0.7rem;
  color: var(--text-3);
  background: var(--surface-2);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  font-weight: 600;
}
.match-odd.best { color: var(--green); }

.match-bar {
  display: flex;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--surface-3);
}
.match-bar-home { background: var(--green); transition: width 0.5s; }
.match-bar-draw { background: var(--text-3); }
.match-bar-away { background: var(--blue); }

/* ─── Pipeline Panel ─────────────────────────────────────────────── */
.pipeline-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.pipeline-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pipeline-form {
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.form-input, .form-select {
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 0.5rem 0.875rem;
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  min-width: 120px;
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #000;
}
.btn-primary:hover { background: var(--green-dim); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

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

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

/* ─── Pipeline Output ────────────────────────────────────────────── */
.pipeline-output {
  border-top: 1px solid var(--border);
}
.pipeline-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--surface-2);
}
.pipeline-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pipeline-status.done  { color: var(--green); }
.pipeline-status.error { color: var(--red); }
.pipeline-status.running::after {
  content: '';
  width: 8px; height: 8px;
  border: 2px solid var(--green);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pipeline-text {
  background: var(--bg);
  padding: 1.25rem 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}

/* ─── Reports List ───────────────────────────────────────────────── */
.reports-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.reports-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.reports-panel-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.reports-list {
  list-style: none;
}
.reports-list li {
  border-bottom: 1px solid var(--border);
}
.reports-list li:last-child { border-bottom: none; }

.report-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.report-item:hover { background: var(--surface-2); }

.report-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--text-3);
  border: 1px solid var(--border);
  flex-shrink: 0;
  min-width: 70px;
  text-align: center;
}
.report-badge.previa   { color: var(--cyan);   border-color: rgba(6,182,212,0.3);   background: rgba(6,182,212,0.08); }
.report-badge.times    { color: var(--green);  border-color: rgba(0,230,118,0.3);   background: rgba(0,230,118,0.08); }
.report-badge.palpites { color: var(--purple); border-color: rgba(168,85,247,0.3);  background: rgba(168,85,247,0.08); }
.report-badge.cardapio { color: var(--cyan);   border-color: rgba(6,182,212,0.3);   background: rgba(6,182,212,0.08); }
.report-badge.time     { color: var(--green);  border-color: rgba(0,230,118,0.3);   background: rgba(0,230,118,0.08); }
.report-badge.ranking  { color: var(--gold);   border-color: rgba(251,191,36,0.3);  background: rgba(251,191,36,0.08); }

.report-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.report-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}
.report-meta {
  font-size: 0.72rem;
  color: var(--text-3);
}
.report-arrow {
  color: var(--text-3);
  font-size: 0.75rem;
}

/* ─── Two-column layout ──────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ─── Empty State ────────────────────────────────────────────────── */
.empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-3);
  font-size: 0.85rem;
}

/* ─── Relatorio page ─────────────────────────────────────────────── */
.relatorio-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.relatorio-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.relatorio-body {
  padding: 1.75rem 2rem;
  max-height: 78vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}

/* Markdown rendered output */
.md-body { color: var(--text-2); font-size: 0.88rem; line-height: 1.8; }

.md-body h1, .md-body h2 {
  font-family: var(--font-display);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin: 1.75rem 0 0.75rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.md-body h1:first-child, .md-body h2:first-child { margin-top: 0; }

.md-body h3 {
  font-family: var(--font-display);
  color: var(--green);
  font-size: 0.9rem;
  margin: 1.25rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.md-body h4 {
  color: var(--text);
  font-size: 0.85rem;
  margin: 1rem 0 0.3rem;
}

.md-body p { margin: 0.5rem 0; }

.md-body strong { color: var(--text); font-weight: 700; }

.md-body em { color: var(--gold); font-style: normal; font-weight: 600; }

.md-body ul, .md-body ol {
  padding-left: 1.4rem;
  margin: 0.4rem 0 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.md-body li { color: var(--text-2); }
.md-body li::marker { color: var(--green); }

.md-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.md-body code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--pos-mei);
}

.md-body pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin: 0.75rem 0;
}
.md-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: #a8c4de;
  font-size: 0.82rem;
}

.md-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.82rem;
}
.md-body table th {
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}
.md-body table td {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  color: var(--text-2);
}
.md-body table tr:hover td { background: var(--surface-2); }

/* highlight medal lines */
.md-body p:has(> strong:first-child),
.md-body li:has(strong:first-child) { color: var(--text); }

/* score/number highlights */
.md-body blockquote {
  border-left: 3px solid var(--green);
  padding: 0.5rem 1rem;
  margin: 0.75rem 0;
  background: rgba(0,230,118,.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-2);
}

/* ─── Cardápio page ─────────────────────────────────────────────── */
.pos-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.pos-filter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.pos-filter:hover { border-color: var(--green); color: var(--text); }
.pos-filter.active { background: var(--green); border-color: var(--green); color: #000; }
.pos-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.player-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.15s, transform 0.1s;
}
.player-card:hover { border-color: var(--border-2); transform: translateY(-1px); }
.player-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.player-medal { font-size: 1.1rem; }
.player-rank-num { font-size: 0.7rem; color: var(--text-3); margin-left: auto; }
.player-pos-tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.player-pos-tag.pos-gol { background: rgba(245,158,11,.15); color: var(--pos-gol); }
.player-pos-tag.pos-lat { background: rgba(59,130,246,.15); color: var(--pos-lat); }
.player-pos-tag.pos-zag { background: rgba(139,92,246,.15); color: var(--pos-zag); }
.player-pos-tag.pos-mei { background: rgba(6,182,212,.15); color: var(--pos-mei); }
.player-pos-tag.pos-ata { background: rgba(239,68,68,.15); color: var(--pos-ata); }

.player-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-selecao { font-size: 0.72rem; color: var(--text-3); }
.player-score-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.player-score-bar-wrap {
  flex: 1;
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
}
.player-score-bar { height: 100%; border-radius: 2px; transition: width 0.4s; }
.player-score-val { font-size: 0.72rem; font-weight: 700; color: var(--text-2); min-width: 32px; text-align: right; }
.player-pts-est { font-size: 0.7rem; color: var(--text-3); }
.player-meta-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin: 0.15rem 0 0.25rem; }
.player-clube { font-size: 0.7rem; color: var(--text-3); }
.player-preco { font-size: 0.7rem; color: var(--gold); font-weight: 600; }
.player-media { font-size: 0.7rem; color: var(--text-2); }
.player-stats-row { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.4rem; }
.player-stat-pill {
  font-size: 0.65rem; font-weight: 600; letter-spacing: .03em;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.15rem 0.5rem; color: var(--text-3);
  white-space: nowrap;
}
.player-stat-pill.pill-green { color: var(--green); border-color: var(--green); background: rgba(0,197,94,.08); }
.analise-claude {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 1.25rem 1.5rem; margin-top: 0.75rem;
  font-size: 0.85rem; line-height: 1.7; color: var(--text-2);
  white-space: pre-wrap; font-family: inherit;
}

/* Palpites */
.palpites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.palpite-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.palpite-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.palpite-team {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.palpite-team.away { text-align: right; }
.palpite-team.winner { color: var(--green); }
.palpite-placar {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-display);
  white-space: nowrap;
  padding: 0 0.5rem;
}
.palpite-probs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.75rem;
}
.palpite-prob { color: var(--text-3); font-weight: 600; }
.palpite-prob.best { color: var(--green); }
.palpite-prob-label { color: var(--border-2); }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  text-align: center;
  gap: 0.5rem;
}
.empty-state-icon { font-size: 3rem; }
.empty-state-title { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.empty-state-sub { font-size: 0.85rem; color: var(--text-3); }

/* ─── Assertividade page ─────────────────────────────────────────── */
.assert-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.assert-section:last-child { border-bottom: none; }

.assert-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.assert-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.assert-table thead th {
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.assert-table tbody td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.assert-table tbody tr:last-child td { border-bottom: none; }
.assert-table tbody tr:hover { background: var(--surface-2); }
.assert-player-name { font-weight: 600; color: var(--text); }
.assert-score { font-weight: 700; color: var(--green); font-family: var(--font-display); }

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

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main-area { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .matches-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .page { padding: 1rem; }
}

/* ─── Wizard Sequencial ──────────────────────────────────────────── */
.wizard-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  transition: opacity 0.2s;
}
.wizard-step--locked { opacity: 0.45; }
.wizard-step-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 110px;
}
.wizard-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-2);
  flex-shrink: 0;
}
.wizard-step--done .wizard-step-num {
  background: var(--green);
  border-color: var(--green);
  color: #000;
}
.wizard-step-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}
.wizard-step-status {
  font-size: 0.7rem;
  color: var(--text-3);
}
.wizard-step--done .wizard-step-status { color: var(--green); }
.wizard-connector {
  width: 2px;
  height: 12px;
  background: var(--border);
  margin-left: 11px;
}
.btn-success {
  background: color-mix(in srgb, var(--green) 15%, transparent);
  border-color: var(--green);
  color: var(--green);
}
