/*
 * ═══════════════════════════════════════════════════════════════
 *  setu_styles.css  —  DnyanSetuAI Universal Stylesheet  v1.0
 *  Single source of truth for every screen in the project.
 *  Navy Blue · Gold · Pastel Grey — Mobile First · World Class
 * ═══════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
═══════════════════════════════════════════════════════════════ */
:root {

  /* ── Palette ── */
  --navy:        #0d1b3e;          /* primary deep navy */
  --navy-mid:    #1a2f5e;          /* headers, cards */
  --navy-soft:   #2e4482;          /* interactive navy */
  --navy-muted:  #5a6d9e;          /* subtle navy text */

  --gold:        #c8900a;          /* primary gold — text, icons, accents */
  --gold-bright: #e6a817;          /* hover / active gold */
  --gold-pale:   #fdf6e3;          /* gold tint bg */
  --gold-mid:    #f0c040;          /* stars, fill */

  --sage:        #0f6e56;          /* success, streak */
  --sage-pale:   #e6f7f1;          /* success bg */

  --grey-50:     #f8f8fb;          /* page canvas */
  --grey-100:    #f1f1f7;          /* surface/card */
  --grey-200:    #e4e4ef;          /* borders */
  --grey-300:    #cccce0;          /* disabled borders */
  --grey-400:    #9999bb;          /* muted text */
  --grey-600:    #52527a;          /* body-soft */
  --grey-800:    #1a1a2e;          /* body-strong */

  --error:       #c0392b;
  --white:       #ffffff;

  /* ── Semantic aliases ── */
  --ink:         var(--grey-800);
  --ink-soft:    var(--grey-600);
  --ink-muted:   var(--grey-400);
  --canvas:      var(--grey-50);
  --surface:     var(--grey-100);
  --border:      var(--grey-200);
  --shadow-sm:   0 1px 4px rgba(13,27,62,.08);
  --shadow-md:   0 4px 16px rgba(13,27,62,.12);
  --shadow-lg:   0 12px 40px rgba(13,27,62,.18);

  /* ── Spacing scale (4px base) ── */
  --s1:  4px;  --s2:  8px;  --s3: 12px;  --s4: 16px;
  --s5: 24px;  --s6: 32px;  --s7: 48px;  --s8: 64px;

  /* ── Type scale ── */
  --t-xs:  .72rem;
  --t-sm:  .85rem;
  --t-md:  1rem;
  --t-lg:  1.18rem;
  --t-xl:  1.45rem;
  --t-2xl: 1.85rem;

  /* ── Fonts ── */
  --ff-display: 'Tiro Devanagari Hindi', serif;
  --ff-body:    'Noto Sans Devanagari', sans-serif;

  /* ── Layout ── */
  --header-h:  62px;          /* two-line gold header */
  --ulzan-h:   30px;          /* ulzan context strip */
  --dots-h:    32px;
  --footer-h:  72px;
  --safe-bot:  env(safe-area-inset-bottom, 0px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

/* ═══════════════════════════════════════════════════════════════
   2. RESET + BASE
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--t-md);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { display: block; max-width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   3. APP SHELL
═══════════════════════════════════════════════════════════════ */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--canvas);
  box-shadow: var(--shadow-lg);
}

/* ── Header — Gold background, two-line: name + tagline ── */
#header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: linear-gradient(135deg, #d4940c 0%, var(--gold) 60%, #b87800 100%);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 var(--s3);
  gap: var(--s2);
  box-shadow: 0 3px 14px rgba(180,120,0,.35);
}

/* Left cluster: back + trust */
#header-left {
  display: flex; align-items: center; gap: var(--s1); flex-shrink: 0;
}
#back-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 1.1rem;
  color: var(--navy); opacity: .8;
  transition: background .15s, opacity .15s;
  flex-shrink: 0;
}
#back-btn:hover, #back-btn:active {
  background: rgba(13,27,62,.12); opacity: 1;
}
#trust-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--navy); opacity: .75;
  transition: background .15s, opacity .15s;
  flex-shrink: 0;
}
#trust-btn:hover, #trust-btn:active {
  background: rgba(13,27,62,.12); opacity: 1;
}

/* Centre brand: stacked two lines */
#brand {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
#brand-name {
  font-family: var(--ff-body);
  font-size: .72rem; font-weight: 800;
  color: var(--navy);
  letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; line-height: 1.2;
}
#brand-tagline {
  font-family: var(--ff-body);
  font-size: .62rem; font-weight: 500;
  color: rgba(13,27,62,.72);
  letter-spacing: .07em;
  white-space: nowrap; line-height: 1.3;
  margin-top: 1px;
}

/* Right cluster: icon */
#header-right {
  display: flex; align-items: center; flex-shrink: 0;
}
#header-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid rgba(13,27,62,.2);
  box-shadow: 0 1px 4px rgba(13,27,62,.15);
}

/* ── Ulzan bar — pain context strip, always visible once pain selected ── */
#ulzan-bar {
  min-height: var(--ulzan-h);
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--s5);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
#ulzan-label {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .05em;
  text-align: center;
  line-height: 1.4;
  text-transform: uppercase;
  opacity: 0; transition: opacity .4s ease;
}
#ulzan-label:not(:empty) { opacity: 1; }

/* ── Progress dots strip (below ulzan bar, centred) ── */
#dots-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 7px;
  height: var(--dots-h);
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hdot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  transition: background .25s, transform .25s;
}
.hdot--done  { background: var(--sage); }
.hdot--today { background: var(--gold); transform: scale(1.4); box-shadow: 0 0 6px var(--gold); }

/* ── Stage ── */
#stage {
  flex: 1; overflow-y: auto;
  padding: var(--s5) var(--s4);
  padding-bottom: calc(var(--footer-h) + var(--safe-bot) + var(--s4));
  transition: filter .18s ease, opacity .18s ease;
}
#stage.blurring { filter: blur(5px); opacity: .45; }
#stage.clearing { animation: clearIn .22s ease forwards; }
@keyframes clearIn {
  from { filter: blur(5px); opacity: .45; }
  to   { filter: none; opacity: 1; }
}

/* ── Footer ── */
#footer {
  position: sticky; bottom: 0; z-index: 200;
  padding: var(--s3) var(--s4) calc(var(--s3) + var(--safe-bot));
  background: var(--canvas);
  border-top: 1px solid var(--border);
  min-height: var(--footer-h);
  box-shadow: 0 -2px 12px rgba(13,27,62,.06);
}

/* ── Spinner ── */
#spinner {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(248,248,251,.78);
  backdrop-filter: blur(2px);
  align-items: center; justify-content: center;
}
#spinner > div { display: flex; gap: 9px; }
.spin-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold);
  animation: spBounce .6s infinite alternate;
}
.spin-dot:nth-child(2) { animation-delay: .2s; }
.spin-dot:nth-child(3) { animation-delay: .4s; }
@keyframes spBounce {
  from { transform: translateY(0); opacity: .5; }
  to   { transform: translateY(-13px); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   4. TRUST MODAL
═══════════════════════════════════════════════════════════════ */
#trust-modal {
  display: none; position: fixed; inset: 0;
  z-index: 9000; align-items: center; justify-content: center;
}
#trust-modal.open { display: flex; }
#trust-overlay {
  position: absolute; inset: 0;
  background: rgba(13,27,62,.6);
  backdrop-filter: blur(4px);
  animation: trustFade .22s ease both;
}
#trust-panel {
  position: relative; z-index: 1;
  width: 90vw; height: 90vh;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: trustUp .26s cubic-bezier(.22,.68,0,1.2) both;
}
#trust-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: .9rem;
  background: rgba(0,0,0,.07); color: #555;
  transition: background .15s, color .15s;
}
#trust-close:hover { background: rgba(0,0,0,.16); color: #000; }
#trust-frame { width: 100%; flex: 1; border: none; display: block; }
@keyframes trustFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes trustUp   { from { transform: translateY(32px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════
   5. BUTTONS
═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; border-radius: var(--radius-md);
  font-size: var(--t-md); font-family: var(--ff-body);
  font-weight: 700; padding: 0 var(--s5);
  letter-spacing: .02em;
  transition: transform .13s, box-shadow .13s, background .15s;
  user-select: none;
}
.btn:active { transform: scale(.96); }
.btn.full { width: 100%; }
.btn.gold {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(200,144,10,.35);
}
.btn.gold:hover { box-shadow: 0 6px 18px rgba(200,144,10,.45); }
.btn.gold:disabled, .btn.gold.btn--disabled {
  background: var(--grey-200); color: var(--grey-400);
  box-shadow: none; pointer-events: none;
}
.btn.secondary {
  background: var(--surface); color: var(--navy-mid);
  border: 1.5px solid var(--border);
}
.btn.secondary:hover { border-color: var(--navy-muted); }
.btn-logout {
  font-size: var(--t-xs); color: var(--grey-400);
  padding: 4px var(--s3);
  border: 1px solid var(--border); border-radius: 6px;
  transition: color .15s, border-color .15s;
}
.btn-logout:hover { color: var(--error); border-color: var(--error); }
.setu-btn { /* no extra style — inherits .btn */ }

/* ═══════════════════════════════════════════════════════════════
   6. TYPOGRAPHY & COMMON ELEMENTS
═══════════════════════════════════════════════════════════════ */
.s-h1 { font-family: var(--ff-display); font-size: var(--t-2xl); line-height: 1.28; color: var(--navy); }
.s-h2 { font-family: var(--ff-display); font-size: var(--t-xl);  line-height: 1.32; color: var(--navy); }
.s-sub     { color: var(--ink-soft);  font-size: var(--t-sm); margin-top: var(--s2); line-height: 1.55; }
.s-sub-sm  { color: var(--ink-muted); font-size: var(--t-xs); }
.s-hint    { color: var(--ink-muted); font-size: var(--t-sm); text-align: center; margin-top: var(--s3); }
.s-hint-sm { color: var(--ink-muted); font-size: var(--t-xs); text-align: center; margin-top: var(--s4); }
.s-eyebrow {
  font-size: var(--t-xs); font-weight: 700; color: var(--gold);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--s2);
}
.s-title  { margin-bottom: var(--s5); }
.s-link   { color: var(--gold); font-weight: 600; }
.s-link:hover { color: var(--gold-bright); text-decoration: underline; }
.s-error  { color: var(--error); font-size: var(--t-sm); margin-top: var(--s2); }
.s-match  { font-size: var(--t-sm); margin-top: var(--s2); }
.s-match--ok { color: var(--sage); }
.s-match--no { color: var(--error); }
.err-screen  { padding: var(--s7) var(--s4); text-align: center; color: var(--error); }

/* ═══════════════════════════════════════════════════════════════
   7. FORMS
═══════════════════════════════════════════════════════════════ */
.s-form   { display: flex; flex-direction: column; gap: var(--s4); }
.s-label  {
  font-size: var(--t-xs); font-weight: 700; color: var(--navy-muted);
  letter-spacing: .06em; text-transform: uppercase;
}
.s-input {
  height: 50px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 var(--s4); font-size: var(--t-md); font-family: var(--ff-body);
  color: var(--ink); background: var(--white); width: 100%;
  transition: border-color .18s, box-shadow .18s;
}
.s-input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,144,10,.12);
}
.s-input--readonly { background: var(--surface); color: var(--ink-soft); }
.s-select {
  height: 50px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 var(--s4); font-size: var(--t-md); font-family: var(--ff-body);
  color: var(--ink); background: var(--white); width: 100%;
  appearance: none;
  transition: border-color .18s, box-shadow .18s;
}
.s-select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,144,10,.12);
}
.s-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.s-col { display: flex; flex-direction: column; gap: var(--s2); }
.s-input-wrap { position: relative; }
.s-input-wrap .s-input { padding-right: 44px; }
.s-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--grey-400); font-size: 1.1rem;
  transition: color .15s;
}
.s-eye:hover { color: var(--gold); }
.s-check-row {
  display: flex; align-items: center; gap: var(--s3);
  font-size: var(--t-sm); color: var(--ink-soft); cursor: pointer;
}
.s-check-lbl { font-size: var(--t-sm); color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════════════
   8. PHASE ZONES (stage bg tint)
═══════════════════════════════════════════════════════════════ */
.stage              { background: var(--canvas); }
.stage.phase--urgent {
  background: linear-gradient(160deg, #fdf1f1 0%, var(--canvas) 60%);
}
.stage.phase--weight { background: var(--surface); }
.stage.phase--reveal {
  background: linear-gradient(160deg, var(--gold-pale) 0%, var(--canvas) 70%);
}
.stage.phase--calm   { background: var(--canvas); }

/* ═══════════════════════════════════════════════════════════════
   9. RECOGNITION / HERO
═══════════════════════════════════════════════════════════════ */
.recognition-hero { margin-bottom: var(--s5); }

/* ═══════════════════════════════════════════════════════════════
   10. LOGIN SCREEN
═══════════════════════════════════════════════════════════════ */
.s-login { display: flex; flex-direction: column; gap: var(--s5); }
.s-brand { text-align: center; padding: var(--s6) 0 var(--s3); }
.brand-mark {
  font-family: var(--ff-display); font-size: var(--t-xl);
  color: var(--gold); text-align: center;
  margin-bottom: var(--s3); letter-spacing: .12em;
}
.login-links { text-align: center; padding: var(--s3) var(--s4) 0; font-size: var(--t-sm); }

/* Registration success */
.reg-success-block {
  display: flex; align-items: flex-start; gap: var(--s3);
  background: linear-gradient(135deg, var(--sage) 0%, #1a9e7a 100%);
  color: var(--white); padding: var(--s4); border-radius: var(--radius-md);
  margin-bottom: var(--s4); box-shadow: 0 4px 16px rgba(15,110,86,.25);
  animation: regPop .4s ease both;
}
.reg-tick {
  font-size: 1.3rem; background: rgba(255,255,255,.2);
  border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.reg-success-title { font-weight: 700; font-size: var(--t-md); margin-bottom: 3px; }
.reg-success-sub   { font-size: var(--t-sm); opacity: .88; }
@keyframes regPop  { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Logout nudge */
.logout-nudge-block {
  display: flex; align-items: flex-start; gap: var(--s3);
  background: linear-gradient(135deg, #b87800 0%, var(--gold-bright) 100%);
  color: var(--white); padding: var(--s4); border-radius: var(--radius-md);
  margin-bottom: var(--s4); box-shadow: 0 4px 16px rgba(200,144,10,.3);
  animation: regPop .4s ease both;
}
.nudge-icon  { font-size: 1.6rem; flex-shrink: 0; }
.nudge-title { font-weight: 700; font-size: var(--t-md); margin-bottom: 3px; }
.nudge-sub   { font-size: var(--t-sm); opacity: .9; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════
   11. PAIN SCREEN
═══════════════════════════════════════════════════════════════ */
.pain-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3);
}
.pain-card {
  padding: var(--s5) var(--s3); border-radius: var(--radius-md);
  border: 1.5px solid var(--border); background: var(--white);
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s2); text-align: center; cursor: pointer;
  transition: border-color .18s, background .18s, transform .12s, box-shadow .18s;
  min-height: 100px; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.pain-card:active { transform: scale(.96); }
.pain-card.sel {
  border-color: var(--gold); background: var(--gold-pale);
  box-shadow: 0 4px 16px rgba(200,144,10,.18);
}
.pain-icon { font-size: 2rem; line-height: 1; display: block; }
.ptitle { font-size: var(--t-sm); font-weight: 700; color: var(--navy); line-height: 1.3; }

/* ═══════════════════════════════════════════════════════════════
   12. PROBE / ROOTS
═══════════════════════════════════════════════════════════════ */
.probe-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: var(--s5);
}
.probe-dots { display: flex; gap: 7px; }
.pdot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--grey-200); transition: background .22s, transform .22s;
}
.pdot.done { background: var(--sage); }
.pdot.curr { background: var(--gold); transform: scale(1.3); box-shadow: 0 0 6px var(--gold); }
.probe-lbl { font-size: var(--t-xs); color: var(--ink-muted); }
.qcard {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-md); padding: var(--s5) var(--s4);
  margin-bottom: var(--s4);
  box-shadow: var(--shadow-md);
}
.qcard p {
  font-family: var(--ff-display); font-size: var(--t-lg);
  line-height: 1.45; color: var(--white);
}
.opts { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.opt {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s3) var(--s4);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.opt:active { transform: scale(.98); }
.opt.sel {
  border-color: var(--gold); background: var(--gold-pale);
  box-shadow: 0 2px 10px rgba(200,144,10,.15);
}
.opt-check {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-radius: 5px; flex-shrink: 0; margin-top: 2px;
  transition: background .14s, border-color .14s; position: relative;
}
.opt.sel .opt-check { background: var(--gold); border-color: var(--gold); }
.opt.sel .opt-check::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 12px; font-weight: 700;
}
.opt-text { font-size: var(--t-sm); line-height: 1.55; color: var(--ink); }

/* ═══════════════════════════════════════════════════════════════
   13. WEIGHT / STAR RATINGS
═══════════════════════════════════════════════════════════════ */
.weight-cards { display: flex; flex-direction: column; gap: var(--s4); margin: var(--s4) 0; }
.weight-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: var(--s4) var(--s4) var(--s5);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.weight-q { font-size: var(--t-sm); color: var(--ink); margin-bottom: var(--s3); font-weight: 600; }
.stars    { display: flex; gap: var(--s2); }
.star-btn {
  font-size: 1.7rem; color: var(--grey-200);
  transition: color .12s, transform .12s;
}
.star-btn.lit  { color: var(--gold-mid); }
.star-btn:active { transform: scale(1.25); }

/* ═══════════════════════════════════════════════════════════════
   14. SOCHNE_DE  (thinking screen)
═══════════════════════════════════════════════════════════════ */
.sochne-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--s8) var(--s4); text-align: center; min-height: 60vh;
  justify-content: center;
}
.sochne-headline {
  font-family: var(--ff-display); font-size: var(--t-xl);
  color: var(--gold); margin-bottom: var(--s6);
}
.sochne-lines { display: flex; flex-direction: column; gap: var(--s5); }
.sochne-line {
  font-size: var(--t-md); color: var(--ink-soft);
  opacity: 0; transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.sochne-line.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════════
   15. SUMMARY — 4-TAB PINNACLE
═══════════════════════════════════════════════════════════════ */
.sum-shell {
  display: flex; flex-direction: column; gap: var(--s4);
}
.sum-tabs {
  display: flex; gap: var(--s2);
  overflow-x: auto; padding-bottom: var(--s1);
  scrollbar-width: none;
}
.sum-tabs::-webkit-scrollbar { display: none; }
.sum-tab {
  flex-shrink: 0; padding: var(--s2) var(--s4);
  border-radius: 20px; border: 1.5px solid var(--border);
  background: var(--white); cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.sum-tab--active {
  border-color: var(--gold); background: var(--gold-pale);
  box-shadow: 0 2px 8px rgba(200,144,10,.2);
}
.sum-tab-lbl { font-size: var(--t-sm); font-weight: 700; color: var(--navy); }
.sum-tab-sub { font-size: var(--t-xs); color: var(--ink-muted); }
.sum-progress {
  display: flex; justify-content: center; gap: 7px;
}
.sum-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grey-300); transition: background .25s, transform .25s;
}
.sum-dot--on { background: var(--gold); transform: scale(1.4); }
.sum-panes { position: relative; }
.sum-pane  {
  border-radius: var(--radius-lg);
  overflow: visible;            /* allow content to grow freely */
  box-shadow: var(--shadow-md);
}
.sum-pane-inner { padding: var(--s5) var(--s4) var(--s6); overflow: visible; }

/* Mantra tab */
.mw-eyebrow {
  font-size: var(--t-xs); font-weight: 700; color: var(--gold);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--s3);
}
.mw-frame {
  border-left: 3px solid var(--gold); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--s4) var(--s5); margin: var(--s3) 0;
  background: rgba(200,144,10,.06);
  word-break: break-word;       /* wrap long Hindi text correctly */
  overflow-wrap: anywhere;
}
.mw-line {
  font-family: var(--ff-display); font-size: var(--t-lg);
  line-height: 1.65; color: var(--navy);
  display: block;               /* each line on its own row */
  margin-bottom: var(--s2);     /* breathing space between mantra lines */
  word-break: break-word;
}
.mw-line:last-child { margin-bottom: 0; }
.mw-sub { font-size: var(--t-sm); color: var(--ink-soft); margin-top: var(--s3); }

/* Action cards */
.at-list { display: flex; flex-direction: column; gap: var(--s3); }
.at-card {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); border-radius: var(--radius-sm);
  background: var(--white); border-left: 3px solid var(--at-color, var(--gold));
  box-shadow: var(--shadow-sm);
}
.at-left  { display: flex; align-items: center; gap: var(--s2); }
.at-n     {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--at-color, var(--gold)); color: var(--white);
  font-size: var(--t-xs); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.at-icon  { font-size: 1.1rem; }
.at-body  { flex: 1; }
.at-type  { font-size: var(--t-xs); font-weight: 700; color: var(--at-color, var(--gold)); text-transform: uppercase; letter-spacing: .05em; }
.at-text  { font-size: var(--t-sm); color: var(--ink); line-height: 1.45; }
.at-time  { font-size: var(--t-xs); color: var(--ink-muted); flex-shrink: 0; }

/* 7-day calendar */
.ck-strip {
  display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: var(--s2);
  scrollbar-width: none;
}
.ck-strip::-webkit-scrollbar { display: none; }
.ck-day {
  min-width: 48px; padding: var(--s2) var(--s2) var(--s3);
  border-radius: var(--radius-sm);
  background: var(--grey-100); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex-shrink: 0;
}
.ck-today {
  background: var(--gold-pale); border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(200,144,10,.18);
}
.ck-label    { font-size: .6rem; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .05em; }
.ck-date     { font-size: var(--t-md); font-weight: 700; color: var(--navy); }
.ck-day-name { font-size: .62rem; color: var(--ink-muted); }
.ck-tick     { font-size: var(--t-sm); color: var(--grey-300); margin-top: 2px; }

/* Ulzan→Kabu graph */
.uk-legend {
  display: flex; align-items: center; gap: var(--s2);
  margin-top: var(--s3); font-size: var(--t-xs); color: var(--ink-muted);
}
.uk-dot { width: 10px; height: 10px; border-radius: 50%; }
.uk-dot--start { background: var(--error); }
.uk-dot--end   { background: var(--sage); }

/* Share nudge */
.sum-nudge {
  display: flex; align-items: flex-start; gap: var(--s3);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-md); padding: var(--s4);
  box-shadow: var(--shadow-md);
}
.sum-nudge-icon { font-size: 1.5rem; flex-shrink: 0; }
.sum-nudge-txt  { font-weight: 700; font-size: var(--t-sm); color: var(--white); margin-bottom: 4px; }
.sum-nudge-sub  { font-size: var(--t-xs); color: rgba(255,255,255,.72); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════
   16. WISDOM + ACTIONS (history/detail)
═══════════════════════════════════════════════════════════════ */
.wisdom-section { margin-bottom: var(--s6); }
.wisdom-frame {
  background: linear-gradient(135deg, var(--gold-pale), var(--white));
  border-left: 3px solid var(--gold); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--s4) var(--s5); margin-top: var(--s3);
}
.w-line { font-family: var(--ff-display); font-size: var(--t-lg); line-height: 1.55; color: var(--navy); }
.actions-section { margin-bottom: var(--s4); }
.tasks-list { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.task-row {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); background: var(--surface); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.task-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: var(--white);
  font-size: var(--t-xs); font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.task-text { flex: 1; font-size: var(--t-sm); color: var(--ink); }
.task-time { font-size: var(--t-xs); color: var(--ink-muted); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   17. SAVE SCREEN  (uses s-form classes)
═══════════════════════════════════════════════════════════════ */
/* No extra classes needed — all covered by s-form */

/* ═══════════════════════════════════════════════════════════════
   18. DASHBOARD
═══════════════════════════════════════════════════════════════ */
.dashboard { display: flex; flex-direction: column; gap: var(--s4); }
.dash-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg); padding: var(--s4) var(--s5);
  box-shadow: var(--shadow-md);
  color: var(--white);
}
.dash-right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); }
.dash-name  { font-family: var(--ff-display); font-size: var(--t-lg); color: var(--white); }
.dash-level { font-size: var(--t-xs); color: rgba(255,255,255,.6); }
.xp-bar-wrap  { display: flex; align-items: center; gap: var(--s2); }
.xp-bar {
  width: 88px; height: 6px;
  background: rgba(255,255,255,.2); border-radius: 3px; overflow: hidden;
}
.xp-fill { height: 100%; background: var(--gold); border-radius: 3px; transition: width .4s; }
.xp-label { font-size: var(--t-xs); color: rgba(255,255,255,.65); }
.streak-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; }
.streak-lbl { font-size: var(--t-sm); font-weight: 700; color: var(--navy); }
.streak-dots { display: flex; gap: 5px; }
.sdot { width: 11px; height: 11px; border-radius: 50%; background: var(--grey-200); }
.sdot--on  { background: var(--gold); }
.sdot--pop { animation: sdotPop .4s ease; }
@keyframes sdotPop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.65); } }

.dash-card {
  padding: var(--s4); border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.dash-card--active {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--white) 100%);
  box-shadow: 0 4px 16px rgba(200,144,10,.14);
}
.dash-card--done    { border-color: var(--sage); background: var(--sage-pale); }
.dash-card--checked { border-color: var(--sage); background: var(--sage-pale); }
.dash-card--new     { border: 2px dashed var(--border); background: var(--canvas); }
.dash-card-top  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--s3); }
.dash-pain      { font-weight: 700; font-size: var(--t-sm); color: var(--navy); }
.dash-days      { font-size: var(--t-xs); color: var(--ink-muted); }
.dash-card-badge{ font-size: var(--t-sm); font-weight: 700; color: var(--sage); margin-bottom: var(--s2); }
.dash-card-sub  { font-size: var(--t-sm); color: var(--ink-soft); margin-bottom: var(--s4); }
.progress-bar   { height: 7px; background: var(--grey-200); border-radius: 4px; overflow: hidden; margin-bottom: var(--s4); }
.progress-fill  { height: 100%; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%); transition: width .4s; }
.dash-mantra {
  font-family: var(--ff-display); font-style: italic; font-size: var(--t-sm);
  color: var(--ink-soft); padding: var(--s3) var(--s4);
  border-left: 3px solid var(--gold);
  background: var(--gold-pale); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.recent-section { padding-top: var(--s3); border-top: 1px solid var(--border); }
.j-chips  { display: flex; flex-direction: column; gap: var(--s2); }
.j-chip {
  padding: var(--s3) var(--s4); background: var(--white);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.j-chip:hover  { border-color: var(--gold-mid); box-shadow: var(--shadow-sm); }
.j-chip:active { background: var(--gold-pale); }
.j-chip-title  { font-size: var(--t-sm); font-weight: 700; color: var(--navy); }
.j-chip-meta   { font-size: var(--t-xs); color: var(--ink-muted); }

/* ═══════════════════════════════════════════════════════════════
   19. CHECKIN
═══════════════════════════════════════════════════════════════ */
.checkin-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--s4);
}
.checkin-day  { font-family: var(--ff-display); font-size: var(--t-xl); color: var(--gold); }
.checkin-dots { display: flex; gap: 7px; }
.cdot { width: 13px; height: 13px; border-radius: 50%; background: var(--grey-200); transition: background .22s; }
.cdot--done  { background: var(--sage); }
.cdot--today { background: var(--gold); transform: scale(1.25); box-shadow: 0 0 6px var(--gold); }
.checkin-mantra {
  font-family: var(--ff-display); font-style: italic;
  color: var(--ink-soft); font-size: var(--t-sm);
  padding: var(--s3) var(--s4); border-left: 3px solid var(--gold);
  background: var(--gold-pale); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--s4);
}
.checkin-actions  { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s5); }
.action-check-row {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); background: var(--white);
  border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color .15s, background .15s;
}
.action-check-row:has(input:checked) {
  border-color: var(--gold); background: var(--gold-pale);
}
.action-check-row--share { border-style: dashed; }
.action-check-row input[type=checkbox] {
  width: 20px; height: 20px; accent-color: var(--gold); flex-shrink: 0;
}
.action-icon       { font-size: 1.1rem; flex-shrink: 0; }
.action-check-text { flex: 1; font-size: var(--t-sm); color: var(--ink); }
.action-check-time { font-size: var(--t-xs); color: var(--ink-muted); flex-shrink: 0; }
.checkin-divider   { height: 1px; background: var(--border); margin: var(--s2) 0; }
.checkin-footer    { display: flex; flex-direction: column; gap: var(--s4); }
.mood-row  { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.mood-lbl  { font-size: var(--t-xs); color: var(--ink-muted); }
.mood-btn  {
  padding: var(--s2) var(--s4); border-radius: 20px;
  border: 1.5px solid var(--border); font-size: var(--t-md);
  background: var(--white); transition: background .14s, border-color .14s, transform .1s;
}
.mood-btn:active { transform: scale(1.15); }
.mood-btn.sel  { background: var(--gold-pale); border-color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════
   20. DONE — Day 7 Celebration
═══════════════════════════════════════════════════════════════ */
.done-hero    { text-align: center; padding: var(--s6) 0 var(--s4); }
.done-trophy  {
  font-size: 3.5rem; margin-bottom: var(--s3);
  animation: trophyIn .55s .1s cubic-bezier(.22,.68,0,1.4) both;
}
@keyframes trophyIn { from { transform: scale(.4) rotate(-15deg); opacity: 0; } to { transform: none; opacity: 1; } }
.done-h2     { font-family: var(--ff-display); font-size: var(--t-2xl); color: var(--navy); }
.done-sub    { color: var(--ink-soft); margin-top: var(--s2); }
.done-xp     { text-align: center; color: var(--sage); font-weight: 700; padding: var(--s3) 0; font-size: var(--t-lg); }
.done-mantra {
  font-family: var(--ff-display); font-style: italic; font-size: var(--t-md);
  color: var(--navy); padding: var(--s4) var(--s5);
  background: var(--gold-pale); border-radius: var(--radius-md);
  text-align: center; margin: var(--s4) 0;
  border: 1px solid rgba(200,144,10,.2);
}
.done-actions { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s4); }

/* ═══════════════════════════════════════════════════════════════
   21. HISTORY / DETAIL
═══════════════════════════════════════════════════════════════ */
/* Covered by .j-chip, .wisdom-frame, .cdot classes above */

/* ═══════════════════════════════════════════════════════════════
   22. UTILITIES
═══════════════════════════════════════════════════════════════ */
.s-input-wrap  { position: relative; }
.s-check-row   { display: flex; align-items: center; gap: var(--s3); cursor: pointer; }
.s-check-lbl   { font-size: var(--t-sm); color: var(--ink-soft); }
