/* ==========================================================================
   DROSOMIND - Cybernetic Male Connectome & Bio-Organism Stylesheet
   Modern DeepBio Dark Theme | Glassmorphic HUD | Sci-Fi Micro-animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-deep: #050811;
  --bg-surface: rgba(10, 16, 30, 0.75);
  --bg-surface-elevated: rgba(16, 26, 48, 0.85);
  --border-cyan: rgba(0, 229, 255, 0.25);
  --border-cyan-glow: rgba(0, 229, 255, 0.5);
  --accent-cyan: #00e5ff;
  --accent-green: #00ff88;
  --accent-pink: #ff007f;
  --accent-orange: #ff6600;
  --accent-gold: #ffd700;
  --accent-purple: #b388ff;
  --text-primary: #f0f6fc;
  --text-secondary: #8b9bb4;
  --text-muted: #55667e;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --glass-blur: blur(16px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* 3D WebGL Canvas Container */
#webgl-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Main UI Application Overlay */
.app-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 24px;
}

.interactive {
  pointer-events: auto;
}

/* Glassmorphism Panel Base */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.08);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--border-cyan-glow);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 28px rgba(0, 229, 255, 0.15);
}

/* -------------------------------------------------------------
   Header Navigation Bar
   ------------------------------------------------------------- */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  width: 100%;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(255, 0, 127, 0.25));
  border: 1px solid var(--accent-cyan);
  font-size: 20px;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #ffffff, #00e5ff 60%, #ff007f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-indicator {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-glow 1.8s infinite;
}

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

/* View Mode Selector Tabs */
.view-tabs {
  display: flex;
  background: rgba(4, 8, 18, 0.7);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
}

.view-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 14px;
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.view-tab.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(0, 229, 255, 0.08));
  color: var(--accent-cyan);
  border: 1px solid var(--border-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-header {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 8px 14px;
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-header:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
}

.btn-header.active {
  background: rgba(0, 255, 136, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* -------------------------------------------------------------
   Main Workspace Layout: Left Stimulus Toolbar + Right Telemetry HUD
   ------------------------------------------------------------- */
.main-content-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  flex: 1;
  margin: 14px 0;
  gap: 20px;
}

/* Left Stimulus Toolbar */
.stimulus-dock {
  display: flex;
  flex-direction: column;
  width: 260px;
  padding: 16px;
  gap: 12px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

.dock-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  padding-bottom: 8px;
}

.stimulus-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stim-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(14, 24, 44, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.stim-btn:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--border-cyan);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.15);
}

.stim-btn:active {
  transform: scale(0.97);
}

.stim-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.stim-meta {
  display: flex;
  flex-direction: column;
}

.stim-name {
  font-weight: 600;
  color: var(--text-primary);
}

.stim-circuit {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Special Button Color Variations */
.stim-btn.looming:hover { border-color: #ff3300; background: rgba(255, 51, 0, 0.15); box-shadow: 0 0 16px rgba(255, 51, 0, 0.3); }
.stim-btn.courtship:hover { border-color: #ff007f; background: rgba(255, 0, 127, 0.15); box-shadow: 0 0 16px rgba(255, 0, 127, 0.3); }
.stim-btn.sugar:hover { border-color: #ffd700; background: rgba(255, 215, 0, 0.15); box-shadow: 0 0 16px rgba(255, 215, 0, 0.3); }

/* Neuron Inspector Section */
.neuron-inspector-card {
  padding: 12px;
  background: rgba(6, 12, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 11px;
}

.inspector-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--accent-cyan);
}

.region-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.inspector-body p {
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.inspector-body strong {
  color: var(--text-primary);
}

/* -------------------------------------------------------------
   Right Telemetry HUD
   ------------------------------------------------------------- */
.telemetry-dock {
  display: flex;
  flex-direction: column;
  width: 320px;
  padding: 16px;
  gap: 14px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

/* Status Cards & Live Badges */
.telemetry-badges-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-box {
  background: rgba(6, 12, 22, 0.7);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.stat-value {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-top: 2px;
}

.hud-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 4px;
}

.hud-badge-green { background: rgba(0, 255, 136, 0.15); color: var(--accent-green); border: 1px solid rgba(0, 255, 136, 0.3); }
.hud-badge-pink { background: rgba(255, 0, 127, 0.2); color: var(--accent-pink); border: 1px solid rgba(255, 0, 127, 0.4); animation: pulse-pink 1.2s infinite; }
.hud-badge-red { background: rgba(255, 51, 0, 0.2); color: #ff4433; border: 1px solid rgba(255, 51, 0, 0.4); }
.hud-badge-blue { background: rgba(0, 229, 255, 0.15); color: var(--accent-cyan); border: 1px solid rgba(0, 229, 255, 0.3); }

@keyframes pulse-pink {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 0, 127, 0.3); }
  50% { box-shadow: 0 0 16px rgba(255, 0, 127, 0.6); }
}

/* Canvas Monitor Boxes */
.monitor-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.monitor-canvas {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 8, 16, 0.9);
}

.compass-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

/* Dimorphism Description Panel */
.dimorphism-panel {
  display: none;
  padding: 14px;
  background: rgba(14, 24, 44, 0.85);
  border: 1px solid var(--accent-pink);
  border-radius: var(--radius-sm);
  font-size: 11px;
  line-height: 1.5;
  box-shadow: 0 0 18px rgba(255, 0, 127, 0.2);
}

.dimorphism-panel h4 {
  font-family: var(--font-display);
  color: var(--accent-pink);
  margin-bottom: 6px;
  font-size: 13px;
}

.dimorphism-legend {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-family: var(--font-mono);
}

/* -------------------------------------------------------------
   Bottom Control Dock (Ablation, Audio, 1-Click Reel Record)
   ------------------------------------------------------------- */
.bottom-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  width: 100%;
}

.bottom-left-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.tool-btn.active {
  background: rgba(255, 51, 102, 0.2);
  border-color: #ff3366;
  color: #ff3366;
  box-shadow: 0 0 14px rgba(255, 51, 102, 0.4);
}

/* 1-Click Reel Video Record Button */
.btn-reel-record {
  background: linear-gradient(135deg, #ff007f, #7928ca);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px 20px;
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
}

.btn-reel-record:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 0, 127, 0.7);
}

.btn-reel-record.recording {
  background: #ff0033;
  animation: pulse-recording 1.2s infinite;
}

.rec-dot {
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

@keyframes pulse-recording {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 0, 51, 0.5); }
  50% { box-shadow: 0 0 30px rgba(255, 0, 51, 0.9); }
}

/* -------------------------------------------------------------
   Toast Notification Banner
   ------------------------------------------------------------- */
#drosomind-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(10, 18, 34, 0.95);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 18px rgba(0, 229, 255, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

#drosomind-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* -------------------------------------------------------------
   Scientific Modal Overlay
   ------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 6, 14, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

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

.modal-content {
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 36px rgba(0, 229, 255, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent-cyan);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-close-modal:hover {
  color: var(--accent-pink);
}

.modal-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.modal-body h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 18px 0 8px 0;
  font-size: 15px;
}

.modal-body p {
  margin-bottom: 12px;
}

.modal-body ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.modal-body li {
  margin-bottom: 6px;
}

.citation-box {
  background: rgba(4, 8, 18, 0.8);
  border-left: 3px solid var(--accent-cyan);
  padding: 12px 16px;
  border-radius: 4px;
  margin: 16px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
}

/* -------------------------------------------------------------
   Guided Tour & Header Controls Styles
   ------------------------------------------------------------- */
.btn-header.tour-glow {
  background: linear-gradient(135deg, rgba(179, 136, 255, 0.25), rgba(0, 229, 255, 0.2));
  border-color: rgba(179, 136, 255, 0.5);
  box-shadow: 0 0 14px rgba(179, 136, 255, 0.25);
  transition: var(--transition);
}

.btn-header.tour-glow:hover, .btn-header.tour-glow.active {
  background: linear-gradient(135deg, rgba(179, 136, 255, 0.45), rgba(0, 229, 255, 0.35));
  border-color: var(--accent-purple);
  box-shadow: 0 0 22px rgba(179, 136, 255, 0.5);
  transform: translateY(-1px);
}

/* Header Volume Slider */
.header-volume-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(4, 8, 18, 0.7);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vol-icon {
  font-size: 13px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* -------------------------------------------------------------
   Simulation Timescale Speed Controls
   ------------------------------------------------------------- */
.timescale-group {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  background: rgba(4, 8, 18, 0.7);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timescale-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
  letter-spacing: 0.5px;
}

.speed-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.speed-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.speed-btn.active {
  background: rgba(0, 229, 255, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}

/* -------------------------------------------------------------
   Guided Tour Floating HUD Overlay
   ------------------------------------------------------------- */
.guided-tour-card {
  display: none;
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 520px;
  padding: 18px 22px;
  background: rgba(10, 16, 32, 0.92);
  border: 1px solid var(--accent-purple);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 32px rgba(179, 136, 255, 0.25);
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.guided-tour-card.active {
  display: block;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 25px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.tour-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tour-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-purple);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.tour-step-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  background: rgba(179, 136, 255, 0.15);
  color: #d1b8ff;
  border: 1px solid rgba(179, 136, 255, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
}

.tour-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0 4px;
}

.tour-close-btn:hover {
  color: var(--accent-pink);
}

.tour-content {
  margin-bottom: 16px;
}

.tour-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.tour-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.tour-circuit-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
  border-left: 2px solid var(--accent-cyan);
  display: inline-block;
}

.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tour-action-btn {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.tour-action-btn:hover {
  background: rgba(0, 229, 255, 0.25);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
  transform: translateY(-1px);
}

.tour-nav-btns {
  display: flex;
  gap: 8px;
}

.tour-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.tour-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.tour-nav-btn.primary {
  background: linear-gradient(135deg, rgba(179, 136, 255, 0.3), rgba(0, 229, 255, 0.3));
  border-color: var(--accent-purple);
  color: #ffffff;
  font-weight: 600;
}

.tour-nav-btn.primary:hover {
  background: linear-gradient(135deg, rgba(179, 136, 255, 0.5), rgba(0, 229, 255, 0.5));
  box-shadow: 0 0 14px rgba(179, 136, 255, 0.4);
}

/* -------------------------------------------------------------
   Responsive Mobile Adjustments
   ------------------------------------------------------------- */
@media (max-width: 900px) {
  .top-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .main-content-layout {
    flex-direction: column;
  }
  .stimulus-dock, .telemetry-dock {
    width: 100%;
    max-height: 240px;
  }
  .bottom-dock {
    flex-direction: column;
    gap: 12px;
  }
  .guided-tour-card {
    bottom: 120px;
    width: 95%;
  }
}
