/* =========================================================================
   JEROO • HOLOGRAPHIC EXECUTIVE AI CONSOLE (V3 POLISHED UI/UX)
   Ultra-Smooth Mobile Cyberpunk HUD • Dynamic 100dvh • Fluid Touch
   ========================================================================= */

:root {
  --hud-bg: #020813;
  --hud-panel-bg: rgba(6, 17, 34, 0.88);
  --hud-panel-border: rgba(0, 243, 255, 0.22);
  --hud-cyan: #00f3ff;
  --hud-cyan-glow: rgba(0, 243, 255, 0.45);
  --hud-cyan-dim: rgba(0, 243, 255, 0.10);
  --hud-blue: #0284c7;
  --hud-emerald: #10b981;
  --hud-emerald-glow: rgba(16, 185, 129, 0.4);
  --hud-amber: #f59e0b;
  --hud-rose: #f43f5e;
  --hud-text: #f0f9ff;
  --hud-text-dim: #94a3b8;
  --hud-muted: #475569;
  --hud-font: 'JetBrains Mono', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 12px);
  --safe-top: env(safe-area-inset-top, 8px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background: #01050c;
  color: var(--hud-text);
  font-family: var(--hud-font);
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* -------------------------------------------------------------------------
   SCREEN FRAMEWORK & AMBIENT SCI-FI BACKGROUND
   ------------------------------------------------------------------------- */
.jeroo-screen {
  position: relative;
  width: 100vw;
  max-width: 440px;
  height: 100vh;
  height: 100dvh; /* Dynamic Mobile Height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: 
    radial-gradient(circle at 50% 38%, rgba(0, 243, 255, 0.08) 0%, rgba(2, 8, 19, 0.98) 65%, #01050c 100%),
    linear-gradient(rgba(0, 243, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  box-shadow: 0 0 90px rgba(0, 243, 255, 0.12), 0 0 1px rgba(0, 243, 255, 0.5);
  border-left: 1px solid rgba(0, 243, 255, 0.15);
  border-right: 1px solid rgba(0, 243, 255, 0.15);
  overflow: hidden;
}

@media (max-width: 480px) {
  .jeroo-screen {
    max-width: 100vw;
    border-left: none;
    border-right: none;
  }
}

/* Scanlines overlay */
.jeroo-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.10),
    rgba(0, 0, 0, 0.10) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 10;
}

/* -------------------------------------------------------------------------
   1. TOP BAR (EXECUTIVE HEADER)
   ------------------------------------------------------------------------- */
.jeroo-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(10px + var(--safe-top)) 14px 10px 14px;
  z-index: 25;
  position: relative;
  background: linear-gradient(180deg, rgba(2, 8, 19, 0.95) 0%, rgba(2, 8, 19, 0.75) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 243, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.top-brand-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.brand-crest {
  font-size: 14px;
  color: var(--hud-cyan);
  text-shadow: 0 0 10px var(--hud-cyan);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #fff;
}

.brand-sub {
  font-size: 7px;
  color: var(--hud-cyan);
  opacity: 0.75;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
}

.top-center-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.title-glow-jeroo {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: #ffffff;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-shadow: 
    0 0 10px rgba(0, 243, 255, 0.8),
    0 0 20px rgba(0, 243, 255, 0.4);
}

.subtitle-status {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--hud-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 0;
  padding: 2px 7px;
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid rgba(0, 243, 255, 0.22);
  border-radius: 9999px;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}

.status-live-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hud-emerald);
  box-shadow: 0 0 6px var(--hud-emerald);
  animation: liveDotPulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.top-actions-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.top-icon-btn {
  background: rgba(0, 243, 255, 0.06);
  border: 1px solid rgba(0, 243, 255, 0.22);
  color: var(--hud-cyan);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--hud-font);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.top-icon-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-icon-btn:hover {
  background: rgba(0, 243, 255, 0.14);
  border-color: rgba(0, 243, 255, 0.45);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.top-icon-btn:active {
  background: rgba(0, 243, 255, 0.22);
  transform: scale(0.92);
}

.top-icon-lock {
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
}

.top-icon-lock:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* -------------------------------------------------------------------------
   2. AGENT SELECTOR HUD RIBBON (SCROLLABLE FAST SWITCHER)
   ------------------------------------------------------------------------- */
.agent-selector-hud-wrapper {
  z-index: 24;
  position: relative;
  padding: 6px 12px;
  overflow: hidden;
  background: rgba(3, 11, 23, 0.45);
}

.agent-selector-hud {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.agent-selector-hud::-webkit-scrollbar {
  display: none;
}

.agent-hud-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid rgba(0, 243, 255, 0.18);
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.agent-hud-chip .chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hud-emerald);
  box-shadow: 0 0 5px var(--hud-emerald);
}

.agent-hud-chip.active {
  background: rgba(0, 243, 255, 0.18);
  border-color: var(--hud-cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.3);
  transform: translateY(-1px);
}

.agent-hud-chip.active .chip-dot {
  background: var(--hud-cyan);
  box-shadow: 0 0 8px var(--hud-cyan);
}

.agent-hud-chip:active {
  transform: scale(0.94);
}

/* -------------------------------------------------------------------------
   3. CENTER STAGE (3D HOLOGRAPHIC ORB & SOUNDWAVE HUD)
   ------------------------------------------------------------------------- */
.jeroo-center-stage {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  z-index: 15;
  padding: 2px 14px;
}

/* Real-Time Interconnect Comms Ticker */
.interconnect-ticker {
  width: 100%;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 243, 255, 0.04);
  border: 1px solid rgba(0, 243, 255, 0.15);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 9.5px;
  backdrop-filter: blur(4px);
  overflow: hidden;
}

.ticker-badge {
  background: rgba(0, 243, 255, 0.2);
  color: var(--hud-cyan);
  padding: 1.5px 5px;
  border-radius: 3px;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  flex-shrink: 0;
}

.ticker-text {
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

/* 3D Reactor Orb Wrapper */
.hologram-reactor-wrapper {
  position: relative;
  width: min(68vw, 280px);
  height: min(68vw, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  margin: 4px 0;
}

.hologram-reactor-wrapper:active {
  cursor: grabbing;
}

.reactor-voice-pulse {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.22) 0%, rgba(0, 243, 255, 0.04) 50%, transparent 70%);
  pointer-events: none;
  animation: reactorPulseIdle 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes reactorPulseIdle {
  0%, 100% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

#reactorRingsCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

#hologram3dCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.reactor-drag-hint {
  position: absolute;
  bottom: -6px;
  font-size: 7.5px;
  letter-spacing: 1.5px;
  color: rgba(0, 243, 255, 0.45);
  font-weight: 700;
  pointer-events: none;
  z-index: 4;
}

/* Mode Variations for the Hologram Orb */
.hologram-reactor-wrapper.mode-listening .reactor-voice-pulse {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45) 0%, rgba(56, 189, 248, 0.15) 50%, transparent 75%);
  animation: reactorPulseListen 1s ease-in-out infinite;
}

@keyframes reactorPulseListen {
  0%, 100% { transform: scale(1.0); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
}

.hologram-reactor-wrapper.mode-thinking .reactor-voice-pulse {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, rgba(245, 158, 11, 0.1) 50%, transparent 70%);
  animation: reactorPulseThink 0.8s ease-in-out infinite;
}

@keyframes reactorPulseThink {
  0%, 100% { transform: scale(0.92); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.95; }
}

.hologram-reactor-wrapper.mode-speaking .reactor-voice-pulse {
  background: radial-gradient(circle, rgba(0, 243, 255, 0.5) 0%, rgba(0, 243, 255, 0.2) 60%, transparent 80%);
  animation: reactorPulseSpeak 0.6s ease-in-out infinite alternate;
}

@keyframes reactorPulseSpeak {
  0% { transform: scale(1.0); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 1; }
}

/* -------------------------------------------------------------------------
   UNIFIED INTELLIGENCE & VOICE HUB
   ------------------------------------------------------------------------- */
.unified-voice-hub {
  width: 100%;
  max-width: 380px;
  background: rgba(2, 9, 21, 0.88);
  border: 1px solid rgba(0, 243, 255, 0.25);
  border-radius: 12px;
  padding: 8px 12px 10px 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hearing-waveform-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 14px;
  width: 100%;
}

.hearing-waveform-bars .bar {
  width: 3.5px;
  height: 3px;
  border-radius: 2px;
  background: rgba(0, 243, 255, 0.25);
  transition: height 0.08s ease, background-color 0.1s ease;
}

.hearing-waveform-bars.active .bar {
  background: var(--hud-cyan);
  box-shadow: 0 0 5px var(--hud-cyan);
}

.caption-card-inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.caption-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.caption-speaker-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.caption-speaker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--hud-cyan);
  text-shadow: 0 0 8px var(--hud-cyan-glow);
}

.hearing-state-tag {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  background: rgba(0, 243, 255, 0.15);
  color: var(--hud-cyan);
  padding: 1px 5px;
  border-radius: 3px;
}

.hearing-state-tag.listening {
  background: rgba(16, 185, 129, 0.25);
  color: var(--hud-emerald);
}

.hearing-state-tag.speaking {
  background: rgba(0, 243, 255, 0.3);
  color: #fff;
}

.caption-mode {
  font-size: 7.5px;
  color: var(--hud-muted);
  letter-spacing: 0.8px;
}

.caption-text {
  font-size: 11.5px;
  line-height: 1.4;
  color: #f1f5f9;
  letter-spacing: 0.2px;
  max-height: 48px;
  overflow-y: auto;
}

/* -------------------------------------------------------------------------
   4. INTERACTIVE HUD DRAWER / BOTTOM SHEET
   ------------------------------------------------------------------------- */
.hud-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 6, 14, 0.85);
  backdrop-filter: blur(16px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.hud-modal-card {
  background: var(--hud-panel-bg);
  border: 1px solid var(--hud-panel-border);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  width: 100%;
  height: 82vh;
  height: 82dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 48px rgba(0, 243, 255, 0.18);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.hud-modal-overlay.open .hud-modal-card {
  transform: translateY(0);
}

.modal-handle-bar {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 243, 255, 0.3);
  margin: 8px auto 2px auto;
  flex-shrink: 0;
}

.hud-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 8px 18px;
  border-bottom: 1px solid rgba(0, 243, 255, 0.12);
}

.hud-card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-icon-pill {
  font-size: 13px;
}

.hud-card-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #fff;
  text-shadow: 0 0 10px var(--hud-cyan-glow);
}

.hud-card-close {
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid rgba(0, 243, 255, 0.2);
  color: var(--hud-cyan);
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* In-Modal Quick Tabs Strip */
.modal-tabs-strip {
  display: flex;
  padding: 6px 14px;
  gap: 6px;
  background: rgba(2, 9, 21, 0.5);
  border-bottom: 1px solid rgba(0, 243, 255, 0.1);
  overflow-x: auto;
}

.sheet-tab-btn {
  flex: 1;
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid rgba(0, 243, 255, 0.18);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.sheet-tab-btn.active {
  background: rgba(0, 243, 255, 0.22);
  border-color: var(--hud-cyan);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.25);
}

.hud-card-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Custom Sleek Scrollbar */
.hud-card-body::-webkit-scrollbar {
  width: 4px;
}
.hud-card-body::-webkit-scrollbar-thumb {
  background: rgba(0, 243, 255, 0.2);
  border-radius: 2px;
}

/* -------------------------------------------------------------------------
   CABINS INTERCONNECT MATRIX STYLES
   ------------------------------------------------------------------------- */
.matrix-broadcast-box {
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid rgba(0, 243, 255, 0.22);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.matrix-broadcast-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--hud-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

.matrix-broadcast-input-row {
  display: flex;
  gap: 6px;
}

.matrix-broadcast-input {
  flex: 1;
  background: rgba(1, 6, 14, 0.85);
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-radius: 8px;
  padding: 7px 10px;
  font-family: var(--hud-font);
  font-size: 10.5px;
  color: #fff;
  outline: none;
}

.matrix-broadcast-btn {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.25), rgba(2, 132, 199, 0.4));
  border: 1px solid var(--hud-cyan);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.8px;
  padding: 0 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comms-feed-box {
  background: rgba(2, 8, 19, 0.7);
  border: 1px solid rgba(0, 243, 255, 0.12);
  border-radius: 10px;
  padding: 8px;
  max-height: 100px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.comms-feed-item {
  font-size: 9.5px;
  line-height: 1.35;
  color: #cbd5e1;
  border-left: 2px solid var(--hud-cyan);
  padding-left: 7px;
}

.comms-feed-meta {
  font-size: 7.5px;
  color: var(--hud-cyan);
  font-weight: 700;
  margin-right: 4px;
}

.cabins-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.cabin-card {
  background: rgba(3, 11, 23, 0.8);
  border: 1px solid rgba(0, 243, 255, 0.16);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cabin-card.active-target {
  border-color: var(--hud-cyan);
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.2);
}

.cabin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cabin-agent-info {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cabin-agent-icon {
  font-size: 18px;
  background: rgba(0, 243, 255, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 243, 255, 0.2);
}

.cabin-agent-names {
  display: flex;
  flex-direction: column;
}

.cabin-agent-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
}

.cabin-agent-title {
  font-size: 8.5px;
  color: var(--hud-muted);
}

.cabin-status-badge {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2.5px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--hud-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cabin-task-box {
  background: rgba(0, 243, 255, 0.03);
  border: 1px solid rgba(0, 243, 255, 0.08);
  border-radius: 7px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cabin-task-text {
  font-size: 10.5px;
  color: #e2e8f0;
  line-height: 1.35;
}

.cabin-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cabin-progress-bar {
  flex: 1;
  height: 4.5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.cabin-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hud-blue), var(--hud-cyan));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.cabin-progress-pct {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--hud-cyan);
  min-width: 26px;
}

.cabin-card-actions {
  display: flex;
  gap: 5px;
}

.cabin-action-btn {
  flex: 1;
  background: rgba(0, 243, 255, 0.06);
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-radius: 6px;
  padding: 5px;
  font-size: 9.5px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cabin-action-btn:active {
  background: rgba(0, 243, 255, 0.2);
  color: #fff;
}

/* -------------------------------------------------------------------------
   EXECUTIVE TERMINAL & CHAT
   ------------------------------------------------------------------------- */
.hud-pills-row {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.hud-pills-row::-webkit-scrollbar {
  display: none;
}

.hud-pill {
  flex-shrink: 0;
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid rgba(0, 243, 255, 0.22);
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--hud-cyan);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hud-pill:active {
  background: rgba(0, 243, 255, 0.25);
  transform: scale(0.96);
}

.hud-chat-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-right: 4px;
  min-height: 180px;
}

.hud-chat-item {
  display: flex;
  flex-direction: column;
  gap: 2.5px;
  max-width: 88%;
}

.hud-chat-item.user-msg {
  align-self: flex-end;
}

.hud-chat-item.agent-msg {
  align-self: flex-start;
}

.hud-chat-meta {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--hud-muted);
}

.hud-chat-item.user-msg .hud-chat-meta {
  text-align: right;
  color: var(--hud-cyan);
}

.hud-chat-bubble {
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 11.5px;
  line-height: 1.4;
}

.hud-chat-item.user-msg .hud-chat-bubble {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.4), rgba(0, 243, 255, 0.25));
  border: 1px solid rgba(0, 243, 255, 0.35);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.hud-chat-item.agent-msg .hud-chat-bubble {
  background: rgba(3, 11, 23, 0.85);
  border: 1px solid rgba(0, 243, 255, 0.18);
  color: #f1f5f9;
  border-bottom-left-radius: 2px;
}

.hud-input-row {
  display: flex;
  gap: 7px;
  margin-top: 6px;
}

.hud-text-input {
  flex: 1;
  background: rgba(1, 6, 14, 0.85);
  border: 1px solid rgba(0, 243, 255, 0.25);
  border-radius: 9px;
  padding: 8px 12px;
  font-family: var(--hud-font);
  font-size: 11.5px;
  color: #fff;
  outline: none;
}

.hud-text-input:focus {
  border-color: var(--hud-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.hud-btn-send {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.3), rgba(2, 132, 199, 0.5));
  border: 1px solid var(--hud-cyan);
  border-radius: 9px;
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.8px;
  padding: 0 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-btn-send:active {
  transform: scale(0.94);
}

/* -------------------------------------------------------------------------
   5. BOTTOM DOCK (JARVIS CYBER-DOCK)
   ------------------------------------------------------------------------- */
.jeroo-bottom-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px calc(8px + var(--safe-bottom)) 16px;
  background: linear-gradient(0deg, rgba(2, 8, 19, 0.98) 0%, rgba(2, 8, 19, 0.45) 100%);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0, 243, 255, 0.12);
  z-index: 25;
  position: relative;
}

.dock-left-actions, .dock-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.dock-left-actions {
  justify-content: flex-start;
}

.dock-right-actions {
  justify-content: flex-end;
}

.dock-btn {
  background: none;
  border: none;
  color: var(--hud-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 3px;
  transition: all 0.2s ease;
}

.dock-btn svg {
  width: 19px;
  height: 19px;
  stroke: var(--hud-muted);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s, transform 0.2s;
}

.dock-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.dock-btn.active, .dock-btn:hover {
  color: var(--hud-cyan);
}

.dock-btn.active svg, .dock-btn:hover svg {
  stroke: var(--hud-cyan);
  filter: drop-shadow(0 0 6px var(--hud-cyan-glow));
  transform: translateY(-1px);
}

/* Center Big Arc Reactor Mic Button */
.dock-center-reactor {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
}

.btn-center-mic-orb {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.3) 0%, rgba(2, 8, 19, 0.95) 75%);
  border: 2px solid var(--hud-cyan);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.35), inset 0 0 10px rgba(0, 243, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(-6px);
}

.btn-center-mic-orb svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px var(--hud-cyan));
}

.mic-pulsing-rings {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 243, 255, 0.4);
  animation: spinRings 12s linear infinite;
  pointer-events: none;
}

@keyframes spinRings {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-center-mic-orb.listening {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.5) 0%, rgba(2, 8, 19, 0.95) 75%);
  border-color: var(--hud-emerald);
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.6);
  transform: translateY(-6px) scale(1.08);
}

.btn-center-mic-orb.listening svg {
  stroke: #fff;
  filter: drop-shadow(0 0 10px var(--hud-emerald));
}

.btn-center-mic-orb:active {
  transform: translateY(-4px) scale(0.92);
}

/* -------------------------------------------------------------------------
   6. EXECUTIVE NOTIFICATION CENTER & BLOCKER MODULE
   ------------------------------------------------------------------------- */
.top-icon-notif {
  position: relative;
}

.notif-badge-pill {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 9999px;
  background: #ef4444;
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: notifPillPulse 2s infinite;
}

@keyframes notifPillPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

#sheetNotifCount {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  margin-left: 2px;
}

.notif-center-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

.notif-filter-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.notif-filter-strip::-webkit-scrollbar { display: none; }

.notif-filter-pill {
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid rgba(0, 243, 255, 0.2);
  color: var(--hud-muted);
  transition: all 0.2s;
  white-space: nowrap;
}

.notif-filter-pill.active {
  background: rgba(0, 243, 255, 0.2);
  border-color: var(--hud-cyan);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.notif-filter-pill.pill-blocker.active {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fca5a5;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.notif-list-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-card {
  background: rgba(2, 8, 19, 0.85);
  border: 1px solid rgba(0, 243, 255, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.notif-card:hover {
  border-color: rgba(0, 243, 255, 0.4);
  transform: translateY(-1px);
}

.notif-card.unread {
  border-left: 4px solid var(--hud-cyan);
}

/* Critical Blocker Card */
.notif-card-blocker {
  border-color: rgba(239, 68, 68, 0.45);
  background: radial-gradient(circle at 10% 20%, rgba(239, 68, 68, 0.1) 0%, rgba(2, 8, 19, 0.95) 70%);
  animation: blockerCardGlow 2.5s infinite;
}

.notif-card-blocker.unread {
  border-left: 4px solid #ef4444;
}

@keyframes blockerCardGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.18); }
  50% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.38); }
}

/* 20-min digest Card */
.notif-card-digest {
  border-color: rgba(16, 185, 129, 0.35);
  background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.08) 0%, rgba(2, 8, 19, 0.95) 70%);
}

.notif-card-digest.unread {
  border-left: 4px solid var(--hud-emerald);
}

.notif-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notif-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-type-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
}

.tag-blocker {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.tag-digest {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.tag-system {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.notif-timestamp {
  font-size: 10px;
  color: #64748b;
  font-family: var(--hud-mono);
}

.notif-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.notif-summary {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Jeroo Actionable Direction Highlight Box */
.notif-direction-box {
  background: rgba(0, 243, 255, 0.06);
  border: 1px solid rgba(0, 243, 255, 0.28);
  border-left: 3px solid var(--hud-cyan);
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}

.direction-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--hud-cyan);
}

.direction-text {
  font-size: 11.5px;
  color: #e2e8f0;
  line-height: 1.4;
}

/* Action Buttons Row */
.notif-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.btn-notif-directive {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.25), rgba(99, 102, 241, 0.25));
  border: 1px solid var(--hud-cyan);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.btn-notif-directive:hover {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.45), rgba(99, 102, 241, 0.45));
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.4);
  transform: translateY(-1px);
}

.btn-notif-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-notif-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.notif-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
