/* Alnilam — base visual: a noite índigo de Órion, o azul de supergigante da estrela do meio do cinturão e o violeta da
   nebulosa. Verde e rosa só para ganho e perda. Tipos: Unbounded (marca e números grandes) e Manrope (o resto). */
@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url('../fonts/unbounded-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url('../fonts/unbounded-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('../fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('../fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('../fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('../fonts/manrope-latin-800-normal.woff2') format('woff2'); }

:root {
  --noite: #070a1c; --noite2: #0a0e26; --painel: #0e1433; --painel2: #141b45; --borda: #212b63; --borda2: #2d3a80;
  --azul: #4d7cff; --azul2: #7aa0ff; --ciano: #38d9ff; --violeta: #a46bff; --rosa-neb: #ff5fd2;
  --ganho: #22e3a0; --ganho-f: rgba(34, 227, 160, .14); --perda: #ff4f79; --perda-f: rgba(255, 79, 121, .14); --alerta: #ffc845;
  --texto: #eaf0ff; --texto2: #c3cdf2; --mudo: #8593c8; --mudo2: #5d6aa0;
  --r: 18px; --r2: 12px; --r3: 8px;
  --sombra: 0 20px 50px -24px rgba(2, 6, 30, .9);
  --brilho-azul: 0 0 0 1px rgba(77, 124, 255, .35), 0 0 34px -6px rgba(77, 124, 255, .55);
  --t-marca: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --t-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--noite); color: var(--texto); font: 500 14px/1.5 var(--t-ui); font-feature-settings: 'tnum' 1, 'lnum' 1; min-height: 100vh; }
a { color: var(--azul2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ciano); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.up { color: var(--ganho); } .dn { color: var(--perda); } .mut { color: var(--mudo); } .al { color: var(--alerta); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* céu: estrelas pequenas desenhadas pelo JS num SVG fixo atrás de tudo */
.ceu { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1200px 700px at 78% -10%, rgba(77, 124, 255, .16), transparent 60%), radial-gradient(900px 600px at -10% 110%, rgba(164, 107, 255, .12), transparent 60%), var(--noite); }
.ceu svg { width: 100%; height: 100%; }

/* botões e campos */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--borda2); background: var(--painel2); border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 13.5px; transition: border-color .15s, background .15s, transform .1s; white-space: nowrap; }
.bt:hover { border-color: var(--azul); }
.bt:active { transform: translateY(1px); }
.bt:disabled { opacity: .45; cursor: not-allowed; }
.bt.pri { background: linear-gradient(180deg, #5b88ff, #3f6af0); border-color: #6f97ff; color: #fff; box-shadow: 0 10px 30px -12px rgba(77, 124, 255, .9); }
.bt.ok { background: linear-gradient(180deg, #2af0ab, #12c486); border-color: #5ff5c4; color: #032318; }
.bt.mal { background: rgba(255, 79, 121, .12); border-color: rgba(255, 79, 121, .55); color: #ffd0dc; }
.bt.mini { padding: 5px 11px; font-size: 12px; }
.bt.fant { background: transparent; border-color: transparent; color: var(--texto2); }
.bt.fant:hover { color: var(--texto); border-color: var(--borda2); }
label.c { display: grid; gap: 6px; font-size: 12.5px; color: var(--texto2); font-weight: 600; }
label.c small { color: var(--mudo); font-weight: 500; font-size: 11.5px; margin-top: -4px; }
input[type=number], input[type=text], input[type=password], select, textarea { width: 100%; background: var(--noite2); border: 1px solid var(--borda); border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 14px; }
input:hover, select:hover { border-color: var(--borda2); }
input:focus, select:focus, textarea:focus { border-color: var(--azul); outline: none; box-shadow: 0 0 0 3px rgba(77, 124, 255, .22); }
.chave { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: var(--texto2); font-weight: 600; cursor: pointer; line-height: 1.4; }
.chave input { appearance: none; flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--borda); position: relative; transition: background .15s; margin: 0; cursor: pointer; }
.chave input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #c9d3ff; transition: transform .15s; }
.chave input:checked { background: var(--azul); }
.chave input:checked::after { transform: translateX(16px); background: #fff; }

/* pílulas e etiquetas */
.lado { font-weight: 800; letter-spacing: .01em; }
.lado.PUT { color: var(--perda); } .lado.CALL { color: var(--ganho); }
.tg { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--painel2); color: var(--texto2); border: 1px solid var(--borda); white-space: nowrap; }
.tg i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tg.ok { color: var(--ganho); border-color: rgba(34, 227, 160, .35); background: var(--ganho-f); }
.tg.op { color: #fff; border-color: rgba(77, 124, 255, .6); background: rgba(77, 124, 255, .2); }
.tg.vi { color: #e2d2ff; border-color: rgba(164, 107, 255, .55); background: rgba(164, 107, 255, .16); }
.tg.pz { color: var(--alerta); border-color: rgba(255, 200, 69, .4); background: rgba(255, 200, 69, .1); }
.tg.dn { color: var(--perda); border-color: rgba(255, 79, 121, .4); background: var(--perda-f); }
