/* ==========================================================================
   ARK AI HOLOGRAPHIC QUANTUM TACTICAL HUD v5.5 (ark-hud.css)
   InnocentInvestor.in • Ultra-Futuristic Space Cockpit Command Deck
   100% Non-Scrollable 100VH • Cyber Glassmorphism • Quantum Living Orb
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
  --c:       #00f0ff;               /* Electric Quantum Cyan */
  --c-glow:  rgba(0, 240, 255, 0.4);
  --c2:      #00ffc8;               /* Emerald Pulse */
  --c3:      #c084fc;               /* Hyper Violet */
  --c4:      #f43f5e;               /* Laser Ruby Red */
  --c5:      #fbbf24;               /* Solar Amber */
  --c-dark:  #040814;
  --panel-bg: rgba(6, 12, 24, 0.82);
  --panel-border: rgba(0, 240, 255, 0.28);
  --cg:      0 0 16px rgba(0,240,255,.9), 0 0 32px rgba(0,240,255,.45);
  --cg-subtle: 0 0 10px rgba(0,240,255,.3);
  --cg-violet: 0 0 16px rgba(192,132,252,.75);
  --cg-green: 0 0 14px rgba(0,255,200,.75);
  --cg-red:   0 0 14px rgba(244,63,94,.75);
  --bg:      #000000;
  --f:       'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:  'JetBrains Mono', 'Share Tech Mono', monospace;
}

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

html, body {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  position: fixed !important;
  inset: 0 !important;
  background: #000000 !important;
  color: var(--c);
  font-family: var(--f);
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- CYBER GRID BACKGROUND & PARTICLES ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 18% 22%, rgba(0, 255, 200, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(192, 132, 252, 0.05) 0%, transparent 45%),
    linear-gradient(rgba(0, 240, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 38px 38px, 38px 38px;
}

/* Holographic Perspective Floor Grid */
body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: -20%;
  right: -20%;
  height: 35vh;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(to top, rgba(0, 240, 255, 0.06), transparent 90%),
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 24px, 36px 100%;
  transform: perspective(600px) rotateX(65deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, rgba(0,0,0,1), transparent 90%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1), transparent 90%);
}

/* Subtle CRT Scanlines */
.hud-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.28) 50%);
  background-size: 100% 3px;
  opacity: 0.22;
}

/* Dark Vignette */
.hud-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, transparent 48%, rgba(0, 0, 0, 0.8) 100%);
}

/* ==========================================================================
   TOP BAR HUD HEADER
   ========================================================================== */
.hud-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 500;
  background: rgba(4, 10, 24, 0.96);
  border-bottom: 1px solid rgba(0, 240, 255, 0.35);
  padding: 0 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hud-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: 4px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.hud-back-link:hover {
  background: var(--c);
  color: #000;
  box-shadow: var(--cg);
  transform: translateX(-3px);
}

.hud-top-sys-title {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hud-top-sys-title::before {
  content: '⬡';
  color: var(--c);
  animation: rot 8s linear infinite;
  display: inline-block;
}
.hud-top-sys-title::after {
  content: '⬡';
  color: var(--c2);
  animation: rotR 8s linear infinite;
  display: inline-block;
}

.hud-audio-btn {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: var(--c);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hud-audio-btn:hover {
  background: var(--c);
  color: #000;
  box-shadow: var(--cg);
  transform: scale(1.08);
}

#hud-user-badge {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  transition: all 0.2s ease;
}
#hud-user-badge:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--c);
  box-shadow: var(--cg-subtle);
}

/* ==========================================================================
   MASTER 3-COLUMN SCREEN GRID (DESKTOP / PC OPTIMIZED)
   ========================================================================== */
.hud-master-screen {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  max-width: 1920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 27%) 1fr minmax(300px, 27%);
  padding: 44px 12px 6px 12px;
  gap: 12px;
  box-sizing: border-box;
}

/* Custom Holographic Cyber Scrollbars for PC */
.hud-left-col,
.hud-right-col,
.trade-hist-list,
.holdings-list,
.tsl-list,
.terminal-stream,
.detail-deck-stream {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.45) transparent;
}
.hud-left-col::-webkit-scrollbar,
.hud-right-col::-webkit-scrollbar,
.trade-hist-list::-webkit-scrollbar,
.holdings-list::-webkit-scrollbar,
.tsl-list::-webkit-scrollbar,
.terminal-stream::-webkit-scrollbar,
.detail-deck-stream::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.hud-left-col::-webkit-scrollbar-track,
.hud-right-col::-webkit-scrollbar-track,
.trade-hist-list::-webkit-scrollbar-track,
.holdings-list::-webkit-scrollbar-track,
.tsl-list::-webkit-scrollbar-track,
.terminal-stream::-webkit-scrollbar-track,
.detail-deck-stream::-webkit-scrollbar-track {
  background: transparent;
}
.hud-left-col::-webkit-scrollbar-thumb,
.hud-right-col::-webkit-scrollbar-thumb,
.trade-hist-list::-webkit-scrollbar-thumb,
.holdings-list::-webkit-scrollbar-thumb,
.tsl-list::-webkit-scrollbar-thumb,
.terminal-stream::-webkit-scrollbar-thumb,
.detail-deck-stream::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.35);
  border-radius: 4px;
}
.hud-left-col::-webkit-scrollbar-thumb:hover,
.hud-right-col::-webkit-scrollbar-thumb:hover,
.trade-hist-list::-webkit-scrollbar-thumb:hover,
.holdings-list::-webkit-scrollbar-thumb:hover,
.tsl-list::-webkit-scrollbar-thumb:hover,
.terminal-stream::-webkit-scrollbar-thumb:hover,
.detail-deck-stream::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.75);
  box-shadow: 0 0 8px var(--c);
}

/* Column Wrappers - Scrollable on shorter PC displays without clipping */
.hud-left-col,
.hud-right-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: calc(100vh - 50px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.hud-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
  height: calc(100vh - 50px);
  position: relative;
  min-width: 0;
  overflow: hidden;
}

/* ==========================================================================
   CYBER HOLOGRAPHIC PANELS (Shared)
   ========================================================================== */
.panel {
  position: relative;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 10px 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(0, 240, 255, 0.28);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

/* Cyber L-Bracket Corner Accents */
.panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--c);
  border-left: 2px solid var(--c);
  pointer-events: none;
}
.panel::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--c);
  border-right: 2px solid var(--c);
  pointer-events: none;
}

.panel:hover {
  border-color: rgba(0, 240, 255, 0.65);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.8), 0 0 14px rgba(0, 240, 255, 0.3), inset 0 1px 2px rgba(0, 240, 255, 0.4);
}

.panel-title {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--c);
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  padding-bottom: 5px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title span {
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}
.panel-title span:hover {
  color: #ffffff;
  transform: scale(1.15);
  text-shadow: var(--cg-subtle);
}

/* Hover magnetism */
.mag {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.mag:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   LEFT COLUMN WIDGETS
   ========================================================================== */

/* 1. Operator Profile Card */
.upk-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 4px;
  padding: 4px 6px;
  transition: all 0.18s ease;
}
.upk-row:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.45);
}
.upk-row span {
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
}
.upk-row strong {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

/* 2. Chrono Station */
.clock-widget {
  display: flex;
  align-items: center;
  gap: 12px;
}
.clock-ring-wrap {
  width: 74px;
  height: 74px;
  position: relative;
  flex-shrink: 0;
}
.clock-ring-wrap svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: rot 40s linear infinite;
  filter: drop-shadow(0 0 6px rgba(0,240,255,0.45));
}
.clock-ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#c-mon {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c2);
}
#c-day {
  font-family: var(--f-mono);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  text-shadow: var(--cg);
}
.clock-text-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#c-time {
  font-family: var(--f-mono);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1.8px;
  color: #ffffff;
  text-shadow: 0 0 10px var(--c);
}
#c-dow {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c3);
}

.market-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 4px;
  color: #e2e8f0;
}
.mkt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: blink 1.4s infinite;
}
.mkt-dot.open {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}
.mkt-dot.closed {
  background: var(--c4);
  box-shadow: 0 0 8px var(--c4);
}

/* 3. Margin Power Dial */
.power-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.power-ring {
  width: 56px;
  height: 56px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.power-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.5));
}
.power-val {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  line-height: 1.15;
  color: #ffffff;
}
.power-meta {
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.4;
}
.power-meta strong {
  font-family: var(--f-mono);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.storage-bar-row {
  margin-top: 4px;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 700;
  margin-bottom: 2px;
  color: #e2e8f0;
}
.bar-track {
  height: 5px;
  background: rgba(0, 240, 255, 0.14);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c), var(--c2));
  border-radius: 3px;
  transition: width 0.6s ease;
  box-shadow: 0 0 8px var(--c);
}

/* 4. Recent Trades & Quick Commands */
.trade-hist-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 86px;
  overflow-y: auto;
}
.th-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.1);
  color: #f1f5f9;
}
.th-row:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
}
.th-side-buy {
  color: #22c55e;
  font-weight: 900;
}
.th-side-sell {
  color: var(--c4);
  font-weight: 900;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 3.5px 8px;
  border-radius: 4px;
  border-left: 2px solid transparent;
  color: #e2e8f0;
}
.nav-row:hover {
  color: #ffffff;
  background: rgba(0, 240, 255, 0.12);
  border-left-color: var(--c);
  transform: translateX(3px);
  text-shadow: var(--cg-subtle);
}

/* 5. ARKai Agent Control Panel */
.agent-control-panel {
  background: linear-gradient(180deg, rgba(6, 16, 32, 0.94) 0%, rgba(2, 6, 14, 0.98) 100%) !important;
  border-color: rgba(0, 240, 255, 0.4) !important;
}

.agent-siri-orb-mini {
  width: 36px;
  height: 36px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.agent-siri-orb-mini:hover {
  transform: scale(1.15);
}

.asmo-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.6) 0%, rgba(129, 140, 248, 0.4) 50%, transparent 100%);
  filter: blur(6px);
  animation: orbGlow 2.2s ease-in-out infinite alternate;
}
.asmo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: rgba(56, 189, 248, 0.95);
  border-right-color: rgba(244, 114, 182, 0.95);
  animation: rot 2.8s linear infinite;
  filter: drop-shadow(0 0 5px #38bdf8);
}
.asmo-sphere {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  background: radial-gradient(circle at 30% 30%, #38bdf8 0%, #818cf8 30%, #c084fc 55%, #f472b6 80%, #fbbf24 100%);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.9), 0 0 24px rgba(56, 189, 248, 0.6), inset 0 0 8px #ffffff;
  animation: orbMorph 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate, orbHue 8s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}
.asmo-swirl {
  position: absolute;
  inset: 1px;
  border-radius: 40% 60% 70% 30%/40% 50% 60% 50%;
  background: conic-gradient(from 0deg, #38bdf8, #818cf8, #f472b6, #fbbf24, #10b981, #38bdf8);
  mix-blend-mode: overlay;
  opacity: 0.85;
  filter: blur(1px);
  animation: orbSwirl 3s linear infinite;
}
.asmo-core {
  position: relative;
  z-index: 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, rgba(244, 114, 182, 0.6) 100%);
  box-shadow: 0 0 8px #ffffff, 0 0 12px var(--c);
  animation: orbCore 1.6s ease-in-out infinite alternate;
}

.agent-start-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  background: rgba(0, 240, 255, 0.1);
  border: 1.5px solid rgba(0, 240, 255, 0.5);
  color: var(--c);
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.22s ease;
}
.agent-start-btn:hover {
  background: var(--c);
  color: #000;
  box-shadow: var(--cg);
}
.agent-start-btn.is-active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(0, 240, 255, 0.2));
  border-color: #22c55e;
  color: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.5);
  animation: agentActivePulse 1.8s ease-in-out infinite alternate;
}

.agent-icon-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--c);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.agent-icon-btn:hover {
  background: var(--c);
  color: #000;
  box-shadow: var(--cg-subtle);
}

.status-blink-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.5);
  display: inline-block;
  flex-shrink: 0;
  animation: blink 1.4s infinite;
}
.status-blink-dot.active {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.em-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.em-btn {
  flex: 1;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.5);
  color: var(--c4);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.em-btn:hover {
  background: var(--c4);
  color: #fff;
  box-shadow: 0 0 12px var(--c4);
}
.em-btn.reboot {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--c);
}
.em-btn.reboot:hover {
  background: var(--c);
  color: #000;
  box-shadow: var(--cg);
}

.ip-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 4px;
}
.ip-spin {
  animation: rot 3s linear infinite;
  display: inline-block;
}

/* ==========================================================================
   CENTER COLUMN (REACTOR & LIVING ORB)
   ========================================================================== */
.reactor-stage {
  position: relative;
  width: 270px;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 0 auto;
  flex-shrink: 0;
}

.conduit-svg {
  position: absolute;
  inset: -90px;
  width: calc(100% + 180px);
  height: calc(100% + 180px);
  pointer-events: none;
  z-index: 1;
}

/* MASTER LIVING QUANTUM ORB */
.orb-box {
  width: 140px;
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.orb-box:hover {
  transform: scale(1.12);
}

/* Default Rest State: Calm & Paused */
.orb-glow {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.45) 0%, rgba(192, 132, 252, 0.3) 45%, rgba(0, 255, 200, 0.15) 75%, transparent 100%);
  filter: blur(14px);
  opacity: 0.4;
  transform: scale(0.9);
  animation: orbGlow 2.4s ease-in-out infinite alternate;
  animation-play-state: paused;
  transition: all 0.35s ease;
}
.orb-wave {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 240, 255, 0.85);
  opacity: 0;
  animation: orbWave 2.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  animation-play-state: paused;
}
.orb-wave.w2 {
  animation-delay: 0.9s;
  border-color: rgba(192, 132, 252, 0.85);
}
.orb-wave.w3 {
  animation-delay: 1.8s;
  border-color: rgba(0, 255, 200, 0.85);
}
.orb-outer-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 240, 255, 0.45);
  animation: rot 22s linear infinite;
  animation-play-state: paused;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
  transition: all 0.35s ease;
}
.orb-mid-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(0, 255, 200, 0.6);
  border-bottom-color: rgba(0, 240, 255, 0.6);
  animation: rotR 12s linear infinite;
  animation-play-state: paused;
  filter: drop-shadow(0 0 4px var(--c));
  transition: all 0.35s ease;
}
.orb-sphere {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  background: radial-gradient(circle at 30% 30%, #38f8ff 0%, #818cf8 25%, #c084fc 50%, #f472b6 75%, #fbbf24 100%);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.65), 0 0 40px rgba(192, 132, 252, 0.45), inset 0 0 14px #ffffff;
  animation: orbMorph 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate, orbHue 8s linear infinite;
  animation-play-state: paused;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
}
.orb-swirl {
  position: absolute;
  inset: 2px;
  border-radius: 40% 60% 70% 30%/40% 50% 60% 50%;
  background: conic-gradient(from 0deg, #00f0ff, #818cf8, #f472b6, #fbbf24, #00ffc8, #00f0ff);
  mix-blend-mode: overlay;
  opacity: 0.5;
  filter: blur(2px);
  animation: orbSwirl 3s linear infinite;
  animation-play-state: paused;
  transition: opacity 0.35s ease;
}
.orb-core {
  position: relative;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, rgba(255, 255, 255, 0.95) 45%, rgba(0, 240, 255, 0.75) 80%, transparent 100%);
  box-shadow: 0 0 12px #ffffff, 0 0 20px var(--c);
  animation: orbCore 1.6s ease-in-out infinite alternate;
  animation-play-state: paused;
  transition: all 0.35s ease;
}

/* Active State: On Hover OR Generating Output OR Autonomous Scanning */
.orb-box:hover .orb-glow,
.orb-box.generating .orb-glow,
.orb-box.scanning .orb-glow {
  opacity: 0.95;
  transform: scale(1.25);
  filter: blur(20px);
  animation-play-state: running;
}
.orb-box:hover .orb-wave,
.orb-box.generating .orb-wave,
.orb-box.scanning .orb-wave {
  animation-play-state: running;
}
.orb-box:hover .orb-outer-ring,
.orb-box.generating .orb-outer-ring,
.orb-box.scanning .orb-outer-ring {
  border-color: rgba(0, 240, 255, 0.85);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.55);
  animation-play-state: running;
}
.orb-box:hover .orb-mid-ring,
.orb-box.generating .orb-mid-ring,
.orb-box.scanning .orb-mid-ring {
  border-top-color: var(--c2);
  border-bottom-color: var(--c);
  filter: drop-shadow(0 0 8px var(--c));
  animation-play-state: running;
}
.orb-box:hover .orb-sphere,
.orb-box.generating .orb-sphere,
.orb-box.scanning .orb-sphere {
  box-shadow: 0 0 42px rgba(0, 240, 255, 0.95), 0 0 70px rgba(192, 132, 252, 0.8), inset 0 0 20px #ffffff;
  animation-play-state: running;
}
.orb-box:hover .orb-swirl,
.orb-box.generating .orb-swirl,
.orb-box.scanning .orb-swirl {
  opacity: 0.95;
  animation-play-state: running;
}
.orb-box:hover .orb-core,
.orb-box.generating .orb-core,
.orb-box.scanning .orb-core {
  box-shadow: 0 0 20px #ffffff, 0 0 36px var(--c);
  animation-play-state: running;
}

.orb-box.scanning .orb-sphere,
.orb-box.generating .orb-sphere {
  animation-duration: 0.85s !important;
}
.orb-box.scanning .orb-glow,
.orb-box.generating .orb-glow {
  transform: scale(1.45) !important;
}

/* Radiating Interactive Node Badges */
.node-item {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--c);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(6, 14, 28, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.42);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}
.node-item:hover {
  color: #ffffff;
  border-color: var(--c);
  background: rgba(0, 240, 255, 0.25);
  box-shadow: var(--cg);
  transform: scale(1.06);
}
.ndot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
  flex-shrink: 0;
}

/* ==========================================================================
   CENTER HOLOGRAPHIC VOICE CONTROLLER BAR
   ========================================================================== */
.hud-voice-bar {
  position: absolute;
  bottom: 216px;
  left: 10px;
  right: 10px;
  height: 38px;
  background: linear-gradient(135deg, rgba(4, 16, 36, 0.94) 0%, rgba(2, 8, 20, 0.98) 100%) !important;
  border: 1px solid rgba(0, 240, 255, 0.5) !important;
  border-radius: 6px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  z-index: 35;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 240, 255, 0.25), inset 0 1px 2px rgba(0, 240, 255, 0.3) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s ease;
}
.hud-voice-bar:hover {
  border-color: var(--c) !important;
  background: linear-gradient(135deg, rgba(6, 24, 52, 0.96) 0%, rgba(3, 12, 28, 0.98) 100%) !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.45) !important;
}
.hud-voice-bar.listening {
  border-color: var(--c4) !important;
  background: linear-gradient(135deg, rgba(45, 10, 25, 0.95) 0%, rgba(25, 5, 15, 0.98) 100%) !important;
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.7) !important;
  animation: micPulse 1.2s infinite alternate;
}

.voice-mic-glow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c), var(--c2));
  border: none;
  color: #000000;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--c);
  transition: all 0.2s ease;
}
.hud-voice-bar.listening .voice-mic-glow {
  background: linear-gradient(135deg, #f43f5e, #fbbf24);
  box-shadow: 0 0 16px #f43f5e;
}

.voice-status-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.voice-status-title {
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.9px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.voice-status-sub {
  font-family: var(--f);
  font-size: 8.5px;
  color: rgba(0, 240, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-send-btn {
  background: linear-gradient(135deg, var(--c), var(--c2));
  border: none;
  color: #000000;
  font-family: var(--f-mono);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 8px var(--c);
  transition: all 0.2s ease;
}
.voice-send-btn:hover {
  transform: scale(1.06);
}

/* ==========================================================================
   BOTTOM CENTER SMART DIRECTIVE CHATBOX TERMINAL
   ========================================================================== */
.hud-bottom-detail-deck {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  width: 100%;
  max-width: 100%;
  height: 176px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(4, 12, 28, 0.97) 0%, rgba(2, 6, 16, 0.99) 100%) !important;
  border: 1px solid rgba(0, 240, 255, 0.48) !important;
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 30;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.88), 0 0 16px rgba(0, 240, 255, 0.25), inset 0 1px 2px rgba(0, 240, 255, 0.35) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-sizing: border-box;
  overflow: hidden;
}

.detail-deck-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  padding-bottom: 4px;
  min-width: 0;
  overflow: hidden;
}

.detail-deck-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.detail-deck-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
  animation: blink 1.2s infinite;
}

#detail-deck-title {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
  white-space: nowrap;
}

/* Quick Filter Chips in Chat Header */
.detail-deck-chips {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: calc(100% - 240px);
  min-width: 0;
}
.detail-deck-chips::-webkit-scrollbar {
  display: none;
}
.hud-chip {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--c);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.hud-chip:hover {
  background: var(--c);
  color: #000000;
  box-shadow: 0 0 8px var(--c);
  transform: translateY(-1px);
}
.hud-chip.alert {
  color: var(--c4);
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.08);
}
.hud-chip.alert:hover {
  background: var(--c4);
  color: #ffffff;
  box-shadow: 0 0 8px var(--c4);
}
.hud-chip.askii {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
}
.hud-chip.askii:hover {
  background: #38bdf8;
  color: #000000;
  box-shadow: 0 0 10px #38bdf8;
}

.detail-deck-badge {
  font-family: var(--f-mono);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--c2);
  background: rgba(0, 255, 200, 0.12);
  border: 1px solid rgba(0, 255, 200, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-deck-stream {
  font-family: var(--f);
  font-size: 11px;
  line-height: 1.48;
  color: #f8fafc;
  flex: 1;
  max-height: 86px;
  min-height: 60px;
  overflow-y: auto;
  padding-right: 4px;
}
.detail-deck-stream strong {
  color: var(--c);
  font-weight: 800;
}
.detail-deck-stream em {
  color: #cbd5e1;
}

.detail-welcome-msg {
  font-size: 10.5px;
  line-height: 1.45;
  color: #e2e8f0;
}

/* Smart Chatbox Input Row */
.hud-chat-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid rgba(0, 240, 255, 0.22);
  padding-top: 4px;
}
.hud-input-prefix {
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 900;
  color: var(--c);
  letter-spacing: 1px;
  padding: 0 2px;
}
.hud-chat-input {
  flex: 1;
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 4px;
  padding: 5px 8px;
  font-family: var(--f);
  font-size: 10.5px;
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}
.hud-chat-input:focus {
  border-color: var(--c);
  background: rgba(0, 240, 255, 0.14);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
}
.hud-chat-mic-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--c);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.hud-chat-mic-btn:hover {
  background: var(--c);
  color: #000000;
  box-shadow: 0 0 8px var(--c);
}
.hud-chat-send-btn {
  background: linear-gradient(135deg, var(--c), var(--c2));
  border: none;
  color: #000000;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.7px;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.hud-chat-send-btn:hover {
  box-shadow: var(--cg);
  transform: scale(1.04);
}

/* Market Ticker Tape */
.ticker-tape {
  position: relative;
  width: 100%;
  height: 20px;
  flex-shrink: 0;
  overflow: hidden;
  border-top: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(2, 6, 16, 0.92);
  margin-top: 2px;
}
.ticker-inner {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  animation: tickerScroll 28s linear infinite;
  height: 100%;
  align-items: center;
}
.tick-up { color: #22c55e; }
.tick-dn { color: var(--c4); }
.tick-neu { color: var(--c); }

/* ==========================================================================
   RIGHT COLUMN WIDGETS
   ========================================================================== */

/* 1. Live Holdings & P&L Cards */
.holdings-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 108px;
  overflow-y: auto;
}
.holding-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 3px 6px;
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 4px;
  transition: all 0.18s ease;
  color: #f1f5f9;
  gap: 4px;
}
.holding-card:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.35);
}
.hc-sym {
  font-weight: 900;
  color: #ffffff;
  min-width: 62px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hc-qty {
  color: #cbd5e1;
  min-width: 32px;
  white-space: nowrap;
}
.hc-pnl {
  font-weight: 900;
  flex: 1;
  text-align: right;
  white-space: nowrap;
}
.hc-pnl.pos { color: #22c55e; }
.hc-pnl.neg { color: var(--c4); }
.hc-sq {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: var(--c4);
  font-family: var(--f-mono);
  font-size: 8.5px;
  font-weight: 900;
  padding: 2.5px 6px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 2px;
  flex-shrink: 0;
}
.hc-sq:hover {
  background: var(--c4);
  color: #ffffff;
  box-shadow: 0 0 8px var(--c4);
}

/* 2. Target / SL Precision Laser Radar */
.tsl-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 95px;
  overflow-y: auto;
}
.tsl-row {
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 4px 6px;
  background: rgba(0, 240, 255, 0.04);
  border-radius: 4px;
  color: #f1f5f9;
}
.tsl-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 3px;
}
.tsl-track {
  height: 5px;
  background: rgba(0, 240, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.tsl-fill-sl {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--c4);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--c4);
  transition: width 0.5s ease;
}
.tsl-fill-t1 {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background: #22c55e;
  border-radius: 2px;
  box-shadow: 0 0 6px #22c55e;
  transition: width 0.5s ease;
}
.tsl-cmp-marker {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 3px;
  background: #ffffff;
  border-radius: 1px;
  box-shadow: 0 0 8px #ffffff;
  transition: left 0.5s ease;
}

/* 3. Ark AI Conversational Terminal */
.terminal-box {
  background: linear-gradient(180deg, rgba(6, 14, 28, 0.94) 0%, rgba(2, 6, 14, 0.98) 100%) !important;
  border-color: rgba(0, 240, 255, 0.45) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.85), inset 0 1px 2px rgba(0, 240, 255, 0.3) !important;
}

.terminal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 5px;
}

.terminal-stream {
  font-family: var(--f);
  font-size: 11px;
  line-height: 1.48;
  max-height: 88px;
  overflow-y: auto;
  color: #f8fafc;
  min-height: 42px;
  padding: 2px 0;
}
.terminal-stream strong {
  color: var(--c);
  font-weight: 800;
}

.terminal-input-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.terminal-input {
  flex: 1;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: #ffffff;
  font-family: var(--f);
  font-size: 10.5px;
  padding: 6px 10px;
  outline: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.terminal-input:focus {
  border-color: var(--c);
  background: rgba(0, 240, 255, 0.14);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.terminal-send {
  background: linear-gradient(135deg, var(--c), var(--c2));
  border: none;
  color: #000000;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.terminal-send:hover {
  box-shadow: var(--cg);
  transform: scale(1.05);
}

.terminal-mic {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--c);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.terminal-mic:hover {
  background: var(--c);
  color: #000;
  box-shadow: var(--cg);
  transform: scale(1.08);
}
.terminal-mic.listening {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.35), rgba(251, 191, 36, 0.25));
  border-color: var(--c4);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.7);
  animation: micPulse 1.2s infinite alternate;
}

@keyframes micPulse {
  0%   { box-shadow: 0 0 8px rgba(244, 63, 94, 0.4); transform: scale(1); }
  100% { box-shadow: 0 0 20px rgba(244, 63, 94, 0.9); transform: scale(1.1); }
}

.orb-box.listening .orb-glow {
  background: radial-gradient(circle, rgba(244, 63, 94, 0.8) 0%, rgba(251, 191, 36, 0.6) 45%, rgba(0, 240, 255, 0.4) 75%, transparent 100%) !important;
  opacity: 1 !important;
  transform: scale(1.35) !important;
  animation-play-state: running !important;
}
.orb-box.listening .orb-wave {
  border-color: var(--c4) !important;
  animation-play-state: running !important;
}

.tw-cursor {
  display: inline-block;
  width: 2px;
  background: var(--c);
  height: 1em;
  margin-left: 2px;
  animation: blink 0.7s step-end infinite;
  vertical-align: middle;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes rot {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes rotR {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
@keyframes orbGlow {
  0%   { opacity: 0.45; transform: scale(0.85); }
  100% { opacity: 0.95; transform: scale(1.25); }
}
@keyframes orbWave {
  0%   { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes orbMorph {
  0%   { transform: scale(0.94) rotate(0deg); border-radius: 42% 58% 65% 35%/45% 55% 45% 55%; }
  33%  { transform: scale(1.08) rotate(120deg); border-radius: 65% 35% 45% 55%/55% 45% 60% 40%; }
  66%  { transform: scale(0.96) rotate(240deg); border-radius: 50% 50% 35% 65%/40% 60% 50% 50%; }
  100% { transform: scale(1.04) rotate(360deg); border-radius: 58% 42% 55% 45%/50% 45% 55% 50%; }
}
@keyframes orbHue {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
@keyframes orbSwirl {
  0%   { transform: rotate(0deg) scale(0.95); }
  50%  { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(0.95); }
}
@keyframes orbCore {
  0%   { transform: scale(0.75); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 1; }
}
@keyframes tickerScroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-200%); }
}
@keyframes agentActivePulse {
  0%   { box-shadow: 0 0 8px rgba(34, 197, 94, 0.35); }
  100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.75); }
}

/* ==========================================================================
   ARK MOBILE WARNING / GATE OVERLAY
   Warns when opened on mobile phones (<768px), requires PC or Tablet
   ========================================================================== */
#ark-mobile-warning {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000005;
  background: rgba(3, 7, 18, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}

/* Auto-display on phone viewports unless user dismissed */
@media (max-width: 767px), ((max-height: 520px) and (max-width: 950px) and (pointer: coarse)) {
  #ark-mobile-warning:not(.ark-mobile-dismissed) {
    display: flex !important;
  }
}

.ark-mobile-card {
  max-width: 450px;
  width: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(4, 8, 20, 0.99));
  border: 1px solid rgba(244, 63, 94, 0.45);
  box-shadow: 0 0 50px rgba(244, 63, 94, 0.25), 0 0 100px rgba(0, 240, 255, 0.1), inset 0 0 20px rgba(244, 63, 94, 0.08);
  border-radius: 18px;
  padding: 26px 20px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  margin: auto;
}

.ark-mobile-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #f43f5e, #fbbf24, #00f0ff);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.8);
}

.ark-mobile-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 12px;
}

.ark-mobile-icon-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.35) 0%, transparent 70%);
  animation: arkMobilePulse 2s ease-in-out infinite;
}

@keyframes arkMobilePulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 1; }
}

.ark-mobile-icon {
  font-size: 36px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 16px rgba(244, 63, 94, 0.7));
}

.ark-mobile-tag {
  font-family: 'Share Tech Mono', 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 1.6px;
  color: #fbbf24;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ark-mobile-heading {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.ark-mobile-subheading {
  font-size: 11px;
  font-weight: 800;
  color: #00f0ff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ark-mobile-desc {
  font-size: 12px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 0 16px;
}

.ark-compat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 18px;
}

.ark-compat-item {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 9px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ark-compat-item.fail {
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.08);
}

.ark-compat-item.pass {
  border-color: rgba(0, 255, 200, 0.3);
  background: rgba(0, 255, 200, 0.06);
}

.ark-compat-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ark-compat-icon {
  font-size: 17px;
}

.ark-compat-name {
  font-size: 9.5px;
  font-weight: 700;
  color: #cbd5e1;
}

.ark-compat-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.ark-compat-badge.bad {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.18);
}

.ark-compat-badge.good {
  color: #00ffc8;
  background: rgba(0, 255, 200, 0.18);
}

.ark-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ark-btn-mobile-trade {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #00f0ff, #0080ff);
  color: #000 !important;
  border: none;
  border-radius: 10px;
  font-weight: 900;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.ark-btn-mobile-trade:hover,
.ark-btn-mobile-trade:active {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.55);
}

.ark-btn-mobile-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}

.ark-btn-mobile-home:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(0, 240, 255, 0.4);
  color: #00f0ff !important;
}

.ark-mobile-bypass-row {
  margin-top: 12px;
}

.ark-btn-mobile-bypass {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 10px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
  font-family: inherit;
  transition: color 0.15s ease;
}

.ark-btn-mobile-bypass:hover {
  color: #94a3b8;
}

/* ==========================================================================
   DESKTOP PC & LAPTOP ADAPTIVE DISPLAY OPTIMIZATIONS
   ========================================================================== */

/* Laptops / Compact Height Screens (height <= 850px) */
@media screen and (min-width: 1025px) and (max-height: 850px) {
  .hud-master-screen {
    padding: 42px 10px 4px 10px;
    gap: 10px;
  }
  .hud-top-bar {
    height: 34px;
    padding: 0 12px;
  }
  .reactor-stage {
    transform: scale(0.92);
    transform-origin: center center;
    margin: 2px auto 0 auto;
  }
  .hud-bottom-detail-deck {
    height: 165px;
  }
  .panel {
    padding: 8px 10px;
    margin-bottom: 6px;
  }
  .hud-left-col,
  .hud-right-col {
    gap: 6px;
    height: calc(100vh - 46px);
  }
  .hud-center-col {
    height: calc(100vh - 46px);
  }
  .terminal-stream,
  .detail-deck-stream {
    max-height: 75px;
  }
}

/* Very Short Displays (e.g. 768px laptop with browser chrome, <= 720px available height) */
@media screen and (min-width: 1025px) and (max-height: 720px) {
  .hud-master-screen {
    padding: 40px 8px 4px 8px;
    gap: 8px;
  }
  .reactor-stage {
    transform: scale(0.8);
    transform-origin: center center;
    margin: 0 auto;
  }
  .hud-bottom-detail-deck {
    height: 145px;
  }
  .detail-deck-stream {
    max-height: 55px;
    min-height: 40px;
  }
}

/* Ultrawide & High-Resolution PC Displays (>= 1600px) */
@media screen and (min-width: 1600px) {
  .hud-master-screen {
    max-width: 1920px;
    grid-template-columns: minmax(340px, 26%) 1fr minmax(340px, 26%);
    gap: 16px;
    padding: 46px 18px 8px 18px;
  }
  .reactor-stage {
    transform: scale(1.05);
    margin: 8px auto 0 auto;
  }
  .hud-bottom-detail-deck {
    height: 190px;
  }
  .panel-title {
    font-size: 11.5px;
  }
  .panel {
    padding: 12px 14px;
    border-radius: 8px;
  }
}

/* ==========================================================================
   ARK AI FLOATING SCENARIO BUTTON & LIVE SPEECH BUBBLE
   ========================================================================== */
.ark-fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

/* Floating Action Button */
.ark-fab-btn {
  pointer-events: auto;
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 240, 255, 0.6);
  background: radial-gradient(circle at 35% 35%, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 240, 255, 0.35), inset 0 0 12px rgba(0, 240, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ark-fab-btn:hover {
  transform: scale(1.1);
  border-color: #00f0ff;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.7), 0 0 32px rgba(0, 240, 255, 0.6), inset 0 0 16px rgba(0, 240, 255, 0.35);
}

.ark-fab-btn:active {
  transform: scale(0.95);
}

/* Glowing Halo Animation */
.ark-fab-glow {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #00f0ff, #c084fc, #00ffc8, #00f0ff);
  opacity: 0.4;
  filter: blur(6px);
  animation: arkFabSpin 8s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.ark-fab-ring {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.4);
  animation: arkFabSpinRev 16s linear infinite;
  pointer-events: none;
}

@keyframes arkFabSpin {
  100% { transform: rotate(360deg); }
}
@keyframes arkFabSpinRev {
  100% { transform: rotate(-360deg); }
}

.ark-fab-core {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f0ff;
  pointer-events: none;
}

.ark-fab-icon {
  pointer-events: none;
}

.ark-fab-icon svg {
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.8));
  transition: transform 0.3s ease;
  pointer-events: none;
}

.ark-fab-btn:hover .ark-fab-icon svg {
  transform: scale(1.12);
}

.ark-fab-badge {
  position: absolute;
  bottom: -2px;
  right: -6px;
  font-family: var(--f-mono, 'Share Tech Mono', monospace);
  pointer-events: none;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #000;
  background: #00f0ff;
  border-radius: 4px;
  padding: 1px 3.5px;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
}

/* Speaking / Active Pulse State */
.ark-fab-btn.speaking {
  border-color: #00ffc8;
  box-shadow: 0 0 35px rgba(0, 255, 200, 0.7), inset 0 0 16px rgba(0, 255, 200, 0.4);
  animation: arkFabPulse 1.4s ease-in-out infinite alternate;
}

.ark-fab-btn.speaking .ark-fab-glow {
  opacity: 0.8;
  filter: blur(10px);
  animation-duration: 3s;
}

/* Listening State (When user clicks/touches AI button to speak) */
.ark-fab-btn.listening {
  border-color: #ef4444;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.8), inset 0 0 16px rgba(239, 68, 68, 0.5);
  animation: arkFabListenPulse 0.9s ease-in-out infinite alternate;
}

.ark-fab-btn.listening .ark-fab-glow {
  opacity: 0.9;
  background: conic-gradient(from 0deg, #ef4444, #f59e0b, #ec4899, #ef4444);
  filter: blur(12px);
  animation-duration: 2s;
}

.ark-fab-btn.listening .ark-fab-core {
  color: #ef4444;
}

.ark-fab-btn.listening .ark-fab-badge {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
}

@keyframes arkFabPulse {
  0% { transform: scale(1); box-shadow: 0 0 25px rgba(0, 240, 255, 0.5); }
  100% { transform: scale(1.12); box-shadow: 0 0 45px rgba(0, 255, 200, 0.85); }
}

@keyframes arkFabListenPulse {
  0% { transform: scale(1); box-shadow: 0 0 25px rgba(239, 68, 68, 0.6); }
  100% { transform: scale(1.15); box-shadow: 0 0 50px rgba(245, 158, 11, 0.9); }
}

