/* =====================================================
   INNER GUIDE — Mobile App Design System
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg:           #F5EFE0;
  --bg2:          #EDE4CC;
  --card:         #FAF6EC;
  --card2:        #F2EAD6;
  --card3:        #E8DEC8;

  --green-dark:   #2B3525;
  --green:        #3D5235;
  --green-mid:    #546B48;
  --green-btn:    #4A6B42;
  --green-light:  #8FAA7E;
  --green-pale:   #D4E4CA;

  --brown-dark:   #4A3220;
  --brown:        #7A5C40;
  --brown-light:  #A88060;
  --brown-pale:   #D4B898;

  --gold:         #C4985A;
  --gold-light:   #D4B070;
  --gold-pale:    #EED9A8;
  --gold-wash:    #F8F0DC;

  --text:         #2B3525;
  --text-mid:     #4D5A44;
  --text-muted:   #8A8070;
  --text-faint:   #B0A898;

  --border:       rgba(139,120,80,0.18);
  --border2:      rgba(139,120,80,0.10);

  --shadow-sm:    0 2px 8px rgba(43,53,37,0.07);
  --shadow-md:    0 6px 24px rgba(43,53,37,0.11);
  --shadow-lg:    0 16px 48px rgba(43,53,37,0.16);
  --shadow-card:  0 4px 16px rgba(43,53,37,0.09);

  --font-serif:   'Playfair Display', Georgia, serif;
  --font-elegant: 'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;

  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-2xl:  36px;
  --r-full: 999px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h:    62px;
  --status-h: 44px;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  background: #2B3525;
  color: var(--text);
  overflow: hidden;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── Desktop Background ─────────────────────────────── */
.desktop-bg {
  position: fixed; inset: 0; z-index: 0;
  background: url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1800&q=80') center/cover;
}
.desktop-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(43,53,37,0.72) 0%, rgba(74,50,32,0.65) 100%);
}

/* ── Phone Shell ────────────────────────────────────── */
.phone {
  position: relative; z-index: 10;
  width: 390px;
  height: min(844px, calc(100svh - 40px));
  background: var(--bg);
  border-radius: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 0 0 10px rgba(0,0,0,0.35),
    0 0 0 11px rgba(255,255,255,0.06),
    0 40px 100px rgba(0,0,0,0.60),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Dynamic island / notch */
.phone-notch {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 126px; height: 34px;
  background: #0A0A0A;
  border-radius: 0 0 22px 22px;
  z-index: 200;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 16px; gap: 6px;
}
.phone-notch-cam {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #1A1A1A;
  border: 2px solid #2A2A2A;
}
.phone-notch-cam::after {
  content: '';
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #0D2040;
  margin: 2px auto 0;
}

/* Status bar */
.status-bar {
  height: var(--status-h);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 28px 8px;
  flex-shrink: 0;
  position: relative; z-index: 10;
}
.status-time {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text);
}
.status-bar.light-status .status-time,
.status-bar.light-status .status-icons { color: rgba(255,255,255,0.92); }

/* Page inner scroll area */
.page-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.page-scroll::-webkit-scrollbar { display: none; }

/* Bottom nav */
.bottom-nav {
  height: var(--nav-h);
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-items {
  display: flex;
  width: 100%;
  align-items: center;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: pointer;
}
.nav-item.active { color: var(--green-btn); }
.nav-icon { font-size: 1.25rem; line-height: 1; }
.nav-label { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.03em; }
.nav-item.active .nav-icon { transform: translateY(-1px); }

/* ── Page Header ────────────────────────────────────── */
.page-header {
  padding: 6px 22px 14px;
}
.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.back-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  background: var(--card2);
  color: var(--green);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.back-btn:hover { background: var(--card3); }
.page-title-sm {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.header-icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: var(--card2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer;
  transition: background 0.2s;
  color: var(--text-mid);
}
.header-icon-btn:hover { background: var(--card3); }
.header-icon-btn.filled { background: var(--green-pale); color: var(--green-btn); }

/* ── Typography ─────────────────────────────────────── */
.t-display {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 500;
  line-height: 1.2; color: var(--text);
}
.t-h1 {
  font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 500;
  line-height: 1.25; color: var(--text);
}
.t-h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem; font-weight: 500;
  line-height: 1.3; color: var(--text);
}
.t-h3 {
  font-family: var(--font-serif);
  font-size: 1rem; font-weight: 500;
  color: var(--text);
}
.t-label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
}
.t-body { font-size: 0.875rem; line-height: 1.65; color: var(--text-mid); }
.t-caption { font-size: 0.75rem; color: var(--text-muted); }
.t-muted { color: var(--text-muted); }
.t-green { color: var(--green-btn); }
.t-gold { color: var(--gold); }
.t-serif { font-family: var(--font-serif); }
.t-elegant { font-family: var(--font-elegant); }
.t-italic { font-style: italic; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
}
.btn-primary {
  background: var(--green-btn);
  color: #fff;
  box-shadow: 0 4px 16px rgba(74,107,66,0.35);
}
.btn-primary:hover { background: var(--green); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(74,107,66,0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
}
.btn-outline:hover { background: var(--card2); }

.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 16px rgba(196,152,90,0.35);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-sm { padding: 9px 18px; font-size: 0.8rem; }
.btn-xs { padding: 6px 14px; font-size: 0.72rem; }
.btn-full { width: 100%; }
.btn-icon {
  width: 44px; height: 44px; padding: 0;
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Cards ──────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.card-parchment {
  background: var(--card2);
  border: 1px solid var(--border);
}
.card-dark {
  background: var(--green-dark);
  border: none;
  color: var(--green-pale);
}

/* Program card (2-col grid) */
.program-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-card);
}
.program-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.5s var(--ease-out);
}
.program-card:hover .program-card-bg,
.program-card:active .program-card-bg { transform: scale(1.05); }
.program-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    0deg,
    rgba(43,53,37,0.80) 0%,
    rgba(43,53,37,0.20) 55%,
    transparent 100%
  );
}
.program-card-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px;
  color: #fff;
}
.program-card-title {
  font-family: var(--font-serif);
  font-size: 0.9rem; font-weight: 600;
  line-height: 1.2; margin-bottom: 3px;
}
.program-card-days { font-size: 0.7rem; opacity: 0.85; font-weight: 500; }
.program-card-heart {
  position: absolute; top: 9px; right: 9px;
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: #fff;
  cursor: pointer; transition: all 0.2s;
}
.program-card-heart.liked { background: rgba(232,100,90,0.4); color: #ff6b6b; }
.program-card-heart:hover { background: rgba(255,255,255,0.28); }

/* Daily Guide card */
.daily-guide-card {
  background: var(--card);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.daily-guide-card::before {
  content: '';
  position: absolute; right: -20px; top: -20px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(196,152,90,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.daily-guide-text {
  font-family: var(--font-elegant);
  font-size: 1.05rem; font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  padding-right: 28px;
}
.daily-guide-heart {
  position: absolute; bottom: 14px; right: 14px;
  color: var(--brown-light); font-size: 1.1rem;
  cursor: pointer; transition: all 0.2s;
}
.daily-guide-heart.liked { color: #E86060; }
.daily-guide-heart:hover { transform: scale(1.2); }

/* Category tile */
.cat-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 7px;
  cursor: pointer;
  flex-shrink: 0;
  width: 68px;
  transition: transform 0.2s;
}
.cat-item:active { transform: scale(0.92); }
.cat-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.cat-item.active .cat-icon-wrap { background: var(--green-btn); border-color: var(--green-btn); }
.cat-item:hover .cat-icon-wrap { background: var(--card2); }
.cat-label {
  font-size: 0.58rem; font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}
.cat-item.active .cat-label { color: var(--green-btn); }

/* Ritual card (horizontal scroll) */
.ritual-scroll-card {
  width: 120px; flex-shrink: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.ritual-scroll-img {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.ritual-scroll-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(43,53,37,0.75) 0%, transparent 55%);
}
.ritual-scroll-title {
  position: absolute; bottom: 10px; left: 10px; right: 10px;
  font-family: var(--font-serif);
  font-size: 0.72rem; font-weight: 500;
  color: #fff; line-height: 1.3;
}

/* ── Progress bar ───────────────────────────────────── */
.progress-bar {
  width: 100%; height: 5px;
  background: var(--bg2);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-btn), var(--green-light));
  border-radius: var(--r-full);
  transition: width 1.2s var(--ease-out);
}

/* ── Stat row ───────────────────────────────────────── */
.stat-col {
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  flex: 1;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 600;
  color: var(--green-dark); line-height: 1;
}
.stat-label-sm { font-size: 0.65rem; color: var(--text-muted); font-weight: 500; text-align: center; line-height: 1.3; }
.stat-divider {
  width: 1px; background: var(--border); align-self: stretch;
}

/* ── Breathing animation ────────────────────────────── */
.breath-scene {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 1;
  overflow: hidden;
}
.breath-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.breath-bg-overlay {
  position: absolute; inset: 0;
  background: rgba(43,53,37,0.50);
}
.breath-ring-outer {
  position: relative;
  width: 200px; height: 200px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.breath-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.20);
  animation: breathRing 8s ease-in-out infinite;
}
.breath-ring:nth-child(2) { inset: -14px; animation-delay: -2.5s; opacity: 0.5; }
.breath-ring:nth-child(3) { inset: -28px; animation-delay: -5s; opacity: 0.25; }
.breath-circle {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, rgba(255,255,255,0.25), rgba(196,152,90,0.40));
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.30);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 40px rgba(196,152,90,0.25), inset 0 0 20px rgba(255,255,255,0.08);
}
.breath-circle.inhale { animation: breathIn var(--breath-in, 4s) ease-in forwards; }
.breath-circle.exhale { animation: breathOut var(--breath-out, 6s) ease-out forwards; }
.breath-phase {
  font-family: var(--font-elegant);
  font-size: 0.95rem; font-weight: 400; font-style: italic;
  color: rgba(255,255,255,0.90);
  letter-spacing: 0.04em;
}
.breath-count {
  font-family: var(--font-serif);
  font-size: 1.8rem; font-weight: 600;
  color: #fff; line-height: 1;
}
.breath-unit { font-size: 0.65rem; color: rgba(255,255,255,0.75); font-weight: 500; letter-spacing: 0.06em; }

@keyframes breathRing {
  0%, 100% { transform: scale(0.95); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.1; }
}
@keyframes breathIn {
  0% { transform: scale(1); }
  100% { transform: scale(1.38); box-shadow: 0 0 60px rgba(196,152,90,0.50); }
}
@keyframes breathOut {
  0% { transform: scale(1.38); }
  100% { transform: scale(1); }
}

/* ── Audio Player ───────────────────────────────────── */
.player-bar {
  background: var(--green-dark);
  border-radius: var(--r-xl);
  padding: 14px 18px;
  color: var(--green-pale);
}
.player-track {
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  cursor: pointer; margin: 10px 0;
  position: relative;
}
.player-track-fill {
  height: 100%;
  background: var(--gold);
  border-radius: var(--r-full);
  transition: width 0.3s linear;
}
.player-controls {
  display: flex; align-items: center;
  justify-content: center; gap: 16px;
}
.player-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  color: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
  font-size: 0.85rem;
}
.player-btn:hover { background: rgba(255,255,255,0.18); }
.player-btn-play {
  width: 50px; height: 50px; font-size: 1rem;
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 14px rgba(196,152,90,0.40);
}
.player-btn-play:hover { background: var(--gold-light); transform: scale(1.06); }

/* Sound type buttons */
.sound-type-btn {
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  color: var(--green-pale);
  font-size: 0.75rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.sound-type-btn.active, .sound-type-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ── Toggle ─────────────────────────────────────────── */
.toggle-switch {
  position: relative; width: 42px; height: 24px; flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute; inset: 0;
  background: var(--card3);
  border-radius: var(--r-full);
  cursor: pointer; transition: all 0.3s;
}
.toggle-track::before {
  content: '';
  position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s var(--ease-spring);
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.toggle-switch input:checked + .toggle-track { background: var(--green-btn); }
.toggle-switch input:checked + .toggle-track::before { transform: translateX(18px); }

/* ── Menu row (profile/settings) ───────────────────── */
.menu-row {
  display: flex; align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border2);
  cursor: pointer;
  transition: opacity 0.15s;
}
.menu-row:last-child { border-bottom: none; }
.menu-row:active { opacity: 0.7; }
.menu-row-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--card2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.menu-row-info { flex: 1; }
.menu-row-title { font-size: 0.875rem; font-weight: 500; color: var(--text); }
.menu-row-desc { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
.menu-row-arrow { color: var(--text-faint); font-size: 0.8rem; }

/* ── Section header ─────────────────────────────────── */
.section-hd {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.see-all {
  font-size: 0.75rem; font-weight: 500;
  color: var(--green-btn);
  cursor: pointer; transition: opacity 0.2s;
}
.see-all:hover { opacity: 0.75; }

/* ── Form ───────────────────────────────────────────── */
.field-label {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 7px;
}
.field-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.9rem; color: var(--text);
  outline: none; transition: border-color 0.2s;
}
.field-input:focus { border-color: var(--green-mid); }
.field-input::placeholder { color: var(--text-faint); }
.field-textarea {
  resize: none; min-height: 130px; line-height: 1.7;
}

/* ── Tags / Badges ──────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--card2);
  border: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 500;
  color: var(--text-mid);
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.chip.active {
  background: var(--green-btn);
  border-color: var(--green-btn);
  color: #fff;
}
.chip:hover:not(.active) { background: var(--card3); }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-size: 0.62rem; font-weight: 700;
}
.badge-green { background: var(--green-pale); color: var(--green-btn); }
.badge-gold  { background: var(--gold-pale); color: var(--brown-dark); }

/* ── Horizontal scroll row ──────────────────────────── */
.h-scroll {
  display: flex; gap: 10px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.h-scroll::-webkit-scrollbar { display: none; }

/* ── Divider ────────────────────────────────────────── */
.divider { height: 1px; background: var(--border2); margin: 8px 0; }

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.anim-up { animation: fadeUp 0.5s var(--ease-out) both; }
.anim-up-1 { animation-delay: 0.07s; }
.anim-up-2 { animation-delay: 0.14s; }
.anim-up-3 { animation-delay: 0.21s; }
.anim-up-4 { animation-delay: 0.28s; }
.anim-up-5 { animation-delay: 0.35s; }
.float { animation: floatBob 5s ease-in-out infinite; }

/* ── Utility ────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-14 { gap: 14px; }
.gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.px-22 { padding-left: 22px; padding-right: 22px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }
.mt-4  { margin-top: 4px; }  .mt-6  { margin-top: 6px; }
.mt-8  { margin-top: 8px; }  .mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; } .mt-28 { margin-top: 28px; }
.mb-4  { margin-bottom: 4px; }  .mb-6  { margin-bottom: 6px; }
.mb-8  { margin-bottom: 8px; }  .mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; } .mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }

/* ── Welcome page (no phone frame) ─────────────────── */
body.welcome-page {
  overflow: hidden;
  background: #1A2010;
}
.welcome-phone .phone {
  /* same phone styling */
}

/* ── Botanical decorations (CSS) ────────────────────── */
.botanical-corner {
  position: absolute;
  pointer-events: none;
  opacity: 0.18;
  font-size: 3.5rem;
  color: var(--green-mid);
  line-height: 1;
}

/* ── Modal overlay ──────────────────────────────────── */
.modal-bg {
  position: absolute; inset: 0; z-index: 150;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-bg.open { opacity: 1; pointer-events: all; }
.modal-sheet {
  width: 100%; background: var(--card);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
  max-height: 85%;
  overflow-y: auto;
}
.modal-bg.open .modal-sheet { transform: translateY(0); }
.modal-handle {
  width: 36px; height: 4px; border-radius: var(--r-full);
  background: var(--card3); margin: 0 auto 16px;
}

/* ── Toast ──────────────────────────────────────────── */
#toast {
  position: absolute; bottom: 80px; left: 50%; z-index: 300;
  transform: translateX(-50%) translateY(10px);
  background: var(--green-dark); color: var(--green-pale);
  padding: 10px 20px; border-radius: var(--r-full);
  font-size: 0.8rem; font-weight: 500;
  white-space: nowrap; opacity: 0;
  transition: all 0.3s var(--ease-spring);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Full real-mobile fallback ──────────────────────── */
@media (max-width: 430px) {
  body { background: var(--bg); display: block; overflow: auto; }
  .desktop-bg { display: none; }
  .phone {
    width: 100%; height: 100svh;
    border-radius: 0;
    box-shadow: none;
  }
  .phone-notch { display: none; }
  .status-bar { padding-top: env(safe-area-inset-top, 0); }
}
