/* AetherSynth - Premium Binaural Beat Modulator Stylesheet */

:root {
  --bg-dark: #07080d;
  --panel-bg: rgba(15, 17, 28, 0.7);
  --panel-border: rgba(255, 255, 255, 0.07);
  --text-primary: #f0f2fa;
  --text-secondary: #9098b0;
  --text-muted: #62697d;
  
  /* Brand/Accent Colors */
  --cyan: #00f2fe;
  --cyan-rgb: 0, 242, 254;
  --magenta: #ff007f;
  --magenta-rgb: 255, 0, 127;
  --purple: #9b5de5;
  --purple-rgb: 155, 93, 229;
  --success: #00f5a0;
  
  --font-display: 'Space Grotesk', sans-serif;
  --font-sans: 'Outfit', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Ambient Backdrops (Orbs) */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
  transition: all 1s ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(155, 93, 229, 0.6) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: floatOrb1 20s infinite ease-in-out alternate;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.5) 0%, transparent 70%);
  bottom: -15%;
  right: -5%;
  animation: floatOrb2 25s infinite ease-in-out alternate;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 0, 127, 0.4) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatOrb3 18s infinite ease-in-out alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 50px) scale(1.1); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-100px, -60px) scale(0.9); }
}

@keyframes floatOrb3 {
  0% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-30%, -70%) scale(1.2); }
}

/* App Container */
.app-container {
  width: 100%;
  max-width: 1280px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header styling */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: rgba(15, 17, 28, 0.4);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  border-radius: 16px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pulse-logo {
  width: 24px;
  height: 24px;
  background: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--purple);
  position: relative;
}

.pulse-logo::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--purple);
  animation: pulseLogoRing 2s infinite ease-out;
}

@keyframes pulseLogoRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.logo-area h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 30%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-area .badge {
  font-size: 0.7rem;
  background: rgba(155, 93, 229, 0.15);
  color: var(--purple);
  border: 1px solid rgba(155, 93, 229, 0.3);
  padding: 2px 6px;
  border-radius: 20px;
  font-family: var(--font-display);
}

.subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Icon Buttons */
.icon-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.icon-btn:hover svg {
  color: var(--cyan);
}

/* Grid Layout */
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
  body {
    padding: 10px;
  }
}

/* Glassmorphism Panel styles */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--panel-border);
}

.panel-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
}

.panel-icon svg {
  width: 18px;
  height: 18px;
}

.panel-header h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Neon Glows for icons */
.purple-glow svg { color: var(--purple); filter: drop-shadow(0 0 5px rgba(155, 93, 229, 0.5)); }
.cyan-glow svg { color: var(--cyan); filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.5)); }
.magenta-glow svg { color: var(--magenta); filter: drop-shadow(0 0 5px rgba(255, 0, 127, 0.5)); }

.panel-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

/* Control groups styling */
.control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

/* Preset Cards Grid */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
  gap: 8px;
}

.preset-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.preset-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(155, 93, 229, 0.3);
  transform: translateY(-2px);
}

.preset-card.active {
  background: linear-gradient(135deg, rgba(155, 93, 229, 0.15), rgba(0, 242, 254, 0.05));
  border-color: var(--purple);
  box-shadow: 0 0 15px rgba(155, 93, 229, 0.2);
}

.preset-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.preset-freq {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.preset-card.active .preset-name {
  color: #fff;
}

.preset-card.active .preset-freq {
  color: var(--cyan);
}

/* Custom styled ranges */
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-title {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.slider-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-primary);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: all 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 12px var(--cyan);
  background: var(--cyan);
}

#beat-slider::-webkit-slider-thumb {
  background: var(--purple);
  box-shadow: 0 0 10px rgba(155, 93, 229, 0.5);
}
#beat-slider::-webkit-slider-thumb:hover {
  background: var(--purple);
  box-shadow: 0 0 15px var(--purple);
}

#carrier-slider::-webkit-slider-thumb {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}
#carrier-slider::-webkit-slider-thumb:hover {
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
}

.slider-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.carrier-tuning-tags {
  display: flex;
  gap: 6px;
}

.tune-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.1s ease;
}

.tune-btn:hover {
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan);
  border-color: rgba(0, 242, 254, 0.3);
}

/* Frequency indicators */
.frequency-indicator {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
}

.channel-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.ch-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.ch-freq {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.left-ch .ch-freq { color: var(--purple); }
.right-ch .ch-freq { color: var(--cyan); }

.ch-bridge {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  border-left: 1px dashed rgba(255, 255, 255, 0.1);
  border-right: 1px dashed rgba(255, 255, 255, 0.1);
  height: 30px;
}

.ch-delta-label {
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 700;
  font-family: var(--font-display);
  background: rgba(0, 245, 160, 0.08);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(0, 245, 160, 0.2);
}

/* Drag and Drop Zone */
.upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--cyan);
  background: rgba(0, 242, 254, 0.03);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.05);
}

.upload-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  width: 48px;
  height: 48px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.upload-zone:hover .upload-icon {
  color: var(--cyan);
  filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.3));
}

.upload-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 240px;
  line-height: 1.4;
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Noise buttons selector */
.noise-selectors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.noise-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 4px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

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

.noise-btn.active {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--cyan);
  color: #fff;
  font-weight: 600;
}

/* Modulation Mode Option Selection */
.modulation-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mod-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mod-option:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.mod-option input[type="radio"] {
  accent-color: var(--purple);
  margin-top: 4px;
  transform: scale(1.1);
}

.mod-option input[type="radio"]:checked + .mod-card-content .mod-title {
  color: var(--purple);
  text-shadow: 0 0 10px rgba(155, 93, 229, 0.2);
}

.mod-option input[type="radio"]:checked {
  border-color: var(--purple);
}

.mod-option:has(input:checked) {
  border-color: rgba(155, 93, 229, 0.4);
  background: rgba(155, 93, 229, 0.03);
}

.mod-card-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mod-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.mod-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Timeline */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  transition: opacity 0.3s ease;
}

.timeline-container.hidden {
  display: none;
}

.timeline-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-display);
  color: var(--text-secondary);
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple) 0%, var(--cyan) 100%);
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  transition: width 0.1s linear;
}

/* Playback Control Bar */
.playback-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.main-play-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--purple) 0%, #7209b7 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(155, 93, 229, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-play-btn:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 93, 229, 0.45);
}

.main-play-btn:active:not(.disabled) {
  transform: translateY(0);
}

.main-play-btn.disabled {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}

.main-play-btn svg {
  width: 18px;
  height: 18px;
}

.icon-control-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.icon-control-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.icon-control-btn.active {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.hidden {
  display: none !important;
}

/* Visualizer Canvas */
.visualizer-container {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 10px;
  position: relative;
  overflow: hidden;
}

#scope-canvas {
  width: 100%;
  height: 140px;
  display: block;
  background: transparent;
  border-radius: 10px;
}

.visualizer-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.center-label {
  color: var(--purple);
}

/* Volume Mixer Section */
.mixer-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mixer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 16px 8px;
}

.mixer-fader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 170px;
  justify-content: space-between;
}

.vertical-slider {
  -webkit-appearance: none;
  width: 100px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  transform: rotate(270deg);
  margin: 50px 0;
  cursor: pointer;
}

.vertical-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vertical-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.vertical-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-primary);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vertical-slider::-moz-range-thumb:hover {
  transform: scale(1.25);
}

/* Style different fader colors and hover glows */
#beat-vol-slider::-webkit-slider-thumb { background: var(--purple); }
#noise-vol-slider::-webkit-slider-thumb { background: var(--cyan); }
#audio-vol-slider::-webkit-slider-thumb { background: var(--magenta); }
#master-vol-slider::-webkit-slider-thumb { background: #fff; }

#beat-vol-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 12px var(--purple); }
#noise-vol-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 12px var(--cyan); }
#audio-vol-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 12px var(--magenta); }
#master-vol-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 12px #fff; }

#beat-vol-slider::-moz-range-thumb { background: var(--purple); }
#noise-vol-slider::-moz-range-thumb { background: var(--cyan); }
#audio-vol-slider::-moz-range-thumb { background: var(--magenta); }
#master-vol-slider::-moz-range-thumb { background: #fff; }

#beat-vol-slider::-moz-range-thumb:hover { box-shadow: 0 0 12px var(--purple); }
#noise-vol-slider::-moz-range-thumb:hover { box-shadow: 0 0 12px var(--cyan); }
#audio-vol-slider::-moz-range-thumb:hover { box-shadow: 0 0 12px var(--magenta); }
#master-vol-slider::-moz-range-thumb:hover { box-shadow: 0 0 12px #fff; }

.fader-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fader-val {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Export Zone */
.export-zone {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.export-duration-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.export-duration-select select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-primary);
  padding: 4px 8px;
  outline: none;
  font-family: var(--font-sans);
  cursor: pointer;
}

.export-action-btn {
  background: linear-gradient(135deg, var(--cyan) 0%, #00b4db 100%);
  color: #07080d;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.export-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35);
}

.export-action-btn:active {
  transform: translateY(0);
}

.export-action-btn svg {
  width: 16px;
  height: 16px;
}

/* Export progress bar */
.export-progress-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeIn 0.3s ease;
}

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

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

#export-percent {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 4, 8, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-modal {
  background: rgba(18, 20, 32, 0.95);
  backdrop-filter: blur(20px);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.1s ease;
}

.close-btn:hover {
  color: var(--magenta);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-body h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 10px;
}

.modal-body h3:first-of-type {
  margin-top: 0;
}

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

.alert-box {
  padding: 14px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.tips-box {
  background: rgba(155, 93, 229, 0.08);
  border: 1px solid rgba(155, 93, 229, 0.2);
  color: var(--text-primary);
}

.modal-body ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-body li strong {
  color: var(--purple);
}

/* Freq table */
.freq-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 0.8rem;
  text-align: left;
}

.freq-table th, .freq-table td {
  padding: 10px;
  border-bottom: 1px solid var(--panel-border);
}

.freq-table th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
}

.freq-table tr:last-child td {
  border-bottom: none;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: flex-end;
}

.action-btn {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: #aa75eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(155, 93, 229, 0.3);
}

/* Footers */
.app-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 10px;
}

/* ====================================================
   NEURO-LINK EEG & BIOMETRIC DASHBOARD STYLES
   ==================================================== */

.green-glow svg {
  color: var(--success);
  filter: drop-shadow(0 0 5px rgba(0, 245, 160, 0.5));
}

.header-telemetry-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.battery-badge {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.battery-badge.low {
  color: var(--magenta);
  border-color: rgba(255, 0, 127, 0.3);
  background: rgba(255, 0, 127, 0.05);
}

.status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.status-badge.disconnected {
  background: rgba(255, 0, 127, 0.1);
  color: var(--magenta);
  border: 1px solid rgba(255, 0, 127, 0.3);
}

.status-badge.connecting {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
  animation: pulseBadge 1.5s infinite alternate;
}

.status-badge.connected {
  background: rgba(0, 245, 160, 0.1);
  color: var(--success);
  border: 1px solid rgba(0, 245, 160, 0.3);
  box-shadow: 0 0 10px rgba(0, 245, 160, 0.2);
}

@keyframes pulseBadge {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.connect-action-btn {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: rgba(155, 93, 229, 0.15);
  color: var(--purple);
  border: 1px solid rgba(155, 93, 229, 0.35);
  transition: all 0.2s ease;
  outline: none;
}

.connect-action-btn:hover {
  background: rgba(155, 93, 229, 0.25);
  border-color: var(--purple);
  box-shadow: 0 0 10px rgba(155, 93, 229, 0.4);
}

.connect-action-btn svg {
  width: 11px;
  height: 11px;
  color: var(--purple);
  transition: transform 0.2s ease;
}

.connect-action-btn:hover svg {
  transform: scale(1.15);
}

.connect-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Panel Layout rows */
#neuro-panel .panel-content {
  gap: 16px;
}

/* 1. Top Connection / Sensor Map Row */
.neuro-top-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 16px;
}

.eeg-head-map-container {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.head-map-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.head-outline {
  fill: rgba(0, 0, 0, 0.15);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
}

.head-ear {
  fill: rgba(0, 0, 0, 0.15);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
}

.head-nose {
  fill: rgba(255, 255, 255, 0.08);
}

.sensor-node {
  fill: #222533;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.0;
  transition: all 0.3s ease;
}

.sensor-node.good {
  fill: var(--success);
  stroke: #fff;
  filter: drop-shadow(0 0 4px var(--success));
}

.sensor-node.medium {
  fill: #ffc107;
  stroke: #fff;
  filter: drop-shadow(0 0 4px #ffc107);
}

.sensor-node.poor {
  fill: var(--magenta);
  stroke: #fff;
  filter: drop-shadow(0 0 4px var(--magenta));
}

.sensor-label {
  fill: var(--text-muted);
  font-size: 5px;
  font-family: var(--font-display);
  font-weight: 700;
  text-anchor: middle;
}

.neuro-setup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fit-instruction-box {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* 2. Middle Somatic Telemetry Row */
.somatic-telemetry-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 16px;
}

.biometric-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.biometric-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 60px;
  transition: all 0.3s ease;
}

.biometric-card:hover {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.01);
}

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

.bio-card-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.heart-pulse-icon {
  font-size: 0.75rem;
  line-height: 1;
  filter: drop-shadow(0 0 3px rgba(255, 0, 127, 0.3));
  transition: transform 0.1s ease;
}

.heart-pulse-icon.beat {
  animation: heartBeatKey 0.15s ease-out;
}

@keyframes heartBeatKey {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.stillness-dot-glowing {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--success);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.stillness-dot-glowing.moving {
  background: #ffc107;
  box-shadow: 0 0 6px #ffc107;
}

.stillness-dot-glowing.active-move {
  background: var(--magenta);
  box-shadow: 0 0 6px var(--magenta);
}

.bio-main-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.bio-unit {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.bio-sub-val {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.biometric-scope-container {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#bio-canvas {
  width: 100%;
  height: 90px;
  display: block;
  background: transparent;
  border-radius: 10px;
}

.bio-canvas-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bio-label-ppg {
  color: var(--cyan);
}

.bio-label-resp {
  color: var(--success);
}

/* 3. Bottom EEG Scope and Band Power Row */
.eeg-telemetry-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 16px;
  align-items: stretch;
}

.eeg-telemetry-row .eeg-oscilloscope-container {
  flex: 1;
}

.eeg-telemetry-row .spectral-meter-section {
  width: 140px;
}

.eeg-telemetry-row .spectral-grid {
  height: 120px;
  padding: 10px 4px;
}

/* ====================================================
   CLOSED-LOOP SHAMAN STYLES
   ==================================================== */

/* Switch/Toggle styles */
.sim-toggle-container, .shaman-toggle-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  user-select: none;
}

.sim-toggle-container input, .shaman-toggle-container input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.sim-slider, .shaman-slider {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.08);
  transition: .3s;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sim-slider:before, .shaman-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text-muted);
  transition: .3s;
  border-radius: 50%;
}

.sim-toggle-container input:checked + .sim-slider,
.shaman-toggle-container input:checked + .shaman-slider {
  background-color: rgba(155, 93, 229, 0.2);
  border-color: var(--purple);
}

.sim-toggle-container input:checked + .sim-slider:before,
.shaman-toggle-container input:checked + .shaman-slider:before {
  transform: translateX(14px);
  background-color: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}

/* Shaman Settings Subcard */
.shaman-settings-subcard {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}

.shaman-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 6px;
}

.subcard-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.shaman-settings-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shaman-control-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.shaman-control-row.flex-between {
  justify-content: space-between;
}

.shaman-control-row label {
  font-weight: 500;
}

/* Custom Dropdown Styles */
#shaman-target-state {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.72rem;
  padding: 2px 4px;
  outline: none;
  font-family: var(--font-sans);
  cursor: pointer;
  flex: 1;
}

#shaman-target-state option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

/* WebSocket Toggle Label */
.ws-toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.ws-toggle-label input {
  accent-color: var(--purple);
}

/* Shaman Status Line */
.shaman-status-line {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 6px;
  margin-top: 2px;
}

.shaman-status-line .status-val {
  font-weight: 600;
}

.shaman-status-line .status-val.calibrating {
  color: #ffc107;
  text-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
}

.shaman-status-line .status-val.dragging {
  color: var(--purple);
  text-shadow: 0 0 5px rgba(155, 93, 229, 0.3);
}

.shaman-status-line .status-val.locked {
  color: var(--success);
  text-shadow: 0 0 5px rgba(0, 245, 160, 0.3);
}

/* ====================================================
   PHASE 4: BRAINWAVE FINGERPRINT & SESSION RECORDING
   ==================================================== */

/* ---- Fingerprint Sub-Card ---- */
.fingerprint-subcard {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 245, 160, 0.12);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
  transition: border-color 0.3s ease;
}

.fingerprint-subcard:hover {
  border-color: rgba(0, 245, 160, 0.22);
}

.fingerprint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 7px;
  gap: 8px;
}

.fp-profile-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fp-profile-row select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.68rem;
  padding: 2px 4px;
  outline: none;
  font-family: var(--font-sans);
  cursor: pointer;
  max-width: 90px;
}

.fp-profile-row button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border-radius: 5px;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
}

.fp-profile-row button:hover {
  background: rgba(155, 93, 229, 0.12);
  color: var(--purple);
  border-color: rgba(155, 93, 229, 0.3);
}

.fingerprint-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- Band Grid ---- */
.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.band-grid.show-gamma {
  grid-template-columns: repeat(5, 1fr);
}

.band-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 6px 4px;
  min-width: 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.band-cell.calibrated {
  background: rgba(0, 245, 160, 0.04);
  border-color: rgba(0, 245, 160, 0.2);
}

.band-cell.calibrating-active {
  border-color: rgba(255, 193, 7, 0.4);
  background: rgba(255, 193, 7, 0.04);
  animation: cellPulse 1.5s infinite alternate;
}

@keyframes cellPulse {
  from { box-shadow: none; }
  to   { box-shadow: 0 0 8px rgba(255, 193, 7, 0.25); }
}

/* Band indicator dot */
.band-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.band-dot.calibrated {
  background: var(--success);
  border-color: var(--success);
  box-shadow: 0 0 6px rgba(0, 245, 160, 0.6);
}

.band-dot.calibrating {
  background: #ffc107;
  border-color: #ffc107;
  box-shadow: 0 0 6px rgba(255, 193, 7, 0.6);
  animation: dotBlink 0.8s infinite alternate;
}

.band-dot.failed {
  background: var(--magenta);
  border-color: var(--magenta);
  box-shadow: 0 0 6px rgba(255, 0, 127, 0.5);
}

@keyframes dotBlink {
  from { opacity: 0.4; transform: scale(0.85); }
  to   { opacity: 1.0; transform: scale(1.1); }
}

.band-name {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
}

.band-peak {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.band-cell.calibrated .band-peak {
  color: var(--success);
  text-shadow: 0 0 6px rgba(0, 245, 160, 0.4);
}

.band-conf {
  font-size: 0.55rem;
  color: var(--text-muted);
}

.gamma-cell { display: none; }
.gamma-cell.visible { display: flex; }

/* ---- Gamma Opt-In Row ---- */
.gamma-optin-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gamma-optin-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.gamma-optin-label input {
  accent-color: #ffc107;
}

.gamma-warn-icon {
  font-size: 0.8rem;
  color: #ffc107;
  cursor: help;
  filter: drop-shadow(0 0 3px rgba(255, 193, 7, 0.4));
}

/* ---- Calibration Controls ---- */
.cal-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cal-mode-group {
  display: flex;
  gap: 6px;
}

.cal-mode-option {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.cal-mode-option input[type="radio"] {
  accent-color: var(--success);
}

.cal-duration-group {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.cal-duration-group select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  color: var(--text-primary);
  font-size: 0.68rem;
  padding: 2px 4px;
  outline: none;
  font-family: var(--font-sans);
  cursor: pointer;
}

/* ---- Calibration Action Buttons ---- */
.cal-btn-row {
  display: flex;
  gap: 6px;
}

.cal-action-btn {
  flex: 1;
  background: rgba(0, 245, 160, 0.07);
  border: 1px solid rgba(0, 245, 160, 0.2);
  color: var(--success);
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 0.68rem;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.cal-action-btn:hover {
  background: rgba(0, 245, 160, 0.13);
  border-color: var(--success);
  box-shadow: 0 0 8px rgba(0, 245, 160, 0.2);
  transform: translateY(-1px);
}

.cal-action-btn.cal-all {
  background: rgba(155, 93, 229, 0.07);
  border-color: rgba(155, 93, 229, 0.2);
  color: var(--purple);
}

.cal-action-btn.cal-all:hover {
  background: rgba(155, 93, 229, 0.13);
  border-color: var(--purple);
  box-shadow: 0 0 8px rgba(155, 93, 229, 0.2);
}

/* ---- Live Calibration Progress Card ---- */
.cal-progress-card {
  background: rgba(255, 193, 7, 0.04);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeIn 0.3s ease;
}

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

#cal-prog-band-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffc107;
  font-family: var(--font-display);
}

.cal-cancel {
  background: transparent;
  border: 1px solid rgba(255, 0, 127, 0.25);
  color: var(--magenta);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 0.65rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s ease;
}

.cal-cancel:hover {
  background: rgba(255, 0, 127, 0.1);
  border-color: var(--magenta);
}

.cal-live-hz {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-family: var(--font-display);
}

#cal-live-hz {
  color: #ffc107;
  font-weight: 700;
}

.cal-prog-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
}

.cal-prog-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffc107, var(--success));
  border-radius: 10px;
  transition: width 0.5s linear;
}

.cal-prog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* ---- Personalized Badge ---- */
.personalized-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 245, 160, 0.1);
  border: 1px solid rgba(0, 245, 160, 0.25);
  color: var(--success);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  vertical-align: middle;
}

/* ---- Session Recording Strip ---- */
.rec-strip {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  transition: border-color 0.3s ease;
}

.rec-strip.recording {
  border-color: rgba(255, 0, 127, 0.3);
  background: rgba(255, 0, 127, 0.03);
}

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

.rec-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  user-select: none;
}

.rec-right {
  display: flex;
  align-items: center;
}

.rec-notes-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.68rem;
  padding: 4px 8px;
  outline: none;
  font-family: var(--font-sans);
  width: 100%;
  transition: border-color 0.2s ease;
}

.rec-notes-input:focus {
  border-color: rgba(155, 93, 229, 0.4);
}

.rec-notes-input::placeholder {
  color: var(--text-muted);
}

/* Recording indicator */
.rec-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 6px rgba(255, 0, 127, 0.7);
  animation: recPulse 1s infinite ease-in-out alternate;
  flex-shrink: 0;
}

@keyframes recPulse {
  from { opacity: 0.5; transform: scale(0.85); box-shadow: 0 0 3px rgba(255, 0, 127, 0.4); }
  to   { opacity: 1.0; transform: scale(1.2);  box-shadow: 0 0 10px rgba(255, 0, 127, 0.9); }
}

.rec-timer {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--magenta);
}

.rec-export-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.rec-frame-count {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  flex: 1;
}

.rec-export-btn {
  background: rgba(0, 242, 254, 0.07);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--cyan);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s ease;
}

.rec-export-btn:hover {
  background: rgba(0, 242, 254, 0.14);
  border-color: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
  transform: translateY(-1px);
}

/* Gamma modal smaller width */
.gamma-modal {
  max-width: 500px;
}

.modal-footer {
  gap: 10px;
}

/* ====================================================
   PHASE 5: CARRIER CALIBRATION & TOOLTIPS
   ==================================================== */

.band-carrier {
  font-size: 0.52rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.band-cell.calibrated .band-carrier span {
  color: var(--success);
  font-weight: 600;
}

.cal-action-btn.cal-carrier {
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(245, 158, 11, 0.2);
  color: #ff9800;
}

.cal-action-btn.cal-carrier:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: #ff9800;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

/* ---- Interactive Tooltips ---- */
.tooltip-container {
  position: relative;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background: rgba(18, 18, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #e0e0e0;
  font-size: 0.65rem;
  font-weight: normal;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  line-height: 1.3;
  text-align: center;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(18, 18, 24, 0.95) transparent transparent transparent;
}

/* ====================================================
   PHASE 6: ZEN MODE & ATTRACTOR ORB
   ==================================================== */

/* ---- Toggle in Header ---- */
.view-mode-toggle-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 15px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-mode-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-toggle {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}

.view-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.view-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.1);
  transition: .3s;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.05);
}

.view-toggle-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text-secondary);
  transition: .3s;
  border-radius: 50%;
}

.view-toggle input:checked + .view-toggle-slider {
  background-color: rgba(0, 245, 160, 0.15);
  border-color: rgba(0, 245, 160, 0.3);
}

.view-toggle input:checked + .view-toggle-slider:before {
  transform: translateX(14px);
  background-color: var(--success);
  box-shadow: 0 0 6px rgba(0, 245, 160, 0.8);
}

/* ---- Switcher Layout Container ---- */
.zen-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  justify-items: center;
  align-items: start;
  width: 100%;
  max-width: 460px;
  margin: 20px auto;
  animation: fadeIn 0.4s ease;
}

.zen-left-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 460px;
}

/* Side-by-side display when Shaman Console is visible on desktop */
@media (min-width: 960px) {
  .zen-container:has(#shaman-chat-console:not(.hidden)) {
    grid-template-columns: 460px 480px;
    max-width: 970px;
  }
}

.lab-container-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  animation: fadeIn 0.4s ease;
}

.lab-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Override main app-grid if zen is active, and also if lab is active to make lab-container-grid take full width */
body.zen-active .app-grid {
  display: block;
}

body:not(.zen-active) .app-grid {
  display: block;
}

body.zen-active .lab-container-grid {
  display: none;
}

body:not(.zen-active) .zen-container {
  display: none;
}

@media (max-width: 768px) {
  .lab-container-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Attractor Orb & Breathing Section ---- */
.zen-orb-section {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#attractor-orb-canvas {
  width: 300px;
  height: 300px;
  z-index: 2;
  filter: drop-shadow(0 0 30px rgba(0, 245, 160, 0.15));
}

.orb-pulsing-rings {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(0, 245, 160, 0.05);
  animation: ringPulse 4s infinite linear;
  pointer-events: none;
  z-index: 1;
}

@keyframes ringPulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0.3; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---- Zen Control Card ---- */
.zen-controls-card {
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-radius: 16px;
}

.zen-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 8px;
}

.zen-profile-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.zen-setup-row {
  display: flex;
  justify-content: center;
}

.zen-setup-row button {
  width: 100%;
  max-width: 260px;
}

.zen-state-selector {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.zen-state-selector label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.zen-select {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.8rem;
  padding: 8px 12px;
  outline: none;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.zen-select:focus {
  border-color: var(--success);
}

.zen-sliders-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zen-live-coaching-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 15px;
  text-align: center;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#zen-coaching-txt {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
  font-style: italic;
  animation: coachingPulse 2s infinite alternate;
}

@keyframes coachingPulse {
  from { opacity: 0.8; }
  to { opacity: 1.0; }
}

/* ---- Settings Dropdown Panel & Controls ---- */
.settings-dropdown-panel {
  position: absolute;
  top: 75px;
  right: 20px;
  width: 320px;
  max-width: calc(100vw - 40px);
  padding: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 80vh;
  overflow-y: auto;
}

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

.settings-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-section h3 {
  font-size: 0.8rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan);
  margin: 0;
}

.settings-profile-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.settings-profile-row select {
  flex: 1;
}

.settings-profile-row button {
  height: 35px;
  width: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-radius: 8px;
  padding: 0;
}

.settings-checkbox-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-checkbox-grid label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.settings-checkbox-grid input[type="checkbox"] {
  margin-top: 2px;
}

/* Gemini API Styling */
.gemini-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.gemini-toggle-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.gemini-key-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  transition: opacity 0.2s ease, max-height 0.2s ease;
}

.gemini-key-group.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.gemini-key-group label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.api-key-input-row {
  display: flex;
  gap: 8px;
}

.api-key-input-row input {
  flex: 1;
  font-size: 0.75rem;
  padding: 8px 12px;
  height: 35px;
}

.api-key-input-row button {
  height: 35px;
  padding: 0 12px;
  font-size: 0.75rem;
}

#settings-btn svg {
  transition: transform 0.4s ease;
}

#settings-btn.active svg {
  transform: rotate(90deg);
  color: var(--cyan);
}

#history-toggle-btn.active svg {
  color: var(--cyan);
}

/* ---- Shaman Chat Console ---- */
.shaman-chat-console {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 520px; /* matched to left column height */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating behavior when in Lab Mode */
body:not(.zen-active) .shaman-chat-console {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 360px;
  height: 485px;
  z-index: 999;
  margin-top: 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 242, 254, 0.25);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  background: rgba(10, 15, 28, 0.75);
}

body:not(.zen-active) .shaman-chat-console.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.chat-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.status-dot.online {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-dot.connecting {
  background-color: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: pulse 1s infinite alternate;
}

.status-dot.offline {
  background-color: #ef4444;
}

.shaman-intent-status {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.chat-log {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  animation: msgFadeIn 0.25s ease-out forwards;
}

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

.chat-msg.shaman {
  align-self: flex-start;
}

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

.chat-msg .msg-content {
  padding: 10px 14px;
  font-size: 0.8rem;
  line-height: 1.4;
  border-radius: 12px;
}

.chat-msg.shaman .msg-content {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  border-top-left-radius: 2px;
}

.chat-msg.user .msg-content {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #ddd6fe;
  border-top-right-radius: 2px;
}

.chat-input-area {
  display: flex;
  align-items: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
}

.chat-mic-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.chat-mic-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.chat-mic-btn.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.chat-mic-btn.active svg {
  animation: pulse 1.5s infinite;
}

.chat-text-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 0.8rem;
  height: 38px;
  transition: all 0.3s ease;
}

.chat-text-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
  outline: none;
  box-shadow: 0 0 5px rgba(0, 242, 254, 0.2);
}

.chat-send-btn {
  background: var(--cyan-gradient);
  border: none;
  color: #0b0f19;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.chat-send-btn:disabled, .chat-text-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#chat-toggle-btn.active svg {
  color: var(--cyan);
}
#chat-toggle-btn.active {
  background: rgba(255, 255, 255, 0.08);
}
#chat-toggle-btn.has-unread::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 4px #ef4444;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ============================================================
   SESSION HISTORY & SUMMARY STYLING
   ============================================================ */

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  font-size: 13px;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.history-item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  flex-grow: 1;
}

.history-date {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.history-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.history-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.history-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.history-btn.delete:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.summary-metric-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.summary-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* ====================================================
   PHASE 9, TASK 2: ONBOARDING WIZARD STYLING
   ==================================================== */

.onboarding-modal {
  animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}

@keyframes modalPop {
  from { transform: scale(0.95) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.wizard-step {
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
  opacity: 1;
}

.wizard-step.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(10px);
}

.step-dot {
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.step-dot.active {
  background: var(--cyan) !important;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

.step-dot.completed {
  background: var(--purple) !important;
  box-shadow: 0 0 8px rgba(155, 93, 229, 0.4);
}

#onboarding-wizard-modal input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#onboarding-wizard-modal input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
  outline: none;
}

/* Onboarding Fit nodes pulsing styles */
#onboarding-wizard-modal .sensor-node {
  transition: fill 0.3s ease, stroke-width 0.3s ease;
}

#onboarding-wizard-modal .sensor-node.stable {
  fill: #00f5a0 !important;
  filter: drop-shadow(0 0 3px #00f5a0);
}

#onboarding-wizard-modal .sensor-node.poor {
  fill: #ff9800 !important;
  filter: drop-shadow(0 0 3px #ff9800);
}

#onboarding-wizard-modal .sensor-node.none {
  fill: #ef4444 !important;
  filter: drop-shadow(0 0 3px #ef4444);
}



