/* ============================================================
   Mr. Bets — edgelab  ·  "mesa de operações"
   Dark trading-terminal aesthetic. Tabular numerals.
   Green = valor/positivo · Red = prejuízo · Gray = neutro/sem aposta
   ============================================================ */

:root {
  /* surfaces (cool deep neutrals) */
  --bg-0: #0d0f13;
  --bg-1: #14171d;
  --bg-2: #191d25;
  --bg-3: #20252f;
  --bg-hover: #232936;
  --border: #262c37;
  --border-strong: #333b48;
  --border-glow: #3c4658;

  /* text */
  --tx-hi: #e9ebef;
  --tx-mid: #97a0b0;
  --tx-lo: #606a7b;
  --tx-faint: #454e5d;

  /* semantics: value & risk */
  --pos: #36c977;
  --pos-bright: #4ee08c;
  --pos-bg: rgba(54, 201, 119, 0.13);
  --pos-line: rgba(54, 201, 119, 0.35);
  --neg: #f0566c;
  --neg-bright: #ff6f83;
  --neg-bg: rgba(240, 86, 108, 0.13);
  --neg-line: rgba(240, 86, 108, 0.32);
  --neutral: #74808f;
  --warn: #e2a93c;
  --warn-bg: rgba(226, 169, 60, 0.12);

  /* interactive / brand accent (indigo — distinct from value greens/reds) */
  --accent: #7d8bff;
  --accent-bright: #97a2ff;
  --accent-dim: rgba(125, 139, 255, 0.16);
  --accent-line: rgba(125, 139, 255, 0.4);

  /* gold tick — Mr. Bets brand spark, used sparingly */
  --gold: #e8c15a;

  /* type */
  --ui: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  /* radius / shadow */
  --r-sm: 6px;
  --r-md: 9px;
  --r-lg: 14px;
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-2: 0 8px 28px rgba(0, 0, 0, 0.45);
  --sh-pop: 0 18px 50px rgba(0, 0, 0, 0.6);

  /* density (overridable by Tweaks) */
  --row-h: 52px;
  --cell-pad-y: 11px;
}

[data-density="compact"] {
  --row-h: 42px;
  --cell-pad-y: 7px;
}

/* ---- tema claro (opção) ---- */
[data-theme="light"] {
  --bg-0: #f4f5f7;
  --bg-1: #ffffff;
  --bg-2: #f7f8fa;
  --bg-3: #eceef2;
  --bg-hover: #e7eaef;
  --border: #e3e6ec;
  --border-strong: #d3d8e0;
  --border-glow: #b9c0cc;
  --tx-hi: #181c24;
  --tx-mid: #545d6c;
  --tx-lo: #828c9b;
  --tx-faint: #aab2bf;
  --pos: #1f9d5e;
  --pos-bright: #178a50;
  --pos-bg: rgba(31, 157, 94, 0.10);
  --pos-line: rgba(31, 157, 94, 0.30);
  --neg: #d83a52;
  --neg-bright: #c42f47;
  --neg-bg: rgba(216, 58, 82, 0.09);
  --neg-line: rgba(216, 58, 82, 0.28);
  --neutral: #7a838f;
  --warn: #b9821f;
  --warn-bg: rgba(185, 130, 31, 0.10);
  --gold: #b58a1d;
  --sh-1: 0 1px 2px rgba(20, 25, 35, 0.06);
  --sh-2: 0 10px 28px rgba(20, 25, 35, 0.12);
  --sh-pop: 0 20px 50px rgba(20, 25, 35, 0.2);
}
[data-theme="light"] .topbar { background: linear-gradient(180deg, #fff, #f7f8fa); }
[data-theme="light"] .brand-mark { background: linear-gradient(150deg, #fff, #f1f2f5); }
[data-theme="light"] .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23545d6c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

:root { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-0);
  color: var(--tx-hi);
  font-family: var(--ui);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#root { height: 100%; }

/* tabular numerals everywhere it matters */
.mono, .num {
  font-family: var(--mono);
  font-feature-settings: "tnum" 1, "ss01" 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

::selection { background: var(--accent-dim); }

/* scrollbars */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--bg-3);
  border-radius: 8px;
  border: 3px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ===================== APP SHELL ===================== */
.app {
  display: grid;
  grid-template-columns: 232px 1fr;
  height: 100%;
  overflow: hidden;
}

.rail {
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  gap: 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 22px;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(232, 193, 90, 0.18);
}
.brand-mark span {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--gold);
}
.brand-name {
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--tx-lo);
  letter-spacing: 0.04em;
  margin-top: 3px;
  text-transform: uppercase;
}

.nav-group-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-faint);
  padding: 16px 10px 7px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  color: var(--tx-mid);
  font-size: 14px;
  font-weight: 450;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.13s, color 0.13s;
  user-select: none;
  position: relative;
}
.nav-item:hover { background: var(--bg-2); color: var(--tx-hi); }
.nav-item.active {
  background: var(--accent-dim);
  color: var(--tx-hi);
  border-color: var(--accent-line);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -14px; top: 9px; bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.nav-item svg { width: 17px; height: 17px; flex: none; opacity: 0.9; }
.nav-item .nav-key {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tx-faint);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

.rail-foot {
  margin-top: auto;
  padding: 14px 10px 4px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--tx-lo);
  line-height: 1.5;
}
.rail-foot b { color: var(--tx-mid); font-weight: 500; }

/* ===================== MAIN ===================== */
.main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.topbar {
  height: 60px;
  flex: none;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
}
.topbar .tb-title {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
}
.topbar .tb-spacer { flex: 1; }

/* segmented control / params in topbar */
.param {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--tx-mid);
}
.param-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tx-lo);
}

.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.page {
  padding: 28px 30px 80px;
  max-width: 1480px;
  margin: 0 auto;
  animation: pageIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes pageIn {
    from { transform: translateY(8px); }
    to { transform: none; }
  }
}

.page-head { margin-bottom: 22px; }
.page-h1 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
}
.page-sub {
  color: var(--tx-mid);
  font-size: 14px;
  margin: 7px 0 0;
  max-width: 720px;
  line-height: 1.5;
}

/* ===================== CONTROLS ===================== */
.select, .input, .btn {
  font-family: var(--ui);
  font-size: 13px;
  color: var(--tx-hi);
  background-color: var(--bg-2);
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 7px 11px;
  cursor: pointer;
  transition: border-color 0.13s;
}
.select:hover, .btn:hover { border-color: var(--border-glow); background: var(--bg-3); }
.select:focus, .input:focus { outline: none; border-color: var(--accent); }
.select {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2397a0b0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.input { cursor: text; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 500;
}
.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #0d0f13;
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.btn-ghost { background-color: transparent; border-color: var(--border); }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tx-lo);
  display: flex; align-items: center; gap: 6px;
}

/* tooltip dot */
.hint {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--tx-lo);
  font-size: 9px;
  display: inline-grid; place-items: center;
  cursor: help;
  position: relative;
  font-family: var(--ui);
}
.hint:hover { color: var(--tx-hi); border-color: var(--accent); }
.hint:hover .hint-pop { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.hint-pop {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 4px);
  width: 210px;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  font-size: 11.5px;
  font-family: var(--ui);
  color: var(--tx-mid);
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 50;
  box-shadow: var(--sh-2);
}
/* no topbar (topo da tela) o tooltip abre PRA BAIXO, senão sai da tela */
.topbar .hint-pop { bottom: auto; top: calc(100% + 8px); transform: translate(-50%, -4px); z-index: 200; }
.topbar .hint:hover .hint-pop { transform: translate(-50%, 0); }

/* stepper de rodada no topbar */
.rd-step { display: inline-flex; align-items: center; background: var(--bg-2);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); overflow: hidden; }
.rd-step button { background: transparent; border: none; color: var(--tx-mid);
  padding: 6px 9px; cursor: pointer; display: grid; place-items: center; }
.rd-step button:hover { background: var(--bg-hover); color: var(--tx-hi); }
.rd-step .rd-num { min-width: 30px; text-align: center; font-size: 13px; color: var(--tx-hi); }

/* slider */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 3px;
  background: var(--bg-3);
  outline: none;
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-1);
  box-shadow: 0 0 0 1px var(--accent-line);
  cursor: grab;
}
.range::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-1);
  cursor: grab;
}

/* toggle */
.toggle {
  width: 38px; height: 22px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  flex: none;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--tx-mid);
  transition: transform 0.18s cubic-bezier(0.4,0,0.2,1), background 0.15s;
}
.toggle.on { background: var(--accent-dim); border-color: var(--accent-line); }
.toggle.on::after { transform: translateX(16px); background: var(--accent); }

/* checkbox */
.check {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-2);
  display: grid; place-items: center;
  cursor: pointer;
  flex: none;
  transition: background 0.12s, border-color 0.12s;
}
.check:hover { border-color: var(--accent); }
.check.on { background: var(--accent); border-color: var(--accent); }
.check.on svg { opacity: 1; }
.check svg { opacity: 0; width: 11px; height: 11px; }

/* ===================== CARDS / PANELS ===================== */
.panel {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.panel-pad { padding: 20px 22px; }

.card-grid { display: grid; gap: 14px; }

/* stat / summary card */
.stat {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  min-width: 0;
}
.stat-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tx-lo);
  display: flex; align-items: center; gap: 6px;
}
.stat-val {
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 500;
  margin-top: 9px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-foot { font-size: 11.5px; color: var(--tx-lo); margin-top: 7px; }

/* value semantics */
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.neu { color: var(--tx-mid); }
.gold { color: var(--gold); }

/* edge / value tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.tag-pos { color: var(--pos-bright); background: var(--pos-bg); }
.tag-neg { color: var(--neg-bright); background: var(--neg-bg); }
.tag-neu { color: var(--tx-mid); background: var(--bg-3); }
.tag-warn { color: #e8b84f; background: rgba(232,184,79,.13); }
.warn { color: #e8b84f; }

/* chip / pill */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  color: var(--tx-mid);
  background: var(--bg-2);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s, color 0.12s;
  user-select: none;
}
.chip:hover { border-color: var(--border-glow); color: var(--tx-hi); }
.chip.on {
  background: var(--accent-dim);
  border-color: var(--accent-line);
  color: var(--accent-bright);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }

/* honest-mode banner */
.honest {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12.5px;
  color: var(--tx-mid);
  background: var(--warn-bg);
  border: 1px solid rgba(226, 169, 60, 0.2);
  border-radius: var(--r-sm);
  padding: 9px 13px;
  line-height: 1.4;
}
.honest svg { color: var(--warn); flex: none; width: 16px; height: 16px; }
.honest b { color: var(--tx-hi); font-weight: 550; }

.badge-honest {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--warn);
  background: var(--warn-bg);
  border: 1px solid rgba(226,169,60,0.25);
  border-radius: 20px;
  padding: 4px 11px;
  letter-spacing: 0.01em;
}

/* ===================== TABLE / PLANILHA ===================== */
.book {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.book thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tx-lo);
  font-weight: 500;
  text-align: right;
  padding: 4px 16px 13px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
.book thead th.tl { text-align: left; }
.book tbody td {
  padding: var(--cell-pad-y) 16px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  vertical-align: middle;
  height: var(--row-h);
}
.book tbody td.tl { text-align: left; }
/* respiro entre o cabeçalho e a primeira linha */
.book tbody tr:first-child td { padding-top: calc(var(--cell-pad-y) + 4px); }
.book tbody tr:hover { background: var(--bg-2); }
.book tbody tr.row-off { opacity: 0.4; }
.book tbody tr.row-off:hover { opacity: 0.62; }

.team-cell { display: flex; flex-direction: column; gap: 2px; }
.team-line { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.team-meta { font-family: var(--mono); font-size: 10.5px; color: var(--tx-lo); }

.prob-cell { display: inline-flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.prob-bars { display: inline-flex; gap: 2px; align-items: center; }
.prob-seg {
  height: 7px; border-radius: 2px; min-width: 4px;
}
/* números C/E/F colados na barra, com a cor de cada lado */
.prob-nums {
  display: inline-flex; gap: 5px; align-items: center;
  font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; font-weight: 500;
}
.prob-nums .prob-dot { color: var(--tx-faint); font-size: 10px; font-weight: 400; }
/* % da chance, colado embaixo do líquido na tabela de risco */
.scen-prob {
  display: block; font-family: var(--mono); font-size: 10.5px;
  color: var(--tx-lo); font-weight: 400; margin-top: 2px; letter-spacing: 0.02em;
}

/* editable stake cell */
.stake {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  width: 86px;
  text-align: right;
  background-color: var(--bg-2);
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--tx-hi);
  padding: 7px 9px;
  transition: border-color 0.12s;
}
.stake::placeholder { color: var(--tx-faint); }
.stake:hover { border-color: var(--border-strong); }
.stake:focus { outline: none; border-color: var(--accent); background: var(--bg-3); }
.stake.has-val { color: var(--tx-hi); }
.stake.zero { color: var(--tx-faint); }
.stake-wrap { position: relative; display: inline-flex; align-items: center; }
.stake-pre {
  position: absolute; left: 9px;
  font-family: var(--mono); font-size: 11px; color: var(--tx-faint);
  pointer-events: none;
}
.stake.has-val + .stake-pre, .stake-wrap.filled .stake-pre { color: var(--tx-lo); }

/* best-value side highlight */
.best-side {
  box-shadow: inset 0 0 0 1px var(--pos-line);
  background: var(--pos-bg) !important;
}

/* group section */
.group {
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
}
.group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}
.group-tag {
  width: 9px; height: 9px; border-radius: 3px; flex: none;
}
.group-title { font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; }
.group-desc { font-size: 12px; color: var(--tx-lo); }
.group-count {
  font-family: var(--mono); font-size: 11px; color: var(--tx-mid);
  border: 1px solid var(--border-strong); border-radius: 5px; padding: 2px 7px;
}
.group-strat {
  margin-left: auto;
  display: flex; align-items: center; gap: 9px;
}
.group-mini {
  display: flex; gap: 22px; padding: 11px 18px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.group-mini .gm { display: flex; flex-direction: column; gap: 3px; }
.group-mini .gm .gm-l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tx-lo); }
.group-mini .gm .gm-v { font-family: var(--mono); font-size: 14px; }

.group-body { overflow-x: auto; }
.group-body table { padding: 0 6px; }

.chev { transition: transform 0.18s; color: var(--tx-lo); }
.chev.collapsed { transform: rotate(-90deg); }

/* scenario / risk table */
.scen td.tl { color: var(--tx-mid); }

/* prediction big blocks */
.pred3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pred-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.pred-block.best { border-color: var(--pos-line); }
.pred-block.best::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--pos-bg), transparent 60%);
  pointer-events: none;
}
.pred-side { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tx-lo); }
.pred-team { font-size: 14px; font-weight: 500; margin-top: 2px; color: var(--tx-hi); }
.pred-prob { font-family: var(--mono); font-size: 38px; font-weight: 500; margin: 12px 0 4px; letter-spacing: -0.03em; }
.pred-row { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; font-size: 12.5px; }
.pred-row .pl { color: var(--tx-lo); font-family: var(--mono); font-size: 11px; }

/* expander */
.exp-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 0; cursor: pointer; user-select: none;
  border-top: 1px solid var(--border);
  font-size: 13.5px; font-weight: 500;
}
.exp-head:hover { color: var(--accent-bright); }
.exp-body { padding-bottom: 16px; }

/* result banner */
.result-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  font-size: 13.5px;
}
.result-bar.hit { border-color: var(--pos-line); background: var(--pos-bg); }
.result-bar.miss { border-color: var(--neg-line); background: var(--neg-bg); }
.result-score {
  font-family: var(--mono); font-size: 22px; font-weight: 600;
  padding: 4px 12px; border-radius: var(--r-sm);
  background: var(--bg-3);
}

/* empty / muted state */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--tx-mid);
}
.empty .empty-icon {
  width: 46px; height: 46px; margin: 0 auto 16px;
  border-radius: 12px; display: grid; place-items: center;
  background: var(--warn-bg); color: var(--warn);
  border: 1px solid rgba(226,169,60,0.25);
}
.empty h3 { font-size: 17px; margin: 0 0 8px; color: var(--tx-hi); font-weight: 600; }
.empty p { margin: 0 auto; max-width: 440px; line-height: 1.55; font-size: 13.5px; }

/* live-feedback strip */
.live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--tx-mid);
}
.live .live-num { font-family: var(--mono); color: var(--tx-hi); font-weight: 500; }
.live .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-line);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-line); }
  70% { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* modal / glossary slide-over */
.overlay {
  position: fixed; inset: 0;
  background: rgba(5, 6, 9, 0.62);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: flex; justify-content: flex-end;
  animation: fade 0.2s;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 480px; max-width: 92vw;
  background: var(--bg-1);
  border-left: 1px solid var(--border-strong);
  height: 100%;
  overflow-y: auto;
  padding: 26px 28px 60px;
  animation: slideIn 0.28s cubic-bezier(0.22,1,0.36,1);
  box-shadow: var(--sh-pop);
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.sheet-x {
  position: absolute; top: 22px; right: 26px;
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border); color: var(--tx-mid);
}
.sheet-x:hover { background: var(--bg-3); color: var(--tx-hi); }

.gl-item { padding: 15px 0; border-bottom: 1px solid var(--border); }
.gl-term { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 9px; }
.gl-term .formula { font-family: var(--mono); font-size: 11.5px; color: var(--accent-bright); background: var(--accent-dim); padding: 2px 8px; border-radius: 5px; }
.gl-def { color: var(--tx-mid); font-size: 13px; line-height: 1.55; margin-top: 6px; }

/* utility */
.flex { display: flex; }
.ai-c { align-items: center; }
.jc-sb { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.muted { color: var(--tx-mid); }
.faint { color: var(--tx-lo); }
.fine { font-size: 11.5px; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.sticky-sum { position: sticky; bottom: 0; }

/* ===== tela Rodada (usuário final) ===== */
.rodada-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; margin-bottom: 18px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent-dim), transparent 70%);
  border: 1px solid var(--accent-line); }
.ri-title { font-size: 15px; font-weight: 600; color: var(--tx-hi); }
.ri-sub { font-size: 12px; color: var(--tx-mid); margin-top: 3px; }
.ri-count { font-size: 12px; color: var(--tx-mid); white-space: nowrap; }

.gcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.gcard { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s; }
.gcard:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.gcard-top { display: flex; align-items: center; justify-content: space-between; }
.gcard-when { font-size: 11.5px; color: var(--tx-faint); }
.badge { font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 20px; }
.badge-val { background: rgba(54,201,119,.15); color: #36c977; border: 1px solid rgba(54,201,119,.35); }
.badge-warn { background: rgba(232,184,79,.13); color: #e8b84f; border: 1px solid rgba(232,184,79,.32); }
.gcard-teams { font-size: 15.5px; font-weight: 600; color: var(--tx-hi); line-height: 1.25; }
.gcard-teams .x { color: var(--tx-faint); font-weight: 400; margin: 0 4px; }
.gcard-pick { font-size: 12.5px; color: var(--tx-mid); display: flex; align-items: center; gap: 7px; }
.gcard-pick b { color: var(--tx-hi); }
.pick-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.pick-conf { margin-left: auto; color: var(--tx-hi); font-weight: 600; }

.mkt-tabs { display: flex; gap: 4px; background: var(--bg-2); border-radius: var(--r-sm); padding: 3px; }
.mkt-tab { flex: 1; font-family: var(--ui); font-size: 11.5px; font-weight: 500; padding: 6px 4px;
  border: none; border-radius: 5px; background: transparent; color: var(--tx-mid); cursor: pointer; }
.mkt-tab.on { background: var(--bg-hover); color: var(--tx-hi); box-shadow: var(--sh-1); }

.mkt-rows { display: flex; flex-direction: column; gap: 6px; }
.mkt-row { display: grid; grid-template-columns: 96px 1fr 38px auto; align-items: center; gap: 8px; font-size: 12px; }
.mkt-row.best .mkt-label { color: var(--tx-hi); font-weight: 600; }
.mkt-label { color: var(--tx-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-track { height: 7px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.mkt-fill { display: block; height: 100%; border-radius: 4px; }
.mkt-pct { color: var(--tx-hi); text-align: right; font-size: 11.5px; }
.mkt-odd { color: var(--tx-mid); font-size: 11px; min-width: 34px; text-align: right; }
.mkt-edge { font-size: 10px; font-weight: 700; color: #36c977; }

.gcard-scores { font-size: 11.5px; color: var(--tx-faint); display: flex; flex-direction: column; gap: 6px; }
.gs-lbl { color: var(--tx-mid); }
.gs-leg { color: var(--tx-faint); font-style: normal; font-size: 10.5px; }
.gs-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.score-pill { background: var(--bg-2); border-radius: 5px; padding: 2px 7px; color: var(--tx-mid); }
.score-pill i { color: var(--tx-faint); font-style: normal; }
.score-pill.over { background: rgba(54,201,119,.12); color: #36c977; }
.score-pill.over i { color: rgba(54,201,119,.7); }
.gols-hint { font-size: 11.5px; color: var(--tx-mid); background: var(--bg-2); border-radius: var(--r-sm); padding: 6px 9px; }
.gols-hint .t-over { color: #36c977; }
.badge-zebra { font-size: 11px; color: #e8b84f; background: rgba(232,184,79,.10);
  border: 1px solid rgba(232,184,79,.28); border-radius: var(--r-sm); padding: 6px 9px; line-height: 1.4; }
.gcard-res { font-size: 12px; padding: 6px 9px; border-radius: var(--r-sm);
  background: var(--bg-2); color: var(--tx-mid); }
.gcard-res b { color: var(--tx-hi); }
.rodada-foot { margin-top: 20px; font-size: 11px; color: var(--tx-faint); text-align: center; line-height: 1.5; }

@media (max-width: 560px) { .gcard-grid { grid-template-columns: 1fr; } .rodada-intro { flex-direction: column; align-items: flex-start; } }

/* ===== menu hambúrguer (mobile) ===== */
.hamburger { display: none; }
.rail-backdrop { display: none; }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .rail {
    position: fixed; top: 0; left: 0; bottom: 0; width: 244px; z-index: 300;
    transform: translateX(-100%); transition: transform .22s cubic-bezier(.22,1,.36,1);
    box-shadow: 2px 0 24px rgba(0,0,0,.45);
  }
  .rail.open { transform: translateX(0); }
  .rail-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 290; }
  .hamburger {
    display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
    background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
    color: var(--tx-hi); cursor: pointer;
  }
  .topbar { flex-wrap: wrap; height: auto; min-height: 60px; padding: 9px 14px; gap: 9px; }
  .tb-spacer { display: none; }
  .topbar .param { flex: 1 1 auto; }
  .page { padding: 18px 16px 64px; }
}

/* ============ auth / landing ============ */
.landing { display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 100vh; background: var(--bg-0); color: var(--tx-hi); }
.lp-hero { padding: 64px 60px; display: flex; flex-direction: column; justify-content: center; background:
  radial-gradient(900px 500px at 0% 0%, var(--accent-dim), transparent 60%), var(--bg-1); border-right: 1px solid var(--border); }
.lp-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.lp-h1 { font-size: 40px; line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; margin: 0 0 18px; }
.lp-sub { font-size: 15px; line-height: 1.6; color: var(--tx-mid); max-width: 480px; margin: 0 0 28px; }
.lp-feats { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 13px; }
.lp-feats li { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: var(--tx-hi); }
.lp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-line); flex: none; }
.lp-foot { font-size: 11.5px; color: var(--tx-faint); margin-top: auto; }
.lp-authcol { display: grid; place-items: center; padding: 40px; }
.auth-card { width: 100%; max-width: 360px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 16px; padding: 28px 26px; box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.auth-tabs { display: flex; gap: 6px; background: var(--bg-3); border-radius: 10px; padding: 4px; margin-bottom: 22px; }
.auth-tabs button { flex: 1; padding: 9px; border: none; background: transparent; color: var(--tx-mid); font-size: 13px; font-weight: 500; border-radius: 7px; cursor: pointer; font-family: inherit; }
.auth-tabs button.on { background: var(--bg-1); color: var(--tx-hi); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.auth-field { display: block; margin-bottom: 15px; }
.auth-field span { display: block; font-size: 11.5px; color: var(--tx-mid); margin-bottom: 6px; }
.auth-field input { width: 100%; padding: 11px 13px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; color: var(--tx-hi); font-size: 14px; font-family: inherit; box-sizing: border-box; }
.auth-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.auth-submit { width: 100%; padding: 12px; margin-top: 4px; background: var(--accent); color: #0d0f13; border: none; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.auth-submit:hover { background: var(--accent-bright); }
.auth-submit:disabled { opacity: 0.6; cursor: default; }
.auth-err { background: var(--neg-bg); color: var(--neg-bright); font-size: 12.5px; padding: 9px 12px; border-radius: 8px; margin-bottom: 14px; border: 1px solid var(--neg-line); }
.auth-alt { text-align: center; font-size: 12.5px; color: var(--tx-mid); margin-top: 18px; }
.auth-alt a { color: var(--accent-bright); cursor: pointer; font-weight: 500; }
@media (max-width: 820px) { .landing { grid-template-columns: 1fr; } .lp-hero { padding: 44px 30px; } .lp-h1 { font-size: 30px; } }

/* ============ rail user ============ */
.rail-user { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; margin-bottom: 12px; }
.ru-avatar { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-dim); color: var(--accent-bright); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.ru-info { flex: 1; min-width: 0; }
.ru-name { font-size: 12.5px; font-weight: 550; color: var(--tx-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ru-plan { font-size: 10.5px; color: var(--tx-mid); }

/* barra de aviso do teste grátis (trial do Pro) */
.trial-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 0 0 16px; padding: 11px 16px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(90deg, rgba(99,102,241,.16), rgba(99,102,241,.06));
  border: 1px solid rgba(99,102,241,.35); transition: filter .15s; }
.trial-bar:hover { filter: brightness(1.12); }
.trial-bar.urgent { background: linear-gradient(90deg, rgba(239,68,68,.18), rgba(239,68,68,.06)); border-color: rgba(239,68,68,.45); }
.trial-txt { font-size: 13px; color: var(--tx-hi); }
.trial-txt b { color: var(--tx-mid); font-weight: 600; }
.trial-cta { flex: none; background: var(--acc, #6366f1); color: #fff; border: none; border-radius: 8px;
  padding: 7px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.trial-bar.urgent .trial-cta { background: #ef4444; }
.trial-cta:hover { filter: brightness(1.08); }
@media (max-width: 620px) { .trial-bar { flex-direction: column; align-items: stretch; text-align: center; } }

/* barra "confirme seu e-mail" (verificação pendente) */
.verify-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 0 0 16px; padding: 11px 16px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(245,158,11,.16), rgba(245,158,11,.05));
  border: 1px solid rgba(245,158,11,.42); }
.verify-txt { font-size: 13px; color: var(--tx-hi); }
.verify-txt b { font-weight: 600; }
.verify-cta { flex: none; background: #f59e0b; color: #1a1200; border: none; border-radius: 8px;
  padding: 7px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.verify-cta:hover { filter: brightness(1.06); }
.verify-cta:disabled { opacity: .6; cursor: default; }
@media (max-width: 620px) { .verify-bar { flex-direction: column; align-items: stretch; text-align: center; } }

/* toast de aviso (verificação ok/erro) */
.app-toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 1100;
  max-width: 92vw; padding: 12px 18px; border-radius: 11px; font-size: 13.5px; font-weight: 500;
  cursor: pointer; box-shadow: 0 12px 40px rgba(0,0,0,.4); display: flex; align-items: center; gap: 14px; }
.app-toast.ok { background: #16361f; color: #6ee7a8; border: 1px solid rgba(110,231,168,.4); }
.app-toast.err { background: #3a1620; color: #fca5b5; border: 1px solid rgba(252,165,181,.4); }
.app-toast-x { opacity: .6; font-size: 17px; line-height: 1; }
.ru-logout { background: transparent; border: none; color: var(--tx-lo); cursor: pointer; padding: 5px; border-radius: 7px; display: grid; place-items: center; }

/* modal de confirmação do admin (definir Pro/Free + prazo) */
.adm-modal-bg { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 20px; }
.adm-modal { width: 100%; max-width: 420px; background: var(--panel, #14161c); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.adm-modal-h { font-size: 17px; font-weight: 700; color: var(--tx-hi); margin-bottom: 8px; }
.adm-modal-sub { font-size: 13px; color: var(--tx-mid); line-height: 1.5; margin: 0 0 16px; }
.adm-modal-sub b { color: var(--tx-hi); }
.adm-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.adm-day { padding: 9px 0; font-size: 12.5px; border-radius: 9px; cursor: pointer; background: var(--bg-soft, rgba(255,255,255,.04)); color: var(--tx-mid); border: 1px solid var(--border); }
.adm-day:hover { color: var(--tx-hi); }
.adm-day.on { background: var(--accent, #6366f1); border-color: var(--accent, #6366f1); color: #fff; font-weight: 600; }
.adm-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.adm-btn-ghost { padding: 9px 16px; font-size: 13px; border-radius: 9px; cursor: pointer; background: transparent; color: var(--tx-mid); border: 1px solid var(--border); }
.adm-btn-ghost:hover { color: var(--tx-hi); }
.adm-btn-go { padding: 9px 18px; font-size: 13px; font-weight: 600; border-radius: 9px; cursor: pointer; background: var(--accent, #6366f1); color: #fff; border: none; }
.adm-btn-go:hover { filter: brightness(1.08); }
.adm-btn-go.danger { background: #ef4444; }
.adm-btn-go:disabled, .adm-btn-ghost:disabled { opacity: .5; cursor: default; }

/* painel de métricas por usuário */
.adm-urow { cursor: pointer; transition: background .12s; }
.adm-urow:hover { background: var(--bg-soft, rgba(255,255,255,.03)); }
.adm-modal-lg { max-width: 720px; max-height: 88vh; overflow-y: auto; }
.ud-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 4px 0 18px; }
.ud-kpi { background: var(--bg-soft, rgba(255,255,255,.04)); border: 1px solid var(--border); border-radius: 10px; padding: 12px 10px; text-align: center; }
.ud-kpi b { display: block; font-size: 18px; color: var(--accent-bright, #a5b4fc); }
.ud-kpi span { font-size: 11px; color: var(--tx-mid); }
.ud-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 8px; }
.ud-h { font-size: 12px; font-weight: 600; color: var(--tx-mid); text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 8px; }
.ud-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 12.5px; border-bottom: 1px solid var(--border); color: var(--tx-hi); }
.ud-line .mono { color: var(--tx-mid); font-size: 11.5px; white-space: nowrap; }
.ud-scroll { max-height: 160px; overflow-y: auto; }
.ud-empty { font-size: 12px; padding: 4px 0; }
@media (max-width: 620px) { .ud-kpis { grid-template-columns: repeat(2, 1fr); } .ud-cols { grid-template-columns: 1fr; } }
.ru-logout:hover { color: var(--neg); background: var(--neg-bg); }
.rail-legal { font-size: 10.5px; color: var(--tx-faint); line-height: 1.5; }

/* ============ admin ============ */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.adm-act { padding: 4px 11px; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 7px; color: var(--tx-mid); font-size: 11.5px; font-weight: 500; cursor: pointer; font-family: var(--mono); }
.adm-act:hover { color: var(--tx-hi); border-color: var(--accent-line); background: var(--accent-dim); }
.kpi { background: var(--bg-1); border: 1px solid var(--border); border-radius: 13px; padding: 18px 16px; }
.kpi-val { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-family: var(--mono); }
.kpi-label { font-size: 11px; color: var(--tx-mid); margin-top: 4px; }
.adm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.bar-lbl { width: 78px; flex: none; font-size: 11.5px; color: var(--tx-mid); }
.bar-track { flex: 1; height: 8px; background: var(--bg-3); border-radius: 5px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--pos); border-radius: 5px; }
.bar-num { width: 34px; flex: none; text-align: right; font-size: 12px; color: var(--tx-hi); }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } .adm-cols { grid-template-columns: 1fr; } }

/* ============ user card clicável ============ */
.ru-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: transparent; border: none; padding: 0; cursor: pointer; font-family: inherit; text-align: left; color: inherit; }
.rail-user { cursor: pointer; transition: border-color .15s, background .15s; }
.rail-user:hover { border-color: var(--border-strong); }
.rail-user.active { border-color: var(--accent-line); background: var(--accent-dim); }

/* ============ carteira esporte — tabela ============ */
.sc-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 640px; }
.sc-tbl th { padding: 10px 12px; font-weight: 500; font-size: 11px; color: var(--tx-mid); border-bottom: 1px solid var(--border); }
.sc-tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; vertical-align: middle; }
.sc-tbl tbody tr:last-child td { border-bottom: none; }
.sc-tbl tbody tr:hover { background: var(--bg-hover); }
.sc-game { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-stake { width: 100%; box-sizing: border-box; padding: 7px 9px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; color: var(--tx-hi); font-family: var(--mono); font-size: 13px; text-align: right; }
.sc-stake:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

/* ============ perfil ============ */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.prof-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.prof-row:last-of-type { border-bottom: none; }
.prof-k { color: var(--tx-mid); }
.prof-v { color: var(--tx-hi); }
.prof-ok { background: var(--pos-bg); color: var(--pos-bright); font-size: 12.5px; padding: 9px 12px; border-radius: 8px; margin-bottom: 14px; border: 1px solid var(--pos-line); }
.bill-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; }
.btn-ghost { padding: 9px 16px; background: transparent; border: 1px solid var(--border-strong); border-radius: 9px; color: var(--tx-mid); font-size: 13px; font-weight: 500; cursor: not-allowed; font-family: inherit; opacity: 0.7; }
@media (max-width: 820px) { .profile-grid { grid-template-columns: 1fr; } }

/* ============ planos & checkout (assinatura) ============ */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 13px; padding: 18px; display: flex; flex-direction: column; }
.plan-card.featured { border-color: var(--accent-line); background: var(--accent-dim); }
.plan-card.current { border-color: var(--pos-line); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-name { font-size: 14px; font-weight: 600; color: var(--tx-hi); }
.plan-price { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 6px; color: var(--tx-hi); font-family: var(--mono); }
.plan-desc { font-size: 12px; line-height: 1.5; flex: 1; }

/* modal */
.co-modal { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow: hidden; }
.co-card { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--bg-1); border: 1px solid var(--border-strong); border-radius: 16px; padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.co-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.co-title { font-size: 16px; font-weight: 600; color: var(--tx-hi); }
.co-price { font-size: 22px; font-weight: 700; color: var(--tx-hi); font-family: var(--mono); white-space: nowrap; }
.co-body { flex: 1 1 auto; overflow-y: auto; min-height: 0; margin: 0 -4px; padding: 0 4px; }
.co-brick-wrap { min-height: 60px; }
.co-brick-wrap #mp-brick-container { width: 100%; }
@media (max-width: 600px) { .co-modal { padding: 8px; } .co-card { padding: 18px; } }
.co-notice { font-size: 12.5px; line-height: 1.55; color: var(--tx-mid); background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.co-notice code { font-family: var(--mono); color: var(--tx-hi); font-size: 12px; }
.co-close { flex: none; width: 100%; margin-top: 14px; padding: 11px; background: transparent; border: 1px solid var(--border-strong); border-radius: 9px; color: var(--tx-mid); font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; }
.co-close:hover { color: var(--tx-hi); border-color: var(--tx-mid); }

/* paywall com slider de prévia das telas Pro */
.paywall { max-width: 1120px; margin: 22px auto; text-align: center; padding: 0 16px; }
.pw-badge { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent-bright); background: var(--accent-dim); border: 1px solid var(--accent-line); border-radius: 999px; padding: 5px 14px; margin-bottom: 14px; }
.pw-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--tx-hi); margin: 0 0 8px; }
.pw-desc { font-size: 14px; color: var(--tx-mid); line-height: 1.5; max-width: 560px; margin: 0 auto 20px; }
.pw-slider { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: 0 18px 50px rgba(0,0,0,0.45); background: var(--bg-2); }
.pw-shot { display: block; width: 100%; height: auto; cursor: zoom-in; }
.pw-zoom-hint { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 5px 12px; cursor: zoom-in; backdrop-filter: blur(4px); }
.pw-zoom-hint:hover { background: rgba(0,0,0,0.85); }
.pw-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; padding: 28px; cursor: zoom-out; }
.pw-lightbox img { max-width: 97vw; max-height: 94vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.pw-lb-close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 14px; font-weight: 600; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; padding: 7px 14px; }
.pw-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(0,0,0,0.55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: background 0.15s; }
.pw-arrow:hover { background: rgba(0,0,0,0.82); }
.pw-prev { left: 12px; } .pw-next { right: 12px; }
.pw-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.pw-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; transition: background 0.15s, width 0.15s; }
.pw-dots span.on { background: #fff; width: 22px; border-radius: 4px; }
.pw-cta { margin-top: 22px; padding: 13px 28px; border-radius: 10px; border: none; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; font-family: inherit; box-shadow: 0 8px 22px var(--accent-dim); transition: transform 0.1s, filter 0.15s; }
.pw-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.pw-foot { margin-top: 12px; font-size: 12px; color: var(--tx-faint); }
.co-result { text-align: center; padding: 22px 14px; border-radius: 12px; }
.co-result.ok { background: var(--pos-bg); border: 1px solid var(--pos-line); color: var(--pos-bright); }
.co-result.err { background: var(--neg-bg); border: 1px solid var(--neg-line); color: var(--neg-bright); }
.co-result strong { display: block; font-size: 15px; margin-bottom: 4px; }
.co-result p { font-size: 12.5px; color: var(--tx-mid); }

/* pix */
.pix-wrap { text-align: center; }
.pix-head { font-size: 15px; font-weight: 600; color: var(--tx-hi); margin-bottom: 8px; }
.pix-timer { margin: 8px 0 12px; }
.pix-timer.expired { color: var(--neg); font-weight: 600; font-size: 13px; }
.pix-bar { max-width: 250px; height: 3px; margin: 6px auto 0; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.pix-bar > div { height: 100%; border-radius: 2px; transition: width 1s linear; }
.pix-qr { display: inline-block; background: #fff; padding: 10px; border-radius: 12px; margin: 6px 0 10px; }
.pix-qr img { display: block; width: 200px; height: 200px; }
.pix-copy { display: flex; gap: 8px; }
.pix-copy input { flex: 1; min-width: 0; padding: 9px 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; color: var(--tx-hi); font-size: 11px; }
.pix-copy button { padding: 9px 14px; background: var(--accent); border: none; border-radius: 8px; color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }
.pix-copy button:hover { background: var(--accent-bright); }

/* destaque do item "Assinar Pro" no menu */
.nav-item.nav-plans { color: var(--accent-bright); }
.nav-item.nav-plans svg { stroke: var(--accent-bright); }
.nav-item.nav-plans.active { background: var(--accent-dim); }

/* página inicial — faixa de planos pública */
.lp-pricing { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.lp-plan { flex: 1; min-width: 150px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.lp-plan.pro { border-color: var(--accent-line); background: var(--accent-dim); }
.lp-plan-name { font-size: 12px; font-weight: 600; color: var(--tx-hi); text-transform: uppercase; letter-spacing: 0.04em; }
.lp-plan-price { font-size: 22px; font-weight: 700; font-family: var(--mono); color: var(--tx-hi); margin: 4px 0 2px; }
.lp-plan-desc { font-size: 11.5px; color: var(--tx-mid); line-height: 1.45; }

/* ============ backtest de esporte (acurácia/calibração) ============ */
.bt-note { background: var(--warn-bg); border: 1px solid rgba(232,184,79,.3); color: var(--tx-mid); font-size: 12.5px; line-height: 1.55; padding: 12px 14px; border-radius: 11px; margin-bottom: 16px; }
.bt-note b { color: var(--warn); }
.bt-cal { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bt-cal-lbl { width: 64px; flex: none; font-size: 11.5px; color: var(--tx-mid); }
.bt-cal-track { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.bt-cal-pred, .bt-cal-real { height: 7px; border-radius: 4px; min-width: 2px; }
.bt-cal-pred { background: var(--tx-faint); }
.bt-cal-real { background: var(--accent); }
.bt-cal-val { width: 132px; flex: none; text-align: right; font-size: 11.5px; color: var(--tx-mid); }
.bt-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 11px; color: var(--tx-lo); }
.bt-legend i { display: inline-block; width: 10px; height: 7px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.bt-legend .dot-pred { background: var(--tx-faint); }
.bt-legend .dot-real { background: var(--accent); }
