/* Signal console v3 (2026-12-03): v2's serious terminal language, made epic by scale and sequencing.
 * Tokens = binoria-video-kit BRAND.md (dark). Purple is the only accent; green/red only for up/Buy and down/Sell.
 * Radius system: panels 16, buttons 14, chips 8. Onest (tabular figures) + Noto Sans Armenian. No glow/flash/shake. */
@font-face { font-family: "Onest"; src: url("fonts/onest-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Onest"; src: url("fonts/onest-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: block; }
@font-face { font-family: "Onest"; src: url("fonts/onest-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: block; }
@font-face { font-family: "Onest"; src: url("fonts/onest-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: block; }

:root {
  --bg: #0e0f15; --p1: #14151d; --p2: #1a1c25; --p3: #242733;
  --text: #edeef4; --text2: #adb0bf; --muted: #878a9b;
  --accent: #7b61f2; --accent-btn: #6e54ee;
  --up: #34b77e; --down: #ef5c61;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 540px; height: 960px; overflow: hidden; background: var(--bg); }
body { font-family: "Onest", "Noto Sans Armenian", sans-serif; color: var(--text); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
#app { width: 540px; height: 960px; padding: 22px 20px 20px; display: grid; grid-template-rows: 40px 604px 172px 58px; gap: 10px; }

.top { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; }
.logo { width: 40px; height: 40px; border-radius: 10px; display: block; border: 1px solid var(--p3); }
.brand .name { font-weight: 700; font-size: 17px; }
.brand .sub { font-size: 11px; color: var(--muted); }
.feed { font-size: 11px; color: var(--text2); border: 1px solid var(--p3); border-radius: 8px; padding: 5px 9px; }

.panel { background: var(--p1); border: 1px solid var(--p3); border-radius: 16px; }
.stage { position: relative; overflow: hidden; }
#chart { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.45s var(--ease); }
#app.chart-on #chart { opacity: 1; }

/* the market scan table */
.scan { position: absolute; inset: 0; padding: 18px 18px 14px; transition: opacity 0.4s var(--ease); }
#app.chart-on .scan { opacity: 0; }
.scan-title { font-size: 14px; font-weight: 600; color: var(--text2); height: 26px; }
.scan-head, .row { display: grid; grid-template-columns: 1.25fr 1.1fr repeat(4, 0.78fr); align-items: center; column-gap: 6px; }
.scan-head { font-size: 11px; color: var(--muted); padding: 0 10px 8px; border-bottom: 1px solid var(--p3); }
.scan-head span { transition: color 0.3s; }
.scan-head span.pick { color: var(--accent); font-weight: 700; }
.r { text-align: right; }
.row { height: 38px; padding: 0 10px; border-bottom: 1px solid rgba(36, 39, 51, 0.6); border-radius: 8px; font-size: 14px; transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.row .p { font-weight: 600; }
.row .pr { color: var(--text2); }
.row .c { color: var(--muted); font-weight: 500; }
.row .c.u { color: var(--up); } .row .c.d { color: var(--down); }
.row .c.pick { font-weight: 700; }
.row.live { background: rgba(123, 97, 242, 0.06); }
.row.win { background: var(--p2); box-shadow: inset 3px 0 0 var(--accent); }
.scan.done .row:not(.win) { opacity: 0.45; transition: opacity 0.4s; }

/* lower area: info + counter, then the verdict in the same box */
.lower { position: relative; }
.info { position: absolute; inset: 0; display: grid; grid-template-rows: 26px 40px 46px 8px 20px; row-gap: 8px; padding: 2px 2px 0; }
.quote { display: flex; align-items: baseline; gap: 12px; }
.pair { font-size: 19px; font-weight: 600; }
.price { font-size: 19px; color: var(--text2); }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--p3); border-bottom: 1px solid var(--p3); padding: 6px 0; }
.meta div { display: grid; gap: 1px; padding: 0 10px; border-left: 1px solid var(--p3); }
.meta div:first-child { border-left: 0; padding-left: 0; }
.meta span { font-size: 10px; color: var(--muted); }
.meta b { font-size: 13px; font-weight: 500; white-space: nowrap; }
.counter { display: flex; align-items: baseline; gap: 10px; }
.counter b { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -0.5px; }
.counter i { font-style: normal; font-size: 14px; color: var(--muted); }
.split { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; }
.seg { width: 50%; height: 100%; opacity: 0.18; transition: opacity 0.5s var(--ease); }
.seg.up { background: var(--up); } .seg.down { background: var(--down); }
#app.running .seg, #app.settled .seg { opacity: 1; }
.shares { display: flex; justify-content: space-between; font-size: 14px; color: var(--text2); }
.shares b { font-weight: 700; margin-left: 6px; }
.s-up b { color: var(--up); } .s-down b { color: var(--down); }
.lose { opacity: 0.35 !important; transition: opacity 0.5s var(--ease); }

/* the verdict: a card landing on the chart (v1's idea, cleaner: no glow, no blur) */
.card { position: absolute; left: 34px; right: 34px; top: 372px; padding: 16px 14px 14px; text-align: center; border-radius: 16px;
  background: rgba(14, 15, 21, 0.86); border: 1.5px solid var(--side, var(--up)); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(14px) scale(1.06); pointer-events: none; }
#app.verdict-on .card { opacity: 1; transform: none; transition: opacity 0.38s var(--ease), transform 0.5s cubic-bezier(0.2, 1.25, 0.35, 1); }
.c-side { display: flex; justify-content: center; align-items: center; gap: 12px; }
.c-side span { font-family: "Noto Sans Armenian", "Onest", sans-serif; font-weight: 700; font-size: 60px; line-height: 1; color: var(--side, var(--up)); }
.c-side em, .btn em { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: 0.4px; border-radius: 8px; padding: 4px 9px; color: var(--side, var(--up)); border: 1px solid var(--side, var(--up)); }
.c-line { margin-top: 8px; font-family: "Onest", "Noto Sans Armenian", sans-serif; font-weight: 700; font-size: 36px; line-height: 1.1; }
.c-dot { margin: 0 12px; color: var(--muted); }
.c-meta { margin-top: 6px; font-size: 13px; color: var(--text2); font-weight: 500; }
.c-foot { margin-top: 4px; font-size: 12px; color: var(--muted); }
#app.verdict-on .scan { opacity: 0; }

.actions { position: relative; }
.btn { position: absolute; inset: 0; border: 0; border-radius: 14px; font-family: "Noto Sans Armenian", "Onest", sans-serif; font-weight: 600; font-size: 18px; cursor: pointer; transition: transform 0.12s, background-color 0.25s, color 0.25s, opacity 0.3s var(--ease); }
.btn.primary { background: var(--accent-btn); color: #fff; }
.btn.primary.pressed { transform: scale(0.98); }
#app.busy .btn.primary { background: var(--p3); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* price ticks: the new price flashes its direction, then settles back */
.tick-u { color: var(--up) !important; transition: none !important; }
.tick-d { color: var(--down) !important; transition: none !important; }
.pr, .price { transition: color 0.8s var(--ease); }

/* one signal at a time: the button is locked while the active signal counts down */
.btn:disabled { cursor: default; }
