/* App da Iza — tokens do handoff (identidade dourada) */
:root {
  --bg-base: #0B0E14;
  --bg-top: #12161F;
  --bg-deep: #05070A;
  --surface: #161B26;
  --surface-2: #0E121A;
  --glass: rgba(255,255,255,.05);
  --glass-strong: rgba(18,22,31,.62);
  --glass-sheet: rgba(18,22,31,.88);
  --glass-border: rgba(255,255,255,.09);
  --glass-hi: inset 0 1px 0 rgba(255,255,255,.12);
  --hairline: rgba(255,255,255,.055);

  --text: #E8ECF4;
  --text-2: #98A1B3;
  --text-3: #8A93A6;
  --text-muted: #6E7889;
  --text-dim: #7C8699;
  --text-on-gold: #201703;

  --gold: #F5C451;
  --gold-grad: linear-gradient(180deg,#F8D689,#DFAE43);
  --gold-glow: 0 12px 30px -12px rgba(245,196,81,.55);

  --low: #34B4FF;
  --mid: #913EF8;
  --high: #C017B4;
  --ok: #22C55E;
  --risk: #F97316;
  --err: #EF4444;

  --safe-top: max(env(safe-area-inset-top), 16px);
  --safe-bottom: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg-base);
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
button, input { font-family: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #F7DCA2; }
.num { font-variant-numeric: tabular-nums; }
.pretty { text-wrap: pretty; }
[hidden] { display: none !important; }

@keyframes pulseDot { 0%,100% { opacity:1; transform:scale(1) } 50% { opacity:.35; transform:scale(.82) } }
@keyframes fadeUp { from { opacity:0; transform:translateY(8px) } to { opacity:1; transform:none } }
@keyframes slideIn { from { opacity:0; transform:translateX(14px) } to { opacity:1; transform:none } }
@keyframes shimmer { 0% { background-position:-200px 0 } 100% { background-position:340px 0 } }
@keyframes sheetUp { from { transform:translateY(100%) } to { transform:none } }
@keyframes modalIn { from { opacity:0; transform:translateY(14px) scale(.98) } to { opacity:1; transform:none } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

::-webkit-scrollbar { width: 0; height: 0; }

/* ---------- raiz / fundo ---------- */
#root { position: relative; height: 100dvh; isolation: isolate; }
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,.07), transparent 60%),
    radial-gradient(90% 50% at 100% 100%, rgba(140,56,235,.14), transparent 65%),
    linear-gradient(180deg, var(--bg-base), var(--bg-top));
}

/* ---------- primitivos ---------- */
.label {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600;
}
.dot { width: 6px; height: 6px; border-radius: 999px; flex: none; display: inline-block; }
.dot.pulse { animation: pulseDot 1.6s ease-in-out infinite; }
.sq { width: 8px; height: 8px; border-radius: 3px; flex: none; display: inline-block; }
.card {
  border-radius: 18px; background: var(--surface);
  border: 1px solid var(--hairline);
}
.glass {
  border: 1px solid var(--glass-border); background: var(--glass);
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  box-shadow: var(--glass-hi);
}
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.ml-auto { margin-left: auto; }
.compliance { font-size: 10.5px; line-height: 1.55; color: #4E5768; text-align: center; }
.partner { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: #5C6779; justify-content: center; }
.partner b { padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.1); font-weight: 600; letter-spacing: .04em; color: var(--text-3); }

.avatar {
  border-radius: 999px; flex: none;
  border: 1px solid rgba(255,255,255,.14);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 5px, transparent 5px 10px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: ui-monospace, monospace; color: var(--text-dim);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.illus {
  flex: none; border: 1px solid rgba(255,255,255,.1);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 8px, transparent 8px 16px), rgba(255,255,255,.03);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  font-family: ui-monospace, monospace; font-size: 10px; line-height: 1.5; color: var(--text-3); white-space: pre-line;
}

/* botões */
.btn-pri {
  width: 100%; padding: 17px; border-radius: 16px; border: none;
  background: var(--gold-grad); color: var(--text-on-gold);
  font-size: 16px; font-weight: 600; box-shadow: var(--gold-glow);
}
.btn-sec {
  width: 100%; padding: 15px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
  color: #C3CAD8; font-size: 14.5px; font-weight: 500;
}
.btn-ghost {
  width: 100%; padding: 12px; border: none; background: transparent;
  color: var(--text-dim); font-size: 13.5px; font-weight: 500;
}
.btn-pill {
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05);
  color: var(--text); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.btn-pill.sm { padding: 7px 12px; font-size: 12px; color: #C3CAD8; border-color: rgba(255,255,255,.1); }
.btn-gold-pill {
  padding: 9px 14px; border-radius: 999px; border: none; background: var(--gold);
  color: var(--text-on-gold); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.btn-ok {
  width: 100%; padding: 15px; border-radius: 16px;
  border: 1px solid rgba(34,197,94,.3); background: rgba(34,197,94,.1);
  color: #5EE08D; font-size: 14.5px; font-weight: 600;
}
.btn-danger {
  width: 100%; padding: 15px; border-radius: 16px;
  border: 1px solid rgba(239,68,68,.28); background: rgba(239,68,68,.08);
  color: #FF8A8A; font-size: 14.5px; font-weight: 600;
}
button:focus-visible, a:focus-visible { outline: 2px solid rgba(245,196,81,.7); outline-offset: 2px; }

/* segmented */
.seg {
  display: flex; gap: 6px; padding: 4px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.seg button {
  flex: 1; padding: 8px 0; border-radius: 999px; border: none; background: transparent;
  font-size: 12px; font-weight: 600; color: var(--text-dim); white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: rgba(245,196,81,.22); color: #F9E3B4; }

/* inputs */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.input {
  width: 100%; padding: 15px 16px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.045);
  color: #fff; font-size: 15px; outline: none;
}
.input:focus { border-color: rgba(245,196,81,.55); background: rgba(245,196,81,.07); }

/* ---------- telas de intro (onboarding / primeiro acesso) ---------- */
.intro {
  height: 100%; display: flex; flex-direction: column;
  padding: calc(var(--safe-top) + 44px) 24px calc(26px + var(--safe-bottom));
  max-width: 480px; margin: 0 auto;
}
.progress { display: flex; gap: 6px; flex: none; }
.progress span { height: 3px; border-radius: 999px; flex: 1; background: rgba(255,255,255,.12); }
.progress span.on { background: var(--gold); }
.intro-body { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 14px 0 28px; min-height: 0; margin: auto 0; }
/* print do app no onboarding: mostra só indicadores + velas e some a base branca do recorte */
.onb-shot {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: var(--ar); flex: none;
  border-radius: 20px; overflow: hidden; background: var(--bg-deep);
  -webkit-mask-image: linear-gradient(180deg, #000 90%, transparent), linear-gradient(90deg, #000 86%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(180deg, #000 90%, transparent), linear-gradient(90deg, #000 86%, transparent);
          mask-composite: intersect;
}
.onb-shot img { position: absolute; top: 0; left: 0; width: var(--w); height: auto; display: block; }
/* recortes a partir do canto superior esquerdo de cada print */
.onb-shot.scanner { --ar: 560 / 348; --w: 217.5%; }  /* 1218×473: indicadores + velas */
.onb-shot.house { --ar: 658 / 388; --w: 100%; }      /* 658×473: topo + banner + atalhos (sem a base branca) */
.intro-text { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.intro-title { font-size: 27px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; text-wrap: pretty; }
.intro-copy { font-size: 14.5px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.intro-actions { display: flex; flex-direction: column; gap: 10px; flex: none; }
.status-pill { margin-top: 4px; display: flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid; }
.status-pill span:last-child { font-size: 12px; font-weight: 600; }

/* ---------- login ---------- */
.login {
  height: 100%; overflow: auto; display: flex; flex-direction: column;
  padding: calc(var(--safe-top) + 20px) 24px calc(32px + var(--safe-bottom));
  max-width: 480px; margin: 0 auto;
}
.login-banner {
  display: block; width: 100%; height: auto; aspect-ratio: 900 / 470; flex: none;
  border-radius: 20px; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 50px -24px rgba(245,196,81,.35);
}
.err-card { margin-top: 20px; padding: 14px 16px; border-radius: 16px; border: 1px solid; display: flex; gap: 12px; align-items: flex-start; }
.err-card .bang { width: 20px; height: 20px; border-radius: 999px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--bg-base); }
.trust { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.2); display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: #B7C2D0; }
.trust i { width: 16px; height: 16px; border-radius: 4px; background: rgba(34,197,94,.9); flex: none; margin-top: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); line-height: 1.5; margin-top: 2px; cursor: pointer; }
.check input { margin: 2px 0 0; accent-color: var(--gold); width: 16px; height: 16px; flex: none; }

/* ---------- shell do app ---------- */
.shell { height: 100%; display: flex; }
.sidebar { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }

.header {
  position: relative; z-index: 20; flex: none;
  padding: calc(var(--safe-top) + 36px) 16px 10px;
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  background: linear-gradient(180deg, rgba(11,14,20,.86), rgba(11,14,20,.5));
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header .row { gap: 11px; }
.hello { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.feed-mini { display: flex; align-items: center; gap: 6px; font-size: 11.5px; }
.bal-pill {
  margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.07);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.bal-pill .v { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.bal-pill .plus { width: 26px; height: 26px; border-radius: 999px; background: var(--gold-grad); color: var(--text-on-gold); font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; line-height: 1; }
.topbar { display: none; }

.content { flex: 1; overflow: auto; padding: 0 0 calc(128px + var(--safe-bottom)); -webkit-overflow-scrolling: touch; }
.tab { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 22px; }
.tab.enter { animation: fadeUp .24s ease; }
.tab-title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.sec { display: flex; flex-direction: column; gap: 11px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* grid de 2 colunas: no mobile vira fluxo único ordenado */
.cols { display: contents; }
.cols > .col { display: contents; }

/* feed status */
.feed-card { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); }
.feed-card .t { font-size: 13px; font-weight: 600; }
.feed-card .s { font-size: 11.5px; color: var(--text-dim); }

/* menu da casa */
.house-tag { padding: 3px 7px; border-radius: 5px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: #9AA3B4; }
.house { display: flex; gap: 8px; padding: 10px; border-radius: 18px; border: 1px solid var(--glass-border); background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: var(--glass-hi); }
.house .bal { flex: 1.9; min-width: 0; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.05); display: flex; flex-direction: column; gap: 2px; }
.house .bal span:first-child { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.house .bal span:last-child { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.house button { min-width: 0; padding: 9px 4px; border-radius: 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.house .dep { flex: 1; border: none; background: var(--gold-grad); color: var(--text-on-gold); }
.house .acc { flex: .7; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #C3CAD8; }
.house .out { flex: none; width: 34px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: var(--text-3); display: flex; align-items: center; justify-content: center; }

/* iframe */
.game { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-border); background: var(--bg-deep); aspect-ratio: 16/9; }
.game iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.game .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(70% 80% at 22% 85%, rgba(255,61,138,.13), transparent 60%), var(--bg-deep); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .1em; color: #3D4557; }
.game .err { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; background: var(--bg-deep); }
.game .err .t { font-size: 13.5px; font-weight: 600; color: var(--err); }
.game .err .s { font-size: 12px; color: var(--text-3); line-height: 1.5; max-width: 240px; }
.game .ctl { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.game .ctl button { width: 32px; height: 32px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(11,14,20,.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: var(--text); font-size: 14px; display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0; }
.game .ctl .txt { display: none; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.kpi { padding: 13px 11px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.kpi .k { font-size: 9.5px; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.kpi .v { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.kpi .s { font-size: 10.5px; color: var(--text-dim); }

/* velas */
.candles { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 6px; }
.candles.c4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.candle { padding: 8px 2px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1px solid; min-width: 0; }
.candle.new { animation: slideIn .3s ease; }
.candle .v { font-size: 12px; font-weight: 700; letter-spacing: -.01em; }
.candle .t { font-size: 8.5px; opacity: .8; }
.candles.c4 .candle { padding: 9px 2px; }
.candles.c4 .candle .v { font-size: 13.5px; }
.candles.c4 .candle .t { font-size: 9px; }
.legend { display: flex; gap: 14px; padding-top: 2px; flex-wrap: wrap; }
.legend div { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--text-dim); }

/* padrões */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-ok { display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(34,197,94,.3); background: rgba(34,197,94,.12); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); font-size: 12.5px; font-weight: 500; color: #D6EFE0; }
.chip-ok small { font-size: 10.5px; color: #8FD3A8; font-weight: 600; }
.list > div { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-top: 1px solid var(--hairline); }
.list > div:first-child { border-top-color: transparent; }
.list { overflow: hidden; }

/* estratégias */
.strat { padding: 15px; display: flex; flex-direction: column; gap: 13px; }
.strat .n { font-size: 15px; font-weight: 600; }
.strat .tg { margin-left: auto; font-size: 11px; color: var(--text-dim); }
.strat .stats { display: flex; gap: 18px; }
.mini-stat { display: flex; flex-direction: column; gap: 3px; }
.mini-stat span:first-child { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.mini-stat span:last-child { font-size: 15.5px; font-weight: 600; }

.convert { padding: 15px; border-radius: 18px; border: 1px solid rgba(245,196,81,.28); background: linear-gradient(180deg, rgba(245,196,81,.11), rgba(245,196,81,.04)); display: flex; align-items: center; gap: 13px; }
.convert button { margin-left: auto; flex: none; padding: 11px 15px; border-radius: 999px; border: none; background: var(--gold); color: #1A1204; font-size: 13px; font-weight: 700; }

.quick-dep { display: none; }

/* barras */
.bars { padding: 15px; display: flex; flex-direction: column; gap: 14px; }
.bar-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar-track > div { height: 100%; border-radius: 999px; }
.hist-row { display: flex; align-items: center; gap: 10px; }
.hist-row .l { width: 64px; flex: none; font-size: 11.5px; color: var(--text-3); }
.hist-row .bar-track { flex: 1; height: 10px; background: rgba(255,255,255,.055); }
.hist-row .p { width: 38px; text-align: right; flex: none; font-size: 12px; font-weight: 600; }

.custom { display: flex; gap: 8px; align-items: center; padding: 11px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); }
.custom input { flex: 1; min-width: 0; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #fff; font-size: 13.5px; outline: none; }
.custom input:focus { border-color: rgba(245,196,81,.55); }
.explain { padding: 14px 15px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); display: flex; flex-direction: column; gap: 7px; }
.explain b { font-size: 13.5px; font-weight: 600; color: #C3CAD8; }
.explain p { margin: 0; font-size: 12.5px; line-height: 1.6; color: #B7C2D0; text-wrap: pretty; }

/* minutagem */
.clock { padding: 20px; border-radius: 22px; display: flex; align-items: center; gap: 18px; }
.ring { position: relative; width: 74px; height: 74px; flex: none; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.ring > div { width: 60px; height: 60px; border-radius: 999px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.ring .m { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.ring small { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.clock .h { font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.clock .s { font-size: 12px; color: var(--text-3); }
.clock .seg { display: none; }
.heat { display: grid; grid-template-columns: repeat(10, minmax(0,1fr)); gap: 4px; }
.heat div { aspect-ratio: 1; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid; font-size: 9.5px; font-weight: 600; }
.heat div.now { outline: 1.5px solid var(--gold); outline-offset: 1px; }
.heat-legend { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--text-dim); }
.heat-legend div { flex: 1; height: 6px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(52,180,255,.55), rgba(145,62,248,.7), #C017B4); }
.best { padding: 14px; display: flex; flex-direction: column; gap: 11px; }
.best .items { display: flex; flex-wrap: wrap; gap: 6px; }
.best .items span { padding: 7px 11px; border-radius: 999px; border: 1px solid; font-size: 12.5px; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.tile { padding: 13px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 6px; }
.tile span:first-child { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.tile span:last-child { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.ai { padding: 15px; border-radius: 18px; border: 1px solid rgba(140,56,235,.25); background: linear-gradient(180deg, rgba(140,56,235,.12), rgba(140,56,235,.04)); display: flex; flex-direction: column; gap: 12px; }
.ai p { margin: 0; font-size: 12.5px; line-height: 1.6; color: #C3CAD8; text-wrap: pretty; }
.ai .mini-stat span:first-child { color: #A99BC4; }
.ai .mini-stat span:last-child { font-size: 16px; }

/* carteira */
.wallet { padding: 20px; border-radius: 22px; display: flex; flex-direction: column; gap: 16px; }
.wallet .big { font-size: 36px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.wallet .acts { display: flex; gap: 8px; }
.wallet .acts button { padding: 14px; border-radius: 14px; font-size: 14.5px; font-weight: 600; }
.wallet .acts .pri { flex: 1.4; border: none; background: var(--gold-grad); color: var(--text-on-gold); }
.wallet .acts .sec { flex: 1; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: var(--text); }
.shortcut { display: flex; align-items: center; gap: 12px; padding: 15px; border-top: 1px solid var(--hairline); cursor: pointer; color: inherit; background: transparent; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.shortcut:hover { background: rgba(255,255,255,.03); }
.shortcut:first-child { border-top-color: transparent; }
.shortcut .ic { width: 30px; height: 30px; border-radius: 9px; flex: none; border: 1px solid; }
.shortcut .n { font-size: 14px; font-weight: 500; }
.shortcut .s { font-size: 11.5px; color: var(--text-dim); }
.shortcut .chev { margin-left: auto; color: #4E5768; font-size: 15px; }
.wallet-rail { display: none; }

/* skeleton */
.skel { border-radius: 16px; background: linear-gradient(90deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.09) 40%, rgba(255,255,255,.04) 80%); background-size: 340px 100%; animation: shimmer 1.4s linear infinite; }

/* bottom bar */
.tabbar {
  position: fixed; left: 16px; right: 16px; bottom: calc(22px + var(--safe-bottom)); z-index: 30;
  display: flex; padding: 7px; border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12); background: var(--glass-strong);
  backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.14);
  max-width: 520px; margin: 0 auto;
}
.tabbar button { flex: 1; min-height: 50px; padding: 9px 0 7px; border-radius: 22px; border: none; background: transparent; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.tabbar button[aria-current="page"] { background: rgba(245,196,81,.16); color: #FCF2DC; }
.tabbar span { font-size: 9.5px; font-weight: 600; letter-spacing: .01em; }

/* sheets / modais */
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(4,6,10,.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  border-radius: 28px 28px 0 0; border-top: 1px solid rgba(255,255,255,.13);
  background: var(--glass-sheet);
  backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%);
  box-shadow: 0 -24px 60px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.14);
  padding: 12px 20px calc(30px + var(--safe-bottom));
  animation: sheetUp .28s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column; gap: 18px; max-height: 92dvh; overflow: auto;
  max-width: 560px; margin: 0 auto;
}
.sheet .handle { width: 38px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.18); align-self: center; flex: none; }
.sheet h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.sheet .sub { font-size: 13px; color: var(--text-3); }
.amounts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; padding-top: 6px; }
.amounts button { position: relative; padding: 15px 4px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.045); color: #C3CAD8; font-size: 15px; font-weight: 600; }
.amounts button[aria-pressed="true"] { background: rgba(245,196,81,.18); border-color: rgba(245,196,81,.5); color: #FCF2DC; }
.amounts .tag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: #1A1204; font-size: 8.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.free { display: flex; gap: 8px; align-items: center; padding: 6px 8px 6px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.045); }
.free:focus-within { border-color: rgba(245,196,81,.55); background: rgba(245,196,81,.07); }
.free b { font-size: 15px; color: var(--text-3); font-weight: 600; }
.free input { flex: 1; min-width: 0; padding: 10px 0; border: none; background: transparent; color: #fff; font-size: 17px; font-weight: 600; outline: none; }
.free small { font-size: 11px; color: var(--text-muted); padding-right: 6px; }
.sheet .note { font-size: 11px; color: #5C6779; text-align: center; line-height: 1.5; }
.pix-grid { display: flex; flex-direction: column; gap: 16px; }
.qr { align-self: center; width: 176px; height: 176px; border-radius: 18px; background: #fff; padding: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.qr img { width: 100%; height: 100%; }
.qr .fake { width: 100%; height: 100%; background: repeating-conic-gradient(#0B0E14 0 25%, #fff 0 50%) 0 0/16px 16px; border-radius: 4px; }
.code { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.045); font-family: ui-monospace, monospace; font-size: 11px; line-height: 1.5; color: var(--text-2); word-break: break-all; }
.pix-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--gold); }

.toast {
  position: fixed; top: calc(var(--safe-top) + 40px); left: 16px; right: 16px; z-index: 60;
  display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(22,27,38,.9);
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.85); animation: fadeUp .22s ease;
  font-size: 13.5px; font-weight: 500; max-width: 420px; margin: 0 auto;
  pointer-events: none;
}
.toast i { width: 18px; height: 18px; border-radius: 999px; flex: none; }

/* ============================================================
   Desktop (≥ 1024px): sidebar + topbar, seções em 2 colunas
   ============================================================ */
@media (min-width: 1024px) {
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 999px; }
  .bg { background: radial-gradient(90% 55% at 65% -5%, rgba(255,255,255,.055), transparent 60%), radial-gradient(70% 60% at 100% 100%, rgba(140,56,235,.1), transparent 65%), linear-gradient(180deg, var(--bg-base), var(--bg-top)); }

  .sidebar {
    width: 244px; flex: none; padding: 22px 16px; display: flex; flex-direction: column; gap: 26px;
    border-right: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.022);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  }
  .brand { display: flex; align-items: center; padding: 2px 4px 0; }
  .brand img { display: block; width: 140px; height: auto; }
  .brand b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; display: block; }
  .brand small { font-size: 11px; color: var(--text-3); }
  .nav { display: flex; flex-direction: column; gap: 4px; }
  .nav button { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: #B7C2D0; font-size: 14px; font-weight: 500; text-align: left; }
  .nav button:hover { background: rgba(255,255,255,.05); }
  .nav button[aria-current="page"] { background: rgba(245,196,81,.16); border-color: rgba(245,196,81,.3); color: #FCF2DC; }
  .nav .badge { margin-left: auto; font-size: 11px; font-weight: 600; }
  .side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
  .free-card { padding: 14px; border-radius: 16px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.04); display: flex; flex-direction: column; gap: 9px; }
  .free-card p { margin: 0; font-size: 12.5px; line-height: 1.5; color: #B7C2D0; }
  .side-foot .partner { justify-content: flex-start; padding: 0 4px; }
  .side-foot .compliance { text-align: left; padding: 0 4px; color: var(--text-muted); }

  .header { display: none; }
  .topbar {
    flex: none; display: flex; align-items: center; gap: 16px; padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(11,14,20,.55);
    backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  }
  .topbar .ttl { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
  .topbar .sub { font-size: 12px; color: var(--text-3); }
  .topbar .feed { margin-left: 24px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); font-size: 12.5px; font-weight: 500; }
  .topbar .bal { display: flex; flex-direction: column; gap: 1px; text-align: right; }
  .topbar .bal span:first-child { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
  .topbar .bal span:last-child { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
  .topbar .dep { padding: 11px 18px; border-radius: 999px; border: none; background: var(--gold-grad); color: var(--text-on-gold); font-size: 14px; font-weight: 600; }
  .topbar .user { display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); font-size: 13.5px; font-weight: 500; }

  .content { padding: 24px; }
  .tab { padding: 0; gap: 20px; max-width: 1200px; margin: 0 auto; }
  .tab > .tab-title { display: none; }
  .cols { display: grid; grid-template-columns: minmax(0,1fr) 352px; gap: 20px; align-items: start; }
  .cols.even { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .cols > .col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
  .m-only { display: none !important; }
  [style*="order"] { order: 0 !important; }

  .game .ctl { top: 12px; right: 12px; gap: 7px; }
  .game .ctl button { width: auto; height: auto; padding: 8px 13px; font-size: 12.5px; font-weight: 600; }
  .game .ctl .ico { display: none; }
  .game .ctl .txt { display: inline; }

  .candles { grid-template-columns: repeat(12, minmax(0,1fr)); }
  .candles.c4 { grid-template-columns: repeat(8, minmax(0,1fr)); }
  .candle .v { font-size: 13px; }
  .candle .t { font-size: 9.5px; }
  .pattern-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  .pattern-grid > div { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hairline); display: flex; align-items: center; gap: 9px; font-size: 13px; }
  .kpis.rail { grid-template-columns: 1fr; }
  .kpis.rail .kpi { flex-direction: row; align-items: baseline; flex-wrap: wrap; padding: 14px 16px; }
  .kpis.rail .kpi .k { flex: 1 0 100%; font-size: 10px; }
  .kpis.rail .kpi .v { font-size: 26px; }
  .kpis.rail .kpi .s { margin-left: auto; font-size: 11.5px; }
  .kpis.big .kpi { padding: 18px; }
  .kpis.big .kpi .v { font-size: 34px; }
  .kpis.big .kpi .k { font-size: 10.5px; }
  .quick-dep { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
  .quick-dep .q { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
  .quick-dep .q button { padding: 12px 4px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.045); color: #C3CAD8; font-size: 14px; font-weight: 600; }
  .quick-dep .q button:hover { border-color: rgba(245,196,81,.5); color: #FCF2DC; }

  .clock { padding: 24px; }
  .ring { width: 88px; height: 88px; }
  .ring > div { width: 72px; height: 72px; }
  .ring .m { font-size: 22px; }
  .clock .h { font-size: 44px; }
  .clock .seg-host { margin-left: auto; width: 360px; }
  .clock .seg { display: flex; }
  .heat-seg { display: none !important; }
  .heat div { aspect-ratio: 1.3; border-radius: 10px; font-size: 13px; }

  .wallet .big { font-size: 46px; }
  .wallet-rail { display: flex; }

  .tabbar { display: none; }

  /* depósito vira modal central */
  .sheet {
    inset: 0; margin: auto; height: max-content;
    width: 420px; border-radius: 26px; border: 1px solid rgba(255,255,255,.13);
    padding: 24px; animation: modalIn .24s cubic-bezier(.22,1,.36,1);
    box-shadow: 0 40px 90px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.14);
    max-height: 90dvh;
  }
  .sheet .handle { display: none; }
  .sheet.pix { width: 460px; }
  .sheet.pix .pix-grid { display: grid; grid-template-columns: 164px 1fr; gap: 20px; align-items: start; }
  .sheet.pix .qr { width: 164px; height: 164px; }
  .toast { top: auto; bottom: 28px; left: 0; right: 0; width: max-content; max-width: 480px; }
}

/* celular: o Aviator precisa de altura de verdade para jogar (painel antigo: tela − 350px, mín. 400px) */
@media (max-width: 1023px) {
  .game { aspect-ratio: auto; height: clamp(420px, calc(100dvh - 250px), 680px); }
}

/* desktop estreito: 12 colunas de velas não cabem ao lado do rail */
@media (min-width: 1024px) and (max-width: 1279px) {
  .candles { grid-template-columns: repeat(8, minmax(0,1fr)); }
  .candles.c4 { grid-template-columns: repeat(6, minmax(0,1fr)); }
}

/* barra do jogo: controles fora do iframe para não cobrir o saldo da GoldeBet */
.game-bar { display: flex; align-items: center; gap: 6px; }
.game-bar .label { margin-right: auto; }
.game-bar .btn-pill { padding: 6px 11px; font-size: 11.5px; }

/* velas: mostrar mais */
.more-host:empty { display: none; }
.more { align-self: center; display: block; margin: 2px auto 0; }
.more span { color: var(--text-dim); font-weight: 500; }

/* esconder saldo */
.eye { display: flex; align-items: center; justify-content: center; flex: none; border: none; background: transparent; color: var(--text-3); padding: 0; }
.eye:hover { color: var(--text); }
.eye.round { width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); }
.eye.inline { width: 20px; height: 20px; margin: -3px 0; }
.header .bal-pill { margin-left: 0; }

/* notificação de sinal — canto direito, abaixo do botão de depósito */
@keyframes sigIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes sigOut { to { opacity: 0; transform: translateX(24px); } }
@keyframes sigRing { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 100% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } }
#signal { position: fixed; z-index: 55; top: 110px; right: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.sig-note {
  display: flex; align-items: flex-start; gap: 10px; width: min(264px, calc(100vw - 32px));
  padding: 11px 8px 11px 13px; border-radius: 16px;
  border: 1px solid rgba(34,197,94,.35);
  background: linear-gradient(180deg, rgba(22,40,30,.92), rgba(16,24,22,.92));
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.08);
  animation: sigIn .32s cubic-bezier(.22,1,.36,1);
}
.sig-note.out { animation: sigOut .22s ease forwards; }
.sig-dot { width: 9px; height: 9px; margin-top: 4px; border-radius: 999px; background: var(--ok); flex: none; animation: sigRing 1.4s ease-out infinite; }
.sig-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 0; border: 0; background: transparent; text-align: left; color: inherit; }
.sig-body small { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #8FE3AE; }
.sig-body b { font-size: 14.5px; font-weight: 600; color: #F2FFF6; }
.sig-body span { font-size: 11.5px; color: #A9C9B4; line-height: 1.4; }
.sig-x { flex: none; width: 24px; height: 24px; margin-top: -2px; border: 0; border-radius: 999px; background: transparent; color: #7FA78D; font-size: 17px; line-height: 1; }
.sig-x:hover { background: rgba(255,255,255,.06); color: #fff; }

/* variação minutagem: rosa das velas 10x+, relógio com o minuto */
@keyframes minRing { 0% { box-shadow: 0 0 0 0 rgba(192,23,180,.6); } 100% { box-shadow: 0 0 0 10px rgba(192,23,180,0); } }
.sig-note.min { border-color: rgba(192,23,180,.5); background: linear-gradient(180deg, rgba(52,18,50,.93), rgba(26,14,30,.93)); }
.sig-note.min .sig-body small { color: #F39BEA; }
.sig-note.min .sig-body b { color: #FFF2FD; }
.sig-note.min .sig-body b em { font-style: normal; font-weight: 600; color: #F39BEA; font-variant-numeric: tabular-nums; margin-left: 4px; }
.sig-note.min .sig-body span { color: #D3A9CE; }
.sig-note.min .sig-x { color: #B77FB1; }
.sig-clock {
  flex: none; width: 34px; height: 34px; border-radius: 999px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  background: var(--high); color: #fff; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  animation: minRing 1.4s ease-out infinite;
}
.sig-note.min.now { border-color: rgba(192,23,180,.8); box-shadow: 0 0 0 1px rgba(192,23,180,.35), 0 18px 40px -14px rgba(192,23,180,.55); }
