/* ALIEN AI TRADE — portal do cliente. Paleta: fundo escuro, um único azul neon de brilho baixo. Sem magenta, sem excesso. */
:root {
  --bg: #06090f; --bg2: #090e17; --panel: #0c1320; --panel2: #101a29;
  --line: rgba(74,168,255,.14); --line2: rgba(74,168,255,.28);
  --text: #c9d4e3; --text2: #e8eef7; --mut: #7a889c; --mut2: #55627a;
  --acc: #4aa8ff; --acc-soft: rgba(74,168,255,.12); --acc-glow: rgba(74,168,255,.22);
  --acc2: #2fd9c3; --acc2-soft: rgba(47,217,195,.12); --acc2-glow: rgba(47,217,195,.22);
  --grad: linear-gradient(90deg, var(--acc), var(--acc2));
  --up: #3ddc97; --dn: #ff5c7a; --warn: #f0b35a;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* variáveis que o módulo TRADER usa */
  --y: #4aa8ff; --m: #2fd9c3; --hud: var(--font);
  --r: 6px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--acc); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--text2); font-weight: 600; letter-spacing: .01em; }
button { font-family: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--panel2); color: var(--text2); font-size: 13px; font-weight: 500; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.btn.pri { background: var(--grad); border-color: transparent; color: #06111f; font-weight: 600; } .btn.pri:hover { box-shadow: 0 0 22px var(--acc-glow), 0 0 22px var(--acc2-glow); }
.btn.ghost { background: transparent; } .btn.sm { padding: 6px 12px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
.input { width: 100%; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--bg2); color: var(--text2); font-size: 14px; outline: none; transition: .15s; }
.input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
label.f { display: block; margin-bottom: 12px; font-size: 12px; color: var(--mut); } label.f .input { margin-top: 6px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--mut); font-weight: 600; margin-bottom: 12px; }
.muted { color: var(--mut); } .small { font-size: 12px; } .mono { font-family: var(--mono); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; border: 1px solid; }
.tag.ok { color: var(--acc2); border-color: rgba(47,217,195,.4); background: var(--acc2-soft); }
.tag.warn { color: var(--warn); border-color: rgba(240,179,90,.35); background: rgba(240,179,90,.08); }
.tag.bad { color: var(--dn); border-color: rgba(255,92,122,.35); background: rgba(255,92,122,.08); }
.tag.acc { color: var(--acc); border-color: var(--line2); background: var(--acc-soft); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mut2); margin-right: 7px; vertical-align: middle; }
.dot.on { background: var(--acc2); box-shadow: 0 0 8px var(--acc2-glow); }
.grid { display: grid; gap: 14px; } .g2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } .g3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kpi b { display: block; font-size: 24px; font-weight: 600; color: var(--text2); font-family: var(--mono); margin-top: 2px; }
.card { position: relative; } .card::before { content: ''; position: absolute; left: 14px; right: 14px; top: -1px; height: 1px; background: var(--grad); opacity: .45; }
.kpi small { color: var(--mut); font-size: 12px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 10px 16px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--panel2); color: var(--text2); font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: toast 3s forwards; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 8px); } 10% { opacity: 1; transform: translate(-50%, 0); } 85% { opacity: 1; } 100% { opacity: 0; } }
.err { padding: 10px 12px; border-radius: var(--r); border: 1px solid rgba(255,92,122,.35); background: rgba(255,92,122,.08); color: #ffb3c1; font-size: 13px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; padding: 9px 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); border-bottom: 1px solid var(--line2); font-weight: 600; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); }
table.t tr:hover td { background: rgba(74,168,255,.04); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text2); font-weight: 600; letter-spacing: .06em; }
.logo img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 14px var(--acc-glow); }
.logo span small { display: block; font-size: 10px; letter-spacing: .22em; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #1a2436; border-radius: 10px; } ::-webkit-scrollbar-track { background: transparent; }

/* ── home ── */
.hd { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 14px 28px; background: rgba(6,9,15,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd nav { display: flex; gap: 22px; margin-left: 22px; } .hd nav a { color: var(--mut); font-size: 13px; } .hd nav a:hover { color: var(--text2); text-decoration: none; }
.hd .sp { flex: 1; }
.hero { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 72px 28px 56px; }
.hero::before { content: ''; position: absolute; left: 10%; top: 10%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, var(--acc-glow), transparent 65%); filter: blur(30px); pointer-events: none; opacity: .5; }
.hero h1 { position: relative; font-size: 42px; line-height: 1.12; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--acc); }
.hero p.lead { position: relative; margin: 18px 0 26px; font-size: 16px; color: var(--mut); max-width: 560px; }
.hero .acts { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }
.login-card { position: relative; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 26px 26px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 40px var(--acc-soft); }
.login-card h2 { font-size: 18px; margin-bottom: 4px; } .login-card p { margin: 0 0 18px; color: var(--mut); font-size: 13px; }
.login-card .btn { width: 100%; margin-top: 4px; }
.sec { max-width: 1180px; margin: 0 auto; padding: 46px 28px; border-top: 1px solid var(--line); }
.sec h2 { font-size: 24px; margin-bottom: 8px; } .sec > p { color: var(--mut); margin: 0 0 24px; max-width: 720px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.step { position: relative; padding: 20px 20px 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.step i { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line2); color: var(--acc); font-style: normal; font-family: var(--mono); font-size: 13px; margin-bottom: 12px; background: var(--acc-soft); }
.step h4 { font-size: 15px; margin-bottom: 6px; } .step p { margin: 0; color: var(--mut); font-size: 13px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.plan { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.plan.hi { border-color: var(--line2); box-shadow: 0 0 30px var(--acc-soft); }
.plan h4 { font-size: 16px; } .plan .pr { font-family: var(--mono); font-size: 26px; color: var(--text2); margin: 10px 0 14px; } .plan .pr small { font-size: 12px; color: var(--mut); font-family: var(--font); }
.plan ul { margin: 0 0 18px; padding-left: 18px; color: var(--mut); font-size: 13px; line-height: 1.8; }
.ft { max-width: 1180px; margin: 0 auto; padding: 26px 28px 40px; border-top: 1px solid var(--line); color: var(--mut2); font-size: 12px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 40px; } .hero h1 { font-size: 32px; } .hd nav { display: none; } }

/* ── app ── */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px; background: var(--bg2); border-right: 1px solid var(--line); }
.side .logo { padding: 4px 8px 18px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 2px; border-radius: 8px; color: var(--mut); font-size: 13.5px; font-weight: 500; transition: .12s; }
.side nav a:hover { color: var(--text2); background: rgba(74,168,255,.06); text-decoration: none; }
.side nav a.on { color: var(--text2); background: linear-gradient(90deg, var(--acc-soft), var(--acc2-soft)); box-shadow: inset 2px 0 0 var(--acc2); }
.side nav a svg { width: 17px; height: 17px; opacity: .85; }
.side .me { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mut); }
.side .me b { display: block; color: var(--text2); font-weight: 600; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 14px; padding: 16px 26px; border-bottom: 1px solid var(--line); }
.top h2 { font-size: 18px; } .top .sub { color: var(--mut); font-size: 12px; }
.top .sp { flex: 1; }
.content { padding: 22px 26px 40px; flex: 1; min-height: 0; }
.content.full { padding: 0; position: relative; }
.chart-host { position: relative; height: calc(100vh - 69px); min-height: 520px; }
.chart-host .tr-root { font-family: var(--font); }
.chart-host .tr-bottom, .chart-host .tr-dom { display: none !important; }
.chart-host .tr-top { background: var(--bg2); }
.banner { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line2); background: linear-gradient(90deg, var(--acc-soft), var(--acc2-soft)); margin-bottom: 16px; font-size: 13px; }
.banner.warn { border-color: rgba(240,179,90,.35); background: rgba(240,179,90,.08); } .banner.bad { border-color: rgba(255,92,122,.35); background: rgba(255,92,122,.08); }
.list-steps { counter-reset: s; padding-left: 0; list-style: none; margin: 0; }
.list-steps li { position: relative; padding: 10px 0 10px 40px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 13.5px; }
.list-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 9px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--acc); border: 1px solid var(--line2); background: var(--acc-soft); }
.list-steps code { font-family: var(--mono); font-size: 12.5px; color: var(--text2); background: rgba(74,168,255,.08); padding: 1px 6px; border-radius: 4px; }
.dl { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: var(--bg2); }
.dl b { display: block; font-weight: 600; color: var(--text2); font-size: 13.5px; } .dl small { color: var(--mut); }
.loading { color: var(--mut); padding: 30px; text-align: center; }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; } .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; } .side nav { display: flex; flex-wrap: wrap; gap: 4px; } .side .me { margin: 0 0 0 auto; border: 0; } }

.chart-host .tr-pop { max-height: calc(100vh - 150px); overflow-y: auto; scrollbar-width: thin; }
.credit { margin-top: 10px; font-size: 10.5px; color: var(--mut2); line-height: 1.4; } .credit a { color: var(--mut); }
