/**
 * OohSleep - Home/Dashboard Page Styles
 * 从原home.html提取并整理
 */

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html, body {
  width: 100%; height: 100%;
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

/* Status bar area - FORCE dark background */
html {
  background-color: #0a0a0a !important;
}

/* ═══ SKELETON LOADING ═══ */
.skeleton {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.06) 0%, 
    rgba(255, 255, 255, 0.12) 50%, 
    rgba(255, 255, 255, 0.06) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 80%;
}

.skeleton-title {
  height: 24px;
  width: 50%;
  margin-bottom: 12px;
}

.skeleton-card {
  height: 120px;
  border-radius: 16px;
  margin-bottom: 16px;
}

.skeleton-bar {
  height: 80px;
  width: 100%;
  border-radius: 12px;
}

.skeleton-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.skeleton-stat {
  height: 60px;
  flex: 1;
  border-radius: 12px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-container {
  padding: 0 20px;
}

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

/* Content hidden during skeleton loading */
.content-loading .sleep-status-card,
.content-loading .sleep-section,
.content-loading .records-section {
  opacity: 0;
}

.sleep-status-card,
.sleep-section,
.records-section {
  transition: opacity 0.3s ease;
}

/* PWA mode - no extra padding needed */
body.pwa-mode {
  padding-top: 0 !important;
}

/* ═══ MAIN CONTAINER ═══ */
.app-container {
  width: 100%;
  min-height: 100dvh;
  padding-bottom: 100px;
}

/* ═══ TOP HEADER BAR ═══ */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
}

.header-greeting-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-greeting {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.header-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.header-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.header-btn:active {
  transform: scale(0.95);
}
.header-btn svg {
  width: 22px;
  height: 22px;
}
.header-btn svg path {
  fill: rgba(255, 255, 255, 0.7);
}
.header-btn svg line,
.header-btn svg rect,
.header-btn svg circle {
  stroke: rgba(255, 255, 255, 0.7);
}

.header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
  overflow: hidden;
}
.header-avatar:hover {
  transform: scale(1.05);
}
.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header-avatar svg {
  width: 24px;
  height: 24px;
}
.header-avatar svg path {
  fill: rgba(255, 255, 255, 0.9);
}

/* ═══ TOP TABS ═══ */
.top-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.top-tabs::-webkit-scrollbar {
  display: none;
}

.top-tab {
  flex-shrink: 0;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}
.top-tab.active {
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a0a;
}
.top-tab:not(.active):hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

/* ═══ PAGE CONTENT AREAS ═══ */
.page-content {
  display: none;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}
.page-content.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  text-align: center;
}
.page-placeholder-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* ═══ WHITE NOISE HERO CARD ═══ */
.hero-card {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  margin-bottom: 20px;
  cursor: pointer;
}
.hero-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}
.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}
.hero-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.hero-card-text {
  flex: 1;
}
.hero-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.hero-card-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.hero-card-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.hero-card-play:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}
.hero-card-play:active {
  transform: scale(0.95);
}
.hero-card-play svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}
.hero-card-play svg path {
  fill: #ffffff;
}

/* ═══ SOUND CARDS GRID ═══ */
.sounds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.sound-card {
  position: relative;
  padding: 20px 16px;
  border-radius: 16px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
}
.sound-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(255, 255, 255, 0.1);
  transition: opacity 0.25s ease;
}
.sound-card:hover::before {
  opacity: 1;
}
.sound-card:active {
  transform: scale(0.97);
}
.sound-card-title {
  position: relative;
  z-index: 10;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.sound-card-desc {
  position: relative;
  z-index: 10;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Sound card backgrounds */
.sound-rain { background: linear-gradient(135deg, #2a3f5f 0%, #1a2a3e 100%); }
.sound-wind { background: linear-gradient(135deg, #2d3a4a 0%, #1a252f 100%); }
.sound-thunder { background: linear-gradient(135deg, #3d3a50 0%, #252330 100%); }
.sound-fire { background: linear-gradient(135deg, #4a3a2d 0%, #2f251a 100%); }
.sound-waves { background: linear-gradient(135deg, #2a4a5a 0%, #1a2f3a 100%); }
.sound-stream { background: linear-gradient(135deg, #2d4a4a 0%, #1a2f2f 100%); }
.sound-insects { background: linear-gradient(135deg, #3a4a2d 0%, #252f1a 100%); }
.sound-snow { background: linear-gradient(135deg, #3a4050 0%, #252a35 100%); }

/* Rain animation */
.sound-rain .rain-cloud {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: -16px 6px 0 -4px rgba(255, 255, 255, 0.15), 16px 6px 0 -4px rgba(255, 255, 255, 0.15);
  animation: cloudFloat 4s ease-in-out infinite;
}
@keyframes cloudFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}
.sound-rain .rain-drops {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 40px;
  overflow: hidden;
}
.sound-rain .drop {
  position: absolute;
  width: 2px;
  height: 12px;
  background: linear-gradient(to bottom, transparent, rgba(120, 180, 255, 0.7));
  border-radius: 2px;
  animation: rainFall 0.8s linear infinite;
}
.sound-rain .drop:nth-child(1) { left: 8px; animation-delay: 0s; }
.sound-rain .drop:nth-child(2) { left: 18px; animation-delay: 0.15s; }
.sound-rain .drop:nth-child(3) { left: 28px; animation-delay: 0.3s; }
.sound-rain .drop:nth-child(4) { left: 38px; animation-delay: 0.1s; }
.sound-rain .drop:nth-child(5) { left: 48px; animation-delay: 0.25s; }
.sound-rain .drop:nth-child(6) { left: 13px; animation-delay: 0.4s; }
.sound-rain .drop:nth-child(7) { left: 23px; animation-delay: 0.55s; }
.sound-rain .drop:nth-child(8) { left: 33px; animation-delay: 0.45s; }
.sound-rain .drop:nth-child(9) { left: 43px; animation-delay: 0.6s; }
@keyframes rainFall {
  0% { transform: translateY(-5px); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(40px); opacity: 0; }
}

/* Wind animation */
.sound-wind .wind-lines {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 50px;
}
.sound-wind .wind-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  border-radius: 2px;
  animation: windFlow 2s ease-in-out infinite;
}
.sound-wind .wind-line:nth-child(1) { top: 8px; width: 40px; animation-delay: 0s; }
.sound-wind .wind-line:nth-child(2) { top: 20px; width: 50px; animation-delay: 0.4s; }
.sound-wind .wind-line:nth-child(3) { top: 32px; width: 35px; animation-delay: 0.8s; }
@keyframes windFlow {
  0% { left: -50px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Thunder animation */
.sound-thunder .thunder-cloud {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 18px;
  background: rgba(80, 80, 100, 0.5);
  border-radius: 20px;
  box-shadow: -12px 5px 0 -3px rgba(80, 80, 100, 0.4), 12px 5px 0 -3px rgba(80, 80, 100, 0.4);
}
.sound-thunder .lightning {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: lightningFlash 2.5s ease-in-out infinite;
}
.sound-thunder .lightning svg {
  width: 24px;
  height: 30px;
  fill: #ffffa0;
  filter: drop-shadow(0 0 8px rgba(255, 255, 160, 0.8));
}
.sound-thunder .thunder-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 200, 0.3), transparent 60%);
  opacity: 0;
  animation: thunderGlow 2.5s ease-in-out infinite;
}
@keyframes lightningFlash {
  0%, 100% { opacity: 0; }
  45%, 47% { opacity: 0; }
  48% { opacity: 1; }
  52% { opacity: 0.3; }
  53% { opacity: 1; }
  58% { opacity: 0; }
}
@keyframes thunderGlow {
  0%, 100% { opacity: 0; }
  48%, 53% { opacity: 1; }
}

/* Fire animation */
.sound-fire .fire-glow {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 30px;
  background: radial-gradient(ellipse at bottom, rgba(255, 150, 50, 0.3), transparent 70%);
  animation: glowPulse 1s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  0% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  100% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}
.sound-fire .flames {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2px;
}
.sound-fire .flame {
  width: 10px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(to top, #ff4500, #ff6b35 30%, #ffa500 60%, #ffdd00);
  animation: flicker 0.3s ease-in-out infinite alternate;
  filter: blur(0.5px);
}
.sound-fire .flame:nth-child(1) { height: 18px; animation-delay: 0s; animation-duration: 0.4s; }
.sound-fire .flame:nth-child(2) { height: 28px; animation-delay: 0.1s; animation-duration: 0.35s; }
.sound-fire .flame:nth-child(3) { height: 24px; animation-delay: 0.15s; animation-duration: 0.3s; }
.sound-fire .flame:nth-child(4) { height: 20px; animation-delay: 0.05s; animation-duration: 0.38s; }
@keyframes flicker {
  0% { transform: scaleY(1) scaleX(1) rotate(-2deg); }
  100% { transform: scaleY(1.15) scaleX(0.85) rotate(2deg); }
}

/* Waves animation */
.sound-waves .waves-container {
  position: absolute;
  top: 10px;
  left: -30px;
  right: -30px;
  height: 55px;
}
.sound-waves .wave {
  position: absolute;
  left: 0;
  right: 0;
  height: 25px;
  background: linear-gradient(to bottom, rgba(100, 180, 220, 0.2), transparent);
  border-radius: 100%;
  animation: waveMotion 2.5s ease-in-out infinite;
}
.sound-waves .wave:nth-child(1) { top: 5px; animation-delay: 0s; }
.sound-waves .wave:nth-child(2) { top: 18px; animation-delay: 0.4s; background: linear-gradient(to bottom, rgba(100, 180, 220, 0.15), transparent); }
.sound-waves .wave:nth-child(3) { top: 30px; animation-delay: 0.8s; background: linear-gradient(to bottom, rgba(100, 180, 220, 0.1), transparent); }
@keyframes waveMotion {
  0%, 100% { transform: translateX(-8px) scaleY(1); }
  50% { transform: translateX(8px) scaleY(0.7); }
}

/* Stream animation */
.sound-stream .stream-line {
  position: absolute;
  top: 25px;
  left: -20px;
  right: -20px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(150, 220, 220, 0.3), transparent);
  animation: streamWave 3s ease-in-out infinite;
}
@keyframes streamWave {
  0%, 100% { transform: scaleX(0.8) translateY(0); }
  50% { transform: scaleX(1.1) translateY(2px); }
}
.sound-stream .stream-flow {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 45px;
}
.sound-stream .bubble {
  position: absolute;
  background: rgba(180, 230, 230, 0.6);
  border-radius: 50%;
  animation: streamFlow 2.5s linear infinite;
}
.sound-stream .bubble:nth-child(1) { width: 5px; height: 5px; top: 12px; animation-delay: 0s; }
.sound-stream .bubble:nth-child(2) { width: 4px; height: 4px; top: 22px; animation-delay: 0.5s; }
.sound-stream .bubble:nth-child(3) { width: 6px; height: 6px; top: 18px; animation-delay: 1s; }
.sound-stream .bubble:nth-child(4) { width: 4px; height: 4px; top: 28px; animation-delay: 1.5s; }
.sound-stream .bubble:nth-child(5) { width: 5px; height: 5px; top: 8px; animation-delay: 2s; }
@keyframes streamFlow {
  0% { left: -10px; opacity: 0; transform: scale(0.8); }
  15% { opacity: 1; transform: scale(1); }
  85% { opacity: 1; transform: scale(1); }
  100% { left: 100%; opacity: 0; transform: scale(0.8); }
}

/* Insects/Fireflies animation */
.sound-insects .fireflies {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 50px;
}
.sound-insects .firefly {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #c8ff00;
  border-radius: 50%;
  box-shadow: 0 0 10px 3px rgba(200, 255, 0, 0.6);
  animation: fireflyFloat 3s ease-in-out infinite;
}
.sound-insects .firefly:nth-child(1) { top: 12px; left: 18%; animation-delay: 0s; }
.sound-insects .firefly:nth-child(2) { top: 28px; left: 55%; animation-delay: 0.7s; }
.sound-insects .firefly:nth-child(3) { top: 18px; left: 72%; animation-delay: 1.4s; }
.sound-insects .firefly:nth-child(4) { top: 35px; left: 32%; animation-delay: 2.1s; }
.sound-insects .firefly:nth-child(5) { top: 8px; left: 45%; animation-delay: 0.35s; width: 4px; height: 4px; }
@keyframes fireflyFloat {
  0%, 100% { opacity: 0.1; transform: scale(0.6) translate(0, 0); }
  25% { transform: scale(1) translate(3px, -3px); }
  50% { opacity: 1; transform: scale(1.2) translate(-2px, 2px); }
  75% { transform: scale(1) translate(2px, -2px); }
}

/* Snow animation */
.sound-snow .snow-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, rgba(200, 210, 230, 0.1), transparent);
}
.sound-snow .snowflakes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 65px;
}
.sound-snow .flake {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: snowFall 4s linear infinite;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}
.sound-snow .flake:nth-child(1) { left: 12%; width: 4px; height: 4px; animation-delay: 0s; }
.sound-snow .flake:nth-child(2) { left: 28%; width: 3px; height: 3px; animation-delay: 0.7s; }
.sound-snow .flake:nth-child(3) { left: 45%; width: 5px; height: 5px; animation-delay: 1.4s; }
.sound-snow .flake:nth-child(4) { left: 62%; width: 3px; height: 3px; animation-delay: 2.1s; }
.sound-snow .flake:nth-child(5) { left: 78%; width: 4px; height: 4px; animation-delay: 2.8s; }
.sound-snow .flake:nth-child(6) { left: 35%; width: 3px; height: 3px; animation-delay: 3.5s; }
.sound-snow .flake:nth-child(7) { left: 55%; width: 4px; height: 4px; animation-delay: 0.35s; }
.sound-snow .flake:nth-child(8) { left: 20%; width: 3px; height: 3px; animation-delay: 1.75s; }
@keyframes snowFall {
  0% { transform: translateY(-8px) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateY(30px) translateX(5px); }
  90% { opacity: 0.8; }
  100% { transform: translateY(70px) translateX(-3px); opacity: 0; }
}

/* ═══ BOTTOM NAV BAR ═══ */
.bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  height: 60px;
  background: rgba(28, 28, 30, 0.95);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  padding: 0 2px;
  gap: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.nav-indicator {
  position: absolute;
  width: 56px;
  height: 56px;
  background: #c8e972;
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
              width 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
              border-radius 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 0;
  left: 2px;
  box-shadow: 0 0 20px rgba(200, 233, 114, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.nav-indicator.moving {
  width: 70px;
  border-radius: 28px;
}

.nav-indicator::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: inherit;
  opacity: 0;
  z-index: -1;
  animation: navGlowPulse 2s ease-in-out infinite;
}
@keyframes navGlowPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.1); }
}

.nav-item {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
  transition: transform 0.2s ease;
}

.nav-item svg {
  width: 26px;
  height: 26px;
  transition: all 0.3s ease;
}

.nav-item svg path {
  fill: rgba(255, 255, 255, 0.5);
  transition: fill 0.3s ease;
}

.nav-item.active svg path {
  fill: #1a1a1a;
}

.nav-item:not(.active):hover svg path {
  fill: rgba(255, 255, 255, 0.8);
}

.nav-item:active {
  transform: scale(0.9);
}

.nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0);
  opacity: 0;
  transition: none;
}
.nav-item.ripple::before {
  animation: rippleEffect 0.5s ease-out;
}
@keyframes rippleEffect {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* ═══ SAFE AREA (iOS) ═══ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav {
    bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .app-container {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }
}

/* ═══ PLAYER OVERLAY ═══ */
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.player-overlay.active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 12, 0.4);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.player-overlay.active .player-backdrop {
  opacity: 1;
}

.player-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease 0.3s;
  z-index: 2;
}

.player-overlay.active .player-ambient {
  opacity: 1;
}

.player-ambient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  animation: ambientPulse 8s ease-in-out infinite;
}

@keyframes ambientPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
}

.player-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.player-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.player-overlay.active .player-video-bg video {
  opacity: 1;
}

.player-overlay.closing .player-video-bg video {
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 1, 1);
}

.player-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.player-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.player-close svg {
  width: 24px;
  height: 24px;
}

.player-close svg line {
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 2;
  stroke-linecap: round;
}

.player-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.breathing-circle {
  display: none;
}

.player-text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.player-guide-text {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.player-guide-text.visible {
  opacity: 1;
}

.player-subtext {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.player-controls {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 100;
}

.control-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 101;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.control-btn svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.control-btn svg path,
.control-btn svg rect {
  fill: rgba(255, 255, 255, 0.8);
}

.control-btn.play-pause {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.control-btn.play-pause:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.control-btn.play-pause svg {
  fill: rgba(255, 255, 255, 0.9);
}

.control-btn.play-pause.playing .play-icon {
  display: none;
}

.control-btn.play-pause.playing .pause-icon {
  display: block;
}

.player-progress {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.progress-dot.active {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

/* Player closing animation */
.player-overlay.closing .player-backdrop {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 1, 1);
}

.player-overlay.closing .player-close {
  transform: scale(0) rotate(180deg);
  transition: all 0.3s cubic-bezier(0.4, 0, 1, 1);
}

.player-overlay.closing .player-controls {
  transform: translateX(-50%) translateY(60px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 1, 1);
}

.player-overlay.closing .player-guide-text {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.player-overlay.closing .player-ambient {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ═══ SLEEP LOG STYLES ═══ */
.sleep-status-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.sleep-status-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.sleep-status-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.sleep-status-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.sleep-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: #c8e972;
  border: none;
  border-radius: 50px;
  color: #0a0a0a;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sleep-start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(200, 233, 114, 0.4);
}

.sleep-section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header .section-title {
  margin-bottom: 0;
}

.section-more {
  background: none;
  border: none;
  color: #c8e972;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.week-overview {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px 12px;
  margin-bottom: 16px;
}

.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.week-day.today .day-bar .bar-fill {
  background: #c8e972;
}

.day-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.day-bar {
  width: 8px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, #667eea, #764ba2);
  border-radius: 4px;
  transition: height 0.5s ease;
}

.day-hours {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.week-stats {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.records-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px;
  transition: all 0.2s ease;
}

.record-card:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.08);
}

.record-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.record-emoji {
  font-size: 28px;
}

.record-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.record-date {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.record-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.record-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.record-duration {
  font-size: 18px;
  font-weight: 700;
  color: #c8e972;
}

.record-rating {
  display: flex;
  gap: 2px;
}

.record-rating .star {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
}

.record-rating .star.active {
  color: #ffd700;
}

/* ═══ SLEEP MODE OVERLAY ═══ */
.sleep-mode-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: linear-gradient(180deg, #050510 0%, #0a0a18 50%, #080812 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.sleep-mode-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s linear 0s;
}

.sleep-mode-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(100, 100, 180, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 30% 80%, rgba(80, 60, 120, 0.05) 0%, transparent 40%);
}

.sleep-mode-minimize {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.sleep-mode-minimize:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sleep-mode-minimize svg {
  width: 24px;
  height: 24px;
  stroke: rgba(255, 255, 255, 0.6);
}

.sleep-mode-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  width: 100%;
}

.sleep-mode-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.status-pulse {
  width: 10px;
  height: 10px;
  background: #c8e972;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(200, 233, 114, 0.4); }
  50% { opacity: 0.8; transform: scale(1.1); box-shadow: 0 0 0 8px rgba(200, 233, 114, 0); }
}

.status-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sleep-mode-timer {
  font-size: 64px;
  font-weight: 200;
  color: #fff;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 4px;
}

.sleep-mode-timer .timer-hours,
.sleep-mode-timer .timer-minutes {
  font-size: 64px;
}

.sleep-mode-timer .timer-seconds {
  font-size: 40px;
  opacity: 0.5;
}

.sleep-mode-timer .timer-sep {
  opacity: 0.3;
  margin: 0 4px;
}

.sleep-mode-timer .timer-sep.small {
  font-size: 40px;
}

.sleep-mode-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 48px;
}

.sleep-mode-actions {
  display: flex;
  gap: 24px;
  margin-bottom: 60px;
}

.sleep-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sleep-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.action-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-icon-wrap svg {
  width: 24px;
  height: 24px;
  stroke: rgba(255, 255, 255, 0.7);
}

.action-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.sleep-end-container {
  width: 100%;
  max-width: 300px;
}

.sleep-end-slider {
  position: relative;
  width: 100%;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  overflow: hidden;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 4px;
}

.slider-thumb {
  width: 52px;
  height: 52px;
  background: #c8e972;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
}

.slider-thumb svg {
  width: 24px;
  height: 24px;
  stroke: #0a0a0a;
}

.slider-text {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  padding-right: 20px;
}

.slider-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.3;
  animation: arrowPulse 1.5s ease-in-out infinite;
}

.slider-arrow svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.5);
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.2; transform: translateY(-50%) translateX(0); }
  50% { opacity: 0.5; transform: translateY(-50%) translateX(4px); }
}

/* Rating stars in feedback */
.rating-stars .star-btn {
  font-size: 32px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px;
}

.rating-stars .star-btn.active,
.rating-stars .star-btn:hover {
  color: #ffd700;
  transform: scale(1.15);
}

/* ═══ SLEEP FEEDBACK MODAL ═══ */
.sleep-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 2001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.sleep-feedback-modal.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s linear 0s;
}

.feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.feedback-panel {
  position: relative;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(20, 20, 35, 0.98) 0%, rgba(10, 10, 20, 0.99) 100%);
  border-radius: 32px 32px 0 0;
  padding: 20px 24px 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.feedback-backdrop {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sleep-feedback-modal.active .feedback-backdrop {
  opacity: 1;
}

.sleep-feedback-modal.active .feedback-panel {
  transform: translateY(0);
}

.feedback-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.feedback-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 24px;
}

.feedback-duration {
  text-align: center;
  margin-bottom: 32px;
}

.duration-value {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: #c8e972;
  margin-bottom: 4px;
}

.duration-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.feedback-section {
  margin-bottom: 24px;
}

.feedback-label {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  text-align: center;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.rating-stars .star {
  font-size: 32px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rating-stars .star.active,
.rating-stars .star:hover {
  color: #ffd700;
  transform: scale(1.2);
}

.dream-options {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.dream-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dream-btn.active,
.dream-btn:hover {
  background: rgba(200, 233, 114, 0.2);
  border-color: #c8e972;
}

.feedback-submit {
  width: 100%;
  padding: 16px;
  background: #c8e972;
  border: none;
  border-radius: 14px;
  color: #0a0a0a;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.feedback-submit:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(200, 233, 114, 0.3);
}

.feedback-skip {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.feedback-skip:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ═══ BREATHING EXERCISE ═══ */
.breathing-container {
  padding: 0 20px 20px;
}

.breathing-intro {
  text-align: center;
  padding: 20px 0 30px;
}

.breathing-intro h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.breathing-intro p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* Breathing Card List */
.breathing-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

.breathing-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.breathing-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.breathing-card:active {
  transform: translateY(0);
}

.breathing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.breathing-card-info h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 3px;
  color: #fff;
}

.breathing-card-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.breathing-tag {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.breathing-tag.tag-sleep {
  background: rgba(138, 132, 255, 0.2);
  color: #a8a4ff;
}

.breathing-tag.tag-focus {
  background: rgba(255, 193, 94, 0.2);
  color: #ffc15e;
}

.breathing-tag.tag-balance {
  background: rgba(94, 211, 255, 0.2);
  color: #5ed3ff;
}

.breathing-tag.tag-quick {
  background: rgba(255, 107, 129, 0.2);
  color: #ff6b81;
}

.breathing-card-pattern {
  font-size: 13px;
  color: #c8e972;
  font-weight: 500;
  margin: 0 0 8px 0;
  letter-spacing: 0.3px;
}

.breathing-card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.5;
}

/* ═══ BLOG LIST ═══ */
.blog-container {
  padding: 0 20px 100px;
}

.blog-intro {
  text-align: center;
  margin-bottom: 24px;
}

.blog-intro h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px 0;
}

.blog-intro p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-card {
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c8e972, #72c8e9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.blog-read-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 16px 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.blog-tag {
  font-size: 11px;
  font-weight: 600;
  color: #c8e972;
  background: rgba(200, 233, 114, 0.12);
  padding: 5px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.blog-arrow svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.blog-card:hover .blog-arrow {
  background: #c8e972;
}

.blog-card:hover .blog-arrow svg {
  color: #0a0a0a;
  transform: translateX(2px);
}

/* ═══ PWA INSTALL TAB ═══ */
.install-container {
  padding: 0 20px 100px;
}

.install-intro {
  text-align: center;
  padding: 32px 0;
}

.install-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #c8e972 0%, #72c8e9 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-icon svg {
  width: 40px;
  height: 40px;
  color: #0a0a0a;
}

.install-intro h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.install-intro p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.pwa-install-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #c8e972 0%, #a8d952 100%);
  border: none;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 600;
  color: #0a0a0a;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.pwa-install-btn svg {
  width: 24px;
  height: 24px;
}

.pwa-install-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(200, 233, 114, 0.4);
}

.pwa-install-btn:active {
  transform: scale(0.98);
}

.pwa-install-btn.installed {
  background: rgba(255, 255, 255, 0.1);
  color: #c8e972;
}

.pwa-install-btn.installed:hover {
  transform: none;
  box-shadow: none;
}

.install-hint {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 24px 0;
}

.install-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}

.install-divider::before,
.install-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.install-divider span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.install-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.install-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.install-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.install-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.install-card-icon svg {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.7);
}

.install-card-content {
  flex: 1;
  min-width: 0;
}

.install-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px 0;
}

.install-card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.install-card-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.install-card-arrow svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.install-card:hover .install-card-arrow svg {
  color: #c8e972;
  transform: translateX(4px);
}

.install-benefits {
  margin-top: 40px;
  background: rgba(200, 233, 114, 0.06);
  border: 1px solid rgba(200, 233, 114, 0.15);
  border-radius: 16px;
  padding: 24px;
}

.install-benefits h3 {
  font-size: 16px;
  font-weight: 600;
  color: #c8e972;
  margin: 0 0 16px 0;
}

.install-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.install-benefits li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.install-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #c8e972;
  font-weight: 600;
}

/* ═══ HELP TAB ═══ */
.help-container {
  padding: 0 20px 100px;
}

.help-section {
  margin-bottom: 40px;
}

.help-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.help-section-title svg {
  width: 24px;
  height: 24px;
  color: #c8e972;
}

/* Pricing Section */
.pricing-section {
  text-align: center;
  padding: 32px 0;
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #c8e972 0%, #72c8e9 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-icon svg {
  width: 36px;
  height: 36px;
  color: #0a0a0a;
}

.pricing-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.pricing-tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
}

.pricing-cards-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pricing-card-featured {
  width: 100%;
  max-width: 280px;
}

.pricing-alt-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin: 0 0 20px 0;
}

.pricing-alt-note strong {
  color: #c8e972;
  font-weight: 600;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px 16px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c8e972, #72c8e9);
}

.pricing-card-alt::before {
  background: rgba(255, 255, 255, 0.2);
}

.pricing-features-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
}

.pricing-features-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px 0;
  text-align: center;
}

.pricing-badge {
  display: inline-block;
  background: linear-gradient(135deg, #c8e972 0%, #a8d952 100%);
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-amount .currency {
  font-size: 24px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.pricing-amount .price {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.pricing-amount .period {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.pricing-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li svg {
  width: 20px;
  height: 20px;
  color: #c8e972;
  flex-shrink: 0;
}

.pricing-features li span {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.pricing-subscribe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #c8e972 0%, #a8d952 100%);
  border: none;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 600;
  color: #0a0a0a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pricing-subscribe-btn svg {
  width: 22px;
  height: 22px;
}

.pricing-subscribe-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(200, 233, 114, 0.4);
}

/* Usage Guide */
.usage-guide {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.usage-step {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
}

.usage-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8e972 0%, #72c8e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #0a0a0a;
  flex-shrink: 0;
}

.usage-step-content {
  flex: 1;
}

.usage-step-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
}

.usage-step-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
}

.usage-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(200, 233, 114, 0.08);
  border: 1px solid rgba(200, 233, 114, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}

.usage-tip-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.usage-tip p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

.usage-tip strong {
  color: #c8e972;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-question span {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  flex: 1;
  padding-right: 16px;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: #c8e972;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 20px 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0;
}

/* Contact Section */
.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
}

.contact-card > p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 20px 0;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(200, 233, 114, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: #c8e972;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.contact-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.contact-value {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin: 16px 0 0 0;
  text-align: center;
}

/* Legal Section */
.legal-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
}

.legal-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin: 0 0 12px 0;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content strong {
  color: rgba(255, 255, 255, 0.85);
}

/* Help Footer */
.help-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.help-footer p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* ═══ SOUND CLIPS IN FEEDBACK ═══ */
.sound-clips-summary {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
}

.clips-count {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.clips-icon {
  font-size: 20px;
}

.clips-text {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
}

.clips-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
}

.clip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.clip-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clip-item-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(200, 233, 114, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #c8e972;
}

.clip-item-time {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.clip-preview-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(200, 233, 114, 0.15);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.clip-preview-btn svg {
  width: 14px;
  height: 14px;
  color: #c8e972;
}

.clips-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin: 12px 0 0 0;
}

/* ═══ SOUND CLASSIFICATION MODAL ═══ */
.sound-classify-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sound-classify-modal.active {
  opacity: 1;
  visibility: visible;
}

.classify-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.classify-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 24px 24px 0 0;
  padding: 12px 24px 40px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sound-classify-modal.active .classify-panel {
  transform: translateY(0);
}

.classify-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.classify-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.classify-progress {
  font-size: 14px;
  color: #c8e972;
  font-weight: 500;
  background: rgba(200, 233, 114, 0.15);
  padding: 4px 12px;
  border-radius: 12px;
}

.classify-player {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.player-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.clip-number {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.clip-time {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.classify-player .player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  bottom: auto;
  left: auto;
  transform: none;
}

.play-clip-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8e972 0%, #a8d952 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.play-clip-btn:active {
  transform: scale(0.95);
}

.play-clip-btn svg {
  width: 18px;
  height: 18px;
  color: #0a0a0a;
}

.play-clip-btn .play-icon {
  margin-left: 2px;
}

.player-waveform {
  flex: 1;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.waveform-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(200, 233, 114, 0.4), rgba(200, 233, 114, 0.2));
  border-radius: 8px;
  transition: width 0.1s linear;
}

.clip-duration {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  min-width: 36px;
  text-align: right;
}

.classify-question {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin: 0 0 16px 0;
}

.classify-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.classify-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.classify-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.classify-option:active,
.classify-option.selected {
  border-color: #c8e972;
  background: rgba(200, 233, 114, 0.1);
}

.option-icon {
  font-size: 28px;
}

.option-label {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.classify-actions {
  text-align: center;
}

.classify-skip-btn {
  padding: 12px 24px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.classify-skip-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.8);
}

/* Skip Confirmation Dialog */
.skip-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.skip-confirm-overlay.active {
  opacity: 1;
}

.skip-confirm-dialog {
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  max-width: 320px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.skip-confirm-overlay.active .skip-confirm-dialog {
  transform: scale(1);
}

.skip-confirm-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.skip-confirm-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px 0;
}

.skip-confirm-msg {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.skip-confirm-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 20px 0;
  font-style: italic;
}

.skip-confirm-btns {
  display: flex;
  gap: 12px;
}

.skip-confirm-cancel {
  flex: 1;
  padding: 14px;
  background: linear-gradient(135deg, #c8e972 0%, #a8d952 100%);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #0a0a0a;
  cursor: pointer;
}

.skip-confirm-ok {
  flex: 1;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

/* ═══ BREATHING PRACTICE OVERLAY ═══ */
.breathing-practice-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.breathing-practice-overlay.active {
  opacity: 1;
  visibility: visible;
}

.practice-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.practice-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 20px env(safe-area-inset-bottom, 20px);
}

/* Practice Navigation */
.practice-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  padding-top: max(16px, env(safe-area-inset-top));
}

.practice-back-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.practice-back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.practice-back-btn svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.practice-nav-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.practice-method-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.practice-cycle-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.practice-sound-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.practice-sound-btn svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.practice-sound-btn.muted svg {
  color: rgba(255, 255, 255, 0.4);
}

/* Practice Main Area */
.practice-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

/* Breathing Circle Visual */
.practice-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 280px;
  overflow: visible;
}

.practice-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(200, 233, 114, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 4s ease-in-out, background 0.3s ease;
}

.practice-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(200, 233, 114, 0.4);
  transition: all 0.3s ease;
}

.practice-ring-outer {
  position: absolute;
  width: 130%;
  height: 130%;
  border-radius: 50%;
  border: 1px solid rgba(200, 233, 114, 0.15);
  transition: all 0.3s ease;
}

.practice-timer {
  font-size: 42px;
  font-weight: 300;
  color: #fff;
  font-family: 'Inter', sans-serif;
  z-index: 1;
}

/* Breathing States */
.practice-circle.inhale {
  transform: scale(1.35);
  background: rgba(200, 233, 114, 0.15);
  transition: transform 4s ease-out, background 0.3s ease;
}

.practice-circle.inhale .practice-ring {
  border-color: rgba(200, 233, 114, 0.8);
  box-shadow: 0 0 40px rgba(200, 233, 114, 0.3);
}

.practice-circle.hold {
  transform: scale(1.35);
  background: rgba(114, 200, 233, 0.15);
  transition: transform 0.3s ease, background 0.3s ease;
}

.practice-circle.hold .practice-ring {
  border-color: rgba(114, 200, 233, 0.8);
  box-shadow: 0 0 40px rgba(114, 200, 233, 0.3);
}

.practice-circle.exhale {
  transform: scale(1);
  background: rgba(180, 140, 255, 0.12);
  transition: transform 6s ease-out, background 0.3s ease;
}

.practice-circle.exhale .practice-ring {
  border-color: rgba(180, 140, 255, 0.8);
  box-shadow: 0 0 40px rgba(180, 140, 255, 0.3);
}

.practice-circle.ready {
  transform: scale(1);
  animation: readyPulse 2s ease-in-out infinite;
}

@keyframes readyPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* Instruction Text */
.practice-instruction {
  text-align: center;
  max-width: 300px;
  min-height: 120px;
}

.practice-phase {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px 0;
  transition: color 0.3s ease;
  animation: textFadeIn 0.4s ease;
}

.practice-phase.fade-out {
  animation: textFadeOut 0.2s ease forwards;
}

.practice-phase.inhale {
  color: #c8e972;
}

.practice-phase.hold {
  color: #72c8e9;
}

.practice-phase.exhale {
  color: #b48cff;
}

.practice-guide {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 8px 0;
  line-height: 1.5;
  animation: textSlideIn 0.4s ease;
}

.practice-guide.fade-out {
  animation: textSlideOut 0.2s ease forwards;
}

.practice-tip {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  font-style: italic;
  animation: textFadeIn 0.5s ease;
}

.practice-tip.fade-out {
  animation: textFadeOut 0.2s ease forwards;
}

/* Text Animations */
@keyframes textFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

/* Timer number animation - handled in .practice-timer above */
.practice-timer.tick {
  animation: timerPop 0.3s ease;
}

@keyframes timerPop {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Bottom Controls */
.practice-controls {
  padding: 20px 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.practice-start-btn {
  padding: 16px 60px;
  background: #c8e972;
  border: none;
  border-radius: 30px;
  color: #0a0a0a;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.practice-start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(200, 233, 114, 0.4);
}

.practice-start-btn.pause {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.practice-start-btn.hidden {
  display: none;
}

.practice-stats {
  display: flex;
  gap: 50px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.practice-stats.visible {
  opacity: 1;
}

.practice-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.practice-stats .stat-value {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.practice-stats .stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* Completion Screen */
.practice-complete {
  text-align: center;
}

.practice-complete h2 {
  font-size: 32px;
  color: #c8e972;
  margin-bottom: 16px;
}

.practice-complete p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
}

/* ═══ MONITORING FEEDBACK ═══ */
.monitoring-summary {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.insight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.insight-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.insight-icon {
  font-size: 18px;
}

.insight-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.view-report-btn {
  width: 100%;
  padding: 12px;
  background: rgba(200, 233, 114, 0.15);
  border: 1px solid rgba(200, 233, 114, 0.3);
  border-radius: 10px;
  color: #c8e972;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.view-report-btn:hover {
  background: rgba(200, 233, 114, 0.25);
}

.view-report-btn svg {
  width: 18px;
  height: 18px;
}

/* ═══ SLEEP REPORT MODAL ═══ */
.sleep-report-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.sleep-report-modal.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}

.report-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.sleep-report-modal.active .report-backdrop {
  opacity: 1;
}

.report-panel {
  position: relative;
  width: 100%;
  max-height: 90vh;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.sleep-report-modal.active .report-panel {
  transform: translateY(0);
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.report-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.report-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.report-close svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.report-content {
  padding: 20px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  max-height: calc(85vh - 80px);
  -webkit-overflow-scrolling: touch;
}

.recordings-list {
  max-height: none;
  overflow: visible;
}

.report-overview {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.overview-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}

.overview-stat.snoring {
  background: rgba(255, 107, 107, 0.15);
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #c8e972;
  margin-bottom: 4px;
}

.overview-stat.snoring .stat-number {
  color: #ff6b6b;
}

.stat-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.report-section {
  margin-bottom: 20px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.event-timeline {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
}

.empty-timeline,
.empty-recordings {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.timeline-event {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-event:last-child {
  border-bottom: none;
}

.event-time {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  min-width: 50px;
}

.event-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8e972;
  margin-top: 4px;
  flex-shrink: 0;
}

.event-dot.snoring {
  background: #ff6b6b;
}

.event-dot.talking {
  background: #a78bfa;
}

.event-dot.movement {
  background: #60a5fa;
}

.event-dot.irrelevant {
  background: #6b7280;
}

.event-dot.unknown {
  background: #fbbf24;
}

.recording-type.talking {
  color: #a78bfa;
}

.recording-type.movement {
  color: #60a5fa;
}

.recording-type.irrelevant {
  color: #6b7280;
}

.recording-type.unknown {
  color: #fbbf24;
}

.event-info {
  flex: 1;
}

.event-type {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.event-duration {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.recording-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 8px;
}

.recording-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #c8e972;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.recording-play:hover {
  transform: scale(1.1);
}

.recording-play svg {
  width: 18px;
  height: 18px;
  color: #0a0a0a;
  margin-left: 2px;
}

.recording-play.playing {
  background: #ff6b6b;
}

.recording-play.playing svg {
  color: #fff;
  margin-left: 0;
}

.recording-info {
  flex: 1;
}

.recording-type {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.recording-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.recording-type.snoring {
  color: #ff6b6b;
}

/* ═══ RECORD ANOMALY BADGE ═══ */
.record-anomaly-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(255, 107, 107, 0.15);
  border-radius: 6px;
  font-size: 11px;
  color: #ff6b6b;
  margin-top: 6px;
}

.record-anomaly-badge svg {
  width: 12px;
  height: 12px;
}

/* Monitor indicator in sleep mode */
.monitor-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 8px 16px;
  background: rgba(200, 233, 114, 0.15);
  border-radius: 20px;
  margin-top: 16px;
}

.monitor-indicator.recording {
  background: rgba(255, 107, 107, 0.2);
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.monitor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8e972;
}

.monitor-indicator.recording .monitor-dot {
  background: #ff6b6b;
}

.monitor-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* ═══ DREAM INPUT ═══ */
.dream-content-section {
  animation: fadeSlideIn 0.3s ease;
}

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

.dream-input {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  transition: all 0.25s ease;
}

.dream-input:focus {
  outline: none;
  border-color: rgba(200, 233, 114, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.dream-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* ═══ DRAWER SWIPE GESTURES ═══ */
.feedback-panel,
.report-panel,
.player-panel {
  touch-action: pan-y;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.feedback-panel.dragging,
.report-panel.dragging,
.player-panel.dragging {
  transition: none;
}

.drawer-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin: 0 auto 16px;
  cursor: grab;
}

.drawer-handle:active {
  cursor: grabbing;
}

/* ═══ DREAM INPUT MODAL ═══ */
.dream-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.dream-modal.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.dream-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.dream-modal-content {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: linear-gradient(180deg, rgba(30, 30, 45, 0.98) 0%, rgba(15, 15, 25, 0.99) 100%);
  border-radius: 24px;
  padding: 28px 24px;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.dream-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 6px;
}

.dream-modal-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-bottom: 20px;
}

.dream-modal-input {
  width: 100%;
  min-height: 100px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  resize: none;
  margin-bottom: 20px;
  transition: all 0.25s ease;
}

.dream-modal-input:focus {
  outline: none;
  border-color: rgba(200, 233, 114, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.dream-modal-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.dream-modal-actions {
  display: flex;
  gap: 12px;
}

.dream-modal-btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dream-modal-btn.cancel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

.dream-modal-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dream-modal-btn.save {
  background: #c8e972;
  border: none;
  color: #0a0a0a;
}

.dream-modal-btn.save:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(200, 233, 114, 0.3);
}

/* ═══ DREAM DISPLAY IN REPORT ═══ */
.dream-content-box {
  background: rgba(200, 233, 114, 0.08);
  border: 1px solid rgba(200, 233, 114, 0.2);
  border-radius: 12px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.dream-content-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-all;
  overflow-wrap: break-word;
  max-height: 72px;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dream-content-text.expanded {
  max-height: 500px;
}

.dream-expand-btn {
  display: none;
  width: 100%;
  padding: 10px 0 4px;
  background: transparent;
  border: none;
  color: #c8e972;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.dream-expand-btn.visible {
  display: flex;
}

.dream-expand-btn:active {
  opacity: 0.7;
}

.dream-expand-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dream-expand-btn.expanded svg {
  transform: rotate(180deg);
}

.dream-content-box::after {
  content: '';
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, rgba(200, 233, 114, 0.08));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.dream-content-box.no-fade::after {
  opacity: 0;
}

/* ═══════════════════════════════════════════════════════════════
   CALENDAR PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

.calendar-page {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 2500;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
              opacity 0.4s ease;
}

.calendar-page.active {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

.calendar-page.closing {
  opacity: 0;
  transform: translateX(100%);
}

/* Loading Overlay */
.calendar-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 100;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: all;
}

.calendar-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.calendar-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(200, 233, 114, 0.2);
  border-top-color: #c8e972;
  border-radius: 50%;
  animation: calendarSpin 1s linear infinite;
}

@keyframes calendarSpin {
  to { transform: rotate(360deg); }
}

.calendar-loading-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
}

/* Calendar Header */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.calendar-back-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-back-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.15);
}

.calendar-back-btn svg {
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.calendar-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.calendar-year-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(200, 233, 114, 0.12);
  border: 1px solid rgba(200, 233, 114, 0.25);
  border-radius: 20px;
  color: #c8e972;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-year-btn:active {
  transform: scale(0.95);
  background: rgba(200, 233, 114, 0.2);
}

.calendar-year-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.calendar-year-btn.open svg {
  transform: rotate(180deg);
}

/* Calendar Content */
.calendar-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

/* Month Section */
.calendar-month {
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(30px);
  animation: monthSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.calendar-month:nth-child(1) { animation-delay: 0.05s; }
.calendar-month:nth-child(2) { animation-delay: 0.1s; }
.calendar-month:nth-child(3) { animation-delay: 0.15s; }
.calendar-month:nth-child(4) { animation-delay: 0.2s; }
.calendar-month:nth-child(5) { animation-delay: 0.25s; }
.calendar-month:nth-child(6) { animation-delay: 0.3s; }

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

.month-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.month-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(200, 233, 114, 0.2), rgba(200, 233, 114, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.month-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.month-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* Day Grid */
.month-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  padding: 8px 0;
}

.calendar-day {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.calendar-day::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(200, 233, 114, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.calendar-day:active::before {
  opacity: 1;
}

.calendar-day.empty {
  background: transparent;
  pointer-events: none;
}

.calendar-day.has-data {
  background: rgba(200, 233, 114, 0.08);
  border-color: rgba(200, 233, 114, 0.15);
}

.calendar-day.has-data:active {
  transform: scale(0.95);
  background: rgba(200, 233, 114, 0.15);
}

.calendar-day.today {
  background: rgba(200, 233, 114, 0.2);
  border-color: #c8e972;
  box-shadow: 0 0 20px rgba(200, 233, 114, 0.3);
}

.calendar-day.today .day-number {
  color: #c8e972;
  font-weight: 700;
}

.day-number {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.calendar-day.has-data .day-number {
  color: #ffffff;
}

.day-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8e972;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.calendar-day.has-data .day-indicator {
  opacity: 1;
  transform: scale(1);
}

.calendar-day.has-snoring .day-indicator {
  background: #ff6b6b;
}

/* Sleep Hours Badge */
.day-hours-badge {
  position: absolute;
  bottom: 4px;
  font-size: 9px;
  font-weight: 600;
  color: rgba(200, 233, 114, 0.8);
}

/* Year Selection Modal */
.year-select-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.year-select-modal.active {
  opacity: 1;
  visibility: visible;
}

.year-select-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.year-select-panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 50vh;
  background: #1a1a1a;
  border-radius: 24px 24px 0 0;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.year-select-modal.active .year-select-panel {
  transform: translateY(0);
}

.year-select-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 0 0 20px;
}

.year-select-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.year-option {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.year-option:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.1);
}

.year-option.selected {
  background: rgba(200, 233, 114, 0.15);
  border-color: rgba(200, 233, 114, 0.3);
  color: #c8e972;
}

.year-option .year-records {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.year-option.selected .year-records {
  color: rgba(200, 233, 114, 0.7);
}

/* No Data State */
.calendar-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.calendar-empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.calendar-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.calendar-empty-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Month Record Cards */
.month-records {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-record-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-record-card:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.08);
}

.record-date-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(200, 233, 114, 0.15), rgba(200, 233, 114, 0.05));
  border: 1px solid rgba(200, 233, 114, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.record-day-num {
  font-size: 18px;
  font-weight: 700;
  color: #c8e972;
  line-height: 1;
}

.record-day-name {
  font-size: 10px;
  font-weight: 600;
  color: rgba(200, 233, 114, 0.7);
  text-transform: uppercase;
  margin-top: 2px;
}

.record-info {
  flex: 1;
  min-width: 0;
}

.record-duration {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.record-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.record-stat {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.record-stat.events {
  color: rgba(200, 233, 114, 0.8);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-stat.quality {
  color: rgba(255, 215, 0, 0.8);
}

.record-stat.snoring {
  color: rgba(255, 107, 107, 0.8);
}

.record-stat .stat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8e972;
  flex-shrink: 0;
}

.record-arrow {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.record-arrow svg {
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   ANALYSIS PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Time Range Button */
.time-range-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.time-range-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.12);
}

.time-range-btn svg {
  opacity: 0.7;
}

/* Analysis Cards */
.analysis-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 0.5s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.analysis-card:nth-child(1) { animation-delay: 0.1s; }
.analysis-card:nth-child(2) { animation-delay: 0.2s; }
.analysis-card:nth-child(3) { animation-delay: 0.3s; }
.analysis-card:nth-child(4) { animation-delay: 0.4s; }
.analysis-card:nth-child(5) { animation-delay: 0.5s; }

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

.analysis-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.analysis-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.analysis-card-title svg {
  color: #c8e972;
}

.analysis-card-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* Chart Container */
.chart-container {
  width: 100%;
  min-height: 200px;
}

.chart-container.chart-donut {
  min-height: 180px;
  max-width: 180px;
}

/* Quality Chart Wrapper */
.quality-chart-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.quality-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quality-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quality-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.quality-stat-item:nth-child(1) .quality-stat-value { color: #c8e972; }
.quality-stat-item:nth-child(2) .quality-stat-value { color: #7dd3fc; }
.quality-stat-item:nth-child(3) .quality-stat-value { color: #fca5a5; }

.quality-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* Premium Card Blur Overlay */
.premium-card {
  position: relative;
}

.premium-card .analysis-card-header,
.premium-card .chart-container,
.premium-card .ai-analysis-content {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.premium-card.unlocked .analysis-card-header,
.premium-card.unlocked .chart-container,
.premium-card.unlocked .ai-analysis-content {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

.premium-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  background: rgba(10, 10, 10, 0.3);
  border-radius: 20px;
}

.premium-card.unlocked .premium-blur-overlay {
  display: none;
}

.premium-lock-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(200, 233, 114, 0.15);
  border: 2px solid rgba(200, 233, 114, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8e972;
  animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.premium-text {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* AI Badge */
.ai-badge {
  font-size: 10px;
  font-weight: 600;
  color: #c8e972;
  white-space: nowrap;
  background: rgba(200, 233, 114, 0.15);
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* AI Analysis Content */
.ai-analysis-content {
  min-height: 120px;
}

.ai-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  text-align: center;
  padding: 0 20px;
}

/* Subscribe CTA */
.subscribe-cta {
  background: linear-gradient(135deg, rgba(200, 233, 114, 0.1), rgba(200, 233, 114, 0.02));
  border: 1px solid rgba(200, 233, 114, 0.2);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 100px;
  animation: ctaGlow 3s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(200, 233, 114, 0.1); }
  50% { box-shadow: 0 0 40px rgba(200, 233, 114, 0.2); }
}

.subscribe-cta-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: rgba(200, 233, 114, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8e972;
}

.subscribe-cta-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.subscribe-cta-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 20px;
  line-height: 1.5;
}

.subscribe-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #c8e972, #a8d94a);
  border: none;
  border-radius: 30px;
  color: #0a0a0a;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(200, 233, 114, 0.3);
}

.subscribe-cta-btn:active {
  transform: scale(0.95);
}

.subscribe-cta-price {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 16px 0 0;
}

.subscribe-cta-price strong {
  color: #c8e972;
}

/* Hide subscribe CTA for premium users */
.premium-user .subscribe-cta {
  display: none;
}

/* ApexCharts Customizations */
.apexcharts-tooltip {
  background: rgba(20, 20, 20, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.apexcharts-tooltip-title {
  background: rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.apexcharts-tooltip-text {
  color: rgba(255, 255, 255, 0.8) !important;
}

.apexcharts-xaxis-label,
.apexcharts-yaxis-label {
  fill: rgba(255, 255, 255, 0.5) !important;
}

.apexcharts-gridline {
  stroke: rgba(255, 255, 255, 0.05) !important;
}

.apexcharts-legend-text {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ═══════════════════════════════════════════════════════════════
   SUBSCRIPTION MODAL STYLES
   ═══════════════════════════════════════════════════════════════ */

.subscribe-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.subscribe-modal.active {
  display: flex;
}

.subscribe-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.subscribe-modal-content {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.98), rgba(15, 15, 15, 0.98));
  border: 1px solid rgba(200, 233, 114, 0.2);
  border-radius: 28px;
  padding: 32px 24px;
  animation: modalSlideUp 0.4s ease;
}

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

.subscribe-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.subscribe-modal-close:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.15);
}

.subscribe-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.subscribe-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(200, 233, 114, 0.2), rgba(200, 233, 114, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8e972;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.subscribe-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.subscribe-modal-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Features List */
.subscribe-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.subscribe-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  animation: featureSlide 0.5s ease backwards;
}

.subscribe-feature:nth-child(1) { animation-delay: 0.1s; }
.subscribe-feature:nth-child(2) { animation-delay: 0.15s; }
.subscribe-feature:nth-child(3) { animation-delay: 0.2s; }
.subscribe-feature:nth-child(4) { animation-delay: 0.25s; }
.subscribe-feature:nth-child(5) { animation-delay: 0.3s; }

@keyframes featureSlide {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.subscribe-feature svg {
  color: #c8e972;
  flex-shrink: 0;
}

.subscribe-feature span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Pricing */
.subscribe-pricing {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(200, 233, 114, 0.1), rgba(200, 233, 114, 0.02));
  border: 1px solid rgba(200, 233, 114, 0.15);
  border-radius: 16px;
  margin-bottom: 20px;
}

.subscribe-price-tag {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-amount {
  font-size: 42px;
  font-weight: 800;
  color: #c8e972;
}

.price-period {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.price-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 8px 0 0;
}

/* Verify Section */
.subscribe-verify-section {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-bottom: 20px;
}

.verify-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 12px;
  text-align: center;
}

.verify-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verify-email-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.verify-email-input:focus {
  border-color: rgba(200, 233, 114, 0.5);
}

.verify-email-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.verify-btn {
  padding: 12px 20px;
  background: rgba(200, 233, 114, 0.15);
  border: 1px solid rgba(200, 233, 114, 0.3);
  border-radius: 12px;
  color: #c8e972;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.verify-btn:active {
  transform: scale(0.95);
  background: rgba(200, 233, 114, 0.25);
}

.verify-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.verify-status {
  font-size: 13px;
  text-align: center;
  margin: 12px 0 0;
  min-height: 20px;
}

.verify-status.success {
  color: #c8e972;
}

.verify-status.error {
  color: #fca5a5;
}

.verify-status.loading {
  color: rgba(255, 255, 255, 0.5);
}

/* Subscribe Actions */
.subscribe-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscribe-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-action-btn.primary {
  background: linear-gradient(135deg, #c8e972, #a8d94a);
  color: #0a0a0a;
  box-shadow: 0 4px 20px rgba(200, 233, 114, 0.3);
}

.subscribe-action-btn.primary:active {
  transform: scale(0.97);
}

.subscribe-action-btn.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.subscribe-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin: 8px 0 0;
}

/* Premium User State */
.premium-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(200, 233, 114, 0.2), rgba(200, 233, 114, 0.1));
  border: 1px solid rgba(200, 233, 114, 0.3);
  border-radius: 20px;
  color: #c8e972;
  font-size: 13px;
  font-weight: 600;
}

.premium-active-badge svg {
  width: 16px;
  height: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   AI ANALYSIS STYLES
   ═══════════════════════════════════════════════════════════════ */

.ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 16px;
}

.ai-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(200, 233, 114, 0.2);
  border-top-color: #c8e972;
  border-radius: 50%;
  animation: aiSpin 1s linear infinite;
}

@keyframes aiSpin {
  to { transform: rotate(360deg); }
}

.ai-loading p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0;
}

.ai-result {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.7;
}

.ai-result h2 {
  font-size: 18px;
  font-weight: 700;
  color: #c8e972;
  margin: 0 0 12px;
}

.ai-result h3 {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 20px 0 10px;
}

.ai-result h4 {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 16px 0 8px;
}

.ai-result p {
  margin: 0 0 12px;
}

.ai-result strong {
  color: #c8e972;
  font-weight: 600;
}

.ai-result em {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.ai-result ul {
  margin: 8px 0 16px;
  padding-left: 20px;
}

.ai-result li {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.8);
}

.ai-result li::marker {
  color: #c8e972;
}

.ai-error {
  text-align: center;
  padding: 30px 20px;
}

.ai-error p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin: 0 0 16px;
}

.ai-retry-btn {
  padding: 10px 24px;
  background: rgba(200, 233, 114, 0.15);
  border: 1px solid rgba(200, 233, 114, 0.3);
  border-radius: 20px;
  color: #c8e972;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-retry-btn:active {
  transform: scale(0.95);
  background: rgba(200, 233, 114, 0.25);
}

/* ═══════════════════════════════════════════════════════════════
   PLAN SELECTOR STYLES
   ═══════════════════════════════════════════════════════════════ */

.subscribe-plan-selector {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}

.plan-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.plan-option:active {
  transform: scale(0.97);
}

.plan-option.active {
  background: rgba(200, 233, 114, 0.12);
  border-color: #c8e972;
}

.plan-option-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-option.active .plan-option-name {
  color: #c8e972;
}

.plan-option-price {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.plan-option-price span {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.plan-option.active .plan-option-price {
  color: #ffffff;
}

.plan-option-save {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 20px;
}

.plan-option.active .plan-option-save {
  color: #1a1a1a;
  background: #c8e972;
}

/* ═══════════════════════════════════════════════════════════════
   WHITE NOISE PANEL STYLES
   ═══════════════════════════════════════════════════════════════ */

.white-noise-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.white-noise-panel.active {
  display: flex;
}

.white-noise-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.white-noise-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: 24px 24px 0 0;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

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

.white-noise-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.white-noise-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.white-noise-close {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.white-noise-close:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.15);
}

.white-noise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.sound-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.sound-item:active {
  transform: scale(0.97);
}

.sound-item.cached {
  border-color: rgba(200, 233, 114, 0.2);
}

.sound-item.playing {
  background: rgba(200, 233, 114, 0.15);
  border-color: #c8e972;
}

.sound-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.sound-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sound-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sound-size {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.sound-item.cached .sound-size {
  color: rgba(200, 233, 114, 0.6);
}

.sound-status {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sound-status svg {
  color: rgba(255, 255, 255, 0.4);
}

.sound-download-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.sound-download-progress .progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #c8e972, #a8d94a);
  border-radius: 2px;
  transition: width 0.1s ease;
}

.sound-playing-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.sound-item.playing .sound-playing-indicator {
  display: flex;
}

.sound-item.playing .sound-status {
  display: none;
}

.sound-playing-indicator span {
  width: 3px;
  background: #c8e972;
  border-radius: 2px;
  animation: soundWave 0.8s ease-in-out infinite;
}

.sound-playing-indicator span:nth-child(1) {
  height: 8px;
  animation-delay: 0s;
}

.sound-playing-indicator span:nth-child(2) {
  height: 14px;
  animation-delay: 0.2s;
}

.sound-playing-indicator span:nth-child(3) {
  height: 10px;
  animation-delay: 0.4s;
}

@keyframes soundWave {
  0%, 100% {
    transform: scaleY(0.5);
  }
  50% {
    transform: scaleY(1);
  }
}

.white-noise-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

.volume-control {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.volume-control svg {
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.volume-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #c8e972;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(200, 233, 114, 0.4);
}

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #c8e972;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.stop-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 100, 100, 0.15);
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: 12px;
  color: #ff6b6b;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stop-btn:active {
  transform: scale(0.95);
  background: rgba(255, 100, 100, 0.25);
}

/* Random Mix Card */
.random-mix-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(200, 233, 114, 0.1), rgba(100, 200, 150, 0.08));
  border: 1px solid rgba(200, 233, 114, 0.2);
  border-radius: 20px;
  margin-bottom: 20px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.random-mix-card:active {
  transform: scale(0.98);
}

.mix-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(200, 233, 114, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.random-mix-card.playing .mix-card-glow {
  opacity: 1;
  animation: mixGlowPulse 3s ease-in-out infinite;
}

@keyframes mixGlowPulse {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }
}

.mix-card-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.mix-card-icons {
  font-size: 32px;
  line-height: 1;
  letter-spacing: 4px;
}

.mix-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mix-card-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.mix-card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.mix-play-btn {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border: none;
  background: linear-gradient(135deg, #c8e972, #a8d94a);
  border-radius: 50%;
  color: #0a0a0a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(200, 233, 114, 0.4);
  transition: all 0.2s ease;
}

.mix-play-btn:active {
  transform: scale(0.9);
}

.mix-play-btn svg {
  margin-left: 3px;
}

/* Sound Item Breathing Glow Effect */
.sound-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(200, 233, 114, 0.4) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sound-item.playing .sound-glow {
  opacity: 1;
  animation: breathingGlow 3s ease-in-out infinite;
}

@keyframes breathingGlow {
  0%, 100% {
    transform: scale(0.6);
    opacity: 0.2;
  }
  50% {
    transform: scale(1);
    opacity: 0.5;
  }
}

.sound-item.playing {
  border-color: #c8e972;
  box-shadow: 0 0 20px rgba(200, 233, 114, 0.3);
}

.sound-item.playing .sound-name {
  color: #c8e972;
}

/* ========== 小卡片播放状态 - 毛玻璃遮罩 ========== */
.sound-card {
  position: relative;
  overflow: hidden;
}

.sound-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  border-radius: inherit;
}

.sound-card.playing .sound-card-overlay {
  opacity: 1;
  visibility: visible;
}

.sound-pause-btn {
  width: 56px;
  height: 56px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  transform: scale(0.8);
  opacity: 0;
}

.sound-card.playing .sound-pause-btn {
  transform: scale(1);
  opacity: 1;
}

.sound-pause-btn:active {
  transform: scale(0.9);
}

.sound-pause-btn svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

/* 暂停按钮点击动画 */
.sound-card.stopping .sound-card-overlay {
  animation: overlayFadeOut 0.4s ease forwards;
}

.sound-card.stopping .sound-pause-btn {
  animation: pauseBtnPop 0.3s ease forwards;
}

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

@keyframes overlayFadeOut {
  0% {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
  100% {
    opacity: 0;
    backdrop-filter: blur(0);
    visibility: hidden;
  }
}

/* 波纹扩散效果 */
.sound-card-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 11;
}

/* ========== Hero大卡片状态显示 ========== */
.hero-card-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.hero-card-status.active {
  opacity: 1;
  transform: scale(1);
}

.hero-card-status .status-count {
  font-size: 24px;
  font-weight: 700;
  color: #c8e972;
  line-height: 1;
}

.hero-card-status .status-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* Hero卡片播放状态 */
.hero-card.playing {
  border-color: rgba(200, 233, 114, 0.3);
}

.hero-card.playing::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(200, 233, 114, 0.05);
  pointer-events: none;
  border-radius: inherit;
}

.sound-card-ripple.animate {
  animation: rippleExpand 0.6s ease-out forwards;
}

@keyframes rippleExpand {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(15);
    opacity: 0;
  }
}

/* ========== 自定义下载确认弹框 ========== */
.download-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.download-modal.active {
  opacity: 1;
  visibility: visible;
}

.download-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.download-modal-content {
  position: relative;
  width: 90%;
  max-width: 320px;
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.download-modal.active .download-modal-content {
  transform: scale(1);
}

.download-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(200, 233, 114, 0.15), rgba(200, 233, 114, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-modal-icon svg {
  width: 32px;
  height: 32px;
  stroke: #c8e972;
}

.download-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.download-modal-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 24px;
}

.download-modal-size {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(200, 233, 114, 0.1);
  border-radius: 20px;
  font-size: 13px;
  color: #c8e972;
  margin-bottom: 24px;
}

.download-modal-actions {
  display: flex;
  gap: 12px;
}

.download-modal-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.download-modal-btn.cancel {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.download-modal-btn.confirm {
  background: linear-gradient(135deg, #c8e972, #a8d94a);
  color: #0a0a0a;
}

.download-modal-btn:active {
  transform: scale(0.95);
}

/* ========== 全屏下载加载器 ========== */
.download-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.download-loader.active {
  opacity: 1;
  visibility: visible;
}

.download-loader-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(200, 233, 114, 0.2);
  border-top-color: #c8e972;
  border-radius: 50%;
  animation: loaderSpin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.download-loader-text {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 8px;
}

.download-loader-progress {
  font-size: 14px;
  color: #c8e972;
}

/* ═══ PWA UPDATE BANNER ═══ */
.pwa-update-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
  border-top: 1px solid rgba(200, 233, 114, 0.3);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}
.pwa-update-banner.visible {
  transform: translateY(0);
}
.pwa-update-banner button {
  background: linear-gradient(135deg, #c8e972, #a8d952);
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
