/* ============================================================
   BACKTESTE — novo layout (Dashboard + Editor 3 colunas)
   ============================================================ */
.view { }

/* Filtro único movido via JS */
#the-filter-panel { height: 100%; overflow-y: auto; }
#slot-fp-jogos { height: 100%; }
#slot-fp-bt    { height: 100%; }

/* Botão inserir no backtest */
.fp-btn-insert { width: 100%; margin-bottom: 6px; background: var(--primary); border: 0; color: #fff; padding: 11px; border-radius: 8px; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.fp-btn-insert:hover { background: var(--primary-hv); }

/* DASHBOARD */
#bt-dashboard { height: calc(100vh - 60px); overflow-y: auto; padding: 28px 32px 60px; max-width: 1300px; margin: 0 auto; }
.btd-hero { background: linear-gradient(135deg, #1a2a5e, #223a86, #2c4bb3); border-radius: 14px; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin-bottom: 32px; }
.btd-tag { font-size: 12px; font-weight: 800; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.btd-tag::before { content:''; width:8px; height:8px; border-radius:50%; background:#36b873; box-shadow:0 0 6px rgba(54,184,115,.7); }
.btd-hero h1 { font-size: 26px; font-weight: 800; color: #fff; margin: 0 0 10px; line-height: 1.2; }
.btd-hl { color: var(--accent); }
.btd-desc { font-size: 13px; color: rgba(255,255,255,.75); margin: 0 0 20px; }
.btd-new-btn { background: var(--accent); color: #06120d; border: 0; padding: 12px 24px; border-radius: 8px; font-weight: 800; font-size: 14px; }
.btd-new-btn:hover { opacity: .9; }
.btd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btd-stat { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 14px 16px; }
.btd-sl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.6); font-weight: 700; }
.btd-sv { font-size: 24px; font-weight: 800; color: #fff; margin-top: 4px; }
.btd-sv.accent { color: var(--accent); }
.btd-grid-title { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.btd-grid-sub { font-size: 12px; color: var(--text-dim); margin: 0 0 16px; }
.btd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.btd-empty { padding: 40px; text-align: center; color: var(--text-dim); font-size: 13px; grid-column: 1/-1; }
.btd-card { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px; }
.btd-card.lay { border-left-color: #c0436a; }
.btd-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.btd-card-name { font-weight: 800; font-size: 14px; }
.btd-card-mode { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 10px; }
.btd-card-mode.back { background: rgba(30,111,217,.2); color: #6cb2f7; }
.btd-card-mode.lay  { background: rgba(192,67,106,.2); color: #f08ab0; }
.btd-card-date { font-size: 11px; color: var(--text-dim); margin-bottom: 12px; }
.btd-card-wr-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }
.btd-card-wr { font-size: 18px; font-weight: 800; color: #36b873; }
.btd-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.btd-cs-l { font-size: 10px; color: var(--text-dim); display: block; }
.btd-cs-v { font-size: 15px; font-weight: 800; }
.btd-card-actions { display: flex; gap: 8px; margin-top: 10px; }
.btd-btn-edit { flex: 1; background: var(--primary); color: #fff; border: 0; padding: 9px; border-radius: 7px; font-weight: 700; font-size: 12.5px; }
.btd-btn-del { background: var(--panel-2); border: 1px solid var(--border); color: var(--text-dim); padding: 9px 12px; border-radius: 7px; }
.btd-btn-del:hover { color: var(--away); border-color: var(--away); }

/* EDITOR 3 COLUNAS */
.bte-layout { display: grid; grid-template-columns: 280px 1fr 250px; height: calc(100vh - 60px); overflow: hidden; }
.bte-left { height: 100%; overflow: hidden; border-right: 1px solid var(--border); }
.bte-center { padding: 16px 20px 60px; overflow-y: auto; }
.bte-history { border-left: 1px solid var(--border); height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.bte-back { background: transparent; border: 0; color: var(--text-dim); font-size: 12.5px; font-weight: 700; padding: 0 0 14px; display: flex; align-items: center; gap: 5px; }
.bte-back:hover { color: var(--text); }
/* overflow visível p/ os dropdowns de evento não serem cortados pela borda do card */
.bte-block { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: visible; margin-bottom: 10px; }
.bte-block-title { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-size: 13px; font-weight: 800; border-bottom: 1px solid var(--border); }
.bte-block-arrow { margin-left: auto; color: var(--text-dim); font-size: 11px; }
.bte-callout { margin: 12px 16px 0; padding: 12px 14px; background: rgba(240,165,0,.08); border: 1px solid rgba(240,165,0,.3); border-radius: 8px; font-size: 12.5px; color: var(--warn); }
.bte-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; }
.bte-chip { display: inline-flex; align-items: center; gap: 5px; background: rgba(79,166,234,.12); border: 1px solid rgba(79,166,234,.25); border-radius: 20px; padding: 4px 10px; font-size: 12px; }
.bte-chip.meta { background: var(--panel-3); border-color: var(--border); color: var(--text-dim); }
.bte-chip-x { cursor: pointer; opacity: .7; font-size: 11px; }
.bte-chip-x:hover { opacity: 1; }
.bte-field-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); padding: 12px 16px 6px; display: block; }
.bte-period-tabs { display: flex; gap: 4px; padding: 0 16px 12px; flex-wrap: wrap; }
.bte-ptab { background: var(--panel-2); border: 1px solid var(--border); color: var(--text-dim); font-weight: 700; font-size: 12.5px; padding: 8px 14px; border-radius: 8px; }
.bte-ptab.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.bte-custom-dates { display: flex; align-items: center; gap: 10px; padding: 0 16px 12px; }
.bte-ev-row { display: flex; gap: 8px; padding: 0 16px 14px; flex-wrap: wrap; }
.bte-ev-dd { position: relative; }
.bte-ev-btn { display: flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: 12.5px; padding: 9px 14px; border-radius: 8px; white-space: nowrap; }
.bte-ev-btn:hover { border-color: var(--accent); }
.bte-ev-ico { font-size: 13px; }
.bte-ev-badge { background: var(--accent); color: #06120d; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 8px; }
.bte-ev-panel { display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 8px; min-width: 180px; max-height: min(56vh, 360px); overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.bte-ev-panel-sc { min-width: 200px; }
.bte-ev-opt { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 12.5px; color: var(--text-dim); white-space: nowrap; }
.bte-ev-opt:hover { background: var(--panel-2); color: var(--text); }
.bte-ev-opt input { accent-color: var(--accent); width: 13px; height: 13px; }
.bte-ev-opt.ev-locked { opacity: .38; cursor: not-allowed; }
.bte-ev-opt input:disabled { cursor: not-allowed; }
/* Placar Exato — lista (Selecionar todos / Limpar + rolagem) */
.bte-sc-tools { display: flex; gap: 6px; padding: 2px 4px 8px; border-bottom: 1px solid var(--border); margin-bottom: 6px; position: sticky; top: -8px; background: var(--panel); z-index: 1; }
.bte-sc-tool { flex: 1; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel-2); color: var(--text-dim); font-size: 11px; font-weight: 700; cursor: pointer; }
.bte-sc-tool:hover { border-color: var(--accent); color: var(--accent); }
.bte-sc-list { display: flex; flex-direction: column; gap: 1px; }

/* Modo de validação dos placares (GREEN/RED) */
.bte-scmode { padding: 12px 16px; border-top: 1px solid var(--border); }
.bte-scmode-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.bte-scmode-hint { font-size: 12px; color: var(--text-dim); }

/* Momento-gol (placar em determinado minuto) */
.bte-pm { border-top: 1px solid var(--border); padding: 12px 16px; }
.bte-pm-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.bte-pm-body { padding-top: 12px; }
.bte-pm-minrow { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; margin-bottom: 12px; }
.bte-pm-min { width: 58px; text-align: center; font-weight: 800; }
.bte-pm-quick { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.bte-pm-quick-lbl { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .03em; margin-right: 2px; }
.bte-pm-chip { padding: 6px 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel-2); color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.bte-pm-chip:hover { border-color: var(--accent); color: var(--accent); }
.bte-pm-custom { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.bte-pm-cn { width: 52px; text-align: center; }
.bte-pm-addbtn { padding: 7px 14px; border: 1px solid var(--primary); border-radius: 8px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.bte-pm-addbtn:hover { background: var(--primary-hv); }
.bte-pm-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 38px; padding: 8px; border: 1px dashed var(--border); border-radius: 8px; margin-bottom: 8px; align-items: center; }
.bte-pm-list .muted { font-size: 12px; font-style: italic; }
.bte-pm-sel { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 11px; border-radius: 14px; background: rgba(79,166,234,.14); border: 1px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 800; }
.bte-pm-sel button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }
.bte-pm-summary { font-size: 12px; color: var(--text-dim); padding: 8px 10px; background: var(--panel-2); border-radius: 8px; }
.bte-pm-summary b { color: var(--text); }
.bte-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-top: 1px solid var(--border); gap: 12px; flex-wrap: wrap; }
.bte-footer-left { flex: 1; }
.bte-footer-right { display: flex; align-items: center; gap: 10px; }
.bte-flow-hint { font-size: 11.5px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.bte-bl-toggle { display: flex; background: var(--panel-2); border: 1px solid var(--border); border-radius: 22px; padding: 3px; gap: 2px; }
.bte-bl-btn { padding: 7px 16px; border: 0; background: transparent; color: var(--text-dim); font-weight: 800; font-size: 12px; border-radius: 18px; }
.bte-bl-btn.back.on { background: #1e6fd9; color: #fff; }
.bte-bl-btn.lay.on  { background: #c0436a; color: #fff; }
.bte-run-btn { display: flex; align-items: center; gap: 7px; background: var(--primary); color: #fff; border: 0; padding: 10px 22px; border-radius: 8px; font-weight: 800; font-size: 13px; }
.bte-run-btn:hover:not(:disabled) { background: var(--primary-hv); }
.bte-run-btn:disabled { opacity: .5; cursor: not-allowed; }
.bte-sc-hint { flex: 1; display: flex; align-items: center; padding: 0 4px; font-size: 11px; font-weight: 700; color: var(--text-dim); }
.bte-sc-sep { font-size: 9.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); opacity: .7; padding: 8px 8px 4px; margin-top: 4px; border-top: 1px solid var(--border); }

/* ---- Trava da seleção de eventos (após Analisar) ---- */
.bt-locked { opacity: .5; pointer-events: none; filter: grayscale(.35); position: relative; transition: opacity .15s ease; }

/* Barra de bloqueio + ações (Editar filtros / Novo backtest) */
.bte-lockbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin: 14px 0 10px; padding: 12px 16px; border-radius: 10px;
  background: rgba(192,67,106,.10); border: 1px solid rgba(192,67,106,.40); }
.bte-lockbar.editing { background: rgba(30,111,217,.10); border-color: rgba(30,111,217,.40); }
.bte-lockbar-msg { font-size: 12.5px; color: var(--text); line-height: 1.4; flex: 1; min-width: 240px; }
.bte-lockbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bte-lockbar-edit, .bte-lockbar-new { padding: 8px 14px; border-radius: 8px; font-weight: 800; font-size: 12px; cursor: pointer; border: 1px solid var(--border); }
.bte-lockbar-edit { background: var(--panel-2); color: var(--text); }
.bte-lockbar-edit:hover { border-color: var(--accent); color: var(--accent); }
.bte-lockbar-new { background: var(--primary); color: #fff; border-color: transparent; }
.bte-lockbar-new:hover { background: var(--primary-hv); }
.bte-hist-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.bte-hist-title { font-weight: 800; font-size: 13px; }
.bte-hist-count { font-size: 11px; color: var(--text-dim); }
.bte-hist-list { flex: 1; overflow-y: auto; padding: 8px; }
.bte-hist-card { position: relative; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 7px; cursor: pointer; }
.bte-hist-card:hover { border-color: var(--accent); }
.bte-hist-del { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border: 0; border-radius: 6px; background: transparent; color: var(--text-dim); font-size: 15px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s; }
.bte-hist-card:hover .bte-hist-del { opacity: 1; }
.bte-hist-del:hover { background: rgba(192,67,106,.18); color: #e0567f; }
.bte-hist-name { font-weight: 800; font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.bte-hist-meta { font-size: 12px; margin: 3px 0 2px; }
.bte-hist-date { font-size: 10.5px; color: var(--text-dim); }
/* Resultados */
.bt-report { padding-top: 8px; }
/* ---- Header hero ---- */
.bt-report-header { position: relative; margin-bottom: 18px; padding: 20px 22px; border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(79,166,234,.16), transparent 55%),
    linear-gradient(180deg, #1b2330, var(--panel));
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 40px -28px rgba(0,0,0,.9); }
.bt-report-header::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--accent), rgba(54,184,115,.7)); }
.bt-rh-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: 2px; color: var(--accent); display: flex; align-items: center; gap: 7px; }
.bt-rh-spark { font-size: 8px; opacity: .9; }
.bt-rh-title { font-size: 26px; font-weight: 900; letter-spacing: -.4px; margin: 4px 0 12px; line-height: 1.05;
  background: linear-gradient(90deg, #fff, #b9c6d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bt-rh-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-rh-chip { display: inline-flex; align-items: baseline; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }
.bt-rh-chip .bt-rh-ck { font-size: 9.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--text-dim); }
.bt-rh-chip.accent { background: rgba(79,166,234,.12); border-color: rgba(79,166,234,.4); }
.bt-rh-chip.accent b { color: var(--accent); }
/* Simulação financeira (stake/banca) no cabeçalho */
.bt-money { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.bt-money-head { font-size: 12.5px; font-weight: 800; color: var(--text); margin-bottom: 11px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bt-money-head > span { font-weight: 500; font-size: 11px; color: var(--text-dim); }
.bt-money-basis { margin-left: auto; display: inline-flex; background: var(--panel-3); border: 1px solid var(--border); border-radius: 8px; padding: 2px; gap: 2px; }
.bt-money-basis button { border: 0; background: transparent; color: var(--text-dim); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; cursor: pointer; transition: .15s; }
.bt-money-basis button:hover { color: var(--text); }
.bt-money-basis button.on { background: var(--accent); color: #06120d; }
.bt-money-row { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.bt-money-inputs { display: flex; gap: 10px; flex: 0 0 auto; }
.bt-money-in { display: flex; flex-direction: column; gap: 5px; }
.bt-money-in > span { font-size: 9.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--text-dim); }
.bt-money-in > div { display: flex; align-items: center; gap: 5px; height: 40px; padding: 0 12px; background: var(--panel-3); border: 1px solid var(--border); border-radius: 9px; }
.bt-money-in > div:focus-within { border-color: var(--accent); }
.bt-money-in i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--text-dim); }
.bt-money-in input { width: 78px; background: transparent; border: 0; color: var(--text); font-size: 17px; font-weight: 800; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.bt-money-in input:focus { outline: none; }
.bt-money-out { flex: 1 1 360px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 720px) { .bt-money-out { grid-template-columns: 1fr 1fr; } .bt-money-inputs { flex: 1 1 100%; } .bt-money-in { flex: 1 1 0; } .bt-money-in input { width: 100%; } }
.bt-money-card { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 7px 12px; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 9px; }
.bt-money-card.pos { background: rgba(54,184,115,.08); border-color: rgba(54,184,115,.3); }
.bt-money-card.neg { background: rgba(226,85,99,.08); border-color: rgba(226,85,99,.3); }
.bt-money-k { font-size: 9.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--text-dim); }
.bt-money-v { font-size: 17px; font-weight: 900; letter-spacing: -.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.bt-money-card.pos .bt-money-v { color: #36b873; } .bt-money-card.neg .bt-money-v { color: #e25563; }
.bt-money-note { font-size: 10.5px; color: var(--text-dim); margin-top: 10px; }
.bt-money-note b { color: var(--text); }
/* Coluna P/L nas tabelas */
.bt-pl { font-weight: 800; font-variant-numeric: tabular-nums; }
.bt-pl.pos { color: #36b873; } .bt-pl.neg { color: #e25563; } .bt-pl.muted { color: var(--text-dim); font-weight: 600; }
.bt-analysis-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
@media (max-width: 720px) { .bt-analysis-grid2 { grid-template-columns: 1fr; } }

/* ---- Cards-herói (donut + stats) ---- */
.bt-kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px; margin-bottom: 16px; }
.bt-kpi { position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 34px -26px rgba(0,0,0,.9); }
.bt-kpi-top { display: flex; align-items: center; gap: 20px; }
.bt-kpi-gauge { flex: 0 0 auto; width: 116px; height: 116px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.4)); }
.bt-kpi-body { flex: 1 1 auto; min-width: 0; }
.bt-kpi-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--text); margin-bottom: 12px; }
.bt-kpi-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.bt-kpi-stat { text-align: center; background: var(--panel-3); border: 1px solid var(--border); border-radius: 9px; padding: 9px 4px; }
.bt-kpi-stat.green { background: rgba(54,184,115,.10); border-color: rgba(54,184,115,.28); }
.bt-kpi-stat.red   { background: rgba(226,85,99,.10); border-color: rgba(226,85,99,.28); }
.bt-kpi-v { font-size: 22px; font-weight: 900; letter-spacing: -.5px; }
.bt-kpi-stat.green .bt-kpi-v { color: #36b873; }
.bt-kpi-stat.red   .bt-kpi-v { color: #e25563; }
.bt-kpi-l { font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-dim); margin-top: 3px; }
.bt-kpi-bar { height: 8px; border-radius: 999px; background: rgba(226,85,99,.30); overflow: hidden; }
.bt-kpi-bar-g { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2f9d63, #3fd789); box-shadow: 0 0 12px rgba(54,184,115,.5); }
/* Donut */
.bt-donut { width: 100%; height: 100%; }
.bt-donut-track { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 11; }
.bt-donut-arc { fill: none; stroke-width: 11; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; transition: stroke-dashoffset .6s cubic-bezier(.4,0,.2,1); }
.bt-donut.wr-good .bt-donut-arc { stroke: #36b873; }
.bt-donut.wr-mid  .bt-donut-arc { stroke: var(--warn); }
.bt-donut.wr-bad  .bt-donut-arc { stroke: #e25563; }
.bt-donut-pct { fill: var(--text); font-size: 30px; font-weight: 900; text-anchor: middle; }
.bt-donut-sign { font-size: 15px; font-weight: 800; fill: var(--text-dim); }
.bt-donut-cap { fill: var(--text-dim); font-size: 9px; font-weight: 800; letter-spacing: 2px; text-anchor: middle; }
.wr-good { color: #36b873; } .wr-mid { color: var(--warn); } .wr-bad { color: #e25563; }
.bt-analysis-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.bt-panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.bt-table-wrap { overflow-x: auto; max-height: 260px; overflow-y: auto; }
.bt-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.bt-table th { background: var(--panel-2); padding: 8px 10px; text-align: left; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text-dim); border-bottom: 1px solid var(--border); position: sticky; top: 0; }
.bt-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); }
.bt-table tr:hover td { background: var(--panel-2); }
.bt-td-name { text-align: left !important; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-wr { font-weight: 800; text-align: center; }
.bt-row-green { background: rgba(54,184,115,.06); }
.bt-row-red   { background: rgba(226,85,99,.06); }
.bt-badge { display: inline-block; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 10px; margin-right: 4px; }
.bt-badge.green { background: rgba(54,184,115,.18); color: #36b873; }
.bt-badge.red   { background: rgba(226,85,99,.18); color: #e25563; }
.bt-err { color: var(--away); padding: 20px; text-align: center; }
/* toggle PM */
.bt-toggle { display: inline-flex; align-items: center; cursor: pointer; }
.bt-toggle input { display: none; }
.bt-toggle-track { width: 36px; height: 20px; background: var(--panel-3); border-radius: 10px; position: relative; transition: .2s; }
.bt-toggle input:checked + .bt-toggle-track { background: var(--accent); }
.bt-toggle-track::after { content:''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .2s; }
.bt-toggle input:checked + .bt-toggle-track::after { left: 19px; }

/* ===== Relatório rico (análise detalhada) ===== */
.bt-tbl-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px; }
.bt-tbl-title { font-size: 13px; font-weight: 800; white-space: nowrap; }
.bt-tbl-search { flex: 1; min-width: 0; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 12px; padding: 7px 10px; }
.bt-tbl-search:focus { outline: 0; border-color: var(--accent); }
.bt-table-rich td, .bt-table-rich th { text-align: center; }
.bt-table-rich td.bt-td-name, .bt-table-rich th.bt-td-name { text-align: left; }
.bt-th-sort { cursor: pointer; user-select: none; transition: color .12s ease; }
.bt-th-sort:hover { color: var(--accent); }
.bt-sort-ind { color: var(--accent); font-weight: 800; }
.bt-g { color: #36b873; font-weight: 800; }
.bt-r { color: #e25563; font-weight: 800; }
.bt-pager { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px 12px; }
.bt-pg { min-width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel-2); color: var(--text-dim); font-size: 12px; font-weight: 700; cursor: pointer; }
.bt-pg:hover { border-color: var(--accent); color: var(--accent); }
.bt-pg.on { background: var(--accent); border-color: var(--accent); color: #06120d; }
.bt-pg-dots { color: var(--text-dim); padding: 0 4px; align-self: center; }

/* distribuição de placares */
/* Distribuição de placares — botão que abre o popup */
.bt-sd-open-wrap { padding: 0 !important; background: transparent !important; border: 0 !important; }
.bt-sd-open { width: 100%; display: flex; align-items: center; gap: 13px; text-align: left; cursor: pointer;
  padding: 14px 18px; border-radius: var(--radius); color: var(--text);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--border); transition: border-color .15s, box-shadow .15s; }
.bt-sd-open:hover { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(79,166,234,.25); }
.bt-sd-ico { font-size: 20px; flex: 0 0 auto; }
.bt-sd-txt { display: flex; flex-direction: column; gap: 1px; }
.bt-sd-txt b { font-size: 13.5px; font-weight: 800; }
.bt-sd-txt small { font-size: 11.5px; color: var(--text-dim); }
.bt-sd-cta { margin-left: auto; flex: 0 0 auto; font-size: 12.5px; font-weight: 800; color: var(--accent); }
/* Popup da distribuição */
.bt-sd-ov { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; background: rgba(6,9,14,.72); backdrop-filter: blur(3px); animation: bt-sd-fade .15s ease; }
@keyframes bt-sd-fade { from { opacity: 0; } to { opacity: 1; } }
.bt-sd-modal { position: relative; width: 940px; max-width: 100%; max-height: 88vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.7); }
.bt-sd-x { position: absolute; top: 12px; right: 14px; z-index: 2; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.bt-sd-x:hover { background: var(--panel-3); color: #fff; }
.bt-sd-games:empty { display: none; }
.bt-dist { padding: 6px 0; }
.bt-dist-row { display: grid; grid-template-columns: 34px minmax(120px,1.4fr) 60px 60px 2fr; align-items: center; gap: 10px; padding: 7px 14px; border-bottom: 1px solid var(--border); }
.bt-dist-row:hover { background: var(--panel-2); }
.bt-dist-arr { width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel-2); color: var(--accent); font-size: 13px; cursor: pointer; }
.bt-dist-arr:hover { background: var(--accent); color: #06120d; }
.bt-dist-lbl { font-size: 13px; font-weight: 700; }
.bt-dist-lbl .muted { font-weight: 500; font-size: 11px; }
.bt-dist-n { font-size: 13px; font-weight: 800; text-align: right; }
.bt-dist-pct { font-size: 12px; color: var(--text-dim); text-align: right; }
.bt-dist-bar { height: 14px; background: var(--panel-3); border-radius: 7px; overflow: hidden; }
.bt-dist-bar i { display: block; height: 100%; background: linear-gradient(90deg, #9bd83a, #c3e84a); border-radius: 7px; }
.bt-dist-bar i.gol { background: linear-gradient(90deg, #f08a3c, #f6a85a); }

/* jogos que casaram */
.bt-games-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 6px; flex-wrap: wrap; }
.bt-games-scorechip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 6px 4px 10px; border-radius: 14px; background: rgba(79,166,234,.14); border: 1px solid var(--accent); color: var(--accent); }
.bt-games-scorechip button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; }
.bt-games-tools { display: flex; gap: 10px; padding: 4px 14px 12px; flex-wrap: wrap; }
.bt-gf { display: flex; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 3px; gap: 2px; }
.bt-gf button { padding: 6px 12px; border: 0; background: transparent; color: var(--text-dim); font-size: 12px; font-weight: 700; border-radius: 6px; cursor: pointer; }
.bt-gf button.on { background: var(--panel-3); color: var(--text); }
.bt-gf button[data-gf="green"].on { color: #36b873; }
.bt-gf button[data-gf="red"].on { color: #e25563; }
.bt-games-table td { text-align: left; }
.bt-eye { width: 28px; height: 24px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel-2); cursor: pointer; font-size: 12px; }
.bt-eye:hover, .bt-eye.on { background: rgba(54,184,115,.18); border-color: #36b873; }
.bt-res-g { color: #36b873; font-weight: 800; }
.bt-res-r { color: #e25563; font-weight: 800; }
.bt-odd-cell { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
.bt-d-red { color: #e25563 !important; }
.bt-goalrow td { background: var(--panel-2); padding: 0 !important; }
.bt-goaltl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; font-size: 12px; }
.bt-goaltl-ttl { font-weight: 800; color: var(--text-dim); }
.bt-goal { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 12px; font-weight: 700; }
.bt-goal small { color: var(--text-dim); font-weight: 500; }
.bt-goal.h { background: rgba(79,166,234,.14); }
.bt-goal.a { background: rgba(226,85,99,.14); }
.bt-games-more { padding: 10px 14px; text-align: center; }
.bt-more-btn { padding: 8px 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.bt-more-btn:hover { border-color: var(--accent); color: var(--accent); }

/* flag de validação + modal Dataset × API */
.bt-actcell { white-space: nowrap; }
.bt-flag { width: 28px; height: 24px; margin-left: 4px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel-2); cursor: pointer; font-size: 12px; }
.bt-flag:hover { background: rgba(79,166,234,.18); border-color: var(--accent); }
.bt-modal-ov { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.bt-modal { position: relative; width: 460px; max-width: 100%; max-height: 88vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.bt-modal-x { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: var(--text-dim); font-size: 22px; line-height: 1; cursor: pointer; }
.bt-modal-x:hover { color: var(--text); }
.bt-modal-h { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.bt-modal-sub { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; margin-bottom: 14px; }
.bt-modal-sub b { color: var(--text); font-size: 14px; }
.bt-modal-body { min-height: 60px; }
.bt-modal-f { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; }
.bt-modal-f a { color: var(--accent); text-decoration: none; }
.bt-modal-f a:hover { text-decoration: underline; }
.bt-val-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.bt-val-tbl th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-dim); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.bt-val-tbl th:nth-child(2), .bt-val-tbl th:nth-child(3), .bt-val-tbl td:nth-child(2), .bt-val-tbl td:nth-child(3), .bt-val-tbl th:nth-child(4), .bt-val-tbl td:nth-child(4) { text-align: center; }
.bt-val-tbl td { padding: 8px; border-bottom: 1px solid var(--border); font-weight: 600; }
.bt-ok { color: #36b873; font-weight: 800; }
.bt-no { color: #e25563; font-weight: 800; }
.bt-val-note { margin-top: 12px; font-size: 11px; }

/* ===== Popup de análise pré-jogo (estatísticas gerais) ===== */
.bt-modal-wide { width: 600px; }
.bt-modal-scoreh { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 4px 0 8px; }
.bt-msh-team { font-size: 15px; font-weight: 800; text-align: center; }
.bt-msh-score { text-align: center; font-size: 26px; font-weight: 800; }
.bt-msh-score span { color: var(--text-dim); margin: 0 6px; font-size: 18px; }
.bt-msh-ht { font-size: 11px; color: var(--text-dim); font-weight: 600; margin-top: 2px; }
.bt-sec-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); margin: 16px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.bt-sg-tbl, .bt-mk-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.bt-sg-tbl th { font-size: 11px; font-weight: 800; color: var(--text); padding: 4px 8px; }
.bt-sg-tbl th:nth-child(1) { text-align: left; } .bt-sg-tbl th:nth-child(3) { text-align: right; }
.bt-sg-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--border); }
.bt-sg-v { font-weight: 800; width: 70px; }
.bt-sg-tbl td.bt-sg-v:first-child { text-align: left; }
.bt-sg-tbl td.bt-sg-v:last-child { text-align: right; }
.bt-sg-l { text-align: center; color: var(--text-dim); font-size: 12px; }
.bt-mk-tbl th { font-size: 11px; color: var(--text-dim); padding: 4px 8px; text-align: center; }
.bt-mk-tbl th:first-child { text-align: left; }
.bt-mk-tbl td { padding: 7px 8px; border-bottom: 1px solid var(--border); text-align: center; font-weight: 700; }
.bt-mk-line { text-align: left !important; color: var(--text-dim); }
.bt-mk-badge { display: inline-block; min-width: 48px; padding: 4px 8px; border-radius: 7px; font-weight: 800; }
.bt-mk-badge.good { background: rgba(54,184,115,.18); color: #36b873; }
.bt-mk-badge.mid  { background: rgba(240,165,0,.18); color: var(--warn); }
.bt-mk-badge.bad  { background: rgba(226,85,99,.18); color: #e25563; }
.bt-mom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bt-mom-name { font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.bt-mom-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 11px; }
.bt-mom-lb { color: var(--text-dim); }
.bt-mom-bar { display: flex; height: 12px; background: var(--panel-3); border-radius: 6px; overflow: hidden; }
.bt-mom-bar i { display: block; height: 100%; }
.bt-mom-bar i.m { background: #36b873; }
.bt-mom-bar i.s { background: rgba(226,85,99,.7); }
.bt-mom-v { font-weight: 700; white-space: nowrap; }
.bt-mom-v small { color: var(--text-dim); font-weight: 600; }

/* ===== Modal de detalhe completo do jogo (reusa a tela de Jogos) ===== */
.bt-detail-ov { padding: 16px; }
.bt-detail-modal { position: relative; width: 960px; max-width: 96vw; height: 88vh; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.bt-detail-modal > #detail { height: 100%; }
.bt-detail-modal .dbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.bt-detail-modal .bt-modal-x { position: absolute; top: 8px; right: 12px; z-index: 10; width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(0,0,0,.35); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.bt-detail-modal .bt-modal-x:hover { background: rgba(0,0,0,.6); }

/* ===== Simulador Back/Lay + Cortex ===== */
.bt-insights { margin: 16px 0; padding: 18px 20px; background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.bt-ins-h { font-weight: 800; font-size: 14.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bt-ins-ic { font-size: 16px; }
.bt-ins-h .bt-ins-sub { font-weight: 500; font-size: 12px; color: var(--text-dim); }
/* Fileira única: cards Back/Lay (esquerda) + odd média/justa (direita) */
.bt-ins-top { display: flex; align-items: stretch; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.bt-ins-ctrls { flex: 0 0 auto; display: flex; align-items: stretch; gap: 8px; }
.bt-ins-k { font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--text-dim); }
.bt-ins-oddctl { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; background: var(--panel-3); border: 1px solid var(--border); border-radius: 9px; padding: 0 7px 0 12px; height: 44px; }
.bt-ins-oddctl .bt-ins-k { margin-right: 2px; }
.bt-ins-step { width: 26px; height: 26px; flex: 0 0 auto; border: 1px solid var(--border); background: var(--panel); color: var(--text); font-size: 15px; font-weight: 800; line-height: 1; border-radius: 7px; cursor: pointer; transition: .15s; }
.bt-ins-step:hover { border-color: var(--accent); color: var(--accent); }
.bt-ins-oddctl input { width: 52px; flex: 0 0 auto; text-align: center; background: transparent; border: 0; color: var(--text); font-size: 17px; font-weight: 900; letter-spacing: -.3px; }
.bt-ins-oddctl input:focus { outline: none; }
.bt-ins-fair { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; height: 44px;
  background: rgba(79,166,234,.10); border: 1px solid rgba(79,166,234,.35); border-radius: 9px; padding: 0 14px; }
.bt-ins-fair .bt-ins-k { color: var(--accent); }
.bt-ins-fair b { font-size: 17px; font-weight: 900; letter-spacing: -.3px; color: var(--text); }
/* Escala / slider arrastável (neutro — sem cores que confundem) */
.bt-slider { padding-top: 26px; margin-bottom: 16px; }
.bt-slider-rail { position: relative; height: 8px; border-radius: 999px; background: var(--panel-3); border: 1px solid var(--border); cursor: pointer; touch-action: none; }
.bt-slider-tick { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; transform: translateX(-50%); background: rgba(255,255,255,.28); border-radius: 2px; }
.bt-slider-handle { position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,.55); cursor: grab; transition: left .15s ease; }
.bt-slider-rail:active .bt-slider-handle, .bt-slider-handle:active { cursor: grabbing; transition: none; }
.bt-slider-handle::after { content: attr(data-v); position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--accent); color: #06120d; font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 6px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.bt-slider-foot { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; font-weight: 600; color: var(--text-dim); margin-top: 11px; }
.bt-slider-foot > span { transition: .15s; }
.bt-slider-foot #bt-foot-lay.on, .bt-slider-foot #bt-foot-back.on { color: var(--text); font-weight: 800; }
.bt-slider-fair { color: var(--accent); font-weight: 800; }
/* Cards Back/Lay — linha única, na mesma fileira da odd média */
.bt-ins-cards { flex: 1 1 360px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 720px) { .bt-ins-top { flex-direction: column; align-items: stretch; } .bt-ins-ctrls { justify-content: space-between; } }
@media (max-width: 480px) { .bt-ins-cards { grid-template-columns: 1fr; } }
.bt-ins-card { position: relative; display: flex; align-items: center; gap: 8px; background: var(--panel-3); border: 1px solid var(--border); border-radius: 11px; padding: 0 13px; height: 44px; min-width: 0; transition: .2s; }
.bt-ins-card.active { box-shadow: 0 0 0 1px currentColor, 0 10px 24px -18px rgba(0,0,0,.9); }
.bt-ins-card.pos { border-color: rgba(54,184,115,.4); }
.bt-ins-card.neg { border-color: rgba(226,85,99,.35); }
.bt-ins-card.active.pos { background: linear-gradient(180deg, rgba(54,184,115,.12), var(--panel-3)); color: #36b873; }
.bt-ins-card.active.neg { background: linear-gradient(180deg, rgba(226,85,99,.10), var(--panel-3)); color: #e25563; }
.bt-ins-ct { font-size: 12px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 5px; white-space: nowrap; min-width: 0; }
.bt-ins-ci { font-size: 10px; }
.bt-ins-card.back .bt-ins-ci { color: #36b873; } .bt-ins-card.lay .bt-ins-ci { color: #e25563; }
.bt-ins-tag { font-size: 8.5px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; color: #0c0f14; background: #36b873; }
.bt-ins-card.active.neg .bt-ins-tag { background: #e25563; }
.bt-ins-cnums { margin-left: auto; display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.bt-ins-cpl { font-size: 19px; font-weight: 900; letter-spacing: -.5px; }
.bt-ins-cpl span { font-size: 10px; color: var(--text-dim); font-weight: 600; margin-left: 1px; }
.bt-ins-card.pos .bt-ins-cpl { color: #36b873; } .bt-ins-card.neg .bt-ins-cpl { color: #e25563; }
.bt-ins-croi { font-size: 12px; font-weight: 800; }
.bt-ins-card.pos .bt-ins-croi { color: #36b873; } .bt-ins-card.neg .bt-ins-croi { color: #e25563; }
.bt-ins-cpl span, .bt-ins-croi { white-space: nowrap; }
/* ===== CÓRTEX — núcleo de análise avançada ===== */
.cx { margin-top: 16px; }
.cx-trigger { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  padding: 12px 16px; border-radius: 14px; color: var(--text); position: relative; overflow: hidden;
  background: linear-gradient(110deg, rgba(139,92,246,.14), rgba(34,211,238,.07) 60%, rgba(20,28,42,.3));
  border: 1px solid rgba(139,92,246,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); transition: box-shadow .25s, border-color .25s; }
.cx-trigger::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 120% at 8% 0%, rgba(34,211,238,.18), transparent 60%); }
.cx-trigger:hover { border-color: rgba(34,211,238,.6); box-shadow: 0 0 22px -4px rgba(139,92,246,.5), inset 0 1px 0 rgba(255,255,255,.06); }
.cx-emblem { flex: 0 0 auto; width: 46px; height: 46px; display: block; }
.cx-trig-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cx-trig-txt b { font-size: 14px; font-weight: 800; letter-spacing: 4px; background: linear-gradient(90deg, #c4b5fd, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cx-trig-txt small { font-size: 11px; color: var(--text-dim); }
.cx-trig-conf { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; font-size: 17px; font-weight: 800; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.cx-trig-conf i { font-size: 8.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); font-style: normal; }
.cx-trig-conf.hi { color: #34e0a1; } .cx-trig-conf.mid { color: #e0ab36; } .cx-trig-conf.lo { color: #ff5d73; }
.cx-chev { flex: 0 0 auto; color: #8b5cf6; font-size: 14px; }
/* Emblema (núcleo de IA) */
.cx-core { width: 100%; height: 100%; overflow: visible; animation: cx-glow 3.4s ease-in-out infinite; }
.cx-hex { fill: rgba(139,92,246,.08); stroke: rgba(139,92,246,.55); stroke-width: 1.4; }
.cx-ring { fill: none; stroke: #22d3ee; stroke-width: 1.4; stroke-dasharray: 5 6; opacity: .9; transform-box: fill-box; transform-origin: center; animation: cx-spin 7s linear infinite; }
.cx-orbits { transform-box: fill-box; transform-origin: center; animation: cx-spin-r 13s linear infinite; }
.cx-orbits line { stroke: rgba(34,211,238,.4); stroke-width: 1; }
.cx-orbits circle { fill: #8b5cf6; }
.cx-core-dot { fill: #67e8f9; transform-box: fill-box; transform-origin: center; animation: cx-pulse 2.4s ease-in-out infinite; }
@keyframes cx-spin { to { transform: rotate(360deg); } }
@keyframes cx-spin-r { to { transform: rotate(-360deg); } }
@keyframes cx-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.65); opacity: .55; } }
@keyframes cx-glow { 0%,100% { filter: drop-shadow(0 0 2px rgba(34,211,238,.55)); } 50% { filter: drop-shadow(0 0 7px rgba(139,92,246,.85)); } }
/* Corpo (revelado ao ativar) */
.cx-body { position: relative; margin-top: 10px; border-radius: 14px; overflow: hidden; padding: 14px;
  background-color: rgba(15,14,24,.55); border: 1px solid rgba(139,92,246,.28);
  background-image: linear-gradient(rgba(139,92,246,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(139,92,246,.05) 1px, transparent 1px);
  background-size: 22px 22px; animation: cx-reveal .35s ease; }
@keyframes cx-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cx-scan { position: absolute; left: 0; right: 0; top: 0; height: 38%; pointer-events: none; background: linear-gradient(180deg, rgba(34,211,238,.10), transparent); animation: cx-scan 3.4s ease-in-out infinite; }
@keyframes cx-scan { 0% { transform: translateY(-100%); opacity: 0; } 25% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(280%); opacity: 0; } }
.cx-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 10px; }
.cx-mod { position: relative; background: rgba(13,18,28,.66); border: 1px solid rgba(139,92,246,.22); border-radius: 11px; padding: 12px 13px; }
.cx-mod::before { content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #8b5cf6, #22d3ee); opacity: .7; }
.cx-mod-conf, .cx-mod-verdict { grid-column: span 2; }
@media (max-width: 560px) { .cx-mod-conf, .cx-mod-verdict { grid-column: span 1; } }
.cx-mod-h { font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #c4b5fd; display: flex; align-items: center; gap: 7px; margin-bottom: 11px; }
.cx-mod-tag { font-size: 10px; font-weight: 700; letter-spacing: .5px; font-variant-numeric: tabular-nums; color: #67e8f9; background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.3); border-radius: 5px; padding: 1px 5px; }
/* 01 Confiança nos dados (amostra + margem de erro / IC 95%) */
.cx-conf { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.cx-conf-n { display: flex; flex-direction: column; }
.cx-conf-n b { font-size: 36px; font-weight: 800; letter-spacing: -1px; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.cx-conf-n span { font-size: 11px; color: var(--text-dim); font-weight: 600; margin-top: 4px; }
.cx-conf-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cx-conf-badge { font-size: 11px; font-weight: 800; letter-spacing: .5px; padding: 4px 12px; border-radius: 999px; }
.cx-conf-badge.hi { background: rgba(52,224,161,.14); color: #34e0a1; border: 1px solid rgba(52,224,161,.4); }
.cx-conf-badge.mid { background: rgba(224,171,54,.14); color: #e0ab36; border: 1px solid rgba(224,171,54,.4); }
.cx-conf-badge.lo { background: rgba(255,93,115,.14); color: #ff5d73; border: 1px solid rgba(255,93,115,.4); }
.cx-conf-moe { font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.cx-ci-lbl { font-size: 12px; color: var(--text); margin-bottom: 9px; }
.cx-ci-lbl b { font-variant-numeric: tabular-nums; font-weight: 800; }
.cx-ci-track { position: relative; height: 8px; border-radius: 999px; background: rgba(255,255,255,.06); margin-bottom: 6px; }
.cx-ci-band { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.cx-ci-band.hi { background: rgba(52,224,161,.55); } .cx-ci-band.mid { background: rgba(224,171,54,.55); } .cx-ci-band.lo { background: rgba(255,93,115,.55); }
.cx-ci-dot { position: absolute; top: 50%; width: 12px; height: 12px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--text); box-shadow: 0 0 8px rgba(255,255,255,.5); }
.cx-ci-scale { display: flex; justify-content: space-between; font-size: 9px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
/* 02 Valor */
.cx-kv { display: flex; align-items: baseline; gap: 8px; font-size: 12px; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,.06); }
.cx-kv span { color: var(--text-dim); }
.cx-kv b { margin-left: auto; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cx-kv small { color: var(--text-dim); font-size: 10px; }
.cx-kv b.pos { color: #34e0a1; } .cx-kv b.neg { color: #ff5d73; }
.cx-note { font-size: 11px; color: var(--text); line-height: 1.5; margin-top: 9px; padding: 8px 10px; background: rgba(34,211,238,.06); border-left: 2px solid rgba(34,211,238,.5); border-radius: 0 7px 7px 0; }
/* 03 Sequências */
.cx-stat3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.cx-stat3 > div { text-align: center; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 9px; padding: 8px 4px; }
.cx-stat3 b { display: block; font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cx-stat3 b.pos { color: #34e0a1; } .cx-stat3 b.neg { color: #ff5d73; }
.cx-stat3 span { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .4px; }
/* 04 Momentum */
/* 04 Consistência mensal (mini-gráfico de barras) */
.cx-spark { display: flex; align-items: flex-end; gap: 6px; height: 86px; padding-top: 4px; }
.cx-spark-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.cx-spark-v { font-size: 10px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.cx-spark-track { width: 100%; max-width: 26px; flex: 1 1 auto; display: flex; align-items: flex-end; background: rgba(255,255,255,.04); border-radius: 5px 5px 0 0; overflow: hidden; }
.cx-spark-track i { width: 100%; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #22d3ee, #8b5cf6); }
.cx-spark-col.low .cx-spark-track i { background: linear-gradient(180deg, #ff5d73, #c0303f); }
.cx-spark-col.low .cx-spark-v { color: #ff5d73; }
.cx-spark-l { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .3px; }
/* 05 Faixa de odds */
.cx-bands { display: flex; flex-direction: column; gap: 8px; }
.cx-band { display: grid; grid-template-columns: 82px 1fr 34px 52px; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 7px; }
.cx-band.best { background: rgba(52,224,161,.08); box-shadow: inset 0 0 0 1px rgba(52,224,161,.3); }
.cx-band-r { font-size: 11px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.cx-band-t { height: 6px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.cx-band-t i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8b5cf6, #22d3ee); }
.cx-band-hr { font-size: 11.5px; font-weight: 800; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.cx-band-ev { font-size: 11px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.cx-band-ev.pos { color: #34e0a1; } .cx-band-ev.neg { color: #ff5d73; }
/* 05 Mapa de força */
.cx-map { display: flex; flex-direction: column; gap: 6px; }
.cx-map-r { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.cx-map-r > span { flex: 0 0 84px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: var(--text-dim); }
.cx-map-r > span.pos { color: #34e0a1; } .cx-map-r > span.neg { color: #ff5d73; }
.cx-map-r b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.cx-map-r i { flex: 0 0 auto; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
/* 06 Veredito */
.cx-verdict { font-size: 12.5px; line-height: 1.6; color: var(--text); margin: 0 0 10px; }
.cx-tips { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cx-tips li { font-size: 11.5px; line-height: 1.45; color: var(--text); padding-left: 18px; position: relative; }
.cx-tips li::before { content: "▸"; position: absolute; left: 4px; color: #8b5cf6; font-size: 10px; top: 1px; }
