/* ============================================
   MEDITATIONAL – Calming & Serene Theme
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap");

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg-deep: #1a1f2e;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.08);
  --accent: #7ec8b8;
  --accent-glow: rgba(126, 200, 184, 0.25);
  --accent-warm: #e8c47c;
  --accent-rose: #d4a0a0;
  --text-primary: #e8e4df;
  --text-secondary: rgba(232, 228, 223, 0.65);
  --text-muted: rgba(232, 228, 223, 0.4);
  --gradient-sky: linear-gradient(170deg, #1a1f2e 0%, #2a2440 40%, #1e2d3a 100%);
  --gradient-card: linear-gradient(135deg, rgba(126, 200, 184, 0.08) 0%, rgba(232, 196, 124, 0.05) 100%);
  --gradient-accent: linear-gradient(135deg, #7ec8b8 0%, #a8d8c8 50%, #e8c47c 100%);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(126, 200, 184, 0.1);
  --radius-soft: 16px;
  --radius-round: 50px;
  --transition-gentle: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
input,
button,
label,
h1, h2, h3, h4, h5, h6,
.quote,
.heading-meditational,
footer,
.container,
.guided-label,
.sound-label,
.card-content,
.ambient-option-label,
.music-option-label,
.main-logo,
.meditation-text {
  font-family: "Comfortaa", "Quicksand", system-ui, sans-serif !important;
}

body {
  font-family: "Comfortaa", "Quicksand", system-ui, sans-serif;
  background: var(--gradient-sky);
  color: var(--text-primary);
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Subtle ambient light orbs in the background */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 600px 600px at 15% 25%, rgba(126, 200, 184, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 85% 65%, rgba(232, 196, 124, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 50% 90%, rgba(212, 160, 160, 0.04) 0%, transparent 70%);
  animation: ambientShift 20s ease-in-out infinite alternate;
}

@keyframes ambientShift {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

body.scroll {
  overflow-y: auto;
}

body.no-scroll {
  overflow-y: auto;
}

/* ---------- Breathing Pulsate Animation ---------- */
body.pulsate::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vmax;
  height: 100vmax;
  background: radial-gradient(circle, rgba(126, 200, 184, 0.12) 10%, transparent 55%);
  border-radius: 50%;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
  }
}

@keyframes rippleEffect {
  0% {
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 0.5;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

/* ---------- Accessibility ---------- */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.hidden {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.hidden:not(.hidden) {
  visibility: visible;
  opacity: 1;
}

/* ---------- Modal / Mute Notice Popups ---------- */
.mute-notice {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26, 31, 46, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.mute-notice-content {
  background: linear-gradient(145deg, rgba(42, 36, 64, 0.95), rgba(30, 45, 58, 0.95));
  padding: 2.5rem 2rem;
  border-radius: var(--radius-soft);
  max-width: min(420px, 90vw);
  text-align: center;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  border: 1px solid rgba(126, 200, 184, 0.15);
  animation: fadeInUp 0.5s ease-out;
}

.mute-notice-content h2 {
  color: var(--accent);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  margin-top: 0;
}

.mute-notice-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1em;
}

.mute-notice-btn {
  margin-top: 1.5rem;
  padding: 0.85em 2.5em;
  font-size: 1.05em;
  border-radius: var(--radius-round);
  border: none;
  background: var(--gradient-accent);
  color: var(--bg-deep);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 18px var(--accent-glow);
  transition: transform var(--transition-gentle), box-shadow var(--transition-gentle);
}

.mute-notice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--accent-glow);
}

#mobileBgNotice.mute-notice {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26, 31, 46, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#mobileBgNotice .mute-notice-content {
  background: linear-gradient(145deg, rgba(42, 36, 64, 0.95), rgba(30, 45, 58, 0.95));
  padding: 2.5rem 2rem;
  border-radius: var(--radius-soft);
  max-width: 90vw;
  text-align: center;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  border: 1px solid rgba(126, 200, 184, 0.15);
}

#dismissBgNotice.mute-notice-btn {
  margin-top: 1.5rem;
  padding: 0.85em 2.5em;
  font-size: 1.1em;
  border-radius: var(--radius-round);
  border: none;
  background: var(--gradient-accent);
  color: var(--bg-deep);
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  font-weight: 600;
  box-shadow: 0 4px 18px var(--accent-glow);
  transition: transform var(--transition-gentle), box-shadow var(--transition-gentle);
  display: block;
  width: 100%;
  max-width: 320px;
}

#dismissBgNotice.mute-notice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--accent-glow);
}

/* ---------- Header ---------- */
header {
  text-align: center;
  margin-bottom: 5px;
  padding: 1rem 0;
}

.main-logo {
  display: block;
  margin: 0 auto;
  max-width: 280px;
  width: 70vw;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
  animation: fadeIn 1s ease-out;
}

/* ---------- Guided Section (Top Bar Buttons) ---------- */
.guided-section {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.guided-container {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.btn-sound-access {
  background: none;
  border: none;
  cursor: pointer;
}

.btn-guided-access {
  background: var(--bg-glass);
  border: 1px solid rgba(126, 200, 184, 0.1);
  cursor: pointer;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all var(--transition-gentle);
  box-shadow: var(--shadow-soft);
  width: 110px;
  height: 95px;
  min-width: 110px;
  min-height: 95px;
  border-radius: var(--radius-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-guided-access:hover,
.btn-guided-access:focus {
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-glow);
  z-index: 2;
  background: rgba(126, 200, 184, 0.1);
  border-color: rgba(126, 200, 184, 0.25);
}

.guided-label,
.sound-label {
  display: block;
  text-align: center;
  font-size: 0.8em;
  margin-top: 0.5em;
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.top-right-image {
  width: 32px;
  height: 32px;
  margin: 0;
  display: block;
  position: static;
  cursor: pointer;
  filter: brightness(0.85) sepia(0.15) hue-rotate(130deg) saturate(0.5);
  transition: filter var(--transition-gentle);
}

.btn-guided-access:hover .top-right-image {
  filter: brightness(1) sepia(0.1) hue-rotate(130deg) saturate(0.7);
}

/* ---------- Sound Menu (Music Picker Modal) ---------- */
.sound-menu {
  gap: 1.2em;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  display: none;
  z-index: 100;
  background: linear-gradient(145deg, rgba(42, 36, 64, 0.97), rgba(30, 45, 58, 0.97));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  border-radius: 1.5em;
  border: 1px solid rgba(126, 200, 184, 0.12);
  padding: 1.5em 2em;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sound-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
  animation: fadeInUp 0.35s ease-out;
}

.sound-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sound-toggle:active {
  animation: rippleDrop 0.4s ease-out;
}

@keyframes rippleDrop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Music Picker Cards */
.music-picker {
  display: flex;
  gap: 1.2em;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 0.5em;
  padding: 1em 0.5em 0.5em 0.5em;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1em;
}

.music-option {
  background: none;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  padding: 0.5em 0.5em 0.3em 0.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  box-sizing: border-box;
  transition: all var(--transition-gentle);
  border-radius: var(--radius-soft);
}

.music-option-img-wrap {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4em;
}

.music-option img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-gentle), box-shadow var(--transition-gentle);
  border: 2px solid rgba(126, 200, 184, 0.12);
}

.music-option:focus,
.music-option:hover {
  background: rgba(126, 200, 184, 0.07);
  border-color: rgba(126, 200, 184, 0.22);
  outline: none;
}

.music-option:hover img {
  transform: scale(1.1);
  box-shadow: 0 6px 22px var(--accent-glow);
  border-color: rgba(126, 200, 184, 0.3);
}

.music-option-label {
  font-size: 0.88em;
  color: var(--text-secondary);
  margin-top: 0.2em;
  font-family: "Comfortaa", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  word-break: break-word;
  white-space: normal;
  line-height: 1.2;
  min-height: 2em;
  display: block;
}

.sound-controls-column {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5em;
}

.sound-controls-under {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  margin-top: 1em;
}

/* ---------- Volume Slider ---------- */
.slidecontainer {
  width: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: visible !important;
}

.sound-slider {
  width: 100px;
  margin-left: 0;
}

input[type="range"] {
  width: 200px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  background: rgba(126, 200, 184, 0.15);
  border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 10px var(--accent-glow);
  margin-top: -7px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 3px 15px var(--accent-glow);
}

input[type="range"]::-moz-range-track {
  height: 5px;
  background: rgba(126, 200, 184, 0.15);
  border-radius: 3px;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  box-shadow: 0 2px 10px var(--accent-glow);
}

input[type="range"]::-moz-range-progress {
  background: var(--accent);
  height: 5px;
  border-radius: 3px;
}

/* ---------- Main Timer Container ---------- */
.container-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  max-width: 500px;
  margin: 20px auto;
  padding: 1.5rem;
  border-radius: var(--radius-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  visibility: visible;
}

/* ---------- Timer Countdown Display ---------- */
#countdown {
  align-items: center;
  font-family: "Comfortaa", sans-serif !important;
  font-size: 5rem;
  font-weight: 300;
  width: 100%;
  text-align: center;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-shadow: 0 0 50px rgba(126, 200, 184, 0.12);
}

#countdown p {
  margin: 0;
  width: 100%;
}

#countdown.move-up {
  transform: translateY(-150px);
  transition: transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---------- Animated Divider ---------- */
.animated-hr {
  position: relative;
  height: 1px;
  background: transparent;
  border: none;
  margin: 1.5rem auto;
  width: 100%;
  overflow: hidden;
}

.animated-hr::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-warm), transparent);
  transform: translateX(-50%);
  animation: hrExpand 3s ease-out forwards;
}

@keyframes hrExpand {
  0% {
    width: 0;
    opacity: 0.2;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    width: 100%;
    opacity: 0.5;
  }
}

.fullwidth-hr {
  width: 80vw;
  margin-left: calc(-40vw + 50%);
}

/* ---------- Input Sections ---------- */
.input-section label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

input[type="number"] {
  width: 100px;
  padding: 8px;
  font-size: 1.4rem;
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid rgba(126, 200, 184, 0.18);
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  transition: all var(--transition-gentle);
  font-family: "Comfortaa", sans-serif;
  backdrop-filter: blur(6px);
}

input[type="number"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

/* ---------- Toggle Switch ---------- */
.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
  margin: 0 auto;
  margin-bottom: 8px;
  margin-top: 8px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(126, 200, 184, 0.12);
  border: 1px solid rgba(126, 200, 184, 0.18);
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: 0.4s;
}

input:checked + .slider {
  background-color: rgba(126, 200, 184, 0.25);
  border-color: var(--accent);
}

input:focus + .slider {
  box-shadow: 0 0 10px var(--accent-glow);
}

input:checked + .slider:before {
  background-color: var(--accent);
  transform: translateX(28px);
}

.slider.round {
  border-radius: 28px;
}

.slider.round:before {
  border-radius: 50%;
}

/* ---------- Play / Pause / Reset Buttons ---------- */
.button {
  display: flex;
  gap: 80px;
  justify-content: center;
}

.button button {
  background: var(--gradient-accent);
  color: var(--bg-deep);
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  padding: 14px 28px;
  margin: 20px;
  font-size: 18px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-round);
  height: 60px;
  width: 100px;
  cursor: pointer;
  transition: all var(--transition-gentle);
  box-shadow: 0 4px 22px var(--accent-glow);
}

.button button:active,
.button button:focus {
  outline: none;
  box-shadow: 0 2px 16px var(--accent-glow);
}

@media (hover: hover) {
  .button button:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 35px var(--accent-glow);
  }
}

/* ---------- SVG inside buttons (pause icon) ---------- */
.button button svg rect,
.button button svg {
  fill: var(--bg-deep);
}

/* ---------- Headings & Typography ---------- */
h1 {
  font-family: "Comfortaa", sans-serif;
  letter-spacing: 0.04em;
  font-weight: 300;
  color: var(--text-primary);
  margin-top: 0;
  font-size: 2.2rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

h2 {
  font-family: "Comfortaa", sans-serif;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.03em;
}

h3 {
  font-family: "Comfortaa", sans-serif;
  letter-spacing: 0.03em;
  font-weight: 400;
  color: var(--text-primary);
}

.heading-meditational {
  font-family: "Comfortaa", sans-serif;
  letter-spacing: 0.04em;
  font-weight: 300;
  color: var(--text-primary);
  margin-top: 0;
  font-size: 2.2rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.quote {
  text-align: center;
  font-family: "Comfortaa", sans-serif;
  color: var(--text-secondary);
  font-style: italic;
  font-weight: 300;
}

label {
  font-family: "Comfortaa", sans-serif;
  letter-spacing: 0.04em;
  font-weight: 300;
  color: var(--text-secondary);
}

/* ---------- Footer ---------- */
footer {
  font-family: "Comfortaa", sans-serif;
  text-align: center;
  width: 100%;
  color: var(--text-muted);
  background: transparent;
  position: static;
  left: 0;
  bottom: 0;
  z-index: 100;
  padding: 2rem 0;
  box-sizing: border-box;
  font-size: 0.85rem;
}

footer.scroll {
  padding: 1rem;
  text-align: center;
  background: transparent;
  position: relative;
}

main {
  padding-bottom: 60px;
}

.link {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-gentle), opacity var(--transition-gentle);
  font-weight: 400;
}

.link:hover {
  color: var(--accent-warm);
  opacity: 0.9;
}

/* ---------- About / Content Pages ---------- */
body.scroll section {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  padding: 0 1.5rem;
}

body.scroll section p,
body.scroll section li {
  color: var(--text-secondary);
  line-height: 1.8;
}

body.scroll section ul {
  list-style: none;
  padding-left: 0;
}

body.scroll section ul li {
  padding: 0.3em 0;
}

body.scroll section ul li::before {
  content: "✦ ";
  color: var(--accent);
  margin-right: 0.4em;
}

/* ---------- Guided Sessions ---------- */
.guided-sessions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.guided-meditations {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px;
  justify-content: left;
}

.meditation-card {
  width: 160px;
  height: 200px;
  border-radius: var(--radius-soft);
  overflow: hidden;
  border: 1px solid rgba(126, 200, 184, 0.1);
  padding: 0;
  background: var(--bg-glass);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all var(--transition-gentle);
  text-align: left;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.meditation-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  border-color: rgba(126, 200, 184, 0.2);
}

.card-content {
  padding: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text-primary);
}

.card-content p {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- Newsletter ---------- */
.nl {
  text-align: center;
  padding: 20px;
}

.nl input {
  text-align: center;
  width: 60%;
  max-width: 400px;
  color: var(--text-primary);
  background: var(--bg-glass);
  border: 1px solid rgba(126, 200, 184, 0.18);
  border-radius: 12px;
  padding: 14px;
  font-size: 1.1rem;
  backdrop-filter: blur(6px);
  transition: all var(--transition-gentle);
}

.nl input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  outline: none;
}

.nl input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.nl h2 {
  font-family: "Comfortaa", sans-serif;
  color: var(--text-primary);
  margin-bottom: 20px;
  margin-top: 200px;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.nl button {
  background: var(--gradient-accent);
  color: var(--bg-deep);
  border: none;
  width: auto;
  min-width: 140px;
  height: 48px;
  margin: 30px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-round);
  cursor: pointer;
  padding: 0 2em;
  box-shadow: 0 4px 18px var(--accent-glow);
  transition: all var(--transition-gentle);
}

.nl button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--accent-glow);
}

/* ---------- Ambient Button & Dropdown ---------- */
.ambient-btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 160px;
  min-height: 120px;
}

.ambient-dropdown {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, rgba(42, 36, 64, 0.97), rgba(30, 45, 58, 0.97));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 1.5em;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  border: 1px solid rgba(126, 200, 184, 0.12);
  padding: 1.5em 2em;
  z-index: 100;
  min-width: 260px;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
}

.ambient-options {
  display: flex;
  gap: 1.5em;
  justify-content: center;
  flex-wrap: wrap;
}

.ambient-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: none;
  padding: 0.6em 1em;
  border-radius: var(--radius-soft);
  min-width: 120px;
  transition: all var(--transition-gentle);
}

.ambient-option-btn:hover {
  background: rgba(126, 200, 184, 0.07);
  border-color: rgba(126, 200, 184, 0.2);
}

.ambient-option-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  display: block;
  margin: 0 auto 0.7em;
  border: 2px solid rgba(126, 200, 184, 0.12);
  transition: all var(--transition-gentle);
}

.ambient-option-btn:hover .ambient-option-img {
  box-shadow: 0 6px 22px var(--accent-glow);
  border-color: rgba(126, 200, 184, 0.3);
}

.ambient-option-label {
  text-align: center;
  display: block;
  width: 100%;
  color: var(--text-secondary);
  font-size: 1.1em;
  margin-top: 0;
  font-family: "Comfortaa", sans-serif;
  margin-bottom: 0.2em;
  font-weight: 400;
}

/* ---------- Q&A Icon ---------- */
.top-right-qanda {
  width: 36px;
  height: 36px;
  margin: 0;
  position: fixed;
  cursor: pointer;
  top: 14px;
  right: 70px;
  z-index: 1000;
}

.qanda-icon {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Sound Toggle ---------- */
.sound-toggle {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  cursor: pointer;
  transition: transform var(--transition-gentle);
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  margin: 0;
}

/* ---------- Dropdown (legacy) ---------- */
.dropdown-s {
  font-family: "Comfortaa", sans-serif;
  background: var(--bg-glass);
  outline: none;
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 1rem;
  border: 1px solid rgba(126, 200, 184, 0.18);
  margin: 0;
  position: static;
}

/* ---------- Guided Button (legacy) ---------- */
.btn-guided {
  font-family: "Comfortaa", sans-serif;
  background: var(--gradient-accent);
  color: var(--bg-deep);
  border-radius: var(--radius-round);
  cursor: pointer;
  padding: 10px 24px;
  font-size: 1.1rem;
  margin-top: 10px;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: all var(--transition-gentle);
}

.btn-guided:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--accent-glow);
}

/* ============================================
   RESPONSIVE – TABLET & MOBILE
   ============================================ */
@media (max-width: 800px) {
  .main-logo {
    display: none !important;
    visibility: hidden !important;
  }

  .guided-container {
    justify-content: center !important;
    gap: 4vw;
    padding-left: 6vw;
    padding-right: 6vw;
  }

  header {
    height: 1px;
    min-height: 0;
    padding: 0;
    margin: 0;
    line-height: 1;
  }

  h1 {
    margin-bottom: 0px;
    font-size: 1rem;
    text-align: center;
    width: 100vw;
    box-sizing: border-box;
  }

  .guided-section {
    position: relative;
    top: 0;
    margin: 0;
    left: auto;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
  }

  .guided-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    top: 0;
  }

  .button {
    position: fixed;
    bottom: 2px;
    gap: 30px;
    justify-content: center;
    padding: 0;
    margin: 0;
  }

  .settings {
    flex-direction: column;
    align-items: center;
  }

  footer {
    display: none;
  }

  .input-section {
    width: 100%;
  }

  .sound-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    display: none;
    z-index: 100;
    background: linear-gradient(145deg, rgba(42, 36, 64, 0.98), rgba(30, 45, 58, 0.98));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    border-radius: 1.5em;
    border: 1px solid rgba(126, 200, 184, 0.12);
    min-width: 180px;
    display: flex;
    max-height: 40px;
    flex-direction: column;
    align-items: center;
  }

  .slidecontainer {
    visibility: hidden;
  }

  .session-controls {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    max-width: 600px;
    width: 90%;
    padding: 10px;
    border-radius: var(--radius-soft);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .quote {
    visibility: hidden;
  }

  .container {
    width: 100%;
    max-width: 100vw;
    margin: 20px auto;
    align-items: center;
    box-sizing: border-box;
  }

  #btn-ambient {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .main-logo {
    display: none !important;
    visibility: hidden !important;
  }

  .sound-menu {
    min-width: 0;
    width: 96vw;
    max-width: 98vw;
    padding: 0.7em 0.3em;
    border-radius: 1em;
  }

  .music-picker {
    flex-wrap: wrap;
    gap: 0.4em;
    padding: 0.3em 0.2em;
    border-radius: 1em;
  }

  .music-option {
    width: 38vw;
    min-width: 85px;
    max-width: 110px;
    margin-bottom: 0.3em;
    padding: 0.3em 0.1em 0 0.1em;
  }

  .music-option-img-wrap {
    width: 60vw;
    max-width: 60px;
    height: 60vw;
    max-height: 60px;
    margin-bottom: 0.2em;
  }

  .music-option img {
    width: 56px;
    height: 56px;
  }

  .music-option-label {
    font-size: 0.85em;
    min-height: 1.7em;
  }

  .sound-controls-under {
    margin-top: 0.5em;
    gap: 0.4em;
  }

  .slidecontainer {
    width: 70vw;
    max-width: 140px;
  }

  .sound-slider {
    width: 55vw;
    max-width: 120px;
  }

  .btn-guided-access {
    width: 88px;
    height: 78px;
    min-width: 88px;
    min-height: 78px;
    padding: 0.4rem;
  }

  .guided-label,
  .sound-label {
    font-size: 0.72em;
  }

  .top-right-image {
    width: 26px;
    height: 26px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.container {
  animation: fadeInUp 1s ease-out;
}

#countdown {
  animation: fadeIn 1.5s ease-out;
}

.btn-guided-access {
  animation: fadeIn 1.2s ease-out;
}

/* ---------- Smooth Scrolling ---------- */
html {
  scroll-behavior: smooth;
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(126, 200, 184, 0.3);
  color: var(--text-primary);
}

::-moz-selection {
  background: rgba(126, 200, 184, 0.3);
  color: var(--text-primary);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(126, 200, 184, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(126, 200, 184, 0.35);
}
