/* ============================================================
   CONVERGENCE — Design System
   ============================================================ */

/* --- Tokens --- */
:root {
  /* Colors */
  --void: #000000;
  --deep-space: #040412;
  --nebula-dark: #0a0a2e;
  --nebula-mid: #1a1a4e;
  --star-white: #f0f0ff;
  --star-warm: #fff4e0;
  --star-cool: #c0d0ff;
  --beacon-gold: #ffc857;
  --beacon-glow: #ffaa0080;
  --pulse-cyan: #00e5ff;
  --pulse-violet: #b388ff;
  --bridge-green: #69f0ae;
  --danger-red: #ff5252;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f0ff;
  --text-secondary: rgba(240, 240, 255, 0.6);
  --text-tertiary: rgba(240, 240, 255, 0.35);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-2xl: 128px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-quint: cubic-bezier(0.83, 0, 0.17, 1);
  --transition-fast: 150ms var(--ease-out-expo);
  --transition-medium: 400ms var(--ease-out-expo);
  --transition-slow: 800ms var(--ease-out-expo);
  --transition-glacial: 1600ms var(--ease-out-expo);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--text-primary);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  cursor: default;
}

/* ============================================================
   COSMOS CANVAS (always behind everything)
   ============================================================ */
#cosmos-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ============================================================
   PHASES (fullscreen stacked layers)
   ============================================================ */
.phase {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s var(--ease-out-expo), visibility 0s linear 1.2s;
  pointer-events: none;
}

.phase.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s var(--ease-out-expo), visibility 0s linear 0s;
  pointer-events: all;
}

/* ============================================================
   AUDIO CONTROL
   ============================================================ */
.audio-control {
  position: fixed;
  top: var(--space-lg);
  left: var(--space-lg);
  z-index: 100;
  width: 48px;
  height: 48px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-medium);
}

.audio-control:hover {
  background: var(--glass-hover);
  border-color: rgba(0, 229, 255, 0.3);
  transform: scale(1.05);
}

.audio-waves {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.audio-waves span {
  width: 2px;
  background: var(--pulse-cyan);
  border-radius: 1px;
}

.audio-waves.playing span {
  animation: audio-pulse 1s ease-in-out infinite;
}

.audio-waves.playing span:nth-child(2) {
  animation-delay: 0.2s;
}

.audio-waves.playing span:nth-child(3) {
  animation-delay: 0.4s;
}

.audio-waves.playing span:nth-child(4) {
  animation-delay: 0.1s;
}

@keyframes audio-pulse {

  0%,
  100% {
    height: 4px;
  }

  50% {
    height: 16px;
  }
}

/* ============================================================
   GLOBAL NAVIGATION
   ============================================================ */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(4, 4, 18, 0.9) 0%, rgba(4, 4, 18, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(0);
}

.global-nav.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.nav-logo-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--beacon-gold);
  box-shadow: 0 0 10px var(--beacon-glow);
  animation: pulse-glow 3s infinite alternate;
}

.nav-brand span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  font-weight: 300;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.nav-btn-back {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-short);
}

.nav-btn-back:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   PHASE 0: LANDING (Enhanced)
   ============================================================ */
.landing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
  z-index: 2;
}

.live-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: -var(--space-md);
  opacity: 0;
  animation: fade-up 1.5s var(--ease-out-expo) 1.2s forwards;
}

.live-counter {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--beacon-gold);
  text-shadow: 0 0 20px rgba(255, 200, 87, 0.3);
}

.live-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Pulsing center orb */
.logo-pulse {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--beacon-gold) 0%, var(--beacon-glow) 40%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
  filter: blur(0.5px);
  position: relative;
}

.logo-pulse::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--beacon-glow) 0%, transparent 60%);
  animation: pulse-glow-outer 3s ease-in-out infinite 0.3s;
}

@keyframes pulse-glow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes pulse-glow-outer {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

.landing-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--text-primary);
  opacity: 0;
  animation: fade-up 1.5s var(--ease-out-expo) 0.5s forwards;
}

.landing-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 200;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  max-width: 500px;
  opacity: 0;
  animation: fade-up 1.5s var(--ease-out-expo) 1s forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA Button — Cinematic Entry Point */
.cta-begin {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255, 200, 87, 0.3);
  color: var(--beacon-gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  padding: 16px 56px;
  border-radius: var(--radius-full);
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  animation: fade-up 1.5s var(--ease-out-expo) 1.8s forwards;
  transition: all 0.5s var(--ease-out-expo);
}

.cta-begin:hover {
  border-color: rgba(255, 200, 87, 0.7);
  background: rgba(255, 200, 87, 0.1);
  transform: scale(1.08);
  box-shadow: 0 0 50px rgba(255, 200, 87, 0.2), 0 0 100px rgba(255, 200, 87, 0.06);
  letter-spacing: 0.3em;
}

.cta-begin:active {
  transform: scale(0.98);
  box-shadow: 0 0 80px rgba(255, 200, 87, 0.35);
  background: rgba(255, 200, 87, 0.2);
}

.cta-glow {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, transparent, rgba(255, 200, 87, 0.12), transparent);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-150%); }
  100% { transform: translateX(150%); }
}

/* ============================================================
   PHASE 1: THE ZOOM — Cinematic Presentation
   ============================================================ */
#phase-zoom {
  background: transparent;
}

.zoom-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-text-container {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  width: 85%;
  max-width: 750px;
  padding: var(--space-lg) var(--space-xl);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, transparent 80%);
  border-radius: var(--radius-xl);
}

.zoom-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  font-weight: 300;
  color: var(--text-primary);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo);
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.5);
}

.zoom-text.visible {
  opacity: 1;
}

.zoom-subtext {
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  color: var(--text-secondary);
  margin-top: var(--space-md);
  opacity: 0;
  transition: opacity 1.2s var(--ease-out-expo) 0.3s;
  font-style: italic;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
  line-height: 1.5;
}

.zoom-subtext.visible {
  opacity: 1;
}

.zoom-scale-indicator {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  padding: var(--space-sm) var(--space-md);
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.zoom-scale-indicator.visible {
  opacity: 1;
}

/* Zoom progress dots */
.zoom-progress {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.zoom-progress-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.zoom-dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.6s var(--ease-out-expo);
}

.zoom-dot-indicator.active {
  background: var(--beacon-gold);
  box-shadow: 0 0 8px rgba(255, 200, 87, 0.5);
  transform: scale(1.4);
}

.zoom-dot-indicator.passed {
  background: rgba(255, 200, 87, 0.3);
}

/* Zoom level objects */
.zoom-object {
  position: absolute;
  border-radius: 50%;
  transition: all 2s var(--ease-in-out-quint);
}

.zoom-dot {
  width: 12px;
  height: 12px;
  background: var(--beacon-gold);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--beacon-glow), 0 0 60px rgba(255, 200, 87, 0.1);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.zoom-earth {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
      #4fc3f7 0%,
      #1565c0 30%,
      #0d47a1 50%,
      #1b5e20 55%,
      #2e7d32 60%,
      #1565c0 70%,
      #0d47a1 100%);
  box-shadow:
    inset -30px -20px 40px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(79, 195, 247, 0.2),
    0 0 120px rgba(79, 195, 247, 0.05);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: earth-rotate 60s linear infinite;
}

@keyframes earth-rotate {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 400px 0;
  }
}

.zoom-sun {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff9c4, #ffb300, #ff6f00);
  box-shadow: 0 0 40px rgba(255, 179, 0, 0.5), 0 0 100px rgba(255, 179, 0, 0.2);
  position: absolute;
}

/* ============================================================
   PHASE 2: QUESTIONS
   ============================================================ */
.questions-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10, 10, 46, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* Glass card */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  max-width: 560px;
  width: 90%;
  z-index: 5;
  position: relative;
}

.question-card {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: card-enter 0.8s var(--ease-out-expo) forwards;
}

.question-card.exiting {
  animation: card-exit 0.5s var(--ease-out-expo) forwards;
}

@keyframes card-enter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes card-exit {
  to {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
}

.question-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--pulse-cyan);
  display: block;
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.question-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

/* Spectrum slider */
.spectrum-container {
  margin-bottom: var(--space-lg);
}

.spectrum-track {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  margin-bottom: var(--space-md);
}

.spectrum-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 50%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--pulse-cyan), var(--pulse-violet));
  transition: width 50ms linear;
}

.spectrum-thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text-primary);
  box-shadow: 0 0 15px rgba(179, 136, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: grab;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.spectrum-thumb:hover {
  box-shadow: 0 0 25px rgba(179, 136, 255, 0.7), 0 2px 12px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%) scale(1.15);
}

.spectrum-thumb:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.05);
}

.spectrum-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.spectrum-label-left {
  color: var(--pulse-cyan);
}

.spectrum-label-right {
  color: var(--pulse-violet);
}

/* Choice buttons (Q2) */
.commitment-choices {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.choice-btn {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.choice-btn:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(8px);
}

.choice-btn.selected {
  border-color: var(--beacon-gold);
  background: rgba(255, 200, 87, 0.08);
  box-shadow: 0 0 20px rgba(255, 200, 87, 0.1);
}

.choice-icon {
  font-size: 1.5rem;
}

.choice-text {
  font-weight: 300;
}

/* Obstacle grid (Q3) */
.obstacle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.obstacle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  text-align: center;
}

.obstacle-btn:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.obstacle-btn.selected {
  border-color: var(--pulse-cyan);
  background: rgba(0, 229, 255, 0.06);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

.obstacle-icon {
  font-size: 1.8rem;
  display: block;
}

/* Next button */
.question-next {
  display: block;
  margin: var(--space-lg) auto 0;
  background: transparent;
  border: 1px solid rgba(255, 200, 87, 0.3);
  color: var(--beacon-gold);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  padding: 12px 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-medium);
}

.question-next:hover {
  border-color: rgba(255, 200, 87, 0.6);
  background: rgba(255, 200, 87, 0.08);
  box-shadow: 0 0 30px rgba(255, 200, 87, 0.1);
}

/* ============================================================
   PHASE 3: BEACON
   ============================================================ */
#phase-beacon {
  flex-direction: row;
  gap: var(--space-xl);
  padding: var(--space-xl);
}

.beacon-universe {
  flex: 1;
  height: 100%;
  position: relative;
}

#beacon-canvas {
  width: 100%;
  height: 100%;
}

.beacon-card {
  width: 380px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: all 1s var(--ease-out-expo);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.beacon-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.holocard-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: screen;
}

.beacon-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.beacon-glow-small {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--beacon-gold);
  box-shadow: 0 0 12px var(--beacon-glow);
  animation: pulse-glow 2s ease-in-out infinite;
}

.beacon-card-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--beacon-gold);
}

.beacon-coords {
  margin-bottom: var(--space-lg);
}

.coord-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.85rem;
}

.coord-label {
  color: var(--text-tertiary);
  font-weight: 300;
}

.coord-value {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 500;
}

.beacon-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.stat-block {
  text-align: center;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pulse-cyan);
  display: block;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  margin-top: var(--space-xs);
  display: block;
}

.beacon-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.btn-download {
  background: linear-gradient(135deg, var(--beacon-gold), #ff9800);
  border: none;
  color: var(--void);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-medium);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 200, 87, 0.3);
}

.btn-signal {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-medium);
}

.btn-signal:hover {
  border-color: var(--pulse-cyan);
  color: var(--pulse-cyan);
  background: rgba(0, 229, 255, 0.05);
}

/* ============================================================
   PHASE 4: THE SIGNAL
   ============================================================ */
#phase-signal {
  overflow-y: auto;
  display: block;
  padding: var(--space-xl) var(--space-lg);
  padding-top: var(--space-2xl);
}

.signal-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.signal-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--pulse-cyan);
  margin-bottom: var(--space-md);
}

.signal-subtitle {
  font-size: 1rem;
  font-weight: 200;
  color: var(--text-secondary);
}

.signal-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto var(--space-xl);
}

.signal-panel {
  padding: var(--space-lg);
}

.signal-panel h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
}

.signal-panel.wide {
  grid-column: 1 / -1;
}

/* Gauge */
.gauge-container {
  text-align: center;
  position: relative;
}

.gauge-svg {
  width: 180px;
  height: 110px;
}

.gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
  stroke-linecap: round;
}

.gauge-fill {
  fill: none;
  stroke: url(#gauge-gradient);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 251;
  stroke-dashoffset: 251;
  transition: stroke-dashoffset 2s var(--ease-out-expo);
}

.gauge-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-top: -20px;
}

.gauge-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  display: block;
  margin-top: var(--space-xs);
}

/* Trends */
.trend-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

.trend-arrow {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.trend-arrow.up {
  color: var(--bridge-green);
  background: rgba(105, 240, 174, 0.1);
}

.trend-arrow.neutral {
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.05);
}

.trend-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

/* Heatmap */
#heatmap-canvas {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-sm);
}

/* Bridge teaser */
.bridge-teaser {
  text-align: center;
  padding: var(--space-xl) var(--space-lg) !important;
}

.bridge-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-lg);
  height: 40px;
}

.bridge-star {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

.bridge-star.left {
  background: var(--pulse-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.bridge-star.right {
  background: var(--pulse-violet);
  box-shadow: 0 0 15px rgba(179, 136, 255, 0.5);
}

.bridge-line {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--pulse-cyan), transparent 30%, transparent 70%, var(--pulse-violet));
  position: relative;
  animation: bridge-pulse 3s ease-in-out infinite;
}

@keyframes bridge-pulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
    background: linear-gradient(90deg, var(--pulse-cyan), var(--pulse-violet));
  }
}

.bridge-teaser h3 {
  margin-bottom: var(--space-md) !important;
  color: var(--text-primary) !important;
  font-size: 1.2rem !important;
  letter-spacing: 0.2em !important;
}

.bridge-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.bridge-cta-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: var(--space-lg);
}

.btn-bridge {
  background: linear-gradient(135deg, var(--pulse-cyan), var(--pulse-violet));
  border: none;
  color: var(--void);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 16px 40px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-medium);
}

.btn-bridge:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 40px rgba(0, 229, 255, 0.25);
}

/* Mission teaser */
.mission-teaser {
  max-width: 1000px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-xl) var(--space-lg);
}

.mission-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--beacon-gold);
  display: block;
  margin-bottom: var(--space-sm);
}

.mission-teaser h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
}

.mission-teaser p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.mission-progress-demo {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mission-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.mission-name {
  font-size: 0.85rem;
  color: var(--text-primary);
  width: 200px;
  flex-shrink: 0;
}

.mission-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.mission-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--pulse-cyan), var(--bridge-green));
  transition: width 2s var(--ease-out-expo);
}

.mission-pct {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  width: 100px;
  text-align: right;
}

/* Waitlist */
.waitlist-section {
  text-align: center;
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

.waitlist-section h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.waitlist-form {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.dash2-tab {
  animation: tab-fade-in 0.4s var(--ease-out-expo) forwards;
}

@keyframes tab-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   ARCHIVES & MISSIONS
   ============================================================ */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.archive-card {
  padding: var(--space-md);
  border-left: 3px solid var(--bridge-green);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.archive-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(105, 240, 174, 0.1);
}

.archive-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.archive-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.archive-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bridge-green);
  background: rgba(105, 240, 174, 0.1);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.missions-section {
  margin-top: var(--space-xl);
}

.missions-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  color: var(--beacon-gold);
  border-bottom: 1px solid rgba(255, 200, 87, 0.2);
  padding-bottom: var(--space-xs);
}

.mission-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  transition: all 0.4s var(--ease-out-expo);
}

.mission-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  transform: translateX(8px);
  border-color: rgba(0, 229, 255, 0.3);
}

.mission-icon {
  font-size: 2.5rem;
  background: rgba(0, 229, 255, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mission-info h4 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: var(--pulse-cyan);
}

.mission-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pulse-cyan), var(--pulse-violet));
  border: none;
  color: var(--void);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.25), 0 0 15px rgba(179, 136, 255, 0.15);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.waitlist-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-medium);
}

.waitlist-input:focus {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.05);
}

.waitlist-input::placeholder {
  color: var(--text-tertiary);
}

.btn-waitlist {
  background: var(--pulse-cyan);
  border: none;
  color: var(--void);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-medium);
  white-space: nowrap;
}

.btn-waitlist:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.2);
}

.waitlist-count {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.waitlist-count strong {
  color: var(--pulse-cyan);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--glass-border);
  max-width: 1000px;
  margin: 0 auto;
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
}

/* ============================================================
   THE PULSE - Daily Feature
   ============================================================ */
.pulse-hero {
  max-width: 1000px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-xl) !important;
  text-align: center;
  border-color: var(--pulse-cyan);
  background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.05), transparent);
}

.pulse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.pulse-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--pulse-cyan);
  font-weight: 600;
}

.pulse-timer {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.pulse-question {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
  max-width: 800px;
  text-align: center;
  overflow-y: auto;
  max-height: 30vh;
  padding: 0 20px;
}

.pulse-options {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.pulse-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: var(--font-display);
  padding: 14px 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-medium);
  font-size: 1rem;
}

.pulse-btn:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--pulse-cyan);
  transform: translateY(-2px);
}

.pulse-btn.selected {
  background: var(--pulse-cyan);
  color: var(--void);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

/* Results */
.pulse-results {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: left;
}

.result-bar-group {
  width: 100%;
}

.result-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.result-bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.result-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pulse-cyan), var(--pulse-violet));
  border-radius: var(--radius-full);
  width: 0;
  transition: width 2s var(--ease-out-expo);
}

@media (max-width: 768px) {
  .pulse-options {
    flex-direction: column;
  }

  #phase-beacon {
    flex-direction: column;
    padding: var(--space-lg);
  }

  .beacon-universe {
    height: 40vh;
  }

  .beacon-card {
    width: 100%;
  }

  .signal-dashboard {
    grid-template-columns: 1fr;
  }

  .obstacle-grid {
    grid-template-columns: 1fr;
  }

  .mission-item {
    flex-direction: column;
    align-items: stretch;
  }

  .mission-name {
    width: auto;
  }

  .mission-pct {
    width: auto;
    text-align: left;
  }

  .waitlist-form {
    flex-direction: column;
  }
}

/* ============================================================
   LIVE FEED
   ============================================================ */
.live-feed {
  height: 250px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.feed-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  animation: feed-slide-in 0.5s var(--ease-out-expo) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.feed-flag {
  font-size: 1.1rem;
}

.feed-location {
  color: var(--text-tertiary);
  font-weight: 600;
}

.feed-action {
  color: var(--text-secondary);
}

.feed-target {
  color: var(--pulse-cyan);
  font-weight: 500;
}

.feed-icon {
  margin-left: auto;
  color: var(--pulse-violet);
}

@keyframes feed-slide-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feed-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* ============================================================
   PHASE 5: THE BRIDGE
   ============================================================ */
#phase-bridge {
  display: none;
  height: 100vh;
  width: 100vw;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(4, 4, 18, 0.9) 0%, #040412 100%);
}

#phase-bridge.active {
  display: flex;
}

.bridge-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bridge-state {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s var(--ease-out-expo);
}

.bridge-state.active {
  opacity: 1;
  pointer-events: all;
}

/* State 1: Radar */
.radar-scan {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: var(--space-xl);
}

.radar-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border: 1px solid var(--pulse-cyan);
  border-radius: 50%;
  opacity: 0;
  animation: radar-pulse 3s infinite cubic-bezier(0.21, 0.53, 0.56, 0.8);
}

.radar-circle.delay-1 {
  animation-delay: 1s;
}

.radar-circle.delay-2 {
  animation-delay: 2s;
}

@keyframes radar-pulse {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

.bridge-status-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.bridge-sub-text {
  color: var(--text-secondary);
}

/* State 2: Match */
.match-card {
  width: 100%;
  max-width: 500px;
  text-align: center;
  animation: slide-up 0.8s var(--ease-out-expo);
}

.match-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.match-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-display);
  font-weight: 600;
}

.match-avatar.you {
  border-color: var(--beacon-gold);
  color: var(--beacon-gold);
}

.match-avatar.them {
  border-color: var(--pulse-violet);
  color: var(--pulse-violet);
}

.match-line {
  flex-grow: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.match-spark {
  position: absolute;
  top: -1px;
  left: -20px;
  width: 20px;
  height: 3px;
  background: #fff;
  box-shadow: 0 0 10px #fff;
  animation: spark-travel 2s infinite linear;
}

@keyframes spark-travel {
  0% {
    left: -20px;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

.match-contrast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  margin: var(--space-xl) 0;
}

.contrast-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contrast-side span {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
}

.contrast-side strong {
  font-size: 1.2rem;
}

.contrast-side.left strong {
  color: var(--beacon-gold);
}

.contrast-side.right strong {
  color: var(--pulse-violet);
}

.contrast-vs {
  font-family: var(--font-display);
  color: var(--text-tertiary);
}

/* State 3: Exchange (Split Screen) */
.exchange-profile {
  position: absolute;
  top: var(--space-xl);
  display: flex;
  flex-direction: column;
}

.exchange-profile.them {
  left: var(--space-xl);
  align-items: flex-start;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--pulse-violet);
}

.profile-loc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.oracle-container {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 600px;
  z-index: 10;
}

.oracle-orb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #69f0ae);
  box-shadow: 0 0 30px rgba(105, 240, 174, 0.4);
  margin-bottom: var(--space-lg);
  animation: orb-breathe 4s infinite ease-in-out;
}

@keyframes orb-breathe {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(105, 240, 174, 0.4);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(105, 240, 174, 0.6);
  }
}

.oracle-prompt {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.split-chat {
  width: 100%;
  height: 100%;
  display: flex;
}

.chat-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl) 5vw;
}

.chat-side.them {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(90deg, rgba(162, 100, 255, 0.02) 0%, transparent 100%);
  align-items: flex-start;
}

.chat-side.you {
  background: linear-gradient(-90deg, rgba(255, 200, 87, 0.02) 0%, transparent 100%);
  align-items: flex-end;
}

.chat-bubble {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 450px;
  margin-bottom: var(--space-xl);
  animation: slide-up 0.4s var(--ease-out-expo);
}

.chat-bubble.you {
  border-color: rgba(255, 200, 87, 0.3);
  background: rgba(255, 200, 87, 0.05);
}

.chat-input-area {
  width: 100%;
  max-width: 450px;
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1px;
}

.chat-input {
  width: 100%;
  height: 100px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  color: #fff;
  padding: var(--space-md);
  padding-right: 60px;
  resize: none;
  outline: none;
}

.btn-send {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.typing-indicator span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
  margin: 0 2px;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* State 4: Tether */
.tether-card {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.tether-orb-small {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #69f0ae;
  margin: var(--space-lg) auto;
  box-shadow: 0 0 20px rgba(105, 240, 174, 0.4);
}

.tether-quote {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #fff;
  font-style: italic;
  margin: var(--space-lg) 0 var(--space-xl);
  padding: 0 var(--space-lg);
}

.tether-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.btn-tether-reject {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-xl);
  border-radius: 100px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-tether-reject:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.btn-tether-accept {
  background: #69f0ae;
  border: none;
  color: #000;
  padding: var(--space-sm) var(--space-xl);
  border-radius: 100px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn-tether-accept:hover {
  box-shadow: 0 0 20px rgba(105, 240, 174, 0.4);
  transform: translateY(-2px);
}

/* Constellation Overlay */
.constellation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease-out-expo);
}

.constellation-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

#bridge-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.constellation-msg {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: slide-up 1s 1s var(--ease-out-expo) both;
}

/* ============================================================
   DA VINCI DETAIL PASS — Oracle Companion Styling
   ============================================================ */

/* Oracle Chat Input */
.oracle-input-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(105, 240, 174, 0.15);
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-out-expo);
}

.oracle-input-wrapper:focus-within {
  border-color: rgba(105, 240, 174, 0.4);
  box-shadow: 0 0 20px rgba(105, 240, 174, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.oracle-input-styled {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 8px 12px;
  outline: none;
}

.oracle-input-styled::placeholder {
  color: var(--text-tertiary);
  font-style: italic;
}

/* Oracle Send Button */
.btn-oracle-send {
  background: linear-gradient(135deg, #69f0ae, #00e5ff) !important;
  color: #000 !important;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s var(--ease-out-expo);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-oracle-send:hover {
  transform: scale(1.1);
}

/* Chat Messages */
.msg {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  max-width: 90%;
  font-size: 0.95rem;
  line-height: 1.6;
  animation: msg-appear 0.3s var(--ease-out-expo) forwards;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@keyframes msg-appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-msg {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(0, 229, 255, 0.05));
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--pulse-cyan);
  margin-left: auto;
  text-align: right;
}

.oracle-msg {
  background: linear-gradient(135deg, rgba(105, 240, 174, 0.12), rgba(105, 240, 174, 0.04));
  border: 1px solid rgba(105, 240, 174, 0.15);
  color: #c8ffd4;
  margin-right: auto;
}

.oracle-msg.typing {
  color: var(--text-tertiary);
  font-style: italic;
  animation: pulse-glow 1.5s infinite alternate;
}

/* Chat History */
.chat-history {
  max-height: 250px;
  overflow-y: auto;
  padding: var(--space-sm);
  scrollbar-width: thin;
  scrollbar-color: rgba(105, 240, 174, 0.2) transparent;
}

.chat-history::-webkit-scrollbar {
  width: 4px;
}

.chat-history::-webkit-scrollbar-thumb {
  background: rgba(105, 240, 174, 0.3);
  border-radius: 2px;
}

/* Return to Node Button */
.btn-return-node {
  margin-top: var(--space-md);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(179, 136, 255, 0.15)) !important;
  border: 1px solid rgba(0, 229, 255, 0.3) !important;
  color: var(--pulse-cyan) !important;
  padding: 12px 32px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  transition: all 0.4s var(--ease-out-expo);
  animation: pulse-border 3s infinite alternate;
}

.btn-return-node:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(179, 136, 255, 0.25)) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.2);
}

@keyframes pulse-border {
  0% {
    border-color: rgba(0, 229, 255, 0.3);
  }

  100% {
    border-color: rgba(179, 136, 255, 0.5);
  }
}

/* Chat Input Wrapper (Bridge Chat) */
.chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 4px 4px 4px 16px;
  transition: all 0.3s var(--ease-out-expo);
}

.chat-input-wrapper:focus-within {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.08);
}

.chat-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 8px 0;
  outline: none;
}

.chat-input-wrapper input::placeholder {
  color: var(--text-tertiary);
}

/* Identity Section */
.identity-section {
  max-width: 1000px;
  margin: 0 auto var(--space-xl);
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.identity-section h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.identity-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.identity-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Identity Form Polish */
.identity-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  outline: none;
  transition: all 0.3s var(--ease-out-expo);
  width: 200px;
}

.identity-input:focus {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.identity-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-identity {
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.2), rgba(255, 200, 87, 0.05));
  border: 1px solid rgba(255, 200, 87, 0.3);
  color: var(--beacon-gold);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: all 0.3s var(--ease-out-expo);
}

.btn-identity:hover {
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.3), rgba(255, 200, 87, 0.1));
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 200, 87, 0.15);
}

/* Zoom Controls */
.zoom-controls {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zoom-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-out-expo);
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.3);
  color: var(--pulse-cyan);
  transform: scale(1.1);
}

/* Viewer Canvas Container */
.constellation-viewer {
  min-height: 350px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================================
 PHASE 6: DASHBOARD 2.0
 ============================================================ */
#phase-dashboard2 {
  display: none;
  width: 100vw;
  height: 100vh;
  padding: var(--space-xl);
  box-sizing: border-box;
}

#phase-dashboard2.active {
  display: block;
}

.dash2-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
}

.dash2-sidebar {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  gap: var(--space-lg);
}

.dash2-identity {
  text-align: center;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.identity-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.identity-status {
  font-size: 0.8rem;
  color: var(--pulse-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dash2-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.dash2-nav-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  padding: 12px 16px;
  text-align: left;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: all 0.2s var(--ease-out-expo);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash2-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.dash2-nav-btn.active {
  background: rgba(0, 229, 255, 0.1);
  color: var(--pulse-cyan);
  border-color: rgba(0, 229, 255, 0.3);
}

.dash2-nav-btn .badge {
  background: #ff6b6b;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 10px;
}

/* --- Oracle Chat Masterpiece Polish --- */
.oracle-msg {
  background: rgba(105, 240, 174, 0.03) !important;
  border: 1px solid rgba(105, 240, 174, 0.15) !important;
  color: #c8ffd4 !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(105, 240, 174, 0.05);
  position: relative;
  overflow: hidden;
}

.oracle-msg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(105, 240, 174, 0.05), transparent);
  transform: translateX(-100%);
  animation: signal-sweep 3s infinite linear;
}

@keyframes signal-sweep {
  100% {
    transform: translateX(100%);
  }
}

.oracle-msg.typing {
  animation: breathing-pulse 2s infinite ease-in-out;
}

@keyframes breathing-pulse {

  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.98);
    box-shadow: 0 0 5px rgba(105, 240, 174, 0.1);
  }

  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 15px rgba(105, 240, 174, 0.2);
  }
}

.oracle-input-wrapper {
  background: rgba(4, 4, 18, 0.6);
  border: 1px solid rgba(105, 240, 174, 0.2);
  border-radius: 40px;
  padding: 2px 5px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 0 rgba(105, 240, 174, 0);
}

.oracle-input-wrapper:focus-within {
  border-color: var(--bridge-green);
  box-shadow: 0 0 20px rgba(105, 240, 174, 0.15);
  transform: translateY(-2px);
}

.oracle-input-styled {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-main);
  padding: 12px 20px;
}

.oracle-input-styled:focus {
  outline: none;
}

.btn-oracle-send {
  background: var(--bridge-green);
  color: #000;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-oracle-send:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 15px var(--bridge-green);
}

.oracle-companion {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.oracle-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.oracle-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
}

.oracle-orb.small {
  width: 24px;
  height: 24px;
}

.oracle-analysis {
  border-left: 2px solid var(--bridge-green);
  padding-left: var(--space-md);
}

.oracle-analysis p {
  font-size: 1rem;
  line-height: 1.7;
  color: #c8ffd4;
}

.oracle-chat {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.analyzing-text {
  font-style: italic;
  color: var(--text-tertiary);
  animation: pulse-op 1.5s infinite;
}

@keyframes pulse-op {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.pulse-text {
  animation: pulse-text-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-text-glow {
  from {
    text-shadow: 0 0 10px currentColor;
  }

  to {
    text-shadow: 0 0 25px currentColor, 0 0 50px rgba(0, 229, 255, 0.15);
  }
}

.dash2-main {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-right: var(--space-sm);
  position: relative;
  max-height: 100%;
  /* Ensure it doesn't expand past viewport */
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
.dash2-main::-webkit-scrollbar {
  width: 6px;
}

.dash2-main::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.dash2-main::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.viewer-header {
  margin-bottom: var(--space-xl);
}

.viewer-header h2 {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}

.viewer-header p {
  color: var(--text-secondary);
}

.btn-mobile-back {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  cursor: pointer;
  font-family: var(--font-display);
  transition: all 0.3s ease;
  align-self: flex-start;
  display: none;
  /* Hidden by default, shown on mobile when main view is active */
}

.btn-mobile-back:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Responsive Dashboard 2.0 */
@media (max-width: 900px) {

  /* Mobile Back Button — Fixed for accessibility */
  .btn-mobile-back {
    position: sticky;
    top: 10px;
    z-index: 1000;
    background: rgba(4, 4, 18, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(105, 240, 174, 0.3);
    color: var(--bridge-green);
    padding: 10px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex !important;
    align-items: center;
    gap: 8px;
  }

  .btn-mobile-back:hover {
    background: var(--bridge-green);
    color: #000;
  }

  /* AI Companion & Missions Enhancement */
  .oracle-analysis {
    border-left: 2px solid var(--bridge-green);
    padding-left: 20px;
    margin: 20px 0;
  }

  .oracle-analysis p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #c8ffd4;
    text-shadow: 0 0 10px rgba(105, 240, 174, 0.2);
  }

  .mission-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(105, 240, 174, 0.1);
  }

  .dash2-layout {
    grid-template-columns: 1fr;
  }

  .dash2-sidebar {
    display: block;
  }

  .mobile-view-main .dash2-sidebar {
    display: none;
  }

  .mobile-view-main .dash2-main {
    display: block;
  }

  .archive-main-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   WELCOME BACK BANNER
   ============================================================ */
.welcome-back-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  padding: var(--space-sm);
  pointer-events: none;
  animation: slide-down 0.5s ease-out;
}

@keyframes slide-down {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.wb-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(4, 4, 18, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 200, 87, 0.3);
  border-radius: 50px;
  padding: 10px 12px 10px 20px;
  pointer-events: all;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 200, 87, 0.08);
}

.wb-streak-fire {
  font-size: 1.3rem;
}

.wb-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wb-greeting {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.wb-streak-info {
  font-size: 0.7rem;
  color: var(--beacon-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wb-resume {
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.2), rgba(255, 200, 87, 0.1));
  border: 1px solid rgba(255, 200, 87, 0.4);
  color: var(--beacon-gold);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.wb-resume:hover {
  background: rgba(255, 200, 87, 0.3);
  box-shadow: 0 0 15px rgba(255, 200, 87, 0.2);
}

.wb-dismiss {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}

.wb-dismiss:hover {
  color: var(--text-secondary);
}

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.landing-share {
  margin-top: var(--space-lg);
  justify-content: center;
}

.share-btn,
.btn-share-beacon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-btn:hover,
.btn-share-beacon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.share-icon {
  font-size: 1rem;
}

/* ============================================================
   FOOTER LINKS
   ============================================================ */
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.footer-link {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
  font-family: var(--font-body);
}

.footer-link:hover {
  color: var(--text-secondary);
}

.footer-sep {
  color: var(--text-tertiary);
  font-size: 0.7rem;
}

/* ============================================================
   PULSE RESULTS ENHANCEMENT
   ============================================================ */
.result-fill {
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pulse-total {
  animation: fade-up 0.5s ease-out;
}