:root {
  /* Paleta oficial do Manual da Marca UP Trading */
  --bg: #080d0b;        /* Preto Premium */
  --bg-elev: #10150f;
  --card: #18221e;      /* Grafite */
  --border: rgba(220, 226, 223, 0.12); /* Prata translucido */
  --purple: #39ff14;    /* Verde Neon */
  --purple-2: #073b25;  /* Verde Profundo */
  --gold: #dce2df;      /* Prata */
  --gold-2: #8fa093;
  --text: #f7faf8;      /* Branco */
  --muted: #8fa093;
  --green: #39ff14;     /* Verde Neon tambem usado como positivo/compra */
  --red: #ff4d5e;
}

.hidden { display: none !important; }

/* barra de rolagem: trilho na cor de fundo, barrinha em verde neon */
* { scrollbar-color: var(--green) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #7aff66; }

.disclaimer-fina {
  font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 10px 0 0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(650px circle at 15% -10%, rgba(57, 255, 20, 0.22), transparent 60%),
    radial-gradient(500px circle at 110% 10%, rgba(220, 226, 223, 0.08), transparent 60%),
    radial-gradient(700px circle at 85% 95%, rgba(57, 255, 20, 0.14), transparent 55%),
    radial-gradient(450px circle at 0% 60%, rgba(57, 255, 20, 0.08), transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: driftGlow 18s ease-in-out infinite alternate;
}
@keyframes driftGlow {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-2%, 2%) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow { animation: none; }
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
}

.topbar-user { display: flex; align-items: center; gap: 14px; }
.topbar-user-nome { font-size: 13px; color: var(--muted); }
.topbar-admin-link {
  font-size: 12.5px; font-weight: 700; color: var(--green); text-decoration: none;
  border: 1px solid rgba(57, 255, 20, 0.4); padding: 6px 12px; border-radius: 8px;
}
.topbar-admin-link:hover { background: rgba(57, 255, 20, 0.1); }
.topbar-logout {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  padding: 6px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.topbar-logout:hover { border-color: rgba(255, 77, 94, 0.4); color: #ffb3bb; }

.auth-gate {
  position: fixed; inset: 0; z-index: 999; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  color: var(--muted); font-size: 13px;
}
.auth-gate-logo { height: 56px; animation: pulse 1.6s ease-in-out infinite; }
.auth-gate.hidden { display: none; }

.brand { display: flex; align-items: center; gap: 10px; font-family: 'Montserrat', sans-serif; position: relative; }
.brand::before {
  content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.3), transparent 70%);
  left: -20px; top: 50%; transform: translateY(-50%); filter: blur(6px); pointer-events: none; z-index: 0;
}
.brand-logo { height: 68px; width: auto; display: block; position: relative; z-index: 1; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: 0.3px; }
.brand-name .accent { color: var(--purple); }
.brand-tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  padding: 2px 8px; border-radius: 999px; color: white;
  position: relative; z-index: 1;
}

.tabs { display: flex; gap: 6px; background: var(--bg-elev); padding: 4px; border-radius: 10px; }
.tab {
  border: none; background: transparent; color: var(--muted);
  padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px;
  transition: all .2s;
}
.tab.active { background: linear-gradient(135deg, var(--purple), var(--purple-2)); color: white; }

main { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 32px 32px 64px; }

.panel {
  position: absolute; top: 0; left: 0; right: 0;
  opacity: 0; transform: translateX(14px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.panel.active {
  position: relative; opacity: 1; transform: translateX(0); pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .panel { transition: none; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.panel-head h1 { font-family: 'Montserrat', sans-serif; font-size: 26px; margin: 0 0 6px; }
.muted { color: var(--muted); margin: 0 0 24px; font-size: 14px; }

.controls { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }

.estrategia-desc { margin-top: 10px; margin-bottom: 16px; font-size: 12px; }

/* dropdown customizado (estrategia + par) — cartoes verde monocromatico */
.dd { position: relative; display: inline-flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); width: fit-content; }
.dd-label-top { text-transform: uppercase; letter-spacing: 0.5px; }
.dd-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
  padding: 9px 14px; border-radius: 10px; font-size: 13px; font-family: inherit; font-weight: 600;
  min-width: 220px; cursor: pointer; transition: border-color .15s ease;
}
.dd-trigger:hover { border-color: rgba(57, 255, 20, 0.4); }
.dd.open .dd-trigger { border-color: var(--green); box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.12); }
.dd-chevron { color: var(--muted); font-size: 12px; transition: transform .15s ease; }
.dd.open .dd-chevron { transform: rotate(180deg); color: var(--green); }
.dd-trigger-badge {
  background: rgba(57, 255, 20, 0.16); color: var(--green); border-radius: 999px;
  font-size: 10.5px; font-weight: 700; padding: 1px 7px; margin-left: 4px;
}

.dd-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 220px; max-width: 260px;
  background: var(--card); border: 1px solid rgba(57, 255, 20, 0.3); border-radius: 12px;
  padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); max-height: 320px; overflow-y: auto;
}
.dd-panel-wide { min-width: 300px; max-width: 340px; }

.dd-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; position: relative;
  width: 100%; text-align: left; background: transparent; border: 1px solid transparent; color: var(--text);
  border-radius: 8px; padding: 7px 30px 7px 10px; cursor: pointer; font-family: inherit;
  transition: background .15s ease, border-color .15s ease; margin-bottom: 2px;
}
.dd-option:hover { background: rgba(57, 255, 20, 0.06); }
.dd-option.active { background: rgba(57, 255, 20, 0.1); border-color: rgba(57, 255, 20, 0.4); }
.dd-option-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dd-option-title { font-weight: 700; font-size: 12px; color: var(--green); }
.dd-option:not(.active) .dd-option-title { color: var(--text); }
.dd-option-desc { font-size: 10px; color: var(--muted); line-height: 1.25; }
.dd-badge {
  background: rgba(57, 255, 20, 0.18); color: var(--green); border-radius: 999px;
  font-size: 9px; font-weight: 700; padding: 1px 6px; text-transform: uppercase; letter-spacing: 0.3px;
}
.dd-check {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #06260f; font-size: 12px; font-weight: 900; opacity: 0; transition: opacity .15s;
}
.dd-option.active .dd-check { opacity: 1; }

/* seletor de par: linha maior, icone/bandeira + nome bem legivel */
.par-dd .dd-trigger { font-size: 15px; padding: 11px 16px; min-width: 250px; }
.par-dd .dd-option { padding: 12px 42px 12px 12px; }
.par-dd .dd-option-title { font-size: 14px; }
.par-dd .dd-check { width: 26px; height: 26px; font-size: 15px; right: 12px; }

.dd-option.par-row { flex-direction: row; align-items: center; gap: 10px; }
.dd-option.par-row .ativo-icone { display: flex; gap: 3px; font-size: 21px; }
.dd-option.par-row .ativo-icone .fi { border-radius: 3px; width: 25px; }
.dd-option.par-row .ativo-par { font-weight: 600; font-size: 16px; }
.dd-option.par-row.active .ativo-par { color: var(--green); }

.dd-search-wrap { padding: 4px 4px 8px; }
.dd-search {
  width: 100%; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
  padding: 8px 12px; border-radius: 8px; font-size: 12.5px; font-family: inherit;
}
.dd-search:focus { outline: none; border-color: rgba(57, 255, 20, 0.4); }
.dd-group-label {
  font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px;
  font-weight: 700; padding: 10px 10px 4px;
}

.segmented { display: flex; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.seg { border: none; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; }
.seg.active { background: linear-gradient(135deg, var(--purple), var(--purple-2)); color: white; }

.ativo-filtro-wrap { display: flex; align-items: flex-start; gap: 10px; margin: -10px 0 18px; }
.ativo-filtro-label { font-size: 12px; color: var(--muted); font-weight: 600; padding-top: 7px; white-space: nowrap; }
.ativo-filtro { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--muted);
  padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 12.5px;
  transition: all .15s;
}
.chip:hover { border-color: rgba(220, 226, 223, 0.35); color: var(--gold); }
.chip.active { background: linear-gradient(135deg, var(--purple), var(--purple-2)); color: white; border-color: transparent; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #ffffff; border: none; font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 10px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(57, 255, 20, 0.3);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(57, 255, 20, 0.45); }
.btn-primary:disabled { opacity: .6; cursor: progress; }

.radar-dot { width: 8px; height: 8px; border-radius: 50%; background: #ffffff; }

.btn-toggle {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  padding: 10px 18px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px;
  transition: all .2s;
}
.btn-toggle:hover { border-color: rgba(57, 255, 20, 0.4); color: var(--gold); box-shadow: 0 0 16px rgba(57, 255, 20, 0.15); }
.btn-toggle.on {
  background: rgba(57, 255, 20, 0.12); border-color: rgba(57, 255, 20, 0.5); color: var(--purple);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.25);
}
.btn-toggle.demo.on {
  background: rgba(255, 77, 94, 0.14); border-color: rgba(255, 77, 94, 0.5); color: #ffb3bb;
}

.demo-badge {
  display: inline-block; background: var(--red); color: #1a0506; font-weight: 700; font-size: 11px;
  padding: 2px 8px; border-radius: 999px; margin-left: 8px; letter-spacing: 0.5px; vertical-align: middle;
}

.auto-status {
  display: flex; align-items: center; gap: 8px; color: var(--purple); font-size: 13px;
  margin-bottom: 16px;
}
.auto-status.hidden { display: none; }
.auto-status .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--purple);
  box-shadow: 0 0 6px var(--purple); animation: pulse 1.6s ease-in-out infinite;
}

.dashboard-grid { display: flex; gap: 20px; align-items: flex-start; }

.dashboard-left {
  flex: 0 0 260px; display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 16px;
}

.dashboard-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.dashboard-right .placar { margin-top: 0; border-top: none; padding-top: 0; }

.scan-panel {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: linear-gradient(180deg, rgba(24, 34, 30, 0.85), rgba(16, 21, 15, 0.9));
  backdrop-filter: blur(10px); border: 1px solid rgba(57, 255, 20, 0.18); border-radius: 16px; padding: 24px 16px;
  position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.04) inset, 0 30px 60px -30px rgba(57, 255, 20, 0.25);
}
.scan-panel::before {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.35), transparent 70%);
  top: -70px; right: -70px; filter: blur(10px); pointer-events: none;
}
.scan-tag {
  border: 1px solid rgba(57, 255, 20, 0.4); color: var(--green); background: rgba(57, 255, 20, 0.08);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px; padding: 3px 10px; border-radius: 999px;
  text-transform: uppercase; position: relative; z-index: 1; align-self: flex-start;
}
.scan-panel .radar-big {
  width: 100px; height: 100px; position: relative; z-index: 1;
  animation: radarHaloPulse 2.4s ease-in-out infinite;
}
@keyframes radarHaloPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.3), 0 0 14px 2px rgba(57, 255, 20, 0.15); }
  50% { box-shadow: 0 0 0 10px rgba(57, 255, 20, 0.06), 0 0 28px 8px rgba(57, 255, 20, 0.3); }
}
.scan-panel .scan-text { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; position: relative; z-index: 1; }
.scan-status-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px; background: var(--bg-elev);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px;
}
.scan-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.scan-status-dot.ativo { background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 1.6s ease-in-out infinite; }
.scan-status-dot.online { background: var(--green); box-shadow: 0 0 6px var(--green); }
.scan-panel .scan-ativo { font-size: 18px; }

.signals-column { flex: 1; min-width: 0; }

.sem-entradas {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; text-align: center;
}
.sem-entradas.hidden { display: none; }

@media (max-width: 680px) {
  .dashboard-grid { flex-direction: column; }
  .dashboard-left { width: 100%; position: static; }
}

/* card de Sessao — lucro ao vivo da sessao atual, banca/entrada configuraveis */
.sessao-card {
  background: linear-gradient(180deg, rgba(24, 34, 30, 0.85), rgba(16, 21, 15, 0.92));
  backdrop-filter: blur(10px); border: 1px solid rgba(57, 255, 20, 0.18); border-radius: 16px; padding: 18px 16px;
  display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.04) inset, 0 30px 60px -30px rgba(57, 255, 20, 0.25);
}
.sessao-card::before {
  content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.3), transparent 70%);
  bottom: -90px; left: -90px; filter: blur(10px); pointer-events: none;
}
.sessao-card > * { position: relative; z-index: 1; }
.sessao-head { display: flex; align-items: center; justify-content: space-between; }
.sessao-badge {
  border: 1px solid rgba(57, 255, 20, 0.4); color: var(--green); background: rgba(57, 255, 20, 0.08);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px; padding: 3px 10px; border-radius: 999px;
  text-transform: uppercase; font-family: 'Montserrat', sans-serif;
}
.sessao-config-btn {
  background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 8px;
  width: 26px; height: 26px; cursor: pointer; font-size: 13px; line-height: 1;
}
.sessao-config-btn:hover { border-color: rgba(57, 255, 20, 0.4); color: var(--green); }

.sessao-config { display: flex; flex-direction: column; gap: 8px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.sessao-config label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.sessao-config input {
  width: 90px; background: var(--card); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 4px 8px; font-size: 12px; text-align: right; font-family: inherit;
}

.sessao-label { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; text-align: center; }
.sessao-valor {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 38px; font-weight: 700; text-align: center; color: var(--text); letter-spacing: 0.5px; line-height: 1;
}
.sessao-valor.positivo { color: var(--green); }
.sessao-valor.negativo { color: var(--red); }
.sessao-status { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: -8px; }

.sessao-barra-wrap { display: flex; flex-direction: column; gap: 6px; }
.sessao-barra { position: relative; height: 6px; background: var(--bg-elev); border-radius: 999px; overflow: hidden; }
.sessao-barra-fill { position: absolute; top: 0; bottom: 0; background: var(--green); border-radius: 999px; transition: left .25s ease, width .25s ease; }
.sessao-barra-fill.negativo { background: var(--red); }
.sessao-barra-meio { position: absolute; top: -3px; bottom: -3px; left: 50%; width: 2px; background: var(--text); opacity: 0.55; transform: translateX(-1px); }
.sessao-barra-legenda { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; font-weight: 700; }
.sessao-barra-legenda .loss { color: var(--red); }
.sessao-barra-legenda .win { color: var(--green); }
.sessao-barra-legenda .meta-txt { color: var(--muted); font-size: 9px; letter-spacing: 0.6px; font-weight: 700; }

.sessao-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.sessao-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 10px 2px; }
.sessao-stat-circ {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); font-weight: 700; font-size: 12.5px; color: var(--text);
}
.sessao-stat-circ.gain { border-color: rgba(57, 255, 20, 0.5); color: var(--green); box-shadow: 0 0 12px rgba(57, 255, 20, 0.35); }
.sessao-stat-circ.loss { border-color: rgba(255, 77, 94, 0.5); color: var(--red); box-shadow: 0 0 12px rgba(255, 77, 94, 0.3); }
.sessao-stat-label { font-size: 8.5px; color: var(--muted); letter-spacing: 0.5px; font-weight: 700; }

.sessao-divider { height: 1px; background: var(--border); margin: 2px 0; }

.sessao-operacoes { display: flex; flex-direction: column; gap: 6px; }
.sessao-vazio {
  border: 1px dashed var(--border); border-radius: 10px; padding: 14px; text-align: center;
  font-size: 11.5px; color: var(--muted); line-height: 1.5;
}
.sessao-iniciar-link {
  background: transparent; border: none; color: var(--green); font-weight: 700; cursor: pointer;
  padding: 0; font-size: inherit; text-decoration: underline; font-family: inherit;
}
.sessao-op-row {
  display: flex; align-items: center; justify-content: space-between; font-size: 11.5px;
  padding: 7px 10px; background: var(--bg-elev); border-radius: 8px;
}
.sessao-op-row .gain { color: var(--green); font-weight: 700; }
.sessao-op-row .loss { color: var(--red); font-weight: 700; }

.sessao-encerrar { align-self: center; font-size: 11px; padding: 6px 14px; }

.radar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); position: relative; overflow: hidden; }
.radar-sweep {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg, var(--purple), transparent 40%);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.radar-big {
  width: 72px; height: 72px; border-radius: 50%; position: relative; flex-shrink: 0;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.1), transparent 70%);
  border: 1px solid rgba(57, 255, 20, 0.3);
}
.radar-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(57, 255, 20, 0.18); }
.radar-ring.ring-1 { inset: 12px; }
.radar-ring.ring-2 { inset: 24px; }
.radar-sweep-big {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: conic-gradient(from 0deg, rgba(57, 255, 20, 0.7), transparent 30%);
  animation: spin 1.4s linear infinite;
}
.radar-blip {
  position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--purple);
  box-shadow: 0 0 8px var(--purple); animation: blipFade 1.8s ease-in-out infinite;
}
.radar-blip.blip-1 { top: 18px; left: 50px; animation-delay: 0s; }
.radar-blip.blip-2 { top: 46px; left: 20px; animation-delay: .5s; }
.radar-blip.blip-3 { top: 52px; left: 44px; animation-delay: 1.1s; }
@keyframes blipFade { 0%, 100% { opacity: 0; transform: scale(.5); } 50% { opacity: 1; transform: scale(1); } }

.scan-text { display: flex; flex-direction: column; gap: 2px; }
.scan-ativo {
  font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--text); font-size: 16px;
  display: inline-block; animation: ativoFade .4s ease;
}
@keyframes ativoFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .radar-sweep-big, .radar-blip { animation: none; }
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

.asset-card {
  background: linear-gradient(165deg, rgba(24, 34, 30, 0.88), rgba(16, 21, 15, 0.92));
  backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; position: relative; overflow: hidden; animation: fadeIn .3s ease;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.asset-card:hover { border-color: rgba(57, 255, 20, 0.3); }
.asset-card .ativo { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.ativo-icone { display: inline-flex; align-items: center; }
.ativo-icone .fi {
  border-radius: 50%; width: 18px; height: 18px; background-size: cover; background-position: center;
  border: 2px solid var(--card); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.ativo-icone .fi:not(:first-child) { margin-left: -8px; }
.ativo-par { letter-spacing: 0.3px; }
.asset-card .mercado { color: var(--muted); font-size: 12px; margin-bottom: 14px; display: block; }
.asset-card .preco { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.asset-card .sinal { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.sinal.call { background: rgba(57, 255, 20, 0.15); color: var(--green); }
.sinal.put { background: rgba(255, 77, 94, 0.15); color: var(--red); }
.sinal.none { background: rgba(154, 147, 181, 0.12); color: var(--muted); }

.asset-card.quiet { opacity: 0.85; }

.contexto { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.contexto-linha { font-size: 12px; color: var(--muted); }
.contexto-linha strong { color: var(--text); }
.contexto.favoravel .contexto-linha strong { color: var(--purple); }

.asset-card.active {
  padding: 0; border-width: 2px; border-radius: 18px;
  background: linear-gradient(180deg, #171325, var(--card) 40%);
  animation: popIn .4s cubic-bezier(.2, .9, .3, 1.3);
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(.92) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.asset-card.active.call { border-color: rgba(57, 255, 20, 0.5); box-shadow: 0 0 28px rgba(57, 255, 20, 0.15); animation: popIn .4s cubic-bezier(.2, .9, .3, 1.3), flashRingGreen 1.2s ease-out; }
.asset-card.active.put { border-color: rgba(255, 77, 94, 0.5); box-shadow: 0 0 28px rgba(255, 77, 94, 0.15); animation: popIn .4s cubic-bezier(.2, .9, .3, 1.3), flashRingRed 1.2s ease-out; }

@keyframes flashRingGreen {
  0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.6); }
  100% { box-shadow: 0 0 28px rgba(57, 255, 20, 0.15); }
}
@keyframes flashRingRed {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.6); }
  100% { box-shadow: 0 0 28px rgba(255, 77, 94, 0.15); }
}

@media (prefers-reduced-motion: reduce) {
  .asset-card.active, .asset-card.active.call, .asset-card.active.put { animation: none; }
}

.widget-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.widget-id { display: flex; align-items: center; gap: 10px; }
.widget-avatar {
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: #0d1a0f; padding: 4px; box-shadow: 0 0 14px rgba(57, 255, 20, 0.45);
}
.widget-avatar img { width: 100%; height: 100%; object-fit: contain; }
.widget-id-text { display: flex; flex-direction: column; line-height: 1.25; }
.widget-name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; }
.widget-name .accent { color: var(--purple); }
.widget-status { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 6px var(--green); animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.widget-status.pendente { color: var(--gold); }
.status-dot.pendente { background: var(--gold); box-shadow: 0 0 6px var(--gold); animation: none; }
.asset-card.active.aguardando { opacity: 0.85; }
.asset-card.active.aguardando .widget-avatar img { filter: grayscale(0.4); }
.widget-close { color: var(--muted); font-size: 16px; line-height: 1; cursor: default; }
.widget-close.fb-fechar { cursor: pointer; transition: color .12s ease, transform .12s ease; }
.widget-close.fb-fechar:hover { color: var(--red); transform: scale(1.15); }
.fb-dica { font-size: 10.5px; }

.active-head { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 0; }
.active-head .ativo { font-size: 17px; }
.active-head .mercado { margin-bottom: 0; }

.direcao-banner {
  margin: 14px 0; padding: 16px 18px; font-family: 'Montserrat', sans-serif;
  font-size: 24px; font-weight: 700; text-align: center; letter-spacing: 0.5px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  position: relative; overflow: hidden;
}

.forca-sinal {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-size: 15px; font-weight: 700;
  font-family: 'Montserrat', sans-serif; text-align: center; cursor: help;
}
.forca-sinal-tag {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  padding: 2px 8px; border-radius: 999px; margin-left: 2px;
}
.forca-sinal.forte { background: rgba(57, 255, 20, 0.14); border: 1px solid rgba(57, 255, 20, 0.45); color: var(--green); }
.forca-sinal.forte .forca-sinal-tag { background: rgba(57, 255, 20, 0.22); color: var(--green); }
.forca-sinal.moderada { background: rgba(220, 226, 223, 0.08); border: 1px solid rgba(220, 226, 223, 0.3); color: var(--gold); }
.forca-sinal.moderada .forca-sinal-tag { background: rgba(220, 226, 223, 0.18); color: var(--gold); }
.forca-sinal.fraca { background: rgba(220, 226, 223, 0.05); border: 1px solid var(--border); color: var(--muted); }
.forca-sinal.fraca .forca-sinal-tag { background: rgba(220, 226, 223, 0.1); color: var(--muted); }
.direcao-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 1.6s ease-out 0.2s 1;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.direcao-seta { font-size: 20px; animation: bounce 1s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
  .direcao-banner::after, .direcao-seta { animation: none; }
}
.direcao-banner.call { background: linear-gradient(90deg, rgba(57, 255, 20, 0.08), rgba(57, 255, 20, 0.22), rgba(57, 255, 20, 0.08)); color: var(--green); }
.direcao-banner.put { background: linear-gradient(90deg, rgba(255, 77, 94, 0.08), rgba(255, 77, 94, 0.22), rgba(255, 77, 94, 0.08)); color: var(--red); }

.tempos { display: flex; gap: 10px; padding: 0 18px; margin-bottom: 12px; }
.tempos > div { flex: 1; background: var(--bg-elev); border-radius: 10px; padding: 8px 12px; }
.tempo-label { display: block; font-size: 11px; color: var(--muted); }
.tempo-valor { display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 700; }

.asset-card.active .preco { padding: 0 18px 16px; font-size: 13px; color: var(--muted); font-weight: 400; }

.sinal-feedback {
  padding: 12px 18px 16px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.fb-pergunta { font-size: 12px; color: var(--muted); }
.fb-botoes { display: flex; gap: 8px; }
.fb-btn {
  flex: 1; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text);
  padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 12.5px; cursor: pointer;
}
.fb-btn.fb-entrei, .fb-btn.fb-gain, .fb-btn.fb-gale-gain { border-color: rgba(57, 255, 20, 0.45); color: var(--green); }
.fb-btn.fb-ignorar, .fb-btn.fb-loss, .fb-btn.fb-gale-loss { border-color: rgba(255, 77, 94, 0.45); color: var(--red); }
.fb-final { font-size: 12.5px; font-weight: 600; }
.fb-final.gain { color: var(--green); }
.fb-final.loss { color: var(--red); }
.fb-final.gale { font-size: 11.5px; opacity: 0.85; }

.fb-btn.fb-gale { border-color: rgba(220, 226, 223, 0.35); color: var(--gold); flex: 0; align-self: flex-start; padding-left: 14px; padding-right: 14px; }
.gale-bloco { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.fb-link {
  align-self: flex-start; border: none; background: transparent; color: var(--muted);
  font-size: 11px; text-decoration: underline; cursor: pointer; padding: 0;
}

.footnote { color: var(--muted); font-size: 12px; margin-top: 24px; }

.card.form-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 24px;
}
.form-card label { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; font-size: 13px; color: var(--muted); flex: 1; min-width: 180px; }

.telegram-card-head { flex: 1 1 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.telegram-card-head h3 { margin: 0; font-size: 15px; }
.telegram-card p.muted { flex: 1 1 100%; margin: 0 0 14px; }
.telegram-status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; padding: 3px 10px; border-radius: 999px; }
.telegram-status.ok { background: rgba(57, 255, 20, 0.15); color: var(--green); }
.telegram-status.off { background: rgba(220, 226, 223, 0.1); color: var(--muted); }
.telegram-botoes { flex: 1 1 100%; display: flex; gap: 10px; }
.telegram-msg { flex: 1 1 100%; margin: 10px 0 0; font-size: 12.5px; }
.telegram-msg.erro { color: var(--red); }
.telegram-msg.sucesso { color: var(--green); }

.telegram-figurinhas { flex: 1 1 100%; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.figurinhas-atuais { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.figurinhas-atuais img { width: 48px; height: 48px; vertical-align: middle; margin-left: 6px; }
.figurinhas-lista { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.figurinha-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px;
}
.figurinha-item img { width: 64px; height: 64px; }
.figurinha-item-botoes { display: flex; gap: 4px; flex-wrap: wrap; max-width: 140px; justify-content: center; }
.figurinha-item-botoes button {
  font-size: 10.5px; padding: 4px 8px; border-radius: 6px; cursor: pointer; font-family: inherit;
  border: 1px solid var(--border); background: transparent; color: var(--text);
}
.figurinha-item-botoes button.gain { border-color: rgba(57, 255, 20, 0.5); color: var(--green); }
.figurinha-item-botoes button.loss { border-color: rgba(255, 77, 94, 0.5); color: var(--red); }
.form-card input, .form-card select {
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
  padding: 10px 12px; border-radius: 8px; font-size: 15px; font-family: inherit;
}

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric-card {
  background: linear-gradient(160deg, #1b1630, #120f1e);
  border: 1px solid var(--border); border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.metric-label { font-size: 12px; color: var(--muted); }
.metric-value { font-family: 'Montserrat', sans-serif; font-size: 26px; font-weight: 700; }
.metric-sub { font-size: 12px; color: var(--gold); }

.insight { color: var(--text); font-size: 14px; line-height: 1.6; background: var(--card); border: 1px solid var(--border); padding: 14px 18px; border-radius: 12px; }

.warning-box {
  margin-top: 16px; background: rgba(255, 77, 94, 0.08); border: 1px solid rgba(255, 77, 94, 0.3);
  color: #ffb3c2; padding: 14px 18px; border-radius: 12px; font-size: 13px; line-height: 1.6;
}

.meta-card {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.12), rgba(220, 226, 223, 0.05));
  border: 1px solid rgba(57, 255, 20, 0.3); border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px;
}
.meta-value { font-family: 'Montserrat', sans-serif; font-size: 28px; font-weight: 700; color: var(--gold); }

.entradas-necessarias {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 16px; font-size: 14px; line-height: 1.6;
}
.entradas-necessarias.alerta { border-color: rgba(255, 77, 94, 0.4); background: rgba(255, 77, 94, 0.08); color: #ffb3c2; }
.entradas-necessarias strong { color: var(--gold); }

.journal, .projecao, .mensal, .placar { margin-top: 36px; border-top: 1px solid var(--border); padding-top: 28px; }
.journal h2, .projecao h2, .mensal h2, .placar h2 { font-family: 'Montserrat', sans-serif; font-size: 20px; margin: 0 0 16px; }

.placar-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.placar-header h2 { margin: 0; }

.placar-rapido { display: flex; align-items: center; gap: 12px; }
.placar-rapido-label { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.placar-rapido-botoes { display: flex; gap: 8px; }
.placar-quick {
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text);
  padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer;
  font-family: 'Montserrat', sans-serif; transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}
.placar-quick:active { transform: scale(0.97); }
.placar-quick:disabled { opacity: 0.45; cursor: not-allowed; }
.placar-quick.gain { border-color: rgba(57, 255, 20, 0.5); color: var(--green); }
.placar-quick.gain:hover { background: rgba(57, 255, 20, 0.12); box-shadow: 0 0 18px rgba(57, 255, 20, 0.25); }
.placar-quick.loss { border-color: rgba(255, 77, 94, 0.5); color: var(--red); }
.placar-quick.loss:hover { background: rgba(255, 77, 94, 0.12); box-shadow: 0 0 18px rgba(255, 77, 94, 0.25); }

.placar-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin-bottom: 14px; }
.placar-stat {
  background: linear-gradient(160deg, rgba(24, 34, 30, 0.85), rgba(16, 21, 15, 0.92));
  backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-top: 2px solid var(--border); border-radius: 14px;
  padding: 18px; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .2s ease;
}
.placar-stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.placar-stat-valor { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 30px; line-height: 1; }
.placar-stat.gain { border-top-color: var(--green); box-shadow: 0 16px 32px -20px rgba(57, 255, 20, 0.5); }
.placar-stat.gain .placar-stat-valor { color: var(--green); text-shadow: 0 0 18px rgba(57, 255, 20, 0.45); }
.placar-stat.loss { border-top-color: var(--red); box-shadow: 0 16px 32px -20px rgba(255, 77, 94, 0.5); }
.placar-stat.loss .placar-stat-valor { color: var(--red); text-shadow: 0 0 18px rgba(255, 77, 94, 0.4); }
.placar-stat.taxa {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.16), rgba(57, 255, 20, 0.03));
  border-color: rgba(57, 255, 20, 0.35); border-top-color: var(--green);
  box-shadow: 0 16px 32px -18px rgba(57, 255, 20, 0.55);
}
.placar-stat.taxa .placar-stat-valor { text-shadow: 0 0 18px rgba(57, 255, 20, 0.45); }
.placar-stat.taxa .placar-stat-valor { font-size: 34px; }

.placar-sub { margin: 6px 0 0; }

.placar-historico { margin-top: 24px; }
.placar-acoes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.placar-historico h3 {
  font-family: 'Montserrat', sans-serif; font-size: 14px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.6px; margin: 0 0 12px; font-weight: 600;
}
.placar-historico .journal-table-wrap { max-height: 320px; overflow-y: auto; }

@media (max-width: 680px) {
  .placar-header { flex-direction: column; align-items: flex-start; }
}

.mes-destaque {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.15), rgba(57, 255, 20, 0.03));
  border: 1px solid rgba(57, 255, 20, 0.35); border-radius: 14px; padding: 20px;
  margin: 16px 0; display: flex; flex-direction: column; gap: 4px;
}
.mes-destaque.negativo { background: linear-gradient(135deg, rgba(255, 77, 94, 0.15), rgba(255, 77, 94, 0.03)); border-color: rgba(255, 77, 94, 0.35); }
.mes-destaque .mes-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.mes-destaque .mes-valor { font-family: 'Montserrat', sans-serif; font-size: 30px; font-weight: 700; }
.mes-destaque .mes-valor.positivo { color: var(--green); }
.mes-destaque .mes-valor.negativo { color: var(--red); }
.mes-destaque .mes-pct { font-size: 14px; color: var(--muted); }

.journal-table td.sem-dado { color: var(--muted); }

.btn-ghost {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 13px; margin-top: 14px;
}
.btn-ghost:hover { color: var(--text); border-color: var(--red); }

.journal-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 18px 0;
}
.journal-summary .jmetric {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px;
}
.journal-summary .jmetric .jlabel { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.journal-summary .jmetric .jvalue { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 700; }
.jvalue.positivo { color: var(--green); }
.jvalue.negativo { color: var(--red); }

.journal-table-wrap { overflow-x: auto; }
.journal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.martingale-box {
  margin-top: 20px; background: rgba(255, 77, 94, 0.04); border: 1px solid rgba(255, 77, 94, 0.25);
  border-radius: 14px; padding: 4px 18px 18px;
}
.martingale-box summary {
  cursor: pointer; padding: 14px 0; font-weight: 700; color: #ffb3c2; list-style: none;
}
.martingale-box summary::-webkit-details-marker { display: none; }
.martingale-box summary::before { content: "▸ "; }
.martingale-box[open] summary::before { content: "▾ "; }

.warning-box.danger { background: rgba(255, 77, 94, 0.12); border-color: rgba(255, 77, 94, 0.4); margin-bottom: 16px; }

.journal-table tr.linha-perigo td { color: var(--red); font-weight: 700; background: rgba(255, 77, 94, 0.08); }

.journal-table th {
  text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase;
  padding: 8px 10px; border-bottom: 1px solid var(--border);
}
.journal-table td { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.badge-ok { color: var(--green); font-weight: 700; }
.badge-no { color: var(--red); font-weight: 700; }

.projeto-placar { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.projeto-placar strong { color: var(--text); }
.projeto-resultado-cell { display: flex; gap: 6px; }
.dia-check {
  width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.dia-check:hover { border-color: var(--muted); }
.dia-check.ganho.ativo { background: rgba(57, 255, 20, 0.15); border-color: var(--green); color: var(--green); }
.dia-check.perda.ativo { background: rgba(255, 77, 94, 0.15); border-color: var(--red); color: var(--red); }
.dia-check:disabled { opacity: 0.3; cursor: default; }

@media (max-width: 640px) {
  .topbar { flex-direction: column; gap: 14px; align-items: flex-start; }
  main { padding: 20px; }
}
