* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #1a1714;
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100dvh;
}

/* --- Utility --- */
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar { display: none; }

/* --- BACKGROUND --- */
.bg-photo {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 430px;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-slides {
  display: flex;
  width: 400%; /* 4 slides: 3 centers + explore */
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.bg-slides img,
.bg-slides .explore-slide {
  width: 25%; /* each slide = 1/4 of container */
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) brightness(0.80) contrast(0.80) sepia(0.35);
  flex-shrink: 0;
}

/* Warm atmospheric tint */
.bg-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(180, 170, 160, 0.25) 0%,
    rgba(170, 162, 155, 0.18) 15%,
    rgba(160, 155, 150, 0.06) 30%,
    transparent 45%
  );
  z-index: 1;
  pointer-events: none;
}

/* Dark overlay — opacity controlled by scroll JS */
.bg-dark-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 430px;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  background: #1c1a17;
  opacity: 0;
  transition: opacity 0.08s linear;
}

/* --- SCROLL CONTAINER --- */
.scroll-container {
  position: relative;
  /* z-index 제거 — stacking context 해제로 backdrop-filter가 fixed 배경 잡음 */
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.status-bar-spacer {
  height: env(safe-area-inset-top, 54px);
  min-height: 54px;
  flex-shrink: 0;
}

/* --- HEADER --- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: calc(env(safe-area-inset-top, 54px) + 12px) 24px 14px;
  background: rgba(42, 38, 34, var(--header-bg, 0));
  transition: background 0.2s ease;
  animation: fadeInUp 0.5s ease-out 0.1s both;
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 88%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 88%);
}

.promo-badge {
  transition: opacity 0.2s ease, background 0.15s;
}

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

.greeting {
  font-size: 32px;
  font-weight: 450;
  letter-spacing: -0.5px;
  color: rgba(255, 255, 255, 0.95);
}

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

/* Liquid Glass (matte) */
.icon-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.0) 50%,
    rgba(255, 255, 255, 0.0) 100%
  );
  backdrop-filter: blur(20px) saturate(1.6) brightness(1.02);
  -webkit-backdrop-filter: blur(20px) saturate(1.6) brightness(1.02);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.28);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.16),
    inset 0 -0.5px 1px rgba(0, 0, 0, 0.05);
}

.icon-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, transparent 30%);
  pointer-events: none;
}

.icon-btn {
  width: 36px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.80);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8a87c, #d4a0c0, #9bb5d4);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.weekdays {
  display: flex;
  gap: 9px;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.30);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.weekdays .active-day {
  color: rgba(255, 255, 255, 0.80);
}

/* Liquid Glass (matte) */
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 16px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  backdrop-filter: blur(16px) saturate(1.5) brightness(1.02);
  -webkit-backdrop-filter: blur(16px) saturate(1.5) brightness(1.02);
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 0.22);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.10),
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    inset 0 -0.5px 1px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.promo-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, transparent 30%);
  pointer-events: none;
}

/* --- HERO AREA --- */
.hero-area {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 280px);
  padding-bottom: 0;
}

.now-for-you {
  padding: 0 24px 16px;
  margin-top: auto;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.now-for-you {
  display: flex;
  align-items: center;
  gap: 0;
}

.page-dots {
  display: flex;
  gap: 5px;
  margin-left: auto;
  padding-right: 4px;
}

.page-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.30);
}

.page-dot.wide {
  width: 18px;
}

.page-dot.active {
  background: rgba(255, 255, 255, 0.85);
}

.now-for-you .sparkle {
  margin-right: 5px;
  font-size: 12px;
  opacity: 1;
}

/* --- TOOL CARDS --- */
.tool-cards {
  display: flex;
  gap: 8px;
  padding: 0 20px;
  margin-bottom: 24px;
  overflow-x: auto;
}

/* Liquid Glass (matte) */
.tool-card {
  flex-shrink: 0;
  width: 155px;
  height: 92px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 22px;
  transition: transform 0.18s ease, opacity 0.2s ease;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.0) 50%,
    rgba(255, 255, 255, 0.0) 100%
  );
  backdrop-filter: blur(3px) saturate(1.6) brightness(1.02);
  -webkit-backdrop-filter: blur(3px) saturate(1.6) brightness(1.02);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-top-color: rgba(255, 255, 255, 0.40);
  border-left-color: rgba(255, 255, 255, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.22);
  border-right-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 2px 18px rgba(0, 0, 0, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    inset 0 -1px 1px rgba(0, 0, 0, 0.06),
    inset 0 0 20px rgba(255, 255, 255, 0.02);
}

/* Liquid Glass: 코너 보더 글로우 */
.tool-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.30) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.25) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.tool-card:active { transform: scale(0.97); }

.tool-card-icon {
  position: relative;
  z-index: 1;
}

.tool-card-icon svg {
  width: 28px;
  height: 28px;
  stroke: rgba(255, 255, 255, 0.55);
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-card-label {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0;
}

/* --- DARK CONTENT SECTION --- */
.dark-section {
  background: transparent;
  position: relative;
  z-index: 2;
  padding-top: 8px;
  opacity: 0;
  transition: opacity 0.15s linear;
}

/* Scroll hint — fades in from top, invisible at 50% */
.scroll-hint {
  position: relative;
  z-index: 3;
  margin: -8px 20px -8px;
  height: 36px;
  border-radius: 18px;
  overflow: hidden;
}

.scroll-hint::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.22);
  border-radius: inherit;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}

/* --- DAILY QUOTE --- */
.quote-section {
  padding: 0 24px 24px;
  position: relative;
  overflow: hidden;
}

.quote-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.quote-moon {
  position: absolute;
  right: -20px;
  top: 20px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 42%, rgba(220, 160, 170, 0.38), rgba(190, 120, 140, 0.18) 50%, transparent 70%);
  filter: blur(2px);
  pointer-events: none;
}

.quote-text {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.1px;
  max-width: 270px;
  margin-bottom: 10px;
}

.quote-attribution {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
}

/* --- CATEGORY CHIPS --- */
.chips-section {
  padding: 0 0 24px;
}

.chips-row {
  display: flex;
  gap: 8px;
  padding: 0 24px;
  overflow-x: auto;
  margin-bottom: 8px;
}

.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #2e2b27;
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.chip:active { background: #3a3632; }

/* --- CONTENT SECTIONS --- */
.content-section {
  padding: 0 0 28px;
}

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

.section-title {
  font-size: 19px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.2px;
}

.section-arrow {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.40);
  cursor: pointer;
}

.content-cards-row {
  display: flex;
  gap: 10px;
  padding: 0 24px;
  overflow-x: auto;
}

.content-card {
  flex-shrink: 0;
  width: 160px;
  border-radius: 16px;
  background: #252220;
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.content-card:active { transform: scale(0.97); }

.content-card-img {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Image placeholder — base ::after */
.content-card-img::after {
  position: absolute;
}

.img-moon-phases {
  background: linear-gradient(135deg, #0a0a12 0%, #1a1628 40%, #2a2040 70%, #141020 100%);
}
.img-moon-phases::after {
  content: '◑ ◐ ● ○';
  font-size: 18px;
  color: rgba(180, 160, 220, 0.45);
  letter-spacing: 4px;
}

.img-teal-burst {
  background: radial-gradient(circle at 50% 50%, #0ed2d2 0%, #0aacb8 30%, #076880 60%, #032a38 100%);
}
.img-teal-burst::after {
  content: '✦';
  font-size: 42px;
  color: rgba(255, 255, 255, 0.60);
}

.img-green-fox {
  background: linear-gradient(160deg, #1a3322 0%, #2a5c38 35%, #3d8048 60%, #2a5c38 100%);
}
.img-green-fox::after {
  content: '🦊';
  font-size: 38px;
}

.img-winter-scene {
  background: linear-gradient(180deg, #2a3545 0%, #3a4d65 40%, #4a6080 70%, #2a3a52 100%);
}
.img-winter-scene::after {
  content: '❄';
  font-size: 36px;
  color: rgba(200, 220, 255, 0.65);
}

.img-earth {
  background: radial-gradient(circle at 42% 45%, #2355a0 0%, #1a3d7a 35%, #0e2050 65%, #060d20 100%);
}
.img-earth::after {
  content: '🌍';
  font-size: 40px;
}

.img-partial {
  background: linear-gradient(135deg, #1e1c28 0%, #2c2840 60%, #1a1824 100%);
}
.img-partial::after {
  content: '✦';
  font-size: 32px;
  color: rgba(160, 140, 200, 0.40);
}

.content-card-body {
  padding: 10px 12px 12px;
}

.content-card-title {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-card-meta {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- PASS UPSELL --- */
.plus-section {
  padding: 0 24px 28px;
}

.plus-card {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(140deg, #b8d8e8 0%, #c8dce8 25%, #d8c8b8 55%, #e8d0a8 80%, #dfc898 100%);
  padding: 24px 22px;
  cursor: pointer;
}

.plus-title {
  font-size: 26px;
  font-weight: 600;
  color: #2c2420;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.plus-title em {
  font-style: italic;
  font-weight: 500;
}

.plus-desc {
  font-size: 13px;
  color: rgba(44, 36, 32, 0.70);
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 240px;
}

.plus-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 22px;
  background: rgba(240, 228, 210, 0.90);
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #2c2420;
  cursor: pointer;
  letter-spacing: -0.1px;
  transition: background 0.15s;
}

.plus-btn:active { background: rgba(230, 215, 194, 1); }

/* --- LIBRARY --- */
.library-section {
  padding: 0 24px 28px;
}

.library-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.library-card {
  border-radius: 16px;
  background: #252220;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s;
}

.library-card:active { transform: scale(0.97); }

.library-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.library-card-icon.meditation {
  background: linear-gradient(135deg, #1e4d2e, #2d7a44);
}

.library-card-icon.soundscape {
  background: linear-gradient(135deg, #2a3d2a, #4a7a3d, #8cb84a);
}

.library-card-label {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

/* --- BOTTOM SHEETS --- */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 200;
  pointer-events: none;
  transition: background 0.3s ease;
  left: 50%;
  transform: translateX(-50%);
  max-width: 430px;
  width: 100%;
}

.sheet-overlay.open {
  background: rgba(0, 0, 0, 0.55);
  pointer-events: all;
}

/* Liquid Glass (matte) */
.bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 28px 28px 0 0;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.2, 0, 0, 1),
              opacity 0.2s ease,
              border-radius 0.38s cubic-bezier(0.2, 0, 0, 1);
  background: linear-gradient(
    180deg,
    rgba(60, 54, 48, 0.75) 0%,
    rgba(42, 38, 34, 0.88) 100%
  );
  backdrop-filter: blur(50px) saturate(1.6) brightness(1.02);
  -webkit-backdrop-filter: blur(50px) saturate(1.6) brightness(1.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.22);
  border-bottom: none;
  box-shadow:
    0 -8px 40px rgba(0, 0, 0, 0.38),
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    inset 0 0 24px rgba(255, 255, 255, 0.02);
  padding: 0 0 calc(24px + env(safe-area-inset-bottom));
  overflow: hidden;
}

.bottom-sheet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.bottom-sheet.open {
  transform: translateY(0);
  opacity: 1;
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.20);
  margin: 12px auto 20px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 18px;
}

.sheet-header-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-header-icon svg {
  width: 17px;
  height: 17px;
  stroke: rgba(255, 255, 255, 0.55);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-title {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.2px;
}

/* Sleep sheet */
.sleep-time-picker {
  text-align: center;
  padding: 0 24px 20px;
  position: relative;
}

.time-drum {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  padding: 8px 0;
}

.time-drum-adjacent {
  font-size: 32px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: -1.5px;
  line-height: 1.4;
  user-select: none;
}

.time-drum-divider {
  width: 160px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 4px 0;
}

.time-display {
  font-size: 58px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: -2px;
  line-height: 1;
}

.time-ampm {
  font-size: 22px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 4px;
}

.time-est {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 10px;
}

/* Nap sheet */
.nap-duration {
  text-align: center;
  padding: 8px 24px 16px;
}

.nap-time-big {
  font-size: 56px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 4px;
}

.nap-ruler {
  display: flex;
  align-items: flex-end;
  gap: 0;
  justify-content: center;
  height: 32px;
  padding: 0 24px;
  margin-bottom: 14px;
  overflow: hidden;
}

.ruler-tick {
  width: 2px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 1px;
  margin: 0 3px;
}
.ruler-tick.tall { height: 22px; }
.ruler-tick.mid  { height: 14px; }
.ruler-tick.short{ height: 8px; }
.ruler-tick.active { background: rgba(255, 255, 255, 0.75); }

.nap-wake {
  text-align: center;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
  padding: 0 24px;
  margin-bottom: 18px;
}

/* Info pills */
.info-pills {
  display: flex;
  gap: 8px;
  padding: 0 24px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.info-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

.info-pill-icon {
  font-size: 14px;
  opacity: 0.8;
}

/* Sheet action buttons (shared base) */
.sheet-action-btn {
  margin: 0 24px;
  width: calc(100% - 48px);
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.sheet-start-btn {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  color: #1a1714;
}
.sheet-start-btn:active { background: rgba(240, 235, 228, 0.95); }

.sheet-download-btn {
  padding: 15px;
  border-radius: 14px;
  background: rgba(235, 225, 208, 0.90);
  font-size: 15px;
  color: #2a2420;
}
.sheet-download-btn:active { background: rgba(222, 210, 190, 0.95); }

/* Breathe sheet */
.breathe-img {
  margin: 0 24px 16px;
  height: 140px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    #1a2a38 0%,
    #2a4050 30%,
    #3a6070 55%,
    #4a80a0 75%,
    #5a9ab8 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.breathe-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 40%, rgba(180, 220, 240, 0.35) 0%, transparent 60%);
}

.breathe-img::after {
  content: '🌊';
  font-size: 44px;
  position: relative;
  z-index: 1;
  filter: saturate(0.7) brightness(1.1);
}

.breathe-label {
  padding: 0 24px 6px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.90);
}

.breathe-label em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.60);
}

.breathe-dots {
  display: flex;
  gap: 5px;
  padding: 0 24px 16px;
}

.breathe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.breathe-dot.active {
  background: rgba(255, 255, 255, 0.80);
}

.breathe-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 18px;
}

.breathe-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8a9ebc, #6a84b0);
  flex-shrink: 0;
}

.breathe-guide-info {
  flex: 1;
}

.breathe-guide-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
}

.breathe-guide-type {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.40);
  margin-top: 2px;
}

.breathe-duration {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* --- TAB BAR --- */
/* Liquid Glass — JS가 custom properties를 동적 제어 */
.tab-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(430px - 40px);
  max-width: calc(100vw - 40px);
  z-index: 100;
  padding: 3px 5px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  --glass-bg: 0.04;
  --glass-brightness: 1.06;
  --glass-contrast: 0.85;
  --glass-border-top: 0.25;
  --glass-border: 0.15;
  --glass-inset: 0.10;
  background: rgba(255, 255, 255, var(--glass-bg));
  backdrop-filter: blur(40px) saturate(1.3) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
  -webkit-backdrop-filter: blur(40px) saturate(1.3) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, var(--glass-border));
  border-top-color: rgba(255, 255, 255, 0.30);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 2px rgba(255, 255, 255, var(--glass-inset)),
    inset 0 -0.5px 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.2, 0, 0, 1), opacity 0.25s ease;
}

.tab-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, transparent 35%);
  pointer-events: none;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 24px;
  border-radius: 30px;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  letter-spacing: 0.2px;
  position: relative;
}

.tab-item.active {
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border: 1px solid transparent;
}

/* Sliding pill indicator behind active tab */
.tab-pill {
  position: absolute;
  top: 3px;
  left: 0;
  height: calc(100% - 6px);
  border-radius: 30px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-bottom-color: rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.10),
    0 1px 6px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  z-index: 0;
  transition: none; /* GSAP handles animation */
}

.tab-item {
  z-index: 1; /* above pill */
}

.tab-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-item.active svg { stroke-width: 2; }

/* --- TAB CONTENT --- */
.tab-content {
  display: none;
  min-height: 100dvh;
  overflow-x: hidden;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
}

/* --- LIGHT THEME (Meditation) --- */
body.theme-light {
  background: #f8f6f3;
}

body.theme-light .tab-bar {
  --glass-bg: 0.65;
  --glass-brightness: 1.02;
  --glass-contrast: 0.95;
  --glass-border-top: 0.08;
  --glass-border: 0.06;
  --glass-inset: 0.04;
  background: rgba(248, 246, 243, var(--glass-bg));
  border-color: rgba(0, 0, 0, 0.06);
  border-top-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.06);
}

body.theme-light .tab-item {
  color: rgba(0, 0, 0, 0.40);
}

body.theme-light .tab-item.active {
  color: rgba(0, 0, 0, 0.85);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body.theme-light .tab-pill {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: none;
}

body.theme-light .tab-bar::after {
  background: none;
}

body.theme-light .header {
  background: rgba(248, 246, 243, var(--header-bg, 0));
}

/* History/Shop: content padding for fixed header */
#tabHistory,
#tabShop {
  padding-top: calc(env(safe-area-inset-top, 54px) + 60px);
}

body.tab-schedule-active {
  background: #fff;
}

body.tab-schedule-active .tab-bar {
  --glass-bg: 0.65;
  --glass-brightness: 1.02;
  --glass-contrast: 0.95;
  --glass-border-top: 0.08;
  --glass-border: 0.06;
  --glass-inset: 0.04;
  background: rgba(248, 246, 243, var(--glass-bg));
  border-color: rgba(0, 0, 0, 0.06);
  border-top-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.06);
}

body.tab-schedule-active .tab-item {
  color: rgba(0, 0, 0, 0.40);
}

body.tab-schedule-active .tab-item.active {
  color: rgba(0, 0, 0, 0.85);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body.tab-schedule-active .tab-pill {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: none;
}

body.tab-schedule-active .tab-bar::after {
  background: none;
}

body.tab-schedule-active .header {
  background: rgba(255, 255, 255, var(--header-bg, 0));
}

body.tab-schedule-active .header .greeting {
  transition: color 0.3s;
}

body.tab-schedule-active .header.scrolled-past-hero .greeting,
body.tab-schedule-active .header.scrolled-past-hero .icon-btn {
  color: rgba(0, 0, 0, 0.80);
}

body.tab-schedule-active .header.scrolled-past-hero .icon-pill {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.tab-schedule-active .header.scrolled-past-hero .icon-pill::before {
  display: none;
}

body.theme-light .header .greeting,
body.theme-light .header .date-display {
  color: rgba(0, 0, 0, 0.80);
}

body.theme-light .header .icon-btn {
  color: rgba(0, 0, 0, 0.50);
}

body.theme-light .header .icon-pill {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.theme-light .header .icon-pill::before {
  display: none;
}

/* --- PAGE HEADER (shared) --- */
.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 54px) + 12px) 24px 20px;
  background: #1a1714;
  -webkit-mask-image: linear-gradient(to bottom, #1c1a17 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #1c1a17 78%, transparent 100%);
}

.page-title {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: rgba(255, 255, 255, 0.95);
}

body.theme-light .page-header {
  background: #f8f6f3;
}

body.theme-light .page-title {
  color: rgba(0, 0, 0, 0.25);
}

body.theme-light .page-header .icon-pill {
  background: linear-gradient(
    165deg,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0.03) 50%,
    rgba(0, 0, 0, 0.04) 100%
  );
  border-color: rgba(0, 0, 0, 0.08);
  border-top-color: rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(0, 0, 0, 0.03);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.60),
    inset 0 -0.5px 1px rgba(0, 0, 0, 0.02);
}

body.theme-light .page-header .icon-btn {
  color: rgba(0, 0, 0, 0.45);
}

body.theme-light .page-header .avatar {
  border-color: rgba(0, 0, 0, 0.08);
}

.header-search-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.60);
  cursor: pointer;
}

body.theme-light .header-search-btn {
  color: rgba(0, 0, 0, 0.35);
}

.header-search-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.plus-avatar-pill {
  display: flex;
  align-items: center;
  gap: 6px;
}

.plus-italic {
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.50);
}

body.theme-light .plus-italic {
  color: rgba(160, 120, 60, 0.60);
}

.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8a87c, #d4a0c0, #9bb5d4);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.inner-section {
  padding: 0 0 24px;
}

.inner-title {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.90);
  padding: 0 24px;
  margin-bottom: 14px;
}

body.theme-light .inner-title {
  color: rgba(0, 0, 0, 0.80);
}

body.theme-light .section-title {
  color: rgba(0, 0, 0, 0.80);
}

/* --- SLEEP TAB --- */
.sleep-hero {
  margin: 0 24px 20px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #0a0a12 0%, #1a1628 30%, #2a2040 60%, #1a1628 100%);
  height: 280px;
}

.sleep-hero-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


.sleep-hero-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.sleep-hero-title {
  font-size: 22px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 4px;
}

.sleep-hero-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
}

.hero-dots {
  display: flex;
  gap: 5px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.30);
}

.hero-dot.wide {
  width: 18px;
}

.hero-dot.active {
  background: rgba(255, 255, 255, 0.85);
}

.play-fab {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* --- SCHEDULE TAB (Tide Sleep 디자인) --- */
.schedule-hero {
  position: relative;
  height: 55dvh;
  overflow: hidden;
  margin: 0 -24px;
}

.schedule-hero-bg {
  position: absolute;
  inset: 0;
}

.schedule-hero-info {
  position: absolute;
  bottom: 36px;
  left: 48px;
}

.schedule-hero-title {
  font-size: 26px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 4px;
}

.schedule-hero-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 10px;
}

.schedule-hero .play-fab {
  position: absolute;
  bottom: 36px;
  right: 24px;
}

.schedule-content {
  background: #fff;
  border-radius: 20px 20px 0 0;
  margin: -20px -24px 0;
  position: relative;
  z-index: 1;
  padding: 24px 32px 0;
}

.schedule-content .segment-bar {
  margin-left: -8px;
  margin-right: -8px;
}

.schedule-content .inner-section {
  background: transparent;
}

.schedule-content .inner-title,
.schedule-content .section-title {
  color: rgba(0, 0, 0, 0.80);
}

.schedule-content .section-arrow {
  color: rgba(0, 0, 0, 0.30);
}

.schedule-content .grid-card-label {
  color: rgba(0, 0, 0, 0.80);
}

.schedule-content .grid-card-type {
  color: rgba(0, 0, 0, 0.35);
}

.schedule-content .segment-bar {
  background: rgba(0, 0, 0, 0.05);
}

.schedule-content .segment-btn {
  color: rgba(0, 0, 0, 0.40);
}

.schedule-content .segment-btn.active {
  background: rgba(0, 0, 0, 0.80);
  color: white;
}

/* Sleep tab: light bottom section */
#tabSleep .segment-bar {
  background: #fff;
  border-radius: 20px 20px 0 0;
  margin-top: -16px;
  position: relative;
  z-index: 1;
  padding-top: 20px;
}

#tabSleep .inner-section {
  background: #fff;
}

#tabSleep .inner-title {
  color: rgba(0, 0, 0, 0.80);
}

#tabSleep .section-title {
  color: rgba(0, 0, 0, 0.80);
}

#tabSleep .section-arrow {
  color: rgba(0, 0, 0, 0.30);
}

#tabSleep .grid-card-label {
  color: rgba(0, 0, 0, 0.80);
}

#tabSleep .grid-card-type {
  color: rgba(0, 0, 0, 0.35);
}

#tabSleep .fav-pill {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

#tabSleep .fav-name {
  color: rgba(0, 0, 0, 0.75);
}

#tabSleep .fav-type {
  color: rgba(0, 0, 0, 0.40);
}

#tabSleep .segment-btn {
  color: rgba(0, 0, 0, 0.40);
}

#tabSleep .segment-btn.active {
  background: rgba(0, 0, 0, 0.80);
  color: white;
}

/* Segment Toggle */
.segment-bar {
  display: flex;
  gap: 0;
  margin: 0 24px 24px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 3px;
}

.segment-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 22px;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.50);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.segment-btn.active {
  background: rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.92);
}

body.theme-light .segment-bar {
  background: rgba(0, 0, 0, 0.05);
}

body.theme-light .segment-btn {
  color: rgba(0, 0, 0, 0.40);
}

body.theme-light .segment-btn.active {
  background: rgba(0, 0, 0, 0.80);
  color: white;
}

/* Sleep Tools */
.sleep-tools {
  display: flex;
  gap: 10px;
  padding: 0 24px;
  overflow-x: auto;
}

.sleep-tool {
  flex-shrink: 0;
  width: 150px;
  height: 100px;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sleep-tool svg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sleep-tool span {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.tool-tracker {
  background: linear-gradient(145deg, #1a2050, #2a3878);
}

.tool-nap {
  background: linear-gradient(145deg, #2a5880, #4a88b8);
}

.tool-journal {
  background: linear-gradient(145deg, #2a3048, #3a4868);
}

/* Favorites */
.favorites-row {
  display: flex;
  gap: 10px;
  padding: 0 24px;
  overflow-x: auto;
}

.fav-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fav-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fav-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
}

.fav-type {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

/* --- 2-COLUMN GRID (shared) --- */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 24px;
}

.grid-card {
  cursor: pointer;
}

.grid-card-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
}

.grid-card-label {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  padding: 0 2px;
}

body.theme-light .grid-card-label {
  color: rgba(0, 0, 0, 0.80);
}

.grid-card-type {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.38);
  padding: 0 2px;
  margin-bottom: 8px;
}

body.theme-light .grid-card-type {
  color: rgba(0, 0, 0, 0.35);
}

.badge-free {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
}

/* Grid image placeholders */
.img-g-ocean { background: linear-gradient(145deg, #88b8d0, #a0c8d8, #80a8c0); }
.img-g-sakura { background: linear-gradient(145deg, #d8a0c0, #e8b8d0, #c890a8); }
.img-g-current { background: linear-gradient(145deg, #40a8b8, #60c0d0, #38a0b0); }
.img-g-boat { background: linear-gradient(145deg, #708898, #8898a8, #607080); }
.img-g-blueberry { background: radial-gradient(circle at 40% 50%, #e8c848, #d04040, #3838d0, #2020a0); }
.img-g-moon { background: linear-gradient(180deg, #4a6080, #6880a0, #2a3a52); }
.img-g-forest { background: linear-gradient(160deg, #2a4a30, #3a6a40, #284828); }
.img-g-beach { background: linear-gradient(145deg, #30a898, #48c8b8, #2090a0); }
.img-g-pink { background: linear-gradient(145deg, #d06080, #e080a0, #c05070); }

/* --- MEDITATION TAB --- */
.med-quote {
  padding: 40px 24px 28px;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin: 0 0 24px;
}

.med-quote-orb {
  position: absolute;
  right: 20px;
  top: 10px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 45%, #c0c8d8, #a0a8b8 60%, transparent 70%);
  opacity: 0.5;
}

.med-quote-text {
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.55);
  max-width: 280px;
  margin-bottom: 10px;
}

.med-quote-attr {
  font-size: 12.5px;
  color: rgba(0, 0, 0, 0.30);
}

/* Category Grid */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 24px;
}

.cat-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.cat-img {
  width: 100%;
  aspect-ratio: 1.3;
  border-radius: 18px;
}

.cat-label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.60);
}

/* Meditation Series */
.med-series-sup {
  font-size: 12.5px;
  color: rgba(0, 0, 0, 0.30);
  padding: 0 24px;
  margin-bottom: 4px;
}

.med-series-title {
  font-size: 22px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.80);
  padding: 0 24px;
  margin-bottom: 14px;
}

.med-series-hero {
  margin: 0 24px;
  height: 200px;
  border-radius: 18px;
}

/* --- SOUND TAB --- */
.snd-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
}

.snd-hero-bg {
  position: absolute;
  inset: 0;
}

.snd-hero-title {
  position: absolute;
  bottom: 52px;
  left: 24px;
  font-size: 28px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.snd-hero-sub {
  position: absolute;
  bottom: 36px;
  left: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.50);
}

.snd-hero .play-fab {
  bottom: 40px;
  right: 24px;
}

/* Tab accent colors */
body.tab-sleep .tab-item.active {
  color: #60a5fa;
}

body.tab-meditation .tab-item.active {
  color: #f59e0b;
}

body.tab-sound .tab-item.active {
  color: #4ade80;
}

/* Filter Chips */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  overflow-x: auto;
  background: #f8f6f3;
  border-radius: 20px 20px 0 0;
  margin-top: -16px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.filter-chip {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: white;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.60);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.filter-chip.active {
  background: #1a1714;
  color: white;
  border-color: transparent;
  box-shadow: none;
}

/* Sound Featured */
.snd-featured-sup {
  font-size: 12.5px;
  color: rgba(0, 0, 0, 0.30);
  padding: 0 24px;
  margin-bottom: 4px;
}

.snd-featured-title {
  font-size: 22px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.80);
  padding: 0 24px;
  margin-bottom: 12px;
}

.snd-featured-card {
  margin: 0 24px;
  height: 200px;
  border-radius: 18px;
}

.snd-featured-caption {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.35);
  padding: 8px 24px 0;
}

/* Sound tab uses light bg below hero */
#tabSound .inner-section .inner-title,
#tabSound .inner-section .section-title {
  color: rgba(0, 0, 0, 0.80);
}

#tabSound .grid-card-label {
  color: rgba(0, 0, 0, 0.80);
}

#tabSound .grid-card-type {
  color: rgba(0, 0, 0, 0.35);
}

#tabSound .inner-section {
  background: #f8f6f3;
  padding-top: 20px;
}

#tabSound .section-header {
  padding: 0 24px;
  margin-bottom: 14px;
}

#tabSound .section-title {
  color: rgba(0, 0, 0, 0.80);
}

#tabSound .section-arrow {
  color: rgba(0, 0, 0, 0.30);
}

/* --- ANIMATIONS --- */
/* --- EXPLORE SLIDE --- */
.explore-slide {
  height: 100%;
  flex-shrink: 0;
  background: linear-gradient(160deg, #2a3a3a 0%, #3a5a5a 30%, #4a6a6a 60%, #3a4a4a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.explore-dot {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.30);
}

.explore-dot.active {
  background: rgba(255, 255, 255, 0.70) !important;
  border-color: rgba(255, 255, 255, 0.50);
}

/* --- THEME SHEET --- */
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 24px 24px;
}

.theme-option {
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.theme-option.active {
  border-color: rgba(255, 255, 255, 0.60);
}

.theme-preview {
  width: 100%;
  aspect-ratio: 1.4;
  border-radius: 14px;
}

.theme-label {
  display: block;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.70);
}

.theme-option.active .theme-label {
  color: rgba(255, 255, 255, 0.95);
}

/* --- PREVIEW SHEETS --- */
.preview-list {
  padding: 0 24px 16px;
}

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

.preview-item:last-child {
  border-bottom: none;
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.preview-time {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.70);
  width: 36px;
  flex-shrink: 0;
}

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

.preview-item-title {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2px;
}

.preview-item-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.40);
}

.preview-book-btn {
  padding: 6px 14px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

/* --- STREAK HEATMAP --- */
.streak-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 24px;
}

.streak-badge {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 12px;
  border-radius: 12px;
}

.streak-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 0 24px;
  margin-bottom: 6px;
}

.streak-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.25);
}

.streak-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 0 24px;
  margin-bottom: 12px;
}

.streak-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
}

.streak-cell.empty {
  background: transparent;
}

.streak-cell.l0 { background: rgba(0, 0, 0, 0.04); }
.streak-cell.l1 { background: #c8e0d8; }
.streak-cell.l2 { background: #7abca8; }
.streak-cell.l3 { background: #3a9a82; }

.streak-cell.today {
  box-shadow: 0 0 0 2px #3a9a82, 0 0 0 4px rgba(58, 154, 130, 0.20);
}

.streak-cell.future {
  background: transparent;
  border: 1px dashed rgba(0, 0, 0, 0.08);
}

.streak-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 0 24px;
}

.streak-legend-label {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.25);
  margin: 0 2px;
}

.streak-cell-sm {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.streak-cell-sm.l0 { background: rgba(0, 0, 0, 0.04); }
.streak-cell-sm.l1 { background: #c8e0d8; }
.streak-cell-sm.l2 { background: #7abca8; }
.streak-cell-sm.l3 { background: #3a9a82; }

/* --- EXPLORE CONTENT --- */
.explore-content {
  padding-top: 20px;
  display: none;
  pointer-events: none;
}

.explore-content.visible {
  display: block;
  pointer-events: auto;
}

.explore-header {
  padding: 0 24px 28px;
}

.explore-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 8px;
}

.explore-subtitle {
  font-size: 22px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.90);
  letter-spacing: -0.3px;
}

/* --- DATE DISPLAY --- */
.date-display {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.70);
  font-weight: 400;
}

/* --- PROFILE BOTTOM SHEET --- */
.profile-top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px 16px;
}

.profile-icons {
  display: flex;
  gap: 4px;
}

.profile-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px 24px;
}

.profile-name {
  font-size: 26px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 4px;
}

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

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8a87c, #d4a0c0, #9bb5d4);
  flex-shrink: 0;
}

.profile-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 24px 18px;
}

.profile-action-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
  cursor: pointer;
}

.profile-menu {
  padding: 0 24px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.80);
  cursor: pointer;
}

.profile-menu-arrow {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.30);
  font-size: 18px;
}

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