/* ═══════════════════════════════════════════════════════════
   H.I.V.E. — Hyper Integrated Visibility Engine
   ive.css — Complete stylesheet
   Aesthetic: War Room Command Interface
   Based on ive-endgame-preview.html design language
   Colors: Void black · Purple primary · Gold/green/cyan data
═══════════════════════════════════════════════════════════ */

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }

/* ─── FONTS ─────────────────────────────────────────────── */
/* ─── CSS VARIABLES ─────────────────────────────────────── */
:root {
  /* Core palette — matches endgame preview exactly */
  --bg:          #020812;
  --panel:       #060f1e;
  --surface:     #0a1628;
  --border:      rgba(77,166,255,.28);
  --border-dim:  rgba(77,166,255,.12);

  /* Primary — IVE cool blue (was purple #4da6ff) */
  --ive:         #4da6ff;
  --ive2:        #1f7aff;
  --ive-dim:     rgba(77,166,255,.45);
  --ive-glow:    rgba(77,166,255,.22);

  /* Data stream colors */
  --cyan:        #66d9ff;
  --green:       #00e676;
  --gold:        #e8b84b;
  --red:         #ff4444;
  --amber:       #ff8c00;
  --pink:        #ff44aa;

  /* Text — brighter so it doesn't fade into the war-room background */
  --text-primary:   #ffffff;
  --text-secondary: rgba(255,255,255,0.88);
  --text-dim:       rgba(255,255,255,0.65);
  --text-label:     rgba(77,166,255,.85);

  /* Fonts */
  --font-display: 'Audiowide', 'Courier New', monospace;
  --font-mono:    'Share Tech Mono', 'Courier New', monospace;
  --font-ui:      'Audiowide', 'Courier New', monospace;

  /* Layout */
  --topbar-h:    52px;
  --statusbar-h: 30px;
  --left-w:      280px;
  --right-w:     200px;
}

/* ─── BASE ───────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: #e0e8f0;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

/* ─── SCROLLBARS ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

/* ─── SCANLINE EFFECT ────────────────────────────────────── */
/* ─── APP SHELL ──────────────────────────────────────────── */
#app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════════════════════ */
.topbar {
  height: var(--topbar-h);
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  background: rgba(2,6,18,.99);
  border-bottom: 2px solid rgba(77,166,255,.35);
  position: relative;
  z-index: 100;
}
.topbar::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(77,166,255,.12), transparent);
}

.tb-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border-right: 1px solid var(--border);
  min-width: 220px;
}
.tb-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(var(--ive2), var(--ive), #d080ff, var(--ive), var(--ive2));
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 0 18px rgba(77,166,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  animation: orbHue 8s linear infinite;
}
@keyframes orbHue { to { filter: hue-rotate(360deg); } }

.tb-id { display: flex; flex-direction: column; gap: 3px; }
.tb-name {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ive);
  letter-spacing: .18em;
  white-space: nowrap;
}
.tb-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(77,166,255,.4);
  letter-spacing: .15em;
}

.tb-stats {
  display: flex;
  align-items: stretch;
  border-right: 1px solid var(--border-dim);
}
.tb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-right: 1px solid var(--border-dim);
  min-width: 88px;
}
.tb-stat-val {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .05em;
  color: #fff;
  line-height: 1;
}
.tb-stat-val.ive    { color: var(--ive); }
.tb-stat-val.cyan   { color: var(--cyan); }
.tb-stat-val.green  { color: var(--green); }
.tb-stat-val.amber  { color: var(--amber); }
.tb-stat-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .18em;
  margin-top: 3px;
  text-transform: uppercase;
}
.tb-right {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  margin-left: auto;
  border-left: 1px solid var(--border-dim);
}
.tb-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ive);
  box-shadow: 0 0 12px var(--ive);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%,100% { opacity:1; box-shadow:0 0 12px var(--ive); }
  50%      { opacity:.5; box-shadow:0 0 4px var(--ive); }
}
.tb-status-txt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(77,166,255,.8);
  letter-spacing: .18em;
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT ROW
═══════════════════════════════════════════════════════════ */
.main-row {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

/* ═══════════════════════════════════════════════════════════
   LEFT PANEL
═══════════════════════════════════════════════════════════ */
.panel--left {
  width: var(--left-w);
  flex-shrink: 0;
  background: rgba(4,8,20,.98);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

#setup-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
#active-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

/* Panel header */
.panel__header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

/* H.I.V.E. Logo */
.hive-logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .25em;
  line-height: 1;
  margin-bottom: 4px;
}
.hive-logo__h { color: var(--ive); }
.hive-logo__i { color: var(--cyan); }
.hive-logo__v { color: var(--green); }
.hive-logo__e { color: var(--gold); }
.hive-logo__dot { color: rgba(77,166,255,.35); font-size: 14px; }

.panel__subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(77,166,255,.4);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Panel section */
.panel__section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-dim);
}

/* Field labels */
.field-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(77,166,255,.6);
  letter-spacing: .2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.field-label-auto {
  color: rgba(77,166,255,.35);
  font-size: 11px;
  margin-left: 4px;
}

/* Text input */
.field-input {
  width: 100%;
  background: rgba(10,20,40,.8);
  border: 1px solid rgba(77,166,255,.25);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 12px;
  outline: none;
  letter-spacing: .05em;
  transition: border-color .2s;
}
.field-input::placeholder { color: rgba(77,166,255,.25); }
.field-input:focus { border-color: rgba(77,166,255,.6); box-shadow: 0 0 0 1px rgba(77,166,255,.15); }

/* ── HIVE STATE BLOCK ─────────────────────────────────────── */
.hive-state-block {
  padding: 16px;
  border-bottom: 1px solid var(--border-dim);
}
.hive-state-label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--ive);
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(77,166,255,.4);
}
.vp-bar-wrap {
  height: 4px;
  background: rgba(77,166,255,.1);
  margin-bottom: 8px;
  overflow: hidden;
}
.vp-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--ive2), var(--ive));
  box-shadow: 0 0 8px var(--ive);
  transition: width .6s cubic-bezier(.22,1,.36,1);
  width: 0%;
}
.vp-readout {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  letter-spacing: .1em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vp-sep { color: rgba(77,166,255,.3); }
#vp-current, #vp-next { color: rgba(255,255,255,0.7); }

/* ── TYPE GRID ───────────────────────────────────────────── */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.type-btn {
  background: rgba(10,20,40,.6);
  border: 1px solid rgba(77,166,255,.15);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 8px 4px;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  transition: all .15s;
  line-height: 1.3;
}
.type-btn:hover {
  border-color: rgba(77,166,255,.4);
  color: rgba(255,255,255,0.8);
  background: rgba(77,166,255,.08);
}
.type-btn--active {
  border-color: var(--ive);
  color: var(--ive);
  background: rgba(77,166,255,.12);
  box-shadow: 0 0 8px rgba(77,166,255,.2);
}

/* ── TYPE BUTTON INNER STRUCTURE (v6) ─────────────────── */
.type-btn__icon {
  font-size: 14px;
  display: block;
  margin-bottom: 3px;
}
.type-btn__label {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  font-weight: bold;
}
.type-btn__hint {
  display: none;  /* tooltip only — shown via title attr */
}

/* ── SECONDARY (HYBRID) TYPE GRID ──────────────────────── */
.panel__section--type2 {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed rgba(77,166,255,.12);
}
.type2-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin: 6px 0 10px;
  letter-spacing: .02em;
}
.type-grid--secondary .type-btn { /* re-styled via .type2-btn below */ }
.type2-btn {
  background: rgba(10,20,40,.4);
  border: 1px dashed rgba(77,166,255,.2);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 6px 4px;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  transition: all .15s;
  line-height: 1.3;
}
.type2-btn:hover {
  border-color: rgba(77,166,255,.5);
  color: rgba(255,255,255,0.75);
  background: rgba(77,166,255,.06);
  border-style: solid;
}
.type2-btn--active {
  border-style: solid;
  border-color: #4da6ff;
  color: #4da6ff;
  background: rgba(77,166,255,.12);
  box-shadow: 0 0 8px rgba(77,166,255,.25);
}

/* ── ACTIVE VIEW: TYPE LABEL + CHANGE BUTTON ─────────── */
.active-type-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 4px 0;
}
.active-type-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(77,166,255,.65);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.active-type-change {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(255,255,255,0.8);
  background: transparent;
  border: 1px solid rgba(77,166,255,.22);
  padding: 2px 7px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all .15s;
}
.active-type-change:hover {
  border-color: rgba(77,166,255,.55);
  color: #ffffff;
  background: rgba(77,166,255,.12);
}

/* ── FOCUS CHIP (shown at top of gutters when a node is focused) ── */
.focus-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0 10px 8px;
  padding: 6px 10px;
  background: linear-gradient(90deg, rgba(77,166,255,.18), rgba(77,166,255,.06));
  border: 1px solid rgba(77,166,255,.4);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.focus-chip__label {
  color: #9ec7ff;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.focus-chip__clear {
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,0.55);
  transition: all .15s;
  font-size: 11px;
  flex-shrink: 0;
}
.focus-chip__clear:hover {
  color: #ff6677;
  border-color: rgba(255,102,119,.5);
  background: rgba(255,102,119,.1);
}

/* ── SVG SURFACE GROUPS — graph dimming in focus mode ──── */
/* `opacity` is set inline by ive-graph.js per surface group; these
   just smooth the transition when focus toggles on/off. */
.sg {
  transition: opacity 0.25s ease;
}
.sg--focused {
  /* Subtle emphasis on the selected surface — filter makes it pop a touch */
  filter: drop-shadow(0 0 4px rgba(77,166,255,.4));
}

/* ── AGGRESSION MODES ────────────────────────────────────── */
.aggr-stack { display: flex; flex-direction: column; gap: 4px; }
.aggr-btn {
  background: rgba(10,20,40,.6);
  border: 1px solid rgba(77,166,255,.15);
  color: rgba(255,255,255,0.8);
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.aggr-btn:hover {
  border-color: rgba(77,166,255,.4);
  background: rgba(77,166,255,.08);
}
.aggr-btn--active {
  border-color: var(--ive);
  background: rgba(77,166,255,.1);
  box-shadow: inset 0 0 12px rgba(77,166,255,.08);
}
.aggr-btn__name {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(255,255,255,0.8);
}
.aggr-btn--active .aggr-btn__name { color: var(--ive); }
.aggr-btn__desc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .08em;
}

/* ── WIRE BUTTON ─────────────────────────────────────────── */
.wire-btn {
  width: calc(100% - 32px);
  margin: 16px;
  background: rgba(77,166,255,.1);
  border: 1px solid rgba(77,166,255,.5);
  color: var(--ive);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .2em;
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .2s;
  text-transform: uppercase;
}
.wire-btn:hover {
  background: rgba(77,166,255,.18);
  border-color: var(--ive);
  box-shadow: 0 0 20px rgba(77,166,255,.25), inset 0 0 20px rgba(77,166,255,.06);
}
.wire-btn:active { background: rgba(77,166,255,.25); }
.wire-btn__icon { font-size: 18px; opacity: .7; }

/* ── SURFACE LIST (post-wire left panel) ─────────────────── */
.surface-list { display: flex; flex-direction: column; }

.surf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-dim);
  cursor: pointer;
  transition: background .15s;
}
.surf-row:hover { background: rgba(77,166,255,.05); }
.surf-row:last-child { border-bottom: none; }

.surf-row__node {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(77,166,255,.3);
  background: rgba(10,20,40,.8);
  transition: all .4s;
}
.surf-row__icon { font-size: 12px; line-height: 1; }

.surf-row__body { flex: 1; min-width: 0; }
.surf-row__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.surf-row__name {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.surf-row__pct {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 4px;
}
.surf-row__bar-wrap {
  height: 2px;
  background: rgba(77,166,255,.1);
  margin-bottom: 3px;
}
.surf-row__bar-fill {
  height: 100%;
  transition: width .6s cubic-bezier(.22,1,.36,1);
  min-width: 0;
}
.surf-row__footer {
  display: flex;
  align-items: center;
  gap: 6px;
}
.surf-row__status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.surf-row__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}
.surf-row__scan {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(77,166,255,.5);
  margin-left: auto;
  padding: 1px 5px;
  border: 1px solid rgba(77,166,255,.2);
}
.surf-row__pips {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.surf-row__pip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid rgba(77,166,255,.2);
  background: transparent;
  transition: all .3s;
}
.surf-row__pip--done { /* color set inline */ }
.surf-row__pip--next { animation: pipPulse 1.5s ease-in-out infinite; }
@keyframes pipPulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── ACTIVE TARGET NAME ───────────────────────────────────── */
.active-target-name {
  font-family: var(--font-display);
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  letter-spacing: .12em;
  margin-top: 4px;
}

/* ── RESET BUTTON ────────────────────────────────────────── */
.reset-btn {
  margin: 12px 16px 16px;
  background: transparent;
  border: 1px solid rgba(255,68,68,.25);
  color: rgba(255,68,68,.5);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .15em;
  padding: 8px 14px;
  cursor: pointer;
  transition: all .15s;
  width: calc(100% - 32px);
  text-transform: uppercase;
}
.reset-btn:hover {
  border-color: rgba(255,68,68,.5);
  color: rgba(255,68,68,.9);
  background: rgba(255,68,68,.06);
}

/* ── NEW TARGET BUTTON ───────────────────────────────────── */
.new-target-btn {
  margin: 12px 16px 16px;
  background: rgba(77,166,255,.08);
  border: 1px solid rgba(77,166,255,.3);
  color: rgba(77,166,255,.8);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .15em;
  padding: 10px 14px;
  cursor: pointer;
  transition: all .15s;
  width: calc(100% - 32px);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.new-target-btn:hover {
  border-color: var(--ive);
  color: var(--ive);
  background: rgba(77,166,255,.15);
}

/* ═══════════════════════════════════════════════════════════
   CENTER PANEL — NEURAL GRAPH
═══════════════════════════════════════════════════════════ */
.panel--center {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  min-width: 0;
}
.panel--center::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(77,166,255,.07) 0%, transparent 65%);
}

.graph-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.graph-container canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#hive-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
#hive-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ── CENTER GUTTERS — floating action/metric columns over the graph ── */
.center-gutter {
  position: absolute;
  top: 48px;      /* clear the HUD label at top */
  bottom: 48px;   /* clear the slider / corners */
  width: 280px;
  z-index: 6;     /* above graph (0/1), below overlays (10+) */
  padding: 10px 0;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: auto;
  /* Subtle scrim so cards are readable over the animated graph behind */
  background: linear-gradient(
    to var(--scrim-dir, right),
    rgba(4,8,20,.88) 0%,
    rgba(4,8,20,.72) 55%,
    rgba(4,8,20,.0)  100%
  );
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
/* Belt-and-suspenders: even if .hidden is overridden, a gutter without
   the show class can't intercept clicks. */
.center-gutter.hidden { pointer-events: none !important; }
.center-gutter--left  { left: 10px;  --scrim-dir: right; border-right: 1px solid rgba(77,166,255,.08); }
.center-gutter--right { right: 10px; --scrim-dir: left;  border-left:  1px solid rgba(77,166,255,.08); }

.center-gutter::-webkit-scrollbar { width: 3px; }
.center-gutter::-webkit-scrollbar-thumb { background: rgba(77,166,255,.25); }

/* Section header for each gutter */
.center-gutter__header {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .28em;
  color: rgba(77,166,255,.5);
  padding: 4px 14px 10px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(77,166,255,.12);
  margin-bottom: 4px;
}

/* Sections inside the gutter: slightly darker card look with a hair of border,
   sit on top of the blurred scrim. Keep them visually distinct from right-panel. */
.center-gutter .intel-section {
  border: 1px solid rgba(77,166,255,.10);
  border-radius: 2px;
  margin: 0 10px 10px;
  padding: 10px 12px;
  background: rgba(8,14,28,.55);
}
.center-gutter .intel-section__label {
  font-size: 9.5px;
  margin-bottom: 8px;
}
.center-gutter .intel-section--score {
  background: rgba(77,166,255,.05);
  border-color: rgba(77,166,255,.2);
}
.center-gutter .intel-section--quickwin {
  background: rgba(0,255,136,.04);
  border-color: rgba(0,255,136,.25);
}

/* Compact quick-win card variant used inside the gutter */
.quick-win-card--compact {
  padding: 0;
}
.quick-win-card--compact .quick-win-card__title {
  font-size: 13px;
  line-height: 1.3;
  margin: 0 0 6px;
  color: #e0ffe5;
}
.quick-win-card--compact .quick-win-card__time,
.quick-win-card--compact .quick-win-card__impact {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(0,255,136,.7);
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.quick-win-card--compact .quick-win-card__btn {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(0,255,136,.12);
  border: 1px solid rgba(0,255,136,.4);
  color: #00ff88;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .18em;
  cursor: pointer;
  text-transform: uppercase;
  transition: background .15s;
}
.quick-win-card--compact .quick-win-card__btn:hover {
  background: rgba(0,255,136,.25);
}

/* Hide gutters on narrow screens (< 1400px) — right panel & graph get priority */
@media (max-width: 1400px) {
  .center-gutter { display: none !important; }
}

/* ── CORNER BRACKETS ─────────────────────────────────────── */
.map-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(77,166,255,.35);
  border-style: solid;
  pointer-events: none;
  z-index: 5;
}
.map-corner.tl { top:10px; left:10px;  border-width:2px 0 0 2px; }
.map-corner.tr { top:10px; right:10px; border-width:2px 2px 0 0; }
.map-corner.bl { bottom:10px; left:10px;  border-width:0 0 2px 2px; }
.map-corner.br { bottom:10px; right:10px; border-width:0 2px 2px 0; }

/* ── GRAPH HUD OVERLAYS ──────────────────────────────────── */
.map-hud-tl {
  position: absolute;
  top: 14px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(77,166,255,.45);
  letter-spacing: .18em;
  pointer-events: none;
  z-index: 5;
  line-height: 1.7;
  text-transform: uppercase;
}
.map-hud-tl .mh-sub {
  font-size: 12px;
  color: rgba(77,166,255,.3);
  display: block;
}
.map-hud-br {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: .15em;
  pointer-events: none;
  z-index: 5;
  text-align: right;
}

/* ── DEMO BADGE ──────────────────────────────────────────── */
.demo-badge {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(77,166,255,.6);
  letter-spacing: .22em;
  padding: 5px 14px;
  border: 1px solid rgba(77,166,255,.2);
  background: rgba(2,8,18,.8);
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}
.demo-badge__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ive);
  box-shadow: 0 0 8px var(--ive);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}
.demo-badge.hidden { display: none; }

/* ── SLIDER ──────────────────────────────────────────────── */
.slider-wrap {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
  pointer-events: all;
}
.slider-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .1em;
  white-space: nowrap;
}
.slider-label--check {
  color: rgba(77,166,255,.5);
}
.demo-slider {
  -webkit-appearance: none;
  width: 240px;
  height: 4px;
  background: rgba(77,166,255,.12);
  outline: none;
  cursor: pointer;
}
.demo-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ive);
  box-shadow: 0 0 10px rgba(77,166,255,.5);
  cursor: grab;
}
.demo-slider::-webkit-slider-thumb:active { cursor: grabbing; }
.slider-wrap.hidden { display: none; }

/* ── REALITY OVERLAY ─────────────────────────────────────── */
.reality-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  background: rgba(2,8,18,.75);
  backdrop-filter: blur(2px);
  pointer-events: all;
  animation: realityFadeIn .6s ease;
}
@keyframes realityFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reality-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  pointer-events: all;
}
.reality-overlay__top {
  font-family: var(--font-display);
  font-size: clamp(14px,2.2vw,22px);
  color: rgba(220,140,255,.9);
  letter-spacing: .22em;
  text-shadow: 0 0 30px rgba(220,140,255,.5);
}
.reality-overlay__line {
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77,166,255,.5), transparent);
  margin: 18px 0;
}
.reality-overlay__bottom {
  font-family: var(--font-display);
  font-size: clamp(12px,1.6vw,17px);
  color: rgba(255,68,68,.85);
  letter-spacing: .2em;
  margin-bottom: 10px;
}
.reality-overlay__state {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,68,68,.55);
  letter-spacing: .25em;
  margin-bottom: 28px;
}
.reality-overlay__btns {
  display: flex;
  gap: 12px;
}
.reality-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .18em;
  padding: 10px 20px;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  transition: all .2s;
  text-transform: uppercase;
}
.reality-btn--primary {
  color: rgba(77,166,255,1);
  border-color: rgba(77,166,255,.5);
}
.reality-btn--primary:hover {
  background: rgba(77,166,255,.12);
  border-color: rgba(77,166,255,.9);
  box-shadow: 0 0 20px rgba(77,166,255,.25);
}
.reality-btn--secondary {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.55);
}
.reality-btn--secondary:hover {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.7);
}
.reality-overlay.hidden { display: none; }

/* ── REALITY / FANTASY TOGGLE ────────────────────────────── */
.rf-toggle {
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(77,166,255,.8);
  background: rgba(2,8,18,.85);
  border: 1px solid rgba(77,166,255,.25);
  cursor: pointer;
  z-index: 6;
  user-select: none;
  transition: border-color .3s, color .3s, box-shadow .3s;
  white-space: nowrap;
}
.rf-toggle:hover {
  border-color: rgba(77,166,255,.6);
  color: rgba(77,166,255,1);
  box-shadow: 0 0 16px rgba(77,166,255,.2);
}
.rf-toggle.rf-toggle--fantasy {
  color: rgba(220,140,255,.95);
  border-color: rgba(220,140,255,.5);
  box-shadow: 0 0 20px rgba(220,140,255,.25), inset 0 0 12px rgba(220,140,255,.06);
}
.rf-toggle.rf-toggle--fantasy:hover {
  border-color: rgba(220,140,255,.85);
  box-shadow: 0 0 28px rgba(220,140,255,.4);
}
.rf-toggle__pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(77,166,255,.7);
  box-shadow: 0 0 8px rgba(77,166,255,.5);
  transition: background .3s, box-shadow .3s;
}
.rf-toggle--fantasy .rf-toggle__pip {
  background: rgba(220,140,255,1);
  box-shadow: 0 0 12px rgba(220,140,255,.8);
  animation: pipPulse .9s ease-in-out infinite;
}
@keyframes pipPulse {
  0%,100% { box-shadow: 0 0 8px rgba(220,140,255,.7); }
  50%      { box-shadow: 0 0 18px rgba(220,140,255,1); }
}
.rf-toggle.hidden { display: none; }

/* ═══════════════════════════════════════════════════════════
   RIGHT PANEL — INTEL
═══════════════════════════════════════════════════════════ */
.panel--right {
  width: var(--right-w);
  flex-shrink: 0;
  background: rgba(4,8,20,.98);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  z-index: 10;
}

/* ── INTEL PLACEHOLDER ───────────────────────────────────── */
.intel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 14px;
  padding: 24px;
}
.intel-placeholder__icon {
  font-size: 36px;
  color: rgba(77,166,255,.2);
  animation: pulseDot 3s ease-in-out infinite;
}
.intel-placeholder__text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(77,166,255,.3);
  letter-spacing: .2em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.8;
}

/* ── INTEL SECTION ───────────────────────────────────────── */
.intel-section {
  border-bottom: 1px solid var(--border-dim);
  padding: 12px 14px;
}
.intel-section__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .25em;
  color: rgba(77,166,255,.55);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
}
.intel-section--score {
  background: rgba(77,166,255,.03);
  border-bottom: 1px solid rgba(77,166,255,.15);
}
.intel-section--suppressors { /* handled by content */ }

/* ── SITE SCORE ──────────────────────────────────────────── */
.score-source-tag {
  font-size: 11px;
  color: rgba(77,166,255,.45);
  letter-spacing: .1em;
  padding: 2px 6px;
  border: 1px solid rgba(77,166,255,.2);
}
.score-composite {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-dim);
}
.score-composite-num {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  color: var(--ive);
  text-shadow: 0 0 20px rgba(77,166,255,.4);
}
.score-composite-grade {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}
.score-composite-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.score-no-scan {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
  letter-spacing: .05em;
}
.score-components { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.score-comp {}
.score-comp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}
.score-comp-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
}
.score-comp-val {
  font-family: var(--font-display);
  font-size: 13px;
}
.score-comp-bar {
  height: 3px;
  background: rgba(255,255,255,0.55);
  margin-bottom: 3px;
}
.score-comp-fill {
  height: 100%;
  transition: width .6s cubic-bezier(.22,1,.36,1);
}
.score-comp-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .06em;
}
.score-comp-google {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(77,166,255,.35);
  letter-spacing: .04em;
  margin-top: 1px;
}
.score-sources {
  padding-top: 8px;
  border-top: 1px solid var(--border-dim);
}
.score-source-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(77,166,255,.3);
  letter-spacing: .06em;
  line-height: 1.5;
}

/* ── SUPPRESSORS ─────────────────────────────────────────── */
.suppressor-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,68,68,.7);
  letter-spacing: .1em;
}
.intel-section--suppressors:has(.suppressor-item--critical) .intel-section__label { color: rgba(255,68,68,.7); }
.intel-section--suppressors:has(.suppressor-item--blocking) .intel-section__label { color: rgba(255,140,0,.7); }

.suppressor-clear {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: rgba(0,230,118,.7);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
}
.suppressor-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-dim);
}
.suppressor-item:last-child { border-bottom: none; }
.suppressor-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.suppressor-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  padding: 2px 6px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.suppressor-item--blocking  .suppressor-badge { color: rgba(255,68,68,.9);  border: 1px solid rgba(255,68,68,.3);  background: rgba(255,68,68,.06); }
.suppressor-item--critical  .suppressor-badge { color: rgba(255,140,0,.9);  border: 1px solid rgba(255,140,0,.3);  background: rgba(255,140,0,.06); }
.suppressor-item--warning   .suppressor-badge { color: rgba(232,184,75,.9); border: 1px solid rgba(232,184,75,.3); background: rgba(232,184,75,.06); }
.suppressor-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  letter-spacing: .06em;
}
.suppressor-fix {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .04em;
  line-height: 1.4;
  padding-left: 2px;
}

/* ── ENTITY STATUS ───────────────────────────────────────── */
.entity-checks { display: flex; flex-direction: column; gap: 0; }
.entity-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-dim);
}
.entity-check:last-child { border-bottom: none; }
.entity-check-icon {
  font-size: 14px;
  width: 18px;
  flex-shrink: 0;
  text-align: center;
}
.entity-check--done    .entity-check-icon { color: var(--green); }
.entity-check--urgent  .entity-check-icon { color: var(--amber); }
.entity-check--pending .entity-check-icon { color: rgba(255,255,255,0.55); }
.entity-check-body { flex: 1; min-width: 0; }
.entity-check-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(255,255,255,0.65);
}
.entity-check--done    .entity-check-label { color: rgba(255,255,255,0.7); }
.entity-check--urgent  .entity-check-label { color: rgba(255,255,255,0.9); }
.entity-check-why {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .04em;
  margin-top: 2px;
  line-height: 1.4;
}

/* ── RISK FLAGS ──────────────────────────────────────────── */
.risk-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,68,68,.6);
}
.risk-clear {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(0,230,118,.6);
  letter-spacing: .1em;
  padding: 8px 0;
}
.risk-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-dim);
}
.risk-item:last-child { border-bottom: none; }
.risk-item-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.risk-severity {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  padding: 2px 6px;
  border: 1px solid rgba(255,68,68,.3);
  color: rgba(255,68,68,.8);
  background: rgba(255,68,68,.06);
  text-transform: uppercase;
  flex-shrink: 0;
}
.risk-item-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  letter-spacing: .06em;
}
.risk-consequence {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,140,0,.6);
  letter-spacing: .04em;
  line-height: 1.4;
  margin-bottom: 3px;
}
.risk-fix {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .04em;
  line-height: 1.4;
}
.risk-source {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(77,166,255,.35);
  margin-top: 3px;
}

/* ── TRAJECTORY ──────────────────────────────────────────── */
.traj-top {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
}
.traj-sparkline-wrap {
  flex: 1;
  height: 40px;
  position: relative;
}
.traj-sparkline-svg { width: 100%; height: 100%; }
.traj-stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.traj-stat {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.traj-num {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ive);
}
.traj-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.traj-metrics-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.traj-metric {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  border: 1px solid var(--border-dim);
  background: rgba(10,20,40,.4);
}
.traj-metric-val {
  font-family: var(--font-display);
  font-size: 13px;
  display: block;
  margin-bottom: 2px;
}
.traj-metric-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── MISSION CARDS (right panel) ─────────────────────────── */
.mission-cards { display: flex; flex-direction: column; gap: 4px; }
.mission-card {
  background: rgba(10,20,40,.6);
  border: 1px solid var(--border-dim);
  border-left: 2px solid rgba(77,166,255,.4);
  padding: 9px 10px;
  cursor: pointer;
  position: relative;
  transition: all .15s;
}
.mission-card:hover {
  border-left-color: var(--ive);
  background: rgba(77,166,255,.06);
}
.mission-card--done { opacity: .4; }
.mission-card__surface {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.mission-card__title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  line-height: 1.35;
  margin-bottom: 5px;
  letter-spacing: .03em;
}
.mission-card__vp {
  position: absolute;
  top: 9px;
  right: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
}
.hud-mission-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hud-mission-impact {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1px 5px;
  border: 1px solid currentColor;
  opacity: .8;
}
.hud-mission-impact--critical { color: var(--red); }
.hud-mission-impact--high     { color: var(--cyan); }
.hud-mission-impact--medium   { color: var(--gold); }
.hud-mission-impact--low      { color: rgba(255,255,255,0.7); }
.hud-mission-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .06em;
}

/* ── DAY HEADER ──────────────────────────────────────────── */
.hud-day-header { margin-bottom: 8px; }
.hud-day-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(77,166,255,.6);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hud-today-vp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(232,184,75,.5);
  letter-spacing: .1em;
  margin-top: 2px;
}
.hud-empty {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  padding: 8px 0;
  letter-spacing: .06em;
}

/* ── STREAK BADGE ────────────────────────────────────────── */
.streak-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,140,0,.7);
  letter-spacing: .1em;
}

/* ── INVISIBILITY HOOK ───────────────────────────────────── */
.invisibility-hook { display: flex; flex-direction: column; gap: 8px; }
.invis-stat {
  font-family: var(--font-display);
  font-size: 32px;
  color: rgba(255,68,68,.9);
  text-shadow: 0 0 20px rgba(255,68,68,.3);
  line-height: 1;
}
.invis-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.invis-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  letter-spacing: .04em;
}
.invis-threat {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid currentColor;
  display: inline-block;
  margin-top: 4px;
}

/* ── MONETIZATION ────────────────────────────────────────── */
.monetization-display { display: flex; flex-direction: column; gap: 8px; }
.hud-mono-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mono-amount {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--green);
  text-shadow: 0 0 16px rgba(0,230,118,.3);
  line-height: 1;
}
.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.mono-locked {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .1em;
  line-height: 1.5;
}
.mono-range {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mono-range-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mono-range-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .08em;
}
.mono-range-val {
  font-family: var(--font-display);
  font-size: 12px;
}

/* ── METRICS ─────────────────────────────────────────────── */
.metrics-display { display: flex; flex-direction: column; gap: 6px; }
.metric-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.metric-icon { font-size: 12px; width: 16px; flex-shrink: 0; }
.metric-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .08em;
  flex: 1;
  text-transform: uppercase;
}
.metric-val {
  font-family: var(--font-display);
  font-size: 13px;
}
.metric-delta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}

/* ── EXPANSION TARGETS ───────────────────────────────────── */
.expansion-list { display: flex; flex-direction: column; gap: 4px; }
.expansion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-dim);
  cursor: pointer;
}
.expansion-item:last-child { border-bottom: none; }
.expansion-item__icon { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.expansion-item__name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  letter-spacing: .08em;
  flex: 1;
  text-transform: uppercase;
}
.expansion-item__vp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(232,184,75,.6);
  letter-spacing: .06em;
}

/* ── ATTENTION FLOW ──────────────────────────────────────── */
.attention-bars { display: flex; flex-direction: column; gap: 5px; }
.attention-item { display: flex; flex-direction: column; gap: 3px; }
.attention-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.attention-item__name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.attention-item__pct {
  font-family: var(--font-display);
  font-size: 12px;
}
.attention-bar-wrap {
  height: 3px;
  background: rgba(255,255,255,0.55);
}
.attention-bar-fill {
  height: 100%;
  transition: width .6s;
}

/* ── ACTIVITY FEED ───────────────────────────────────────── */
.activity-feed { display: flex; flex-direction: column; gap: 0; }
.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-dim);
}
.feed-item:last-child { border-bottom: none; }
.feed-icon { font-size: 12px; width: 16px; flex-shrink: 0; margin-top: 1px; }
.feed-body { flex: 1; min-width: 0; }
.feed-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  letter-spacing: .04em;
  line-height: 1.35;
}
.feed-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .1em;
  margin-top: 2px;
}
.feed-ago {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(77,166,255,.35);
  letter-spacing: .1em;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   STATUSBAR
═══════════════════════════════════════════════════════════ */
.statusbar {
  height: var(--statusbar-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  background: rgba(2,5,14,.99);
  border-top: 1px solid rgba(77,166,255,.18);
  padding: 0 14px;
  position: relative;
  z-index: 100;
}
.sb-seg {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-right: 1px solid var(--border-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .15em;
  white-space: nowrap;
  text-transform: uppercase;
}
.sb-seg:first-child { padding-left: 0; }
.sb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ive);
  box-shadow: 0 0 8px var(--ive);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}
.sb-dot.dim { background: rgba(255,255,255,0.55); box-shadow: none; animation: none; }
.sb-msg {
  flex: 1;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(77,166,255,.5);
  letter-spacing: .15em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sb-ver {
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: .12em;
}

/* ═══════════════════════════════════════════════════════════
   SCAN FLOW — 4-step setup
═══════════════════════════════════════════════════════════ */
.scan-step { flex: 1; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; min-height: 0; }
.scan-step.hidden { display: none !important; }

/* Step 1: Input */
.scan-input-block {
  padding: 16px;
  border-bottom: 1px solid var(--border-dim);
}
.scan-input-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(77,166,255,.55);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.scan-input-wrap {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.scan-url-input {
  flex: 1;
  background: rgba(10,20,40,.8);
  border: 1px solid rgba(77,166,255,.25);
  border-right: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 12px;
  outline: none;
  letter-spacing: .04em;
  transition: border-color .2s;
}
.scan-url-input::placeholder { color: rgba(77,166,255,.25); }
.scan-url-input:focus { border-color: rgba(77,166,255,.6); }
.scan-url-input--competitor { border-color: rgba(77,166,255,.2); color: rgba(180,210,255,.8); }
.scan-url-input--competitor::placeholder { color: rgba(77,166,255,.25); }

.scan-go-btn {
  background: rgba(77,166,255,.15);
  border: 1px solid rgba(77,166,255,.4);
  color: var(--ive);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .15em;
  padding: 10px 14px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  text-transform: uppercase;
}
.scan-go-btn:hover {
  background: rgba(77,166,255,.25);
  border-color: var(--ive);
}
.scan-input-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .06em;
  margin-top: 8px;
  line-height: 1.5;
}

/* Competitor block */
.scan-competitor-block {
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--border-dim);
  border-top: 1px solid rgba(77,166,255,.06);
}
.scan-comp-unlock {
  color: rgba(77,166,255,.6);
  font-size: 11px;
  letter-spacing: .15em;
  margin-right: 4px;
}

/* Examples */
.scan-examples {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-dim);
}
.scan-examples-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(77,166,255,.35);
  letter-spacing: .2em;
  margin-bottom: 8px;
}
.scan-example-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-dim);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  padding: 8px 0;
  cursor: pointer;
  text-align: left;
  transition: color .15s;
}
.scan-example-btn:hover { color: rgba(77,166,255,.9); }
.scan-example-btn:last-child { border-bottom: none; }

/* Step 2: Scanning */
.scan-progress-block { padding: 20px 16px; }
.scan-progress-bar-wrap {
  height: 4px;
  background: rgba(77,166,255,.1);
  margin-bottom: 10px;
  overflow: hidden;
}
.scan-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--ive2), var(--ive));
  box-shadow: 0 0 8px rgba(77,166,255,.5);
  width: 0%;
  transition: width .3s ease;
}
.scan-status-msg {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(77,166,255,.6);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.scan-checklist { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 5px; }
.scan-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scan-check-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.scan-check-dot--running { background: var(--ive); box-shadow: 0 0 6px var(--ive); animation: pulseDot 1s infinite; }
.scan-check-dot--done    { background: var(--green); }
.scan-check-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  letter-spacing: .08em;
}

/* Step 3: Report */
.scan-report-header { padding: 14px 16px; border-bottom: 1px solid var(--border-dim); }
.scan-report-entity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.scan-entity-badge {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--ive);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.scan-entity-conf {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(77,166,255,.4);
  letter-spacing: .1em;
}
.scan-report-target {
  font-family: var(--font-display);
  font-size: 15px;
  color: #fff;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.scan-report-summary {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 13px;
}
.scan-summary-stat { display: flex; align-items: center; gap: 4px; }
.scan-summary-val { font-family: var(--font-display); font-size: 14px; color: var(--ive); }
.scan-summary-val--good { color: var(--green); }
.scan-summary-val--warn { color: var(--amber); }
.scan-summary-sep { color: rgba(77,166,255,.2); margin: 0 8px; }

/* Loss card */
.scan-loss-block { padding: 0 16px 8px; }
.loss-card {
  background: linear-gradient(135deg, rgba(255,40,40,.08), rgba(255,80,40,.04));
  border: 1px solid rgba(255,68,68,.35);
  border-left: 3px solid var(--red);
  padding: 14px 14px;
  margin-top: 10px;
}
.loss-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .25em;
  color: rgba(255,80,60,.7);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.loss-card__amount {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--red);
  line-height: 1;
  text-shadow: 0 0 25px rgba(255,68,68,.4);
  margin-bottom: 5px;
}
.loss-card__gap {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,80,60,.85);
  font-weight: 600;
  margin-bottom: 4px;
}
.loss-card__stat {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .05em;
  line-height: 1.5;
  margin-bottom: 3px;
}
.loss-card__competitor {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,80,60,.55);
  letter-spacing: .04em;
  line-height: 1.4;
  padding-top: 6px;
  border-top: 1px solid rgba(255,60,40,.15);
}

/* Quick win card */
.scan-quick-win { padding: 0 16px 8px; }
.quick-win-card {
  background: linear-gradient(135deg, rgba(0,230,118,.06), rgba(0,180,80,.03));
  border: 1px solid rgba(0,230,118,.3);
  border-left: 3px solid var(--green);
  padding: 12px 14px;
}
.quick-win-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(0,230,118,.8);
  margin-bottom: 5px;
  text-transform: uppercase;
}
.quick-win-card__title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
  line-height: 1.35;
}
.quick-win-card__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(0,230,118,.6);
  letter-spacing: .08em;
  margin-bottom: 3px;
}
.quick-win-card__impact {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.quick-win-card__btn {
  background: rgba(0,230,118,.12);
  border: 1px solid rgba(0,230,118,.35);
  color: rgba(0,230,118,.9);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  padding: 7px 12px;
  cursor: pointer;
  width: 100%;
  transition: all .15s;
  text-transform: uppercase;
}
.quick-win-card__btn:hover {
  background: rgba(0,230,118,.22);
  box-shadow: 0 0 10px rgba(0,230,118,.2);
}

/* Compare card */
.scan-compare-block { padding: 0 16px 8px; }
.compare-card {
  background: rgba(10,20,40,.8);
  border: 1px solid rgba(77,166,255,.2);
  padding: 12px 14px;
}
.compare-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .25em;
  color: rgba(77,166,255,.45);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.compare-card__scores {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.compare-col {
  flex: 1;
  text-align: center;
  padding: 6px;
  border: 1px solid rgba(77,166,255,.1);
}
.compare-col--them { border-color: rgba(255,68,68,.15); }
.compare-col__who {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 3px;
  text-transform: uppercase;
}
.compare-col__score {
  font-family: var(--font-display);
  font-size: 26px;
  color: rgba(77,166,255,.9);
  line-height: 1;
  margin-bottom: 2px;
}
.compare-col--them .compare-col__score { color: rgba(255,68,68,.9); }
.compare-col__name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compare-vs {
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  padding: 0 8px;
  flex-shrink: 0;
}
.compare-card__gap {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .06em;
  text-align: center;
  margin-bottom: 6px;
  padding: 5px;
  border: 1px solid currentColor;
  opacity: .9;
}
.compare-card__revenue {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,68,68,.75);
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.4;
}
.compare-card__revenue--good { color: rgba(0,230,118,.75); }
.compare-card__gaps {}
.compare-card__gaps-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 5px;
  text-transform: uppercase;
}
.compare-gap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid var(--border-dim);
}
.compare-gap-surface {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
}
.compare-gap-delta {
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Narrative */
.scan-report-narrative { padding: 12px 16px; border-bottom: 1px solid var(--border-dim); }
.scan-narrative-opening {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.scan-narrative-urgency {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,140,0,.65);
  line-height: 1.5;
  letter-spacing: .04em;
}

/* Attack order */
.scan-attack-order { padding: 12px 16px; border-bottom: 1px solid var(--border-dim); }
.scan-section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(77,166,255,.5);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scan-section-label--toggle { cursor: pointer; user-select: none; }
.scan-section-label--toggle:hover { color: rgba(77,166,255,.8); }
.scan-audit-toggle-icon { font-size: 12px; color: rgba(77,166,255,.45); }

.scan-attack-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-dim);
  position: relative;
}
.scan-attack-card::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 0; bottom: 0;
  width: 2px;
}
.scan-attack-card--critical::before { background: var(--red); }
.scan-attack-card--high::before     { background: var(--amber); }
.scan-attack-card--medium::before   { background: var(--cyan); }
.scan-attack-card--low::before      { background: rgba(255,255,255,0.55); }
.scan-attack-card:last-child { border-bottom: none; }
.scan-attack-num {
  font-family: var(--font-display);
  font-size: 20px;
  color: rgba(77,166,255,.3);
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
}
.scan-attack-body { flex: 1; min-width: 0; }
.scan-attack-headline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  letter-spacing: .04em;
  margin-bottom: 4px;
  line-height: 1.3;
}
.scan-attack-because {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  letter-spacing: .04em;
  line-height: 1.5;
  margin-bottom: 5px;
}
.scan-attack-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.scan-attack-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  padding: 2px 6px;
  text-transform: uppercase;
}
.scan-attack-tag--quick  { border: 1px solid rgba(0,230,118,.4);  color: rgba(0,230,118,.8);  background: rgba(0,230,118,.06); }
.scan-attack-tag--blocker { border: 1px solid rgba(255,68,68,.4); color: rgba(255,68,68,.8);  background: rgba(255,68,68,.06); }
.scan-attack-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .06em;
}
.scan-attack-impact {
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(77,166,255,.5);
  letter-spacing: .08em;
  flex-shrink: 0;
  text-align: right;
  text-transform: uppercase;
}

/* Surface audit */
.scan-report-gaps { padding: 12px 16px; border-bottom: 1px solid var(--border-dim); }
#scan-surface-audit.hidden { display: none; }
.scan-audit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-dim);
}
.scan-audit-item:last-child { border-bottom: none; }
.scan-audit-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  letter-spacing: .08em;
  width: 70px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.scan-audit-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.55);
}
.scan-audit-fill {
  height: 100%;
  transition: width .6s;
}
.scan-audit-item--good .scan-audit-fill { background: var(--green); }
.scan-audit-item--mid  .scan-audit-fill { background: var(--gold); }
.scan-audit-item--bad  .scan-audit-fill { background: rgba(255,68,68,.6); }
.scan-audit-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}
.scan-audit-item--good .scan-audit-pct { color: rgba(0,230,118,.7); }
.scan-audit-item--mid  .scan-audit-pct { color: rgba(232,184,75,.7); }
.scan-audit-item--bad  .scan-audit-pct { color: rgba(255,68,68,.6); }
.scan-audit-item--skip .scan-audit-name { color: rgba(255,255,255,0.55); }
.scan-audit-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-left: auto;
}

/* Actions */
.scan-report-actions {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scan-confirm-btn {
  background: rgba(77,166,255,.15);
  border: 1px solid rgba(77,166,255,.5);
  color: var(--ive);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .18em;
  padding: 13px 16px;
  cursor: pointer;
  transition: all .2s;
  text-transform: uppercase;
}
.scan-confirm-btn:hover {
  background: rgba(77,166,255,.25);
  box-shadow: 0 0 16px rgba(77,166,255,.2);
}
.scan-rescan-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.55);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .15em;
  padding: 9px 16px;
  cursor: pointer;
  transition: all .15s;
  text-transform: uppercase;
}
.scan-rescan-btn:hover {
  border-color: rgba(255,255,255,0.7);
  color: rgba(255,255,255,0.8);
}

/* ═══════════════════════════════════════════════════════════
   MISSION PANEL OVERLAY
═══════════════════════════════════════════════════════════ */
.mission-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,8,18,.85);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  backdrop-filter: blur(4px);
}
.mission-overlay.hidden { display: none; }

.mission-panel {
  width: min(540px, 100vw);
  height: 100%;
  background: rgba(6,12,26,.99);
  border-left: 1px solid rgba(77,166,255,.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mission-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(77,166,255,.2);
  background: rgba(2,6,18,.8);
  flex-shrink: 0;
}
.mission-panel__title {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ive);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.mission-panel__close {
  background: transparent;
  border: 1px solid rgba(77,166,255,.25);
  color: rgba(77,166,255,.6);
  font-size: 14px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.mission-panel__close:hover {
  border-color: rgba(77,166,255,.6);
  color: var(--ive);
}
.mission-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* Phase tabs */
.mp-phase-tabs {
  display: flex;
  border-bottom: 1px solid rgba(77,166,255,.15);
  flex-shrink: 0;
}
.mp-phase-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  padding: 10px 4px;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
  text-transform: uppercase;
}
.mp-phase-tab:hover { color: rgba(255,255,255,0.8); }
.mp-phase-tab--active {
  color: var(--ive);
  border-bottom-color: var(--ive);
  background: rgba(77,166,255,.04);
}
.mp-phase-tab--done { color: rgba(0,230,118,.5); }

/* Mission list */
.mp-missions { display: flex; flex-direction: column; }
.mp-mission-item {
  border-bottom: 1px solid rgba(77,166,255,.08);
  padding: 14px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: background .15s;
  cursor: pointer;
}
.mp-mission-item:hover { background: rgba(77,166,255,.04); }
.mp-mission-item--done { opacity: .4; }
.mp-mission-check {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(77,166,255,.3);
  border-radius: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: 2px;
  transition: all .15s;
}
.mp-mission-item--done .mp-mission-check {
  background: rgba(0,230,118,.15);
  border-color: rgba(0,230,118,.4);
  color: var(--green);
}
.mp-mission-body { flex: 1; min-width: 0; }
.mp-mission-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  letter-spacing: .04em;
  margin-bottom: 5px;
  line-height: 1.35;
}
.mp-mission-desc {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  letter-spacing: .03em;
  margin-bottom: 8px;
}
.mp-mission-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mp-mission-effort {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  padding: 2px 6px;
  border: 1px solid currentColor;
  text-transform: uppercase;
}
.mp-mission-effort--low    { color: rgba(0,230,118,.6); }
.mp-mission-effort--medium { color: rgba(232,184,75,.6); }
.mp-mission-effort--high   { color: rgba(255,140,0,.6); }
.mp-mission-vp {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: .05em;
}
.mp-mission-dollars {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(0,230,118,.65);
  letter-spacing: .06em;
}
.mp-mission-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .06em;
}
.mp-mission-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 2px 5px;
  text-transform: uppercase;
}
.mp-mission-tag--critical { border: 1px solid rgba(255,68,68,.4); color: rgba(255,68,68,.7); }
.mp-mission-tag--high     { border: 1px solid rgba(77,166,255,.4); color: rgba(77,166,255,.7); }

/* Complete button */
.mp-complete-btn {
  background: rgba(77,166,255,.1);
  border: 1px solid rgba(77,166,255,.35);
  color: var(--ive);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .15em;
  padding: 7px 12px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  text-transform: uppercase;
  margin-top: 8px;
}
.mp-complete-btn:hover {
  background: rgba(77,166,255,.2);
  box-shadow: 0 0 10px rgba(77,166,255,.2);
}
.mp-complete-btn--done {
  background: rgba(0,230,118,.08);
  border-color: rgba(0,230,118,.3);
  color: rgba(0,230,118,.7);
}
.mp-repeat-btn {
  background: transparent;
  border: 1px solid rgba(232,184,75,.2);
  color: rgba(232,184,75,.5);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  padding: 5px 10px;
  cursor: pointer;
  transition: all .15s;
  text-transform: uppercase;
  margin-top: 4px;
}
.mp-repeat-btn:hover { border-color: rgba(232,184,75,.4); color: rgba(232,184,75,.8); }

/* Phase header inside mission panel */
.mp-phase-header {
  padding: 12px 20px 8px;
  border-bottom: 1px solid var(--border-dim);
}
.mp-phase-name {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.mp-phase-tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .06em;
}

/* ═══════════════════════════════════════════════════════════
   GAMIFICATION — TOASTS & CELEBRATIONS
═══════════════════════════════════════════════════════════ */
.vp-float {
  position: fixed;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(232,184,75,.6);
  pointer-events: none;
  z-index: 900;
  animation: vpFloat 1.3s ease-out forwards;
}
@keyframes vpFloat {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-40px); }
}

.game-toast {
  position: fixed;
  bottom: 55px;
  right: 20px;
  width: 280px;
  background: rgba(6,12,26,.97);
  border: 1px solid var(--border);
  border-left: 3px solid var(--tc, var(--ive));
  padding: 16px;
  z-index: 800;
  opacity: 0;
  transform: translateX(300px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 30px rgba(0,0,0,.5);
}
.game-toast--in  { opacity: 1; transform: translateX(0); }
.game-toast--out { opacity: 0; transform: translateX(300px); }
.game-toast__close {
  position: absolute;
  top: 8px; right: 8px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 12px;
}
.game-toast__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.game-toast__title {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--tc, var(--ive));
  letter-spacing: .1em;
  margin-bottom: 3px;
}
.game-toast__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(255,255,255,0.7);
}
.game-toast__icon { font-size: 18px; margin-bottom: 6px; }
.game-toast__body {}
.game-toast__next { margin-top: 10px; border-top: 1px solid var(--border-dim); padding-top: 8px; }
.game-toast__next-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.game-toast__next-phase {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.game-toast__levelup-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.game-toast__levelup-name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .12em;
  margin-bottom: 4px;
  line-height: 1.1;
}
.game-toast__levelup-vp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.game-toast__levelup-metrics {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border-dim);
  padding-top: 10px;
}
.game-toast__lm { flex: 1; text-align: center; }
.game-toast__lm-val { font-family: var(--font-display); font-size: 14px; display: block; }
.game-toast__lm-lbl { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.7); letter-spacing: .1em; }

/* Level-up flash */
.levelup-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(var(--lc, '180,77,255'), .25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 700;
  animation: levelFlash .9s ease-out forwards;
}
@keyframes levelFlash {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   REALITY SCREEN & LADDER PANEL
═══════════════════════════════════════════════════════════ */
#hive-reality-screen {
  position: fixed;
  inset: 0;
  background: rgba(2,8,18,.96);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .5s ease;
}
#hive-reality-screen.hrs-visible { opacity: 1; }
#hive-reality-screen.hrs-exit    { opacity: 0; }
.hrs-inner {
  max-width: 480px;
  width: 90%;
  text-align: center;
  padding: 40px;
  border: 1px solid rgba(77,166,255,.2);
  background: rgba(6,12,26,.98);
  position: relative;
}
.hrs-top-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(0,230,118,.5);
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hrs-omnipresent {
  font-family: var(--font-display);
  font-size: clamp(22px,4vw,36px);
  color: rgba(0,230,118,.9);
  letter-spacing: .15em;
  text-shadow: 0 0 30px rgba(0,230,118,.4);
  margin-bottom: 8px;
}
.hrs-omni-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(0,230,118,.4);
  letter-spacing: .1em;
  line-height: 1.5;
  margin-bottom: 24px;
}
.hrs-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.hrs-div-line { flex: 1; height: 1px; background: rgba(77,166,255,.2); }
.hrs-div-but {
  font-family: var(--font-display);
  font-size: 16px;
  color: rgba(77,166,255,.6);
  letter-spacing: .2em;
}
.hrs-bottom-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,68,68,.5);
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hrs-zero-state {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255,68,68,.15);
  background: rgba(255,68,68,.04);
  margin-bottom: 24px;
  text-align: left;
}
.hrs-zero-icon { position: relative; width: 50px; height: 50px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.hrs-zero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,68,68,.2);
  animation: zeroRing 3s ease-in-out infinite;
}
.hrs-zero-ring--1 { width:46px; height:46px; }
.hrs-zero-ring--2 { width:34px; height:34px; animation-delay:.5s; }
.hrs-zero-ring--3 { width:22px; height:22px; animation-delay:1s; }
@keyframes zeroRing { 0%,100%{opacity:.2} 50%{opacity:.6} }
.hrs-zero-core {
  font-size: 20px;
  color: rgba(255,68,68,.5);
  position: relative;
  z-index: 1;
}
.hrs-zero-title {
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(255,68,68,.9);
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.hrs-zero-desc {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .04em;
  line-height: 1.5;
}
.hrs-actions { display: flex; flex-direction: column; gap: 8px; }
.hrs-btn {
  padding: 13px 20px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .2em;
  cursor: pointer;
  transition: all .2s;
  border: 1px solid;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hrs-btn--primary {
  background: rgba(77,166,255,.15);
  border-color: rgba(77,166,255,.5);
  color: var(--ive);
}
.hrs-btn--primary:hover {
  background: rgba(77,166,255,.25);
  box-shadow: 0 0 20px rgba(77,166,255,.2);
}
.hrs-btn--secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: rgba(255,255,255,0.7);
}
.hrs-btn--secondary:hover {
  border-color: rgba(255,255,255,0.7);
  color: rgba(255,255,255,0.8);
}
.hrs-btn-icon { font-size: 14px; }

/* ── LADDER PANEL ────────────────────────────────────────── */
#hive-ladder-panel {
  position: fixed;
  inset: 0;
  background: rgba(2,8,18,.97);
  z-index: 600;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity .4s ease;
}
#hive-ladder-panel.hlp-visible { opacity: 1; }
.hlp-inner {
  width: min(520px, 100vw);
  display: flex;
  flex-direction: column;
  background: rgba(6,12,26,.99);
  border-left: 1px solid rgba(77,166,255,.2);
  overflow: hidden;
}
.hlp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(77,166,255,.15);
  flex-shrink: 0;
}
.hlp-title {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ive);
  letter-spacing: .15em;
}
.hlp-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(77,166,255,.4);
  letter-spacing: .12em;
  margin-top: 3px;
}
.hlp-close {
  background: transparent;
  border: 1px solid rgba(77,166,255,.25);
  color: rgba(77,166,255,.6);
  font-size: 14px;
  width: 30px; height: 30px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.hlp-close:hover { border-color: var(--ive); color: var(--ive); }
.hlp-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.hlp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-bottom: 1px solid rgba(77,166,255,.06);
  transition: background .15s;
}
.hlp-row:hover { background: rgba(77,166,255,.04); }
.hlp-row--current { background: rgba(255,68,68,.04); border-left: 2px solid rgba(255,68,68,.4); }
.hlp-row--goal { background: rgba(77,166,255,.05); border-left: 2px solid rgba(220,140,255,.4); }
.hlp-row-num {
  font-family: var(--font-display);
  font-size: 16px;
  color: rgba(77,166,255,.2);
  width: 24px;
  flex-shrink: 0;
}
.hlp-row-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lc, rgba(255,255,255,0.55));
  box-shadow: 0 0 6px var(--lc, transparent);
  flex-shrink: 0;
}
.hlp-row-content { flex: 1; min-width: 0; }
.hlp-row-name {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--lc, rgba(255,255,255,0.65));
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.hlp-row-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .04em;
  line-height: 1.4;
}
.hlp-row-right { text-align: right; flex-shrink: 0; }
.hlp-row-vp {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .08em;
}
.hlp-row-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  padding: 2px 6px;
  border: 1px solid currentColor;
  color: rgba(255,68,68,.6);
  margin-top: 3px;
  display: inline-block;
  text-transform: uppercase;
}
.hlp-row-tag--gold { color: rgba(220,140,255,.6); }
.hlp-footer {
  padding: 16px 22px;
  border-top: 1px solid rgba(77,166,255,.15);
  flex-shrink: 0;
}

/* ── HIDDEN UTILITY ──────────────────────────────────────── */
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   SCAN COMPETITOR BLOCK
═══════════════════════════════════════════════════════════ */
.scan-competitor-block .scan-input-wrap {
  margin-top: 8px;
}
