
/* ===== styles/tokens.css ===== */
/* Brand tokens — deep indigo + saffron on warm white. Change colours here only.
   Always a LIGHT theme. The background wash and photo tint shift gently with the time of day
   (core/theme.js sets <html data-time="…">): sunrise 5–11 · day 11–17 · dusk 17–20 · night 20–5 (moonlight). */
:root {
  /* deep indigo (the main brand colour: big cards, navigation, dark buttons).
     Named --teal-* for history; every screen reads these. */
  --teal-950: #141734;
  --teal-900: #1f2340;
  --teal-800: #2b3160;
  --teal-700: #3a4282;
  --teal-500: #6e78c2;
  --teal-300: #aeb5e3;
  --teal-200: #d9dcf3;
  --teal-100: #eceefb;
  --teal-50:  #f5f6fd;

  /* saffron (warmth: highlights, pay, progress) */
  --saffron: #e8772e;
  --saffron-deep: #c4560f;
  --saffron-soft: #fff0e4;

  --cream: #fffaf5;
  --sand: #f6efe7;
  --sand-300: #eadfd2;
  --clay: #d9601a;
  --clay-soft: #ffe9dc;
  --clay-ink: #b04a0c;
  --wa: #1fa855;

  --ink: #1f2340;          /* text is deep indigo, not black */
  --ink-2: #444a6b;
  --muted: #6d7290;
  --line: rgba(31, 35, 64, .09);
  --accent: #c4560f;       /* links, eyebrows, small highlights — saffron, readable on white */
  --accent-strong: #1f2340;
  --star: #b8770a;
  --ok: #2c8a57;     --ok-soft: #e4f4ea;
  --warn: #b16c0d;   --warn-soft: #fff1da;
  --danger: #c0412f; --danger-soft: #fde6e2;

  --bg: #fffaf5;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --field: #ffffff;
  --tabbar-bg: rgba(255, 255, 255, .9);
  --skeleton-hi: rgba(255, 255, 255, .9);
  --art-1: rgba(255, 210, 170, .5);
  --art-2: rgba(217, 220, 243, .8);
  --art-3: rgba(255, 240, 228, .9);

  --serif: "Cormorant Garamond", "Noto Serif Devanagari", Georgia, serif;
  --sans: "Manrope", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 12px;
  --r: 24px;
  --r-lg: 30px;
  --shadow-sm: 0 1px 2px rgba(31, 35, 64, .05), 0 8px 22px -12px rgba(31, 35, 64, .18);
  --shadow: 0 2px 4px rgba(31, 35, 64, .05), 0 16px 38px -16px rgba(31, 35, 64, .26);
  --shadow-lg: 0 26px 60px -22px rgba(31, 35, 64, .45);

  --tabbar-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

/* ☀️ Sunrise — warm peach and gold light */
html[data-time="sunrise"] { --bg: #fff7ee; --art-1: rgba(255, 196, 140, .55); --art-2: rgba(255, 228, 186, .8); --art-3: rgba(255, 240, 228, .9); }
/* 🌤️ Day — clear and airy, a hint of sky */
html[data-time="day"] { --bg: #fbfaf7; --art-1: rgba(196, 214, 250, .55); --art-2: rgba(255, 232, 214, .7); --art-3: rgba(236, 238, 251, .9); }
/* 🌇 Dusk — rose and lilac sunset */
html[data-time="dusk"] { --bg: #fdf6f7; --art-1: rgba(246, 190, 200, .5); --art-2: rgba(220, 208, 246, .7); --art-3: rgba(255, 236, 226, .8); }
/* 🌙 Night — soft moonlight lavender. Still a light theme: no black screens. */
html[data-time="night"] { --bg: #f7f6fc; --art-1: rgba(196, 190, 240, .55); --art-2: rgba(226, 222, 250, .8); --art-3: rgba(236, 238, 251, .9); }


/* ===== styles/base.css ===== */
/* Shared building blocks used by every screen: layout, top bar, tab bar, cards, buttons, forms, sheets, toasts. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--teal-300); outline-offset: 2px; border-radius: 8px; }

/* ---------- app frame (phone width, centred on bigger screens) ---------- */
.app {
  position: relative;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(20, 24, 56, .35);
}
/* Test builds only (<html data-env="test">): a small "TEST" tag at the end of each screen's first line of content */
[data-env="test"] .hhead__date::after,
[data-env="test"] .page-head__eyebrow::after,
[data-env="test"] .login__brand::after {
  content: "TEST"; display: inline-block; vertical-align: middle; margin-left: 8px;
  background: #fde68a; color: #713f12; border-radius: 99px; padding: 1px 6px;
  font: 800 8.5px/1.4 var(--sans, system-ui), sans-serif; letter-spacing: .08em; text-transform: none;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: calc(12px + var(--safe-t)) 16px 12px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar__logo { width: 34px; height: 34px; border-radius: 50%; }
.topbar__title { flex: 1; min-width: 0; }
.topbar__title strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.topbar__title span { display: block; font-size: 12px; color: var(--muted); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: var(--teal-100); color: var(--accent-strong);
  font-weight: 700; font-size: 14px;
}

/* ---------- screens ---------- */
.screen {
  padding: 4px 16px calc(var(--tabbar-h) + var(--safe-b) + 28px);
  animation: screen-in .35s var(--ease);
}
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 26px 2px 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.section-title a { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--accent); text-decoration: none; }

/* ---------- bottom tab bar ---------- */
.tabbar {
  position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding: 8px 4px calc(8px + var(--safe-b));
  background: var(--tabbar-bg);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: none; color: var(--muted);
  font-size: 11.5px; font-weight: 600; text-decoration: none;
  position: relative;
}
.tab__icon {
  width: 52px; height: 30px; border-radius: 999px;
  display: grid; place-items: center;
  transition: background .25s var(--ease), color .25s;
}
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--accent-strong); }
.tab[aria-current="page"] .tab__icon { background: var(--teal-100); }
.tab__dot {
  position: absolute; top: 4px; right: calc(50% - 22px);
  width: 9px; height: 9px; border-radius: 50%; background: var(--clay); border: 2px solid #fff;
}

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  padding: 16px;
}
.card + .card { margin-top: 12px; }
.card--flat { box-shadow: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2 .card + .card { margin-top: 0; }

.stat__label { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat__label svg { width: 16px; height: 16px; color: var(--accent); }
.stat__value { margin-top: 6px; font-size: 16px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.stat__value--big { font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.01em; }

/* ---------- list rows ---------- */
.list { background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px 16px; border: 0; background: none; text-align: left; text-decoration: none;
}
.row + .row { border-top: 1px solid var(--line); }
button.row:active, a.row:active { background: var(--teal-50); }
.row__icon {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; background: var(--teal-50); color: var(--accent);
}
.row__icon svg { width: 20px; height: 20px; }
.row__body { flex: 1; min-width: 0; }
.row__label { font-size: 12.5px; color: var(--muted); }
.row__value { font-weight: 600; overflow-wrap: anywhere; }
.row__value--empty { color: var(--muted); font-weight: 500; font-style: italic; }
.row__end { flex: none; color: var(--muted); font-size: 13px; text-align: right; }
.row__end svg { width: 18px; height: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 0;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .12s var(--ease), background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--teal-900); color: #fff; box-shadow: 0 8px 20px -10px rgba(31, 35, 64, .8); }
.btn--primary:hover { background: var(--teal-800); }
.btn--light { background: #fff; color: #1f2340; }
.btn--soft { background: var(--teal-100); color: var(--accent-strong); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--danger { background: var(--danger-soft); color: var(--danger); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 14px; border-radius: 11px; font-size: 13.5px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid currentColor; border-color: rgba(255,255,255,.9) rgba(255,255,255,.9) rgba(255,255,255,.9) transparent;
  animation: spin .7s linear infinite;
}
.btn--soft.is-loading::after, .btn--light.is-loading::after, .btn--ghost.is-loading::after { border-color: var(--teal-700) var(--teal-700) var(--teal-700) transparent; }
.btn--danger.is-loading::after { border-color: var(--danger) var(--danger) var(--danger) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .01em;
  background: var(--teal-100); color: var(--accent-strong);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--plain::before { display: none; }
.chip--ok { background: var(--ok-soft); color: var(--ok); }
.chip--warn { background: var(--warn-soft); color: var(--warn); }
.chip--danger { background: var(--danger-soft); color: var(--danger); }
.chip--muted { background: var(--sand); color: var(--ink-2); }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field__hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border-radius: 14px; border: 1.5px solid var(--sand-300); background: var(--field);
  font-size: 16px; /* 16px stops iPhone zooming in */
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px var(--teal-100); }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236b7876' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px;
}
.input-group { display: flex; align-items: stretch; border-radius: 14px; border: 1.5px solid var(--sand-300); background: var(--field); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.input-group:focus-within { border-color: var(--teal-500); box-shadow: 0 0 0 4px var(--teal-100); }
.input-group__addon { display: grid; place-items: center; padding: 0 12px; color: var(--muted); font-weight: 700; background: var(--teal-50); border-right: 1px solid var(--sand-300); }
.input-group .input { border: 0; box-shadow: none !important; border-radius: 0; }
.form-error {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 10px 12px; border-radius: 12px; margin-bottom: 14px;
  background: var(--danger-soft); color: var(--danger); font-size: 14px; font-weight: 600;
}
.form-error svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }

/* ---------- switch ---------- */
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--sand-300); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--teal-700); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--teal-300); outline-offset: 2px; }

/* ---------- bottom sheet ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20, 24, 56, .45);
  opacity: 0; transition: opacity .25s;
}
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 51; left: 50%; bottom: 0;
  width: 100%; max-width: 480px; max-height: 92dvh; overflow: auto;
  transform: translate(-50%, 100%);
  background: var(--bg); border-radius: 26px 26px 0 0;
  padding: 10px 20px calc(24px + var(--safe-b));
  box-shadow: var(--shadow-lg);
  transition: transform .32s var(--ease);
}
.sheet.open { transform: translate(-50%, 0); }
.sheet__grab { width: 40px; height: 5px; border-radius: 999px; background: var(--sand-300); margin: 0 auto 14px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sheet__head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: var(--sand); color: var(--ink-2);
}
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px);
  transform: translate(-50%, 20px); opacity: 0;
  max-width: calc(100% - 32px); width: max-content;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: var(--teal-950); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-lg);
  transition: transform .3s var(--ease), opacity .3s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast svg { width: 18px; height: 18px; color: var(--teal-300); flex: none; }
.toast--error svg { color: #f7b4a8; }

/* ---------- loading skeleton + states ---------- */
.skeleton {
  border-radius: var(--r);
  background: linear-gradient(90deg, var(--sand) 0%, var(--skeleton-hi) 50%, var(--sand) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.empty {
  text-align: center; padding: 28px 18px; color: var(--muted);
  background: var(--surface); border-radius: var(--r); border: 1px dashed var(--sand-300);
}
.empty svg { width: 34px; height: 34px; margin: 0 auto 8px; color: var(--teal-500); }
.error-state { text-align: center; padding: 48px 20px; }
.error-state svg { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--clay); }
.error-state h2 { font-size: 18px; margin-bottom: 6px; }
.error-state p { color: var(--muted); margin-bottom: 18px; }
.offline-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 18px; }

/* ---------- progress ring ---------- */
.ring { position: relative; display: grid; place-items: center; }
.ring svg { transform: rotate(-90deg); }
.ring__track { stroke: rgba(255, 255, 255, .18); }
.ring__bar { transition: stroke-dashoffset 1s var(--ease); }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }

.muted { color: var(--muted); }
.mt-0 { margin-top: 0 !important; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (min-width: 520px) {
  body { padding: 0; }
}

/* ---------- small global rules ---------- */
body { font-variant-numeric: lining-nums; }
.row__label, .row__value { display: block; }
.chip { white-space: nowrap; flex: none; }

/* ---------- time-of-day background wash (see tokens.css) ---------- */
html, body { background: var(--bg); transition: background .6s; }
.app { background: transparent; isolation: isolate; }
.app::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 100% 0%, var(--art-1), transparent 70%),
    radial-gradient(55% 35% at 0% 30%, var(--art-2), transparent 70%),
    radial-gradient(70% 45% at 60% 100%, var(--art-3), transparent 70%),
    var(--bg);
}
.card, .list, .ann, .tile, .problem, .tl__card, .jr-stat, .badge, .event { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.topbar { background: color-mix(in srgb, var(--bg) 80%, transparent); }

/* Stepper  − 7.5 h +  (YSH.ui.stepper — used by Track and Goals) */
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 40px; height: 40px; border-radius: 14px; font-size: 22px; font-weight: 700; color: var(--ink); display: grid; place-items: center; line-height: 1; }
.stepper output { min-width: 66px; text-align: center; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.stepper output small { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.stepper output.is-empty { color: var(--muted); font-size: 15px; }


/* ===== features/login/login.css ===== */
/* Login screen */
.login { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
/* Hero: real studio photo + a colour wash that follows the time of day */
.login__hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 56dvh; padding: calc(22px + var(--safe-t)) 26px 64px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--teal-900);
}
.login__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 20%; animation: hero-in 1.6s var(--ease) both; }
@keyframes hero-in { from { transform: scale(1.08); opacity: .4; } to { transform: none; opacity: 1; } }
.login__tint {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 24, 56, .25) 0%, rgba(20, 24, 56, .15) 30%, var(--hero-tint) 72%, var(--hero-tint-end) 100%);
}
html { --hero-tint: rgba(31, 35, 64, .82); --hero-tint-end: rgba(20, 24, 56, .96); }
html[data-time="sunrise"] { --hero-tint: rgba(120, 70, 30, .72); --hero-tint-end: rgba(70, 40, 20, .94); }
html[data-time="dusk"] { --hero-tint: rgba(74, 52, 96, .78); --hero-tint-end: rgba(40, 30, 60, .95); }
html[data-time="night"] { --hero-tint: rgba(44, 40, 96, .82); --hero-tint-end: rgba(31, 28, 72, .96); }
.login__brand { position: absolute; top: calc(18px + var(--safe-t)); left: 20px; display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.login__brand small { display: block; font-size: 11px; font-weight: 600; opacity: .85; letter-spacing: .06em; text-transform: uppercase; }
.login__logo { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
.login__title { font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: .98; letter-spacing: .01em; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.login__title span { display: block; animation: rise .9s var(--ease) both; }
.login__title span:nth-child(2) { animation-delay: .12s; }
.login__title span:nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.login__tagline { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 21px; color: #ffe1b0; }
html[data-time="day"] .login__tagline, html:not([data-time]) .login__tagline { color: #cdeee8; }
.login__tagline::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; opacity: .7; }
.login__sub { margin-top: 8px; color: rgba(255, 255, 255, .82); font-size: 14px; max-width: 300px; }

.login__card {
  position: relative; flex: 1;
  margin-top: -36px; padding: 28px 22px 22px;
  background: var(--bg); border-radius: 30px 30px 0 0;
}
.login__heading { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.login__hint { color: var(--muted); font-size: 14px; margin: 6px 0 20px; }

.pin { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pin__box {
  height: 60px; min-width: 0; text-align: center;
  border-radius: 16px; border: 1.5px solid var(--sand-300); background: var(--field);
  font-size: 26px; font-weight: 800; letter-spacing: 0;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.pin__box:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px var(--teal-100); transform: translateY(-1px); }
.pin.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.login__forgot {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; padding: 10px; border-radius: 12px;
  color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; text-align: center;
}
.login__forgot svg { width: 20px; height: 20px; color: var(--wa); flex: none; }
.login__forgot:active { background: var(--teal-50); }
.login__foot { background: var(--bg); text-align: center; color: var(--muted); font-size: 12.5px; padding: 0 20px calc(20px + var(--safe-b)); }


/* ===== features/home/home.css ===== */
/* Home — "my day": greeting, today's ring + streak, quick-log tiles, membership, class, shortcuts. No posts. */
.hhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: calc(22px + var(--safe-t)) 4px 16px; }
.hhead__date { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.hhead__greet { font-size: 15px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.hhead__name { font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-top: 2px; }
.hhead__avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-weight: 800; color: var(--accent-strong) !important; }

/* Your day */
.today { display: flex; align-items: center; gap: 18px; padding: 18px; }
.today__ring { position: relative; flex: none; width: 118px; height: 118px; }
.today__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.today__ring .ring__track { stroke: rgba(124, 114, 178, .15); }
.today__ring .ring__bar { filter: drop-shadow(0 4px 8px rgba(108, 92, 231, .45)); }
.today__ring .ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.today__ring .ring__num { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.today__ring .ring__unit { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 3px; }
.today__label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.today__title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 2px; }
.today__sub { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.today__btn { margin-top: 12px; min-height: 40px !important; padding: 0 18px; }

/* Quick tiles */
.qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.qtile { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 6px 12px; border-radius: 24px; text-decoration: none; font: inherit; text-align: center; min-width: 0; }
.qtile__icon {
  width: 48px; height: 48px; border-radius: 17px; display: grid; place-items: center; color: #fff; margin-bottom: 6px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 65%, #fff), var(--c)); box-shadow: 0 10px 18px -10px var(--c), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.qtile__icon::after { content: ""; position: absolute; left: 4px; right: 4px; top: 2px; height: 45%; border-radius: 13px; background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent); }
.qtile__icon svg { width: 24px; height: 24px; position: relative; z-index: 1; }
.qtile strong { font-size: 13.5px; font-weight: 800; }
.qtile > span:last-child { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.qtile.done > span:last-child { color: var(--ok); }
.qtile.pop .qtile__icon { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* Membership */
.pass { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 16px; padding: 16px; }
.pass__days { position: relative; overflow: hidden; width: 76px; height: 76px; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: var(--gloss); box-shadow: var(--gloss-shadow); }
.pass--due .pass__days { background: linear-gradient(135deg, #ffb35c, #e8772e); box-shadow: 0 14px 28px -12px rgba(232, 119, 46, .7); }
.pass--overdue .pass__days { background: linear-gradient(135deg, #ff8a7a, #d9433a); box-shadow: 0 14px 28px -12px rgba(217, 67, 58, .7); }
.pass__days strong { font-size: 32px; font-weight: 800; line-height: .95; letter-spacing: -.04em; position: relative; z-index: 1; }
.pass__days span { font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .92; text-align: center; position: relative; z-index: 1; }
.pass__info { min-width: 0; }
.pass__plan { font-weight: 800; font-size: 15px; line-height: 1.25; }
.pass__due { font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; font-weight: 600; }
.pass__pay { min-height: 42px !important; padding: 0 18px; animation: nudge 3.5s ease-in-out 1.2s infinite; }
@keyframes nudge { 0%, 88%, 100% { transform: none; } 92% { transform: translateY(-3px); } 96% { transform: translateY(1px); } }

#home-celebration:not(:empty), #home-notes:not(:empty) { margin-top: 16px; }
.tnote { margin-top: 0 !important; }

/* My class */
.klass { padding: 6px 16px; }
.klass__row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.klass__row + .klass__row { border-top: 1px solid rgba(124, 114, 178, .12); }
.klass__row .row__icon { width: 42px; height: 42px; display: grid; place-items: center; flex: none; }
.klass__row .row__icon svg { width: 21px; height: 21px; }
.klass__label { font-size: 12px; font-weight: 700; color: var(--muted); }
.klass__value { font-size: 15.5px; font-weight: 800; }
.klass__local { font-size: 12.5px; font-weight: 700; color: var(--accent); margin-top: 1px; }

/* Small cards kept from before */
.review-card { padding: 22px; text-align: center; }
.review-card__stars { display: flex; justify-content: center; gap: 4px; color: #e8b52a; margin-bottom: 10px; }
.review-card__stars svg { width: 22px; height: 22px; fill: currentColor; }
.review-card h3 { font-size: 19px; font-weight: 800; }
.review-card p { color: var(--ink-2); font-size: 14px; margin: 6px auto 14px; max-width: 300px; }
.review-card__actions { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.install-card { display: flex; align-items: center; gap: 12px; }
.install-card strong { display: block; font-size: 14.5px; }
.install-card p { font-size: 13px; }
.wa-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding: 14px; border-radius: 999px; color: var(--ink-2); font-weight: 700; font-size: 14px; text-decoration: none; background: rgba(255, 255, 255, .45); border: 1px solid rgba(255, 255, 255, .8); }
.wa-link svg { width: 20px; height: 20px; color: var(--wa); }


/* ===== features/journey/journey.css ===== */
/* My Yoga Journey */
.journey-hero {
  display: flex; align-items: center; gap: 18px; margin-top: 10px;
  padding: 20px; border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--surface-solid) 0%, var(--teal-50) 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.journey-hero__ring { flex: none; }
.journey-hero__ring .ring__track { stroke: var(--teal-100); }
.journey-hero__ring .ring__num { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--accent-strong); line-height: .9; }
.journey-hero__ring .ring__unit { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.journey-hero__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.journey-hero__headline { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.05; margin-top: 4px; }
.journey-hero__sub { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

.jr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.jr-stat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  min-width: 0;
}
.jr-stat__icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-50); color: var(--accent); margin-bottom: 6px; }
.jr-stat__icon svg { width: 18px; height: 18px; }
.jr-stat__icon--clay { background: var(--clay-soft); color: var(--clay); }
.jr-stat__icon--sand { background: var(--sand); color: var(--ink-2); }
.jr-stat strong { font-size: 17px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.jr-stat > span:last-child { font-size: 12px; color: var(--muted); }

.milestone__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.milestone__head strong { font-size: 16px; }
.milestone__head > div { flex: 1; }
.milestone__badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, #f5d27a, #e09a3e); color: #fff; flex: none; }
.milestone__badge svg { width: 20px; height: 20px; }
.milestone__left { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.bar { height: 10px; border-radius: 999px; background: var(--teal-100); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal-500), var(--teal-800)); transition: width 1s var(--ease); }

.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; }
.badge {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 12px 2px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  min-width: 0;
}
.badge--earned { box-shadow: var(--shadow-sm); }
.badge--next { border-color: var(--teal-200); background: var(--teal-50); }
.badge--locked { background: transparent; border-style: dashed; }
.badge__name { margin-top: 6px; font-size: 12px; font-weight: 800; color: var(--ink); line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
@media (max-width: 360px) { .badges { grid-template-columns: repeat(3, 1fr); } }
.badge__when { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.badge--locked .badge__name { color: var(--muted); }

/* Medal: a coloured disc per level. Earned = full colour + shine; next = grey with a progress ring; locked = faint. */
.medal { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.medal .ring__track { stroke: var(--sand-300); }
.medal > svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.medal__disc {
  position: relative; overflow: hidden;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--g); box-shadow: inset 0 0 0 2.5px rgba(255, 255, 255, .55), 0 6px 14px -6px var(--glow);
}
.medal__disc svg { position: relative; z-index: 1; width: 26px; height: 26px; stroke-width: 1.9; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.medal--earned .medal__disc::after {
  content: ""; position: absolute; inset: -40%; z-index: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%);
  transform: translateX(-60%); animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 70% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.medal--next .medal__disc { width: 46px; height: 46px; background: var(--sand); color: var(--muted); box-shadow: none; }
.medal--locked .medal__disc { background: var(--sand); color: var(--sand-300); box-shadow: none; }
.medal__lock {
  position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-solid); color: var(--muted); box-shadow: var(--shadow-sm);
}
.medal__lock svg { width: 12px; height: 12px; }
.medal__stars { margin-top: 4px; font-size: 9px; letter-spacing: 1px; line-height: 1; color: var(--star); }
.badge--next .medal__stars, .badge--locked .medal__stars { color: var(--sand-300); }

/* Level colours — each richer than the last */
.medal--bronze  { --g: linear-gradient(145deg, #e3a76f, #a5612a); --glow: rgba(165, 97, 42, .7);  --g1: #b8743a; }
.medal--silver  { --g: linear-gradient(145deg, #e4eaee, #8796a0); --glow: rgba(110, 125, 135, .7); --g1: #8796a0; }
.medal--gold    { --g: linear-gradient(145deg, #f8dc85, #d3922b); --glow: rgba(211, 146, 43, .75); --g1: #d3922b; }
.medal--teal    { --g: linear-gradient(145deg, #6fb8b0, #1f2340); --glow: rgba(31, 35, 64, .75);   --g1: #3a4282; }
.medal--coral   { --g: linear-gradient(145deg, #f5ae86, #c2513a); --glow: rgba(194, 81, 58, .75);  --g1: #c2613f; }
.medal--royal   { --g: linear-gradient(145deg, #a990e6, #4b2f96); --glow: rgba(75, 47, 150, .75);  --g1: #5b3fa3; }
.medal--radiant { --g: conic-gradient(from 200deg, #ffd86b, #ff9a8b, #c58bff, #7fd0ff, #8ff0c0, #ffd86b); --glow: rgba(197, 139, 255, .8); --g1: #b07be6; }
.medal--radiant .medal__disc svg { color: #fff; }

.milestone__badge { background: var(--g, linear-gradient(140deg, #f5d27a, #e09a3e)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.milestone__badge svg { width: 22px; height: 22px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 2px; background: var(--teal-100); border-radius: 2px; }
.tl { position: relative; padding-left: 36px; }
.tl + .tl { margin-top: 10px; }
.tl__dot { position: absolute; left: 3px; top: 18px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-700); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--teal-200); }
.tl--break .tl__dot { background: var(--sand-300); box-shadow: 0 0 0 2px var(--sand); }
.tl--ongoing .tl__dot { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 2px var(--teal-200), 0 0 0 2px rgba(94, 158, 152, .5); } 70% { box-shadow: 0 0 0 2px var(--teal-200), 0 0 0 12px rgba(94, 158, 152, 0); } 100% { box-shadow: 0 0 0 2px var(--teal-200), 0 0 0 2px rgba(94, 158, 152, 0); } }
.tl__card { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tl--break .tl__card { background: transparent; border-style: dashed; box-shadow: none; }
.tl__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tl__title { font-size: 15px; }
.tl--break .tl__title { color: var(--ink-2); font-weight: 600; }
.tl__len { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.tl--break .tl__len { color: var(--muted); }
.tl__dates { font-size: 13px; color: var(--muted); margin-top: 2px; }


/* ===== features/track/track.css ===== */
/* Track — daily self-tracker (Log) and Trends. Each area wears its chakra colour (--c). */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .4); box-shadow: var(--emboss-in); }
.seg button { min-height: 42px; border-radius: 999px; font-weight: 800; font-size: 13.5px; color: var(--ink-2); padding: 0 8px; }
.seg--wide button { min-height: 46px; font-size: 14.5px; }
.seg + * { margin-top: 14px; }

/* day strip */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin-top: 14px; }
.day-chip { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 0 8px; border-radius: 18px; font: inherit; position: relative; }
.day-chip small { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.day-chip b { font-size: 17px; font-weight: 800; }
.day-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--c-heart); margin-top: 2px; opacity: 0; }
.day-chip.logged i { opacity: 1; }
.day-chip[aria-pressed="true"] i { background: #fff; }
.savebar { min-height: 20px; margin: 10px 4px 0; font-size: 12.5px; font-weight: 700; color: var(--muted); text-align: right; }
.savebar.ok { color: var(--ok); }

/* tracker cards */
.tcard { display: block; margin-top: 14px; padding: 16px; }
.tcard__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; list-style: none; cursor: default; }
.tcard__head::-webkit-details-marker { display: none; }
.tcard__head > div { flex: 1; min-width: 0; }
.tcard__head h3 { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.tcard__head p { font-size: 12.5px; color: var(--muted); }
.tcard__icon {
  flex: none; width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: 0 10px 20px -10px var(--c), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.tcard__icon::after { content: ""; position: absolute; left: 4px; right: 4px; top: 2px; height: 45%; border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, .45), transparent); }
.tcard__icon svg { width: 24px; height: 24px; position: relative; z-index: 1; }
.tcard__big { font-size: 30px; font-weight: 800; color: color-mix(in srgb, var(--c) 72%, #1b1640); letter-spacing: -.03em; }
.tcard__act { min-height: 38px !important; }
.tcard__link { font-size: 13px; font-weight: 800; color: var(--accent); text-decoration: none; }
.tcard--fold summary { cursor: pointer; margin-bottom: 0; }
.tcard--fold[open] summary { margin-bottom: 12px; }
.tcard__chev { width: 20px; height: 20px; color: var(--muted); transition: transform .3s var(--ease); }
.tcard--fold[open] .tcard__chev { transform: rotate(90deg); }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-weight: 700; font-size: 14px; }
.tlabel { margin: 14px 0 8px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.tnote-field { padding: 14px 16px; }

/* stepper  [−]  25 min  [+] */

/* faces 1–5 with words */
.faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.faces button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; border-radius: 16px; font: inherit; }
.faces button span { font-size: 23px; line-height: 1.1; }
.faces button small { font-size: 10px; font-weight: 800; color: var(--muted); line-height: 1.1; text-align: center; }
.faces button[aria-pressed="true"] { background: var(--gloss) !important; color: #fff; box-shadow: var(--gloss-shadow) !important; transform: translateY(-2px); }
.faces button[aria-pressed="true"] small { color: #fff; }

/* water glasses */
.glasses { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.glass-btn { height: 50px; border: 0; border-radius: 14px 14px 18px 18px; background: var(--emboss-bg); box-shadow: var(--emboss); position: relative; overflow: hidden; color: var(--c-throat); }
.glass-btn::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, #7cc8f0, var(--c-throat)); transition: height .45s cubic-bezier(.2, 1.3, .4, 1); }
.glass-btn.full::before { height: 78%; }
.glass-btn.full { box-shadow: 0 8px 16px -8px var(--c-throat), inset 0 1px 0 #fff; }
.glass-btn svg { position: relative; z-index: 1; width: 20px; height: 20px; margin: auto; }
.glass-btn.full svg { color: #fff; }

/* health problem sliders */
.pslider { padding: 10px 0 6px; }
.pslider + .pslider { border-top: 1px solid rgba(124, 114, 178, .12); }
.pslider__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 800; font-size: 14.5px; }
.pslider__val { display: flex; align-items: center; gap: 6px; }
.pslider__val b { font-size: 18px; }
.pslider input[type=range] { width: 100%; margin-top: 8px; height: 26px; accent-color: #6c5ce7; }
.pslider__hint { font-size: 12px; color: var(--muted); }
.pslider--empty .pslider__val b { color: var(--muted); font-size: 13px; }
.bp-row { display: flex; align-items: center; gap: 8px; } .bp-row span { font-size: 22px; color: var(--muted); }
.timer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .timer__time { font-size: 18px; font-weight: 800; min-width: 64px; } .timer .btn { flex: 1 1 auto; white-space: nowrap; } .timer__input { width: 80px; flex: none; }
.levels { display: grid; gap: 7px; }
.level { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; text-align: left; font-weight: 700; font-size: 14px; font-family: inherit; }
.level b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(108, 92, 231, .12); font-size: 12px; flex: none; }

/* ---------- trends ---------- */
.streak { position: relative; overflow: hidden; margin-top: 14px; padding: 18px 20px; border-radius: 28px; color: #fff; background: var(--gloss); box-shadow: var(--gloss-shadow); display: flex; align-items: center; gap: 16px; }
.streak__flame { font-size: 40px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .2)); animation: flicker 2.4s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.08) rotate(3deg); } }
.streak strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.streak > div > span { font-size: 13.5px; opacity: .9; }
.insights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.insights li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .5); font-size: 14px; font-weight: 600; }
.insights li::before { content: "✦"; color: #c9932a; }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mcard { padding: 14px; border-radius: 22px; min-width: 0; }
.mcard__top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.mcard__dot { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--c); }
.mcard__dot svg { width: 15px; height: 15px; }
.mcard__val { margin-top: 8px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.mcard__val small { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 3px; }
.mcard__sub { font-size: 12px; font-weight: 700; color: var(--muted); }
.mcard__sub.good { color: var(--ok); } .mcard__sub.bad { color: var(--clay-ink); }
.mcard svg.spark { width: 100%; height: 38px; margin-top: 6px; overflow: visible; }
.prow { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.prow + .prow { margin-top: 10px; }
.prow__body { flex: 1; min-width: 0; }
.prow__body strong { display: block; font-size: 15px; }
.prow__body span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.prow svg.spark { width: 96px; height: 34px; flex: none; }
.sev { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: rgba(124, 114, 178, .12); color: var(--ink-2); }
.sev--0 { background: #e2f6ea; color: #23784a; } .sev--1 { background: #eef7d9; color: #55761a; } .sev--2 { background: #fff1d6; color: #9a6410; }
.sev--3 { background: #ffe3d6; color: #b04a1f; } .sev--4 { background: #fdd9d4; color: #a32e22; }
.guide-link { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 18px; padding: 12px; border: 0; background: none; color: var(--accent); font-weight: 800; font-size: 14px; }
.guide-link svg { width: 18px; height: 18px; }
.guide h3 { font-size: 15.5px; font-weight: 800; margin: 18px 0 6px; } .guide h3:first-child { margin-top: 0; }
.guide p { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.guide__scale { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.guide__scale li { display: flex; align-items: center; gap: 8px; } .guide__scale .sev { min-width: 46px; text-align: center; }
.guide__note { margin-top: 14px !important; font-size: 12.5px !important; color: var(--muted) !important; font-style: italic; }


/* ===== features/payments/payments.css ===== */
/* Payments */
.due-card {
  margin-top: 10px; padding: 20px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.due-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.due-card__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.due-card__amount { font-family: var(--serif); font-size: 46px; font-weight: 700; line-height: 1; margin-top: 6px; letter-spacing: -.01em; }
.due-card__when { font-size: 14px; color: var(--ink-2); margin-top: 6px; font-weight: 600; }
.due-card--overdue .due-card__when { color: var(--danger); }
.due-card--due .due-card__when { color: var(--warn); }
.due-card__actions { margin-top: 18px; display: grid; gap: 10px; }
.due-card__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.due-card__off { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--sand); color: var(--ink-2); font-size: 14px; }

.qr-box { margin-top: 16px; padding: 18px; border-radius: var(--r); background: var(--teal-50); text-align: center; animation: screen-in .3s var(--ease); }
.qr-box__code { display: inline-block; padding: 12px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); }
.qr-box__code img, .qr-box__code svg { width: 200px; height: 200px; image-rendering: pixelated; }
.qr-box__to { margin-top: 12px; }
.qr-box__to strong { display: block; }
.qr-box__to span { font-size: 13px; color: var(--muted); }
.qr-box__hint { font-size: 13px; color: var(--muted); margin-top: 8px; }

.pending {
  display: flex; gap: 12px; align-items: center; margin-top: 12px;
  padding: 14px 16px; border-radius: var(--r); background: var(--warn-soft); color: #7a4f12;
}
.pending svg { width: 22px; height: 22px; flex: none; }
.pending strong { display: block; font-size: 14.5px; }
.pending span { font-size: 13px; }

.pay-year { font-size: 13px; font-weight: 800; color: var(--muted); margin: 16px 4px 8px; }
.pay-year:first-child { margin-top: 0; }
.pay-row__amount { font-weight: 800; color: var(--ink); font-size: 15.5px; }

/* Receipt — same look as Studio Manager's receipt (its own blue/green colours, not the app theme) */
.ysh-rcpt { border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(15, 8, 40, .22); font-family: Arial, "Segoe UI", Helvetica, sans-serif; font-variant-numeric: normal; }
.ysh-rcpt__head { background-color: #1e5fae; background: linear-gradient(120deg, #1e5fae 0%, #4fa8dc 50%, #5ecf9a 100%); color: #fff; padding: 18px 20px 14px; text-align: center; }
.ysh-rcpt__brand { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.ysh-rcpt__addr { font-size: 10px; opacity: .85; line-height: 1.5; }
.ysh-rcpt__title { font-size: 13px; font-weight: 700; margin-top: 14px; text-decoration: underline; }
.ysh-rcpt__meta { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 14px; text-align: left; gap: 12px; }
.ysh-rcpt__meta-label { font-size: 9.5px; opacity: .8; }
.ysh-rcpt__no { font-size: 12px; font-weight: 700; white-space: nowrap; margin-top: 2px; }
.ysh-rcpt__date { font-size: 11.5px; white-space: nowrap; margin-top: 2px; }
.ysh-rcpt__body { background: #fff; color: #1a1d2e; padding: 16px 18px 6px; }
.ysh-rcpt__amount { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed #c7cce0; padding-bottom: 12px; margin-bottom: 4px; }
.ysh-rcpt__amount span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #6b7280; }
.ysh-rcpt__amount strong { font-size: 22px; font-weight: 800; color: #1e5fae; }
.ysh-rcpt__row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid #efece3; }
.ysh-rcpt__row span { color: #6b7280; }
.ysh-rcpt__row b { font-weight: 700; text-align: right; color: #1a1d2e; }
.ysh-rcpt__foot { background: #fff; padding: 10px 18px 14px; font-size: 11px; color: #6b7280; }
.ysh-rcpt__thanks { font-weight: 700; color: #1a1d2e; margin-bottom: 3px; }
.ysh-rcpt__wish { font-style: italic; }


/* ===== features/profile/profile.css ===== */
/* Profile */
.section-title .btn { margin: -8px -6px -8px 0; }
.section-title .btn svg { width: 16px; height: 16px; }
label.row { cursor: pointer; }
.input--pin { letter-spacing: .5em; font-size: 22px; font-weight: 800; text-align: center; }

/* Two details side by side (My details, Set by the studio) — less scrolling. row--wide takes the whole line,
   row--left is the left one of a pair (draws the line between the two). */
.list.list--pairs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.list--pairs > .row { gap: 10px; padding: 12px; border-top: 1px solid rgba(124, 114, 178, .12); }
.list--pairs > .row:first-child, .list--pairs > .row--left:first-child + .row { border-top: 0; }
.list--pairs > .row--wide { grid-column: 1 / -1; padding: 12px 16px; gap: 14px; }
.list--pairs > .row--left { border-right: 1px solid rgba(124, 114, 178, .12); }
.list--pairs > .row:not(.row--wide) .row__icon { width: 32px; height: 32px; border-radius: 11px; }
.list--pairs > .row:not(.row--wide) .row__icon svg { width: 17px; height: 17px; }
.list--pairs > .row:not(.row--wide) .row__icon--art svg.art { width: 24px; height: 24px; }
.list--pairs > .row:not(.row--wide) .row__label { font-size: 11.5px; line-height: 1.3; }
.list--pairs > .row:not(.row--wide) .row__value { font-size: 14.5px; }
@media (max-width: 340px) {
  .list--pairs > .row:not(.row--wide) { padding: 11px 9px; gap: 8px; }
  .list--pairs > .row:not(.row--wide) .row__icon { width: 28px; height: 28px; }
}


/* ===== features/health/health.css ===== */
/* Health profile (inside Profile) */
.hchips { display: flex; flex-wrap: wrap; gap: 8px; }
.hchip { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--sand-300); background: var(--field); font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.hchip[aria-pressed="true"] { background: var(--teal-900); border-color: var(--accent-strong); color: #fff; }
.health-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }


/* ===== features/goals/goals.css ===== */
/* Goals pane + self-tests (inside the Track tab) */
.goals-intro { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin-top: 14px; }
.goals-intro__art { flex: none; width: 44px; height: 44px; }
.goals-intro p { font-size: 13.5px; color: var(--ink-2); font-weight: 600; line-height: 1.45; }
.goal { margin-top: 14px; padding: 16px; }
.goal__head { display: flex; align-items: center; gap: 12px; }
.goal__art { flex: none; width: 50px; height: 50px; padding: 5px; border-radius: 16px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 #fff, 0 6px 14px -10px rgba(76, 64, 150, .5); }
.goal__title { flex: 1; min-width: 0; }
.goal__title strong { display: block; font-size: 16px; font-weight: 800; }
.goal__target { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.goal__pill { flex: none; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #fff1d6; color: #8a5a0c; white-space: nowrap; }
.goal--approved .goal__pill { background: #e2f6ea; color: #23784a; }
.goal--declined .goal__pill { background: #fde3df; color: #a32e22; }
.goal__body:not(:empty) { margin-top: 12px; }
.goal__bar { height: 12px; border-radius: 999px; background: rgba(124, 114, 178, .15); box-shadow: var(--emboss-in); overflow: hidden; }
.goal__bar i { display: block; height: 100%; border-radius: 999px; background: var(--gloss); box-shadow: 0 0 10px rgba(108, 92, 231, .5); transition: width .8s var(--ease); }
.goal__nums { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.goal__nums b { color: var(--accent); font-weight: 800; text-align: center; }
.goal__hint { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.goal__note { font-size: 13px; color: var(--ink-2); margin-top: 8px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .6); }
.goal__actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.goals-max { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.goal-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goal-pick__opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 20px; font: inherit; font-weight: 800; font-size: 13.5px; color: var(--ink); text-align: center;
  background: var(--emboss-bg); box-shadow: var(--emboss); border: 0; }
.goal-pick__opt:active { box-shadow: var(--emboss-in); }
.goal-pick__art { width: 48px; height: 48px; }
.goal-target { text-align: center; }
.goal-target__art { width: 64px; height: 64px; margin: 0 auto; }
.goal-target__q { font-weight: 800; font-size: 16px; margin-top: 8px; }
.goal-target__stepper { justify-content: center; margin-top: 12px; }
.goal-target__stepper output { min-width: 120px; font-size: 26px; }
.goal-target__now { font-size: 13.5px; color: var(--accent); font-weight: 700; margin-top: 10px; min-height: 1em; }
.goal-target__help { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.test + .test { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(124, 114, 178, .14); }
.test__head { display: flex; align-items: center; gap: 10px; }
.test__head > div { flex: 1; min-width: 0; }
.test__art { flex: none; width: 38px; height: 38px; }
.test__head strong { display: block; font-size: 15px; font-weight: 800; }
.test__why { font-size: 12px; color: var(--accent); font-weight: 700; }
.test__val { flex: none; font-size: 12px; font-weight: 800; color: var(--ok); text-align: right; max-width: 40%; }
.test__how { font-size: 13px; color: var(--ink-2); margin: 8px 0 10px; line-height: 1.45; }
.timer__field { display: flex; align-items: center; gap: 6px; } .timer__field span { font-size: 13px; color: var(--muted); font-weight: 700; }
.tests-empty { font-size: 14px; color: var(--ink-2); }
.tests-empty__btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 340px) { .goal-pick { grid-template-columns: 1fr 1fr; gap: 8px; } .goal__head { flex-wrap: wrap; } }


/* ===== features/refer/refer.css ===== */
/* Refer a friend */
.refer-hero {
  margin-top: 10px; padding: 22px 20px 20px; border-radius: var(--r-lg); color: #fff; text-align: center;
  background: radial-gradient(260px 200px at 50% -20%, rgba(174, 181, 227, .4), transparent 70%),
              linear-gradient(160deg, var(--teal-700), var(--teal-900) 60%, var(--teal-950));
  box-shadow: var(--shadow-lg);
}
.refer-hero__icon { width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); }
.refer-hero__icon svg { width: 32px; height: 32px; color: #ffd27a; }
.refer-hero__title { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.05; }
.refer-hero__text { margin: 8px auto 16px; max-width: 320px; color: rgba(255, 255, 255, .85); font-size: 14.5px; }
.refer-code {
  display: flex; align-items: center; gap: 10px; margin: 0 auto 14px; padding: 8px 8px 8px 16px; max-width: 300px;
  border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px dashed rgba(255, 255, 255, .45); text-align: left;
}
.refer-code span { font-size: 12px; color: rgba(255, 255, 255, .75); }
.refer-code strong { flex: 1; font-size: 18px; letter-spacing: .06em; }
.refer-code .icon-btn { background: rgba(255, 255, 255, .18); color: #fff; }

.friend { display: flex; align-items: center; gap: 12px; }
.friend__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--clay-soft); color: var(--clay-ink); font-weight: 800; flex: none; }
.chip--status-new { background: var(--sand); color: var(--ink-2); }
.chip--status-contacted, .chip--status-trial-booked { background: var(--warn-soft); color: var(--warn); }
.chip--status-joined { background: var(--ok-soft); color: var(--ok); }
.chip--status-not-interested { background: var(--sand); color: var(--muted); }


/* ===== features/learn/learn.css ===== */
/* Yoga basics (#/learn) */
.learn-hero { display: flex; align-items: center; gap: 14px; padding: 16px; }
.learn-hero__art { flex: none; width: 64px; height: 64px; }
.learn-hero h3 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.learn-hero p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }

.learn-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.lcard { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; text-align: left; font: inherit; color: var(--ink); min-width: 0; }
.lcard__art { width: 46px; height: 46px; margin-bottom: 8px; }
.lcard strong { font-size: 15px; font-weight: 800; }
.lcard span:not(.lcard__art) { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.lcard--wide { flex-direction: row; align-items: center; gap: 14px; width: 100%; margin-top: 14px; }
.lcard--wide .lcard__art { margin: 0; flex: none; }
.lcard--wide > span:last-child { display: flex; flex-direction: column; }
.lcard:active, .pose:active { transform: scale(.98); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 800; }

.poses { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pose { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 12px 12px; text-align: left; font: inherit; color: var(--ink); min-width: 0; }
.pose__svg { width: 100%; height: auto; aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .6); border-radius: 16px; margin-bottom: 8px; }
.pose__name { font-size: 14px; font-weight: 800; line-height: 1.2; }
.pose__sk { font-size: 12px; color: var(--muted); font-weight: 700; font-style: italic; margin-top: 1px; }
.pose__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pose__tags i { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(63, 174, 106, .14); color: #23784a; }
.pose__tags--big i { font-size: 12px; padding: 3px 10px; }

.learn-note { margin: 18px 6px 0; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.5; }

/* sheets */
.pose-sheet__art { background: rgba(255, 255, 255, .7); border-radius: 22px; padding: 6px; box-shadow: var(--emboss-in); }
.pose-sheet__art svg { width: 100%; height: auto; display: block; }
.pose-sheet__sk { margin-top: 10px; font-weight: 700; font-style: italic; color: var(--muted); }
.pose-sheet h3, .guide-sheet h3 { font-size: 15.5px; font-weight: 800; margin: 18px 0 6px; }
.pose-sheet ol, .guide-sheet ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.pose-sheet p, .guide-sheet p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.pose-sheet__care { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px; border-radius: 16px; background: #fff6dc; }
.pose-sheet__care svg { width: 30px; height: 30px; flex: none; }
.pose-sheet__care p { font-size: 13.5px; color: #6b4a0f; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.guide-sheet__art { width: 64px; height: 64px; }
.guide-sheet h3:first-of-type { margin-top: 10px; }
.words { margin: 10px 0 0; display: grid; gap: 8px; }
.words div { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .6); }
.words dt { font-weight: 800; font-size: 14.5px; }
.words dd { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }

@media (max-width: 340px) { .poses, .learn-cards { gap: 9px; } .pose { padding: 8px 9px 10px; } .lcard { padding: 12px; } }


/* ===== features/notes/notes.css ===== */
/* Trainer notes card (Home) */
.tnote {
  display: flex; gap: 14px; padding: 16px; margin-top: 12px; border-radius: var(--r);
  background: linear-gradient(160deg, var(--surface-solid) 0%, var(--teal-50) 100%); border: 1px solid var(--teal-200); box-shadow: var(--shadow-sm);
}
.tnote__icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-900); color: #fff; flex: none; }
.tnote__icon svg { width: 22px; height: 22px; }
.tnote__label { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.tnote__text { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.3; margin-top: 4px; white-space: pre-line; }
.tnote__by { font-size: 12.5px; color: var(--muted); margin-top: 6px; }


/* ===== features/wishes/wishes.css ===== */
/* Birthday / anniversary card (Home) */
.celebrate {
  position: relative; overflow: hidden; text-align: center; margin-bottom: 14px;
  padding: 20px 18px; border-radius: var(--r-lg); color: #5d3410;
  background: linear-gradient(150deg, #fff3d6 0%, #ffd9b3 55%, #f7c1d0 100%);
  box-shadow: var(--shadow);
}
.celebrate__confetti {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(circle, #e09a3e 2px, transparent 2.5px), radial-gradient(circle, #3a4282 2px, transparent 2.5px),
    radial-gradient(circle, #c2513a 1.8px, transparent 2.3px), radial-gradient(circle, #9b87d6 2px, transparent 2.5px);
  background-size: 60px 60px, 80px 70px, 50px 90px, 90px 50px;
  background-position: 0 0, 30px 20px, 15px 40px, 50px 10px;
  animation: confetti 8s linear infinite;
}
@keyframes confetti { to { background-position: 0 120px, 30px 160px, 15px 220px, 50px 110px; } }
.celebrate__emoji { position: relative; font-size: 40px; line-height: 1; }
.celebrate__title { position: relative; font-family: var(--serif); font-size: 26px; font-weight: 700; margin-top: 8px; }
.celebrate__text { position: relative; font-size: 14px; margin-top: 4px; }


/* ===== features/tips/tips.css ===== */
/* Daily yoga tip card (Home) */
.tip {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; padding: 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tip__badge {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 26px; font-weight: 700; color: #5d3410;
  background: radial-gradient(circle at 30% 30%, #ffe7a8, #f0b44a); box-shadow: 0 6px 14px -6px rgba(176, 120, 20, .7);
}
.tip__eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--clay-ink); }
.tip__title { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.15; margin-top: 2px; }
.tip__text { font-size: 14px; color: var(--ink-2); margin-top: 4px; }


/* ===== features/breathe/breathe.css ===== */
/* Guided breathing — full-screen, calm colours that follow the time of day */
.breathe {
  position: fixed; inset: 0; z-index: 70; color: #fff; overflow: auto;
  display: flex; flex-direction: column; justify-content: center; padding: calc(60px + var(--safe-t)) 24px calc(30px + var(--safe-b));
  background: radial-gradient(80% 60% at 50% 20%, rgba(174, 181, 227, .45), transparent 70%), linear-gradient(170deg, #3a4282, #1f2340 55%, #141734);
  animation: screen-in .35s var(--ease);
}
html[data-time="sunrise"] .breathe { background: radial-gradient(80% 60% at 50% 15%, rgba(255, 210, 160, .55), transparent 70%), linear-gradient(170deg, #c27a4a, #7a4a2e 55%, #3e2615); }
html[data-time="dusk"] .breathe { background: radial-gradient(80% 60% at 50% 15%, rgba(248, 190, 200, .45), transparent 70%), linear-gradient(170deg, #7c5a9e, #4a3466 55%, #261a38); }
html[data-time="night"] .breathe { background: radial-gradient(80% 60% at 50% 15%, rgba(72, 64, 128, .45), transparent 70%), linear-gradient(170deg, #5b56a8, #3b3680 60%, #2a2760); }
.breathe__close { position: absolute; top: calc(16px + var(--safe-t)); right: 16px; background: rgba(255, 255, 255, .16); color: #fff; }
.breathe__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .75; text-align: center; }
.breathe__title { font-family: var(--serif); font-size: 38px; font-weight: 600; text-align: center; margin-top: 4px; }
.breathe__intro { text-align: center; opacity: .85; margin: 8px auto 22px; max-width: 300px; font-size: 15px; }
.breathe__label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin: 14px 2px 8px; }
.breathe__opts { display: grid; gap: 8px; }
.breathe__opts--row { grid-template-columns: repeat(3, 1fr); }
.breathe__opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 16px; text-align: left;
  background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .18); color: #fff; font: inherit;
}
.breathe__opts--row .breathe__opt { align-items: center; font-weight: 800; }
.breathe__opt strong { font-size: 15px; }
.breathe__opt span { font-size: 12.5px; opacity: .8; }
.breathe__opt[aria-checked="true"] { background: rgba(255, 255, 255, .24); border-color: #fff; }
.breathe__start { margin-top: 24px; }
.breathe__run, .breathe__done { display: flex; flex-direction: column; align-items: center; }
.breathe__orb { position: relative; width: 280px; height: 280px; display: grid; place-items: center; margin: 10px auto 26px; }
.breathe__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .35); }
.breathe__circle {
  position: absolute; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12) 60%, rgba(255, 255, 255, .05));
  box-shadow: 0 0 60px rgba(255, 255, 255, .25), inset 0 0 40px rgba(255, 255, 255, .25);
  transform: scale(.45); transition-property: transform; transition-timing-function: ease-in-out;
}
.breathe__say { position: relative; text-align: center; }
.breathe__say strong { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; }
.breathe__say span { display: block; font-size: 40px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.breathe__left { opacity: .8; font-size: 14px; }
.breathe__stop { color: #fff; margin-top: 10px; }
.breathe__done-icon { font-size: 54px; }
.breathe .btn--ghost { color: #fff; }
@media (prefers-reduced-motion: reduce) { .breathe__circle { transition-duration: .01ms !important; } }


/* ===== features/welcome/welcome.css ===== */
/* Welcome slides — shown once on a new phone, before login */
.welcome { position: fixed; inset: 0; z-index: 65; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; animation: screen-in .3s var(--ease); }
.welcome::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 45% at 100% 0%, var(--art-1), transparent 70%), radial-gradient(60% 40% at 0% 40%, var(--art-2), transparent 70%), var(--bg);
}
.welcome { isolation: isolate; }
.welcome__skip { position: absolute; top: calc(16px + var(--safe-t)); right: 16px; z-index: 2; border: 0; background: var(--surface); color: var(--muted); font-weight: 700; padding: 8px 14px; border-radius: 999px; }
.welcome__track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.welcome__track::-webkit-scrollbar { display: none; }
.welcome__slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; justify-content: center; padding: calc(70px + var(--safe-t)) 30px 20px; }
.welcome__slide h2 { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1.02; margin-top: 30px; }
.welcome__slide h2 em { color: var(--accent); }
.welcome__slide p { margin-top: 14px; font-size: 15.5px; color: var(--ink-2); max-width: 340px; }
.welcome__art { width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; color: #fff; position: relative; box-shadow: var(--shadow-lg); }
.welcome__art::after { content: ""; position: absolute; inset: -16px; border-radius: 50%; border: 1.5px dashed var(--sand-300); }
.welcome__art svg { width: 78px; height: 78px; stroke-width: 1.4; }
.welcome__art--1 { background: radial-gradient(circle at 30% 25%, #f5c17a, #c2613f); }
.welcome__art--2 { background: radial-gradient(circle at 30% 25%, #b6a2e6, #5b3fa3); }
.welcome__art--3 { background: radial-gradient(circle at 30% 25%, #a3aaf0, #1f2340); }
.welcome__foot { padding: 12px 24px calc(24px + var(--safe-b)); }
.welcome__dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.welcome__dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--sand-300); transition: width .25s, background .25s; }
.welcome__dots span.on { width: 24px; background: var(--accent); }


/* ===== styles/glass.css ===== */
/* Design system v3 — "Aura": frosted GLASS cards floating over a slowly moving colour aura, EMBOSSED (raised)
   controls that press in when tapped, and GLOSSY highlights on the main buttons. Always light. Yoga-themed: lotus
   watermark and chakra colours for everything you track. Loaded LAST so it sets the look of every screen. */

:root {
  --sans: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, sans-serif;   /* headings use the same modern face */
  --bg: #f3f1fa;
  --ink: #1e1b3a; --ink-2: #4a4766; --muted: #73708f;
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-shadow: 0 10px 36px -14px rgba(76, 64, 150, .32), 0 2px 6px -2px rgba(76, 64, 150, .08);
  --emboss-bg: linear-gradient(145deg, #ffffff, #ebe8f6);
  --emboss: 6px 6px 14px rgba(124, 114, 178, .26), -6px -6px 14px rgba(255, 255, 255, .95);
  --emboss-in: inset 4px 4px 10px rgba(124, 114, 178, .22), inset -4px -4px 10px rgba(255, 255, 255, .9);
  --gloss: linear-gradient(135deg, #6c5ce7 0%, #8e6ff0 45%, #b06bd8 100%);
  --gloss-shadow: 0 14px 28px -12px rgba(108, 92, 231, .75);
  --surface: var(--glass); --surface-solid: rgba(255, 255, 255, .72);
  --accent: #6c4fd6; --accent-strong: #2e2470;
  /* chakra colours — one per tracked area */
  --c-root: #e2524a;      /* body: weight, steps */
  --c-sacral: #f08a3c;    /* energy */
  --c-solar: #e8b52a;     /* mood */
  --c-heart: #3fae6a;     /* practice */
  --c-throat: #2f9bd6;    /* water */
  --c-third: #5b5fd6;     /* sleep */
  --c-crown: #9a5bd6;     /* meditation / stress */
  --r: 26px; --r-lg: 32px;
}
html[data-time="sunrise"] { --aura-1: #ffc9a3; --aura-2: #ffe3a8; --aura-3: #f7b8cf; --aura-4: #c9d3ff; --bg: #fbf3ee; }
html[data-time="day"], html:not([data-time]) { --aura-1: #b9c7ff; --aura-2: #a8e6d6; --aura-3: #ffd6c2; --aura-4: #d9c9ff; --bg: #f1f4fb; }
html[data-time="dusk"] { --aura-1: #f6b2c8; --aura-2: #cdb4ff; --aura-3: #ffcfa3; --aura-4: #b8c4ff; --bg: #f7f0f6; }
html[data-time="night"] { --aura-1: #c4b5ff; --aura-2: #a9b8ff; --aura-3: #e7c4f7; --aura-4: #b5e3f2; --bg: #f1f0fb; }

body { font-family: var(--sans); font-size: 15px; background: var(--bg); color: var(--ink); letter-spacing: -.005em; }
.app { background: transparent; box-shadow: none; isolation: isolate; }

/* ---------- the aura: four soft colour blobs drifting slowly + a faint lotus ---------- */
.app::before, .app::after { content: ""; position: fixed; z-index: -1; pointer-events: none; }
.app::before {
  inset: -20%; opacity: 1;
  background:
    radial-gradient(38% 30% at 20% 18%, var(--aura-1), transparent 70%),
    radial-gradient(34% 28% at 85% 22%, var(--aura-2), transparent 70%),
    radial-gradient(40% 32% at 75% 78%, var(--aura-3), transparent 70%),
    radial-gradient(36% 30% at 15% 85%, var(--aura-4), transparent 70%),
    var(--bg);
  filter: saturate(1.05);
  animation: aura-drift 38s ease-in-out infinite alternate;
}
.app::after {
  left: 50%; top: 46%; width: 520px; height: 520px; transform: translate(-50%, -50%); opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a2f8a' stroke-width='.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20c-4.2 0-8.2-2-9-5.8 3-.9 6 .1 9 2.2 3-2.1 6-3.1 9-2.2-.8 3.8-4.8 5.8-9 5.8Z'/%3E%3Cpath d='M12 16.4c-2.2-2.1-3.2-5.3-2-9.4.9.2 2 1.2 2 1.2s1.1-1 2-1.2c1.2 4.1.2 7.3-2 9.4Z'/%3E%3Cpath d='M8.7 15.6C6.1 13.8 5.4 10.8 5.9 8c2 .4 3.6 1.6 4.5 3.2M15.3 15.6c2.6-1.8 3.3-4.8 2.8-7.6-2 .4-3.6 1.6-4.5 3.2'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: lotus-breathe 12s ease-in-out infinite;
}
@keyframes aura-drift { 0% { transform: translate(0, 0) rotate(0deg) scale(1); } 50% { transform: translate(3%, -2%) rotate(8deg) scale(1.05); } 100% { transform: translate(-3%, 3%) rotate(-6deg) scale(1.02); } }
@keyframes lotus-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(.94); } 50% { transform: translate(-50%, -50%) scale(1.04); } }

/* ---------- glass ---------- */
.card, .list, .tile, .problem, .tnote, .badge, .jr-stat, .tl__card, .due-card, .journey-hero, .milestone, .pending, .glass,
.review-card, .install-card, .feedback, .qr-box, .refer-hero ~ .card {
  background: var(--glass) !important; border: 1px solid var(--glass-edge) !important; border-radius: var(--r);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
}
.tl--break .tl__card, .badge--locked { background: rgba(255, 255, 255, .28) !important; box-shadow: none !important; border-style: dashed !important; }
.list { overflow: hidden; }
.row + .row { border-top: 1px solid rgba(124, 114, 178, .12); }

/* ---------- emboss (raised, presses in) ---------- */
.emboss, .row__icon, .duo__icon, .jr-stat__icon, .icon-btn, .avatar, .chip-btn, .hchip, .scale__opt, .level, .feedback__face, .pin__box,
.stepper button, .seg button, .day-chip {
  background: var(--emboss-bg) !important; border: 0 !important; box-shadow: var(--emboss) !important; color: var(--ink);
  transition: box-shadow .2s var(--ease), transform .15s var(--ease);
}
.emboss:active, .row__icon:active, .icon-btn:active, .chip-btn:active, .hchip:active, .scale__opt:active, .level:active, .feedback__face:active,
.stepper button:active, .seg button:active, .day-chip:active { box-shadow: var(--emboss-in) !important; transform: scale(.97); }
.hchip[aria-pressed="true"], .scale__opt[aria-checked="true"], .level[aria-checked="true"], .feedback__face[aria-pressed="true"],
.seg button[aria-pressed="true"], .day-chip[aria-pressed="true"], .chip-btn[aria-selected="true"] {
  background: var(--gloss) !important; color: #fff !important; box-shadow: var(--gloss-shadow), inset 0 1px 0 rgba(255, 255, 255, .4) !important;
}
.scale__opt[aria-checked="true"] .scale__word, .level[aria-checked="true"] b { color: #fff !important; }
.level[aria-checked="true"] b { background: rgba(255, 255, 255, .25) !important; }
.row__icon, .duo__icon, .jr-stat__icon { color: var(--accent) !important; border-radius: 16px; }

/* inputs: pressed-in wells */
.input, .input-group { background: rgba(255, 255, 255, .55) !important; border: 1px solid rgba(255, 255, 255, .9) !important; box-shadow: var(--emboss-in) !important; border-radius: 18px; }
.input-group .input { box-shadow: none !important; border: 0 !important; background: transparent !important; }
.input-group__addon { background: transparent !important; border-right: 1px solid rgba(124, 114, 178, .15) !important; }
.input:focus, .input-group:focus-within { box-shadow: var(--emboss-in), 0 0 0 3px rgba(108, 92, 231, .28) !important; }

/* ---------- gloss buttons ---------- */
.btn { border-radius: 999px; min-height: 52px; font-weight: 800; letter-spacing: 0; position: relative; overflow: hidden; }
.btn--primary { background: var(--gloss) !important; color: #fff !important; box-shadow: var(--gloss-shadow) !important; }
.btn--primary::after, .gloss::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: 2px; height: 45%; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
}
.btn--soft, .btn--light { background: var(--emboss-bg) !important; color: var(--accent-strong) !important; box-shadow: var(--emboss) !important; }
.btn--soft:active, .btn--light:active { box-shadow: var(--emboss-in) !important; }
.btn--ghost { color: var(--accent) !important; }
.btn--wa { background: linear-gradient(135deg, #25d366, #128c7e) !important; color: #fff !important; box-shadow: 0 14px 28px -12px rgba(18, 140, 126, .7) !important; }
.btn--danger { background: linear-gradient(135deg, #ff8a7a, #e2524a) !important; color: #fff !important; }
.chip { border-radius: 999px; font-weight: 800; padding: 5px 11px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.switch span { background: rgba(124, 114, 178, .25); box-shadow: var(--emboss-in); }
.switch input:checked + span { background: var(--gloss); }

/* ---------- page header (every screen except Home) ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: calc(22px + var(--safe-t)) 2px 16px; }
.page-head__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.page-head__title { font-family: var(--sans); font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-top: 4px; color: var(--ink); }
.page-head .avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; text-decoration: none; }
.page-head__back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; color: var(--muted); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.page-head__back svg { width: 18px; height: 18px; transform: rotate(180deg); }

.section-title { margin: 26px 4px 12px; font-family: var(--sans); font-size: 17px; font-weight: 800; letter-spacing: -.01em; text-transform: none; color: var(--ink); display: flex; align-items: baseline; justify-content: space-between; }
.section-title > span:not(.btn), .section-title a { font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: none; }

/* big numbers everywhere: modern, tight */
.stat__value--big, .ring__num, .jr-stat strong, .tile__value, .due-card__amount, .receipt__amount { font-family: var(--sans) !important; font-weight: 800 !important; letter-spacing: -.03em; }

/* ---------- compact top bar: glass, slides in after scrolling ---------- */
.topbar {
  position: fixed; top: 0; left: 50%; width: 100%; max-width: 480px; transform: translate(-50%, -110%);
  transition: transform .35s var(--ease); padding-top: calc(10px + var(--safe-t)); padding-bottom: 10px;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, .8);
}
.topbar.show { transform: translate(-50%, 0); }
.topbar__title strong { font-family: var(--sans); font-size: 17px; font-weight: 800; }
.topbar__title span { display: none; }

/* ---------- floating glass tab bar with a glossy active pill ---------- */
.tabbar {
  bottom: calc(14px + var(--safe-b)); width: calc(100% - 28px); max-width: 452px; height: 68px;
  display: flex; gap: 4px; padding: 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(24px) saturate(1.7); -webkit-backdrop-filter: blur(24px) saturate(1.7);
  box-shadow: 0 18px 40px -16px rgba(76, 64, 150, .45), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.tab { flex: 1 1 0; flex-direction: row; gap: 7px; border-radius: 999px; color: var(--muted); min-width: 0; transition: flex-grow .45s var(--ease), color .3s; position: relative; overflow: hidden; }
.tab__icon { width: auto; height: auto; background: none !important; }
.tab svg { width: 23px; height: 23px; }
.tab__label { font-size: 13px; font-weight: 800; white-space: nowrap; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .45s var(--ease), opacity .3s; }
.tab[aria-current="page"] { flex-grow: 2.2; color: #fff; background: var(--gloss); box-shadow: var(--gloss-shadow), inset 0 1px 0 rgba(255, 255, 255, .45); }
.tab[aria-current="page"]::after { content: ""; position: absolute; left: 10%; right: 10%; top: 2px; height: 45%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .4), transparent); pointer-events: none; }
.tab[aria-current="page"] .tab__label { max-width: 90px; opacity: 1; }
.tab[aria-current="page"] svg { animation: tab-pop .45s var(--ease); }
@keyframes tab-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
.tab__dot { top: 12px; right: calc(50% - 16px); border-color: #fff; }
.screen { padding: 4px 16px calc(112px + var(--safe-b)); }
.toast { bottom: calc(98px + var(--safe-b)); background: rgba(30, 27, 58, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 999px; }

/* ---------- sheets: frosted, springy ---------- */
.sheet { background: rgba(250, 249, 255, .86); backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border-radius: 32px 32px 0 0; border-top: 1px solid #fff; transition: transform .45s cubic-bezier(.2, 1.1, .3, 1); }
.sheet__head h2 { font-family: var(--sans); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sheet-backdrop { background: rgba(40, 32, 90, .28); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

/* ---------- motion ---------- */
.screen { animation: none; }
.screen--fwd { animation: slide-fwd .5s var(--ease) both; }
.screen--back { animation: slide-back .5s var(--ease) both; }
@keyframes slide-fwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes slide-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.screen__body > div > * { animation: float-up .7s var(--ease) both; }
.screen__body > div > *:nth-child(2) { animation-delay: .06s; }
.screen__body > div > *:nth-child(3) { animation-delay: .12s; }
.screen__body > div > *:nth-child(4) { animation-delay: .18s; }
.screen__body > div > *:nth-child(5) { animation-delay: .24s; }
.screen__body > div > *:nth-child(6) { animation-delay: .3s; }
.screen__body > div > *:nth-child(n+7) { animation-delay: .36s; }
.screen > .page-head { animation: float-up .6s var(--ease) both; }
@keyframes float-up { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.tile, .problem, .badge, .tl, .qtile { animation: float-up .6s var(--ease) both; }
.tile:nth-child(2), .problem:nth-child(2), .badge:nth-child(2), .tl:nth-child(2), .qtile:nth-child(2) { animation-delay: .06s; }
.tile:nth-child(3), .problem:nth-child(3), .badge:nth-child(3), .tl:nth-child(3), .qtile:nth-child(3) { animation-delay: .12s; }
.tile:nth-child(4), .problem:nth-child(4), .badge:nth-child(4), .tl:nth-child(4), .qtile:nth-child(4) { animation-delay: .18s; }
.tile:nth-child(n+5), .problem:nth-child(n+5), .badge:nth-child(n+5), .tl:nth-child(n+5), .qtile:nth-child(n+5) { animation-delay: .24s; }
.badge--earned .medal__disc { animation: medal-in .7s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes medal-in { from { transform: scale(.4) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
.skeleton { border-radius: var(--r); background: linear-gradient(90deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.75) 50%, rgba(255,255,255,.35) 100%); background-size: 200% 100%; }

@media (prefers-reduced-motion: reduce) {
  .app::before, .app::after, .screen--fwd, .screen--back, .screen__body > div > *, .tile, .problem, .badge, .tl, .qtile { animation: none !important; }
}
/* browsers without blur: fall back to more solid glass */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: rgba(255, 255, 255, .9); }
}

/* ---------- login + welcome on the aura ---------- */
.login { background: transparent; }
.login__card { background: rgba(255, 255, 255, .62) !important; backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); border-top: 1px solid #fff; box-shadow: 0 -10px 30px -18px rgba(76, 64, 150, .35); }
.login__foot { background: transparent; }
.login__title { font-family: var(--sans); font-weight: 800; letter-spacing: -.04em; font-size: 44px; }
.login__tagline { font-family: var(--sans); font-style: normal; font-weight: 700; font-size: 17px; color: #ffd9b0; }
.login__heading { font-weight: 800; letter-spacing: -.02em; }
.welcome { background: transparent; }
.welcome::before { background: radial-gradient(45% 35% at 85% 10%, var(--aura-1), transparent 70%), radial-gradient(45% 35% at 10% 45%, var(--aura-2), transparent 70%), radial-gradient(50% 40% at 70% 95%, var(--aura-3), transparent 70%), var(--bg) !important; }
.welcome__slide h2 { font-family: var(--sans); font-weight: 800; letter-spacing: -.04em; font-size: 36px; }
.welcome__skip { background: rgba(255, 255, 255, .6) !important; box-shadow: var(--emboss) !important; }
.welcome__dots span.on { background: var(--gloss); }
.breathe__title, .celebrate__title, .tnote__text { font-family: var(--sans) !important; font-weight: 800 !important; letter-spacing: -.02em; }
.tnote__text { font-size: 16px !important; }
.celebrate { border-radius: var(--r-lg); }
.journey-hero__headline, .challenge__title, .refer-hero__title { font-family: var(--sans) !important; font-weight: 800 !important; letter-spacing: -.03em; }
.refer-hero { background: var(--gloss) !important; box-shadow: var(--gloss-shadow) !important; }
.member-card { display: none; }

/* ---------- colour icons (core/art.js) ---------- */
svg.art { display: block; width: 100%; height: 100%; filter: drop-shadow(0 3px 4px rgba(76, 64, 150, .18)); }
.qtile__icon, .tcard__icon { background: rgba(255, 255, 255, .7) !important; box-shadow: inset 0 1px 0 #fff, 0 8px 16px -10px var(--c) !important; padding: 5px; }
.qtile__icon::after, .tcard__icon::after { display: none; }
.qtile__icon svg.art { width: 40px; height: 40px; }
.tcard__icon svg.art { width: 36px; height: 36px; }
.row__icon--art, .jr-stat__icon--art { background: rgba(255, 255, 255, .7) !important; box-shadow: inset 0 1px 0 #fff, 0 6px 14px -10px rgba(76, 64, 150, .5) !important; padding: 5px; }
.row__icon--art svg.art, .jr-stat__icon--art svg.art { width: 30px; height: 30px; }
.klass__row .row__icon--art svg.art { width: 32px; height: 32px; }

/* ---------- tab bar: colour icon + name on every tab ---------- */
.tabbar { height: auto; min-height: 72px; padding: 6px; gap: 2px; border-radius: 28px; width: calc(100% - 20px); bottom: calc(10px + var(--safe-b)); }
.tab { flex: 1 1 0; flex-direction: column; gap: 2px; padding: 6px 0 5px; border-radius: 22px; color: var(--ink-2); }
.tab__icon { width: 34px; height: 34px; display: grid; place-items: center; transition: transform .35s var(--ease); }
.tab svg.art { width: 30px; height: 30px; filter: drop-shadow(0 2px 3px rgba(76, 64, 150, .2)) saturate(.75); opacity: .85; transition: filter .3s, opacity .3s; }
.tab__label { max-width: none !important; opacity: 1 !important; overflow: visible; font-size: 11.5px; font-weight: 700; letter-spacing: 0; line-height: 1.1; }
.tab[aria-current="page"] { flex-grow: 1; color: var(--accent-strong); background: rgba(255, 255, 255, .85); box-shadow: var(--emboss) !important; }
.tab[aria-current="page"]::after { display: none; }
.tab[aria-current="page"] .tab__label { font-weight: 800; color: var(--accent); }
.tab[aria-current="page"] .tab__icon { transform: translateY(-1px) scale(1.08); }
.tab[aria-current="page"] svg.art { filter: drop-shadow(0 4px 6px rgba(76, 64, 150, .3)); opacity: 1; animation: tab-pop .45s var(--ease); }
.tab__dot { top: 6px; right: calc(50% - 20px); }
.screen { padding-bottom: calc(116px + var(--safe-b)); }

/* ---------- small phones ---------- */
html, body { overflow-x: clip; }
.app { overflow-x: clip; }
@media (max-width: 380px) {
  .screen { padding-left: 12px; padding-right: 12px; }
  .hhead__name { font-size: 32px; }
  .page-head__title { font-size: 27px; }
  .today { gap: 14px; padding: 14px; }
  .today__ring { width: 100px; height: 100px; }
  .today__ring .ring__num { font-size: 28px; }
  .today__title { font-size: 18px; }
  .qgrid { gap: 9px; }
  .qtile { padding: 12px 4px 10px; }
  .qtile strong { font-size: 13px; }
  .qtile > span:last-child { font-size: 11px; }
  .pass { grid-template-columns: auto 1fr; }
  .pass__pay { grid-column: 1 / -1; width: 100%; }
  .tcard { padding: 14px; }
  .faces { gap: 5px; }
  .faces button small { font-size: 9px; }
  .glasses { gap: 6px; }
  .tab__label { font-size: 10.5px; }
  .tab svg.art { width: 27px; height: 27px; }
}
@media (max-width: 340px) {
  .qgrid { grid-template-columns: repeat(2, 1fr); }
  .days { gap: 4px; }
  .day-chip b { font-size: 15px; }
  .mgrid { grid-template-columns: 1fr; }
  .stepper { gap: 6px; } .stepper output { min-width: 54px; }
}
.sheet { overflow-x: hidden; }
@media (max-width: 300px) { .tab__label { font-size: 9.5px; } .tab svg.art { width: 24px; height: 24px; } }
