/* Trade Rush Radar: tema "terminal" verde (referencia: prints FlightRadar) */
:root {
  --bg: #070b12;
  --bar: #0b0f16;
  --bar-2: #0b1420;
  --painel: #0a141c;
  --painel-2: #0a1620;
  --painel-head: #0a1a26;
  --painel-head-2: #091f2e;
  --th: #091016;
  --card: #0b1016;
  --linha: rgba(43, 143, 239, .16);
  --linha-fraca: rgba(43, 143, 239, .07);
  --verde: #2b8fef;
  --verde-vivo: #2f9bff;
  --verde-btn: #1e90ff;
  --verde-btn-2: #1a82f0;
  --verde-escuro: #123a6b;
  --verde-txt: #3a97e8;
  --verde-dim: #2b7fd0;
  --texto: #e8f2eb;
  --texto-2: #9fb3a6;
  --mudo: #5f7a68;
  --azul: #37a6d8;
  --azul-vivo: #1e8fff;
  --roxo: #c996d6;
  --roxo-vivo: #a667e4;
  --laranja: #ff8a5b;
  --amarelo: #f9d602;
  --vermelho: #e5243b;
  --aviso: #e2c13a;
  --f-titulo: "Orbitron", "Rajdhani", sans-serif;
  --f-texto: "Rajdhani", system-ui, sans-serif;
  --f-mono: "Share Tech Mono", ui-monospace, monospace;
  --scan: repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 3px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
svg { display: block; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1d5a36; border-radius: 3px; }
* { scrollbar-width: thin; scrollbar-color: #1d5a36 transparent; }

.mono { font-family: var(--f-mono); }

/* ---------- marca ---------- */
.marca { display: flex; align-items: center; gap: 12px; }
.marca-ic {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--verde); border-radius: 4px;
  color: var(--verde);
  background: rgba(33, 196, 94, .06);
  box-shadow: 0 0 14px rgba(33, 196, 94, .18) inset;
}
.marca-ic svg { width: 16px; height: 16px; }
.marca-nome {
  font-family: var(--f-titulo); font-weight: 600;
  font-size: 13.5px; letter-spacing: .2em; color: var(--verde);
  text-shadow: 0 0 10px rgba(33, 196, 94, .35);
  line-height: 1.05;
}
.marca-sub {
  font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .22em;
  color: var(--mudo); text-transform: uppercase; margin-top: 2px;
}

/* ---------- moldura com cantos ---------- */
.cantos { position: relative; }
.cantos::before, .cantos::after, .cantos > .c-b::before, .cantos > .c-b::after {
  content: ""; position: absolute; width: 11px; height: 11px;
  border-color: var(--verde-vivo); border-style: solid; pointer-events: none; z-index: 2;
}
.cantos::before { top: -2px; left: -2px; border-width: 2px 0 0 2px; border-top-left-radius: 3px; }
.cantos::after { top: -2px; right: -2px; border-width: 2px 2px 0 0; border-top-right-radius: 3px; }
.cantos > .c-b::before { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; border-bottom-left-radius: 3px; }
.cantos > .c-b::after { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; border-bottom-right-radius: 3px; }

/* ==========================================================
   APP (topbar + sidebar + conteudo)
   ========================================================== */
.app { display: grid; grid-template-columns: 177px 1fr; grid-template-rows: 44px 1fr; height: 100vh; }

.topbar {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  background: var(--bar); background-image: var(--scan);
  border-bottom: 1px solid var(--linha);
}
.topbar .marca-ic { width: 28px; height: 28px; }
.topbar .marca-ic svg { width: 14px; height: 14px; }
.topbar .marca-nome { font-size: 12px; }
.topbar .marca-sub { font-size: 7.5px; }
.topo-esq { display: flex; align-items: center; gap: 12px; }
.status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .06em; color: #8fa89a;
}
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 6px var(--verde); }
.status b { font-weight: 400; margin-left: 8px; }
.topo-dir { display: flex; align-items: center; gap: 8px; }
.saldo-box {
  display: flex; flex-direction: column; justify-content: center;
  height: 34px; padding: 0 10px; min-width: 74px;
  background: #060b08; border: 1px solid rgba(255, 255, 255, .1); border-radius: 3px;
  cursor: pointer;
}
.saldo-box small { font-family: var(--f-mono); font-size: 7px; letter-spacing: .18em; color: var(--mudo); }
.saldo-box b { font-family: var(--f-titulo); font-weight: 700; font-size: 12.5px; letter-spacing: .02em; color: #fff; }
.user-chip {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 8px 0 5px;
  background: #060b08; border: 1px solid rgba(33, 196, 94, .28); border-radius: 3px;
  position: relative;
}
.user-av {
  width: 22px; height: 22px; display: grid; place-items: center;
  border: 1px solid var(--verde); border-radius: 2px;
  font-family: var(--f-mono); font-size: 9px; color: var(--verde); text-transform: uppercase;
}
.user-nome { font-family: var(--f-texto); font-weight: 700; font-size: 11px; line-height: 1; color: #fff; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-on { font-family: var(--f-mono); font-size: 7px; letter-spacing: .1em; color: var(--verde); display: flex; align-items: center; gap: 3px; margin-top: 2px; }
.user-on::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--verde); }
.user-chip .seta { width: 12px; height: 12px; color: var(--mudo); }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; z-index: 30;
  background: #0a1411; border: 1px solid var(--linha); border-radius: 4px; padding: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.user-menu .um-email { font-family: var(--f-mono); font-size: 10px; color: var(--mudo); padding: 6px 8px 8px; border-bottom: 1px solid var(--linha-fraca); margin-bottom: 4px; word-break: break-all; }
.user-menu button { display: flex; width: 100%; align-items: center; gap: 8px; background: none; border: 0; padding: 8px; border-radius: 3px; font-size: 13px; font-weight: 600; color: var(--texto-2); text-align: left; }
.user-menu button:hover { background: rgba(33, 196, 94, .08); color: var(--verde); }
.user-menu svg { width: 14px; height: 14px; }

.sidebar {
  display: flex; flex-direction: column;
  background: var(--bar); background-image: var(--scan);
  border-right: 1px solid var(--linha-fraca);
  min-height: 0;
}
.nav-rotulo { font-family: var(--f-mono); font-size: 8px; letter-spacing: .38em; color: var(--mudo); padding: 22px 10px 12px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 12px;
  font-family: var(--f-texto); font-weight: 600; font-size: 13px; color: var(--texto-2);
  position: relative;
}
.nav a svg { width: 15px; height: 15px; opacity: .85; }
.nav a:hover { color: var(--texto); }
.nav a.ativo { color: var(--verde); background: linear-gradient(90deg, rgba(33, 196, 94, .13), rgba(33, 196, 94, .02) 80%, transparent); }
.nav a.ativo svg { opacity: 1; }
.sair {
  margin-top: auto; border-top: 1px solid var(--linha-fraca);
  display: flex; align-items: center; gap: 6px; padding: 12px 10px;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .08em; color: var(--mudo);
  background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%;
}
.sair svg { width: 11px; height: 11px; }
.sair:hover { color: var(--verde); }

.conteudo { overflow: auto; min-width: 0; padding: 17px 16px 40px; background: var(--bg); }
.miolo { max-width: 1504px; margin: 0 auto; }
.tela[hidden] { display: none !important; }

/* ---------- paineis de tabela ---------- */
.linha-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.painel {
  background: var(--painel);
  border: 1px solid var(--linha);
  display: flex; flex-direction: column;
  min-width: 0;
}
.painel-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 36px; padding: 0 10px 0 9px;
  background: linear-gradient(90deg, var(--painel-head), var(--painel-head-2));
  border-bottom: 1px solid var(--linha);
}
.painel-tit {
  font-family: var(--f-titulo); font-weight: 600; font-size: 11.5px; letter-spacing: .13em;
  color: var(--verde); text-shadow: 0 0 8px rgba(33, 196, 94, .3); text-transform: uppercase;
}
.tag-per {
  font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .14em; color: var(--verde);
  border: 1px solid rgba(33, 196, 94, .28); border-radius: 3px; padding: 3px 8px;
  background: rgba(0, 0, 0, .18);
}
.painel-cont { position: relative; }
.painel-cont.rola { overflow: auto; }
.linha-3 .painel-cont { height: 353px; }

.tab { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 11px; }
.tab th {
  position: sticky; top: 0; z-index: 1;
  background: var(--th);
  text-align: left; font-weight: 700; font-size: 9.5px; letter-spacing: .05em;
  color: #1e9f4e; height: 29px; padding: 0 8px; border-bottom: 1px solid var(--linha);
  text-transform: uppercase;
}
.tab td { height: 32.5px; padding: 0 8px; border-bottom: 1px solid var(--linha-fraca); white-space: nowrap; }
.tab tr:nth-child(even) td { background: rgba(255, 255, 255, .008); }
.tab tbody tr:hover td { background: rgba(33, 196, 94, .04); }
.c-verde { color: var(--verde-txt); }
.c-dim { color: var(--verde-dim); }
.c-azul { color: var(--azul); }
.c-roxo { color: var(--roxo); }
.c-branco { color: #fff; }
.c-amarelo { color: var(--amarelo); font-weight: 700; }
.b { font-weight: 700; }

.pos { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 700; }
.pos i {
  font-style: normal; width: 15px; height: 15px; display: grid; place-items: center;
  font-size: 9px; border-radius: 2px; font-weight: 700;
}
.pos .p1 { background: var(--verde); color: #04130b; }
.pos .p2 { background: var(--verde-escuro); color: #d8f5e2; }
.pos .p3 { border: 1px solid #84760d; color: var(--amarelo); }

.velas { margin-top: 27px; }
.velas .painel-cont { max-height: 540px; }
.reg { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; color: var(--verde); }
.tab.largo td:first-child, .tab.largo th:first-child { width: 35%; }

.vazio {
  display: grid; place-items: center; text-align: center; height: 100%; min-height: 120px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--mudo); padding: 20px;
}

/* cores por faixa de multiplicador */
.m-azul { color: #3fb3ea; }
.m-roxo { color: var(--roxo); }
.m-laranja { color: var(--laranja); }
.m-amarelo { color: var(--amarelo); }

/* ---------- AO VIVO ---------- */
.jogo {
  position: relative; height: 505px;
  border: 1px solid rgba(33, 196, 94, .22); border-radius: 8px;
  background: #000; padding: 6px;
}
.jogo-tela { width: 100%; height: 100%; border-radius: 5px; overflow: hidden; background: #000; position: relative; }
.jogo-tela iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.jogo-tela .jogo-msg {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--mudo);
}
.fase {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 14px;
  background: #050b08; border: 1px solid rgba(33, 196, 94, .3); border-radius: 3px;
  font-family: var(--f-titulo); font-weight: 700; font-size: 11px; letter-spacing: .14em;
}
.fase i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.fase.azul { color: #3fb3ea; } .fase.roxo { color: var(--roxo); } .fase.laranja { color: var(--laranja); } .fase.amarelo { color: var(--amarelo); }

.linha-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.card {
  background: var(--card); background-image: var(--scan);
  border: 1px solid rgba(33, 196, 94, .16); border-radius: 5px;
  padding: 11px 11px 12px; min-height: 82px; min-width: 0;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.card-tit { font-family: var(--f-titulo); font-weight: 700; font-size: 11px; letter-spacing: .1em; color: #fff; }
.badge-verde { font-family: var(--f-titulo); font-weight: 700; font-size: 9px; background: var(--verde); color: #04130b; padding: 3px 5px; border-radius: 2px; }
.card-tempo { font-family: var(--f-mono); font-size: 9px; letter-spacing: .08em; color: #7d9587; }
.medias { display: grid; grid-template-columns: repeat(3, 1fr); }
.medias small { display: block; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .06em; color: #7d9587; margin-bottom: 4px; }
.medias b { font-family: var(--f-mono); font-size: 17px; font-weight: 700; }
.num-grande { font-family: var(--f-mono); font-size: 22px; font-weight: 700; line-height: 1; margin: 4px 0 8px; }
.card-rot { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .09em; color: #7d9587; text-transform: uppercase; }

.historico { margin-top: 14px; }
.historico .card-head { margin-bottom: 14px; }
.hist-tit { display: flex; align-items: center; gap: 8px; font-family: var(--f-titulo); font-weight: 700; font-size: 10.5px; letter-spacing: .13em; color: #fff; }
.hist-tit i { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 8px var(--verde); }
.hist-sel { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .08em; color: #7d9587; }
.hist-sel select {
  background: #060b08; border: 1px solid rgba(255, 255, 255, .12); border-radius: 3px;
  font-family: var(--f-mono); font-size: 10px; color: #fff; padding: 5px 6px; min-width: 60px;
  color-scheme: dark;
}
.chips { display: flex; flex-wrap: wrap; gap: 5px 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 7px 0 3px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 2px;
  font-family: var(--f-mono);
}
.chip b { font-size: 11.5px; font-weight: 700; padding: 1px 3px; border-radius: 1px; }
.chip small { font-size: 8px; color: #7d9587; letter-spacing: .02em; }
.chip.azul b { color: #3fb3ea; background: #112427; box-shadow: 0 0 0 1px #1a4452; }
.chip.roxo b { color: var(--roxo); background: #1f1f23; box-shadow: 0 0 0 1px #413647; }
.chip.laranja b { color: var(--laranja); background: #241e17; box-shadow: 0 0 0 1px #4f3427; }
.chip.amarelo b { color: var(--amarelo); background: #24260d; box-shadow: 0 0 0 1px #4f4a0b; }
.chip.novo { animation: pisca 1.2s ease-out 1; }
@keyframes pisca { 0% { border-color: var(--verde-vivo); box-shadow: 0 0 12px rgba(0, 230, 118, .45); } 100% { border-color: rgba(255, 255, 255, .08); box-shadow: none; } }

/* ==========================================================
   SINAIS (painel + iframe da corretora, layout 60/40)
   ========================================================== */
.sinais-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.sinais-jogo { position: relative; height: 620px; border: 1px solid rgba(33, 196, 94, .22); border-radius: 8px; background: #000; padding: 6px; }
.sinais-jogo .jogo-tela { width: 100%; height: 100%; border-radius: 5px; overflow: hidden; background: #000; position: relative; }
.sinais-jogo iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.sinais-jogo .jogo-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--mudo); }

.sinais-painel { display: flex; flex-direction: column; min-height: 620px; background: var(--painel); border: 1px solid var(--linha); }
.sinais-painel-head { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 10px 0 9px; background: linear-gradient(90deg, var(--painel-head), var(--painel-head-2)); border-bottom: 1px solid var(--linha); }
.sinais-como { display: flex; gap: 10px; align-items: flex-start; padding: 12px; margin: 12px; background: rgba(33, 196, 94, .04); border: 1px solid rgba(33, 196, 94, .14); border-radius: 3px; font-family: var(--f-mono); font-size: 10.5px; line-height: 1.65; color: #a8bdb0; }
.sinais-como b { color: var(--verde); }
.sinais-como svg { width: 14px; height: 14px; color: var(--verde); flex: none; margin-top: 2px; }

.res { flex: 1; margin: 0 12px; border: 1px solid var(--linha); border-radius: 5px; background: var(--card); background-image: var(--scan); padding: 22px 18px; display: grid; place-items: center; text-align: center; min-height: 260px; }
.res-txt { font-family: var(--f-mono); font-size: 12px; line-height: 1.75; color: var(--texto-2); }
.res-txt .prompt { color: var(--verde); }
.res-txt b { color: #fff; }

.armado { display: grid; place-items: center; gap: 8px; }
.armado .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--verde-vivo); box-shadow: 0 0 12px var(--verde-vivo); animation: pisca-arm 1.2s infinite; }
@keyframes pisca-arm { 50% { opacity: .3; } }
.armado .t { font-family: var(--f-titulo); font-weight: 700; font-size: 14px; letter-spacing: .16em; color: var(--verde-vivo); text-transform: uppercase; }
.armado .s { font-family: var(--f-mono); font-size: 10.5px; line-height: 1.65; color: #9fb3a6; max-width: 320px; }
.armado .s b { color: #fff; }

.analisando { display: grid; place-items: center; gap: 12px; width: 100%; }
.analisando .aro { position: relative; width: 78px; height: 78px; }
.analisando .aro svg { transform: rotate(-90deg); }
.analisando .aro circle.trilha { stroke: rgba(33, 196, 94, .18); }
.analisando .aro circle.prog { stroke: var(--verde-vivo); stroke-linecap: round; transition: stroke-dashoffset .12s linear; }
.analisando .aro .n { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-titulo); font-weight: 700; font-size: 20px; color: #fff; }
.analisando .rot { font-family: var(--f-titulo); font-weight: 700; font-size: 12.5px; letter-spacing: .18em; color: var(--verde); }
.analisando .rot .pt::after { content: ""; display: inline-block; width: 20px; text-align: left; animation: pontinhos 1s steps(4) infinite; }
@keyframes pontinhos { 0%{content:""} 25%{content:"."} 50%{content:".."} 75%{content:"..."} 100%{content:"...."} }
.analisando .con { width: 100%; max-width: 320px; min-height: 78px; background: rgba(0, 0, 0, .35); border: 1px solid var(--linha-fraca); border-radius: 3px; padding: 8px 10px; font-family: var(--f-mono); font-size: 10.5px; text-align: left; color: var(--verde-txt); overflow: hidden; }
.analisando .con .ln { opacity: .55; padding: 1px 0; }
.analisando .con .ln:last-child { opacity: 1; color: var(--verde-vivo); }
.analisando .con .ln::before { content: "> "; color: var(--mudo); }

.resultado { display: grid; place-items: center; gap: 8px; }
.resultado .tag { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .18em; color: var(--verde); border: 1px solid rgba(33, 196, 94, .3); background: rgba(33, 196, 94, .06); padding: 4px 10px; border-radius: 2px; }
.resultado .lbl { display: flex; align-items: center; gap: 8px; font-family: var(--f-titulo); font-weight: 700; font-size: 12.5px; letter-spacing: .18em; color: #fff; text-transform: uppercase; }
.resultado .lbl svg { width: 14px; height: 14px; color: var(--verde-vivo); }
.resultado .valor { display: flex; align-items: baseline; gap: 2px; font-family: var(--f-titulo); font-weight: 900; color: var(--verde-vivo); text-shadow: 0 0 24px rgba(0, 230, 118, .35); line-height: 1; margin: 4px 0; }
.resultado .valor .num { font-size: 62px; letter-spacing: -.02em; }
.resultado .valor .pct { font-size: 26px; margin-left: 4px; opacity: .85; }
.resultado .conf { font-family: var(--f-mono); font-size: 10.5px; color: var(--texto-2); }
.resultado .conf b { color: var(--verde); }

.sinais-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 12px 12px; }
.sinais-meta .box { background: var(--card); border: 1px solid var(--linha); border-radius: 4px; padding: 9px 11px; }
.sinais-meta .k { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .1em; color: var(--mudo); text-transform: uppercase; margin-bottom: 4px; }
.sinais-meta .v { font-family: var(--f-titulo); font-weight: 700; font-size: 13px; color: #fff; }

.btn-analisar { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 12px 12px; height: 52px; border-radius: 5px; border: 1px solid transparent; background: linear-gradient(90deg, var(--verde-btn-2), var(--verde-btn)); color: #04210f; box-shadow: 0 0 22px rgba(0, 223, 110, .22); font-family: var(--f-titulo); font-weight: 700; font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase; transition: filter .15s, box-shadow .15s, background .15s; }
.btn-analisar:hover { filter: brightness(1.08); box-shadow: 0 0 32px rgba(0, 223, 110, .38); }
.btn-analisar svg { width: 16px; height: 16px; }
.btn-analisar.parando { background: linear-gradient(90deg, #b81424, #e5243b); color: #fff; box-shadow: 0 0 22px rgba(229, 36, 59, .35); }
.btn-analisar.parando:hover { box-shadow: 0 0 32px rgba(229, 36, 59, .45); }

@media (max-width: 1050px) {
  .sinais-grid { grid-template-columns: 1fr; }
  .sinais-jogo { height: 55vh; min-height: 380px; }
  .sinais-painel { min-height: 480px; }
}

/* ---------- selo de previa ---------- */
.selo-previa {
  font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .14em; color: var(--aviso);
  border: 1px solid rgba(226, 193, 58, .35); background: rgba(226, 193, 58, .07);
  padding: 4px 8px; border-radius: 3px;
}

/* ==========================================================
   PORTAO (controle de acesso)
   ========================================================== */
.fundo-portao {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(4, 40, 26, .9), transparent 60%),
    #040e0c;
  background-image: var(--scan), radial-gradient(ellipse at 50% 45%, #06261a, #040e0c 62%);
}
.portao {
  width: 100%; max-width: 436px;
  background: #0a181a; border: 1px solid var(--linha);
  box-shadow: 0 0 60px rgba(0, 230, 118, .07);
}
.portao-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 15px; border-bottom: 1px solid var(--linha);
  background: linear-gradient(180deg, #0b2420, #0a1c1c);
}
.tag-18 { font-family: var(--f-mono); font-size: 9px; color: var(--verde); border: 1px solid rgba(33, 196, 94, .35); border-radius: 3px; padding: 5px 8px; background: rgba(33, 196, 94, .05); }
.portao-corpo { padding: 20px 16px 20px; }
.rot-sistema { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .3em; color: var(--mudo); text-align: center; text-transform: uppercase; }
.portao-tit {
  text-align: center; margin: 12px 0 22px;
  font-family: var(--f-texto); font-weight: 700; font-size: 16.5px; line-height: 1.6; letter-spacing: .01em;
  color: #eef7f1; text-transform: uppercase;
}
.portao-tit em { font-style: normal; font-family: var(--f-titulo); font-weight: 600; font-size: 14px; letter-spacing: .02em; color: var(--verde-vivo); text-shadow: 0 0 10px rgba(0, 230, 118, .35); }
.opcao { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .1em; color: var(--mudo); text-transform: uppercase; }
.opcao-txt { font-family: var(--f-texto); font-size: 13.5px; color: #a8bdb0; margin: 6px 0 12px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; height: 44px; border-radius: 3px;
  font-family: var(--f-titulo); font-weight: 600; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent; transition: filter .15s, box-shadow .15s, background .15s;
}
.btn svg { width: 15px; height: 15px; }
.btn-cheio { background: linear-gradient(90deg, var(--verde-btn-2), var(--verde-btn)); color: #04210f; box-shadow: 0 0 22px rgba(0, 223, 110, .22); }
.btn-cheio:hover { filter: brightness(1.08); box-shadow: 0 0 28px rgba(0, 223, 110, .35); }
.btn-cheio:disabled { background: #036d34; color: #7fc9a0; box-shadow: none; cursor: not-allowed; filter: none; }
.btn-borda { background: rgba(0, 0, 0, .15); border-color: var(--verde-vivo); color: var(--verde-vivo); height: 47px; }
.btn-borda:hover { background: rgba(0, 230, 118, .07); }
.aviso {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 10px; padding: 11px 11px;
  background: #172119; border: 1px solid rgba(226, 193, 58, .28); border-radius: 3px;
  font-family: var(--f-mono); font-size: 9.5px; line-height: 1.75; letter-spacing: .06em; color: var(--aviso); text-transform: uppercase;
}
.aviso svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.divisor { display: flex; align-items: center; gap: 10px; margin: 14px 0 16px; color: #2b5a41; }
.divisor::before, .divisor::after { content: ""; flex: 1; height: 1px; background: rgba(33, 196, 94, .16); }
.divisor i { width: 5px; height: 5px; background: #2d7a50; transform: rotate(45deg); }

/* ==========================================================
   LOGIN
   ========================================================== */
.login { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login-esq {
  position: relative; padding: 0 38px; display: flex; flex-direction: column; justify-content: center;
  background: #04130f;
  background-image:
    linear-gradient(rgba(33, 196, 94, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 196, 94, .045) 1px, transparent 1px),
    radial-gradient(ellipse at 20% 30%, #062116, #04120e 70%);
  background-size: 18px 18px, 18px 18px, 100% 100%;
  border-right: 1px solid rgba(33, 196, 94, .12);
}
.login-esq .marca-ic { width: 44px; height: 44px; }
.login-esq .marca-ic svg { width: 20px; height: 20px; }
.login-esq .marca-nome { font-size: 21px; letter-spacing: .22em; }
.login-esq .marca-sub { font-size: 7.5px; }
.hero {
  font-family: var(--f-titulo); font-weight: 900; font-size: 30px; line-height: 1.33; letter-spacing: .01em;
  color: #fff; margin: 50px 0 10px; text-transform: uppercase;
}
.hero em { font-style: normal; color: var(--verde-vivo); text-shadow: 0 0 18px rgba(0, 230, 118, .3); }
.hero-sub { font-size: 15px; color: #9ab3a3; margin: 0 0 22px; }
.hero-sub b { color: #fff; }
.selos { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 32px; }
.selos span {
  display: inline-flex; align-items: center; gap: 7px; height: 23px; padding: 0 9px;
  font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .1em; color: #9ab3a3;
  border: 1px solid rgba(33, 196, 94, .28); border-radius: 2px; background: rgba(33, 196, 94, .04);
}
.selos svg { width: 10px; height: 10px; color: var(--verde); }
.numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 840px; }
.numeros div { border: 1px solid rgba(33, 196, 94, .18); background: rgba(8, 30, 20, .55); padding: 18px 16px 16px; }
.numeros b { display: block; font-family: var(--f-titulo); font-weight: 900; font-size: 22px; color: var(--verde-vivo); letter-spacing: .02em; }
.numeros small { display: block; font-family: var(--f-mono); font-size: 7.5px; letter-spacing: .12em; color: var(--mudo); margin-top: 10px; text-transform: uppercase; }
.citacao {
  margin-top: 32px; max-width: 840px; padding: 20px 18px;
  border-left: 3px solid var(--verde-vivo); background: rgba(8, 30, 20, .55);
  border-top: 1px solid rgba(33, 196, 94, .12); border-right: 1px solid rgba(33, 196, 94, .12); border-bottom: 1px solid rgba(33, 196, 94, .12);
}
.citacao p { margin: 0; font-style: italic; font-size: 13.5px; color: #9ab3a3; }
.citacao small { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--f-mono); font-size: 8px; letter-spacing: .14em; color: var(--mudo); text-transform: uppercase; }
.citacao small::before { content: ""; width: 20px; height: 1px; background: var(--verde); }

.login-dir { display: flex; flex-direction: column; justify-content: center; padding: 0 42px 0 56px; background: #03100c; background-image: var(--scan); }
.form { width: 100%; max-width: 840px; }
.form-tit { font-family: var(--f-titulo); font-weight: 700; font-size: 20px; letter-spacing: .06em; color: #fff; display: flex; align-items: center; gap: 6px; }
.form-tit i { width: 2px; height: 22px; background: var(--verde-vivo); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.form-sub { font-family: var(--f-mono); font-size: 8px; letter-spacing: .14em; color: #1f7a45; margin-top: 4px; text-transform: uppercase; }
.campo { margin-top: 26px; }
.campo + .campo { margin-top: 18px; }
.campo label { display: block; font-family: var(--f-mono); font-size: 8px; letter-spacing: .14em; color: var(--mudo); margin-bottom: 8px; text-transform: uppercase; }
.input {
  display: flex; align-items: center; gap: 12px; height: 45px; padding: 0 14px;
  background: #040e11; border: 1px solid rgba(33, 196, 94, .16); border-radius: 3px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus-within { border-color: rgba(0, 230, 118, .6); box-shadow: 0 0 0 3px rgba(0, 230, 118, .08); }
.input svg { width: 14px; height: 14px; color: var(--mudo); flex: none; }
.input input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; font-family: var(--f-mono); font-size: 12.5px; color: #eef7f1; }
.input input::placeholder { color: #3f5a4a; }
.input input:-webkit-autofill { -webkit-text-fill-color: #eef7f1; -webkit-box-shadow: 0 0 0 40px #040e11 inset; caret-color: #eef7f1; }
.olho { background: none; border: 0; padding: 4px; color: var(--mudo); }
.olho:hover { color: var(--verde); }
.aceite { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; font-size: 13px; color: #5f7a68; }
.aceite input { appearance: none; width: 19px; height: 19px; flex: none; border: 1px solid rgba(33, 196, 94, .3); border-radius: 3px; background: #040e11; display: grid; place-items: center; margin: 0; cursor: pointer; }
.aceite input:checked { background: var(--verde); border-color: var(--verde); }
.aceite input:checked::after { content: ""; width: 5px; height: 9px; border: solid #04210f; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.aceite a { color: var(--verde); }
.erro-form { min-height: 18px; font-family: var(--f-mono); font-size: 10.5px; color: #ff6b7d; margin-bottom: 6px; letter-spacing: .03em; }
.form-rodape { text-align: center; margin-top: 16px; font-size: 12.5px; color: #3f6a52; }
.form-rodape a { color: var(--verde-vivo); font-weight: 600; }
.voltar { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em; color: var(--mudo); margin-bottom: 26px; text-transform: uppercase; }
.voltar:hover { color: var(--verde); }
.voltar svg { width: 11px; height: 11px; }

/* ==========================================================
   MODAIS (cadastro, deposito)
   ========================================================== */
.modal-fundo {
  position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 16px;
  background: rgba(2, 8, 5, .78); backdrop-filter: blur(3px);
}
.modal-fundo.aberto { display: grid; }
.modal {
  width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto;
  background: #0a181a; border: 1px solid var(--linha);
}
.modal .portao-corpo { padding-top: 18px; }
.fechar { background: none; border: 1px solid rgba(33, 196, 94, .25); border-radius: 3px; width: 28px; height: 28px; display: grid; place-items: center; color: var(--texto-2); }
.fechar:hover { color: var(--verde); border-color: var(--verde); }
.fechar svg { width: 13px; height: 13px; }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal .campo { margin-top: 12px; }
.modal .input { height: 42px; }
.modal select { flex: 1; height: 100%; background: transparent; border: 0; outline: none; font-family: var(--f-mono); font-size: 12.5px; color: #eef7f1; color-scheme: dark; }
.ok-cadastro { text-align: center; padding: 20px 0 8px; }
.ok-cadastro .ok-ic { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--verde); color: var(--verde); box-shadow: 0 0 22px rgba(33, 196, 94, .3); }
.ok-cadastro .ok-ic svg { width: 24px; height: 24px; }

.web-fundo { position: fixed; inset: 0; z-index: 60; display: none; flex-direction: column; background: #020805; }
.web-fundo.aberto { display: flex; }
.web-barra { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; background: var(--bar); border-bottom: 1px solid var(--linha); font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--verde); }
.web-barra span { flex: 1; }
.web-barra small { color: var(--mudo); margin-left: 8px; letter-spacing: .04em; }
.web-barra button { background: none; border: 1px solid rgba(33, 196, 94, .25); border-radius: 3px; height: 28px; padding: 0 10px; display: flex; align-items: center; gap: 6px; color: var(--texto-2); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; }
.web-barra button:hover { color: var(--verde); border-color: var(--verde); }
.web-barra svg { width: 12px; height: 12px; }
.web-fundo iframe { flex: 1; width: 100%; border: 0; background: #000; }

/* ---------- banco (a definir) ---------- */
.em-breve { display: grid; place-items: center; min-height: 360px; text-align: center; padding: 30px 16px; }
.em-breve b { display: block; font-family: var(--f-titulo); font-size: 13px; letter-spacing: .14em; color: var(--verde); margin-bottom: 10px; }
.em-breve p { margin: 0; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--mudo); }

/* botao "logar na corretora" - escondido em desktop, aparece em mobile */
.logar-cor { display: none; }

/* ==========================================================
   RESPONSIVO
   ========================================================== */
@media (max-width: 1180px) {
  .linha-3 { grid-template-columns: 1fr 1fr; }
  .linha-3 .painel:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-rows: 48px 1fr 58px; }
  .sidebar { grid-row: 3; flex-direction: row; border-right: 0; border-top: 1px solid var(--linha); }
  .nav-rotulo, .sair { display: none; }
  .nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  .nav a { flex-direction: column; justify-content: center; align-items: center; gap: 4px; height: 100%; padding: 0; font-size: 11px; text-align: center; }
  .nav a svg, .nav a [data-ic] { display: block; }
  .nav a.ativo { background: linear-gradient(0deg, rgba(33, 196, 94, .14), transparent); }
  .conteudo { grid-row: 2; padding: 16px 16px 24px; }
  .status { display: none; }
  .linha-3 { grid-template-columns: 1fr; }
  .linha-3 .painel-cont { height: 300px; }
  .linha-cards { grid-template-columns: 1fr; }
  .jogo, .sinais-jogo { height: 62vh; min-height: 420px; }
  .jogo-tela { position: relative; overflow: hidden; }
  /* Botao "LOGAR NA CORRETORA" - so em mobile (cookie 3rd-party bloqueado). */
  .logar-cor {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    position: absolute; top: 6px; left: 6px; right: 6px; z-index: 4;
    height: 40px; padding: 0 14px; border-radius: 5px;
    background: linear-gradient(90deg, var(--verde-btn-2), var(--verde-btn));
    color: #04210f; border: 0; cursor: pointer;
    font-family: var(--f-titulo); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    box-shadow: 0 0 22px rgba(0, 223, 110, .28), 0 2px 8px rgba(0, 0, 0, .4);
  }
  .logar-cor:hover { filter: brightness(1.08); }
  .logar-cor svg { width: 14px; height: 14px; }
  .logar-cor.escondido { display: none; }
  .login { grid-template-columns: 1fr; }
  .login-esq { padding: 36px 16px 28px; border-right: 0; border-bottom: 1px solid rgba(33, 196, 94, .12); }
  .hero { font-size: 24px; margin-top: 30px; }
  .numeros { gap: 8px; }
  .numeros div { padding: 14px 10px 12px; }
  .numeros b { font-size: 17px; }
  .citacao { display: none; }
  .login-dir { padding: 32px 16px 40px; }
  .user-nome, .user-on { display: none; }
  .topbar .marca-sub { display: none; }
}
@media (max-width: 420px) {
  .grade-2 { grid-template-columns: 1fr; }
  .medias b { font-size: 15px; }
  .topbar .marca-nome { font-size: 10.5px; letter-spacing: .14em; }
  .saldo-box { min-width: 0; }
}

/* ==========================================================
   MOBILE: portrait natural, sem rotacao. Dashboard empilhado.
   A tela da corretora (iframe, precisa landscape) mostra um aviso
   "gire o aparelho" enquanto em portrait; some ao girar.
   ========================================================== */
/* aviso "gire o aparelho": ESCONDIDO por padrao em qualquer tamanho de tela.
   So vira visivel dentro do quadro do jogo em mobile portrait (regra abaixo). */
.gire-aviso { display: none; }
.gire-aviso .gire-ic { width: 62px; height: 62px; color: var(--verde); }
.gire-aviso .gire-tit { font-family: var(--f-titulo); font-weight: 800; font-size: 15px; letter-spacing: .12em; color: #fff; }
.gire-aviso .gire-sub { font-family: var(--f-texto); font-size: 13px; color: var(--mudo); max-width: 260px; line-height: 1.5; }

@media (max-width: 900px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
}
@media (max-width: 900px) and (orientation: portrait) {
  .jogo .gire-aviso, .sinais-jogo .gire-aviso {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    position: absolute; inset: 0; z-index: 6;
    background: radial-gradient(ellipse at 50% 42%, rgba(33,196,94,.07), transparent 62%), #050b12;
    padding: 24px; text-align: center;
  }
  .gire-aviso .gire-ic { animation: gireGira 2.4s ease-in-out infinite; }
  /* enquanto em portrait, esconde o iframe pra nao carregar torto */
  .jogo .jogo-tela iframe, .sinais-jogo .jogo-tela iframe { visibility: hidden; }
  @keyframes gireGira { 0%, 40% { transform: rotate(0deg); } 60%, 100% { transform: rotate(90deg); } }
}
@media (max-width: 900px) and (orientation: landscape) {
  .jogo, .sinais-jogo { height: 82vh; min-height: 300px; }
}
