/* Signal to Success — design tokens. Layout: side rail + content on desktop, bottom tab bar on phones. */
:root {
  /* Notch / gesture-bar insets, only when installed full screen. A browser tab already keeps its page out of
     those areas, but Samsung Internet still reports them, which left a black strip above the sticky header. */
  --sat: 0px; --sab: 0px; --sal: 0px; --sar: 0px;
  --bg: #06040b; --bg-2: #0b0715; --panel: #110b1f; --panel-2: #181029; --line: #261a40; --line-2: #3a2a5e;
  --fg: #f0ebff; --muted: #a79dc6; --dim: #6f6592;
  --neon: #b14cff; --neon-soft: rgba(177, 76, 255, .14); --blue: #2e8bff; --blue-soft: rgba(46, 139, 255, .14);
  --up: #18d98e; --up-soft: rgba(24, 217, 142, .13); --down: #ff4a68; --down-soft: rgba(255, 74, 104, .13); --warn: #ffb648; --warn-soft: rgba(255, 182, 72, .14);
  --f-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 14px; --r-sm: 10px;
  --glow: 0 0 0 1px rgba(177, 76, 255, .35), 0 8px 30px -10px rgba(177, 76, 255, .45);
  color-scheme: dark;
}
@media (display-mode: standalone), (display-mode: fullscreen) {
  :root { --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px); }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body {
  color: var(--fg); font: 14px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; min-height: 100vh;
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(177, 76, 255, .16), transparent 62%),
    radial-gradient(800px 420px at 100% 0%, rgba(46, 139, 255, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(22px, 3.2vw, 30px); font-weight: 700; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
.num, .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .muted { color: var(--muted); } .dim { color: var(--dim); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--neon-soft); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px;
  padding: 20px 14px; border-right: 1px solid var(--line); background: rgba(9, 6, 17, .7); backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }
.brand b { display: block; font: 700 13px/1.15 var(--f-display); letter-spacing: .08em; }
.brand small { display: block; font-size: 10.5px; color: var(--dim); letter-spacing: .02em; margin-top: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--muted); font-weight: 600; transition: background .15s, color .15s;
}
.nav-link svg { width: 20px; height: 20px; flex: none; }
.nav-link:hover { background: var(--panel); color: var(--fg); text-decoration: none; }
.nav-link[aria-current="page"] { background: linear-gradient(90deg, var(--neon-soft), transparent); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(177, 76, 255, .25); }
.nav-link[aria-current="page"] svg { color: var(--neon); filter: drop-shadow(0 0 6px rgba(177, 76, 255, .7)); }
.rail-foot { margin-top: auto; padding: 12px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: var(--sat); z-index: 20; display: flex; align-items: center; gap: 12px;
  padding-block: 12px; padding-left: max(20px, var(--sal)); padding-right: max(20px, var(--sar));
  background: rgba(6, 4, 11, .78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.topbar .brand { display: none; padding: 0; }
.topbar-title { font: 600 15px var(--f-display); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.content {
  width: 100%; max-width: 1360px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px;
  padding-block: 22px 40px; padding-left: max(20px, var(--sal)); padding-right: max(20px, var(--sar));
  animation: rise .35s ease both;
}
@keyframes rise { from { transform: translateY(6px); opacity: .4; } }
.tabbar { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .topbar { padding-left: max(16px, var(--sal)); padding-right: max(16px, var(--sar)); }
  .topbar .brand { display: flex; }
  .topbar-title { display: none; }
  .content { padding-left: max(16px, var(--sal)); padding-right: max(16px, var(--sar)); padding-block: 16px calc(92px + var(--sab)); gap: 14px; }
  .tabbar {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px max(6px, var(--sar)) calc(6px + var(--sab)) max(6px, var(--sal));
    background: rgba(9, 6, 17, .94); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 10px; color: var(--dim); font-size: 10.5px; font-weight: 700; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--fg); }
  .tabbar a[aria-current="page"] svg { color: var(--neon); filter: drop-shadow(0 0 6px rgba(177, 76, 255, .8)); }
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: var(--sat); z-index: 40; background: var(--bg); }

/* ---------- building blocks ---------- */
.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-h h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g3, .g2 { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-h p { margin: 4px 0 0; color: var(--muted); }

.tile { padding: 14px 16px; }
.tile .lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.tile .val { font: 600 22px/1.25 var(--f-mono); margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--panel-2);
  color: var(--fg); font: 700 13px var(--f-body); padding: 9px 14px; border-radius: var(--r-sm); cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn:hover { background: #21163a; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { border: 0; background: linear-gradient(135deg, var(--neon), #6f3dff 55%, var(--blue)); box-shadow: var(--glow); }
.btn-primary:hover { background: linear-gradient(135deg, #c06bff, #7d50ff 55%, #4b9bff); }
.btn-buy { border: 0; background: var(--up); color: #032015; }
.btn-buy:hover { background: #2ff0a3; }
.btn-sell { border: 0; background: var(--down); color: #fff; }
.btn-sell:hover { background: #ff6a83; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--panel); color: var(--fg); }
.btn-danger { color: var(--down); border-color: rgba(255, 74, 104, .35); background: transparent; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.icon-btn { position: relative; width: 38px; height: 38px; padding: 0; border-radius: 12px; }
.icon-btn svg { width: 19px; height: 19px; }
.badge-dot { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--down); color: #fff; font: 700 10px/16px var(--f-body); }

.seg { display: inline-flex; padding: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; gap: 2px; flex-wrap: wrap; }
.seg button, .seg a { border: 0; background: transparent; color: var(--muted); font: 700 12px var(--f-body); padding: 7px 11px; border-radius: 9px; cursor: pointer; }
.seg button:hover, .seg a:hover { color: var(--fg); text-decoration: none; }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--panel-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }

.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); border-radius: 99px; padding: 5px 11px; font: 700 12px var(--f-body); cursor: pointer; }
.chip[aria-pressed="true"] { color: var(--fg); border-color: var(--neon); background: var(--neon-soft); box-shadow: 0 0 14px -4px rgba(177, 76, 255, .7); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font: 700 11px/1.6 var(--f-body); letter-spacing: .04em; white-space: nowrap; }
.pill-buy, .pill-up { background: var(--up-soft); color: var(--up); }
.pill-sell, .pill-down { background: var(--down-soft); color: var(--down); }
.pill-neutral { background: rgba(167, 157, 198, .12); color: var(--muted); }
.pill-neon { background: var(--neon-soft); color: #d29bff; }
.pill-blue { background: var(--blue-soft); color: #7db5ff; }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.tier-free { background: rgba(167, 157, 198, .12); color: var(--muted); }
.tier-premium { background: var(--blue-soft); color: #7db5ff; }
.tier-vip { background: linear-gradient(90deg, rgba(177, 76, 255, .25), rgba(46, 139, 255, .25)); color: #e4c8ff; }

.src { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim); }
.src i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); animation: pulse 2s infinite; }
.src.demo i { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.src.demo { color: var(--warn); }
@keyframes pulse { 50% { opacity: .35; } }
.demo-banner { border: 1px solid rgba(255, 182, 72, .35); background: var(--warn-soft); color: var(--warn); padding: 10px 14px; border-radius: var(--r-sm); font-size: 13px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.input, select.input, textarea.input {
  width: 100%; background: var(--bg-2); color: var(--fg); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 10px 12px; font: 500 14px var(--f-body); transition: border-color .15s, box-shadow .15s;
}
.input.num { font-family: var(--f-mono); }
.input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-soft); }
textarea.input { resize: vertical; min-height: 80px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.err { color: var(--down); font-size: 13px; min-height: 1em; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.switch:last-child { border-bottom: 0; }
.switch input { width: 40px; height: 22px; appearance: none; background: var(--line-2); border-radius: 99px; position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--neon); }
.switch input:checked::after { transform: translateX(18px); }
.switch select.input.auto { width: auto; flex: none; }
.switch > span { min-width: 0; }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
@media (max-width: 520px) { table.tight { font-size: 12px; } table.tight td, table.tight th { padding-left: 3px; padding-right: 3px; } table.tight .pill { padding: 1px 5px; font-size: 10px; } }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(177, 76, 255, .04); }

/* quotes */
.quote-list { display: flex; flex-direction: column; }
.q-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 6px; border-bottom: 1px solid var(--line); color: var(--fg); border-radius: 8px; }
.q-row:hover { background: rgba(177, 76, 255, .05); text-decoration: none; }
.q-row:last-child { border-bottom: 0; }
.q-row b { font-weight: 700; }
.q-row small { display: block; color: var(--dim); font-size: 11.5px; }
.q-price { font-family: var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; }
.flash-up { animation: fu .8s; } .flash-down { animation: fd .8s; }
@keyframes fu { from { color: var(--up); text-shadow: 0 0 10px var(--up); } }
@keyframes fd { from { color: var(--down); text-shadow: 0 0 10px var(--down); } }

/* signals */
.sig-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.sig { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); animation: rise .35s ease both; min-width: 0; }
.sig.buy { box-shadow: inset 0 1px 0 rgba(24, 217, 142, .25); }
.sig.sell { box-shadow: inset 0 1px 0 rgba(255, 74, 104, .25); }
.sig-top { display: flex; align-items: center; gap: 10px; }
.sig-sym { font: 700 16px var(--f-display); color: var(--fg); }
.sig-sym:hover { text-decoration: none; color: #d6aaff; }
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lvl { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; min-width: 0; }
.lvl small { display: block; font-size: 10px; letter-spacing: .1em; color: var(--dim); font-weight: 700; }
.lvl b { font: 600 13px var(--f-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lvl em { font-style: normal; font-size: 10.5px; color: var(--dim); margin-left: 3px; }
.lvl.sl b { color: var(--down); } .lvl.tp b { color: var(--up); } .lvl.hit { border-color: rgba(24, 217, 142, .5); background: var(--up-soft); }
.lvl.locked b { color: var(--dim); font-family: var(--f-body); font-size: 11px; }
.track { position: relative; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--down-soft), var(--bg-2) 35%, var(--up-soft)); }
.track .mk { position: absolute; top: -4px; width: 3px; height: 14px; border-radius: 2px; background: var(--fg); box-shadow: 0 0 8px var(--neon); transform: translateX(-50%); transition: left .6s; }
.track .en { position: absolute; top: -2px; width: 1px; height: 10px; background: var(--muted); }
.locked-body { display: grid; place-items: center; gap: 8px; text-align: center; padding: 18px 8px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); }
.conf { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 700 11px var(--f-mono); margin-left: auto; flex: none; }
.engine-tag { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; font-size: 11.5px; color: var(--dim); border-left: 2px solid var(--neon); padding: 2px 0 2px 8px; }
.engine-tag b { color: var(--fg); font-size: 12px; }
.lvl b.txt { font: 600 11.5px var(--f-body); color: var(--dim); }
.sig-exit { font-size: 11.5px; margin: 0; }
/* "I'm in": the member's own trade stands out from newer signals */
.sig.mine { border-color: rgba(155, 123, 255, .75); box-shadow: 0 0 0 1px rgba(155, 123, 255, .35), 0 0 18px rgba(155, 123, 255, .18); }
.pill-in { background: rgba(155, 123, 255, .18); color: #cdb8ff; border: 1px solid rgba(155, 123, 255, .5); text-decoration: none; white-space: nowrap; }
.btn-in { border-color: rgba(155, 123, 255, .6); color: #cdb8ff; }
.rule-state { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.engine-rules { display: grid; gap: 8px; }
.rule-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.rule-row small { color: var(--dim); }
.rule-main { display: grid; gap: 8px; min-width: 0; color: inherit; text-decoration: none; cursor: pointer; }
.rule-main:hover .rule-go, .rule-main:focus-visible .rule-go { background: var(--accent, #9b7bff); color: #fff; }
.rule-go { display: inline-block; vertical-align: middle; font-size: 13px; font-weight: 700; color: var(--accent, #9b7bff); white-space: nowrap;
  padding: 7px 14px; border: 1px solid var(--accent, #9b7bff); border-radius: 999px; line-height: 1; }
.forming { display: grid; gap: 4px; margin-top: 2px; }
.forming.near small:first-child { color: var(--fg); font-weight: 600; }
.fbar { height: 6px; border-radius: 999px; background: var(--bg-3, rgba(255,255,255,.08)); overflow: hidden; }
.fbar span { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }
.fbar.up span { background: var(--up, #18d98e); }
.fbar.down span { background: var(--down, #ff4a68); }
.example-tag { font-size: 10.5px; color: var(--warn); border: 1px solid rgba(255, 182, 72, .4); border-radius: 6px; padding: 1px 6px; font-weight: 700; }

/* chart */
.chart-box { position: relative; height: 580px; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.chart-head { flex: none; display: flex; align-items: flex-start; gap: 8px; padding: 7px 8px 6px 10px; border-bottom: 1px solid var(--line); background: rgba(17, 11, 31, .6); }
.chart-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font: 500 11.5px var(--f-mono); font-variant-numeric: tabular-nums; color: var(--fg); pointer-events: none; min-height: 32px; justify-content: center; }
.chart-legend div { display: flex; gap: 10px; white-space: nowrap; overflow: hidden; }
.chart-legend i { font-style: normal; color: var(--dim); }
.chart-legend b { font-weight: 600; }
.chart-legend .sw { display: inline-block; width: 8px; height: 3px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.chart-zoom { flex: none; display: flex; gap: 4px; }
.chart-zoom button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg); cursor: pointer; font-weight: 700; font-size: 15px; line-height: 1; }
.chart-zoom button:active { background: var(--neon-soft); border-color: var(--neon); }
.chart-stage { position: relative; flex: 1; min-height: 0; touch-action: pan-y; }
.chart-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
@media (max-width: 640px) { .chart-box { height: 520px; } .chart-legend { font-size: 10.5px; } .chart-legend div { gap: 8px; } .chart-zoom button { width: 32px; height: 32px; } }
@media (max-width: 520px) { .chart-legend .o { display: none; } }
@media (pointer: coarse) { .chart-zoom button:not([data-z="0"]) { display: none; } }
.meter { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--down), #4a3a6e 50%, var(--up)); position: relative; }
.meter i { position: absolute; top: -5px; width: 4px; height: 18px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px #fff; transform: translateX(-50%); }
.factor { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: start; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.factor:last-child { border-bottom: 0; }

/* calendar */
.cal-day { font: 700 11px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 14px 0 6px; }
.cal-ev { display: grid; grid-template-columns: 62px 50px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.cal-ev.past { opacity: .5; }
.imp { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.imp-High { background: var(--down); box-shadow: 0 0 8px var(--down); } .imp-Medium { background: var(--warn); } .imp-Low { background: #f4d35e55; } .imp-Holiday { background: var(--dim); }
@media (max-width: 560px) { .cal-ev { grid-template-columns: 52px minmax(0, 1fr) auto; } .cal-ev .cal-cc { display: none; } }
.countdown { font: 600 13px var(--f-mono); color: var(--neon); }
.next-event { display: flex; gap: 14px; align-items: center; }
.next-event .big { font: 700 26px var(--f-mono); letter-spacing: .02em; background: linear-gradient(90deg, #d8a6ff, #7db5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* news */

/* modal + toast */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(3, 2, 7, .7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(640px, 100%); max-height: calc(100vh - 32px - var(--sat) - var(--sab)); overflow-y: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 20px; box-shadow: 0 30px 80px -20px rgba(177, 76, 255, .4); animation: rise .25s ease both; }
.modal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.toasts { position: fixed; z-index: 70; right: max(16px, var(--sar)); top: calc(70px + var(--sat)); display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast { padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: 0 12px 40px -12px #000; animation: slide .3s ease both; font-size: 13px; }
.toast b { display: block; margin-bottom: 2px; }
.toast.ok { border-color: rgba(24, 217, 142, .5); } .toast.bad { border-color: rgba(255, 74, 104, .5); } .toast.signal { border-color: rgba(177, 76, 255, .6); box-shadow: var(--glow); }
@keyframes slide { from { transform: translateX(16px); opacity: 0; } }
.drawer { position: fixed; z-index: 55; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); background: var(--panel); border-left: 1px solid var(--line-2); padding: calc(16px + var(--sat)) max(16px, var(--sar)) 16px 16px; overflow-y: auto; animation: slide .25s ease both; box-shadow: -30px 0 80px -20px #000; }
.notif { padding: 12px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; background: var(--panel-2); }
.notif.unread { border-color: rgba(177, 76, 255, .5); }
.notif small { color: var(--dim); }

/* auth / landing */
.landing { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.landing-hero { padding: 48px max(32px, var(--sal)); display: flex; flex-direction: column; gap: 28px; justify-content: center; position: relative; overflow: hidden; }
.landing-hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -.03em; }
.landing-hero h1 span { background: linear-gradient(90deg, #d39cff, var(--neon) 40%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-hero p { font-size: 17px; color: var(--muted); max-width: 52ch; margin: 0; }
.wave { position: absolute; inset: auto -10% -20px -10%; height: 220px; opacity: .55; pointer-events: none; }
.feat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; max-width: 560px; }
.feat-list div { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13.5px; }
.feat-list svg { flex: none; color: var(--neon); margin-top: 2px; }
.landing-form { display: grid; place-items: center; padding: 32px max(24px, var(--sar)) 32px 24px; background: rgba(9, 6, 17, .6); border-left: 1px solid var(--line); }
.auth-card { width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) {
  .landing { grid-template-columns: minmax(0, 1fr); }
  .landing-hero { padding: 32px max(16px, var(--sal)) 12px; padding-right: max(16px, var(--sar)); }
  .landing-form { border-left: 0; padding: 12px max(16px, var(--sar)) 40px max(16px, var(--sal)); background: transparent; }
  .feat-list { grid-template-columns: minmax(0, 1fr); }
}
.plans { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 12px; }
.plan.current { box-shadow: var(--glow); border-color: rgba(177, 76, 255, .6); }
.plan .price { font: 700 28px var(--f-display); }
.plan .price small { font: 500 13px var(--f-body); color: var(--dim); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); }
.plan li::before { content: "✓"; color: var(--up); margin-right: 8px; font-weight: 700; }

.upsell { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border-radius: var(--r); border: 1px solid rgba(177, 76, 255, .4); background: linear-gradient(135deg, rgba(177, 76, 255, .12), rgba(46, 139, 255, .08)); }
.empty { padding: 26px 12px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 12px; }
.skeleton { background: linear-gradient(90deg, var(--panel), var(--panel-2), var(--panel)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; min-height: 60px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.shots { display: flex; gap: 8px; flex-wrap: wrap; }
.shot { position: relative; width: 96px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.shot button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 6px; border: 0; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; }
.spark { width: 100%; height: 120px; display: block; }
.bar-list { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.bar-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.bar-top .bar-k { font-weight: 700; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-top .dim { font-size: 11.5px; white-space: nowrap; }
.bar-top .num { margin-left: auto; white-space: nowrap; }
.bar-row .bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; border-radius: 99px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--dim); } .kv dd { margin: 0; text-align: right; font-family: var(--f-mono); }
.disclaimer { font-size: 11.5px; color: var(--dim); text-align: center; padding: 8px 0 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
[data-mt] { margin-top: 12px; }
.conf .conf { width: 32px; height: 32px; margin: 0; font-size: 11px; }
details summary { cursor: pointer; font-weight: 700; }

/* profile & settings */
.avatar { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; font: 800 18px var(--f-body); color: #fff; background: linear-gradient(135deg, var(--neon), #2e8bff); box-shadow: 0 0 24px rgba(177, 76, 255, .35); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; cursor: pointer; background: var(--bg-2); }
.chip-check:has(input:checked) { border-color: rgba(177, 76, 255, .6); background: var(--neon-soft); }
.chip-check input { accent-color: var(--neon); }
.danger-zone { border-color: rgba(255, 77, 109, .35); }
.kv.activity dt small { color: var(--dim); font-family: var(--f-mono); }
.kv.activity dd { font-size: 12px; color: var(--dim); }
.notif .kind { font: 700 10px var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.notif-filter { margin-bottom: 4px; }
.toast.warn { border-color: rgba(255, 184, 77, .55); }
.warn { color: var(--warn); }
.notif .kind.pill-neon, .notif .kind.pill-blue { background: none; }
.notif .kind.pill-neon { color: #d29bff; } .notif .kind.pill-blue { color: #7db5ff; }

/* strategies & backtests */
[data-mb] { margin-bottom: 12px; }
.link { background: none; border: 0; padding: 0; color: var(--blue, #5aa2ff); font: inherit; cursor: pointer; text-decoration: underline; }
.notice { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); font-size: 13px; }
.scan-filters { flex-wrap: wrap; gap: 10px 16px; }
.tile .val small { font-size: 12px; color: var(--dim); margin-left: 2px; }
.gold-live { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); }
.gold-live.is-open { border-color: rgba(177, 76, 255, .55); box-shadow: 0 0 22px -10px rgba(177, 76, 255, .8); }
.gold-live.is-down { border-color: var(--down); }
.gold-live .lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.gold-live .val { font: 600 26px/1.25 var(--f-mono); margin-top: 4px; font-variant-numeric: tabular-nums; }
.gold-live .val small { font-size: 14px; color: var(--muted); }
.gold-live .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.gold-live .kv { min-width: 220px; }

/* Projected signal: what the rule is waiting for */
.wait { margin-top: 14px; border-top: 1px solid var(--line, rgba(255,255,255,.08)); padding-top: 12px; }
.wait h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 10px 0 6px; }
.wait ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wait li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.wait li i { font-style: normal; width: 16px; flex: none; text-align: center; color: var(--dim); }
.wait li.ok { color: var(--fg); }
.wait li.ok i { color: var(--up); }
.wait li small { display: block; color: var(--dim); font-size: 12px; margin-top: 1px; }

/* equity sparkline overlay */
.spark-wrap { position: relative; }
.spark-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--neon), 0 0 10px rgba(177, 76, 255, .8); pointer-events: none; }
.spark-dot.sm { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--neon); box-shadow: none; }
.spark-wrap .spark-dot:last-child { margin-left: -10px; } /* keep the end dot inside the card */
.spark-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin-top: 4px; }

/* journal */
.panel-tight { padding-block: 6px; }
.jr-stats { display: flex; flex-direction: column; gap: 14px; }
.jr-hero { background: radial-gradient(420px 180px at 0% 0%, rgba(177, 76, 255, .16), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.jr-hero .lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.jr-hero .sub { font-size: 12.5px; color: var(--muted); }
.jr-hero-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.jr-total { font: 700 32px/1.15 var(--f-mono); margin: 4px 0 2px; letter-spacing: -.02em; }
.jr-range { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; gap: 2px; padding-top: 2px; }
.jr-hero .spark { height: 110px; }
.minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.mini { background: rgba(6, 4, 11, .45); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini > span { font-size: 11px; color: var(--dim); font-weight: 600; }
.mini b { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.mini b span { white-space: nowrap; }
.seg-n { font-family: var(--f-mono); font-size: 10.5px; color: var(--dim); margin-left: 3px; }
.seg [aria-pressed="true"] .seg-n { color: #d29bff; }
.jt-list { display: flex; flex-direction: column; gap: 8px; }
.jt { display: flex; flex-direction: column; gap: 6px; padding: 12px 13px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 4, 11, .4); cursor: pointer; transition: border-color .15s, background .15s; }
.jt:hover, .jt:focus-visible { border-color: var(--line-2); background: rgba(177, 76, 255, .05); }
.jt:active { background: rgba(177, 76, 255, .09); }
.jt-open { border-left: 3px solid var(--blue); }
.jt-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.jt-top b { font: 700 14.5px var(--f-display); }
.jt-size { font-size: 12px; white-space: nowrap; }
.jt-pnl { margin-left: auto; font-size: 15px; font-weight: 700; white-space: nowrap; }
.jt-mid { display: flex; align-items: center; gap: 7px; font-size: 12.5px; flex-wrap: wrap; }
.jt-r { margin-left: auto; font-size: 12px; font-weight: 700; }
.jt-bot { display: flex; align-items: center; gap: 8px; font-size: 11.5px; min-height: 26px; }
.jt-bot > .dim { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-float { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 10px; border-radius: 10px; background: var(--blue-soft); font-size: 12.5px; }
.jt-more { width: 100%; margin-top: 10px; }
tr.click { cursor: pointer; }
@media (max-width: 720px) {
  .jr-head .jr-actions { width: 100%; flex-wrap: nowrap; }
  .jr-head .jr-actions .btn { flex: 1; }
  .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jr-total { font-size: 28px; }
  .tile .val { font-size: 20px; }
  #brk button { padding: 7px 9px; }
}
.jr-range i { font: 600 10px var(--f-body); font-style: normal; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.jr-range b { font-weight: 600; }
.bar-top .muted { flex: 1; min-width: 0; font-size: 12.5px; }

/* risk per trade */
.risk-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.risk-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); cursor: pointer; font: 600 12px var(--f-body); }
.risk-opt b { font-size: 12px; color: var(--fg); font-weight: 700; }
.risk-opt .num { font-size: 13px; }
.risk-opt[aria-pressed="true"] { border-color: var(--neon); background: var(--neon-soft); color: #d29bff; box-shadow: 0 0 0 1px rgba(177, 76, 255, .35); }
.risk-note { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 420px) { .risk-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.your-size { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; padding: 8px 11px; border-radius: 10px; background: rgba(6, 4, 11, .45); border: 1px dashed var(--line-2); font-size: 12.5px; color: var(--fg); }
.your-size:hover { text-decoration: none; border-color: var(--neon); }
.your-size b { font-weight: 700; }
.warn-t { color: var(--warn); }

/* signal card, beginner layout */
.sig-act { flex: none; display: inline-grid; place-items: center; min-width: 58px; height: 34px; padding: 0 10px; border-radius: 10px; font: 800 14px var(--f-display); letter-spacing: .06em; }
.sig-act.buy { background: var(--up); color: #032015; }
.sig-act.sell { background: var(--down); color: #fff; }
.sig-act.neutral { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line-2); font-size: 11px; }
.sig-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sig-title .sig-sym { font-size: 17px; }
.sig-title .dim { font-size: 12px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sig-st { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.sig-lead { margin: 0; font-size: 14.5px; line-height: 1.5; }
.sig-lead b { font-weight: 700; }
.sig-now { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.sig-now.up { background: var(--up-soft); border-color: rgba(24, 217, 142, .35); }
.sig-now.down { background: var(--down-soft); border-color: rgba(255, 74, 104, .35); }
.sig-now small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.sig-now b { font-size: 16px; font-weight: 700; color: var(--fg); }
.sig-now .r { text-align: right; }
.sig-now.up .r b { color: var(--up); } .sig-now.down .r b { color: var(--down); }
.sig-now .r b span { font-size: 12.5px; font-weight: 600; }
.sig-now em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.ladder { padding: 18px 6px 0; }
.ladder-bar { position: relative; height: 8px; border-radius: 99px; background: var(--bg-2); }
.ladder-bar i { position: absolute; top: 0; height: 100%; }
.lz-risk { left: 0; border-radius: 99px 0 0 99px; background: linear-gradient(90deg, rgba(255, 74, 104, .65), rgba(255, 74, 104, .25)); }
.lz-gain { border-radius: 0 99px 99px 0; background: linear-gradient(90deg, rgba(24, 217, 142, .2), rgba(24, 217, 142, .6)); }
.lt { position: absolute; top: -3px; width: 2px; height: 14px; margin-left: -1px; background: var(--muted); border-radius: 1px; }
.lt.sl { background: var(--down); } .lt.tp { background: var(--up); } .lt.en { background: var(--fg); width: 3px; }
.lt.tp.hit { box-shadow: 0 0 6px var(--up); }
.lnow { position: absolute; top: -6px; width: 14px; height: 20px; margin-left: -7px; border-radius: 6px; background: #fff; box-shadow: 0 0 10px var(--neon); transition: left .6s; }
.lnow em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 2px; font: 700 10px var(--f-body); font-style: normal; color: var(--fg); white-space: nowrap; }
.ladder-lbl { position: relative; height: 16px; margin-top: 7px; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.ladder-lbl span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ladder-lbl span:first-child { transform: none; } .ladder-lbl span:last-child { transform: translateX(-100%); }
.ladder-lbl .sl { color: var(--down); } .ladder-lbl .tp { color: var(--up); } .ladder-lbl .en { color: var(--fg); }
.sig-plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.plan-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); background: rgba(6, 4, 11, .35); }
.plan-row:first-child { border-top: 0; }
.plan-i { font-size: 13px; text-align: center; color: var(--muted); }
.plan-k { display: flex; flex-direction: column; min-width: 0; }
.plan-k b { font-size: 13px; }
.plan-k small { font-size: 11.5px; color: var(--dim); }
.plan-v { font-size: 14px; font-weight: 700; }
.plan-m { font-size: 12.5px; font-weight: 600; min-width: 64px; text-align: right; }
.plan-row.sl .plan-i, .plan-row.sl .plan-v { color: var(--down); }
.plan-row.tp .plan-i, .plan-row.tp .plan-v { color: var(--up); }
.plan-row.done { background: var(--up-soft); }
.plan-row.done .plan-i { font-weight: 800; }
.plan-row.locked { opacity: .65; }
.plan-foot { margin: -4px 0 0; font-size: 12px; line-height: 1.5; }
.sig-why { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; padding-left: 10px; border-left: 3px solid var(--neon); }
.sig-why b { color: var(--fg); }
.sig-help summary { font-size: 12.5px; font-weight: 700; color: #b9a6ff; list-style: none; }
.sig-help summary::-webkit-details-marker { display: none; }
.sig-help summary::before { content: "? "; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 50%; background: var(--neon-soft); font-size: 11px; }
.sig-help dl { display: grid; grid-template-columns: minmax(80px, auto) 1fr; gap: 6px 12px; margin: 10px 0 0; font-size: 12px; }
.sig-help dt { font-weight: 700; } .sig-help dd { margin: 0; color: var(--muted); }
@media (max-width: 380px) { .plan-m { min-width: 0; } .plan-row { gap: 7px; padding: 9px 9px; } }

/* swing / scalp */
.style-tag { display: inline-flex; align-items: center; padding: 0 6px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; }
.style-tag.swing { background: var(--blue-soft); color: #7db5ff; }
.style-tag.scalp { background: var(--warn-soft); color: var(--warn); }
.style-opts { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

/* trade status banner on signal cards */
.sig-ban { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: -16px -16px 0; padding: 10px 16px; border-radius: var(--r) var(--r) 0 0; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.sig-ban b { font: 800 12.5px var(--f-display); letter-spacing: .06em; }
.sig-ban span { color: var(--muted); }
.sig-ban.in { background: linear-gradient(90deg, rgba(155, 123, 255, .35), rgba(155, 123, 255, .12)); border-bottom-color: rgba(155, 123, 255, .6); }
.sig-ban.in b { color: #e3d8ff; } .sig-ban.in span { color: #cdb8ff; }
.sig-ban.new { background: linear-gradient(90deg, rgba(24, 217, 142, .28), rgba(24, 217, 142, .08)); border-bottom-color: rgba(24, 217, 142, .5); }
.sig-ban.new b { color: var(--up); }
.sig-ban.open { background: var(--bg-2); } .sig-ban.open b { color: var(--fg); }
.sig-ban.late { background: rgba(167, 157, 198, .08); } .sig-ban.late b { color: var(--dim); }
.sig-ban.done { background: var(--bg-2); }
.ban-mt5 { flex-basis: 100%; color: #7db5ff !important; font-weight: 700; }
.sig.fresh { border-color: rgba(24, 217, 142, .55); box-shadow: 0 0 0 1px rgba(24, 217, 142, .25), 0 0 18px rgba(24, 217, 142, .15); }

/* journal trade detail */
.td { gap: 12px; }
.td-sig { font-size: 12.5px; font-weight: 700; color: #b9a6ff; padding: 8px 11px; border-radius: 10px; background: var(--neon-soft); }
.td-sig:hover { text-decoration: none; background: rgba(177, 76, 255, .22); }
.td-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.td-facts > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; min-width: 0; }
.td-facts dt { font-size: 11px; color: var(--dim); font-weight: 700; }
.td-facts dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.td-facts dd small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.td-notes { margin: 0; padding: 9px 12px; border-left: 3px solid var(--line-2); background: var(--bg-2); border-radius: 0 10px 10px 0; color: var(--muted); font-size: 13px; white-space: pre-wrap; }
.td-shots-h { display: flex; justify-content: space-between; align-items: baseline; }
.shot-add { display: grid; place-items: center; align-content: center; gap: 0; cursor: pointer; border-style: dashed; color: var(--muted); }
.shot-add span { font-size: 22px; line-height: 1; } .shot-add small { font-size: 11px; font-weight: 700; }
.shot-add:hover { border-color: var(--neon); color: var(--fg); }
.td-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; margin-top: 4px; }
.td-actions .btn { padding: 12px 14px; font-size: 14px; }
.td-actions .btn:only-child { grid-column: 1 / -1; }
.td-del { align-self: center; color: var(--down); font-size: 12.5px; }
.td-del:hover { color: var(--down); background: var(--down-soft); }

/* swing / scalp switch on the Signals page */
.style-switch { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r); border: 1px solid rgba(177, 76, 255, .45); background: radial-gradient(420px 160px at 0% 0%, rgba(177, 76, 255, .18), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: 0 8px 30px -14px rgba(177, 76, 255, .5); }
.ss-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ss-h b { font: 700 15px var(--f-display); }
.ss-h .dim { font-size: 12px; }
.ss-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ss-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--bg-2); color: var(--muted); cursor: pointer; text-align: center; transition: transform .1s; font-family: var(--f-body); }
.ss-opt:active { transform: scale(.97); }
.ss-i { font-size: 24px; line-height: 1.1; filter: grayscale(.6); opacity: .8; }
.ss-opt b { font: 800 15px var(--f-display); color: var(--fg); }
.ss-opt small { font-size: 11px; line-height: 1.3; }
.ss-n { margin-top: 4px; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: rgba(167, 157, 198, .12); color: var(--dim); }
.ss-n.on { background: var(--up-soft); color: var(--up); }
.ss-opt[aria-pressed="true"] .ss-i { filter: none; opacity: 1; }
.ss-opt.swing[aria-pressed="true"] { border-color: #2e8bff; background: rgba(46, 139, 255, .16); box-shadow: 0 0 0 3px rgba(46, 139, 255, .18); }
.ss-opt.scalp[aria-pressed="true"] { border-color: var(--warn); background: rgba(255, 182, 72, .14); box-shadow: 0 0 0 3px rgba(255, 182, 72, .16); }
.ss-opt.all[aria-pressed="true"] { border-color: var(--neon); background: var(--neon-soft); box-shadow: 0 0 0 3px rgba(177, 76, 255, .18); }
.ss-opt[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 6px; right: 8px; font-size: 12px; font-weight: 800; color: var(--fg); }
.ss-note { margin: 0; font-size: 12.5px; color: var(--muted); }

/* launch animation (markup in index.html, removed by app.js hideSplash) */
.splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--bg); overflow: hidden;
  transition: opacity .45s ease; will-change: opacity;
  animation: sp-safety .5s ease 8s forwards; /* if the app never loads, don't keep covering the screen */ }
.splash.out { opacity: 0; pointer-events: none; }
.splash.out .sp-mark { transform: translate(-50%, -50%) scale(1.08); transition: transform .45s ease; }
@keyframes sp-safety { to { opacity: 0; visibility: hidden; } }
.sp-glow { position: absolute; top: 50%; left: 50%; margin: -260px 0 0 -260px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(177, 76, 255, .35), rgba(46, 139, 255, .12) 45%, transparent 70%); animation: sp-glow 1.6s ease-out both; }
@keyframes sp-glow { 0% { transform: scale(.2); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1); opacity: .8; } }
.sp-mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } /* same spot and size as the launcher's Signal screen */
@keyframes sp-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sp-mark svg { display: block; overflow: visible; filter: drop-shadow(0 0 0 rgba(177, 76, 255, 0)); animation: sp-shine 1.2s ease .15s both; }
@keyframes sp-shine { 0% { filter: drop-shadow(0 0 0 rgba(177, 76, 255, 0)); } 40% { filter: drop-shadow(0 0 22px rgba(177, 76, 255, .9)); } 100% { filter: drop-shadow(0 0 12px rgba(177, 76, 255, .45)); } }
.sp-line { stroke-dasharray: 100; stroke-dashoffset: 0; }
@keyframes sp-draw { to { stroke-dashoffset: 0; } }
.sp-dot { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sp-dot .5s ease .35s forwards; }
@keyframes sp-dot { 0% { opacity: 0; transform: scale(0); } 60% { opacity: 1; transform: scale(1.8); } 100% { opacity: 1; transform: scale(1); } }
.sp-name { position: relative; font: 800 20px var(--f-display); color: var(--fg); letter-spacing: .5em; margin-right: -.5em; white-space: nowrap; animation: sp-name .8s cubic-bezier(.2, .8, .2, 1) .25s both; }
@keyframes sp-name { from { opacity: 0; letter-spacing: 1.1em; filter: blur(8px); } to { opacity: 1; letter-spacing: .18em; filter: blur(0); } }
.sp-tag { position: relative; font-size: 13px; color: var(--muted); letter-spacing: .04em; animation: sp-up .6s ease .6s both; }
@keyframes sp-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sp-bar { position: relative; width: 168px; height: 4px; margin-top: 10px; border-radius: 99px; background: rgba(167, 157, 198, .15); overflow: hidden; animation: sp-up .4s ease .6s both; }
/* a real loading bar: fills while the app loads, waits at 90% if it's slow, and runs to 100% when the first page is ready (.done) */
.sp-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--neon), var(--blue)); box-shadow: 0 0 10px rgba(177, 76, 255, .7);
  transform-origin: left; transform: scaleX(0); animation: sp-fill 1.8s cubic-bezier(.3, .55, .35, 1) .6s forwards; }
@keyframes sp-fill { to { transform: scaleX(.9); } }
.splash.done .sp-bar i { animation: sp-finish .3s ease-out forwards; }
@keyframes sp-finish { from { transform: scaleX(.9); } to { transform: scaleX(1); } }
.sp-text { position: absolute; left: 0; right: 0; top: calc(50% + 74px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
@media (max-width: 380px) { .sp-name { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) {
  .splash .sp-line { stroke-dashoffset: 0; }
  .splash .sp-dot, .splash .sp-name, .splash .sp-tag, .splash .sp-bar { opacity: 1; }
}

/* ---------- Market news ---------- */
.nw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.nw-h { font: 700 20px/1.2 var(--f-display); color: var(--fg); margin: 0 0 4px; letter-spacing: 0; text-transform: none; }
.nw-refresh { flex: none; }
.nw-filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -2px 4px; scrollbar-width: none; }
.nw-filters::-webkit-scrollbar { display: none; }
.nw-filters .chip { flex: none; padding: 7px 12px; font-size: 13px; }
.nw-count { font: 700 11px var(--f-mono); color: var(--dim); background: var(--bg-2); border-radius: 99px; padding: 1px 7px; }
.nw-filters .chip[aria-pressed="true"] .nw-count { color: var(--fg); background: rgba(177, 76, 255, .3); }
.nw-lead { position: relative; border-radius: var(--r); padding: 16px; margin-bottom: 14px; overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 182, 72, .16), rgba(177, 76, 255, .12) 60%, transparent), var(--bg-2);
  border: 1px solid rgba(255, 182, 72, .45); box-shadow: 0 10px 30px -18px rgba(255, 182, 72, .6); }
.nw-lead-k { font: 800 11px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--warn); margin-bottom: 8px; }
.nw-lead-t { display: block; font: 700 19px/1.3 var(--f-display); color: var(--fg); }
.nw-lead-t:hover { text-decoration: underline; }
.nw-lead-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12px; }
.nw-lead-f .nw-tags { margin: 0; }
.nw-tip { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 182, 72, .22); font-size: 12.5px; color: var(--muted); }
.nw-grp { font: 700 11px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 16px 2px 8px; display: flex; align-items: center; gap: 10px; }
.nw-grp::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.nw-card { position: relative; padding: 13px 14px; margin-bottom: 10px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--line-2); transition: border-color .15s, background .15s; }
.nw-card:hover { border-color: var(--line-2); background: rgba(177, 76, 255, .05); }
.nw-card.is-hot { border-left-color: var(--warn); }
.nw-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--dim); margin-bottom: 6px; }
.nw-src { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font: 800 9.5px var(--f-mono); color: #fff; background: var(--line-2); }
.nw-src-fx { background: linear-gradient(135deg, #2e8bff, #1a5fd0); }
.nw-src-mw { background: linear-gradient(135deg, #18d98e, #0f9a63); color: #04130c; }
.nw-dot { opacity: .6; }
.nw-hot { margin-left: auto; font-weight: 800; font-size: 11px; color: var(--warn); background: var(--warn-soft); border-radius: 99px; padding: 2px 8px; }
.nw-title { display: block; font: 700 15.5px/1.38 var(--f-display); color: var(--fg); }
.nw-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.nw-title:hover { text-decoration: none; color: #fff; }
.nw-sum { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-lead .nw-sum { -webkit-line-clamp: 3; color: #d6cdf0; }
.nw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nw-tag { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; font: 700 11.5px var(--f-body); color: var(--fg); background: var(--neon-soft); border: 1px solid rgba(177, 76, 255, .35); border-radius: 99px; padding: 3px 9px; }
.nw-tag span { color: var(--neon); font-size: 10px; }
.nw-tag:hover { text-decoration: none; border-color: var(--neon); }
.nw-more { display: block; width: 100%; margin-top: 6px; padding: 11px; border-radius: 12px; border: 1px dashed var(--line-2); background: transparent; color: var(--muted); font: 600 13px var(--f-body); cursor: pointer; }
.nw-more:hover { color: var(--fg); border-color: var(--neon); }
.nw-yours { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; margin: 0 0 4px; }
.nw-yours .nw-tag { margin: 0; }
.nw-tag.is-yours { background: rgba(255, 182, 72, .14); border-color: rgba(255, 182, 72, .5); }
.nw-tag.is-yours span { color: var(--warn); }
.nw-grp-top { color: var(--muted); }
.nw-card.is-yours { border-color: rgba(255, 182, 72, .35); border-left-color: var(--warn); background: linear-gradient(135deg, rgba(255, 182, 72, .07), transparent 55%), var(--bg-2); }
.nw-why { font: 800 11px var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--warn); margin-bottom: 6px; }
.nw-showmore { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; margin-top: 6px; padding: 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(177, 76, 255, .5); background: var(--neon-soft); color: var(--fg); font: 700 14px var(--f-body); box-shadow: 0 8px 24px -14px rgba(177, 76, 255, .8); }
.nw-showmore span { font: 600 11.5px var(--f-body); color: var(--muted); }
.nw-showmore:hover { border-color: var(--neon); }
