/* AutoResearch HOLO FLEET — High-Octane 60fps Holographic Cyber-Quant Visual System */
@property --beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  color-scheme: dark;
  --void: #03050a;
  --surface: rgba(10, 15, 28, 0.76);
  --surface-solid: #0a0f1c;
  --surface-elevated: rgba(17, 25, 44, 0.86);
  --border: rgba(94, 162, 255, 0.17);
  --border-glow: rgba(0, 255, 209, 0.42);

  --text: #f0f6ff;
  --text-sec: #94a9c9;
  --text-dim: #5a6e8f;

  --cyan: #00ffd1;
  --cyan-soft: rgba(0, 255, 209, 0.14);
  --violet: #a855f7;
  --violet-bright: #c084fc;
  --violet-soft: rgba(168, 85, 247, 0.18);
  --magenta: #ff2e93;
  --gold: #ffc83b;
  --gold-soft: rgba(255, 200, 59, 0.16);
  --coral: #ff4d79;
  --coral-soft: rgba(255, 77, 121, 0.16);

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Menlo", ui-monospace, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Full-Screen 60fps 3D Cyber-Grid & Nebula Canvas */
.bg-holo-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

header, main {
  position: relative;
  z-index: 2;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.neon-cyan {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 255, 209, 0.45);
}
.neon-violet {
  color: var(--violet-bright);
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
}
.neon-gold {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(255, 200, 59, 0.42);
}

h1, h2, h3, p { margin: 0; }
button, select, input { font: inherit; color: inherit; }

/* ========================================================================= */
/* TOP HOLOGRAPHIC COMMAND BAR                                               */
/* ========================================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 60px;
  padding: 8px 22px;
  background: rgba(4, 7, 15, 0.82);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid rgba(0, 255, 209, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(168, 85, 247, 0.2) inset;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Spinning Quantum Gyro Brand Core */
.brand-core {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: var(--violet);
  animation: spinGyro 3.2s linear infinite;
  box-shadow: 0 0 14px rgba(0, 255, 209, 0.35);
}
.ring-inner {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-bottom-color: var(--magenta);
  border-left-color: var(--gold);
  animation: spinGyroReverse 2.1s linear infinite;
}
.core-spark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 24px var(--violet);
  animation: corePulse 1.6s ease-in-out infinite;
}

@keyframes spinGyro { to { transform: rotate(360deg); } }
@keyframes spinGyroReverse { to { transform: rotate(-360deg); } }
@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.75; }
}

.brand-copy strong {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.badge-os {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(0, 255, 209, 0.2), rgba(168, 85, 247, 0.28));
  border: 1px solid rgba(0, 255, 209, 0.45);
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 209, 0.5);
}
.brand-copy small {
  font-size: 11px;
  color: var(--text-sec);
}

/* View Switcher */
.view-nav {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: rgba(8, 13, 26, 0.9);
  border: 1px solid var(--border);
}
.view-nav button {
  height: 33px;
  padding: 0 15px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-sec);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.view-nav button.active {
  background: linear-gradient(135deg, rgba(0, 255, 209, 0.2), rgba(168, 85, 247, 0.26));
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 255, 209, 0.22), inset 0 0 0 1px rgba(0, 255, 209, 0.48);
}
.view-nav button b {
  color: var(--cyan);
  font-size: 11.5px;
}

.master-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-run {
  position: relative;
  height: 33px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--cyan);
  background: rgba(0, 255, 209, 0.13);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 255, 209, 0.22);
  overflow: hidden;
}
.btn-run::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-25deg);
  animation: btnSheen 3.2s ease-in-out infinite;
}
@keyframes btnSheen {
  0%, 60% { left: -120%; }
  100% { left: 160%; }
}
.autopilot-seal {
  height: 33px;
  padding: 0 14px;
  border-radius: 99px;
  border: 1px solid rgba(0, 255, 209, 0.52);
  background: linear-gradient(135deg, rgba(0, 255, 209, 0.16), rgba(168, 85, 247, 0.16));
  color: var(--cyan);
  font-size: 11.5px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 22px rgba(0, 255, 209, 0.18);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.autopilot-seal::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  animation: btnSheen 3.4s ease-in-out infinite;
}
.live-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  animation: corePulse 1.4s infinite;
}

.pill-select {
  height: 33px;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-sec);
}
.pill-select select {
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 650;
  outline: none;
  cursor: pointer;
}
.btn-xs, .btn-tool {
  height: 33px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.btn-xs { height: 22px; padding: 0 7px; border-radius: 5px; font-size: 11px; }
.btn-tool:hover, .btn-xs:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 255, 209, 0.2);
}

.btn-dump {
  height: 33px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid rgba(192, 132, 252, 0.6);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.24), rgba(255, 46, 147, 0.2));
  color: #f3e8ff;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.22);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-dump:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255, 46, 147, 0.38);
}

.intercept-shield {
  height: 33px;
  padding: 0 12px;
  border-radius: 99px;
  background: var(--gold-soft);
  border: 1px solid rgba(255, 200, 59, 0.5);
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 16px rgba(255, 200, 59, 0.18);
}
.shield-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: corePulse 1.8s infinite;
}

/* ========================================================================= */
/* VIEW TRANSITIONS & CONTAINERS                                             */
/* ========================================================================= */
.screen-overview, .screen-detail {
  max-width: 1880px;
  margin: 0 auto;
  padding: 16px 22px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.view-enter {
  animation: warpReveal 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes warpReveal {
  from { opacity: 0; transform: translateY(10px) scale(0.99); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ========================================================================= */
/* HERO COMMAND DECK: SONAR DISH + VAULT KPIS + PHOTON FUNNEL                */
/* ========================================================================= */
.command-hero-deck {
  display: grid;
  grid-template-columns: 164px 1.65fr 1.45fr;
  gap: 14px;
  align-items: stretch;
}

.holo-radar-card {
  position: relative;
  border-radius: 14px;
  background: radial-gradient(circle at center, rgba(0, 255, 209, 0.11), rgba(6, 11, 22, 0.92));
  border: 1px solid rgba(0, 255, 209, 0.38);
  box-shadow: 0 0 28px rgba(0, 255, 209, 0.14), inset 0 0 24px rgba(0, 255, 209, 0.08);
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 118px;
}
.radar-sweep-canvas {
  width: 152px;
  height: 114px;
  display: block;
}
.radar-overlay-meta {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.radar-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  white-space: nowrap;
}
.radar-overlay-meta strong {
  font-size: 9.5px;
  color: #fff;
  white-space: nowrap;
}

.vault-kpi-cluster {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 12px;
}

.holo-kpi {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(16, 24, 45, 0.86), rgba(8, 12, 24, 0.92));
  border: 1px solid var(--border);
  padding: 14px 16px;
  overflow: hidden;
  backdrop-filter: blur(14px);
}
.holo-kpi.primary {
  border-color: rgba(0, 255, 209, 0.48);
  box-shadow: 0 0 32px rgba(0, 255, 209, 0.12), inset 0 0 22px rgba(0, 255, 209, 0.06);
}
.holo-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  opacity: 0.65;
  animation: verticalScan 3.6s linear infinite;
}
@keyframes verticalScan {
  0% { top: -4px; opacity: 0; }
  15% { opacity: 0.75; }
  85% { opacity: 0.75; }
  100% { top: 105%; opacity: 0; }
}

.kpi-label {
  display: block;
  font-size: 11px;
  color: var(--text-sec);
  margin-bottom: 5px;
}
.kpi-val-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.holo-kpi strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.holo-kpi.primary strong {
  font-size: 24px;
}
.holo-kpi small {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--text-sec);
}

.pnl-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--cyan-soft);
  border: 1px solid rgba(0, 255, 209, 0.4);
  color: var(--cyan);
}
.pnl-pill.neg {
  background: var(--coral-soft);
  border-color: rgba(255, 77, 121, 0.4);
  color: var(--coral);
}

/* Animated Photon Conduit Funnel */
.photon-funnel-card {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(16, 22, 42, 0.88), rgba(8, 12, 24, 0.94));
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.12);
}

.funnel-nodes {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.f-node {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(5, 8, 18, 0.78);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
}
.f-node.final {
  border-color: var(--cyan);
  background: rgba(0, 255, 209, 0.09);
  box-shadow: 0 0 20px rgba(0, 255, 209, 0.18);
}
.f-node small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--violet-bright);
}
.f-node strong {
  font-size: 18px;
  font-weight: 800;
  margin: 2px 0;
}
.f-node.final strong {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 255, 209, 0.55);
}
.f-node span {
  font-size: 10.5px;
  color: var(--text-sec);
  white-space: nowrap;
}

/* Glowing Photon Tubes Between Funnel Nodes */
.f-pipe {
  position: relative;
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: rgba(94, 162, 255, 0.22);
  box-shadow: inset 0 0 4px rgba(0, 255, 209, 0.25);
  overflow: hidden;
  flex-shrink: 0;
}
.photon {
  position: absolute;
  top: 0;
  left: -18px;
  width: 18px;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--cyan), #fff);
  box-shadow: 0 0 10px var(--cyan);
  animation: shootPhoton 1.25s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.photon.p2 { animation-delay: 0.35s; background: linear-gradient(90deg, transparent, var(--violet-bright), #fff); box-shadow: 0 0 10px var(--violet-bright); }
.photon.p3 { animation-delay: 0.7s; background: linear-gradient(90deg, transparent, var(--gold), #fff); box-shadow: 0 0 10px var(--gold); }
@keyframes shootPhoton {
  0% { left: -18px; opacity: 0.2; }
  45% { opacity: 1; }
  100% { left: 40px; opacity: 0.15; }
}

/* ========================================================================= */
/* 3-STRATEGY AUTONOMOUS ARENA SCOREBOARD                                    */
/* ========================================================================= */
.strategy-arena-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.strat-card {
  position: relative;
  border-radius: 15px;
  padding: 15px 16px 13px;
  background: linear-gradient(168deg, rgba(14, 21, 39, 0.92), rgba(7, 11, 22, 0.96));
  border: 1px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.strat-card:hover {
  transform: translateY(-2px);
}
.strat-card.accent-cyan {
  border-color: rgba(0, 255, 209, 0.42);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 255, 209, 0.1);
}
.strat-card.accent-violet {
  border-color: rgba(192, 132, 252, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(168, 85, 247, 0.12);
}
.strat-card.accent-gold {
  border-color: rgba(255, 200, 59, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 200, 59, 0.11);
}
.strat-card.selected {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 32px rgba(0, 255, 209, 0.28), inset 0 0 20px rgba(0, 255, 209, 0.08);
}

.strat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.strat-title-wrap strong {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
}
.strat-title-wrap small {
  display: block;
  font-size: 10.5px;
  color: var(--text-sec);
  margin-top: 2px;
}
.crown-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 200, 59, 0.24), rgba(255, 46, 147, 0.22));
  border: 1px solid rgba(255, 200, 59, 0.6);
  color: var(--gold);
  white-space: nowrap;
}

.strat-nav-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.strat-nav-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.strat-spark-box {
  height: 46px;
  border-radius: 9px;
  background: rgba(3, 6, 14, 0.85);
  border: 1px solid rgba(94, 162, 255, 0.14);
  overflow: hidden;
}
.strat-spark-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.strat-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(94, 162, 255, 0.14);
}
.strat-metrics div span {
  display: block;
  font-size: 9.5px;
  color: var(--text-dim);
}
.strat-metrics div strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  margin-top: 2px;
}

.strat-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.strat-badge.conservative {
  background: rgba(0, 255, 209, 0.16);
  border: 1px solid rgba(0, 255, 209, 0.5);
  color: var(--cyan);
}
.strat-badge.balanced {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(192, 132, 252, 0.55);
  color: #e9d5ff;
}
.strat-badge.aggressive {
  background: rgba(255, 200, 59, 0.18);
  border: 1px solid rgba(255, 200, 59, 0.55);
  color: var(--gold);
}

.race-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  color: var(--text-sec);
  flex-wrap: wrap;
}
.race-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.race-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-con { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot-bal { background: var(--violet-bright); box-shadow: 0 0 8px var(--violet-bright); }
.dot-agg { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* ========================================================================= */
/* HOLOGRAPHIC CONIC-LASER LP FLEET PODS (WITH 3D TILT!)                     */
/* ========================================================================= */
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.section-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.glow-heading {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 9px;
  text-shadow: 0 0 20px rgba(0, 255, 209, 0.28);
}
.glow-heading i {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 12px var(--cyan);
}
.sub-badge {
  font-size: 11.5px;
  padding: 3px 11px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(0, 255, 209, 0.1), rgba(168, 85, 247, 0.16));
  border: 1px solid rgba(0, 255, 209, 0.32);
  color: #dcfff7;
}
.telemetry-live-tag {
  font-size: 11px;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 209, 0.45);
}

.fleet-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 16px;
  perspective: 1200px;
}

/* Orbiting Conic-Laser Border Hologram Pod */
.lp-pod {
  --beam-angle: 0deg;
  position: relative;
  border-radius: 16px;
  padding: 16px 17px 14px;
  background:
    linear-gradient(175deg, rgba(14, 21, 39, 0.93), rgba(7, 11, 22, 0.96)) padding-box,
    conic-gradient(from var(--beam-angle), rgba(0, 255, 209, 0.85), rgba(168, 85, 247, 0.25), rgba(255, 46, 147, 0.75), rgba(94, 162, 255, 0.2), rgba(0, 255, 209, 0.85)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55), 0 0 26px rgba(0, 255, 209, 0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 11px;
  animation: orbitLaser 5.5s linear infinite;
  transform-style: preserve-3d;
  transition: box-shadow 0.22s ease, transform 0.14s ease-out;
  overflow: hidden;
}
@keyframes orbitLaser {
  to { --beam-angle: 360deg; }
}
.lp-pod:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.68), 0 0 38px rgba(0, 255, 209, 0.26), inset 0 0 30px rgba(168, 85, 247, 0.1);
}

/* HUD Reticle Corner Accents */
.lp-pod::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 20%), rgba(0, 255, 209, 0.09), transparent 70%);
}

.pod-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pod-pair-group {
  display: flex;
  align-items: center;
  gap: 11px;
}
.pod-avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(0, 255, 209, 0.25), rgba(168, 85, 247, 0.35), rgba(255, 46, 147, 0.25));
  border: 1px solid rgba(0, 255, 209, 0.5);
  box-shadow: 0 0 18px rgba(0, 255, 209, 0.22);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}
.pod-pair-title strong {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
}
.step-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #e9d5ff;
}
.pod-pair-title small {
  display: block;
  font-size: 11px;
  color: var(--text-sec);
  margin-top: 2px;
}

.pod-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.pod-status {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2.5px 9px;
  border-radius: 99px;
  background: var(--cyan-soft);
  border: 1px solid rgba(0, 255, 209, 0.45);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 255, 209, 0.2);
}
.pod-status.out {
  background: var(--gold-soft);
  border-color: rgba(255, 200, 59, 0.5);
  color: var(--gold);
}
.pod-score {
  font-size: 10.5px;
  color: var(--text-sec);
  white-space: nowrap;
}

/* 60fps Canvas Liquid Spectrum Visualizer inside each Pod! */
.pod-oscilloscope {
  height: 112px;
  border-radius: 11px;
  background: radial-gradient(ellipse at 50% 100%, rgba(0, 255, 209, 0.08), rgba(3, 6, 14, 0.95));
  border: 1px solid rgba(94, 162, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.pod-oscilloscope canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Animated Shimmering Plasma Inventory Tug-of-War Bar */
.pod-inv-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pod-inv-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-sec);
}
.pod-inv-track {
  position: relative;
  height: 7px;
  border-radius: 99px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(168, 85, 247, 0.55),
    rgba(168, 85, 247, 0.55) 8px,
    rgba(255, 46, 147, 0.55) 8px,
    rgba(255, 46, 147, 0.55) 16px
  );
  background-size: 24px 24px;
  animation: plasmaFlowRight 1.2s linear infinite;
  overflow: hidden;
  display: flex;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}
.pod-inv-sol {
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #00d4aa,
    #00d4aa 8px,
    #00ffd1 8px,
    #00ffd1 16px
  );
  background-size: 24px 24px;
  animation: plasmaFlowLeft 1.2s linear infinite;
  box-shadow: 2px 0 12px #fff, 0 0 12px var(--cyan);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes plasmaFlowLeft { to { background-position: 24px 0; } }
@keyframes plasmaFlowRight { to { background-position: -24px 0; } }

.pod-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(94, 162, 255, 0.14);
}
.pod-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pod-metrics span {
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--font-sans);
}
.pod-metrics strong {
  font-size: 13px;
  font-weight: 700;
}

.pod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 7px;
  border-top: 1px dashed rgba(94, 162, 255, 0.15);
  font-size: 11px;
  color: var(--text-sec);
}
.pod-enter-cta {
  color: var(--cyan);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(0, 255, 209, 0.4);
  transition: transform 0.18s;
}
.lp-pod:hover .pod-enter-cta {
  transform: translateX(4px);
}

.loading-fleet-card {
  grid-column: 1 / -1;
  padding: 48px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px dashed rgba(0, 255, 209, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.quantum-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: var(--cyan);
  border-bottom-color: var(--magenta);
  animation: spinGyro 0.85s linear infinite;
  box-shadow: 0 0 22px rgba(0, 255, 209, 0.35);
}

/* ========================================================================= */
/* LOWER OVERVIEW PANELS                                                     */
/* ========================================================================= */
.overview-lower-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: start;
}
.overview-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.holo-panel {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(14, 21, 40, 0.55);
}
.panel-header h3 {
  font-size: 13.5px;
  font-weight: 750;
}
.panel-header small {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}

.filter-tabs, .tf-pills {
  display: inline-flex;
  padding: 2.5px;
  border-radius: 8px;
  background: rgba(4, 7, 15, 0.85);
  border: 1px solid var(--border);
}
.filter-tabs button, .tf-pills button {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-sec);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.16s;
}
.filter-tabs button.active, .tf-pills button.active {
  background: linear-gradient(135deg, rgba(0, 255, 209, 0.2), rgba(168, 85, 247, 0.25));
  color: #fff;
  font-weight: 700;
}

.radar-table-wrap {
  max-height: 416px;
  overflow: auto;
}
.radar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.radar-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0b1224;
  padding: 9px 12px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-sec);
  border-bottom: 1px solid var(--border);
}
.radar-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(94, 162, 255, 0.08);
  white-space: nowrap;
}
.radar-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}
.radar-table tbody tr:hover {
  background: rgba(0, 255, 209, 0.08);
}
.btn-row-inspect {
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 209, 0.4);
  background: rgba(0, 255, 209, 0.1);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.ov-equity-chart {
  height: 156px;
  background: rgba(4, 7, 15, 0.7);
}
.ov-equity-chart canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ov-feed-list {
  height: 230px;
  overflow-y: auto;
  padding: 10px 12px;
  background: rgba(4, 7, 15, 0.65);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.feed-item {
  padding: 8px 11px;
  border-radius: 8px;
  background: rgba(12, 18, 34, 0.88);
  border: 1px solid var(--border);
  border-left-width: 3px;
  font-size: 11.5px;
  animation: slideFeedIn 0.28s ease-out;
}
@keyframes slideFeedIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}
.feed-item.EXEC { border-left-color: var(--cyan); box-shadow: inset 6px 0 14px -8px var(--cyan); }
.feed-item.SCAN { border-left-color: var(--violet); }
.feed-item.RISK { border-left-color: var(--coral); }
.feed-item.BRAIN { border-left-color: var(--gold); }
.feed-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.feed-top b { color: var(--cyan); }

/* ========================================================================= */
/* VIEW 2: SINGLE-POOL QUANTUM DEEP-DIVE INSPECTOR                           */
/* ========================================================================= */
.detail-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 16px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid rgba(0, 255, 209, 0.35);
  box-shadow: 0 0 26px rgba(0, 255, 209, 0.1);
}

.btn-back {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 209, 0.45);
  background: rgba(0, 255, 209, 0.1);
  color: var(--cyan);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s;
}
.btn-back:hover {
  background: rgba(0, 255, 209, 0.2);
  box-shadow: 0 0 18px rgba(0, 255, 209, 0.25);
}

.detail-fleet-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.dt-pool-pill {
  height: 31px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(5, 8, 18, 0.85);
  color: var(--text-sec);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s;
}
.dt-pool-pill.active {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 255, 209, 0.2), rgba(168, 85, 247, 0.2));
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 255, 209, 0.25);
}

.detail-pool-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

/* 6-Layer Neural Circuit Strip with Racing Light Pulse */
.six-layer-circuit {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.circuit-pulse-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
  background-size: 200% 100%;
  animation: raceCircuit 2.4s linear infinite;
  z-index: 0;
  opacity: 0.55;
}
@keyframes raceCircuit {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.layer-node {
  position: relative;
  z-index: 1;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(9, 14, 28, 0.92);
  border: 1px solid rgba(168, 85, 247, 0.32);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.layer-node span {
  font-size: 10.5px;
  color: var(--cyan);
  font-weight: 700;
}
.layer-node strong {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(350px, 1fr);
  gap: 16px;
  align-items: start;
}
.detail-charts-col, .detail-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ohlc-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-sec);
}
.ohlc-bar span, .ohlc-bar b { white-space: nowrap; }
.ohlc-bar b { color: var(--text); }

.dt-candle-canvas { height: 290px; background: rgba(3, 6, 13, 0.85); }
.dt-bin-canvas { height: 268px; background: rgba(3, 6, 13, 0.9); }
.dt-candle-canvas canvas, .dt-bin-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.spectrum-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-sec);
}
.spectrum-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.spectrum-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.lg-bid { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.lg-ask { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.lg-bot { background: #ffffff; box-shadow: 0 0 8px #ffffff; }
.lg-cur { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

.dt-bin-footer {
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  background: rgba(8, 13, 25, 0.8);
  font-size: 11.5px;
  color: var(--cyan);
}

.dt-pos-body {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.attr-box {
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(5, 8, 18, 0.8);
  border: 1px solid var(--border);
}
.attr-box span {
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  color: var(--text-dim);
}
.attr-box strong {
  font-size: 13.5px;
  margin-top: 3px;
  display: block;
}

/* X-Ray Laser Sweep Effect */
.xray-holo-panel {
  border-color: rgba(255, 77, 121, 0.38);
}
.xray-laser-sweep {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--coral), var(--gold), transparent);
  box-shadow: 0 0 16px var(--coral);
  animation: verticalScan 4.2s linear infinite;
  pointer-events: none;
  z-index: 3;
}

.dt-rx-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  background: rgba(4, 7, 15, 0.85);
  border-bottom: 1px solid var(--border);
}
.rx-tab-btn {
  height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--text-sec);
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
  cursor: pointer;
}
.rx-tab-btn.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 700;
}

.dt-xray-body {
  padding: 12px 14px;
  max-height: 410px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}
.xray-seal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 11px;
  border-radius: 7px;
  background: var(--coral-soft);
  border: 1px solid rgba(255, 77, 121, 0.55);
  color: var(--coral);
  font-weight: 800;
  box-shadow: 0 0 18px rgba(255, 77, 121, 0.16);
}
.xray-ix-card {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(4, 7, 15, 0.85);
  border: 1px solid var(--border);
  word-break: break-all;
}
.xray-ix-head {
  display: flex;
  justify-content: space-between;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 3px;
}
.xray-wire {
  padding: 8px 10px;
  border-radius: 8px;
  background: #020408;
  border: 1px solid rgba(0, 255, 209, 0.2);
  color: #6ee7b7;
  font-size: 10px;
  word-break: break-all;
}

[hidden] { display: none !important; }

@media (max-width: 1400px) {
  .command-hero-deck { grid-template-columns: 150px 1fr; }
  .photon-funnel-card { grid-column: 1 / -1; }
  .six-layer-circuit { grid-template-columns: repeat(3, 1fr); }
  .overview-lower-grid, .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .strategy-arena-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .command-hero-deck, .vault-kpi-cluster, .six-layer-circuit, .fleet-matrix-grid {
    grid-template-columns: 1fr;
  }
  .pod-metrics { grid-template-columns: repeat(2, 1fr); }
}
