:root {
  color-scheme: dark;
  --bg: #030a16;
  --surface: #071426;
  --surface-2: #0a1b31;
  --surface-3: #102744;
  --line: rgba(164, 199, 255, .11);
  --line-orange: rgba(89, 151, 255, .32);
  --text: #f2f7ff;
  --muted: #8295ae;
  --orange: #5797ff;
  --orange-soft: #91baff;
  --green: #31d69b;
  --red: #ff5d65;
  --amber: #a9c8ff;
  --probable: #c7a2ff;
  --possible-buy: #39d7ff;
  --possible-sell: #ff9f43;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 320px; min-height: 100%; margin: 0; }
body {
  overflow: hidden;
  background: #020711;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, a { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.app-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100dvh;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  background:
    radial-gradient(circle at 72% -18%, rgba(45, 116, 235, .18), transparent 38%),
    linear-gradient(145deg, #020812 0%, #061426 56%, #030a16 100%),
    var(--bg);
}
.app-shell::before,
.app-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: .12;
  animation: ambient-drift 12s ease-in-out infinite alternate;
}
.app-shell::before { top: -240px; right: 8%; background: #387be7; }
.app-shell::after { bottom: -290px; left: 12%; background: #123e7a; animation-delay: -6s; }
.cursor-glow { position: fixed; z-index: 0; left: var(--cursor-x, 50vw); top: var(--cursor-y, 32vh); width: 520px; height: 520px; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(75, 143, 255, .105) 0%, rgba(35, 94, 188, .045) 36%, transparent 70%); filter: blur(9px); transition: left .18s ease-out, top .18s ease-out; }
.trade-flash { position: fixed; z-index: 9998; inset: 0; pointer-events: none; opacity: 0; }
.trade-flash.buy { animation: trade-buy-flash 1.05s ease-out both; }
.trade-flash.sell { animation: trade-sell-flash 1.05s ease-out both; }
.trade-flash.possible-buy { animation: trade-possible-buy-flash 1.2s ease-out both; }
.trade-flash.possible-sell { animation: trade-possible-sell-flash 1.2s ease-out both; }
.trade-flash.danger, .trade-flash.critical { animation-duration: 1.5s; }

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 11, 24, .88);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; color: inherit; text-decoration: none; }
.brand-orbit { position: relative; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line-orange); border-radius: 9px; transform: rotate(8deg); animation: orbit-float 4s ease-in-out infinite; }
.brand-orbit::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 18px rgba(87, 151, 255, .6); }
.brand-orbit i { position: absolute; width: 35px; height: 12px; border: 1px solid rgba(111, 168, 255, .48); border-radius: 50%; transform: rotate(-35deg); }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand b { font-size: 16px; letter-spacing: .2em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.connection { justify-self: center; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.connection i { width: 6px; height: 6px; border-radius: 50%; background: #50657e; }
.connection.ready { border-color: rgba(49, 214, 155, .18); color: #b5c9c1; }
.connection.ready i { background: var(--green); box-shadow: 0 0 9px rgba(49, 214, 155, .65); }
.connection.ready i, .terminal-bar small.live { animation: live-pulse 1.8s ease-in-out infinite; }

.top-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-button, .settings-button, .screen-read-button { min-height: 36px; border: 1px solid var(--line); border-radius: 10px; background: rgba(11, 27, 49, .78); color: #aebfd5; cursor: pointer; transition: border-color .16s, background .16s, color .16s; }
.icon-button { width: 34px; }
.settings-button { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 12px; font-weight: 800; }
.screen-read-button { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-color: rgba(87,151,255,.32); color: #d6e6ff; font-size: 11px; font-weight: 850; }
.screen-read-button span { color: #76a9ff; text-shadow: 0 0 10px rgba(87,151,255,.75); }
.screen-read-button.active { border-color: rgba(49,214,155,.35); color: #bff7e3; background: rgba(49,214,155,.08); }
.screen-read-button:disabled { cursor: wait; opacity: .72; }
.icon-button:hover, .settings-button:hover, .screen-read-button:hover { border-color: var(--line-orange); background: #102744; color: #dceaff; }

.install-modal[hidden] { display: none; }
.install-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; }
.install-backdrop { position: absolute; inset: 0; background: rgba(1, 7, 17, .78); backdrop-filter: blur(12px); }
.install-dialog { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 36px); overflow-y: auto; padding: 30px; border: 1px solid rgba(104, 162, 255, .26); border-radius: 22px; background: linear-gradient(145deg, #0d203a, #061326 68%); box-shadow: 0 30px 100px rgba(0, 0, 0, .62), inset 0 1px rgba(255,255,255,.04); }
.install-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: #10233d; color: #b4c5db; cursor: pointer; font-size: 22px; line-height: 1; }
.install-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--orange-soft); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.install-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px rgba(87,151,255,.72); }
.install-dialog h2 { margin: 12px 40px 8px 0; font-size: clamp(26px, 5vw, 38px); letter-spacing: -.04em; }
.install-lead { margin: 0; color: #9dafc5; font-size: 14px; line-height: 1.55; }
.install-progress { display: grid; gap: 9px; margin: 24px 0 16px; }
.install-step { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.install-step > span { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 31px; border-radius: 9px; background: #122945; color: #91a5bf; font-size: 12px; font-weight: 900; }
.install-step b, .install-step small { display: block; }
.install-step b { color: #e7f0fb; font-size: 13px; }
.install-step small { margin-top: 2px; color: #8194ac; font-size: 11px; }
.install-step.done { border-color: rgba(49, 214, 155, .2); background: rgba(49, 214, 155, .035); }
.install-step.done > span { background: var(--green); color: #072018; }
.install-step.done small { color: #8acbb4; }
.install-step.waiting { border-color: rgba(255, 179, 71, .24); }
.install-step.waiting > span { background: rgba(255,179,71,.13); color: var(--amber); }
.install-message { min-height: 44px; display: flex; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #06101f; color: #a9b9cc; font-size: 12px; line-height: 1.45; }
.install-message.success { border-color: rgba(49,214,155,.24); color: #aef0d7; background: #0d1b16; }
.install-message.warning { border-color: rgba(112,165,255,.25); color: #b8d1fb; background: #0b1b31; }
.install-action { width: 100%; min-height: 50px; margin-top: 11px; border: 0; border-radius: 11px; background: var(--orange); color: #031128; cursor: pointer; font-weight: 900; }
.install-action:disabled { cursor: wait; background: #17263a; color: #71849b; }
.install-action.ready { box-shadow: 0 12px 30px rgba(55,127,245,.22); }
.install-note { margin: 10px 0 0; color: #74879e; font-size: 11px; text-align: center; }
.settings-group { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 22px 0 24px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.settings-group b, .settings-group small { display: block; }
.settings-group b { color: #eff6ff; font-size: 13px; }
.settings-group small { margin-top: 4px; color: #8295ae; font-size: 11px; line-height: 1.45; }
.settings-section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.settings-section-title span { color: #dfeaff; font-size: 12px; font-weight: 850; letter-spacing: .04em; }
.settings-section-title em { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: #8fa4bf; font-size: 10px; font-style: normal; }
.settings-section-title em.connected { border-color: rgba(49,214,155,.26); color: var(--green); }
.settings-section-title em.waiting { border-color: rgba(112,165,255,.28); color: #a9c8ff; }
.settings-section-title em.error { border-color: rgba(255,82,99,.3); color: #ff9eaa; }
.visual-reader-card { display: grid; grid-template-columns: 44px 1fr; gap: 13px; align-items: center; padding: 15px; border: 1px solid rgba(87,151,255,.22); border-radius: 14px; background: linear-gradient(135deg, rgba(87,151,255,.1), rgba(255,255,255,.018)); }
.visual-reader-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(87,151,255,.35); border-radius: 13px; color: #8bb6ff; background: #0d2444; box-shadow: inset 0 0 18px rgba(87,151,255,.08); font-size: 25px; }
.visual-reader-card b { color: #eef5ff; font-size: 14px; }
.visual-reader-card p { margin: 4px 0 0; color: #8fa4bf; font-size: 11px; line-height: 1.5; }
.visual-reader-steps { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.visual-reader-steps li { display: flex; align-items: center; gap: 10px; color: #9dafc5; font-size: 11px; }
.visual-reader-steps span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 25px; border-radius: 8px; background: #132e52; color: #9fc0f8; font-weight: 900; }
.switch { position: relative; flex: 0 0 44px; width: 44px; height: 25px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 999px; background: #10233d; transition: background .18s, border-color .18s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #8699af; transition: transform .18s, background .18s; }
.switch input:checked + span { border-color: rgba(87,151,255,.42); background: rgba(61,132,247,.26); }
.switch input:checked + span::after { transform: translateX(19px); background: #eaf3ff; }

.workspace {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(300px, 1fr) auto;
  gap: 10px;
  padding: 10px;
}

.terminal, .copilot { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(7, 20, 38, .94); }
.terminal { position: relative; min-height: 0; display: grid; grid-template-rows: 34px minmax(0, 1fr); box-shadow: 0 24px 70px rgba(0, 0, 0, .28); }
.terminal::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 33px; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(87,151,255,.58), transparent); animation: terminal-scan 7s linear infinite; }
.terminal-bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 0 12px; border-bottom: 1px solid var(--line); color: var(--muted); background: #06101f; }
.terminal-bar > span { display: flex; align-items: center; gap: 6px; color: #b7c7da; font-size: 11px; font-weight: 700; }
.terminal-bar > span i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 9px rgba(87,151,255,.58); }
.terminal-bar code { color: #746d66; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-bar small { justify-self: end; color: #7d90a8; font-size: 11px; }
.terminal-bar small.live { color: var(--green); }

.frame-wrap { position: relative; min-height: 0; background: #000; }
.frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.frame-loader { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; justify-items: center; background: #020a16; transition: opacity .25s, visibility .25s; }
.frame-loader.hidden { opacity: 0; visibility: hidden; }
.frame-loader p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.loader-ring { width: 26px; height: 26px; border: 2px solid #17304f; border-top-color: var(--orange); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.screen-reader-prompt { position: absolute; z-index: 6; top: 14px; left: 50%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; width: min(650px, calc(100% - 28px)); gap: 11px; padding: 11px 12px; border: 1px solid rgba(87,151,255,.5); border-radius: 14px; background: linear-gradient(135deg, rgba(11,31,59,.97), rgba(7,18,35,.97)); box-shadow: 0 16px 45px rgba(0,0,0,.55), 0 0 24px rgba(87,151,255,.16); transform: translateX(-50%); animation: screenReaderPromptPulse 2.2s ease-in-out infinite; }
.screen-reader-prompt[hidden] { display: none; }
.screen-reader-prompt-icon { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(87,151,255,.5); border-radius: 10px; background: rgba(87,151,255,.14); color: #8fbcff; font-size: 16px; }
.screen-reader-prompt div { min-width: 0; }
.screen-reader-prompt strong { display: block; color: #f4f8ff; font-size: 12px; line-height: 1.25; }
.screen-reader-prompt small { display: block; margin-top: 3px; color: #9db0c8; font-size: 10px; line-height: 1.3; }
.screen-reader-prompt button { min-height: 34px; padding: 0 13px; border: 1px solid rgba(121,169,246,.45); border-radius: 9px; background: linear-gradient(135deg, #4f95ff, #6e5cff); color: #fff; cursor: pointer; font: inherit; font-size: 10px; font-weight: 900; white-space: nowrap; }
.screen-reader-prompt button:hover { filter: brightness(1.12); }
.screen-reader-prompt button:disabled { cursor: wait; opacity: .72; }
@keyframes screenReaderPromptPulse { 50% { border-color: rgba(111,177,255,.85); box-shadow: 0 16px 45px rgba(0,0,0,.55), 0 0 30px rgba(87,151,255,.3); } }
@media (max-width: 680px) { .screen-reader-prompt { grid-template-columns: 30px minmax(0, 1fr); } .screen-reader-prompt button { grid-column: 2; justify-self: start; } }
@media (prefers-reduced-motion: reduce) { .screen-reader-prompt { animation: none; } }

/* v3.16 · análises em abas, alerta de sinal e destaque sem poluir o gráfico */
.signal-tabs { grid-column: 1; grid-row: 1; display: flex; align-items: center; align-self: start; gap: 6px; min-width: 0; padding: 0 8px; }
.signal-tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 30px; padding: 0 13px; border: 1px solid rgba(111,157,222,.16); border-radius: 9px; background: rgba(87,151,255,.035); color: #7f94ae; cursor: pointer; font: inherit; font-size: 9px; font-weight: 950; letter-spacing: .1em; transition: border-color .18s, background .18s, color .18s, box-shadow .18s, transform .18s; }
.signal-tab:hover { border-color: rgba(111,170,255,.35); color: #c7d8ed; }
.signal-tab.active { border-color: rgba(111,170,255,.48); background: linear-gradient(135deg, rgba(71,137,255,.18), rgba(100,76,216,.12)); color: #eef5ff; box-shadow: inset 0 -2px 0 #5797ff, 0 0 18px rgba(87,151,255,.08); }
.signal-tab:focus-visible { outline: 2px solid rgba(111,177,255,.8); outline-offset: 2px; }
.signal-tab-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4d57; box-shadow: 0 0 0 rgba(255,77,87,0); opacity: 0; transform: scale(.6); }
.signal-tab.has-signal .signal-tab-dot { opacity: 1; animation: signalTabDot 1.15s ease-in-out infinite; }
.signal-tab.has-signal:not(.active) { border-color: rgba(255,77,87,.4); color: #ffd9dc; box-shadow: 0 0 18px rgba(255,77,87,.09); }
@keyframes signalTabDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,77,87,.48), 0 0 8px rgba(255,77,87,.75); transform: scale(.82); } 55% { box-shadow: 0 0 0 5px rgba(255,77,87,0), 0 0 14px rgba(255,77,87,.9); transform: scale(1.08); } }
.signal-pane { grid-column: 1; grid-row: 2; width: 100%; }
.signal-pane[hidden] { display: none !important; }
.signal-pane.active { display: grid; animation: signalPaneIn .28s cubic-bezier(.18,.72,.22,1) both; }
.signal-pane-next.active { margin: 0; padding: 3px 10px; border: 0; }
.signal-pane-next .signal-pane-body { align-items: center; }
.signal-pane-next .signal-icon { flex-basis: 46px; width: 46px; height: 46px; border-radius: 14px; font-size: 22px; }
.signal-pane-next .signal-line { align-items: center; flex-direction: row; gap: 10px; }
.signal-pane-next .signal-line h1 { font-size: 28px; line-height: 1; }
.signal-pane-next .signal-line span { padding: 4px 8px; font-size: 10px; }
.signal-pane-next .signal-copy > small { font-size: 11px; }
.signal-pane-next .analysis-summary { max-width: 480px; margin-top: 7px; overflow: hidden; white-space: nowrap; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; }
.signal-card .signal-pane-next.buy h1,
.signal-card .signal-pane-next.sell h1,
.signal-card .signal-pane-next.possible-buy h1,
.signal-card .signal-pane-next.possible-sell h1,
.signal-card .signal-pane-next.waiting h1 { font-size: 28px; }
@keyframes signalPaneIn { from { opacity: 0; transform: translateY(5px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }

.signal-alert { --alert-rgb: 49,214,155; position: fixed; z-index: 91; top: 138px; right: 22px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 26px; align-items: center; width: min(370px, calc(100vw - 28px)); gap: 10px; padding: 11px 10px 11px 12px; overflow: hidden; border: 1px solid rgba(var(--alert-rgb),.55); border-radius: 14px; background: linear-gradient(135deg, rgba(8,27,49,.985), rgba(5,16,31,.99)); box-shadow: 0 18px 55px rgba(0,0,0,.5), 0 0 34px rgba(var(--alert-rgb),.2); animation: signalAlertIn .34s cubic-bezier(.18,.78,.22,1) both; }
.signal-alert::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: rgb(var(--alert-rgb)); box-shadow: 0 0 16px rgb(var(--alert-rgb)); content: ""; }
.signal-alert[hidden] { display: none; }
.signal-alert.sell { --alert-rgb: 255,93,101; }
.signal-alert.possible-buy { --alert-rgb: 57,215,255; }
.signal-alert.possible-sell { --alert-rgb: 255,159,67; }
.signal-alert-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(var(--alert-rgb),.48); border-radius: 11px; background: rgba(var(--alert-rgb),.12); color: rgb(var(--alert-rgb)); font-size: 20px; font-weight: 950; box-shadow: 0 0 20px rgba(var(--alert-rgb),.16); }
.signal-alert div { min-width: 0; }
.signal-alert small { display: block; color: #8ca3be; font-size: 8px; font-weight: 950; letter-spacing: .12em; }
.signal-alert strong { display: block; margin-top: 2px; color: rgb(var(--alert-rgb)); font-size: 16px; font-weight: 950; }
.signal-alert p { margin: 3px 0 0; color: #c1cede; font-size: 10px; line-height: 1.3; }
.signal-alert button { display: grid; width: 26px; height: 26px; place-items: center; border: 0; border-radius: 8px; background: rgba(255,255,255,.05); color: #9fb1c7; cursor: pointer; font: inherit; font-size: 17px; }
.admin-signal-alert{--admin-signal-rgb:45,224,166;position:fixed;z-index:120;left:50%;top:96px;width:min(620px,calc(100vw - 28px));display:grid;grid-template-columns:70px minmax(0,1fr) auto;align-items:center;gap:17px;padding:48px 22px 20px;border:1px solid rgba(var(--admin-signal-rgb),.72);border-radius:20px;background:linear-gradient(135deg,rgba(5,24,39,.99),rgba(3,13,27,.995));box-shadow:0 28px 100px rgba(0,0,0,.7),0 0 70px rgba(var(--admin-signal-rgb),.28),inset 0 0 34px rgba(var(--admin-signal-rgb),.06);transform:translateX(-50%);overflow:hidden;animation:adminSignalIn .55s cubic-bezier(.16,.82,.22,1) both}.admin-signal-alert[hidden]{display:none}.admin-signal-alert.sell{--admin-signal-rgb:255,76,88}.admin-signal-alert:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(var(--admin-signal-rgb),.13),transparent);transform:translateX(-100%);animation:adminSignalSweep 1.5s ease .2s}.admin-signal-beacon{position:absolute;inset:0 0 auto;height:32px;display:flex;align-items:center;justify-content:center;gap:8px;background:rgba(var(--admin-signal-rgb),.11);color:rgb(var(--admin-signal-rgb));font-size:9px;font-weight:950;letter-spacing:.18em}.admin-signal-beacon i{width:8px;height:8px;border-radius:50%;background:rgb(var(--admin-signal-rgb));box-shadow:0 0 14px rgb(var(--admin-signal-rgb));animation:adminSignalPulse 1s ease-in-out infinite}.admin-signal-alert>button{position:absolute;right:10px;top:4px;z-index:2;width:28px;height:28px;border:0;background:transparent;color:#aebed0;cursor:pointer;font-size:20px}.admin-signal-icon{width:66px;height:66px;display:grid;place-items:center;border:1px solid rgba(var(--admin-signal-rgb),.65);border-radius:18px;background:rgba(var(--admin-signal-rgb),.13);color:rgb(var(--admin-signal-rgb));font-size:35px;font-weight:950;box-shadow:0 0 30px rgba(var(--admin-signal-rgb),.2)}.admin-signal-copy small,.admin-signal-copy strong,.admin-signal-copy p{display:block}.admin-signal-copy small{color:#9fb2c9;font-size:10px;font-weight:950;letter-spacing:.1em}.admin-signal-copy strong{margin-top:2px;color:rgb(var(--admin-signal-rgb));font-size:clamp(31px,5vw,45px);font-weight:1000;line-height:1;letter-spacing:-.045em;text-shadow:0 0 24px rgba(var(--admin-signal-rgb),.35)}.admin-signal-copy p{margin:7px 0 0;color:#c4d2e1;font-size:11px}.admin-signal-confidence{padding:10px 12px;border:1px solid rgba(var(--admin-signal-rgb),.35);border-radius:12px;background:rgba(var(--admin-signal-rgb),.08);color:rgb(var(--admin-signal-rgb));font-size:18px;font-weight:950}.admin-broadcast-buy:after,.admin-broadcast-sell:after{content:"";position:fixed;z-index:119;inset:0;border:4px solid rgba(45,224,166,.66);box-shadow:inset 0 0 75px rgba(45,224,166,.2);pointer-events:none;animation:adminScreenFlash 1.7s ease both}.admin-broadcast-sell:after{border-color:rgba(255,76,88,.7);box-shadow:inset 0 0 75px rgba(255,76,88,.22)}
@keyframes adminSignalIn{from{opacity:0;transform:translate(-50%,-28px) scale(.94)}to{opacity:1;transform:translate(-50%,0) scale(1)}}@keyframes adminSignalSweep{to{transform:translateX(100%)}}@keyframes adminSignalPulse{50%{opacity:.3;transform:scale(.7)}}@keyframes adminScreenFlash{0%{opacity:0}18%{opacity:1}100%{opacity:0}}
@media(max-width:640px){.admin-signal-alert{top:68px;grid-template-columns:54px 1fr;padding:43px 15px 15px;gap:12px}.admin-signal-icon{width:52px;height:52px;border-radius:14px;font-size:28px}.admin-signal-confidence{grid-column:2;width:max-content;padding:6px 9px;font-size:13px}.admin-signal-copy strong{font-size:30px}}
.extreme-alert { top: 246px; }
@keyframes signalAlertIn { from { opacity: 0; transform: translateX(28px) scale(.96); } 60% { transform: translateX(-3px) scale(1.01); } to { opacity: 1; transform: none; } }
@media (max-width: 780px) {
  .signal-tabs { padding: 0; }
  .signal-tab { flex: 1; padding-inline: 8px; }
  .signal-pane-next.active { margin: 0; padding: 3px 10px; border: 0; }
}
@media (max-width: 520px) {
  .signal-alert { top: 112px; right: 14px; }
  .extreme-alert { top: 220px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .signal-tab.has-signal .signal-tab-dot { animation: none; }
  .signal-pane.active, .signal-alert { animation: none; }
}

.copilot {
  position: relative;
  z-index: 6;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(560px, 1.8fr) minmax(260px, .72fr) minmax(360px, 1.18fr);
  align-items: stretch;
  min-height: 142px;
  background: linear-gradient(120deg, rgba(75, 143, 255, .055), transparent 44%), var(--surface);
}

.signal-card { --signal-accent: #5797ff; --signal-rgb: 87,151,255; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: stretch; gap: 7px; padding: 9px 12px 10px; border-right: 1px solid var(--line); }
.signal-pane { min-width: 0; padding: 3px 10px; border-radius: 12px; }
.signal-pane-current { display: grid; align-content: center; }
.signal-pane-next { display: grid; align-content: center; margin-left: 0; padding-left: 10px; border-left: 0; background: linear-gradient(135deg, rgba(87,151,255,.035), transparent 72%); }
.signal-pane-title { display: flex; align-items: center; gap: 6px; margin: 0 0 6px 60px; color: #7f94ae; font-size: 9px; font-weight: 950; letter-spacing: .13em; }
.signal-pane-title i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.signal-pane-current .signal-pane-title { color: #74e4bd; }
.signal-pane-next .signal-pane-title { margin-left: 0; color: #8eb6ff; }
.signal-pane-body { display: flex; align-items: center; gap: 12px; min-width: 0; }
.signal-pane-next .signal-pane-body { align-items: flex-start; }
.signal-pane-next .signal-icon { flex-basis: 38px; width: 38px; height: 38px; border-radius: 12px; font-size: 18px; }
.signal-pane-next .signal-line { align-items: flex-start; flex-direction: column; gap: 5px; }
.signal-pane-next .signal-line h1 { font-size: 18px; line-height: 1.02; }
.signal-pane-next .signal-line span { padding: 3px 6px; font-size: 8px; }
.signal-pane-next .signal-copy > small { font-size: 8px; }
.signal-pane-next .analysis-summary { margin-top: 7px; white-space: normal; font-size: 9px; line-height: 1.3; }
.signal-pane-next.buy .signal-icon { border-color: rgba(49,214,155,.3); background: rgba(49,214,155,.08); color: var(--green); }
.signal-pane-next.buy h1 { color: var(--green); }
.signal-pane-next.sell .signal-icon { border-color: rgba(255,93,101,.3); background: rgba(255,93,101,.08); color: var(--red); }
.signal-pane-next.sell h1 { color: var(--red); }
.signal-pane-next.possible-buy .signal-icon { border-color: rgba(57,215,255,.4); background: rgba(57,215,255,.1); color: var(--possible-buy); }
.signal-pane-next.possible-buy h1 { color: var(--possible-buy); }
.signal-pane-next.possible-sell .signal-icon { border-color: rgba(255,159,67,.42); background: rgba(255,159,67,.11); color: var(--possible-sell); }
.signal-pane-next.possible-sell h1 { color: var(--possible-sell); }
.signal-pane-next.waiting h1 { color: #8fa7c4; }
.signal-card.buy { --signal-accent: var(--green); --signal-rgb: 49,214,155; }
.signal-card.sell { --signal-accent: var(--red); --signal-rgb: 255,93,101; }
.signal-card.possible-buy { --signal-accent: var(--possible-buy); --signal-rgb: 57,215,255; }
.signal-card.possible-sell { --signal-accent: var(--possible-sell); --signal-rgb: 255,159,67; }
.signal-card.signal-refresh { animation: signalCardRefresh 1.55s cubic-bezier(.18,.72,.22,1) both; }
.signal-card.signal-refresh .signal-copy { animation: signalCopyRefresh .62s cubic-bezier(.18,.72,.22,1) both; }
.signal-card.signal-refresh .signal-icon { animation: signalIconRefresh .82s cubic-bezier(.18,.72,.22,1) both !important; }
.signal-cycle { position: absolute; z-index: 5; top: 9px; right: 13px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid rgba(var(--signal-rgb),.3); border-radius: 999px; background: rgba(3,12,25,.88); color: var(--signal-accent); box-shadow: 0 0 16px rgba(var(--signal-rgb),.1); font-size: 8px; font-weight: 950; letter-spacing: .08em; pointer-events: none; opacity: 0; transform: translateY(-5px) scale(.96); }
.signal-cycle[hidden] { display: none; }
.signal-cycle i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.signal-cycle time { color: #dce9f9; font-variant-numeric: tabular-nums; }
.signal-cycle.show { animation: signalCycleBadge 2.8s ease both; }
@keyframes signalCardRefresh { 0% { background: rgba(var(--signal-rgb),.18); box-shadow: inset 4px 0 0 rgba(var(--signal-rgb),.95), inset 0 0 50px rgba(var(--signal-rgb),.16); } 42% { background: rgba(var(--signal-rgb),.07); box-shadow: inset 2px 0 0 rgba(var(--signal-rgb),.7), inset 0 0 28px rgba(var(--signal-rgb),.08); } 100% { background: transparent; box-shadow: inset 0 0 0 rgba(var(--signal-rgb),0); } }
@keyframes signalCopyRefresh { 0% { opacity: .5; transform: translateY(7px); filter: blur(2px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes signalIconRefresh { 0% { transform: scale(.78) rotate(-7deg); box-shadow: 0 0 0 rgba(var(--signal-rgb),0); } 45% { transform: scale(1.1); box-shadow: 0 0 24px rgba(var(--signal-rgb),.42); } 100% { transform: none; } }
@keyframes signalCycleBadge { 0% { opacity: 0; transform: translateY(-5px) scale(.96); } 12%, 72% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-3px); } }
.signal-card.scanning::after { position: absolute; right: 18px; bottom: 7px; left: 18px; height: 2px; overflow: hidden; border-radius: 999px; background: rgba(87,151,255,.1); content: ""; }
.signal-card.scanning::before { position: absolute; z-index: 1; bottom: 7px; left: 18px; width: 24%; height: 2px; border-radius: 999px; background: linear-gradient(90deg, transparent, #5797ff, #8a74ff, transparent); content: ""; animation: atlasScanning 1.6s ease-in-out infinite; }
@keyframes atlasScanning { from { transform: translateX(-100%); } to { transform: translateX(420%); } }
.signal-icon { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-orange); border-radius: 14px; background: rgba(87,151,255,.09); color: var(--orange); font-size: 22px; font-weight: 900; }
.signal-copy { min-width: 0; width: 100%; }
.signal-copy small, .market-facts small { color: #8195ae; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.signal-line { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.signal-line h1 { margin: 0; color: var(--amber); font-size: 28px; line-height: 1; letter-spacing: -.025em; }
.signal-line span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: #a5b6ca; font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.signal-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.signal-meta > span { padding: 3px 7px; border: 1px solid rgba(115,160,225,.16); border-radius: 6px; background: rgba(87,151,255,.05); color: #91a8c5; font-size: 9px; font-weight: 900; letter-spacing: .06em; }
.signal-meta .entry-timing.current, .signal-meta .entry-timing.next { border-color: rgba(103,147,255,.48); background: linear-gradient(135deg, rgba(72,133,255,.18), rgba(122,91,255,.15)); color: #dce8ff; animation: entryTimingPulse 1.8s ease-in-out infinite; }
.signal-meta .entry-timing.current { border-color: rgba(49,214,155,.45); background: linear-gradient(135deg, rgba(49,214,155,.14), rgba(55,137,255,.12)); color: #baf7df; }
.signal-meta .entry-timing.waiting { color: #91a8c5; }
.signal-meta .gale-none { border-color: rgba(49,214,155,.24); background: rgba(49,214,155,.08); color: #75e8bf; }
.signal-meta .gale-one { border-color: rgba(87,151,255,.28); background: rgba(87,151,255,.09); color: #9dc0ff; }
.signal-meta .gale-two { border-color: rgba(199,162,255,.3); background: rgba(199,162,255,.1); color: var(--probable); }
.signal-meta .gale-wait { border-color: rgba(255,179,71,.2); background: rgba(255,179,71,.06); color: #d8b878; }
.signal-meta .signal-stability.stable { border-color: rgba(49,214,155,.25); background: rgba(49,214,155,.08); color: #75e8bf; }
.signal-meta .signal-stability.checking { border-color: rgba(255,179,71,.3); background: rgba(255,179,71,.1); color: #ffd18a; animation: stabilityPulse 1.6s ease-in-out infinite; }
.signal-meta .signal-stability.waiting { color: #91a8c5; }
@keyframes stabilityPulse { 50% { border-color: rgba(255,179,71,.65); box-shadow: 0 0 12px rgba(255,179,71,.16); } }
@keyframes entryTimingPulse { 0%, 100% { box-shadow: 0 0 0 rgba(87,151,255,0); transform: scale(1); } 50% { box-shadow: 0 0 13px rgba(87,151,255,.28); transform: scale(1.045); } }
.setup-warning-stack { position: fixed; z-index: 90; top: 70px; left: 50%; display: grid; width: min(460px, calc(100vw - 28px)); gap: 10px; transform: translateX(-50%); }
.setup-warning-stack[hidden] { display: none; }
.setup-warning { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px 12px 12px 13px; overflow: hidden; border: 1px solid rgba(255,179,71,.42); border-radius: 14px; background: linear-gradient(135deg, rgba(13,29,52,.98), rgba(7,17,33,.98)); box-shadow: 0 18px 55px rgba(0,0,0,.5), 0 0 24px rgba(255,179,71,.09); animation: setupWarningIn .24s ease-out both; }
.setup-warning::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(#ffd277, #ff9f43); content: ""; }
.setup-warning-icon { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(255,179,71,.4); border-radius: 10px; background: rgba(255,179,71,.1); color: #ffd18a; font-size: 18px; font-weight: 950; }
.setup-warning-copy { min-width: 0; }
.setup-warning-copy strong { display: block; color: #f5f9ff; font-size: 12px; }
.setup-warning-copy p { margin: 2px 0; color: #ffd18a; font-size: 12px; font-weight: 850; }
.setup-warning-copy small { display: block; color: #91a8c5; font-size: 10px; line-height: 1.35; }
.setup-warning-actions { display: flex; align-items: center; gap: 5px; }
.setup-warning-actions button { border: 0; cursor: pointer; font: inherit; }
.setup-warning-accept { padding: 8px 11px; border-radius: 8px; background: linear-gradient(135deg, #4f95ff, #6e5cff); color: #fff; font-size: 10px; font-weight: 900; white-space: nowrap; }
.setup-warning-close { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: rgba(255,255,255,.05); color: #9fb0c5; font-size: 18px; }
.setup-warning-actions button:hover { filter: brightness(1.12); }
@keyframes setupWarningIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
@media (max-width: 620px) { .setup-warning { grid-template-columns: 32px minmax(0, 1fr); } .setup-warning-actions { grid-column: 2; justify-content: flex-start; } }
.extreme-alert { --extreme-rgb: 57,215,255; position: fixed; z-index: 88; top: 138px; right: 22px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 26px; align-items: center; width: min(360px, calc(100vw - 28px)); gap: 10px; padding: 11px 10px 11px 12px; border: 1px solid rgba(var(--extreme-rgb),.48); border-radius: 14px; background: linear-gradient(135deg, rgba(8,27,49,.97), rgba(5,16,31,.98)); box-shadow: 0 18px 55px rgba(0,0,0,.48), 0 0 28px rgba(var(--extreme-rgb),.15); animation: extremeAlertIn .28s cubic-bezier(.18,.72,.22,1) both; }
.extreme-alert[hidden] { display: none; }
.extreme-alert.sell { --extreme-rgb: 255,159,67; }
.extreme-alert-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(var(--extreme-rgb),.45); border-radius: 11px; background: rgba(var(--extreme-rgb),.12); color: rgb(var(--extreme-rgb)); font-size: 19px; font-weight: 950; box-shadow: 0 0 18px rgba(var(--extreme-rgb),.12); }
.extreme-alert div { min-width: 0; }
.extreme-alert small { display: block; color: #8ca3be; font-size: 8px; font-weight: 950; letter-spacing: .12em; }
.extreme-alert strong { display: block; margin-top: 2px; color: rgb(var(--extreme-rgb)); font-size: 16px; font-weight: 950; }
.extreme-alert p { margin: 3px 0 0; color: #c1cede; font-size: 10px; line-height: 1.3; }
.extreme-alert button { display: grid; width: 26px; height: 26px; place-items: center; border: 0; border-radius: 8px; background: rgba(255,255,255,.05); color: #9fb1c7; cursor: pointer; font: inherit; font-size: 17px; }
@keyframes extremeAlertIn { from { opacity: 0; transform: translateX(24px) scale(.97); } }
.entry-guidance { --guidance-glow: rgba(255,179,71,.24); display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 9px; margin-top: 9px; padding: 8px 10px; border: 1px solid rgba(255,179,71,.38); border-radius: 10px; background: linear-gradient(135deg, rgba(255,179,71,.14), rgba(255,179,71,.05)); box-shadow: inset 3px 0 0 #ffb347; animation: entryGuidancePulse 2s ease-in-out infinite; }
.entry-guidance-icon { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgba(255,209,138,.45); border-radius: 8px; background: rgba(255,179,71,.13); color: #ffd18a; font-size: 15px; font-weight: 950; }
.entry-guidance div { min-width: 0; }
.entry-guidance small { display: block; color: #ffd18a; font-size: 8px; font-weight: 950; letter-spacing: .11em; }
.entry-guidance strong { display: block; margin-top: 2px; color: #f8fbff; font-size: 11px; font-weight: 900; line-height: 1.3; }
.signal-card.buy .entry-guidance { --guidance-glow: rgba(49,214,155,.24); border-color: rgba(49,214,155,.38); background: linear-gradient(135deg, rgba(49,214,155,.14), rgba(49,214,155,.04)); box-shadow: inset 3px 0 0 var(--green); }
.signal-card.buy .entry-guidance-icon { border-color: rgba(49,214,155,.42); background: rgba(49,214,155,.12); color: #8cebc9; }
.signal-card.buy .entry-guidance small { color: #75e8bf; }
.signal-card.sell .entry-guidance { --guidance-glow: rgba(255,93,101,.24); border-color: rgba(255,93,101,.38); background: linear-gradient(135deg, rgba(255,93,101,.14), rgba(255,93,101,.04)); box-shadow: inset 3px 0 0 var(--red); }
.signal-card.sell .entry-guidance-icon { border-color: rgba(255,93,101,.42); background: rgba(255,93,101,.12); color: #ff9ea4; }
.signal-card.sell .entry-guidance small { color: #ff9ea4; }
.signal-card.probable .entry-guidance { --guidance-glow: rgba(199,162,255,.25); border-color: rgba(199,162,255,.4); background: linear-gradient(135deg, rgba(199,162,255,.15), rgba(199,162,255,.04)); box-shadow: inset 3px 0 0 var(--probable); }
.signal-card.probable .entry-guidance-icon { border-color: rgba(199,162,255,.45); background: rgba(199,162,255,.12); color: #dcc7ff; }
.signal-card.probable .entry-guidance small { color: #d6bfff; }
.signal-card.expired .entry-guidance { --guidance-glow: rgba(255,179,71,.24); border-color: rgba(255,179,71,.42); background: linear-gradient(135deg, rgba(255,179,71,.15), rgba(255,179,71,.04)); box-shadow: inset 3px 0 0 var(--amber); }
.signal-card.expired .entry-guidance-icon { border-color: rgba(255,179,71,.45); background: rgba(255,179,71,.12); color: #ffd18a; }
.signal-card.expired .entry-guidance small { color: #ffd18a; }
.signal-card.observing .entry-guidance { --guidance-glow: rgba(255,179,71,.24); border-color: rgba(255,179,71,.42); background: linear-gradient(135deg, rgba(255,179,71,.15), rgba(255,179,71,.04)); box-shadow: inset 3px 0 0 var(--amber); }
.signal-card.observing .entry-guidance-icon { border-color: rgba(255,179,71,.45); background: rgba(255,179,71,.12); color: #ffd18a; }
.signal-card.observing .entry-guidance small { color: #ffd18a; }
.signal-card.trend-only .entry-guidance { --guidance-glow: rgba(87,151,255,.18); border-style: dashed; border-color: rgba(87,151,255,.42); background: linear-gradient(135deg, rgba(87,151,255,.12), rgba(87,151,255,.035)); box-shadow: inset 3px 0 0 #5797ff; }
.signal-card.trend-only .entry-guidance-icon { border-color: rgba(87,151,255,.42); background: rgba(87,151,255,.11); color: #9fc3ff; }
.signal-card.trend-only .entry-guidance small { color: #9fc3ff; }
.signal-card.trend-only h1 { font-size: 20px; }
.intel-section-label { color: #8fa8c8; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
@keyframes entryGuidancePulse { 0%, 100% { outline: 0 solid transparent; } 50% { outline: 3px solid var(--guidance-glow); } }
@media (prefers-reduced-motion: reduce) { .entry-guidance { animation: none; } }
.signal-copy p { max-width: 480px; margin: 6px 0 0; overflow: hidden; color: #9aacc1; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.signal-more { position: relative; z-index: 4; margin-top: 5px; padding: 0; border: 0; background: transparent; color: #79a9f6; cursor: help; font-size: 10px; font-weight: 850; text-decoration: underline; text-decoration-color: rgba(121,169,246,.42); text-underline-offset: 3px; }
.signal-tooltip { position: absolute; z-index: 30; left: 0; bottom: calc(100% + 9px); width: min(390px, calc(100vw - 42px)); padding: 13px 14px; border: 1px solid rgba(105,160,245,.3); border-radius: 12px; background: rgba(5,17,34,.98); color: #b9c9dc; box-shadow: 0 18px 48px rgba(0,0,0,.52); text-align: left; opacity: 0; visibility: hidden; transform: translateY(5px); transition: .16s opacity, .16s transform, .16s visibility; pointer-events: none; }
.signal-more:hover .signal-tooltip, .signal-more:focus-visible .signal-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }
.signal-tooltip strong { display: block; margin-bottom: 7px; color: #eef5ff; font-size: 11px; }
.signal-tooltip ul { display: grid; gap: 5px; margin: 0; padding-left: 16px; }
.signal-tooltip li { color: #9fb2c9; font-size: 10px; font-weight: 560; line-height: 1.4; }
.signal-card.buy .signal-icon { border-color: rgba(49,214,155,.28); background: rgba(49,214,155,.08); color: var(--green); }
.signal-card.buy h1 { color: var(--green); }
.signal-card.sell .signal-icon { border-color: rgba(255,93,101,.28); background: rgba(255,93,101,.08); color: var(--red); }
.signal-card.sell h1 { color: var(--red); }
.signal-card.buy .signal-icon { animation: buy-glow 1.9s ease-in-out infinite; }
.signal-card.sell .signal-icon { animation: sell-glow 1.9s ease-in-out infinite; }
.signal-card.probable .signal-icon { border-color: rgba(199,162,255,.34); background: rgba(199,162,255,.1); color: var(--probable); animation: probable-glow 2.1s ease-in-out infinite; }
.signal-card.probable h1 { color: var(--probable); font-size: 22px; }
.signal-card.possible-buy .signal-icon { border-color: rgba(57,215,255,.38); background: rgba(57,215,255,.1); color: var(--possible-buy); }
.signal-card.possible-buy h1 { color: var(--possible-buy); }
.signal-card.possible-buy .entry-guidance { --guidance-glow: rgba(57,215,255,.24); border-color: rgba(57,215,255,.4); background: linear-gradient(135deg, rgba(57,215,255,.14), rgba(57,215,255,.035)); box-shadow: inset 3px 0 0 var(--possible-buy); }
.signal-card.possible-buy .entry-guidance-icon { border-color: rgba(57,215,255,.44); background: rgba(57,215,255,.11); color: #96eaff; }
.signal-card.possible-buy .entry-guidance small { color: #86e7ff; }
.signal-card.possible-sell .signal-icon { border-color: rgba(255,159,67,.4); background: rgba(255,159,67,.11); color: var(--possible-sell); }
.signal-card.possible-sell h1 { color: var(--possible-sell); }
.signal-card.possible-sell .entry-guidance { --guidance-glow: rgba(255,159,67,.24); border-color: rgba(255,159,67,.42); background: linear-gradient(135deg, rgba(255,159,67,.15), rgba(255,159,67,.035)); box-shadow: inset 3px 0 0 var(--possible-sell); }
.signal-card.possible-sell .entry-guidance-icon { border-color: rgba(255,159,67,.46); background: rgba(255,159,67,.12); color: #ffc38b; }
.signal-card.possible-sell .entry-guidance small { color: #ffbd7d; }
.signal-card.expired .signal-icon { border-color: rgba(255,179,71,.38); background: rgba(255,179,71,.1); color: #ffd18a; animation: stabilityPulse 1.8s ease-in-out infinite; }
.signal-card.expired h1 { color: #ffd18a; font-size: 20px; }
.signal-card.observing .signal-icon { border-color: rgba(255,179,71,.38); background: rgba(255,179,71,.1); color: #ffd18a; animation: stabilityPulse 1.8s ease-in-out infinite; }
.signal-card.observing h1 { color: #ffd18a; font-size: 18px; }
.signal-card.possible-buy .signal-pane-current .signal-icon { border-color: rgba(57,215,255,.38); background: rgba(57,215,255,.1); color: var(--possible-buy); }
.signal-card.possible-buy .signal-pane-current h1 { color: var(--possible-buy); font-size: 22px; }
.signal-card.possible-sell .signal-pane-current .signal-icon { border-color: rgba(255,159,67,.4); background: rgba(255,159,67,.11); color: var(--possible-sell); }
.signal-card.possible-sell .signal-pane-current h1 { color: var(--possible-sell); font-size: 22px; }
.signal-card .signal-pane-next.buy .signal-icon { border-color: rgba(49,214,155,.3); background: rgba(49,214,155,.08); color: var(--green); }
.signal-card .signal-pane-next.buy h1 { color: var(--green); font-size: 18px; }
.signal-card .signal-pane-next.sell .signal-icon { border-color: rgba(255,93,101,.3); background: rgba(255,93,101,.08); color: var(--red); }
.signal-card .signal-pane-next.sell h1 { color: var(--red); font-size: 18px; }
.signal-card .signal-pane-next.possible-buy .signal-icon { border-color: rgba(57,215,255,.4); background: rgba(57,215,255,.1); color: var(--possible-buy); }
.signal-card .signal-pane-next.possible-buy h1 { color: var(--possible-buy); font-size: 18px; }
.signal-card .signal-pane-next.possible-sell .signal-icon { border-color: rgba(255,159,67,.42); background: rgba(255,159,67,.11); color: var(--possible-sell); }
.signal-card .signal-pane-next.possible-sell h1 { color: var(--possible-sell); font-size: 18px; }
.signal-card .signal-pane-next.waiting h1 { color: #8fa7c4; font-size: 18px; }

.market-facts { display: grid; grid-template-columns: repeat(2, 1fr); align-content: center; padding: 12px 18px; border-right: 1px solid var(--line); }
.market-facts > div { min-width: 0; padding: 9px 12px; }
.market-facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
.market-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.market-facts strong { display: block; margin-top: 6px; overflow: hidden; color: #e4edf8; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

.macros { display: grid; grid-template-rows: auto 1fr; padding: 15px 18px; }
.macro-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.macro-heading span { font-size: 14px; font-weight: 800; }
.macro-heading small { color: #8396ad; font-size: 11px; }
.macro-buttons { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 7px; margin-top: 11px; }
.macro-buttons button { min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: #a9bad0; cursor: pointer; transition: border-color .16s, background .16s, color .16s, transform .16s; }
.macro-buttons button span { color: var(--orange); font-size: 13px; }
.macro-buttons button b { font-size: 12px; }
.macro-buttons button:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--line-orange); background: var(--surface-3); color: var(--text); }
.macro-buttons button.primary { position: relative; overflow: hidden; border-color: transparent; background: var(--orange); color: #031128; }
.macro-buttons button.primary::after { content: ""; position: absolute; inset: -100% auto -100% -45%; width: 28%; background: rgba(255,255,255,.28); transform: rotate(18deg); animation: button-shine 3.6s ease-in-out infinite; }
.macro-buttons button.primary span { color: #031128; }
.macro-buttons button:disabled { cursor: not-allowed; opacity: .38; }
.macro-buttons button.loading { opacity: .62; pointer-events: none; }

.toast { position: absolute; right: 16px; bottom: 16px; z-index: 5; max-width: 360px; padding: 10px 13px; border: 1px solid var(--line-orange); border-radius: 9px; background: #0b1d34; color: #d4e5fb; box-shadow: 0 14px 36px rgba(0,0,0,.35); font-size: 12px; }
.toast.success { border-color: rgba(49,214,155,.25); background: #102019; color: #baf5de; }
.toast.error { border-color: rgba(255,93,101,.3); background: #251113; color: #ffbdc0; }

.robot-overlay {
  position: fixed;
  z-index: 20;
  right: 22px;
  bottom: 168px;
  width: min(390px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  align-items: end;
  gap: 11px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .42));
  transition: transform .2s ease, opacity .2s ease;
  contain: layout;
}
.robot-overlay.dragging { transition: none; user-select: none; }
.robot-avatar {
  width: 68px;
  display: grid;
  justify-items: center;
  align-self: end;
  justify-self: end;
  gap: 5px;
}
.robot-controls {
  position: relative;
  z-index: 4;
  width: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.robot-toggle,
.robot-voice-toggle {
  position: static;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: #f4f8ff;
  color: #18304f;
  cursor: pointer;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .24);
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.robot-toggle:hover { border-color: var(--line-orange); color: var(--orange); }
.robot-voice-toggle {
  font-size: 14px;
}
.robot-voice-toggle:hover { border-color: #66a3ff; color: #185bb8; transform: translateY(-1px); }
.robot-voice-toggle[aria-pressed="true"] { border-color: rgba(255, 93, 101, .45); background: #fff0f1; color: #c53340; }
.robot-overlay.voice-muted .robot-antenna i { box-shadow: none; opacity: .62; }
.robot-bubble {
  position: relative;
  min-width: 0;
  min-height: 88px;
  max-height: calc(100dvh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 17px;
  border: 1px solid rgba(191, 215, 247, .72);
  border-radius: 17px 17px 5px 17px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .985), rgba(228, 238, 251, .98));
  box-shadow: inset 0 1px rgba(255,255,255,.8), 0 18px 48px rgba(0,0,0,.32);
  backdrop-filter: blur(18px);
}
.robot-bubble::after {
  content: "";
  position: absolute;
  right: -9px;
  bottom: 12px;
  width: 16px;
  height: 16px;
  border-top: 1px solid rgba(191, 215, 247, .72);
  border-right: 1px solid rgba(191, 215, 247, .72);
  background: #e8f0fb;
  transform: rotate(45deg);
}
.robot-bubble p { margin: 0; overflow-wrap: anywhere; color: #132238; font-size: 14px; font-weight: 560; line-height: 1.5; }
.robot-bubble p strong { color: #07182f; font-weight: 850; }
.robot-bubble p em { color: #3c5574; font-style: italic; }
.robot-bubble p .good { color: #14855f; font-weight: 850; }
.robot-bubble p .bad { color: #d83f4b; font-weight: 850; }
.robot-questions { display: grid; gap: 6px; margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(25, 56, 94, .14); }
.robot-questions[hidden] { display: none; }
.robot-questions button { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid rgba(25, 56, 94, .16); border-radius: 10px; background: rgba(255,255,255,.62); color: #213a59; cursor: pointer; text-align: left; font-size: 13px; font-weight: 750; }
.robot-questions button:hover { border-color: rgba(67,127,219,.36); color: #185bb8; }
.robot-overlay.questions-open { width: min(390px, calc(100vw - 28px)); }
.robot-character { position: relative; width: 68px; height: 91px; transform-origin: center bottom; cursor: grab; touch-action: none; animation: robot-idle 3.6s ease-in-out infinite; }
.robot-overlay.dragging .robot-character { cursor: grabbing; animation: none; }
.robot-antenna { position: absolute; z-index: 0; top: 0; left: 31px; width: 5px; height: 18px; border-radius: 4px; background: #cbd8e8; transform: rotate(8deg); }
.robot-antenna i { position: absolute; top: -3px; left: -3px; width: 11px; height: 11px; border: 3px solid #233956; border-radius: 50%; background: #f8fbff; box-shadow: 0 0 12px rgba(197,220,250,.7); }
.robot-head { position: absolute; z-index: 2; top: 14px; left: 4px; width: 60px; height: 48px; border: 3px solid #253b58; border-radius: 20px 20px 16px 16px; background: linear-gradient(145deg, #ffffff, #dce8f7); box-shadow: inset 0 3px 0 rgba(255,255,255,.9), 0 8px 24px rgba(16,42,74,.28); }
.robot-head::after { content: ""; position: absolute; inset: -8px; z-index: -1; border: 1px solid rgba(194,218,249,.38); border-radius: 25px; animation: robot-aura 2.4s ease-out infinite; }
.robot-eye { position: absolute; top: 16px; width: 7px; height: 9px; border-radius: 4px; background: #162941; box-shadow: 0 0 0 2px rgba(80,138,216,.14); animation: robot-blink 4.8s infinite; }
.robot-eye.left { left: 13px; }
.robot-eye.right { right: 13px; }
.robot-mouth { position: absolute; left: 21px; bottom: 8px; width: 13px; height: 5px; border-bottom: 2px solid #1c2d44; border-radius: 0 0 10px 10px; }
.robot-neck { position: absolute; z-index: 1; left: 27px; top: 58px; width: 14px; height: 10px; background: #b9c8da; }
.robot-body { position: absolute; z-index: 0; left: 10px; bottom: 0; width: 48px; height: 31px; display: grid; place-items: center; border: 3px solid #253b58; border-radius: 12px 12px 7px 7px; background: linear-gradient(160deg, #ffffff, #d4e1f0); color: #2f6fc8; }
.robot-body i { font-size: 13px; font-style: normal; font-weight: 900; }
.robot-overlay.talking .robot-mouth { height: 6px; border: 0; border-radius: 50%; background: #1c2d44; animation: robot-talk .2s steps(2) 8; }
.robot-overlay.minimized { width: 74px; grid-template-columns: 74px; }
.robot-overlay.minimized .robot-bubble { display: none; }
.robot-overlay.minimized .robot-avatar { width: 74px; }
.robot-overlay.minimized .robot-character { cursor: pointer; }
@keyframes robot-idle { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-4px) rotate(1deg); } }
@keyframes robot-blink { 0%, 45%, 49%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.08); } }
@keyframes robot-talk { 0% { transform: scaleY(.55); } 100% { transform: scaleY(1.25); } }
@keyframes ambient-drift { from { transform: translate3d(-4%, -4%, 0) scale(.9); } to { transform: translate3d(8%, 10%, 0) scale(1.15); } }
@keyframes orbit-float { 0%, 100% { transform: translateY(0) rotate(8deg); } 50% { transform: translateY(-2px) rotate(15deg); } }
@keyframes live-pulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; filter: brightness(1.25); } }
@keyframes terminal-scan { 0% { transform: translateX(-100%); opacity: 0; } 10%, 80% { opacity: .5; } 100% { transform: translateX(100%); opacity: 0; } }
@keyframes buy-glow { 0%, 100% { box-shadow: 0 0 0 rgba(49,214,155,0); } 50% { box-shadow: 0 0 24px rgba(49,214,155,.18); } }
@keyframes sell-glow { 0%, 100% { box-shadow: 0 0 0 rgba(255,93,101,0); } 50% { box-shadow: 0 0 24px rgba(255,93,101,.18); } }
@keyframes probable-glow { 0%, 100% { box-shadow: 0 0 0 rgba(199,162,255,0); } 50% { box-shadow: 0 0 25px rgba(199,162,255,.2); } }
@keyframes button-shine { 0%, 52% { transform: translateX(-260%) rotate(18deg); } 75%, 100% { transform: translateX(650%) rotate(18deg); } }
@keyframes robot-aura { 0% { opacity: .5; transform: scale(.9); } 75%, 100% { opacity: 0; transform: scale(1.18); } }
@keyframes trade-buy-flash { 0% { opacity: .95; background: radial-gradient(circle at 50% 55%, rgba(42, 235, 146, .14), transparent 58%); box-shadow: inset 0 0 120px 18px rgba(42, 235, 146, .55), inset 0 0 0 2px rgba(88, 255, 177, .75); } 100% { opacity: 0; background: transparent; box-shadow: inset 0 0 8px rgba(42, 235, 146, 0); } }
@keyframes trade-sell-flash { 0% { opacity: .95; background: radial-gradient(circle at 50% 55%, rgba(255, 68, 93, .15), transparent 58%); box-shadow: inset 0 0 120px 18px rgba(255, 68, 93, .58), inset 0 0 0 2px rgba(255, 111, 130, .78); } 100% { opacity: 0; background: transparent; box-shadow: inset 0 0 8px rgba(255, 68, 93, 0); } }
@keyframes trade-possible-buy-flash { 0% { opacity: .88; background: radial-gradient(circle at 50% 58%, rgba(57,215,255,.12), transparent 60%); box-shadow: inset 0 0 105px 14px rgba(57,215,255,.42), inset 0 0 0 2px rgba(115,232,255,.65); } 100% { opacity: 0; background: transparent; box-shadow: inset 0 0 8px rgba(57,215,255,0); } }
@keyframes trade-possible-sell-flash { 0% { opacity: .88; background: radial-gradient(circle at 50% 58%, rgba(255,159,67,.12), transparent 60%); box-shadow: inset 0 0 105px 14px rgba(255,159,67,.42), inset 0 0 0 2px rgba(255,190,128,.66); } 100% { opacity: 0; background: transparent; box-shadow: inset 0 0 8px rgba(255,159,67,0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 1120px) {
  .copilot { grid-template-columns: 1fr 1fr; }
  .signal-card { grid-column: 1 / -1; }
  .macros { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .market-facts { border-right: 0; }
  .workspace { overflow-y: auto; }
  .robot-overlay { bottom: 224px; }
}

@media (max-width: 720px) {
  body { overflow: auto; }
  .app-shell { height: auto; min-height: 100dvh; grid-template-rows: 54px auto; overflow: visible; }
  .topbar { grid-template-columns: 1fr auto; padding: 0 12px; }
  .connection { display: none; }
  .screen-read-button { width: 36px; justify-content: center; padding: 0; font-size: 0; }
  .screen-read-button span { font-size: 14px; }
  .settings-button span { display: none; }
  .settings-button { width: 36px; justify-content: center; padding: 0; }
  .install-dialog { padding: 24px 18px 20px; }
  .workspace { grid-template-rows: 58vh auto; padding: 7px; gap: 7px; overflow: visible; }
  .terminal-bar code { display: none; }
  .copilot { grid-template-columns: 1fr; }
  .signal-card, .market-facts { border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-card { grid-template-columns: 1fr; }
  .signal-pane-next { margin: 10px 0 0; padding: 11px 10px 3px; border-top: 1px solid var(--line); border-left: 0; }
  .signal-pane-title { margin-left: 0; }
  .extreme-alert { top: 68px; right: 14px; }
  .signal-copy p { white-space: normal; }
  .macro-heading small { display: none; }
  .macro-buttons { grid-template-columns: repeat(2, 1fr); }
  .robot-overlay { right: 12px; bottom: 12px; width: min(340px, calc(100vw - 24px)); grid-template-columns: minmax(0, 1fr) 62px; }
  .robot-avatar { width: 62px; gap: 1px; }
  .robot-controls { width: 62px; gap: 4px; }
  .robot-character { transform: scale(.86); transform-origin: center bottom; }
  .robot-overlay.minimized { width: 62px; grid-template-columns: 62px; }
  .robot-overlay.minimized .robot-avatar { width: 62px; }
}

html.auth-checking body { visibility: hidden; }
.market-intel { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 15px 16px; }
.intel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.intel-head > div:first-child span, .intel-head > div:first-child small { display: block; }
.intel-head > div:first-child span { font-size: 13px; font-weight: 900; }
.intel-head > div:first-child small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.intel-tabs { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #06101f; }
.intel-tabs button { min-height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: #8295ae; cursor: pointer; font-size: 10px; font-weight: 850; }
.intel-tabs button.active { background: #16335b; color: #eef5ff; }
.intel-stage { min-width: 0; overflow: hidden; }
.intel-feed { display: flex; gap: 8px; min-height: 69px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.intel-feed[hidden] { display: none; }
.news-chip { flex: 0 0 min(270px, 80vw); min-width: 0; display: grid; gap: 5px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: inherit; text-decoration: none; scroll-snap-align: start; transition: .16s border-color, .16s background; }
.news-chip:hover { border-color: var(--line-orange); background: rgba(87,151,255,.07); }
.news-chip b { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 11px; line-height: 1.35; }
.news-source { color: #85a9df; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.news-meta { display: flex; justify-content: space-between; gap: 8px; color: #7390b8; font-size: 9px; }
.news-meta em { font-style: normal; }
.impact-stars { color: #78a8ff; letter-spacing: 1px; }
.trend-row { flex: 0 0 230px; display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: inherit; font: inherit; text-align: left; cursor: pointer; scroll-snap-align: start; transition: .16s border-color, .16s background, .16s transform; }
.trend-row:hover, .trend-row:focus-visible { border-color: #5797ff; background: rgba(87,151,255,.09); transform: translateY(-1px); outline: none; }
.trend-rank { color: #5f7695; font-size: 10px; font-weight: 900; }
.trend-row b, .trend-row small { display: block; }
.trend-row b { font-size: 11px; }
.trend-row small { margin-top: 3px; color: #7489a5; font-size: 9px; }
.trend-row strong { color: #a9bad0; font-size: 10px; text-align: right; }
.trend-row.buy strong { color: var(--green); }
.trend-row.sell strong { color: var(--red); }
.intel-loading { align-self: center; color: var(--muted); font-size: 11px; }
.intel-empty { min-width: 260px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.intel-empty b { font-size: 11px; }
.intel-empty span { color: var(--muted); font-size: 9px; }
.intel-empty button { grid-row: 1 / 3; grid-column: 2; min-height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #102744; color: white; cursor: pointer; font-size: 9px; }
@media (max-width: 1120px) { .market-intel { grid-column: 1 / -1; border-top: 1px solid var(--line); } }

/* Mantém as duas análises com o mesmo peso visual quando alternadas. */
.signal-pane-next.active { margin: 0; padding: 3px 10px; border: 0; }
.signal-pane-next.active .signal-pane-body { align-items: center; }
.signal-pane-next.active .signal-icon { flex-basis: 46px; width: 46px; height: 46px; border-radius: 14px; font-size: 22px; }
.signal-pane-next.active .signal-line { align-items: center; flex-direction: row; gap: 10px; }
.signal-card .signal-pane-next.active .signal-line h1 { font-size: 28px; line-height: 1; }
.signal-card .signal-pane-next.active.waiting .signal-line h1,
.signal-card:not(.buy):not(.sell) .signal-pane-current .signal-line h1 { max-width: 380px; font-size: clamp(17px, 2vw, 22px); line-height: 1.08; }
.signal-pane-next.active .signal-line span { padding: 4px 8px; font-size: 10px; }
.signal-pane-next.active .signal-copy > small { font-size: 11px; }
.signal-pane-next.active .analysis-summary { max-width: 480px; margin-top: 7px; overflow: hidden; white-space: nowrap; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; }
@media (max-width: 720px) {
  .signal-pane-next.active { margin: 0; padding: 3px 10px; border: 0; }
  .signal-alert { top: 68px; right: 14px; }
  .extreme-alert { top: 176px; }
}
