/* ============================================================
   NVDAWG MEME INDEX v1.00
   Win98 chrome x CRT green terminal
   ============================================================ */

:root {
  --nv: #76b900;          /* NVIDIA green, brand */
  --crt: #d7ffd0;         /* body data text */
  --crt-hi: #7dff5f;      /* positive / bright */
  --crt-num: #eaffe0;     /* big numbers */
  --crt-dim: #4f9f4a;     /* labels */
  --crt-edge: #16451a;    /* inner rules */
  --crt-border: #1d4f1d;  /* panel inner edge */
  --red: #ff5044;
  --amber: #ffd23f;
  --navy-a: #060c7a;
  --navy-b: #1e3fd0;
  --chrome: #c6c6c6;
  --chrome-hi: #ffffff;
  --chrome-md: #808080;
  --chrome-dk: #404040;
  --ink: #141414;
  --f-chrome: Tahoma, Verdana, "Segoe UI", sans-serif;
  --f-term: "VT323", ui-monospace, "Courier New", monospace;
  --f-disp: "Anton", "Arial Narrow", Impact, sans-serif;
  --f-pix: "Silkscreen", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: #030503; }

body {
  font-family: var(--f-chrome);
  font-size: 11px;
  color: var(--ink);
  -webkit-font-smoothing: none;
}

::selection { background: var(--nv); color: #04140a; }

::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: #0a120a; }
::-webkit-scrollbar-thumb { background: #2c5f28; border: 3px solid #0a120a; }

:focus-visible { outline: 2px dashed var(--crt-hi); outline-offset: 1px; }

/* ---------- desktop backdrop ---------- */
.desktop {
  min-height: 100vh;
  padding: 14px;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(118, 185, 0, .07), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(118, 185, 0, .04) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(118, 185, 0, .04) 27px 28px),
    #040604;
}

/* ---------- Win98 window ---------- */
.window {
  background: var(--chrome);
  border: 1px solid;
  border-color: var(--chrome-hi) var(--chrome-dk) var(--chrome-dk) var(--chrome-hi);
  box-shadow:
    inset 1px 1px 0 #dfdfdf,
    inset -1px -1px 0 var(--chrome-md),
    4px 6px 0 rgba(0, 0, 0, .45);
  padding: 2px;
}

.window.app {
  max-width: 1560px;
  margin: 0 auto;
  min-height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
}

/* ---------- title bar ---------- */
.titlebar {
  height: 26px;
  flex: none;
  background: linear-gradient(90deg, var(--navy-a), var(--navy-b));
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 3px 0 5px;
  user-select: none;
}

.titlebar-icon { width: 18px; height: 18px; display: grid; place-items: center; }
.titlebar-icon svg { width: 18px; height: 18px; image-rendering: pixelated; }

.titlebar-text {
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: .2px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .6);
}

.win-controls { margin-left: auto; display: flex; gap: 2px; }

.win-btn, .tb-b {
  display: grid;
  place-items: center;
  background: var(--chrome);
  border: 1px solid;
  border-color: var(--chrome-hi) var(--chrome-dk) var(--chrome-dk) var(--chrome-hi);
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 var(--chrome-md);
  cursor: pointer;
  padding: 0;
}
.win-btn { width: 20px; height: 18px; }
.win-btn:active, .tb-b:active {
  border-color: var(--chrome-dk) var(--chrome-hi) var(--chrome-hi) var(--chrome-dk);
  box-shadow: inset 1px 1px 0 var(--chrome-md);
}

.glyph-min { display: block; width: 8px; height: 2px; background: var(--ink); margin-top: 8px; }
.glyph-max { display: block; width: 9px; height: 8px; border: 1px solid var(--ink); border-top-width: 2px; }
.glyph-x { display: block; position: relative; width: 10px; height: 8px; }
.glyph-x::before, .glyph-x::after {
  content: ""; position: absolute; left: 0; top: 3px; width: 10px; height: 2px; background: var(--ink);
}
.glyph-x::before { transform: rotate(45deg); }
.glyph-x::after { transform: rotate(-45deg); }

/* ---------- chrome header ---------- */
.chrome-head {
  flex: none;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 2px 4px 4px;
  border-bottom: 1px solid var(--chrome-md);
  box-shadow: 0 1px 0 var(--chrome-hi);
}

.chrome-left { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.menubar { display: flex; gap: 1px; padding: 2px 0; }

.menu-item {
  font-family: var(--f-chrome);
  font-size: 11px;
  background: none;
  border: 1px solid transparent;
  padding: 2px 8px;
  cursor: pointer;
  color: var(--ink);
}
.menu-item:hover { border-color: var(--chrome-hi) var(--chrome-dk) var(--chrome-dk) var(--chrome-hi); }
.menu-item:active { border-color: var(--chrome-dk) var(--chrome-hi) var(--chrome-hi) var(--chrome-dk); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px 0 1px;
  border-top: 1px solid var(--chrome-md);
  box-shadow: inset 0 1px 0 var(--chrome-hi);
}

.tool-btn {
  font-family: var(--f-chrome);
  font-size: 11px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  background: var(--chrome);
  border: 1px solid;
  border-color: var(--chrome-hi) var(--chrome-dk) var(--chrome-dk) var(--chrome-hi);
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 var(--chrome-md);
  cursor: pointer;
}
.tool-btn svg { width: 13px; height: 13px; fill: #333; }
.tool-btn:active { border-color: var(--chrome-dk) var(--chrome-hi) var(--chrome-hi) var(--chrome-dk); box-shadow: inset 1px 1px 0 var(--chrome-md); }
.tool-btn.active {
  border-color: var(--chrome-dk) var(--chrome-hi) var(--chrome-hi) var(--chrome-dk);
  box-shadow: inset 1px 1px 0 var(--chrome-md);
  background:
    repeating-conic-gradient(#d9d9d9 0% 25%, var(--chrome) 0% 50%) 0 0 / 4px 4px;
}
.tool-btn.active svg { fill: #2b6d00; }

/* brand chip */
.brand-chip {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #010401;
  border: 1px solid;
  border-color: var(--chrome-md) var(--chrome-hi) var(--chrome-hi) var(--chrome-md);
  outline: 1px solid #244d06;
  outline-offset: -3px;
  padding: 4px 12px;
  min-height: 52px;
}

.nv-eye {
  width: 32px; height: 32px;
  background: var(--nv);
  border-radius: 5px;
  display: grid; place-items: center;
  box-shadow: 0 0 10px rgba(118, 185, 0, .55);
}
.nv-eye svg { width: 24px; height: 24px; fill: #04140a; }

.brand-words { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-words b { font-family: var(--f-pix); font-weight: 700; font-size: 14px; color: #f2fff2; letter-spacing: 1px; }
.brand-words i { font-family: var(--f-pix); font-style: normal; font-size: 8px; color: var(--nv); letter-spacing: 2px; }

.brand-dawg { width: 32px; height: 32px; }
.brand-dawg svg { width: 32px; height: 32px; }

.brand-clock {
  display: flex; flex-direction: column; gap: 2px;
  border-left: 1px solid #1c3a1c;
  padding-left: 10px;
  line-height: 1;
}
.brand-clock b { font-family: var(--f-term); font-weight: normal; font-size: 14px; color: var(--crt-dim); letter-spacing: 1px; }
.brand-clock #market-state.open { color: var(--crt-hi); }
.brand-clock #market-state.closed { color: var(--red); }
.brand-clock #market-state.pre { color: var(--amber); }
.brand-clock i { font-family: var(--f-term); font-style: normal; font-size: 19px; color: #fff; }

.sig-bars { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.sig-bars i { width: 3px; background: var(--nv); box-shadow: 0 0 4px rgba(118, 185, 0, .8); }
.sig-bars i:nth-child(1) { height: 5px; }
.sig-bars i:nth-child(2) { height: 8px; }
.sig-bars i:nth-child(3) { height: 11px; }
.sig-bars i:nth-child(4) { height: 15px; }
.sig-bars.dark i { background: #2b7c00; box-shadow: none; }

/* ============================================================
   WORKSPACE
   ============================================================ */
.workspace {
  position: relative;
  flex: 1;
  background: #04060a;
  border: 1px solid;
  border-color: var(--chrome-md) var(--chrome-hi) var(--chrome-hi) var(--chrome-md);
  margin: 4px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto 1fr;
  gap: 8px;
  align-items: stretch;
}

/* CRT scanlines across the whole workspace */
.workspace::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px),
    radial-gradient(120% 100% at 50% 0%, transparent 55%, rgba(0, 0, 0, .28) 100%);
}

.workspace[hidden] { display: none !important; }

/* desktop placement */
.panel.hero      { grid-column: 1 / 7;  grid-row: 1 / 3; }
.panel.ticker    { grid-column: 7 / 13; grid-row: 1; }
.panel.universe  { grid-column: 7 / 13; grid-row: 2; }
.panel.gainers   { grid-column: 1 / 5; }
.panel.overview  { grid-column: 5 / 9; }
.panel.flow      { grid-column: 9 / 13; }
.panel.heatmap   { grid-column: 1 / 4; }
.panel.sectors   { grid-column: 4 / 7; }
.panel.sentiment { grid-column: 7 / 10; }
.panel.portfolio { grid-column: 10 / 13; }

/* ---------- panel ---------- */
.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #35406e;
  background: #01050a;
  box-shadow: 0 0 0 1px #000, 0 3px 12px rgba(0, 0, 0, .55);
  animation: panel-rise .45s ease backwards;
}
.panel:nth-child(2)  { animation-delay: .05s; }
.panel:nth-child(3)  { animation-delay: .1s; }
.panel:nth-child(4)  { animation-delay: .15s; }
.panel:nth-child(5)  { animation-delay: .2s; }
.panel:nth-child(6)  { animation-delay: .25s; }
.panel:nth-child(7)  { animation-delay: .3s; }
.panel:nth-child(8)  { animation-delay: .35s; }
.panel:nth-child(9)  { animation-delay: .4s; }
.panel:nth-child(10) { animation-delay: .45s; }

@keyframes panel-rise {
  from { opacity: 0; transform: translateY(7px); }
}

.panel-tb {
  flex: none;
  height: 21px;
  background: linear-gradient(90deg, var(--navy-a), var(--navy-b));
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 3px 0 5px;
  user-select: none;
}
.panel-tb h2 {
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  letter-spacing: .2px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-ico { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.p-ico.g { background: var(--nv); box-shadow: 0 0 5px var(--nv); }
.p-ico.r { background: #e23a3a; box-shadow: 0 0 5px #e23a3a; }
.p-ico.y { background: #f5c518; box-shadow: 0 0 5px #f5c518; }
.p-ico.b { background: #38a0f5; box-shadow: 0 0 5px #38a0f5; }

.tb-btns { margin-left: auto; display: flex; gap: 2px; }
.tb-b { width: 16px; height: 14px; }
.tb-b .glyph-min { width: 6px; height: 2px; margin-top: 6px; }
.tb-b .glyph-max { width: 7px; height: 6px; }
.tb-b .glyph-x { width: 7px; height: 6px; }
.tb-b .glyph-x::before, .tb-b .glyph-x::after { width: 8px; height: 2px; top: 2px; left: -1px; }

.panel-body {
  flex: 1;
  position: relative;
  padding: 8px;
  border-top: 1px solid #000;
  background: radial-gradient(130% 120% at 50% 0%, #04120a 0%, #020a04 55%, #010603 100%);
  box-shadow: inset 0 0 0 1px #143a14, inset 0 0 22px rgba(60, 255, 80, .05);
  font-family: var(--f-term);
  font-size: 15px;
  color: var(--crt);
}

.panel.min .panel-body { display: none; }
.panel.min { align-self: start; }

.panel.shake { animation: panel-shake .3s; }
@keyframes panel-shake {
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

/* generic term colors */
.up { color: var(--crt-hi); }
.down { color: var(--red); }
.dim { color: var(--crt-dim); }
.amber { color: var(--amber); }

/* ============================================================
   HERO
   ============================================================ */
.hero-body { padding: 14px 16px 12px; overflow: hidden; }

.hero-chart {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 64%;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 8px;
  height: 100%;
}

.hero-copy { display: flex; flex-direction: column; gap: 9px; min-width: 0; }

.hero-title {
  font-family: var(--f-disp);
  font-weight: 400;
  font-size: clamp(46px, 4.4vw, 66px);
  line-height: .95;
  letter-spacing: 1px;
  color: #7ec71e;
  text-shadow:
    0 0 22px rgba(118, 185, 0, .5),
    3px 3px 0 #0d2301;
  animation: crt-flicker 6s infinite;
}
.hero-title span { display: block; }

@keyframes crt-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: .86; }
  94% { opacity: 1; }
  97% { opacity: .93; }
  98% { opacity: 1; }
}

.hero-sub {
  font-size: 15px;
  font-weight: bold;
  font-family: var(--f-chrome);
  color: #f2fff2;
  letter-spacing: .5px;
  line-height: 1.45;
}
.hero-sub b { color: var(--nv); }

.hero-feats { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.hero-feats li {
  font-size: 16px;
  color: #b9f59b;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-feats li::before {
  content: "+";
  flex: none;
  width: 15px; height: 15px;
  display: grid; place-items: center;
  border: 1px solid var(--nv);
  border-radius: 50%;
  color: var(--nv);
  font-size: 13px;
  line-height: 1;
}

.index-box {
  margin-top: auto;
  background: rgba(2, 13, 4, .86);
  border: 1px solid #2c6b28;
  box-shadow: 0 0 16px rgba(0, 0, 0, .65), inset 0 0 12px rgba(118, 185, 0, .06);
  padding: 9px 12px 10px;
  max-width: 450px;
}
.ib-head { font-size: 16px; letter-spacing: 3px; color: var(--nv); margin-bottom: 2px; }
.ib-main {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 2px 16px;
  align-items: end;
}
.ib-val {
  font-size: 44px;
  line-height: .85;
  color: var(--crt-num);
  text-shadow: 0 0 14px rgba(125, 255, 95, .45);
}
.ib-chg { font-size: 18px; margin-top: 5px; }
.ib-chg .tri { font-size: 12px; }
.ib-cols { display: flex; gap: 16px; padding-bottom: 1px; }
.ib-cols i { display: block; font-style: normal; font-size: 13px; color: var(--crt-dim); letter-spacing: 1px; }
.ib-cols b { font-weight: normal; font-size: 19px; }
.ib-spark { width: 100%; max-width: 130px; height: 48px; justify-self: end; }

.cta-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.cta {
  flex: 1 1 auto;
  text-align: center;
  font-family: var(--f-pix);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: .5px;
  text-decoration: none;
  color: #b4ff7a;
  background: rgba(8, 26, 5, .8);
  border: 1px solid var(--nv);
  padding: 8px 10px 7px;
}
.cta:hover { background: #16400a; box-shadow: 0 0 12px rgba(118, 185, 0, .35); }
.cta.buy {
  background: var(--nv);
  color: #04140a;
  box-shadow: 0 0 18px rgba(118, 185, 0, .5);
}
.cta.buy:hover { background: #8cd41a; }

.ca-line {
  margin-top: 8px;
  width: fit-content;
  font-family: var(--f-term);
  font-size: 15px;
  letter-spacing: 1px;
  color: #58c04b;
  background: none;
  border: 1px dashed #2c6b28;
  padding: 5px 10px;
  cursor: pointer;
  text-align: left;
}
.ca-line:hover { color: var(--crt-hi); border-color: var(--nv); }

.hero-mascot {
  position: relative;
  display: grid;
  place-items: end center;
  padding-bottom: 2px;
  cursor: pointer;
  min-width: 0;
}

/* green paint-swirl glow behind the dawg, painted by the panel itself */
.hero-mascot::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 130%;
  aspect-ratio: 1;
  transform: translateX(-50%) rotate(-16deg);
  background:
    radial-gradient(46% 34% at 50% 56%, rgba(118, 185, 0, .30), transparent 72%),
    radial-gradient(72% 58% at 47% 52%, rgba(118, 185, 0, .13), transparent 76%);
  pointer-events: none;
}
.hero-mascot svg, .hero-mascot img {
  width: min(100%, 296px);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 26px rgba(118, 185, 0, .3)) drop-shadow(0 8px 0 rgba(0, 0, 0, .4));
}
.hero-mascot img {
  position: relative;
  width: 100%;
  height: clamp(480px, 58vh, 640px);
  margin-bottom: -12px;
  object-fit: cover;
  object-position: center bottom;
  image-rendering: auto;
  filter: drop-shadow(0 0 30px rgba(118, 185, 0, .22));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.woof-float {
  position: absolute;
  z-index: 8;
  font-family: var(--f-pix);
  font-size: 12px;
  color: var(--crt-hi);
  text-shadow: 0 0 8px rgba(125, 255, 95, .8);
  pointer-events: none;
  animation: woof-up 1s ease-out forwards;
}
@keyframes woof-up {
  to { transform: translateY(-46px); opacity: 0; }
}

/* ============================================================
   TICKER CARDS
   ============================================================ */
.ticker-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.tk-card {
  border: 1px solid var(--crt-border);
  background: rgba(4, 18, 8, .65);
  padding: 7px 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tk-head { display: flex; align-items: center; gap: 6px; }
.tk-sym { font-family: var(--f-chrome); font-weight: bold; font-size: 13px; color: #f4f7f0; }
.tk-chip {
  margin-left: auto;
  flex: none;
  min-width: 15px; height: 15px;
  padding: 0 2px;
  border-radius: 3px;
  display: grid; place-items: center;
  font-family: var(--f-pix);
  font-size: 7px;
  font-weight: 700;
}
/* logo asli + chip fallback di belakangnya */
.logo-wrap {
  position: relative;
  width: 17px; height: 17px;
  flex: none;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
}
.logo-wrap .tk-chip {
  position: absolute;
  inset: 0;
  margin: 0;
  min-width: 0;
  width: 100%; height: 100%;
}
.tk-logo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #08130a;
  box-shadow: 0 0 0 1px rgba(118, 185, 0, .25);
}
.tk-head .logo-wrap { margin-left: auto; }

.tk-price { font-size: 21px; color: var(--crt-num); }
.tk-chg { font-size: 15px; }
.tk-spark { width: 100%; height: 44px; margin: 2px 0; }
.tk-vol { display: flex; justify-content: space-between; font-size: 12px; color: var(--crt-dim); letter-spacing: 1px; }
.tk-vol b { font-weight: normal; color: #9ed893; }

/* ============================================================
   TABLES
   ============================================================ */
.term-table { width: 100%; border-collapse: collapse; }

.term-table th {
  font-family: var(--f-term);
  font-weight: normal;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--crt-dim);
  text-align: right;
  padding: 2px 6px 4px;
  border-bottom: 1px solid var(--crt-edge);
  white-space: nowrap;
}
.term-table td {
  font-size: 15px;
  text-align: right;
  padding: 4px 6px;
  border-bottom: 1px solid rgba(30, 80, 30, .22);
  white-space: nowrap;
  color: var(--crt);
}
.term-table .l { text-align: left; }
.term-table .name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.term-table tbody tr:hover { background: rgba(118, 185, 0, .07); }
.term-table tr.sub-head td {
  font-family: var(--f-term);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--red);
  text-align: left;
  padding: 9px 6px 4px;
  border-bottom: 1px solid var(--crt-edge);
  background: none !important;
}
.term-table tbody tr:last-child td { border-bottom: 0; }

.sym-cell { display: flex; align-items: center; gap: 6px; font-family: var(--f-chrome); font-weight: bold; font-size: 12px; color: #f4f7f0; }
.sym-cell .tk-chip { margin-left: 0; }

tr.row-self td { background: rgba(118, 185, 0, .1); }
tr.row-self td:first-child { box-shadow: inset 2px 0 0 var(--nv); }

@keyframes cell-up { 0% { background: rgba(90, 255, 90, .28); } 100% { background: transparent; } }
@keyframes cell-down { 0% { background: rgba(255, 80, 68, .28); } 100% { background: transparent; } }
.flash-up { animation: cell-up .9s ease-out; }
.flash-down { animation: cell-down .9s ease-out; }

/* flow table */
.flow-table td { font-size: 14px; }
.flow-table .t-time { color: var(--crt-dim); }
.side-buy { color: var(--crt-hi); }
.side-sell { color: var(--red); }
.flow-table tbody tr:first-child td { animation: cell-up 1s ease-out; }

/* portfolio */
.panel.portfolio .term-table td:last-child,
.panel.portfolio .term-table th:last-child { padding-left: 2px; padding-right: 2px; }

.pf-add {
  width: 17px; height: 17px;
  display: inline-grid; place-items: center;
  background: #06170a;
  border: 1px solid #2c6b28;
  color: var(--crt-hi);
  font-family: var(--f-term);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}
.pf-add:hover { border-color: var(--nv); box-shadow: 0 0 8px rgba(118, 185, 0, .4); }

/* ============================================================
   OVERVIEW
   ============================================================ */
.ov-chart-wrap {
  position: relative;
  height: 148px;
  border: 1px solid var(--crt-edge);
  background: #020c05;
  margin-bottom: 8px;
  overflow: hidden;
}
.ov-chart-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ov-range {
  position: absolute;
  top: 6px; right: 6px;
  border: 1px solid #2c6b28;
  background: rgba(4, 18, 8, .9);
  color: #9ed893;
  font-size: 13px;
  padding: 1px 7px;
  letter-spacing: 1px;
}

.ov-stats div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 4px 2px;
  border-bottom: 1px dotted rgba(60, 140, 60, .3);
}
.ov-stats div:last-child { border-bottom: 0; }
.ov-stats i { font-style: normal; font-size: 13px; letter-spacing: 1px; color: var(--crt-dim); }
.ov-stats b { font-weight: normal; font-size: 17px; color: var(--crt-num); }
.ov-stats b.up { color: var(--crt-hi); }

/* ============================================================
   HEATMAP
   ============================================================ */
.hm-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 56px;
  gap: 5px;
}
.hm-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid rgba(0, 0, 0, .55);
  min-width: 0;
  overflow: hidden;
}
.hm-tile b { font-family: var(--f-chrome); font-size: 12px; letter-spacing: 0; }
.hm-tile i { font-style: normal; font-size: 12px; }
.hm-tile.big b { font-size: 22px; letter-spacing: 1px; }
.hm-tile.big i { font-size: 15px; }

.hm-b5 { background: #86e63c; color: #0b2000; }
.hm-b2 { background: #47a02c; color: #06200a; }
.hm-b0 { background: #16401a; color: #8fe07f; }
.hm-s0 { background: #4a1512; color: #ffa89e; }
.hm-s2 { background: #8f2119; color: #ffd7d2; }
.hm-s5 { background: #e0362a; color: #fff; }
.hm-nvda {
  background:
    radial-gradient(120% 150% at 50% 0%, #0f3a06 0%, #071c03 70%);
  color: #d9ffca;
  border-color: #2c6b28;
  box-shadow: inset 0 0 18px rgba(118, 185, 0, .25);
}
.hm-nvda b { text-shadow: 0 0 12px rgba(125, 255, 95, .6); }
.hm-nvda i { color: var(--crt-hi); }

.hm-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hm-lg { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--crt-dim); }
.hm-lg .sw { width: 10px; height: 10px; border: 1px solid rgba(0, 0, 0, .5); }

/* ============================================================
   SECTORS
   ============================================================ */
.sector-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--crt-dim);
  border-bottom: 1px solid var(--crt-edge);
  padding: 0 2px 4px;
  margin-bottom: 4px;
}
.sec-row {
  display: grid;
  grid-template-columns: minmax(92px, auto) 1fr 52px;
  gap: 8px;
  align-items: center;
  padding: 5px 2px;
}
.sec-name { font-size: 14px; letter-spacing: 1px; color: #c9f0bd; white-space: nowrap; }
.sec-bar { height: 12px; background: #081d0b; border: 1px solid var(--crt-edge); position: relative; }
.sec-fill {
  position: absolute;
  top: 1px; bottom: 1px; left: 1px;
  width: var(--w, 0%);
  background: linear-gradient(90deg, #4ea52f, #86e63c);
  box-shadow: 0 0 8px rgba(118, 185, 0, .45);
  transition: width 1.1s cubic-bezier(.2, .7, .3, 1);
}
.sec-fill.neg {
  background: linear-gradient(90deg, #a3271d, #e0362a);
  box-shadow: 0 0 8px rgba(224, 54, 42, .45);
}
.sec-pct { font-size: 15px; text-align: right; white-space: nowrap; }
.sec-pct .h-tag {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--crt-dim);
  margin-right: 4px;
  vertical-align: 2px;
}

/* ============================================================
   SENTIMENT
   ============================================================ */
.senti-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
}
.gauge-wrap { text-align: center; }
.gauge-wrap svg { width: 100%; max-width: 168px; height: auto; }
.gauge-num { font-size: 46px; line-height: .8; text-shadow: 0 0 14px rgba(125, 255, 95, .45); }
.gauge-label { font-family: var(--f-chrome); font-weight: bold; font-size: 13px; letter-spacing: 2px; margin-top: 3px; }
.gauge-sub { font-size: 13px; color: var(--crt-dim); margin-top: 2px; }

.senti-rows { display: flex; flex-direction: column; }
.s-row { padding: 4px 0 5px; border-bottom: 1px dotted rgba(60, 140, 60, .3); }
.s-row:last-child { border-bottom: 0; }
.s-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.s-name { font-size: 14px; color: #c9f0bd; }
.s-val { font-size: 16px; color: var(--crt-hi); }
.s-bar { height: 3px; background: #081d0b; margin-top: 3px; }
.s-fill { height: 100%; width: var(--w, 0%); background: var(--nv); box-shadow: 0 0 6px rgba(118, 185, 0, .6); transition: width 1.1s ease; }

/* ============================================================
   STATUS BAR
   ============================================================ */
.statusbar {
  flex: none;
  display: flex;
  gap: 3px;
  padding: 3px 4px 4px;
  align-items: stretch;
}
.sb-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink);
  padding: 3px 10px;
  border: 1px solid;
  border-color: var(--chrome-md) var(--chrome-hi) var(--chrome-hi) var(--chrome-md);
  white-space: nowrap;
}
.sb-cell.grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; padding-top: 4px; }
.sb-cell .mono { font-family: Consolas, "Courier New", monospace; font-size: 11px; }
.sb-cur i { font-style: normal; font-size: 9px; color: #333; }
#feed-state { font-weight: bold; }
.fs-live { color: #1c7c1c; }
.fs-conn { color: #8a6d00; }
.fs-err { color: #b00020; }

.sb-conn .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2fbf2f;
  box-shadow: 0 0 6px #2fbf2f;
  animation: conn-pulse 2.2s infinite;
}
@keyframes conn-pulse { 50% { opacity: .45; } }

/* ============================================================
   ABOUT DIALOG
   ============================================================ */
.dlg-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 6, 2, .55);
  display: grid;
  place-items: center;
  padding: 20px;
}
.dlg-overlay[hidden] { display: none; }
.window.dlg { width: 380px; max-width: 100%; }
.dlg-body { display: flex; gap: 16px; padding: 18px 16px 10px; align-items: center; }
.dlg-art svg { width: 92px; height: auto; image-rendering: pixelated; }
.dlg-text b { font-size: 12px; }
.dlg-text p { margin-top: 7px; line-height: 1.5; }
.dlg-woof { font-family: var(--f-pix); color: #3c8a00; }
.dlg-foot { padding: 4px 16px 14px; text-align: right; }
.dlg-ok {
  font-family: var(--f-chrome);
  font-size: 11px;
  padding: 4px 28px;
  background: var(--chrome);
  border: 1px solid;
  border-color: var(--chrome-hi) var(--chrome-dk) var(--chrome-dk) var(--chrome-hi);
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 var(--chrome-md), 0 0 0 1px #000;
  cursor: pointer;
}
.dlg-ok:active { border-color: var(--chrome-dk) var(--chrome-hi) var(--chrome-hi) var(--chrome-dk); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1250px) {
  .workspace { grid-template-columns: repeat(6, 1fr); grid-template-rows: none; }
  .panel.hero      { grid-column: 1 / 7; grid-row: auto; }
  .panel.ticker    { grid-column: 1 / 7; grid-row: auto; }
  .panel.universe  { grid-column: 1 / 7; }
  .panel.gainers   { grid-column: 1 / 4; }
  .panel.overview  { grid-column: 4 / 7; }
  .panel.flow      { grid-column: 1 / 4; }
  .panel.heatmap   { grid-column: 4 / 7; }
  .panel.sectors   { grid-column: 1 / 4; }
  .panel.sentiment { grid-column: 4 / 7; }
  .panel.portfolio { grid-column: 1 / 7; }
  .hero-body { min-height: 430px; }
}

@media (max-width: 860px) {
  .desktop { padding: 8px; }
  .workspace { grid-template-columns: 1fr; grid-template-rows: none; }
  .workspace > .panel { grid-column: 1 / -1 !important; }
  .panel-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hero-body { overflow: hidden; }
  .chrome-head { flex-direction: column; align-items: stretch; gap: 4px; }
  .brand-chip { justify-content: center; }

  /* toolbar: satu baris, geser samping (app-like), bukan numpuk 3 baris */
  .toolbar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 3px; }
  .toolbar::-webkit-scrollbar { display: none; }
  .tool-btn { flex: none; white-space: nowrap; }

  /* dropdown menu sisi kanan jangan keluar layar */
  .menu-wrap:nth-last-child(-n+2) .menu-drop { left: auto; right: 0; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-mascot { order: -1; place-items: center; }
  .hero-mascot svg, .hero-mascot img { width: min(70vw, 280px); height: auto; margin-bottom: 0; }
  .hero-title { font-size: clamp(38px, 12vw, 56px); }

  /* box token: stack rapi — harga, stat 3 kolom, spark full width */
  .index-box { max-width: none; }
  .ib-main { grid-template-columns: 1fr; gap: 10px; align-items: stretch; }
  .ib-val { font-size: clamp(30px, 9.5vw, 42px); overflow-wrap: anywhere; }
  .ib-cols { justify-content: space-between; gap: 10px; }
  .ib-spark { max-width: none; width: 100%; height: 42px; justify-self: stretch; }

  .ticker-cards { grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); }
  .ticker-foot { flex-direction: column; gap: 3px; }
  .senti-body { grid-template-columns: 1fr; }
  .gauge-wrap { max-width: 220px; margin: 0 auto; }
  .hm-grid { grid-auto-rows: 44px; }
  .hm-tile.big b { font-size: 20px; }

  .module-body { padding: 8px; }
  .module-ws .panel.module { min-height: 70vh; }
  .news-row { grid-template-columns: minmax(0, 1fr) auto; }
  .news-row .news-title { grid-column: 1 / -1; }

  .statusbar { flex-wrap: wrap; }
  #toasts { right: 10px; left: 10px; bottom: 52px; align-items: flex-end; }
  .toast { max-width: 100%; }

  .wire-tag { padding: 0 7px; }
  .dlg-body { flex-direction: column; text-align: center; }
  .dlg-art { margin: 0 auto; }
}

@media (max-width: 560px) {
  .desktop { padding: 4px; }
  .window.app { min-height: calc(100vh - 8px); }
  .titlebar-text { font-size: 11px; }
  .sb-chain, .sb-cur, .statusbar .sb-cell:last-child { display: none; }
  .brand-chip { gap: 7px; padding: 4px 8px; }
  .brand-words b { font-size: 12px; }
  .brand-clock i { font-size: 16px; }
  .hero-body { padding: 10px; }
  .hero-feats li { font-size: 14px; }
  .cta { padding: 8px 6px 7px; font-size: 8px; }
  .ca-line { width: 100%; overflow-wrap: anywhere; }
  .panel-tb h2 { font-size: 10px; }
  .term-table td { font-size: 13px; padding: 4px 5px; }
  .term-table th { font-size: 11px; }
  .flow-table td { font-size: 12px; }
  .alert-form select, .alert-form input { flex: 1 1 100%; }
  .alert-form .btn-term { flex: 1 1 auto; }
  .hm-grid { gap: 3px; }
  .hm-tile b { font-size: 10px; }
  .hm-tile i { font-size: 10px; }
  .boot-title { font-size: 40px; }
}

/* ============================================================
   BOOT SPLASH
   ============================================================ */
#boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 50% 10%, #06180c 0%, #020a04 60%, #010402 100%);
  display: grid;
  place-items: center;
  transition: opacity .45s ease, visibility .45s;
}
#boot.off { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-inner { text-align: center; }
.boot-dawg svg { width: 96px; height: auto; image-rendering: pixelated; filter: drop-shadow(0 0 22px rgba(118, 185, 0, .5)); animation: boot-bob 1.1s ease-in-out infinite; }
@keyframes boot-bob { 50% { transform: translateY(-5px); } }
.boot-title { font-family: var(--f-disp); font-size: 52px; color: #7ec71e; letter-spacing: 2px; margin-top: 10px; text-shadow: 0 0 24px rgba(118, 185, 0, .5), 3px 3px 0 #0d2301; }
.boot-title span { color: #f2fff2; font-size: 24px; vertical-align: super; margin-left: 6px; }
.boot-sub { font-family: var(--f-pix); font-size: 9px; letter-spacing: 3px; color: var(--crt-dim); margin-top: 4px; }
.boot-bar { width: 280px; height: 14px; border: 1px solid #2c6b28; background: #06170a; margin: 18px auto 8px; padding: 2px; }
.boot-fill { height: 100%; width: 4%; background: repeating-linear-gradient(90deg, var(--nv) 0 8px, #4e7a00 8px 10px); box-shadow: 0 0 10px rgba(118, 185, 0, .6); transition: width .4s ease; }
.boot-log { font-family: var(--f-term); font-size: 15px; color: #7dff5f; letter-spacing: 1px; min-height: 20px; }

/* ============================================================
   MENU DROPDOWNS
   ============================================================ */
.menu-wrap { position: relative; display: inline-block; }
.menu-item.open { border-color: var(--chrome-dk) var(--chrome-hi) var(--chrome-hi) var(--chrome-dk); background: #d6d6d6; }
.menu-drop {
  position: absolute;
  top: 100%; left: 0;
  z-index: 40;
  min-width: 208px;
  background: var(--chrome);
  border: 1px solid;
  border-color: var(--chrome-hi) var(--chrome-dk) var(--chrome-dk) var(--chrome-hi);
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 var(--chrome-md), 3px 3px 0 rgba(0, 0, 0, .4);
  padding: 2px;
}
.menu-drop button {
  display: flex; align-items: center; gap: 6px;
  width: 100%;
  text-align: left;
  font-family: var(--f-chrome);
  font-size: 11px;
  padding: 5px 10px 5px 24px;
  position: relative;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  white-space: nowrap;
}
.menu-drop button:hover { background: var(--navy-b); color: #fff; }
.menu-sep { height: 1px; background: var(--chrome-md); margin: 3px 2px; box-shadow: 0 1px 0 var(--chrome-hi); }
.chk { position: absolute; left: 7px; width: 10px; height: 10px; display: inline-block; }
.chk.on::after { content: "✓"; position: absolute; inset: -4px 0 0; font-size: 11px; font-weight: bold; }

/* ============================================================
   NEWS WIRE BAR
   ============================================================ */
.wire-bar {
  display: flex;
  align-items: stretch;
  background: #010401;
  border-top: 1px solid var(--chrome-md);
  border-bottom: 1px solid var(--chrome-hi);
  height: 24px;
  overflow: hidden;
}
body.no-wire .wire-bar { display: none; }
.wire-tag {
  flex: none;
  display: grid; place-items: center;
  font-family: var(--f-pix); font-size: 8px; letter-spacing: 2px;
  color: #04140a; background: var(--nv);
  padding: 0 10px;
}
.wire-clip { flex: 1; overflow: hidden; position: relative; }
.wire-track {
  position: absolute;
  white-space: nowrap;
  display: flex; align-items: center; height: 100%;
  animation: wire-scroll var(--wire-dur, 60s) linear infinite;
  will-change: transform;
}
.wire-bar:hover .wire-track { animation-play-state: paused; }
@keyframes wire-scroll { to { transform: translateX(-50%); } }
.wire-item { font-family: var(--f-term); font-size: 15px; color: var(--crt); margin-right: 34px; text-decoration: none; }
.wire-item b { color: var(--crt-hi); font-weight: normal; }
.wire-item .w-src { color: var(--crt-dim); }
.wire-item:hover b { text-decoration: underline; }
.wire-sep { color: #2c6b28; margin-right: 34px; }

/* ============================================================
   TICKER FOOT + MISC FILLERS
   ============================================================ */
.ticker-foot {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 7px; padding-top: 6px;
  border-top: 1px dotted rgba(60, 140, 60, .3);
  font-size: 12px; letter-spacing: 1px;
}
.alert-dot { width: 6px; height: 6px; border-radius: 50%; background: #e0362a; box-shadow: 0 0 6px #e0362a; display: inline-block; margin-left: 2px; animation: conn-pulse 1.4s infinite; }
.alert-dot[hidden] { display: none; }

/* ============================================================
   SKELETON SHIMMER (loading)
   ============================================================ */
.skel {
  position: relative;
  color: transparent !important;
  border-radius: 2px;
  background: linear-gradient(90deg, #0d2410 25%, #1a3d1c 50%, #0d2410 75%);
  background-size: 200% 100%;
  animation: skel-slide 1.2s linear infinite;
  min-width: 34px;
  display: inline-block;
}
@keyframes skel-slide { to { background-position: -200% 0; } }

/* ============================================================
   MODULE VIEW
   ============================================================ */
.module-ws { display: grid; grid-template-columns: 1fr; }
.module-ws .panel.module { grid-column: 1 / -1; min-height: 60vh; }
.module-body { padding: 10px 12px; }
.module-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.module-head .m-note { font-size: 13px; color: var(--crt-dim); letter-spacing: 1px; margin-left: auto; }

.m-chip {
  font-family: var(--f-term); font-size: 14px; letter-spacing: 1px;
  color: #9ed893; background: rgba(8, 26, 5, .8);
  border: 1px solid #2c6b28; padding: 3px 10px; cursor: pointer;
}
.m-chip.on { background: var(--nv); color: #04140a; border-color: var(--nv); }
.m-chip:hover { border-color: var(--nv); }

.term-table th.sortable { cursor: pointer; user-select: none; }
.term-table th.sortable:hover { color: #9ed893; }
.term-table th.sorted-asc::after { content: " ▲"; font-size: 10px; }
.term-table th.sorted-desc::after { content: " ▼"; font-size: 10px; }

.star-b { background: none; border: 0; cursor: pointer; font-size: 14px; color: #3e7c34; padding: 0 2px; line-height: 1; }
.star-b.on { color: var(--amber); text-shadow: 0 0 8px rgba(255, 210, 63, .6); }
.star-b:hover { color: var(--crt-hi); }

.mini-spark { width: 90px; height: 22px; }

/* news list */
.news-list { display: flex; flex-direction: column; }
.news-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: baseline;
  padding: 7px 2px;
  border-bottom: 1px dotted rgba(60, 140, 60, .3);
}
.news-row:hover { background: rgba(118, 185, 0, .06); }
.news-sym { font-family: var(--f-chrome); font-weight: bold; font-size: 12px; color: #f4f7f0; }
.news-title { font-size: 16px; color: var(--crt); text-decoration: none; }
.news-title:hover { color: var(--crt-hi); text-decoration: underline; }
.news-meta { font-size: 12px; color: var(--crt-dim); letter-spacing: 1px; white-space: nowrap; }

/* alerts */
.alert-form {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  border: 1px solid var(--crt-edge); background: rgba(4, 18, 8, .6);
  padding: 10px; margin-bottom: 12px;
}
.alert-form select, .alert-form input {
  font-family: var(--f-term); font-size: 16px;
  color: var(--crt); background: #06170a;
  border: 1px solid #2c6b28; padding: 5px 8px;
  min-width: 0;
}
.alert-form input { width: 130px; }
.alert-form select:focus, .alert-form input:focus { outline: 1px solid var(--nv); }
.btn-term {
  font-family: var(--f-pix); font-size: 9px; letter-spacing: 1px;
  background: var(--nv); color: #04140a; border: 1px solid var(--nv);
  padding: 8px 12px 7px; cursor: pointer;
}
.btn-term:hover { background: #8cd41a; }
.btn-term.ghost { background: rgba(8, 26, 5, .8); color: #b4ff7a; }
.btn-term.ghost:hover { background: #16400a; }
.alert-row {
  display: flex; gap: 10px; align-items: center;
  padding: 6px 2px; border-bottom: 1px dotted rgba(60, 140, 60, .3);
  font-size: 16px;
}
.alert-row .a-x { margin-left: auto; }
.alert-row.fired { color: var(--amber); }
.empty-note { padding: 18px 4px; font-size: 16px; color: var(--crt-dim); letter-spacing: 1px; }

/* settings */
.set-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 2px; border-bottom: 1px dotted rgba(60, 140, 60, .3);
}
.set-row i { font-style: normal; font-size: 16px; color: var(--crt); }
.set-row small { display: block; font-size: 13px; color: var(--crt-dim); margin-top: 2px; }
.sw {
  flex: none;
  width: 44px; height: 20px;
  border: 1px solid #2c6b28; background: #06170a;
  cursor: pointer; position: relative;
}
.set-row .sw::after {
  content: "";
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 14px;
  background: #3e7c34;
  transition: left .15s ease, background .15s ease;
}
.set-row .sw.on::after { left: 24px; background: var(--nv); box-shadow: 0 0 8px rgba(118, 185, 0, .7); }

/* heatmap gede (module): tile stretch ngisi seluruh panel, no ruang kosong */
.module-body { display: flex; flex-direction: column; }
.module-body > .term-table, .module-body > .news-list { width: 100%; }
.hm-grid.big {
  flex: 1;
  grid-auto-rows: 1fr;
  min-height: 56vh;
}
.hm-grid.big .hm-tile b { font-size: 20px; }
.hm-grid.big .hm-tile i { font-size: 15px; }
.hm-grid.big .hm-tile.big b { font-size: 38px; }

/* ============================================================
   TOASTS
   ============================================================ */
#toasts {
  position: fixed;
  right: 16px; bottom: 46px;
  z-index: 80;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  min-width: 230px; max-width: 320px;
  background: var(--chrome);
  border: 1px solid;
  border-color: var(--chrome-hi) var(--chrome-dk) var(--chrome-dk) var(--chrome-hi);
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 var(--chrome-md), 3px 3px 0 rgba(0, 0, 0, .45);
  animation: toast-in .25s ease;
}
.toast .t-bar {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(90deg, var(--navy-a), var(--navy-b));
  color: #fff; font-size: 11px; font-weight: bold;
  padding: 3px 6px;
}
.toast .t-body { padding: 8px 10px; font-size: 11px; color: var(--ink); }
.toast.out { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { transform: translateX(30px); opacity: 0; } }
@keyframes toast-out { to { transform: translateX(30px); opacity: 0; } }

/* ============================================================
   FX TOGGLES + DENSITY
   ============================================================ */
body.no-scan .workspace::after { background: none; }
body.no-flicker .hero-title { animation: none; }
body.compact .panel-body { font-size: 13px; padding: 6px; }
body.compact .term-table td { padding: 2px 5px; font-size: 13px; }
body.compact .tk-price { font-size: 17px; }

.ib-live {
  font-family: var(--f-pix); font-size: 8px; letter-spacing: 1px;
  color: #04140a; background: var(--nv);
  padding: 2px 6px; margin-left: 8px;
  animation: conn-pulse 2s infinite;
  vertical-align: middle;
}
.ib-live.down { background: var(--red); color: #fff; }
.tiny-sub { font-size: .55em; vertical-align: sub; letter-spacing: 0; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .panel, .hero-title, .sb-conn .dot, .flow-table tbody tr:first-child td,
  .flash-up, .flash-down, .woof-float, .panel.shake,
  .wire-track, .boot-dawg svg, .skel, .ib-live, .alert-dot, .toast {
    animation: none !important;
  }
  .sec-fill, .s-fill, #boot { transition: none; }
}
