@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --bg-primary: #0a0a10;
  --bg-secondary: rgba(18, 18, 28, 0.6);
  --accent-cyan: #7bf0ff;
  --accent-purple: #c084fc;
  --accent-peach: #ffb09c;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-blur: 16px;
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Montserrat', sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Base Layout */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 1. Cosmic Detour Screen */
.detour-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background: radial-gradient(circle at center, #0f0f18 0%, #050508 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.2s;
}

.detour-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cosmic-portal {
  position: relative;
  width: 280px;
  height: 280px;
  margin-bottom: 3rem;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(123, 240, 255, 0.05) 0%, transparent 70%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.portal-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.portal-ring-1 {
  border-top: 1px solid var(--accent-cyan);
  animation: spin 12s linear infinite;
  box-shadow: 0 0 20px rgba(123, 240, 255, 0.15);
}

.portal-ring-2 {
  width: 85%;
  height: 85%;
  border-bottom: 1px solid var(--accent-purple);
  animation: spin-reverse 8s linear infinite;
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.1);
}

.portal-ring-3 {
  width: 70%;
  height: 70%;
  border-left: 1px solid var(--accent-peach);
  animation: spin 16s linear infinite;
}

.portal-core {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 40px #fff, 0 0 80px var(--accent-cyan);
  filter: blur(1px);
}

.detour-text-container {
  max-width: 600px;
  margin-bottom: 3rem;
}

.detour-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.detour-title span {
  color: var(--accent-cyan);
}

.detour-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}

.detour-btn {
  font-family: var(--font-sans);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 30px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  backdrop-filter: blur(5px);
}

.detour-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: 0.5s;
}

.detour-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(123, 240, 255, 0.3);
  transform: translateY(-2px);
}

.detour-btn:hover::before {
  left: 100%;
}

.detour-btn:active {
  transform: translateY(1px);
}

/* 2. Main Dashboard Layout */
.dashboard {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2rem 4rem 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.dashboard.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dashboard Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3rem;
}

.logo-group {
  display: flex;
  flex-direction: column;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-decoration: none;
}

.logo span {
  color: var(--accent-cyan);
}

.tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite;
}

/* Dashboard Hub Grid */
.hub-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  flex: 1;
}

/* Sidebar Menu */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tab-btn {
  font-family: var(--font-sans);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  text-align: left;
  padding: 1.5rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  backdrop-filter: blur(var(--glass-blur));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
  color: var(--text-primary);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateX(8px);
}

.tab-num {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
}

.tab-btn.active .tab-num {
  animation: glow-text 2s infinite alternate;
}

.tab-title {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tab-desc {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Audio Controller Card */
.content-area {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.05) 0%, transparent 60%), var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

.panel {
  display: none;
  flex-direction: column;
  height: 100%;
  animation: fadeIn 0.8s forwards;
}

.panel.active {
  display: flex;
}

.panel-header {
  margin-bottom: 2.5rem;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.panel-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Global Audio Overlay Controls (Play/Stop & Vol) */
.global-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1.2rem 2rem;
  border-radius: 20px;
  margin-top: auto;
  backdrop-filter: blur(5px);
}

.play-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.master-play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--text-primary);
  color: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.master-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 35px var(--accent-cyan);
  background: var(--accent-cyan);
}

.master-play-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: fill 0.3s;
}

.now-playing-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.np-title {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

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

.volume-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.volume-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 120px;
}

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

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

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

/* PANEL 1: Neuro Tuner Elements */
.neuro-interface {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 2rem;
  margin-bottom: 2rem;
}

.tuning-controls {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.slider-label {
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.slider-value {
  color: var(--accent-cyan);
  font-family: monospace;
}

.visualizer-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}

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

.brainwave-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.wave-pill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.8rem;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.wave-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.wave-pill.active {
  border-color: var(--accent-purple);
  background: rgba(192, 132, 252, 0.05);
  box-shadow: 0 4px 20px rgba(192, 132, 252, 0.1);
}

.wave-pill-name {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.wave-pill-freq {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* PANEL 2: Nature Mixer Elements */
.nature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mixer-channel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mixer-channel:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
}

.mixer-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all 0.3s;
}

.mixer-channel:hover .mixer-icon {
  color: var(--accent-peach);
  border-color: var(--accent-peach);
  box-shadow: 0 0 15px rgba(255, 176, 156, 0.2);
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.channel-name {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

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

.mixer-channel input[type="range"] {
  width: 100%;
}

/* PANEL 3: Breathing Space Elements */
.breathing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 1rem 0;
  flex: 1;
}

.breathing-ring-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.breathing-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 240, 255, 0.1) 0%, transparent 70%);
  border: 1px solid rgba(123, 240, 255, 0.2);
  position: absolute;
  transform: scale(0.6);
  transition: transform 4s ease-in-out, border-color 1s, background 1s;
}

/* Animated state for breathing */
.breathing-ring.inhale {
  transform: scale(1.2);
  border-color: var(--accent-cyan);
  background: radial-gradient(circle, rgba(123, 240, 255, 0.25) 0%, transparent 75%);
  box-shadow: 0 0 50px rgba(123, 240, 255, 0.2);
}

.breathing-ring.exhale {
  transform: scale(0.6);
  border-color: var(--accent-purple);
  background: radial-gradient(circle, rgba(192, 132, 252, 0.1) 0%, transparent 70%);
  box-shadow: 0 0 30px rgba(192, 132, 252, 0.1);
}

.breathing-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 5;
  pointer-events: none;
  animation: breathing-pulse 2s infinite alternate;
}

.breathing-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.breath-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem 2rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}

.breath-btn:hover {
  border-color: var(--accent-peach);
  color: var(--accent-peach);
  box-shadow: 0 0 15px rgba(255, 176, 156, 0.1);
}

.breath-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Footer Section */
footer {
  text-align: center;
  padding-top: 4rem;
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.eco-banner {
  margin-top: 1rem;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
}

.eco-banner a {
  color: var(--accent-peach);
  text-decoration: none;
  font-weight: 500;
}

.eco-banner a:hover {
  text-decoration: underline;
}

/* Keyframe Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

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

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

@keyframes glow-text {
  from { text-shadow: 0 0 5px rgba(123, 240, 255, 0.2); }
  to { text-shadow: 0 0 15px rgba(123, 240, 255, 0.6); }
}

@keyframes breathing-pulse {
  from { opacity: 0.8; }
  to { opacity: 1; }
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .hub-container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  .tab-btn {
    flex: 0 0 260px;
  }
  .content-area {
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .detour-title {
    font-size: 1.8rem;
  }
  header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .sidebar {
    flex-direction: column;
  }
  .tab-btn {
    flex: 1;
    transform: none !important;
  }
  .neuro-interface {
    grid-template-columns: 1fr;
  }
  .visualizer-card {
    min-height: 140px;
  }
  .nature-grid {
    grid-template-columns: 1fr;
  }
  .brainwave-pills {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Advanced Features Extra Styles */
.keyboard-switch-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
}

.switch-track {
  width: 34px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  position: relative;
  transition: background 0.3s;
}

.switch-thumb {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.keyboard-switch-container.active .switch-track {
  background: var(--accent-cyan);
}

.keyboard-switch-container.active .switch-thumb {
  transform: translateX(16px);
}

.share-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.share-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(123, 240, 255, 0.2);
}

.share-toast {
  position: absolute;
  bottom: 50px;
  background: var(--accent-purple);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.share-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Glitch/Easter Egg State styling */
.glitch-flash {
  animation: glitch-color-flash 0.15s infinite alternate;
}

@keyframes glitch-color-flash {
  0% { box-shadow: 0 30px 60px rgba(192, 132, 252, 0.4); border-color: var(--accent-purple); }
  100% { box-shadow: 0 30px 60px rgba(123, 240, 255, 0.4); border-color: var(--accent-cyan); }
}

/* 🚀 Real-time Audio Waveform Analyser styles */
#wave-analyser-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  opacity: 0.25;
  z-index: 1;
}

/* 📋 scientific FAQ accordion section */
.faq-section {
  margin-top: 6rem;
  border-top: 1px solid var(--border-color);
  padding-top: 4rem;
  width: 100%;
}

.faq-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.faq-title span {
  color: var(--accent-cyan);
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur));
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  text-align: left;
  padding: 1.5rem 2rem;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--accent-cyan);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-answer-content {
  padding: 0 2rem 1.8rem 2rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.92rem;
}

.faq-answer-content strong {
  color: var(--text-primary);
}

/* 🧘 Breathing Mode Selectors */
.breath-modes-tabs {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.4rem;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}

.breath-mode-pill {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}

.breath-mode-pill.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-cyan);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ⌨️ Typo Mixer Layout styles */
.typo-mixer-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.typo-mixer-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}

.typo-mixer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.typo-channel {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

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

.typo-channel-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-purple);
}

.typo-channel-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .faq-title {
    font-size: 1.6rem;
  }
  .faq-question {
    font-size: 0.95rem;
    padding: 1.2rem 1.5rem;
  }
  .typo-mixer-grid {
    grid-template-columns: 1fr;
  }
}

/* 🎨 Theme preset classes */
body.gold-glow {
  --accent-cyan: #ffb86c;
  --accent-purple: #ff8b3d;
  --accent-peach: #ffdfa9;
}

body.rose-glow {
  --accent-cyan: #ff758f;
  --accent-purple: #c084fc;
  --accent-peach: #ffb09c;
}

/* 🧘 Solfeggio Presets Tab layout */
.solfeggio-presets-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.solfeggio-pill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all 0.3s;
}

.solfeggio-pill:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.solfeggio-pill.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ⏰ Sleep Timer Selector */
.timer-select-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.2rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timer-select {
  background: transparent;
  border: none;
  color: var(--text-muted);
  outline: none;
  cursor: pointer;
  font-size: 0.8rem;
}

.timer-select option {
  background: #0f0f18;
  color: var(--text-primary);
}

/* 📋 Decompression Journal & Streaks */
.decompression-log-section {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.log-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.journal-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journal-textarea {
  width: 100%;
  height: 100px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  resize: none;
  outline: none;
  transition: border-color 0.3s;
}

.journal-textarea:focus {
  border-color: var(--accent-cyan);
}

.dissolve-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--accent-peach);
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

.dissolve-btn:hover {
  border-color: var(--accent-peach);
  box-shadow: 0 0 10px rgba(255, 176, 156, 0.15);
}

.streak-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.streak-count {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--accent-cyan);
}

.streak-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* 🧘 Sound Bath XY Pad */
.sound-bath-section {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.sound-bath-pad {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  height: 180px;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center;
}

.bath-tracker {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
  transform: translate(-50%, -50%);
  pointer-events: none;
  left: 50%;
  top: 50%;
  transition: transform 0.1s ease-out;
}

.sound-bath-legend {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sound-bath-legend strong {
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

@media (max-width: 768px) {
  .decompression-log-section, .sound-bath-section {
    grid-template-columns: 1fr;
  }
  .sound-bath-pad {
    height: 140px;
  }
}

/* 📢 Google AdSense advert containers */
.ad-wrapper {
  margin: 4rem auto 0 auto;
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: opacity 0.5s;
}

.ad-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.4rem;
  pointer-events: none;
}

.ad-placeholder {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  pointer-events: none;
}

/* 👁️ Ambient Focus Mode class */
body.focus-mode main .dashboard header > *:not(.logo-group),
body.focus-mode main .dashboard .sidebar,
body.focus-mode main .dashboard .content-area > *:not(#wave-analyser-canvas):not(#neuro-panel),
body.focus-mode main .dashboard .content-area #neuro-panel > *:not(.neuro-interface),
body.focus-mode main .dashboard .content-area #neuro-panel .neuro-interface > *:not(.visualizer-card),
body.focus-mode main .dashboard .decompression-log-section,
body.focus-mode main .dashboard .faq-section,
body.focus-mode main .dashboard .ad-wrapper,
body.focus-mode main .dashboard footer {
  opacity: 0.03;
  pointer-events: none;
  transition: opacity 1.0s ease-in-out;
}

body.focus-mode main .dashboard .content-area {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.02);
  background: transparent;
  transition: all 1.0s ease-in-out;
}

body.focus-mode main .dashboard .content-area #neuro-panel .neuro-interface .visualizer-card {
  transform: scale(1.15) translate3d(0, 0, 50px);
  box-shadow: 0 0 50px rgba(123, 240, 255, 0.15);
  transition: transform 1.0s, box-shadow 1.0s;
  grid-column: 1 / span 2;
  width: 100%;
}

.focus-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}

.focus-toggle-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.focus-toggle-btn.active {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  border-color: var(--accent-cyan);
}

/* 💾 Saved Mix Presets */
.saved-presets-container {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.preset-save-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.2rem;
}

.preset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  font-size: 0.78rem;
  transition: all 0.3s;
}

.preset-row:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.preset-name {
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.preset-name:hover {
  color: var(--accent-cyan);
}

.preset-actions {
  display: flex;
  gap: 0.6rem;
}

.preset-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
  font-size: 0.72rem;
}

.preset-action-btn:hover {
  color: var(--accent-peach);
}

/* 🔮 Daily Calm Oracle Card Styling */
.oracle-card-container {
  perspective: 1000px;
  width: 100%;
  height: 180px;
}

.oracle-card {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.oracle-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.oracle-card.flipped .oracle-card-inner {
  transform: rotateY(180deg);
}

.oracle-card-front, .oracle-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.oracle-card-front {
  background: linear-gradient(135deg, rgba(18, 18, 28, 0.8) 0%, rgba(10, 10, 16, 0.9) 100%);
  color: var(--text-primary);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.oracle-card-front:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(123, 240, 255, 0.15);
}

.oracle-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(123, 240, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.oracle-card-symbol {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  animation: float-slow 3s ease-in-out infinite alternate;
}

.oracle-card-prompt {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.oracle-card-front:hover .oracle-card-prompt {
  color: var(--accent-cyan);
}

.oracle-card-back {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.06) 0%, rgba(18, 18, 28, 0.9) 100%);
  color: var(--text-primary);
  transform: rotateY(180deg);
  justify-content: space-between;
  border-color: rgba(192, 132, 252, 0.2);
}

.oracle-card-back-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-purple);
}

.oracle-card-title {
  font-weight: 600;
}

.oracle-card-message {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 300;
  margin: 0.5rem 0;
}

.oracle-card-footer {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

@keyframes float-slow {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-5px) scale(1.05); }
}

/* 🧘 Ambient Chord Bath Matrix Styling */
.chord-matrix-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.chord-matrix-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.chord-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.chord-circle {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  text-align: center;
  font-family: inherit;
}

.chord-circle:hover {
  border-color: var(--accent-peach);
  background: rgba(255, 176, 156, 0.03);
  transform: translateY(-2px);
}

.chord-circle.active {
  border-color: var(--accent-peach);
  background: rgba(255, 176, 156, 0.08);
  box-shadow: 0 0 20px rgba(255, 176, 156, 0.15);
}

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

.chord-relation {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Voice-over toggle styling matching keyboard-switch */
.voice-switch-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
}

.voice-switch-container.active .switch-track {
  background: var(--accent-peach);
}

.voice-switch-container.active .switch-thumb {
  transform: translateX(16px);
}

/* Canvas overlay buttons */
.canvas-overlay-controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.3rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.canvas-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 14px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  font-family: inherit;
}

.canvas-btn:hover {
  color: var(--text-primary);
}

.canvas-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
}

@media (max-width: 600px) {
  .chord-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 🎙️ Live Session Recorder Button & Indicator */
.record-btn:hover {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.record-btn.recording {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1);
}

.record-btn.recording .record-dot {
  animation: pulse-red 1.2s infinite alternate;
}

@keyframes pulse-red {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 12px #ef4444; }
}

/* 😌 Mood Selector & Reflection Journal Calendar */
.mood-selector-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  width: 100%;
}

.mood-selector-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.mood-pills-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mood-pill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.3s;
  font-family: inherit;
}

.mood-pill:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.mood-pill.active {
  color: var(--text-primary);
}

/* State highlights */
.mood-pill[onclick*="anxious"].active { border-color: #fca5a5; background: rgba(252, 165, 165, 0.08); box-shadow: 0 0 10px rgba(252, 165, 165, 0.1); }
.mood-pill[onclick*="tired"].active { border-color: #cbd5e1; background: rgba(203, 213, 225, 0.08); box-shadow: 0 0 10px rgba(203, 213, 225, 0.1); }
.mood-pill[onclick*="restless"].active { border-color: #fde047; background: rgba(253, 224, 71, 0.08); box-shadow: 0 0 10px rgba(253, 224, 71, 0.1); }
.mood-pill[onclick*="calm"].active { border-color: var(--accent-cyan); background: rgba(123, 240, 255, 0.08); box-shadow: 0 0 10px rgba(123, 240, 255, 0.1); }
.mood-pill[onclick*="joyful"].active { border-color: var(--accent-purple); background: rgba(192, 132, 252, 0.08); box-shadow: 0 0 10px rgba(192, 132, 252, 0.1); }

/* Journal Actions layout adjustments */
.journal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.mood-history-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 180px;
}

.mood-history-title {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mood-history-strip {
  display: flex;
  gap: 0.35rem;
}

.mood-history-day {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.01);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.15);
  font-weight: 600;
  transition: all 0.3s;
  cursor: help;
  position: relative;
}

/* History colors */
.mood-history-day.mood-anxious { background: #fca5a5; border-color: #fca5a5; color: #7f1d1d; box-shadow: 0 0 8px rgba(252, 165, 165, 0.3); }
.mood-history-day.mood-tired { background: #cbd5e1; border-color: #cbd5e1; color: #1e293b; box-shadow: 0 0 8px rgba(203, 213, 225, 0.3); }
.mood-history-day.mood-restless { background: #fde047; border-color: #fde047; color: #713f12; box-shadow: 0 0 8px rgba(253, 224, 71, 0.3); }
.mood-history-day.mood-calm { background: var(--accent-cyan); border-color: var(--accent-cyan); color: #083344; box-shadow: 0 0 8px rgba(123, 240, 255, 0.3); }
.mood-history-day.mood-joyful { background: var(--accent-purple); border-color: var(--accent-purple); color: #4c1d95; box-shadow: 0 0 8px rgba(192, 132, 252, 0.3); }
.mood-history-day.mood-empty { background: rgba(255, 255, 255, 0.02); }

/* 🪐 Cosmic Glow Theme */
body.cosmic-glow {
  --accent-cyan: #c084fc;
  --accent-purple: #818cf8;
  --accent-peach: #fda4af;
}

/* 🔔 Interactive Chime Garden */
.chimes-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

#chimes-canvas {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  width: 100%;
  height: 300px;
  cursor: crosshair;
}

.chimes-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 2rem;
}

/* 📊 Wellness Stats Card */
.stats-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.02);
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.stats-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.8rem;
}

.stats-card-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.stats-metric {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.metric-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--accent-cyan);
  font-weight: 400;
  text-shadow: 0 0 10px rgba(123, 240, 255, 0.2);
}

.metric-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .stats-metric {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
  }
  .stats-metric:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* 🌀 Zen Intention Formulas */
.formulas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.formula-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.78rem;
  text-align: left;
  transition: all 0.3s;
  font-family: inherit;
}

.formula-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  background: rgba(123, 240, 255, 0.03);
  transform: translateX(4px);
}

/* 🧘 Solfeggio Resonance Map Grid */
.solfeggio-map-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.solfeggio-map-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.solfeggio-map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.solfeggio-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.solfeggio-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  background: rgba(123, 240, 255, 0.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.solfeggio-freq {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.solfeggio-purpose {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
}

.solfeggio-body {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 📖 Scientific Article and Entrainment Guide */
.scientific-article-section {
  margin-top: 6rem;
  border-top: 1px solid var(--border-color);
  padding-top: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.article-header {
  margin-bottom: 3rem;
  text-align: center;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.3;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  font-weight: 400;
}

.article-title span {
  color: var(--accent-cyan);
}

.article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.article-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article-section h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-left: 2px solid var(--accent-cyan);
  padding-left: 0.8rem;
  font-weight: 400;
}

.article-section p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  text-align: justify;
}

.article-section p strong {
  color: var(--text-primary);
}

.article-section cite {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
}

@media (max-width: 900px) {
  .solfeggio-map-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .solfeggio-map-grid {
    grid-template-columns: 1fr;
  }
  .scientific-article-section {
    padding: 2rem 1rem;
  }
  .article-title {
    font-size: 1.8rem;
  }
}

/* --- SUPPORT MODAL GLASSMORPHISM STYLES --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 16, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  width: 90%;
  max-width: 460px;
  padding: 2.5rem;
  box-sizing: border-box;
  text-align: center;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: float-slow 4s ease-in-out infinite alternate;
}

.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.modal-body {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.modal-gift-tag {
  display: inline-block;
  background: rgba(255, 176, 156, 0.08);
  border: 1px dashed var(--accent-peach);
  color: var(--accent-peach);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  margin-top: 1.2rem;
}

.modal-action-btn {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.modal-action-btn:hover {
  background: var(--accent-peach);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(255, 176, 156, 0.25);
}

.modal-secondary-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  margin-top: 0.8rem;
}

.modal-secondary-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}







