:root {
  --night-bg: #0a0f1a;
  --night-surface: #111827;
  --night-elevated: #1a2332;
  --night-border: #2d3a4f;
  --emerald-glow: #10b981;
  --emerald-dim: #059669;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --accent-wild: #a855f7;
  --accent-surge: #3b82f6;
  --orb-still: #1a2f4a;
  --orb-drift: #1e3d5c;
  --orb-pulse: #2d5a4a;
  --orb-surge: #3d6b5c;
  --orb-wild: #4a2d5c;
}

body.vibe-mode {
  background: var(--night-bg);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
}

.vibe-hero {
  min-height: 70vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(10,15,26,0.3) 0%, rgba(10,15,26,0.95) 100%),
    url('/assets/visuals/go-hero-night.jpg') center/cover no-repeat;
}

.vibe-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(16,185,129,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.energy-orbs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.5rem 1rem;
}

.energy-orb {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  touch-action: manipulation;
}

.energy-orb[data-level="1"] { background: var(--orb-still); }
.energy-orb[data-level="2"] { background: var(--orb-drift); }
.energy-orb[data-level="3"] { background: var(--orb-pulse); }
.energy-orb[data-level="4"] { background: var(--orb-surge); }
.energy-orb[data-level="5"] { background: var(--orb-wild); }

.energy-orb:hover, .energy-orb:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(16,185,129,0.4);
}

.energy-orb.active {
  border-color: var(--emerald-glow);
  box-shadow: 0 0 32px rgba(16,185,129,0.5);
  transform: scale(1.12);
}

.activity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0 1rem 1.5rem;
}

.activity-chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--night-elevated);
  border: 1px solid var(--night-border);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
}

.activity-chip:hover, .activity-chip.active {
  background: rgba(16,185,129,0.15);
  border-color: var(--emerald-dim);
  color: var(--emerald-glow);
}

.vibe-card {
  background: var(--night-surface);
  border: 1px solid var(--night-border);
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.vibe-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--night-elevated);
  border-radius: 1rem;
  padding: 0.25rem;
  margin-bottom: 1.5rem;
}

.vibe-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.vibe-tab.active {
  background: var(--emerald-dim);
  color: white;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 320px;
  overflow-y: auto;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--night-elevated);
  border-radius: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.track-item:hover, .track-item.playing {
  background: rgba(16,185,129,0.12);
}

.track-item.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.track-num {
  width: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.track-info { flex: 1; min-width: 0; }
.track-title { font-size: 0.9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-meta { font-size: 0.7rem; color: var(--text-muted); }

.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17,24,39,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--night-border);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.player-bar.visible { transform: translateY(0); }

.player-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: var(--emerald-dim);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-progress {
  flex: 1;
  height: 4px;
  background: var(--night-border);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.player-progress-fill {
  height: 100%;
  background: var(--emerald-glow);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.narration-panel {
  background: var(--night-elevated);
  border-radius: 1rem;
  padding: 1.25rem;
}

.narration-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .visual-grid { grid-template-columns: repeat(3, 1fr); }
}

.visual-card {
  aspect-ratio: 9/16;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--night-elevated);
  position: relative;
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-card.locked::after {
  content: '🔒';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  font-size: 2rem;
}

.pricing-tier {
  background: var(--night-surface);
  border: 1px solid var(--night-border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.pricing-tier.featured {
  border-color: var(--emerald-glow);
  box-shadow: 0 0 24px rgba(16,185,129,0.2);
}

.pricing-tier.wild {
  border-color: var(--accent-wild);
}

.btn-vibe {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 1rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-vibe-primary {
  background: var(--emerald-dim);
  color: white;
}

.btn-vibe-primary:hover { background: var(--emerald-glow); }

.btn-vibe-wild {
  background: linear-gradient(135deg, var(--accent-wild), #6366f1);
  color: white;
}

.btn-vibe-outline {
  background: transparent;
  border: 1px solid var(--night-border);
  color: var(--text-primary);
}

.suno-stub {
  background: rgba(168,85,247,0.1);
  border: 1px dashed var(--accent-wild);
  border-radius: 1rem;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.suno-stub code {
  display: block;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: var(--night-bg);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  color: var(--accent-wild);
  word-break: break-word;
}

.pack-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

.pack-modal-content {
  background: var(--night-surface);
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .pack-modal { align-items: center; }
  .pack-modal-content { border-radius: 1.5rem; }
}