/* ═══════════════════════════════════════════════════════════
   DAR SAKKINAH STRESS TRACKER — COMPLETE DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  --bg:          #F8FAFC;
  --bg2:         #F1F5F9;
  --card:        #FFFFFF;
  --card2:       #FBFDFF;
  --border:      #E2E8F0;

  --primary:     #1D4ED8;
  --primary-dk:  #1E40AF;
  --primary-lt:  #93C5FD;

  --secondary:   #60A5FA;
  --secondary-dk:#3B82F6;

  --accent:      #93C5FD;

  --text:        #0F172A;
  --muted:       #475569;
  --light:       #94A3B8;

  --s-low:       #10B981;
  --s-mod:       #F59E0B;
  --s-high:      #EF4444;

  --g-primary:   linear-gradient(135deg, #1D4ED8, #1E40AF);
  --g-secondary: linear-gradient(135deg, #60A5FA, #3B82F6);
  --g-calm:      linear-gradient(135deg, #93C5FD, #60A5FA);
  --g-hero:      linear-gradient(160deg, #1E3A8A 0%, #2563EB 40%, #60A5FA 100%);
  --g-dark:      linear-gradient(160deg, #0F172A, #1E293B);

  --shadow-sm:  0 1px 3px rgba(15,23,42,.05), 0 1px 2px rgba(15,23,42,.03);
  --shadow-md:  0 4px 12px rgba(15,23,42,.08);
  --shadow-lg:  0 12px 24px rgba(15,23,42,.12);

  --r-sm:   8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-f:  999px;

  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;

  --nav-h: 72px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; font-family: 'Nunito', -apple-system, system-ui, sans-serif; color: var(--text); background: #D5CFC5; overflow: hidden; }

/* ─── APP SHELL ─────────────────────────────────────────────── */
#app {
  position: relative;
  width: 100%; max-width: 430px;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 60px rgba(0,0,0,.2);
}

/* ─── SCREENS ───────────────────────────────────────────────── */
.screen {
  position: absolute; inset: 0;
  display: none; flex-direction: column;
  background: var(--bg);
  will-change: transform;
  height: 100%;
}
.screen.active { display: flex; animation: fadeIn .3s var(--ease); }
.sub-screen.active { animation: slideIn .35s var(--ease); z-index: 20; }

@keyframes fadeIn  { from { opacity: 0; }                          to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); opacity:.8; } to { transform: none; opacity: 1; } }

/* ─── SCROLLABLE CONTENT ────────────────────────────────────── */
.screen-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  padding: var(--sp-md) var(--sp-md) calc(var(--nav-h) + var(--sp-xl)) var(--sp-md);
}
.sub-scroll { padding-bottom: var(--sp-xl); }

/* ─── BOTTOM NAVIGATION ─────────────────────────────────────── */
.bottom-nav {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.05);
  z-index: 100;
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; cursor: pointer; padding: var(--sp-sm) var(--sp-xs);
  position: relative;
}
.nav-btn::after {
  content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 32px; border-radius: 12px;
  background: transparent; transition: background .25s var(--ease);
}
.nav-btn.active::after { background: rgba(29, 78, 216, 0.08); }
.nav-ico { font-size: 22px; position: relative; z-index: 1; transition: transform .2s; }
.nav-btn.active .nav-ico { transform: scale(1.1); }
.nav-lbl { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .3px; transition: color .2s; }
.nav-btn.active .nav-lbl { color: var(--primary); }

/* ─── SUBSCREEN HEADER ──────────────────────────────────────── */
.sub-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--sp-md) + env(safe-area-inset-top)) var(--sp-md) var(--sp-md);
  background: var(--bg); border-bottom: 1.5px solid var(--border);
  min-height: 64px; flex-shrink: 0;
}
.sub-hdr-light { background: transparent; border-bottom-color: rgba(255,255,255,.15); }
.sub-hdr-dark  { background: transparent; border-bottom-color: rgba(255,255,255,.12); }
.sub-title { font-size: 17px; font-weight: 800; }
.sub-title-light, .sub-title-dark { color: white; }
.back-btn {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: var(--card2); border: none; border-radius: var(--r-f);
  font-size: 24px; color: var(--text); cursor: pointer; font-weight: 300; line-height: 1;
}
.back-btn-light { background: rgba(255,255,255,.2); color: white; }
.back-btn-dark  { background: rgba(255,255,255,.12); color: white; }
.save-action { background: none; border: none; font: 700 15px 'Nunito',sans-serif; color: var(--primary); cursor: pointer; padding: 8px; }
.step-lbl { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ─── TYPOGRAPHY ────────────────────────────────────────────── */
h1 { font-size: 28px; font-weight: 900; line-height: 1.1; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p  { line-height: 1.6; }

/* ─── PAGE HEADER ───────────────────────────────────────────── */
.page-hdr { padding: calc(var(--sp-lg) + env(safe-area-inset-top)) 0 var(--sp-md); }
.page-title { font-size: 26px; font-weight: 900; margin-bottom: 4px; }
.page-sub { font-size: 14px; color: var(--muted); }

/* ─── SECTION HEADER ────────────────────────────────────────── */
.sec-hdr { margin: var(--sp-lg) 0 var(--sp-sm); }
.sec-title { font-size: 16px; font-weight: 800; color: var(--text); }

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-sm);
  padding: 14px 24px; border-radius: var(--r-f); border: none;
  font: 700 15px 'Nunito',sans-serif; cursor: pointer;
  transition: all .22s var(--ease); text-decoration: none; user-select: none; white-space: nowrap;
}
.btn-primary { background: var(--g-primary); color: #fff; box-shadow: 0 4px 16px rgba(74,124,89,.35); }
.btn-primary:active { transform: scale(.97); box-shadow: 0 2px 8px rgba(74,124,89,.25); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:active { transform: scale(.97); }
.btn-outline-light { background: rgba(255,255,255,.15); color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-outline-dark  { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); border: 2px solid rgba(255,255,255,.3); }
.btn-light { background: rgba(255,255,255,.9); color: var(--primary-dk); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-full { width: 100%; }
.btn-link { background: none; border: none; font: 600 14px 'Nunito',sans-serif; color: var(--muted); cursor: pointer; padding: 10px; text-align: center; display: block; }
.btn-link-dark { background: none; border: none; font: 600 14px 'Nunito',sans-serif; color: rgba(255,255,255,.5); cursor: pointer; padding: 10px; }

/* ─── INPUTS ────────────────────────────────────────────────── */
.input-field {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--border); border-radius: var(--r-md);
  background: var(--card); font: 15px 'Nunito',sans-serif; color: var(--text);
  outline: none; transition: border-color .2s; resize: vertical;
}
.input-field:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(107,143,113,.14); }
.input-field::placeholder { color: var(--light); }

/* ─── EMPTY STATE ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: var(--sp-xl) var(--sp-lg); }
.empty-ico { font-size: 52px; margin-bottom: var(--sp-md); }
.empty-ttl { font-size: 18px; font-weight: 700; margin-bottom: var(--sp-sm); }
.empty-dsc { font-size: 14px; color: var(--muted); margin-bottom: var(--sp-lg); line-height: 1.7; }

/* ─── SHARED RING CHART ─────────────────────────────────────── */
.stress-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--border); stroke-width: 9; }
.ring-fill  { fill: none; stroke: var(--primary); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease), stroke .5s; }
.ring-secondary { stroke: var(--secondary); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-score { font-size: 26px; font-weight: 900; color: var(--text); line-height: 1; }
.ring-score-sm { font-size: 20px; }
.ring-unit  { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }

/* ─── TOAST ─────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 20px); left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--text); color: #fff; padding: 12px 22px;
  border-radius: var(--r-f); font-size: 14px; font-weight: 700;
  opacity: 0; transition: all .28s var(--ease); z-index: 999; white-space: nowrap;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── MODALS ────────────────────────────────────────────────── */
.modal-bg {
  position: fixed; inset: 0; background: rgba(28,43,36,.55);
  backdrop-filter: blur(6px); display: none; align-items: flex-end; justify-content: center;
  z-index: 500; padding: var(--sp-md);
}
.modal-bg.active { display: flex; animation: fadeIn .25s var(--ease); }
.modal-sheet {
  background: var(--card); border-radius: var(--r-xl) var(--r-xl) var(--r-lg) var(--r-lg);
  padding: var(--sp-sm) var(--sp-lg) calc(var(--sp-lg) + env(safe-area-inset-bottom));
  width: 100%; max-width: 420px; max-height: 88vh; overflow-y: auto;
  animation: sheetUp .3s var(--ease);
}
@keyframes sheetUp { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-grip { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 8px auto var(--sp-lg); }
.modal-ttl-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-lg); }
.modal-ttl { font-size: 18px; font-weight: 800; }
.modal-close { width: 32px; height: 32px; background: var(--card2); border: none; border-radius: var(--r-f); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ─── UTILITIES ─────────────────────────────────────────────── */
.mb-md { margin-bottom: var(--sp-md) !important; }
.mb-sm { margin-bottom: var(--sp-sm) !important; }

/* ════════════════════════════════════════════════════════════
   ONBOARDING
   ════════════════════════════════════════════════════════════ */
.onboarding-wrap {
  flex: 1; display: flex; flex-direction: column;
  background: linear-gradient(160deg, #F8FAFC 0%, #E0E7FF 100%);
  padding: calc(var(--sp-xl) + env(safe-area-inset-top)) var(--sp-lg) 0;
}
.onboarding-slides { flex: 1; position: relative; }
.onboard-slide {
  display: none; flex-direction: column; align-items: center; text-align: center;
  padding-top: var(--sp-md);
}
.onboard-slide.active { display: flex; animation: fadeIn .4s var(--ease); }
.onboard-visual { position: relative; margin-bottom: var(--sp-xl); }
.onboard-orb {
  width: 150px; height: 150px; border-radius: var(--r-f);
  background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  animation: floatBob 3s ease-in-out infinite; position: relative; z-index: 1;
}
.onboard-halo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 200px; height: 200px; border-radius: var(--r-f);
  background: rgba(255,255,255,.06); animation: haloPulse 3s ease-in-out infinite;
}
@keyframes floatBob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes haloPulse{ 0%,100%{transform:translate(-50%,-50%) scale(1);opacity:.6} 50%{transform:translate(-50%,-50%) scale(1.12);opacity:.3} }
.onboard-emoji { font-size: 68px; }
.onboard-logo-img { width: 90px; height: 90px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)); }
.onboard-brand { font-size: 30px; font-weight: 900; color: var(--primary); margin-bottom: 4px; }
.onboard-tagline { font-size: 16px; color: var(--muted); font-weight: 500; margin-bottom: var(--sp-lg); }
.onboard-desc { font-size: 15px; color: var(--text); opacity: .8; line-height: 1.7; max-width: 300px; }
.onboard-input { margin-top: var(--sp-lg); max-width: 280px; background: rgba(255,255,255,.9); text-align: center; }
.onboard-footer { padding: var(--sp-lg) 0 calc(var(--sp-xl) + env(safe-area-inset-bottom)); }
.onboard-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: var(--sp-lg); }
.dot { width: 8px; height: 8px; border-radius: var(--r-f); background: rgba(255,255,255,.3); transition: all .3s var(--ease); cursor: pointer; }
.dot.active { background: #fff; width: 24px; }
.btn-link { color: rgba(255,255,255,.65); margin-top: var(--sp-sm); }

/* ════════════════════════════════════════════════════════════
   HOME SCREEN
   ════════════════════════════════════════════════════════════ */
.home-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: calc(var(--sp-lg) + env(safe-area-inset-top)) 0 var(--sp-md);
}
.greeting-sub { font-size: 13px; color: var(--muted); margin-bottom: 2px; font-weight: 600; }
.greeting-name { font-size: 26px; font-weight: 900; }
.date-chip {
  font-size: 11px; font-weight: 700; color: var(--muted);
  background: var(--card); border: 1.5px solid var(--border);
  padding: 6px 12px; border-radius: var(--r-f);
}
.home-hdr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.home-logo { width: 42px; height: 42px; object-fit: contain; border-radius: var(--r-sm); background: white; padding: 4px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }

/* Stress Hero */
.stress-hero {
  background: var(--card); border-radius: var(--r-xl); padding: var(--sp-lg);
  display: flex; align-items: center; gap: var(--sp-lg);
  margin-bottom: var(--sp-md); box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.stress-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--g-primary);
}
.stress-ring-wrap { position: relative; width: 108px; height: 108px; flex-shrink: 0; }
.stress-details { flex: 1; }
.stress-micro { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.stress-level-val { font-size: 17px; font-weight: 800; margin-bottom: 2px; }
.stress-since { font-size: 12px; color: var(--muted); margin-bottom: var(--sp-sm); }
.quick-trio { display: flex; gap: var(--sp-sm); }
.qt-item { display: flex; align-items: center; gap: 4px; background: var(--card2); border-radius: var(--r-f); padding: 4px 10px; }
.qt-icon { font-size: 13px; }
.qt-val { font-size: 12px; font-weight: 700; }

/* Feature Grid */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: var(--sp-md); }
.feat-card {
  background: var(--card); border-radius: var(--r-lg); padding: var(--sp-md);
  display: flex; flex-direction: column; gap: 4px;
  border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.feat-card:active { transform: scale(.97); box-shadow: none; }
.feat-icon { font-size: 30px; margin-bottom: 4px; }
.feat-name { font-size: 14px; font-weight: 800; color: var(--text); }
.feat-sub  { font-size: 11px; color: var(--muted); }

/* Tip Banner */
.tip-banner {
  background: var(--g-primary); border-radius: var(--r-lg);
  padding: var(--sp-lg); margin-bottom: var(--sp-md); color: #fff;
}
.tip-label { font-size: 12px; font-weight: 800; display: block; margin-bottom: 8px; opacity: .85; }
.tip-text { font-size: 14px; line-height: 1.7; opacity: .95; }

/* Wearable Row */
.wearable-row {
  display: flex; align-items: center; gap: var(--sp-md);
  background: var(--card); border-radius: var(--r-lg); padding: var(--sp-md);
  border: 2px dashed var(--border); cursor: pointer; margin-bottom: var(--sp-md);
}
.wr-icon { font-size: 28px; }
.wr-info { flex: 1; }
.wr-title { font-size: 14px; font-weight: 700; }
.wr-sub { font-size: 12px; color: var(--muted); }
.wr-arrow { font-size: 24px; color: var(--muted); }

/* ════════════════════════════════════════════════════════════
   SUIVI SCREEN
   ════════════════════════════════════════════════════════════ */
.period-row {
  display: flex; background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r-f); padding: 4px; margin-bottom: var(--sp-md);
}
.per-btn {
  flex: 1; padding: 10px; border: none; border-radius: var(--r-f);
  background: none; font: 600 14px 'Nunito',sans-serif; color: var(--muted);
  cursor: pointer; transition: all .2s var(--ease);
}
.per-btn.active { background: var(--primary); color: #fff; }
.chart-card { background: var(--card); border-radius: var(--r-lg); padding: var(--sp-lg); margin-bottom: var(--sp-md); box-shadow: var(--shadow-sm); }
.chart-lbl { font-size: 15px; font-weight: 700; margin-bottom: var(--sp-md); }
.chart-box { height: 180px; }
.chart-box-sm { height: 150px; }
.ci-list { display: flex; flex-direction: column; gap: 10px; }
.ci-item {
  background: var(--card); border-radius: var(--r-lg); padding: var(--sp-md);
  display: flex; align-items: center; gap: var(--sp-md); box-shadow: var(--shadow-sm);
}
.ci-ico { font-size: 28px; }
.ci-info { flex: 1; }
.ci-date { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.ci-sum  { font-size: 13px; font-weight: 600; }
.ci-score { font-size: 18px; font-weight: 900; padding: 8px 14px; border-radius: var(--r-f); background: rgba(107,143,113,.12); color: var(--primary); }
.ci-score.mod  { background: rgba(232,168,76,.12); color: #E8A84C; }
.ci-score.high { background: rgba(212,105,90,.12); color: #D4695A; }

/* ════════════════════════════════════════════════════════════
   PROGRAMME SCREEN
   ════════════════════════════════════════════════════════════ */
.prog-banner {
  background: var(--g-calm); border-radius: var(--r-lg); padding: var(--sp-lg);
  display: flex; align-items: center; gap: var(--sp-md); color: #fff; margin-bottom: var(--sp-md);
}
.prog-banner-ico { font-size: 36px; }
.prog-banner-ttl { font-size: 15px; font-weight: 800; margin-bottom: 3px; }
.prog-banner-sub { font-size: 13px; opacity: .88; line-height: 1.5; }
.ex-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--sp-md); }
.ex-card {
  background: var(--card); border-radius: var(--r-lg); padding: var(--sp-md);
  display: flex; align-items: center; gap: var(--sp-md);
  box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .2s;
}
.ex-card:active { transform: scale(.98); }
.ex-ico { width: 48px; height: 48px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.ex-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.ex-meta { font-size: 12px; color: var(--muted); }
.ex-arr  { font-size: 26px; color: var(--light); font-weight: 300; margin-left: auto; }

/* Sounds Grid */
.sounds-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: var(--sp-md); }
.snd-card {
  background: var(--card); border-radius: var(--r-lg); padding: var(--sp-md) var(--sp-sm);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: all .2s; border: 2px solid transparent;
}
.snd-card:active { transform: scale(.95); }
.snd-card.playing { border-color: var(--primary); background: rgba(107,143,113,.08); }
.snd-ico { font-size: 26px; }
.snd-name { font-size: 11px; font-weight: 700; color: var(--muted); }
.snd-player {
  background: var(--card); border-radius: var(--r-lg); padding: var(--sp-md);
  display: flex; align-items: center; gap: var(--sp-sm); margin-bottom: var(--sp-md); box-shadow: var(--shadow-sm);
}
.snd-p-ico { font-size: 22px; }
.snd-p-name { font-size: 14px; font-weight: 700; flex: 1; }
.vol-slider { width: 80px; accent-color: var(--primary); }

/* ════════════════════════════════════════════════════════════
   CHECK-IN
   ════════════════════════════════════════════════════════════ */
.ci-progress { height: 4px; background: var(--border); flex-shrink: 0; }
.ci-prog-fill { height: 100%; background: var(--g-primary); border-radius: 2px; transition: width .5s var(--ease); }
.ci-step { animation: fadeIn .3s var(--ease); }
.step-q { font-size: 20px; font-weight: 800; line-height: 1.4; margin-bottom: var(--sp-md); }
.step-sub { font-size: 14px; color: var(--muted); margin-bottom: var(--sp-lg); }
/* Emoji scale */
.emoji-scale { display: flex; justify-content: space-between; gap: 8px; margin-bottom: var(--sp-lg); }
.emo-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--card); border: 2px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-sm); cursor: pointer; transition: all .2s; font-size: 28px;
}
.emo-btn:active { transform: scale(.93); }
.emo-btn.sel { border-color: var(--primary); background: rgba(107,143,113,.10); transform: scale(1.06); }
.emo-lbl { font-size: 10px; color: var(--muted); font-weight: 700; }
/* Stars */
.star-row { display: flex; justify-content: center; gap: var(--sp-md); margin-bottom: var(--sp-lg); }
.star { font-size: 38px; cursor: pointer; transition: transform .15s; filter: grayscale(1) opacity(.3); }
.star.on { filter: none; transform: scale(1.1); }
/* Slider */
.slider-val { text-align: center; font-size: 40px; font-weight: 900; color: var(--primary); margin-bottom: var(--sp-sm); }
.scale-slider { width: 100%; accent-color: var(--primary); margin-bottom: var(--sp-sm); height: 6px; cursor: pointer; }
.scale-lbls { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: var(--sp-lg); }
/* Options grid */
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: var(--sp-lg); }
.opt-btn {
  padding: 16px 12px; border: 2px solid var(--border); border-radius: var(--r-lg);
  background: var(--card); font: 600 14px 'Nunito',sans-serif; color: var(--text);
  cursor: pointer; transition: all .2s; text-align: center;
}
.opt-btn.sel { border-color: var(--primary); background: rgba(107,143,113,.10); color: var(--primary); }
/* checkin footer */
.ci-foot {
  display: flex; gap: 10px; padding: var(--sp-md);
  padding-bottom: calc(var(--sp-md) + env(safe-area-inset-bottom));
  border-top: 1.5px solid var(--border); background: var(--bg); flex-shrink: 0;
}
.ci-foot .btn { flex: 1; }

/* ════════════════════════════════════════════════════════════
   BREATHING SCREEN
   ════════════════════════════════════════════════════════════ */
.breath-screen { background: linear-gradient(160deg, #EBF3EC, #DCE9DE); }
.breath-body {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--sp-lg); text-align: center; gap: var(--sp-md);
}
.breath-hint { font-size: 15px; color: var(--muted); font-weight: 500; }
.breath-stage { position: relative; width: 220px; height: 220px; }
.breath-halo {
  position: absolute; border-radius: var(--r-f); background: rgba(107,143,113,.1);
}
.breath-halo-outer { inset: 0; }
.breath-halo-mid    { top: 12%; left: 12%; right: 12%; bottom: 12%; background: rgba(107,143,113,.12); }
.breath-circle {
  position: absolute; top: 22%; left: 22%; right: 22%; bottom: 22%;
  border-radius: var(--r-f); background: var(--g-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(74,124,89,.4);
  transition: transform 1s ease-in-out, box-shadow 1s ease-in-out;
  z-index: 2;
}
.breath-circle-ico { font-size: 46px; }
.breath-circle.inhale { transform: scale(1.45); box-shadow: 0 0 60px rgba(74,124,89,.55); }
.breath-circle.hold   { transform: scale(1.45); }
.breath-circle.exhale { transform: scale(1.0); }
.breath-svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.br-track { fill: none; stroke: rgba(107,143,113,.15); stroke-width: 3; }
.br-fill  { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; }
.breath-counter { font-size: 64px; font-weight: 900; color: var(--text); line-height: 1; }
.breath-phase { font-size: 20px; font-weight: 800; color: var(--primary); }
.breath-cycles { font-size: 13px; color: var(--muted); }
.breath-btns { display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; }

/* ════════════════════════════════════════════════════════════
   MEDITATION SCREEN
   ════════════════════════════════════════════════════════════ */
.med-screen { background: var(--g-dark); }
.med-body {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--sp-xl); text-align: center; gap: var(--sp-lg);
}
.med-orbs { margin-bottom: var(--sp-md); }
.med-orb-outer {
  width: 200px; height: 200px; border-radius: var(--r-f);
  background: rgba(107,143,113,.12); display: flex; align-items: center; justify-content: center;
  animation: orghPulse 4s ease-in-out infinite;
}
.med-orb-mid {
  width: 148px; height: 148px; border-radius: var(--r-f);
  background: rgba(107,143,113,.18); display: flex; align-items: center; justify-content: center;
  animation: orghPulse 4s ease-in-out infinite .6s;
}
.med-orb-center {
  width: 100px; height: 100px; border-radius: var(--r-f);
  background: rgba(107,143,113,.3); display: flex; align-items: center; justify-content: center;
  font-size: 44px; animation: orghPulse 4s ease-in-out infinite 1.1s;
}
@keyframes orghPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.07)} }
.med-timer { font-size: 58px; font-weight: 900; color: #fff; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.med-instruction { font-size: 15px; color: rgba(255,255,255,.72); line-height: 1.7; max-width: 280px; transition: opacity .5s; }
.med-btns { display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* ════════════════════════════════════════════════════════════
   JOURNAL
   ════════════════════════════════════════════════════════════ */
.prompt-card {
  background: var(--g-secondary); border-radius: var(--r-lg);
  padding: var(--sp-lg); margin-bottom: var(--sp-md); color: #fff;
}
.prompt-lbl { font-size: 11px; font-weight: 800; opacity: .8; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.prompt-txt { font-size: 15px; font-style: italic; line-height: 1.6; }
.j-stats {
  display: flex; background: var(--card); border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: var(--sp-md); box-shadow: var(--shadow-sm);
}
.j-stat { flex: 1; display: flex; flex-direction: column; align-items: center; padding: var(--sp-md); border-right: 1.5px solid var(--border); }
.j-stat:last-child { border-right: none; }
.j-val { font-size: 22px; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.j-lbl { font-size: 10px; color: var(--muted); font-weight: 600; text-align: center; }
.j-list { display: flex; flex-direction: column; gap: 10px; }
.j-item { background: var(--card); border-radius: var(--r-lg); padding: var(--sp-md); box-shadow: var(--shadow-sm); cursor: pointer; }
.j-item-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.j-item-date { font-size: 12px; color: var(--muted); }
.j-item-mood { font-size: 20px; }
.j-item-preview { font-size: 14px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.j-item-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.j-tag { background: rgba(107,143,113,.12); color: var(--primary); padding: 3px 10px; border-radius: var(--r-f); font-size: 11px; font-weight: 700; }

/* Journal Write */
.jw-date { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: var(--sp-md); }
.jw-mood-wrap { margin-bottom: var(--sp-md); }
.jw-mood-lbl { font-size: 14px; font-weight: 700; margin-bottom: var(--sp-sm); }
.mood-row { display: flex; justify-content: space-around; }
.mood-btn { font-size: 34px; cursor: pointer; padding: 8px; transition: transform .2s; filter: grayscale(1) opacity(.4); }
.mood-btn.sel { filter: none; transform: scale(1.3); }
.jw-prompt-hint {
  background: rgba(193,154,107,.1); border-left: 3px solid var(--secondary);
  padding: 10px var(--sp-md); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: var(--sp-md);
}
.jw-ph-lbl { font-size: 11px; color: var(--secondary-dk); font-weight: 800; text-transform: uppercase; }
.jw-ph-txt { font-size: 13px; color: var(--muted); font-style: italic; }
.j-textarea {
  width: 100%; min-height: 200px; padding: var(--sp-md);
  border: 2px solid var(--border); border-radius: var(--r-lg);
  font: 15px/1.7 'Nunito',sans-serif; color: var(--text); background: var(--card);
  outline: none; resize: none; margin-bottom: var(--sp-md); transition: border-color .2s;
}
.j-textarea:focus { border-color: var(--primary); }
.tags-wrap { margin-bottom: var(--sp-xl); }
.tags-lbl { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-btn {
  padding: 8px 16px; border: 2px solid var(--border); border-radius: var(--r-f);
  background: var(--card); font: 600 13px 'Nunito',sans-serif; color: var(--text);
  cursor: pointer; transition: all .2s;
}
.tag-btn.sel { background: rgba(107,143,113,.1); border-color: var(--primary); color: var(--primary); }

/* ════════════════════════════════════════════════════════════
   DÉTOX
   ════════════════════════════════════════════════════════════ */
.detox-card { background: var(--card); border-radius: var(--r-xl); padding: var(--sp-xl); text-align: center; margin-bottom: var(--sp-md); box-shadow: var(--shadow-md); }
.detox-ring-wrap { position: relative; width: 180px; height: 180px; margin: 0 auto var(--sp-lg); }
.dur-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: var(--sp-lg); }
.dur-btn {
  padding: 9px 18px; border: 2px solid var(--border); border-radius: var(--r-f);
  background: var(--card2); font: 600 14px 'Nunito',sans-serif; color: var(--muted);
  cursor: pointer; transition: all .2s;
}
.dur-btn.active { border-color: var(--secondary); background: rgba(193,154,107,.1); color: var(--secondary-dk); }
.detox-stats { display: flex; gap: 10px; margin-bottom: var(--sp-md); }
.detox-stat { flex: 1; background: var(--card); border-radius: var(--r-lg); padding: var(--sp-md); text-align: center; box-shadow: var(--shadow-sm); }
.ds-val { display: block; font-size: 20px; font-weight: 900; color: var(--secondary-dk); margin-bottom: 2px; }
.ds-lbl { font-size: 11px; color: var(--muted); font-weight: 600; }
.challenge-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--sp-md); }
.chall-item { background: var(--card); border-radius: var(--r-lg); padding: var(--sp-md); display: flex; align-items: center; gap: var(--sp-md); box-shadow: var(--shadow-sm); }
.chall-ico { font-size: 24px; }
.chall-info { flex: 1; }
.chall-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.chall-desc { font-size: 12px; color: var(--muted); }
.chall-check {
  width: 26px; height: 26px; border-radius: var(--r-f); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; transition: all .2s; flex-shrink: 0;
}
.chall-check.done { background: var(--primary); border-color: var(--primary); color: #fff; }
.badges-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: var(--sp-xl); }
.badge-item {
  background: var(--card); border-radius: var(--r-lg); padding: var(--sp-md) var(--sp-sm);
  text-align: center; box-shadow: var(--shadow-sm); opacity: .4; filter: grayscale(1); transition: all .3s;
}
.badge-item.earned { opacity: 1; filter: none; border: 2px solid rgba(193,154,107,.5); }
.badge-emo { font-size: 32px; margin-bottom: 4px; }
.badge-name { font-size: 11px; font-weight: 800; }
.badge-desc { font-size: 10px; color: var(--muted); }

/* ════════════════════════════════════════════════════════════
   RELAXATION
   ════════════════════════════════════════════════════════════ */
.rx-step {
  background: var(--card); border-radius: var(--r-lg); padding: var(--sp-lg); margin-bottom: var(--sp-md);
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--secondary);
}
.rx-step.active-step { border-left-color: var(--primary); background: rgba(107,143,113,.04); }
.rx-num   { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.rx-title { font-size: 16px; font-weight: 800; margin-bottom: var(--sp-sm); }
.rx-desc  { font-size: 14px; color: var(--muted); line-height: 1.7; }
.rx-dur   { font-size: 12px; color: var(--secondary-dk); font-weight: 700; margin-top: 8px; }

/* ════════════════════════════════════════════════════════════
   BOOKING
   ════════════════════════════════════════════════════════════ */
.booking-hero   { background: var(--g-primary); border-radius: var(--r-xl); padding: var(--sp-xl) var(--sp-lg); text-align: center; margin-bottom: var(--sp-lg); color: #fff; }
.bk-logo { width: 80px; height: 80px; object-fit: contain; margin-bottom: 12px; background: white; padding: 8px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.bk-name  { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.bk-sub   { font-size: 14px; opacity: .8; }
.bk-form  { display: flex; flex-direction: column; gap: var(--sp-md); }
.form-sec { background: var(--card); border-radius: var(--r-lg); padding: var(--sp-lg); box-shadow: var(--shadow-sm); }
.form-sec-ttl { font-size: 15px; font-weight: 800; margin-bottom: var(--sp-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grp { display: flex; flex-direction: column; gap: var(--sp-sm); }
.form-lbl { font-size: 12px; font-weight: 700; color: var(--muted); }
.room-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.room-card { border: 2px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-md) var(--sp-sm); text-align: center; cursor: pointer; transition: all .2s; }
.room-card.selected { border-color: var(--primary); background: rgba(107,143,113,.08); }
.room-ico   { font-size: 24px; display: block; margin-bottom: 4px; }
.room-name  { font-size: 12px; font-weight: 800; }
.room-price { font-size: 10px; color: var(--muted); }
.counter { display: flex; align-items: center; border: 2px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.ctr-btn { width: 44px; height: 44px; background: var(--card2); border: none; font-size: 20px; cursor: pointer; color: var(--text); transition: background .15s; }
.ctr-btn:active { background: var(--border); }
.ctr-val { flex: 1; text-align: center; font-size: 16px; font-weight: 800; }
.act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.act-item {
  display: flex; align-items: center; gap: 8px; padding: 12px;
  border: 2px solid var(--border); border-radius: var(--r-lg);
  font: 600 13px 'Nunito',sans-serif; cursor: pointer; transition: all .2s;
}
.act-item input { display: none; }
.act-item:has(input:checked) { border-color: var(--primary); background: rgba(107,143,113,.08); color: var(--primary); }
.bk-summary { background: var(--card2); border-radius: var(--r-lg); padding: var(--sp-md); }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 6px 0; }
.sum-total { font-weight: 800; font-size: 16px; color: var(--text); padding-top: 10px; border-top: 1.5px solid var(--border); margin-top: 6px; }

/* ════════════════════════════════════════════════════════════
   WEARABLE MODAL
   ════════════════════════════════════════════════════════════ */
.scan-area { text-align: center; padding: var(--sp-lg) 0; }
.scan-ico { font-size: 64px; animation: scanPulse 2s ease-in-out infinite; margin-bottom: 12px; }
@keyframes scanPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
.scan-txt { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.scan-dots { display: flex; justify-content: center; gap: 6px; }
.scan-dots span { width: 8px; height: 8px; border-radius: var(--r-f); background: var(--primary); animation: dotBounce 1.2s ease-in-out infinite; }
.scan-dots span:nth-child(2){ animation-delay:.2s; }
.scan-dots span:nth-child(3){ animation-delay:.4s; }
@keyframes dotBounce { 0%,80%,100%{opacity:.3;transform:scale(.8)} 40%{opacity:1;transform:scale(1)} }
.biometrics { margin-bottom: var(--sp-lg); }
.bio-row { display: flex; align-items: center; gap: var(--sp-md); padding: var(--sp-md); border-bottom: 1.5px solid var(--border); }
.bio-ico { font-size: 24px; }
.bio-val { display: block; font-size: 18px; font-weight: 800; }
.bio-name { font-size: 12px; color: var(--muted); }

/* ════════════════════════════════════════════════════════════
   RESULT MODAL
   ════════════════════════════════════════════════════════════ */
.result-sheet { text-align: center; }
.result-emoji { font-size: 64px; margin-bottom: 12px; }
.result-ttl { font-size: 20px; font-weight: 800; margin-bottom: var(--sp-lg); }
.result-ring-wrap { position: relative; width: 140px; height: 140px; margin: 0 auto var(--sp-md); }
.res-level { font-size: 18px; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.res-rec { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: var(--sp-lg); }

/* Hide scrollbar */
::-webkit-scrollbar { width: 0; }

/* Safe area utility */
.safe-pb { padding-bottom: env(safe-area-inset-bottom); }
