/* ==========================================================================
   AETHER COSMOS MX — V3 DESIGN SYSTEM
   Solar System Scope + NASA Eyes + 100,000 Stars + Framer Pro Obsidian UI
   ========================================================================== */

:root {
  --bg-void: #020308;
  --glass-bg: rgba(7, 10, 22, 0.72);
  --glass-bg-elevated: rgba(13, 19, 38, 0.82);
  --glass-border: rgba(255, 255, 255, 0.11);
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-gold: #f5c451;
  --accent-gold-soft: rgba(245, 196, 81, 0.18);
  --accent-cyan: #38bdf8;
  --accent-indigo: #818cf8;
  --accent-emerald: #34d399;
  --accent-rose: #fb7185;
  --planet-dynamic-color: #38bdf8;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

body[data-theme="armillary"] {
  --glass-bg: rgba(16, 13, 8, 0.76);
  --glass-border: rgba(245, 196, 81, 0.26);
  --planet-dynamic-color: #f5c451;
}

body[data-theme="nasa"] {
  --glass-bg: rgba(4, 12, 24, 0.80);
  --glass-border: rgba(56, 189, 248, 0.28);
  --planet-dynamic-color: #38bdf8;
}

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

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

/* ==========================================================================
   1. CINEMATIC PRELOADER OVERLAY (Solar System Scope / 100,000 Stars Style)
   ========================================================================== */
.cosmos-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, #0b132b 0%, #03050c 65%, #010206 100%);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.85s ease;
}

.cosmos-loader-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-bg-art {
  position: absolute;
  inset: 0;
  background-image: url("./assets/ai/deep-space-nebula-equirect.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: saturate(1.2) contrast(1.1);
}

.loader-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  width: 90%;
  text-align: center;
  padding: 36px 32px;
  border-radius: 24px;
  background: rgba(6, 10, 22, 0.78);
  border: 1px solid rgba(245, 196, 81, 0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 60px rgba(56, 189, 248, 0.14);
}

.loader-astrolabe {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245, 196, 81, 0.45);
}

.loader-ring-1 {
  inset: 0;
  border-top-color: #f5c451;
  border-bottom-color: rgba(56, 189, 248, 0.6);
  animation: orbitSpin 7s linear infinite;
}

.loader-ring-2 {
  inset: 14px;
  border-style: dashed;
  border-color: rgba(56, 189, 248, 0.45);
  animation: orbitSpinReverse 11s linear infinite;
}

.loader-ring-3 {
  inset: 28px;
  border-color: rgba(255, 255, 255, 0.22);
  animation: orbitSpin 5s linear infinite;
}

.loader-sun-core {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7d6 0%, #f5c451 55%, #ea580c 100%);
  box-shadow: 0 0 28px #f59e0b, 0 0 55px rgba(245, 158, 11, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e1b18;
  font-size: 18px;
  font-weight: 700;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes orbitSpinReverse {
  to { transform: rotate(-360deg); }
}

.loader-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.loader-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.loader-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.loader-progress-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #f5c451);
  border-radius: 999px;
  transition: width 0.25s ease;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.7);
}

.loader-telemetry {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.loader-enter-btn {
  margin-top: 16px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(245, 196, 81, 0.6);
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.25), rgba(56, 189, 248, 0.22));
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(245, 196, 81, 0.3);
}

/* ==========================================================================
   2. 3D CANVAS, VIGNETTE & FLOATING 3D LABELS
   ========================================================================== */
#cosmosCanvasContainer,
#cosmosCanvasContainer canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  cursor: grab;
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#cosmosCanvasContainer:active {
  cursor: grabbing;
}

.cinema-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 56%, rgba(1, 3, 10, 0.68) 100%);
}

.labels-layer {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  touch-action: none;
}

.floating-label {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(5, 9, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.floating-label:hover,
.floating-label.selected {
  background: rgba(15, 23, 42, 0.92);
  border-color: var(--accent-gold);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(245, 196, 81, 0.35);
}

.floating-label .sym {
  color: var(--accent-gold);
  font-size: 12px;
}

.floating-label .zodiac-mini {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-cyan);
  opacity: 0.9;
}

.floating-label.zodiac-sign-label {
  background: rgba(20, 15, 8, 0.62);
  border-color: rgba(245, 196, 81, 0.28);
  color: #fde68a;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   3. GLASS PANEL BASE (Framer Pro Obsidian Glass)
   ========================================================================== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   4. TOP HEADER BAR
   ========================================================================== */
.top-bar {
  position: fixed;
  top: 12px;
  left: 14px;
  right: 14px;
  height: 58px;
  z-index: 20;
  border-radius: 16px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 215px;
}

.brand-orb {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(245, 196, 81, 0.35), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(245, 196, 81, 0.5);
}

.brand-orb-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px dashed rgba(245, 196, 81, 0.45);
  animation: orbitSpin 14s linear infinite;
}

.brand-orb-core {
  color: var(--accent-gold);
  font-size: 16px;
}

.brand-kicker {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.brand-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.mode-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(2, 4, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mode-btn {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.mode-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(129, 140, 248, 0.25));
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.22);
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-btn.active,
.theme-btn:hover {
  border-color: var(--accent-gold);
  background: rgba(245, 196, 81, 0.18);
  box-shadow: 0 0 12px rgba(245, 196, 81, 0.25);
}

.scale-toggle-btn {
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: rgba(14, 116, 144, 0.2);
  color: #e0f2fe;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scale-toggle-btn:hover,
.scale-toggle-btn.active {
  background: rgba(56, 189, 248, 0.3);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.geo-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.geo-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
}

.geo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.city-select {
  padding: 6px 9px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 14, 28, 0.85);
  color: #e2e8f0;
  font-size: 11.5px;
  outline: none;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 9px;
  background: rgba(9, 14, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.lang-btn {
  padding: 4px 7px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-btn:hover {
  color: #f8fafc;
}

.lang-btn.active {
  background: rgba(245, 196, 81, 0.22);
  color: #fde68a;
  box-shadow: 0 0 10px rgba(245, 196, 81, 0.25);
}

.birth-trigger-btn {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid rgba(245, 196, 81, 0.45);
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.22), rgba(234, 88, 12, 0.18));
  color: #fef3c7;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.birth-trigger-btn:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 16px rgba(245, 196, 81, 0.35);
}

/* ==========================================================================
   5. LEFT DOCK (Planet Selector, Layer Toggles & Local Horizon Radar)
   ========================================================================== */
.left-dock {
  position: fixed;
  top: 80px;
  left: 14px;
  bottom: 92px;
  width: 282px;
  z-index: 15;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow-y: auto;
}

.dock-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.dock-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.mini-action-btn {
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 10.5px;
  cursor: pointer;
}

.mini-action-btn:hover {
  border-color: var(--accent-cyan);
  color: #fff;
}

.planet-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 255px;
  overflow-y: auto;
  padding-right: 3px;
}

.planet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 23, 42, 0.42);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.planet-item:hover {
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(2px);
}

.planet-item.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(245, 196, 81, 0.14));
  border-color: rgba(245, 196, 81, 0.55);
  box-shadow: 0 0 18px rgba(245, 196, 81, 0.18);
}

.planet-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.planet-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.planet-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}

.planet-role {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}

.planet-zodiac-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(2, 6, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-gold);
}

.dock-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 2px 0;
}

.layer-toggles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.toggle-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11.5px;
  color: var(--text-muted);
  cursor: pointer;
}

.toggle-chip.active {
  color: #f1f5f9;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(14, 116, 144, 0.16);
}

.toggle-chip input {
  accent-color: var(--accent-cyan);
}

/* Local Horizon Compass */
.live-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.14);
  color: var(--accent-emerald);
}

.horizon-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(3, 7, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.horizon-compass {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizon-compass:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

.mini-sky-dome-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
}

.compass-svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.compass-outer {
  fill: rgba(4, 8, 22, 0.18);
  stroke: rgba(245, 196, 81, 0.45);
  stroke-width: 1.5;
}

.compass-inner {
  fill: none;
  stroke: rgba(56, 189, 248, 0.25);
  stroke-dasharray: 3 3;
}

.compass-axis {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
}

.compass-dir {
  fill: #94a3b8;
  font-size: 10px;
  font-family: var(--font-mono);
  text-anchor: middle;
}

.horizon-stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.horizon-stat-row {
  display: flex;
  flex-direction: column;
}

.stat-k {
  font-size: 9.5px;
  color: var(--text-muted);
}

.stat-v {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #f8fafc;
}

.gold-text {
  color: var(--accent-gold);
}

.visibility-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-emerald);
}

.visibility-badge.below {
  color: var(--text-muted);
}

/* ==========================================================================
   6. RIGHT INSPECTOR & FREE AI COPILOT PANEL
   ========================================================================== */
.right-inspector {
  position: fixed;
  top: 80px;
  right: 14px;
  bottom: 92px;
  width: 368px;
  z-index: 15;
  border-radius: 18px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow-y: auto;
  border-top: 1px solid var(--planet-dynamic-color);
}

/* AI Bento Banner at top of Right Inspector */
.inspector-bento-banner {
  position: relative;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background-image: url("./assets/ai/zodiac-astrolabe-bento.jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(245, 196, 81, 0.32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.inspector-bento-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 7, 18, 0.78) 0%, rgba(4, 7, 18, 0.35) 55%, rgba(4, 7, 18, 0.82) 100%);
}

.bento-texture-orb {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-image: url("./assets/textures/earth_day_2k.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: inset -8px -6px 14px rgba(0, 0, 0, 0.85), 0 0 22px var(--planet-dynamic-color);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.bento-ephemeris-pill {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(4, 12, 26, 0.82);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: var(--accent-emerald);
}

.inspector-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.inspector-category-pill,
.inspector-zodiac-pill,
.inspector-retro-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.06em;
}

.inspector-category-pill {
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.inspector-zodiac-pill {
  background: rgba(245, 196, 81, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 196, 81, 0.35);
}

.inspector-retro-pill {
  background: rgba(251, 113, 133, 0.16);
  color: var(--accent-rose);
  border: 1px solid rgba(251, 113, 133, 0.35);
}

.inspector-title-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.inspector-symbol {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent-gold);
}

.inspector-title {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

.inspector-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Telemetry Grid */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.telemetry-cell {
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(3, 7, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tel-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.tel-value {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: #f8fafc;
}

/* Narrative Cards */
.narrative-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.narrative-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 16, 34, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
}

.astro-card {
  background: rgba(24, 18, 10, 0.58);
  border-color: rgba(245, 196, 81, 0.24);
}

.card-kicker {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.astro-card .card-kicker {
  color: var(--accent-gold);
}

/* AI Copilot Box */
.ai-copilot-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px;
  border-radius: 14px;
  background: rgba(4, 8, 20, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.24);
  margin-top: auto;
}

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

.ai-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-sparkle {
  color: var(--accent-gold);
}

.ai-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
}

.ai-context-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.ai-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.prompt-chip {
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  font-size: 10.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.prompt-chip:hover {
  border-color: var(--accent-cyan);
  color: #fff;
  background: rgba(56, 189, 248, 0.18);
}

.ai-chat-log {
  max-height: 128px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.ai-msg {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.48;
}

.ai-msg.assistant {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.ai-msg.user {
  align-self: flex-end;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #fff;
}

.ai-input-form {
  display: flex;
  gap: 6px;
}

.ai-input {
  flex: 1;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 16, 0.85);
  color: #fff;
  font-size: 11.5px;
  outline: none;
}

.ai-input:focus {
  border-color: var(--accent-cyan);
}

.ai-send-btn {
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid rgba(245, 196, 81, 0.5);
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.28), rgba(56, 189, 248, 0.24));
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   7. BOTTOM TIME-MACHINE & ZODIAC STRIP
   ========================================================================== */
.bottom-bar {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 68px;
  z-index: 20;
  border-radius: 16px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.time-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.time-btn,
.speed-btn {
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}

.time-btn.active,
.speed-btn.active {
  background: rgba(56, 189, 248, 0.24);
  border-color: var(--accent-cyan);
  color: #fff;
}

.speed-group {
  display: flex;
  gap: 4px;
}

.time-scrubber-wrap {
  flex: 1;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.time-Readout {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-gold);
}

.date-picker-input {
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 8, 20, 0.85);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.time-slider {
  width: 100%;
  height: 4px;
  accent-color: var(--accent-gold);
  cursor: pointer;
}

.zodiac-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.zodiac-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(245, 196, 81, 0.18);
  background: rgba(18, 14, 8, 0.55);
  color: #fde68a;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.zodiac-chip:hover,
.zodiac-chip.active {
  background: rgba(245, 196, 81, 0.25);
  border-color: var(--accent-gold);
  color: #fff;
  box-shadow: 0 0 14px rgba(245, 196, 81, 0.3);
}

.zodiac-chip .z-sym {
  font-size: 13px;
}

/* ==========================================================================
   8. BIRTH-SKY MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 4, 12, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.birth-modal {
  max-width: 560px;
  width: 100%;
  border-radius: 22px;
  padding: 24px;
  border: 1px solid rgba(245, 196, 81, 0.35);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.modal-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.birth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.form-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
}

.form-row input,
.form-row select {
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 8, 20, 0.9);
  color: #fff;
  font-size: 12px;
}

.birth-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.birth-pill {
  padding: 10px;
  border-radius: 11px;
  background: rgba(245, 196, 81, 0.1);
  border: 1px solid rgba(245, 196, 81, 0.28);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.birth-pill span {
  font-size: 10px;
  color: var(--text-muted);
}

.birth-pill strong {
  font-size: 13px;
  color: var(--accent-gold);
}

.primary-glow-btn {
  width: 100%;
  padding: 11px 18px;
  border-radius: 11px;
  border: 1px solid rgba(245, 196, 81, 0.6);
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.3), rgba(56, 189, 248, 0.25));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .left-dock {
    width: 240px;
  }
  .right-inspector {
    width: 320px;
  }
}

@media (max-width: 900px) {
  .left-dock {
    display: none;
  }
  .right-inspector {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 84px;
    width: auto;
    max-height: 44vh;
  }
}

/* ==========================================================================
   9. COSMIC SOUND ENGINE CONTROLS & KEPLER FREQUENCY PILL
   ========================================================================== */
.sound-control-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 10px;
  background: rgba(8, 12, 26, 0.72);
  border: 1px solid rgba(245, 196, 81, 0.28);
}

.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(245, 196, 81, 0.14);
  color: #fde68a;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sound-toggle-btn:hover {
  background: rgba(245, 196, 81, 0.26);
  color: #ffffff;
}

.sound-toggle-btn.active {
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.35), rgba(56, 189, 248, 0.28));
  border-color: rgba(245, 196, 81, 0.65);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(245, 196, 81, 0.35);
}

.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.eq-bars span {
  width: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent-gold);
  transition: height 0.2s ease;
}

.sound-toggle-btn.active .eq-bars span:nth-child(1) {
  animation: eqPulse 0.75s ease-in-out infinite alternate;
}
.sound-toggle-btn.active .eq-bars span:nth-child(2) {
  animation: eqPulse 0.55s ease-in-out 0.15s infinite alternate;
}
.sound-toggle-btn.active .eq-bars span:nth-child(3) {
  animation: eqPulse 0.85s ease-in-out 0.3s infinite alternate;
}
.sound-toggle-btn.active .eq-bars span:nth-child(4) {
  animation: eqPulse 0.65s ease-in-out 0.1s infinite alternate;
}

@keyframes eqPulse {
  0% { height: 3px; opacity: 0.6; }
  100% { height: 11px; opacity: 1; }
}

.sound-select {
  padding: 4px 6px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 8, 20, 0.9);
  color: #e2e8f0;
  font-size: 10.5px;
  outline: none;
  cursor: pointer;
}

.bento-right-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.bento-freq-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(24, 18, 8, 0.86);
  border: 1px solid rgba(245, 196, 81, 0.45);
  color: var(--accent-gold);
}

/* ==========================================================================
   10. V5 PLANETARY SURFACE LANDMARKS (GOOGLE-VIEW) & 3D MOON SYSTEM EXPLORER
   ========================================================================== */
.planetary-explorer-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(5, 11, 26, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.explorer-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
}

.explorer-tab {
  flex: 1;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.explorer-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.explorer-tab.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(245, 196, 81, 0.18));
  border-color: rgba(245, 196, 81, 0.55);
  color: #fff;
}

.explorer-Overview-btn {
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(245, 196, 81, 0.45);
  background: rgba(245, 196, 81, 0.16);
  color: #fde68a;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.explorer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.explorer-list[hidden],
.explorer-spotlight[hidden],
.explorer-Overview-btn[hidden] {
  display: none !important;
}

.explorer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}

.explorer-chip:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

.explorer-chip.active {
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.3), rgba(56, 189, 248, 0.25));
  border-color: var(--accent-gold);
  color: #fff;
  box-shadow: 0 0 14px rgba(245, 196, 81, 0.3);
}

.explorer-chip .chip-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--accent-gold);
  opacity: 0.9;
}

.explorer-spotlight {
  padding: 9px 10px;
  border-radius: 11px;
  background: rgba(11, 18, 36, 0.88);
  border: 1px solid rgba(245, 196, 81, 0.38);
  font-size: 11.5px;
  line-height: 1.45;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spotlight-img-wrap {
  position: relative;
  width: 100%;
  height: 118px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #02040a;
}

.spotlight-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.explorer-spotlight:hover .spotlight-img-wrap img {
  transform: scale(1.05);
}

.spotlight-cam-tag {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(3, 7, 18, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #e0f2fe;
  font-family: var(--font-mono);
  font-size: 9px;
}

.spotlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.spotlight-head strong {
  color: #fff;
  font-size: 12px;
}

.spotlight-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(245, 196, 81, 0.18);
  color: var(--accent-gold);
}

.floating-label.moon-label {
  background: rgba(8, 16, 32, 0.82);
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
  font-size: 10.5px;
  padding: 2px 7px;
}

.floating-label.landmark-pin-label {
  background: rgba(10, 14, 24, 0.78);
  border-color: rgba(245, 196, 81, 0.5);
  color: #fef3c7;
  font-size: 9.8px;
  padding: 3px 8px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* V18: Vertical Logo-Emblem + Name Underneath Marker on Earth (Geo-Locked) */
.floating-label.landmark-pin-label.logo-marker {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 10px 6px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.88) 0%, rgba(4, 7, 15, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75);
  transform-origin: 50% calc(100% + 7px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-label.landmark-pin-label.logo-marker:hover {
  border-color: #ffffff;
  box-shadow: 0 8px 26px rgba(56, 189, 248, 0.55);
}

.floating-label.landmark-pin-label.pin-winzerrast {
  border-color: rgba(251, 191, 36, 0.78);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.8), 0 0 18px rgba(245, 158, 11, 0.32);
}

.floating-label.landmark-pin-label.pin-spacex {
  border-color: rgba(56, 189, 248, 0.78);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.8), 0 0 18px rgba(56, 189, 248, 0.32);
}

.logo-marker-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  margin-bottom: 1px;
}

.marker-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.55));
}

.spacex-svg-logo {
  height: 22px;
  width: 68px;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.55));
}

.logo-marker-title {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
}

.pin-winzerrast .logo-marker-title {
  color: #fde68a;
}

.pin-spacex .logo-marker-title {
  color: #e0f2fe;
}

.logo-marker-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: rgba(226, 232, 240, 0.82);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.logo-marker-dot {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24, 0 0 0 3px rgba(251, 191, 36, 0.28);
}

.pin-spacex .logo-marker-dot {
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8, 0 0 0 3px rgba(56, 189, 248, 0.25);
}

/* ==========================================================================
   V17: INTERACTIVE SATELLITE EARTH-VIEW POPUP CARD
   ========================================================================== */
.earth-view-popup[hidden] {
  display: none !important;
}

.earth-view-popup {
  position: fixed;
  left: 308px;
  bottom: 96px;
  width: 396px;
  max-width: calc(100vw - 40px);
  z-index: 420;
  padding: 14px;
  border-radius: 18px;
  background: rgba(5, 9, 20, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.65);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.88), 0 0 32px rgba(56, 189, 248, 0.28);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: earthViewPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes earthViewPopIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.earth-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.earth-view-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.earth-view-eyebrow {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #38bdf8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.earth-view-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  color: #f8fafc;
}

.earth-view-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.earth-view-close:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(239, 68, 68, 0.65);
  color: #ffffff;
}

.earth-view-tabs {
  display: flex;
  gap: 6px;
}

.ev-tab {
  flex: 1;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ev-tab.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(14, 116, 144, 0.42));
  border-color: rgba(56, 189, 248, 0.85);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.earth-view-media {
  position: relative;
  width: 100%;
  height: 230px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.42);
  background: #020617;
}

.earth-view-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.earth-view-crosshair {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 46% 34%, rgba(56, 189, 248, 0.28) 0%, transparent 18%),
    linear-gradient(90deg, transparent 49.6%, rgba(56, 189, 248, 0.22) 50%, transparent 50.4%),
    linear-gradient(0deg, transparent 49.6%, rgba(56, 189, 248, 0.22) 50%, transparent 50.4%);
}

.earth-view-hud-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(2, 6, 23, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.earth-view-desc {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #cbd5e1;
}

/* ==========================================================================
   V8: STARFIELD WARP & SAGITTARIUS A* BLACK HOLE REALM
   ========================================================================== */
.codex-starfield-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #050711 0%, #000000 100%);
  transition: opacity 0.45s ease;
}

.codex-starfield-canvas.warp-active {
  z-index: 38;
  opacity: 1;
}

.codex-starfield-canvas.blackhole-bg {
  z-index: 0;
  opacity: 0.96;
}

.return-solar-btn[hidden] {
  display: none !important;
}

.return-solar-btn {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.85);
  background: linear-gradient(135deg, rgba(12, 24, 48, 0.94), rgba(249, 115, 22, 0.34));
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7), 0 0 26px rgba(56, 189, 248, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.return-solar-btn:hover {
  transform: translateX(-50%) scale(1.05);
  border-color: #fde047;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 34px rgba(249, 115, 22, 0.6);
}

/* ==========================================================================
   V19: MARS MX-SOLUTIONS CYBERPUNK SAND-RELIEF MARKER & CTA
   ========================================================================== */
.floating-label.landmark-pin-label.pin-mx-mars {
  border-color: rgba(0, 240, 255, 0.85);
  background: linear-gradient(180deg, rgba(10, 14, 30, 0.92) 0%, rgba(22, 10, 38, 0.95) 100%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.85), 0 0 22px rgba(0, 240, 255, 0.42), 0 0 34px rgba(168, 85, 247, 0.28);
}

.pin-mx-mars .logo-marker-title {
  background: linear-gradient(90deg, #34d399, #38bdf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.pin-mx-mars .logo-marker-dot {
  background: #00f0ff;
  box-shadow: 0 0 12px #00f0ff, 0 0 0 3px rgba(168, 85, 247, 0.42);
}

.marker-logo-mx {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(0, 240, 255, 0.65)) drop-shadow(0 0 12px rgba(168, 85, 247, 0.45));
}

.earth-view-popup.cyberpunk-theme {
  border-color: rgba(0, 240, 255, 0.78);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.9), 0 0 34px rgba(0, 240, 255, 0.32), 0 0 48px rgba(168, 85, 247, 0.22);
}

.earth-view-cta-btn[hidden] {
  display: none !important;
}

.earth-view-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  margin-top: 2px;
  border-radius: 11px;
  background: linear-gradient(120deg, rgba(6, 182, 212, 0.28), rgba(168, 85, 247, 0.34), rgba(16, 185, 129, 0.26));
  border: 1px solid rgba(0, 240, 255, 0.75);
  color: #f8fafc;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.28);
  transition: all 0.2s ease;
}

.earth-view-cta-btn:hover {
  background: linear-gradient(120deg, rgba(6, 182, 212, 0.48), rgba(168, 85, 247, 0.52), rgba(16, 185, 129, 0.42));
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.52);
}

/* ==========================================================================
   V19: REAL LOCAL NIGHT-SKY PLANETARIUM MODAL & BUTTON
   ========================================================================== */
.dock-nightsky-top {
  padding-bottom: 6px;
}

.open-night-sky-btn {
  width: 100%;
  padding: 9px 12px;
  margin-top: 2px;
  border-radius: 12px;
  border: 1.5px solid rgba(56, 189, 248, 0.72);
  background: linear-gradient(135deg, rgba(14, 42, 84, 0.92), rgba(49, 46, 129, 0.88));
  color: #f0f9ff;
  font-family: var(--font-sans);
  font-size: 11.8px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: all 0.2s ease;
}

.open-night-sky-btn-prominent {
  padding: 10px 12px;
  font-size: 12.2px;
  border-color: rgba(125, 211, 252, 0.9);
  background: linear-gradient(135deg, rgba(12, 52, 98, 0.95), rgba(67, 56, 202, 0.92));
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.open-night-sky-btn:hover {
  border-color: #fde68a;
  background: linear-gradient(135deg, rgba(20, 62, 118, 0.98), rgba(79, 70, 229, 0.95));
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.55);
}

.mx-night-sky-hero-btn {
  position: fixed;
  left: calc(50% - 148px);
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 60;
  min-height: 44px;
  padding: 10px 20px;
  border: 1.5px solid rgba(125, 211, 252, 0.88);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(8, 33, 68, 0.92), rgba(45, 38, 115, 0.9));
  color: #f0f9ff;
  font: 700 14.5px/1.2 var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 8px 28px rgba(2, 6, 23, 0.78), 0 0 24px rgba(56, 189, 248, 0.45);
  backdrop-filter: blur(12px);
  transition: all 0.22s ease;
}

.mx-night-sky-hero-btn:hover {
  border-color: #fde68a;
  background: linear-gradient(135deg, rgba(14, 52, 102, 0.98), rgba(67, 56, 202, 0.95));
  color: #ffffff;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.85), 0 0 32px rgba(56, 189, 248, 0.68);
}

.night-sky-hero-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8, 0 0 20px #fde68a;
  animation: singPulse 1.8s ease-in-out infinite;
}

body.singularity-active .mx-night-sky-hero-btn,
body:has(#btnReturnSolarSystem:not([hidden])) .mx-night-sky-hero-btn,
body:has(#earthViewPopup:not([hidden])) .mx-night-sky-hero-btn,
body:has(#nightSkyModal:not([hidden])) .mx-night-sky-hero-btn,
body:has(.mobile-sheet-open) .mx-night-sky-hero-btn,
body.mobile-has-open-sheet .mx-night-sky-hero-btn {
  display: none !important;
}

.floating-label.sgra-anomaly-label {
  border-color: rgba(245, 196, 81, 0.85);
  background: linear-gradient(135deg, rgba(10, 16, 34, 0.92), rgba(45, 22, 64, 0.92));
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.85), 0 0 18px rgba(245, 196, 81, 0.38);
}

@media (max-width: 900px) {
  /* Hide duplicate Night-Sky buttons on smartphones: .mx-sky-btn is the single floating trigger */
  .mx-night-sky-hero-btn,
  #mobBtnNightSky,
  #btnOpenNightSkyBottom {
    display: none !important;
  }
}

.night-sky-modal-card {
  width: min(96vw, 1680px);
  height: min(93vh, 980px);
  max-height: 94vh;
  overflow: hidden;
  padding: 16px 22px 18px;
  border: 1px solid rgba(56, 189, 248, 0.52);
  background: linear-gradient(160deg, rgba(3, 7, 18, 0.96), rgba(6, 13, 30, 0.95));
  box-shadow: 0 32px 95px rgba(0, 0, 0, 0.95), 0 0 55px rgba(56, 189, 248, 0.25);
  display: flex;
  flex-direction: column;
}

.night-sky-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.ns-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ns-view-mode-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(8, 15, 32, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.ns-mode-pill,
.ns-view-pill {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ns-mode-pill:hover,
.ns-view-pill:hover {
  color: #f8fafc;
  background: rgba(56, 189, 248, 0.12);
}

.ns-mode-pill.active,
.ns-view-pill.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(99, 102, 241, 0.35));
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.night-sky-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 18px;
  align-items: stretch;
  margin-top: 12px;
}

@media (max-width: 1080px) {
  .night-sky-modal-card {
    height: auto;
    overflow-y: auto;
  }
  .night-sky-layout {
    grid-template-columns: 1fr;
  }
}

.night-sky-dome-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
  border-radius: 18px;
  padding: 10px 12px;
  background: radial-gradient(circle at 50% 35%, rgba(8, 20, 48, 0.75), rgba(2, 5, 14, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.32);
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.85);
}

.ns-viewport-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 8px;
  border-radius: 11px;
  background: rgba(4, 9, 22, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.22);
  z-index: 3;
}

.ns-compass-jumps {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.ns-jump-lbl,
.ns-compass-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94a3b8;
  margin-right: 4px;
}

.ns-jump-btn,
.ns-dir-btn {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.78);
  color: #e0f2fe;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.ns-jump-btn:hover,
.ns-jump-btn.active,
.ns-dir-btn:hover,
.ns-dir-btn.active {
  border-color: #fde047;
  background: rgba(250, 204, 21, 0.22);
  color: #fef08a;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.28);
}

.ns-zoom-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #cbd5e1;
}

.ns-zoom-wrap strong {
  color: #38bdf8;
  min-width: 34px;
}

.ns-zoom-wrap input[type="range"] {
  width: 110px;
  accent-color: #38bdf8;
}

.night-sky-full-canvas {
  width: 100%;
  height: 100%;
  max-height: calc(93vh - 185px);
  object-fit: contain;
  border-radius: 14px;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 42px rgba(14, 165, 233, 0.22), inset 0 0 36px rgba(0, 0, 0, 0.85);
  cursor: grab;
  background: #020510;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.night-sky-full-canvas:active {
  cursor: grabbing;
}

.night-sky-dome-wrap.mobile-preview-mode .night-sky-full-canvas {
  width: auto;
  max-width: 410px;
  aspect-ratio: 9 / 17.5;
  border-radius: 36px;
  border: 6px solid rgba(30, 41, 59, 0.95);
  outline: 2px solid rgba(56, 189, 248, 0.65);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.92), 0 0 42px rgba(56, 189, 248, 0.35);
}

.night-sky-hover-pill {
  width: 100%;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(8, 15, 32, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.32);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #bae6fd;
  text-align: center;
}

.night-sky-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: calc(93vh - 95px);
  padding-right: 4px;
}

.night-sky-selected-box,
.night-sky-telemetry-box,
.night-sky-controls-box,
.night-sky-visible-box {
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(5, 10, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.11);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.night-sky-selected-box {
  background: linear-gradient(145deg, rgba(8, 22, 48, 0.88), rgba(15, 23, 42, 0.82));
  border-color: rgba(56, 189, 248, 0.48);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.16);
}

.ns-sel-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fef08a;
}

.ns-sel-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #7dd3fc;
}

.ns-sel-desc {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #cbd5e1;
}

.ns-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
}

.ns-row span {
  color: var(--text-muted);
}

.ns-row strong {
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: right;
}

.ns-box-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
}

.ns-toggles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.ns-time-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.ns-visible-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 205px;
  overflow-y: auto;
}

.ns-vis-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ns-vis-item:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(14, 116, 144, 0.22);
}

.ns-vis-item strong {
  color: #f1f5f9;
}

.ns-vis-item span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #38bdf8;
}

/* ============================================================================
   SINGULARITY WORMHOLE TUNNEL, INTERACTIVE MINERVA KI & MX LABS CUBE (V20)
   ============================================================================ */
.enter-singularity-btn {
  position: fixed;
  bottom: 112px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(56, 189, 248, 0.72);
  background: linear-gradient(135deg, rgba(6, 15, 36, 0.92), rgba(46, 16, 101, 0.88));
  color: #f0f9ff;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.45), 0 0 55px rgba(168, 85, 247, 0.28);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.enter-singularity-btn:hover {
  transform: translateX(-50%) scale(1.04);
  border-color: #f5c451;
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.75), 0 0 65px rgba(245, 196, 81, 0.45);
}

.enter-singularity-btn[hidden] {
  display: none !important;
}

.singularity-btn-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8, 0 0 22px #a855f7;
  animation: singPulseDot 1.3s infinite ease-in-out;
}

@keyframes singPulseDot {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; }
}

.singularity-tunnel-hud {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 24px 22px;
}

.singularity-tunnel-hud[hidden] {
  display: none !important;
}

body.singularity-active .left-dock,
body.singularity-active .right-dock,
body.singularity-active .right-inspector,
body.singularity-active .inspector-dock,
body.singularity-active .bottom-bar,
body.singularity-active .top-bar,
body.singularity-active .return-solar-btn,
body.singularity-active .enter-singularity-btn,
body.singularity-active .mobile-nav-bar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.35s ease;
}

.singularity-avatar-dock {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.singularity-avatar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cybertron-action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(8, 22, 46, 0.92), rgba(22, 16, 44, 0.92));
  border: 1px solid rgba(0, 210, 255, 0.65);
  color: #fde68a;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.35), inset 0 0 14px rgba(253, 230, 138, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cybertron-action-btn:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: #fde68a;
  box-shadow: 0 0 32px rgba(0, 210, 255, 0.65), 0 0 48px rgba(245, 196, 81, 0.38);
}

.cybertron-action-btn.is-speaking {
  border-color: #f5c451;
  color: #ffffff;
  box-shadow: 0 0 38px rgba(245, 196, 81, 0.8), 0 0 64px rgba(0, 210, 255, 0.75);
}

.cybertron-btn-glow {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00d2ff;
  box-shadow: 0 0 12px #00d2ff, 0 0 20px #fde68a;
  animation: singPulseDot 1.2s infinite ease-in-out;
}

.cybertron-wave-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(6, 15, 32, 0.82);
  border: 1px solid rgba(253, 230, 138, 0.45);
  color: #e0f2fe;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cybertron-wave-btn:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: #00d2ff;
  box-shadow: 0 0 22px rgba(0, 210, 255, 0.45);
}

.singularity-minimal-hint {
  align-self: center;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(4, 10, 26, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: rgba(224, 242, 254, 0.88);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  pointer-events: none;
  text-align: center;
}

.singularity-minimal-hint[hidden] {
  display: none !important;
}

.singularity-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: auto;
}

.singularity-telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(4, 10, 26, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.28);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #e0f2fe;
  backdrop-filter: blur(12px);
}

.sing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d2ff;
  box-shadow: 0 0 12px #00d2ff;
  animation: singPulseDot 1s infinite;
}

.singularity-exit-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(245, 196, 81, 0.65);
  background: rgba(10, 16, 34, 0.88);
  color: #fde68a;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.singularity-exit-btn:hover {
  background: rgba(245, 196, 81, 0.2);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(245, 196, 81, 0.45);
}

.singularity-bottom-dock {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  pointer-events: none;
}

.singularity-bottom-dock[hidden] {
  display: none !important;
}

.minerva-interaction-card {
  pointer-events: auto;
  width: min(520px, 94vw);
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(6, 12, 28, 0.90), rgba(17, 24, 48, 0.85));
  border: 1px solid rgba(56, 189, 248, 0.52);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.85), 0 0 36px rgba(0, 210, 255, 0.24);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: minervaCardFadeIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes minervaCardFadeIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.minerva-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.minerva-style-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(7, 16, 21, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.minerva-style-pill {
  padding: 3px 8px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(226, 232, 240, 0.72);
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.minerva-style-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.minerva-style-pill.active {
  background: #1f5f6f;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(112, 214, 240, 0.45), 0 4px 12px rgba(31, 95, 111, 0.45);
}

.minerva-steps-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 2px;
}

.minerva-step-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 5px 4px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.68);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.18s ease;
}

.minerva-step-btn .step-num {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7dd3fc;
}

.minerva-step-btn .step-lbl {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
}

.minerva-step-btn:hover {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(30, 41, 59, 0.85);
}

.minerva-step-btn.active {
  border-color: #00d2ff;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.26), rgba(31, 95, 111, 0.42));
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.32);
}

.minerva-step-btn.completed {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 116, 144, 0.22);
}

.minerva-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.minerva-sub-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #c084fc;
  letter-spacing: 0.08em;
}

.minerva-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
}

.minerva-card-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #cbd5e1;
}

.minerva-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.minerva-trigger-btn {
  flex: 1;
  padding: 9px 13px;
  border-radius: 11px;
  border: 1px solid rgba(0, 210, 255, 0.7);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.24), rgba(139, 92, 246, 0.28));
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
}

.minerva-trigger-btn:hover {
  border-color: #f5c451;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.38), rgba(245, 196, 81, 0.28));
  box-shadow: 0 0 26px rgba(0, 210, 255, 0.45);
}

.minerva-voice-btn {
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.minerva-voice-btn:hover {
  border-color: #38bdf8;
  color: #ffffff;
}

.mxlabs-cube-controls {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mxlabs-cube-controls[hidden] {
  display: none !important;
}

.mxlabs-header-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mxlabs-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #00d2ff;
  letter-spacing: 0.08em;
}

.mxlabs-hint {
  font-size: 11px;
  color: #fde68a;
}

.mxlabs-shape-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.mxlabs-chip {
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.7);
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.mxlabs-chip:hover,
.mxlabs-chip.active {
  border-color: #00d2ff;
  background: rgba(0, 210, 255, 0.24);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.35);
}

.mxlabs-sliders-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.mxlabs-slider-lbl {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10.5px;
  color: var(--text-muted);
}

.mxlabs-slider-lbl strong {
  color: #38bdf8;
  font-family: var(--font-mono);
}

.mxlabs-slider-lbl input[type="range"] {
  width: 100%;
  accent-color: #00d2ff;
}

.mxlabs-color-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mxlabs-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.mxlabs-color-dot.active,
.mxlabs-color-dot:hover {
  transform: scale(1.18);
  border-color: #ffffff;
}

.mxlabs-links-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.mxlabs-ext-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.mxlabs-ext-link.primary {
  border-color: rgba(0, 210, 255, 0.55);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(56, 189, 248, 0.12));
  color: #bae6fd;
}

.mxlabs-ext-link:hover {
  border-color: #00d2ff;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.35);
}

/* ============================================================================
   V24: SMARTPHONE & MOBILE UI OPTIMIZATION (UNOBSTRUCTED 3D + BOTTOM SHEETS)
   ============================================================================ */
.mobile-sheet-header,
.mobile-nav-bar {
  display: none;
}

@media (max-width: 860px) {
  /* 1. Compact 1-Row Top Header so it never covers the upper screen */
  .top-bar {
    top: 8px;
    left: 8px;
    right: 8px;
    height: auto;
    min-height: 46px;
    padding: 6px 10px;
    border-radius: 14px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .top-bar::-webkit-scrollbar {
    display: none;
  }

  .brand-block {
    flex-shrink: 0;
    gap: 7px;
  }
  .brand-orb {
    width: 28px;
    height: 28px;
  }
  .brand-kicker {
    display: none;
  }
  .brand-title {
    font-size: 12px;
    white-space: nowrap;
  }

  .mode-switcher {
    flex-shrink: 0;
    padding: 2px;
    gap: 2px;
  }
  .mode-btn {
    padding: 4px 7px;
    font-size: 10.5px;
    white-space: nowrap;
  }

  .theme-switcher {
    flex-shrink: 0;
    gap: 4px;
  }
  .theme-btn,
  .scale-toggle-btn,
  .sound-select,
  .city-select,
  .geo-btn {
    display: none !important;
  }

  .sound-toggle-btn {
    padding: 4px 8px;
    font-size: 10.5px;
    white-space: nowrap;
  }
  #soundBtnLabel {
    display: none;
  }

  .geo-controls {
    flex-shrink: 0;
    gap: 5px;
  }
  .lang-switcher {
    padding: 2px;
  }
  .lang-btn {
    padding: 3px 6px;
    font-size: 10px;
  }
  .birth-trigger-btn {
    padding: 4px 8px;
    font-size: 10.5px;
    white-space: nowrap;
  }

  /* 2. Hide large desktop docks by default on Smartphones -> Open ONLY on demand as Bottom Sheets! */
  .left-dock,
  .right-inspector,
  .bottom-bar {
    display: none !important;
    position: fixed !important;
    top: auto !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 98px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 54vh !important;
    overflow-y: auto !important;
    z-index: 480 !important;
    padding: 12px 14px 16px !important;
    border-radius: 18px !important;
    background: rgba(5, 10, 24, 0.95) !important;
    border: 1px solid rgba(56, 189, 248, 0.55) !important;
    box-shadow: 0 -12px 45px rgba(0, 0, 0, 0.92), 0 0 28px rgba(56, 189, 248, 0.25) !important;
    backdrop-filter: blur(22px) !important;
    flex-direction: column !important;
    gap: 10px !important;
    animation: mobileSheetSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .left-dock.mobile-sheet-open,
  .right-inspector.mobile-sheet-open,
  .bottom-bar.mobile-sheet-open {
    display: flex !important;
  }

  @keyframes mobileSheetSlideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .mobile-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: -12px;
    background: rgba(5, 10, 24, 0.96);
    z-index: 10;
    padding-top: 4px;
  }

  .mobile-sheet-title {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    color: #f8fafc;
  }

  .mobile-sheet-close {
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(15, 23, 42, 0.85);
    color: #e0f2fe;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
  }

  /* Inside bottom-bar sheet on mobile, stack controls cleanly */
  .bottom-bar .time-controls {
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
  }
  .bottom-bar .speed-group {
    flex-wrap: wrap;
    width: 100%;
    margin-top: 4px;
  }
  .bottom-bar .speed-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 5px 6px;
  }
  .bottom-bar .time-scrubber-wrap {
    max-width: 100%;
    width: 100%;
  }
  .bottom-bar .zodiac-strip {
    width: 100%;
    padding-bottom: 4px;
  }

  /* 3. Smartphone Bottom Quick-Bar & Sheet Navigation (#mobileNavBar) */
  .mobile-nav-bar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    overflow: hidden;
    z-index: 490;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 7px 8px;
    border-radius: 16px;
    background: rgba(5, 10, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(18px);
  }

  .mobile-quick-planets {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .mobile-quick-planets::-webkit-scrollbar {
    display: none;
  }

  .mob-planet-pill {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.78);
    color: #e2e8f0;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.16s ease;
  }

  .mob-planet-pill.active {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(245, 196, 81, 0.28), rgba(56, 189, 248, 0.22));
    color: #ffffff;
    box-shadow: 0 0 12px rgba(245, 196, 81, 0.3);
  }

  .mob-planet-pill.sky-pill {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(14, 116, 144, 0.28);
    color: #bae6fd;
  }

  .mobile-tab-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
  }

  .mob-tab-btn {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 3px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.65);
    color: #cbd5e1;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.16s ease;
  }

  .mob-tab-btn.active {
    border-color: #38bdf8;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.32), rgba(56, 189, 248, 0.18));
    color: #ffffff;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
  }

  .mob-tab-ico {
    font-size: 12px;
  }

  /* 4. Mobile Black Hole, Singularity & Earth-View Popup adjustments */
  .return-solar-btn {
    top: 62px;
    padding: 7px 16px;
    font-size: 11.5px;
    white-space: nowrap;
  }

  .enter-singularity-btn {
    bottom: 104px;
    width: max-content;
    max-width: 92vw;
    padding: 8px 14px;
    font-size: 11px;
    text-align: center;
  }

  .singularity-tunnel-hud {
    padding: 10px 10px 16px;
  }

  .singularity-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .singularity-telemetry-pill,
  .singularity-badge {
    padding: 6px 12px;
    font-size: 9.5px;
    justify-content: center;
    text-align: center;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }

  .singularity-exit-btn {
    align-self: center;
    padding: 7px 16px;
    font-size: 11px;
  }

  .singularity-avatar-actions {
    gap: 7px;
    width: 100%;
  }

  .cybertron-action-btn {
    padding: 8px 14px;
    font-size: 10.5px;
    max-width: 94vw;
  }

  .cybertron-wave-btn {
    padding: 8px 12px;
    font-size: 10px;
  }

  .singularity-minimal-hint {
    font-size: 9.5px;
    padding: 5px 12px;
    max-width: 94vw;
  }

  body:has(#earthViewPopup:not([hidden])) .enter-singularity-btn,
  body:has(.mobile-sheet-open) .enter-singularity-btn,
  body.mobile-has-open-sheet .enter-singularity-btn {
    display: none !important;
  }

  .earth-view-popup {
    left: 10px;
    right: 10px;
    bottom: 102px;
    width: auto;
    max-width: none;
    max-height: 60vh;
    z-index: 470;
    overflow-y: auto;
  }

  .earth-view-media {
    height: 165px;
  }

  /* 5. Mobile Night-Sky Planetarium Modal */
  .night-sky-modal-card {
    width: 98vw;
    height: 94vh;
    padding: 10px 12px;
    overflow-y: auto;
  }
  .night-sky-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .ns-view-mode-pills {
    width: 100%;
    overflow-x: auto;
  }
  .ns-view-pill {
    font-size: 10px;
    padding: 5px 8px;
    white-space: nowrap;
  }
  .night-sky-full-canvas {
    max-height: 44vh;
  }
}









/* ==========================================================================
   V25: LOW-POWER / SMARTPHONE GPU & RAM OPTIMIZATION (Samsung Galaxy A15 etc.)
   ========================================================================== */
@media (max-width: 920px) {
  .cosmos-loader-overlay .loader-bg-art {
    background-image: none !important;
    background: radial-gradient(circle at 50% 38%, rgba(56, 189, 248, 0.16), rgba(245, 196, 81, 0.08) 45%, transparent 75%);
    filter: none !important;
  }
}

.eco-toggle-btn.active {
  border-color: rgba(52, 211, 153, 0.65) !important;
  background: rgba(16, 185, 129, 0.18) !important;
  color: #6ee7b7 !important;
}

/* Disable expensive per-frame WebGL backdrop-filter readbacks on weaker devices & smartphones */
@media (max-width: 900px) {
  .glass-panel,
  .cosmos-loader-overlay .loader-content,
  .floating-label,
  .floating-label.landmark-pin-label,
  .mobile-nav-bar,
  .earth-view-popup,
  .minerva-interaction-card,
  .modal-backdrop,
  .singularity-minimal-hint,
  .singularity-telemetry-pill,
  .singularity-exit-btn,
  .return-solar-btn,
  .enter-singularity-btn {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

body.low-power-device .glass-panel,
body.low-power-device .cosmos-loader-overlay .loader-content,
body.low-power-device .floating-label,
body.low-power-device .floating-label.landmark-pin-label,
body.low-power-device .mobile-nav-bar,
body.low-power-device .earth-view-popup,
body.low-power-device .minerva-interaction-card,
body.low-power-device .modal-backdrop,
body.low-power-device .singularity-minimal-hint,
body.low-power-device .singularity-telemetry-pill,
body.low-power-device .singularity-exit-btn,
body.low-power-device .return-solar-btn,
body.low-power-device .enter-singularity-btn {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.low-power-device .glass-panel {
  background: rgba(7, 11, 24, 0.94) !important;
}
