/* Motion for the working apps (dashboard). Spotlight + bursts live in motion.js. */
.feed-item.fresh { animation: slidein .4s, fresh 2.6s ease-out; border-radius: 8px; }
@keyframes fresh { 0%, 15% { background: rgba(255,106,19,.16); box-shadow: inset 2px 0 0 #ff6a13; } 100% { background: transparent; box-shadow: inset 2px 0 0 transparent; } }
.pill.late { animation: risk 1.8s ease-in-out infinite; }
@keyframes risk { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,84,112,0); } 50% { box-shadow: 0 0 0 4px rgba(255,84,112,.2); } }
.kpi { transition: transform .2s; }
.kpi:hover { transform: translateY(-2px); }

/* Real data panels (realdata.js) */
.tag { display: inline-block; font: 600 9.5px "JetBrains Mono", monospace; letter-spacing: .1em; padding: 2px 7px; border-radius: 999px; vertical-align: 2px; margin-left: 6px; }
.tag-live { color: #3ddc97; background: rgba(61,220,151,.12); border: 1px solid rgba(61,220,151,.35); }
.tag-demo { color: #9b978f; background: rgba(255,255,255,.04); border: 1px dashed #3a3a44; }
.data-note { font-size: 13px; color: #9b978f; background: #121216; border: 1px solid #2a2a31; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.data-note b { color: #f2efe9; }
.panel-row-title { display: flex; align-items: center; gap: 4px; margin: 6px 0 12px; }
.panel-row-title h2 { font-size: 15px; font-weight: 600; color: #9b978f; }
#marketPanel { margin-bottom: 16px; }
.market { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.mk { display: grid; gap: 2px; padding: 14px 16px 12px; text-decoration: none; position: relative; overflow: hidden; transition: transform .2s, border-color .2s; }
.mk:hover { transform: translateY(-2px); }
.mk-group { position: absolute; top: 12px; right: 12px; font: 600 9.5px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .1em; padding: 2px 7px; border-radius: 999px; }
.mk-group.make { color: #ffb23a; background: rgba(255,106,19,.12); }
.mk-group.move { color: #8fbcff; background: rgba(91,155,255,.12); }
.mk-label { font-size: 12.5px; color: #9b978f; padding-right: 48px; min-height: 34px; line-height: 1.35; }
.mk-val { font-size: 26px; letter-spacing: -0.02em; }
.mk-date { color: #6f6b64; font: 11px "JetBrains Mono", monospace; }
.mk-spark { width: 100%; height: 36px; margin-top: 6px; }
.mk-why { font-size: 12px; color: #9b978f; margin: 6px 0 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s, opacity .3s; }
.mk:hover .mk-why { max-height: 60px; opacity: 1; }
.supply-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.supply-totals div { background: #121216; border: 1px solid #2a2a31; border-radius: 10px; padding: 10px 12px; }
.supply-totals b { display: block; font-size: 20px; }
.supply-totals span { font-size: 12px; color: #9b978f; }
.bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 32px 1fr 64px; gap: 10px; align-items: center; font-size: 13px; }
.bar-row span { font-family: "JetBrains Mono", monospace; color: #9b978f; }
.bar-row .track { height: 14px; background: #121216; border-radius: 4px; overflow: hidden; }
.bar-row .track i { display: block; height: 100%; background: linear-gradient(90deg, #ff6a13, #ffb23a); border-radius: 4px; transition: width .6s; }
.bar-row b { text-align: right; font: 600 12.5px "JetBrains Mono", monospace; }
.src { margin-top: 12px !important; font-size: 11.5px !important; }
.src a { color: #8fbcff; }
.mini-select { width: auto; padding: 6px 10px; font-size: 13px; }
.carriers { display: grid; gap: 6px; max-height: 430px; overflow-y: auto; padding-right: 4px; }
.carrier { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #2a2a31; border-radius: 10px; background: #121216; }
.carrier b { font-size: 14px; }
.carrier small { display: block; color: #9b978f; font: 11.5px "JetBrains Mono", monospace; margin-top: 2px; }
.hauls { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.hauls span { font-size: 10.5px; color: #8fbcff; border: 1px solid rgba(91,155,255,.3); border-radius: 999px; padding: 1px 7px; }
.carrier-r { text-align: right; display: grid; justify-items: end; gap: 3px; flex-shrink: 0; }
.carrier-r a { font-size: 11.5px; color: #8fbcff; }
@media (max-width: 560px) { .supply-totals { grid-template-columns: 1fr; } }

:root {
  --bg: #0b0b0d;
  --bg2: #121216;
  --card: #16161b;
  --line: #2a2a31;
  --text: #f2efe9;
  --muted: #9b978f;
  --hot: #ff6a13;
  --hot2: #ffb23a;
  --ok: #3ddc97;
  --bad: #ff5470;
  --info: #6aa8ff;
  --radius: 16px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
button, input, select { font: inherit; color: inherit; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-hot { background: linear-gradient(135deg, var(--hot), var(--hot2)); color: #140800; border: 0; box-shadow: 0 8px 30px -8px rgba(255,106,19,.6); }
.btn-hot:hover { box-shadow: 0 12px 40px -6px rgba(255,106,19,.8); }
.btn-ghost { background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.07); }
.full { width: 100%; }
.badge { font: 600 12px var(--mono); padding: 4px 10px; border-radius: 999px; background: rgba(255,106,19,.14); color: var(--hot2); border: 1px solid rgba(255,106,19,.3); }
.kicker { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hot2); margin: 0 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

/* ============ LANDING ============ */
#sparks { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.landing main, .landing header, .landing footer { position: relative; z-index: 1; }
.nav {
  position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px); backdrop-filter: blur(14px);
  background: rgba(11,11,13,.7); border-bottom: 1px solid var(--line); z-index: 10 !important;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--hot), var(--hot2)); box-shadow: 0 0 20px var(--hot); transform: rotate(45deg); }
.nav-links { display: flex; gap: 28px; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); }

.hero { text-align: center; padding: clamp(64px, 12vw, 140px) 16px 40px; max-width: 1100px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--mono); color: var(--muted); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
.hero h1 { font-size: clamp(38px, 7vw, 84px); margin: 24px 0 20px; font-weight: 700; }
.molten { background: linear-gradient(90deg, var(--hot), var(--hot2), var(--hot)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 6s linear infinite; }
@keyframes flow { to { background-position: 200% center; } }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 680px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.ticker { margin-top: 64px; overflow: hidden; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 40px; padding: 14px 0; width: max-content; animation: scroll 40s linear infinite; font: 13px var(--mono); color: var(--muted); }
.ticker-track span b { color: var(--text); font-weight: 600; }
.ticker-track span i { font-style: normal; color: var(--ok); }
@keyframes scroll { to { transform: translateX(-50%); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1100px; margin: 0 auto; padding: 24px 16px; gap: 16px; }
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
.stat span { color: var(--muted); font-size: 14px; }
.stat .cite, .ticker-track small { display: block; font: 10.5px var(--mono); color: #6f6b64; margin-top: 2px; letter-spacing: .04em; }
.ticker-track small { display: inline; margin-left: 4px; }

.section { max-width: 1160px; margin: 0 auto; padding: clamp(64px, 10vw, 120px) 16px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 52px); margin-bottom: 14px; }
.section-head p:not(.kicker) { color: var(--muted); font-size: 18px; margin: 0; }

/* quote */
.quote-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.quote-form { padding: 28px; display: grid; gap: 22px; }
.quote-form label { display: grid; gap: 10px; font-weight: 500; font-size: 14px; color: var(--muted); }
.quote-form label output { font: 600 14px var(--mono); color: var(--text); justify-self: end; margin-top: -30px; }
.quote-form .check { display: flex; align-items: center; gap: 10px; color: var(--text); cursor: pointer; }
.check input { accent-color: var(--hot); width: 18px; height: 18px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; background: var(--bg2); padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.seg button { flex: 1; min-width: 90px; padding: 9px 10px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; transition: .2s; }
.seg button.on { background: var(--text); color: var(--bg); font-weight: 600; }
select { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 4px; background: var(--line); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 4px rgba(255,106,19,.25); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--hot); cursor: grab; }

.quote-result { padding: 28px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.quote-result::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,106,19,.25), transparent 70%); }
.qr-top { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 64px; font-weight: 700; letter-spacing: -0.03em; transition: color .3s; }
.price small { font-size: 18px; color: var(--muted); margin-left: 6px; font-weight: 500; }
.price.flash { color: var(--hot2); }
.qr-rows { display: grid; gap: 10px; }
.qr-rows div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.qr-rows span { color: var(--muted); }
.conf-bar { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; }
.conf-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--hot), var(--ok)); transition: width .5s; }
.fine { color: var(--muted); font-size: 14px; margin: 0; }
.quote-result .btn { margin-top: auto; }

/* flywheel */
.flywheel-wrap { display: grid; grid-template-columns: 420px 1fr; gap: 32px; align-items: center; }
#flywheel { width: 100%; max-width: 420px; }
#spinRing { transform-origin: 210px 210px; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fw-center { font: 700 26px "Space Grotesk"; fill: var(--text); letter-spacing: .1em; }
.fw-sub { font: 12px var(--mono); fill: var(--muted); }
.fw-node { cursor: pointer; }
.fw-node circle { fill: var(--card); stroke: var(--line); stroke-width: 2; transition: .25s; }
.fw-node text { font: 600 12px "Space Grotesk"; fill: var(--text); pointer-events: none; }
.fw-node:hover circle, .fw-node.on circle { stroke: var(--hot); fill: #23140a; }
.fw-node.on circle { filter: drop-shadow(0 0 12px rgba(255,106,19,.7)); }
.fw-detail { padding: 32px; min-height: 260px; }
.fw-detail h3 { font-size: 30px; margin: 8px 0 12px; }
.fw-detail p { color: var(--muted); font-size: 17px; }
.fw-detail .fw-metric { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; }
.fw-metric b { font-size: 40px; color: var(--hot2); }
.fw-detail button { margin-top: 18px; }

.netfx { padding: 28px; margin-top: 32px; }
.netfx-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.netfx-head h3 { font-size: 24px; }
.netfx-val { text-align: right; }
.netfx-val b { font-size: 36px; display: block; }
.netfx-val span { color: var(--muted); font-size: 13px; }
.netfx-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.netfx-metrics div { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.netfx-metrics span { color: var(--muted); font-size: 13px; display: block; }
.netfx-metrics b { font-size: 24px; font-family: var(--mono); }
#netCanvas { width: 100%; display: block; }

.layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.layer { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; transition: transform .3s, border-color .3s;
  opacity: 0; transform: translateY(24px); }
.layer.in { opacity: 1; transform: none; transition: opacity .6s calc(var(--d) * .12s), transform .6s calc(var(--d) * .12s), border-color .3s; }
.layer:hover { border-color: var(--hot); transform: translateY(-4px); }
.layer-n { font: 600 12px var(--mono); color: var(--hot2); }
.layer h4 { font-size: 19px; margin: 10px 0; }
.layer p { color: var(--muted); font-size: 14px; min-height: 110px; }
.meter { height: 5px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--hot), var(--hot2)); transition: width 1.2s .3s; }
.layer.in .meter i { width: var(--w); }
.layer small { color: var(--muted); font: 12px var(--mono); }

/* pricing */
.toggle { display: inline-flex; position: relative; margin-top: 24px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; cursor: pointer; user-select: none; }
.toggle span { position: relative; z-index: 1; padding: 8px 18px; font-size: 14px; color: var(--muted); transition: color .25s; }
.toggle span.on { color: var(--bg); font-weight: 600; }
.toggle i { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--text); transition: .3s cubic-bezier(.5,1.6,.4,1); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; transition: transform .25s; }
.tier:hover { transform: translateY(-4px); }
.tier.hot { border-color: var(--hot); box-shadow: 0 0 60px -20px rgba(255,106,19,.6); }
.tier .badge { position: absolute; top: 20px; right: 20px; }
.tier h4 { font-size: 20px; }
.tier-price b { font-size: 48px; }
.tier-price small { color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; color: var(--muted); font-size: 15px; flex: 1; }
.tier li::before { content: "◆"; color: var(--hot); margin-right: 10px; font-size: 10px; vertical-align: 2px; }

.final { text-align: center; padding: clamp(80px, 12vw, 160px) 16px; }
.final h2 { font-size: clamp(32px, 5vw, 60px); margin-bottom: 28px; }
.foot { display: flex; justify-content: space-between; padding: 24px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .quote-grid, .flywheel-wrap { grid-template-columns: 1fr; }
  #flywheel { margin: 0 auto; }
  .layers, .tiers { grid-template-columns: 1fr 1fr; }
  .stats, .netfx-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .layers, .tiers { grid-template-columns: 1fr; }
  .price { font-size: 48px; }
  .foot { flex-direction: column; gap: 6px; }
  .nav .btn { padding: 9px 14px; font-size: 14px; }
}

/* ============ DASHBOARD ============ */
.dash { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; background: var(--bg2); }
.side .brand { padding: 6px 10px 22px; }
.side a.item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; cursor: pointer; }
.side a.item:hover { background: rgba(255,255,255,.04); color: var(--text); }
.side a.item.on { background: rgba(255,106,19,.12); color: var(--text); }
.side a.item.on svg { color: var(--hot); }
.side svg { width: 18px; height: 18px; flex-shrink: 0; }
.side .spacer { flex: 1; }
.side .org { display: flex; gap: 10px; align-items: center; padding: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--hot), var(--hot2)); display: grid; place-items: center; color: #140800; font-weight: 700; }
.main { padding: 24px clamp(16px, 3vw, 36px) 48px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.topbar h1 { font-size: 28px; }
.topbar p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.range { display: flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.range button { border: 0; background: none; padding: 7px 12px; border-radius: 7px; color: var(--muted); cursor: pointer; font-size: 13px; }
.range button.on { background: var(--text); color: var(--bg); font-weight: 600; }
.search { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 220px; color: var(--text); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi b { display: block; font-size: 30px; margin: 6px 0 4px; font-weight: 700; letter-spacing: -0.02em; }
.delta { font: 600 12px var(--mono); }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
.kpi svg.spark { position: absolute; right: 14px; bottom: 14px; width: 90px; height: 34px; }

.grid2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.panel { padding: 20px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.panel-head h3 { font-size: 16px; font-weight: 600; }
.panel-head small { color: var(--muted); font-size: 12px; font-family: var(--mono); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-box { position: relative; }
.chart-box canvas { width: 100%; display: block; }
.tip { position: absolute; pointer-events: none; background: #000; border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; font: 12px var(--mono); opacity: 0; transition: opacity .15s; white-space: nowrap; z-index: 5; }

.moat-score { display: flex; align-items: center; gap: 16px; }
.moat-score .big { font-size: 52px; font-weight: 700; line-height: 1; }
.moat-score .big small { font-size: 18px; color: var(--muted); }
#radar { width: 100%; max-width: 300px; display: block; margin: 0 auto; }
#radar .axis-label { font: 11px "Space Grotesk"; fill: var(--muted); }
.moat-list { display: grid; gap: 8px; margin-top: 8px; }
.moat-row { display: grid; grid-template-columns: 1fr 50px; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.moat-row:hover, .moat-row.on { background: rgba(255,106,19,.08); }
.moat-row .bar { grid-column: 1 / -1; height: 4px; background: var(--line); border-radius: 3px; overflow: hidden; }
.moat-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--hot), var(--hot2)); transition: width .6s; }
.moat-row b { text-align: right; font-family: var(--mono); }

.funnel { display: grid; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 110px 1fr 60px; align-items: center; gap: 10px; font-size: 13px; }
.funnel-row .track { height: 26px; background: var(--bg2); border-radius: 6px; overflow: hidden; }
.funnel-row .track i { display: block; height: 100%; background: linear-gradient(90deg, rgba(255,106,19,.9), rgba(255,178,58,.7)); border-radius: 6px; transition: width .7s; }
.funnel-row b { text-align: right; font-family: var(--mono); }
.funnel-row span { color: var(--muted); }

.feed { display: grid; gap: 2px; max-height: 300px; overflow: hidden; }
.feed-item { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 13px; animation: slidein .4s; }
.feed-item .dot { width: 8px; height: 8px; border-radius: 50%; }
.feed-item small { color: var(--muted); font-family: var(--mono); }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } }

.heat { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.heat div { height: 16px; border-radius: 3px; cursor: pointer; transition: transform .15s; }
.heat div:hover { transform: scale(1.25); outline: 1px solid var(--text); }
.heat-labels { display: flex; justify-content: space-between; color: var(--muted); font: 11px var(--mono); margin-top: 6px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; white-space: nowrap; }
th:hover { color: var(--text); }
th.sorted::after { content: " ↓"; color: var(--hot); }
th.sorted.asc::after { content: " ↑"; }
td { padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr { cursor: pointer; transition: background .15s; }
tbody tr:hover { background: rgba(255,255,255,.03); }
.mono { font-family: var(--mono); font-size: 13px; }
.pill { font: 600 11px var(--mono); padding: 3px 9px; border-radius: 999px; }
.pill.quoted { background: rgba(106,168,255,.14); color: var(--info); }
.pill.cutting { background: rgba(255,178,58,.14); color: var(--hot2); }
.pill.qc { background: rgba(200,140,255,.14); color: #c88cff; }
.pill.shipped { background: rgba(91,155,255,.14); color: var(--move); }
.pill.late { background: rgba(255,84,112,.14); color: var(--bad); }
.table-wrap { overflow-x: auto; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: none; padding: 5px 11px; border-radius: 999px; font-size: 12px; color: var(--muted); cursor: pointer; }
.chip.on { border-color: var(--hot); color: var(--text); background: rgba(255,106,19,.1); }

.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(420px, 100vw); background: var(--bg2); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); z-index: 50; padding: 28px; overflow-y: auto; }
.drawer.open { transform: none; box-shadow: -40px 0 80px rgba(0,0,0,.5); }
.drawer h2 { font-size: 24px; margin: 8px 0 4px; }
.drawer .close { position: absolute; top: 20px; right: 20px; background: none; border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; color: var(--text); }
.drawer dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.drawer dt { color: var(--muted); font-size: 12px; }
.drawer dd { margin: 2px 0 0; font-weight: 600; }
.steps { display: grid; gap: 0; margin: 20px 0; }
.step { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 18px; position: relative; font-size: 14px; }
.step::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step .s { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg2); z-index: 1; }
.step.done .s { background: var(--ok); border-color: var(--ok); }
.step.now .s { border-color: var(--hot); box-shadow: 0 0 0 4px rgba(255,106,19,.2); }
.step small { display: block; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: .3s; z-index: 40; }
.scrim.open { opacity: 1; pointer-events: auto; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 12px; font-weight: 600; transition: transform .35s cubic-bezier(.2,1.4,.4,1); z-index: 60; }
.toast.show { transform: translate(-50%, 0); }
.menu-btn { display: none; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dash { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 45; width: 240px; transform: translateX(-100%); transition: transform .3s; }
  .side.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .search { width: 100%; }
  .kpis { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .layer { opacity: 1; transform: none; }
  .layer .meter i { width: var(--w); }
}

/* ============ MERGE: make (orange) + move (blue) ============ */
:root { --move: #5b9bff; --move2: #8fbcff; }
.and { font-style: normal; color: var(--move); }
.modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.modes span { font-size: 13px; color: var(--muted); padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(91,155,255,.04); transition: .2s; }
.modes span:hover { border-color: var(--move); color: var(--text); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qr-rows i { font-style: normal; color: var(--text); }
.modes-pick { display: grid; gap: 6px; }
.mp { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; font-size: 13px; text-align: left; transition: .2s; }
.mp:hover { border-color: var(--move); }
.mp.on { border-color: var(--move); background: rgba(91,155,255,.1); }
.mp b { font-size: 14px; }
.mp span { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.mp .rel { color: var(--ok); }
.mp .tag { font: 600 10px var(--mono); color: var(--move2); margin-left: 6px; text-transform: uppercase; }
.vs { font-size: 13px; color: var(--muted); padding: 12px; border-radius: 10px; border: 1px dashed var(--line); }
.vs b { color: var(--ok); }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how-step { padding: 24px; transition: transform .25s, border-color .25s; }
.how-step:hover { transform: translateY(-4px); border-color: var(--move); }
.how-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--hot), var(--move)); color: #fff; font-weight: 700; margin-bottom: 14px; }
.how-step h4 { font-size: 18px; margin-bottom: 8px; }
.how-step p { color: var(--muted); font-size: 14px; margin: 0; }
.final .hero-cta { margin-top: 8px; }
.pill.transit { background: rgba(91,155,255,.14); color: var(--move); }
.pill.delivered { background: rgba(61,220,151,.14); color: var(--ok); }
.mode-tag { font: 600 11px var(--mono); color: var(--move2); }
.chip-sm { padding: 3px 9px; }
.src-note { font: 11px var(--mono); color: var(--muted); }
@media (max-width: 900px) { .how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .how, .two { grid-template-columns: 1fr; } .mp { grid-template-columns: 1fr auto auto; } .mp .rel { display: none; } }

/* ZIP destination + estimate labelling (landing quote) */
#destZip { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); font: 600 15px var(--mono); letter-spacing: .08em; }
#destZip:focus { outline: none; border-color: var(--move); box-shadow: 0 0 0 3px rgba(91,155,255,.15); }
.zip-name { font-size: 12px; color: var(--move2); margin-top: -4px; }
.zip-name.bad { color: var(--bad); }
.est { display: block; font-size: 11.5px; color: #6f6b64; margin-top: 4px; }

/* Freight lanes panel (FAF) */
#lanesPanel { margin-bottom: 16px; }
.lanes-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: center; margin-bottom: 14px; }
.lanes-top .supply-totals { margin: 0; }
.ms-bar { display: flex; height: 14px; border-radius: 6px; overflow: hidden; background: #121216; }
.ms-bar i { display: block; height: 100%; }
.ms-truck { background: #5b9bff; } .ms-multiple { background: #ff6a13; } .ms-rail { background: #ffb23a; } .ms-air { background: #3ddc97; } .ms-water { background: #c88cff; } .ms-other, .ms-pipeline { background: #6f6b64; }
.ms-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 12px; color: #9b978f; }
.ms-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.lane { display: grid; grid-template-columns: 20px 74px 1fr 64px 62px; gap: 10px; align-items: center; font-size: 13px; }
.lane-n { color: #6f6b64; font: 11px "JetBrains Mono", monospace; }
.lane b { font: 600 13px "JetBrains Mono", monospace; }
.lane .track { height: 12px; background: #121216; border-radius: 4px; overflow: hidden; }
.lane .track i { display: block; height: 100%; background: linear-gradient(90deg, #5b9bff, #8fbcff); border-radius: 4px; transition: width .6s; }
.lane-v { text-align: right; font: 600 12.5px "JetBrains Mono", monospace; }
.lane-t { color: #8fbcff; font-size: 11.5px; }
@media (max-width: 900px) { .lanes-top, .lanes { grid-template-columns: 1fr; } }
.shop-link { color: var(--hot2); font-weight: 700; text-decoration: none; border-bottom: 1px dashed rgba(255,178,58,.5); }
.shop-link:hover { border-bottom-style: solid; }
.caps { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.caps i { font-style: normal; font-size: 10.5px; color: var(--hot2); border: 1px solid rgba(255,106,19,.35); border-radius: 999px; padding: 1px 7px; }
#shopNetPanel { margin-bottom: 16px; }
.shopnet { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.sn { background: #121216; border: 1px solid #2a2a31; border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.sn-top { display: flex; justify-content: space-between; gap: 8px; }
.sn-top b { font-size: 14px; }
.sn-top span { font: 11px "JetBrains Mono", monospace; color: #9b978f; white-space: nowrap; }
.sn small { color: #9b978f; font-size: 12px; }
.sn-caps span { color: #ffb23a; border-color: rgba(255,106,19,.35); }
.sn a { font-size: 12px; color: #8fbcff; text-decoration: none; }
.net-tools { display: flex; gap: 8px; margin-bottom: 12px; }
.net-tools .search { flex: 1; width: auto; }
.net-more { margin: 12px auto 0; display: flex; }
.net-more[hidden] { display: none; }

/* ============ Ordering + shop sign-up modals ============ */
.order-fine { text-align: center; margin-top: -6px; font-size: 12.5px; }
#orderBtn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
dialog.modal { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; padding: 28px; border-radius: 18px;
  background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(0,0,0,.6); }
dialog.modal::backdrop { background: rgba(5,5,7,.72); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: modalIn .25s cubic-bezier(.2,.9,.3,1.2); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal h3 { font-size: 24px; margin: 4px 0 14px; }
.modal-x { position: absolute; top: 14px; right: 14px; }
.modal-x button { background: none; border: 1px solid var(--line); border-radius: 9px; width: 34px; height: 34px; color: var(--text); cursor: pointer; }
.modal form:not(.modal-x) { display: grid; gap: 14px; }
.modal label { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.modal input:not([type=checkbox]), .modal textarea, .modal select { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); font: inherit; font-size: 14px; }
.modal input:focus, .modal textarea:focus, .modal select:focus { outline: none; border-color: var(--hot); box-shadow: 0 0 0 3px rgba(255,106,19,.15); }
.modal input[type=file] { padding: 9px; }
.modal small { font-size: 11.5px; color: #6f6b64; }
.modal fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; }
.modal legend { font-size: 13px; color: var(--muted); padding: 0 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.checks label { display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 400; cursor: pointer; }
.checks input { accent-color: var(--hot); width: 16px; height: 16px; }
.req { color: var(--hot2); font: 600 10.5px var(--mono); text-transform: uppercase; }
.opt { color: #6f6b64; font-size: 11.5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.order-sum { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; display: grid; gap: 7px; }
.os-row { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; }
.os-row span { color: var(--muted); white-space: nowrap; }
.os-row b { text-align: right; font-weight: 600; }
.os-row.big b { font-size: 20px; color: var(--hot2); }
.order-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.order-steps b { color: var(--text); }
.form-msg { margin: 0; min-height: 18px; font-size: 13.5px; color: var(--muted); }
.form-msg.bad { color: var(--bad); }
.form-msg.ok { color: var(--ok); }
@media (max-width: 560px) { dialog.modal { padding: 20px; } .os-row { flex-direction: column; gap: 2px; } .os-row b { text-align: left; } }

/* ============ Private admin panel ============ */
#adminPanel { margin-bottom: 16px; border-color: rgba(255,106,19,.35); }
.admin-lock { display: flex; gap: 8px; margin: 4px 0 8px; }
.admin-lock input { flex: 1; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); font: inherit; }
.admin-h { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 14px 0 8px; font-family: var(--mono); }
.admin-t td { white-space: normal; vertical-align: top; font-size: 13px; }
.admin-t small { color: var(--muted); }
.admin-t a { color: var(--move2); }
.admin-actions { display: grid; gap: 6px; min-width: 190px; }
.admin-actions input { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; color: var(--text); font: inherit; font-size: 13px; width: 100%; }
.admin-actions .btn { padding: 7px 12px; font-size: 13px; }
.pill.st-authorized { background: rgba(255,178,58,.14); color: var(--hot2); }
.pill.st-confirmed, .pill.st-in_production { background: rgba(91,155,255,.14); color: var(--move); }
.pill.st-shipped { background: rgba(200,140,255,.14); color: #c88cff; }
.pill.st-delivered { background: rgba(61,220,151,.14); color: var(--ok); }
.pill.st-released, .pill.st-cancelled, .pill.st-expired { background: rgba(255,255,255,.06); color: var(--muted); }

/* Footer data credits */
.foot { flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--text); }
.foot-src { flex-basis: 100%; margin: 4px 0 0; font-size: 11.5px; line-height: 1.5; color: #6f6b64; }
/* stop a 1px horizontal wiggle on narrow phones */
.dash { overflow-x: clip; }
