/* 60 DAYS — RESET LIFE · Design system */
:root {
  --bg: #050b1a; --bg2: #081430;
  --card: rgba(14, 26, 52, 0.66); --card-solid: #0c1832; --card-hi: rgba(22, 40, 78, 0.7);
  --line: rgba(122, 162, 255, 0.13); --line-hi: rgba(122, 162, 255, 0.28);
  --text: #f3f6ff; --muted: #93a1bd; --dim: #5f6c88;
  --blue: #2f7bff; --blue2: #5aa2ff; --green: #22d17a; --red: #ff4d5e; --amber: #ffb547; --violet: #8f7dff; --cyan: #38c9ff;
  --track: rgba(255, 255, 255, 0.07);
  --glow: 0 0 0 1px rgba(90, 162, 255, 0.16), 0 18px 50px -22px rgba(47, 123, 255, 0.55);
  --r: 20px; --r-sm: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
[data-theme="black"] { --bg: #000; --bg2: #05070d; --card: rgba(16, 18, 26, 0.82); --card-solid: #0d0f16; --card-hi: rgba(26, 30, 44, 0.9); --line: rgba(255, 255, 255, 0.08); }
[data-theme="light"] {
  --bg: #f2f5fb; --bg2: #e6edfa; --card: rgba(255, 255, 255, 0.86); --card-solid: #fff; --card-hi: #fff;
  --line: rgba(15, 40, 100, 0.09); --line-hi: rgba(15, 40, 100, 0.2);
  --text: #0b1630; --muted: #56637e; --dim: #8a95ad; --track: rgba(15, 40, 100, 0.08);
  --glow: 0 0 0 1px rgba(47, 123, 255, 0.12), 0 14px 40px -24px rgba(47, 123, 255, 0.45);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(47, 123, 255, 0.18), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(143, 125, 255, 0.08), transparent 60%);
  background-attachment: fixed; min-height: 100vh; font-size: 15px; line-height: 1.45; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
[data-theme="light"] body { background-image: radial-gradient(1000px 500px at 90% -10%, rgba(47, 123, 255, 0.12), transparent 60%); }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--blue2); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0.4em 0; }
.ic { flex: none; vertical-align: middle; }

/* ---------- Splash ---------- */
#splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity 0.5s; }
#splash.hide { opacity: 0; pointer-events: none; }
#splash .logo { animation: pulse 1.4s ease-in-out infinite; }

/* ---------- Layout ---------- */
.main { padding: calc(14px + var(--safe-t)) 16px calc(100px + var(--safe-b)); max-width: 760px; margin: 0 auto; }
.view.enter { animation: enter 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sidebar { display: none; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 6px 8px calc(6px + var(--safe-b)); background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(22px); -webkit-backdrop-filter: saturate(160%) blur(22px); border-top: 1px solid var(--line);
}
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--dim); font-size: 10.5px; font-weight: 600; transition: color 0.2s; }
.tabbar .on { color: var(--blue2); }
.tabbar .on .ic { filter: drop-shadow(0 0 8px rgba(90, 162, 255, 0.6)); }
.tab-sos .ic { width: 54px; height: 54px; padding: 13px; margin-top: -26px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #ff6370, #d92b47); box-shadow: 0 8px 24px -6px rgba(255, 77, 94, 0.7), 0 0 0 4px var(--bg); }
.tabbar .tab-sos { color: var(--muted); }

@media (min-width: 1000px) {
  .tabbar { display: none; }
  .sidebar {
    display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: 252px; padding: 26px 16px; gap: 22px;
    border-right: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(20px);
  }
  .sidebar nav { display: flex; flex-direction: column; gap: 2px; }
  .sidebar nav a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 600; transition: 0.2s; }
  .sidebar nav a:hover { background: var(--card); color: var(--text); }
  .sidebar nav a.on { background: linear-gradient(90deg, rgba(47, 123, 255, 0.22), rgba(47, 123, 255, 0.04)); color: var(--text); box-shadow: inset 2px 0 0 var(--blue2); }
  .sos-side { margin-top: auto; padding: 12px; border-radius: 14px; color: #fff; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.02em; background: linear-gradient(145deg, #ff5a68, #c8243f); box-shadow: 0 10px 30px -10px rgba(255, 77, 94, 0.7); display: flex; gap: 8px; align-items: center; text-align: left; }
  .side-foot { font-size: 10.5px; color: var(--dim); letter-spacing: 0.08em; font-weight: 700; }
  .main { margin-left: 252px; max-width: 1000px; padding: 34px 40px 60px; }
  .modal-backdrop { align-items: center !important; }
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand b { display: block; font-size: 16px; letter-spacing: 0.04em; }
.brand small { color: var(--blue2); font-weight: 700; letter-spacing: 0.22em; font-size: 10.5px; }
.logo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 18px; color: #fff; background: linear-gradient(145deg, #4f9cff, #1f5fe0); box-shadow: 0 8px 26px -8px rgba(47, 123, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.logo.big { width: 72px; height: 72px; font-size: 30px; border-radius: 22px; margin: 0 auto 14px; }

/* ---------- Cards & type ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 14px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
a.card { display: block; transition: transform 0.2s, border-color 0.2s; }
a.card:active { transform: scale(0.985); }
a.card:hover { border-color: var(--line-hi); }
.card.glow { box-shadow: var(--glow); border-color: rgba(90, 162, 255, 0.2); background: linear-gradient(160deg, var(--card-hi), var(--card)); }
.grid-2, .grid-3 { display: grid; gap: 12px; margin-bottom: 14px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 > .card, .grid-3 > .card { margin: 0; }
.grid-2.keep { grid-template-columns: 1fr 1fr; }
.card.center .ring { margin: 0 auto; }
.grid-3 > .card { padding: 14px 12px; }
.grid-2.tight, .grid-3.tight { gap: 10px; margin: 0; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .grid-3 .kpi b { font-size: 23px; } .grid-3.tight { grid-template-columns: 1fr 1fr; } .grid-3.tight > :first-child { grid-column: 1 / -1; } }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue2); margin-bottom: 4px; }
.eyebrow.green { color: var(--green); } .eyebrow.red { color: var(--red); }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 13px; } .center { text-align: center; } .right { text-align: right; } .left { text-align: left; }
.accent { color: var(--blue2); } .ok-text { color: var(--green); } .warn-text { color: var(--amber); }
.mt { margin-top: 14px; } .mt-s { margin-top: 8px; } .pad { padding: 18px; }
.row { display: flex; align-items: center; } .between { justify-content: space-between; } .gap { gap: 10px; } .gap-s { gap: 6px; } .grow { flex: 1; min-width: 0; } .center-row { justify-content: center; }
.kpi { font-size: 15px; color: var(--muted); } .kpi b { font-size: 28px; color: var(--text); font-weight: 800; letter-spacing: -0.03em; }
.kpi.accent b { color: var(--blue2); }
.kpi-sm b { font-size: 16px; }
.kpi-card { text-align: left; } .kpi-card .ic { color: var(--blue2); margin-bottom: 6px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.disclaimer { font-size: 12px; color: var(--dim); text-align: center; margin: 18px 8px 8px; line-height: 1.5; }
.link { color: var(--blue2); font-weight: 600; font-size: 13.5px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sec-title h2 { font-size: 16px; font-weight: 750; }
details > summary { list-style: none; cursor: pointer; } details > summary::-webkit-details-marker { display: none; }
details:not([open]) > summary.sec-title { margin-bottom: 0; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 6px 2px 16px; }
.page-head h1 { font-size: 26px; font-weight: 850; }
.page-head p { margin: 2px 0 0; font-size: 13.5px; }
.sec-mini { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px; font-weight: 700; font-size: 14.5px; transition: transform 0.15s, filter 0.2s, background 0.2s; white-space: nowrap; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; }
.btn-lg { min-height: 54px; font-size: 16px; padding: 0 22px; }
.btn.block { display: flex; width: 100%; }
.btn-primary { color: #fff; background: linear-gradient(145deg, #4f9cff, #2266ee); box-shadow: 0 8px 22px -10px rgba(47, 123, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--track); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--line-hi); }
.btn-danger { color: #fff; background: linear-gradient(145deg, #ff5d6b, #d32a44); }
.btn-danger-ghost { color: var(--red); background: rgba(255, 77, 94, 0.08); border: 1px solid rgba(255, 77, 94, 0.25); }
.btn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.btn-grid label.btn { cursor: pointer; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); background: var(--track); font-size: 18px; flex: none; }
.icon-btn.sm { width: 34px; height: 34px; border-radius: 10px; }
.icon-btn:hover { color: var(--text); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--track); border: 1px solid var(--line); color: var(--muted); }
.chip.sm { padding: 2px 8px; font-size: 11px; }
.chip-rest { color: #3fe0a0; background: rgba(34, 209, 122, 0.1); border-color: rgba(34, 209, 122, 0.25); }
.chip-ok { color: var(--green); background: rgba(34, 209, 122, 0.1); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------- Hero ---------- */
.hero { padding: 4px 2px 18px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-weight: 800; background: linear-gradient(145deg, #1d3a73, #0f1f40); border: 1px solid var(--line-hi); cursor: pointer; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; font-size: 26px; }
.hero-title { font-size: clamp(42px, 13vw, 76px); line-height: 0.92; font-weight: 900; letter-spacing: -0.045em; display: flex; flex-direction: column; }
.hero-title .accent { background: linear-gradient(90deg, #5aa2ff, #2f7bff 60%, #8f7dff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 24px rgba(47, 123, 255, 0.45)); }
.hero-tag { margin-top: 14px; font-weight: 800; letter-spacing: 0.24em; font-size: 12.5px; color: var(--text); opacity: 0.9; }
.hero-sub { color: var(--muted); font-size: 14px; margin-top: 8px; font-style: italic; }
.rest-banner { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; background: rgba(34, 209, 122, 0.08); border: 1px solid rgba(34, 209, 122, 0.22); color: var(--text); }
.rest-banner .ic { color: var(--green); margin-top: 1px; }

.countdown { display: flex; gap: 20px; align-items: center; }
.cd-info { flex: 1; min-width: 0; }
.cd-big { font-size: 15px; color: var(--muted); margin-bottom: 10px; } .cd-big b { font-size: 30px; color: var(--text); font-weight: 850; letter-spacing: -0.03em; }
.cd-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.cd-dates { display: flex; gap: 18px; margin-top: 12px; font-weight: 700; font-size: 14px; }
.cd-dates small { display: block; color: var(--dim); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 380px) { .countdown { flex-direction: column; align-items: stretch; } .countdown .ring { margin: 0 auto; } }
.big-num { font-size: 46px; font-weight: 900; } .big-num small { font-size: 16px; color: var(--muted); font-weight: 600; }
.finish-cta h2 { font-size: 30px; font-weight: 900; }

.ring { position: relative; flex: none; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; }
.ring-fg { transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ring-label { position: relative; text-align: center; line-height: 1.05; }
.ring-label b { font-size: 1.9em; font-weight: 850; letter-spacing: -0.04em; }
.ring-label small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 3px; }

.pbar { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; margin-top: 6px; }
.pbar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--blue2)); box-shadow: 0 0 12px rgba(47, 123, 255, 0.6); transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }

.score-row { display: flex; gap: 16px; align-items: center; }
.week-dots { display: flex; justify-content: space-between; margin-top: 14px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; color: var(--dim); }
.wd i { width: 26px; height: 26px; border-radius: 9px; background: conic-gradient(var(--blue2) var(--p), var(--track) 0); position: relative; }
.wd i::after { content: ""; position: absolute; inset: 4px; border-radius: 6px; background: var(--card-solid); }
.wd i.is-good { background: conic-gradient(var(--green) var(--p), var(--track) 0); }
.wd i.is-rest { background: rgba(34, 209, 122, 0.25); }

.prayer-card .np-name { font-size: 24px; font-weight: 850; }
.np-name small { font-size: 13px; color: var(--muted); font-weight: 600; }
.np-time { font-size: 34px; font-weight: 300; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 10px; }
.np-in { font-size: 13px; font-weight: 700; color: var(--blue2); background: rgba(47, 123, 255, 0.12); padding: 3px 9px; border-radius: 99px; letter-spacing: 0; }
.pt-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 12px; }
.pt-strip div { text-align: center; padding: 7px 0; border-radius: 10px; font-size: 13px; font-weight: 700; background: var(--track); }
.pt-strip small { display: block; font-size: 10px; color: var(--muted); font-weight: 600; }
.pt-strip .is-next { background: rgba(47, 123, 255, 0.2); box-shadow: inset 0 0 0 1px rgba(90, 162, 255, 0.4); }
.pt-strip .is-done { color: var(--green); }

.quote-card blockquote { margin: 4px 0 0; font-size: 18px; line-height: 1.45; font-weight: 600; letter-spacing: -0.01em; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.q { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 650; text-align: center; transition: transform 0.15s; }
.q:active { transform: scale(0.95); }
.q .ic { color: var(--blue2); } .q small { display: block; color: var(--muted); font-weight: 600; }
.q-sos { background: linear-gradient(160deg, rgba(255, 77, 94, 0.2), rgba(255, 77, 94, 0.05)); border-color: rgba(255, 77, 94, 0.3); }
.q-sos .ic { color: var(--red); }
.phase-card p { font-size: 15px; font-weight: 600; margin: 6px 0 4px; }
.footer-quote { text-align: center; color: var(--muted); font-style: italic; font-size: 13.5px; margin: 26px 20px 8px; }

.mini-cal { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.mc { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; background: var(--track); color: var(--dim); transition: transform 0.15s; }
.mc:hover { transform: scale(1.08); }
.mc-good { background: linear-gradient(145deg, #2be38a, #18b765); color: #04210f; box-shadow: 0 0 10px rgba(34, 209, 122, 0.35); }
.mc-mid { background: rgba(47, 123, 255, 0.55); color: #fff; }
.mc-low { background: rgba(47, 123, 255, 0.22); color: var(--text); }
.mc-rest { background: rgba(34, 209, 122, 0.12); color: #3fe0a0; border: 1px dashed rgba(34, 209, 122, 0.35); }
.mc-none { background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.mc-future { opacity: 0.55; }
.mc-today { outline: 2px solid var(--blue2); outline-offset: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 11px; height: 11px; border-radius: 4px; display: inline-block; }

.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.badge { padding: 12px; border-radius: 14px; background: var(--track); border: 1px solid var(--line); opacity: 0.45; filter: grayscale(1); }
.badge.on { opacity: 1; filter: none; background: linear-gradient(160deg, rgba(47, 123, 255, 0.16), transparent); border-color: rgba(90, 162, 255, 0.3); }
.badge span { font-size: 22px; } .badge b { display: block; font-size: 13px; margin-top: 4px; } .badge small { color: var(--muted); font-size: 11.5px; }

/* ---------- Habits ---------- */
.date-nav { display: flex; align-items: center; justify-content: space-between; padding: 10px; }
.habit { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.habit-group .sec-title + .habit { border-top: 0; }
.hcheck { width: 30px; height: 30px; flex: none; border-radius: 10px; border: 2px solid var(--line-hi); display: grid; place-items: center; color: transparent; transition: all 0.2s cubic-bezier(0.3, 1.6, 0.5, 1); }
.habit.is-done .hcheck, .hcheck.on { background: linear-gradient(145deg, #2be38a, #16b464); border-color: transparent; color: #03200e; transform: scale(1.05); box-shadow: 0 0 14px rgba(34, 209, 122, 0.45); }
.habit.is-skip .hcheck { border-style: dashed; border-color: var(--amber); }
.hbody { flex: 1; min-width: 0; cursor: pointer; }
.hname { font-weight: 650; font-size: 15px; }
.habit.is-done .hname { color: var(--muted); }
.hmeta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 2px; }
.hstatus { margin-left: auto; font-weight: 700; color: var(--dim); }
.habit.is-done .hstatus { color: var(--green); } .habit.is-skip .hstatus { color: var(--amber); }
.habit.is-optional { opacity: 0.85; }
.hist-table { overflow-x: auto; }
.hist-row { display: grid; grid-template-columns: minmax(120px, 1fr) repeat(7, 22px); gap: 6px; align-items: center; padding: 5px 0; font-size: 12.5px; }
.hist-head { color: var(--dim); font-size: 11px; text-align: center; } .hist-head span:first-child { text-align: left; }
.hist-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 14px; height: 14px; border-radius: 5px; background: var(--track); display: inline-block; justify-self: center; }
.dot-done { background: var(--green); box-shadow: 0 0 8px rgba(34, 209, 122, 0.5); }
.dot-skip { background: var(--amber); opacity: 0.7; }
.dot-rest { background: rgba(34, 209, 122, 0.15); border: 1px dashed rgba(34, 209, 122, 0.4); }
.dot-na { opacity: 0.2; }

/* ---------- Charts ---------- */
.bars { position: relative; display: flex; align-items: stretch; gap: 6px; padding-top: 18px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.bar-val { font-size: 10.5px; color: var(--muted); height: 14px; font-weight: 700; }
.bar-track { flex: 1; width: 100%; max-width: 34px; display: flex; align-items: flex-end; border-radius: 8px; background: var(--track); overflow: hidden; }
.bar { width: 100%; border-radius: 8px; background: linear-gradient(180deg, var(--blue2), var(--blue)); transition: height 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar-muted { background: rgba(34, 209, 122, 0.35); }
.bar-label { font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.bars-goal { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(34, 209, 122, 0.6); z-index: 1; pointer-events: none; margin-top: 18px; }
.bars-goal span { position: absolute; right: 0; top: -16px; font-size: 10px; color: var(--green); font-weight: 700; }
.linechart { width: 100%; display: block; overflow: visible; }
.lc-t { font-size: 10px; fill: var(--dim); } .lc-v { font-size: 11px; fill: var(--text); font-weight: 700; }

/* ---------- Lists / forms ---------- */
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.sec-title + .list-row, .card > .list-row:first-child { border-top: 0; }
.thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; cursor: pointer; }
.photo-full { width: 100%; border-radius: 14px; }
.empty { text-align: center; padding: 22px 10px; color: var(--muted); }
.empty .ic { color: var(--dim); margin-bottom: 6px; } .empty h4 { color: var(--text); font-size: 15px; } .empty p { font-size: 13px; }

.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 650; color: var(--muted); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; border-radius: 13px; border: 1px solid var(--line-hi); background: color-mix(in srgb, var(--bg) 55%, transparent);
  outline: none; font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, .textarea:focus { border-color: var(--blue2); box-shadow: 0 0 0 4px rgba(47, 123, 255, 0.16); }
input[type=file] { font-size: 13px; color: var(--muted); }
.textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
input[type=date], input[type=time] { min-width: 0; }
.info-line { padding: 10px 12px; border-radius: 12px; background: var(--track); font-size: 13.5px; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 13px; border: 1px solid var(--line-hi); margin-bottom: 8px; color: var(--muted); }
.search input { border: 0 !important; background: none !important; box-shadow: none !important; padding-left: 0 !important; }

.switch-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 48px; height: 29px; border-radius: 99px; background: var(--track); border: 1px solid var(--line-hi); position: relative; flex: none; transition: 0.25s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 23px; height: 23px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1); }
.switch-row input:checked + .switch { background: var(--green); border-color: transparent; }
.switch-row input:checked + .switch::after { transform: translateX(19px); }
.switch-row input:disabled + .switch { opacity: 0.4; }
.switch-row b { display: block; font-size: 14.5px; } .switch-row small { display: block; color: var(--muted); font-size: 12.5px; }
.switch-row.compact { padding: 8px 0; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--track); }
.seg button, .seg label span { padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 650; color: var(--muted); display: block; cursor: pointer; }
.seg button.on, .seg input:checked + span { background: var(--card-solid); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.seg input { display: none; }
.seg-block { display: flex; } .seg-block label { flex: 1; text-align: center; }
.day-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.day-chips input { display: none; }
.day-chips span { display: grid; place-items: center; width: 42px; height: 38px; border-radius: 11px; background: var(--track); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; transition: 0.15s; }
.day-chips input:checked + span { background: rgba(47, 123, 255, 0.2); border-color: rgba(90, 162, 255, 0.5); color: var(--text); }
.day-chips input:disabled + span { opacity: 0.4; }

.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: var(--muted); background: var(--card); border: 1px solid var(--line); white-space: nowrap; }
.tabs a.on { color: #fff; background: linear-gradient(145deg, #4f9cff, #2266ee); border-color: transparent; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0; }
.tbl th { text-align: left; color: var(--dim); font-weight: 600; font-size: 11.5px; padding: 4px; }
.tbl td { padding: 6px 4px; border-top: 1px solid var(--line); }
.ex-head, .ex-row { display: grid; grid-template-columns: 1fr 52px 56px 64px 34px; gap: 6px; align-items: center; }
.ex-head { font-size: 11px; color: var(--dim); font-weight: 700; }
.ex-row { margin-bottom: 6px; }
.ex-row input { padding: 8px !important; min-height: 40px !important; font-size: 15px !important; }

.water { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.glasses { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; color: var(--track); }
.glasses span { color: var(--dim); opacity: 0.4; } .glasses .full { color: var(--cyan); opacity: 1; filter: drop-shadow(0 0 6px rgba(56, 201, 255, 0.6)); }

/* ---------- Prayer ---------- */
.next-prayer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.np-big { font-size: 30px; font-weight: 900; }
.np-time-big { font-size: 44px; font-weight: 250; letter-spacing: -0.04em; line-height: 1; margin: 2px 0 6px; }
.loc-line { display: flex; align-items: center; gap: 6px; margin: -4px 4px 14px; flex-wrap: wrap; }
.pt-mini { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.prayer-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); }
.prayer-list .prayer-row:first-child { border-top: 0; }
.pr-time { font-size: 20px; font-weight: 300; letter-spacing: -0.02em; }
.pr-name { font-weight: 750; font-size: 16px; }
.prayer-row.is-current { background: linear-gradient(90deg, rgba(47, 123, 255, 0.12), transparent); border-radius: 12px; }
.prayer-row.is-done .pr-name { color: var(--green); }
.pgrid-row { display: grid; grid-template-columns: 64px repeat(5, 1fr); gap: 6px; align-items: center; padding: 4px 0; font-size: 12.5px; }
.pgrid-head { font-size: 11px; color: var(--dim); text-align: center; } .pgrid-head span:first-child { text-align: left; }
.adj-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.adj-grid label { display: flex; flex-direction: column; gap: 3px; } .adj-grid small { font-size: 11px; color: var(--muted); text-align: center; }
.adj-grid input { padding: 8px 4px !important; text-align: center; min-height: 40px !important; }

/* ---------- Schedule ---------- */
.timeline { position: relative; }
.tl { display: grid; grid-template-columns: 58px 16px 1fr; gap: 10px; align-items: stretch; }
.tl-time { padding-top: 14px; font-weight: 800; font-size: 15px; text-align: right; }
.tl-time small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.tl-dot { position: relative; }
.tl-dot::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-dot::after { content: ""; position: absolute; left: 2px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--card-solid); border: 2px solid var(--line-hi); }
.tl-next .tl-dot::after { border-color: var(--blue2); background: var(--blue2); box-shadow: 0 0 0 5px rgba(47, 123, 255, 0.2); }
.tl-done .tl-dot::after { background: var(--green); border-color: var(--green); }
.tl-card { display: flex; align-items: center; gap: 10px; margin: 5px 0; padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.tl-next .tl-card { border-color: rgba(90, 162, 255, 0.45); box-shadow: var(--glow); }
.tl-main { flex: 1; text-align: left; min-width: 0; }
.tl-main b { display: block; font-size: 14.5px; }
.tl-tags { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.tl-tags span { display: inline-flex; align-items: center; gap: 3px; }
.tl-off { opacity: 0.45; }
.tl-done .tl-main b { text-decoration: line-through; color: var(--muted); }

/* ---------- SOS ---------- */
.sos-hero { text-align: center; padding: 18px 4px 8px; }
.sos-hero h1 { font-size: clamp(36px, 11vw, 64px); font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; margin: 8px 0 12px; }
.sos-btn { position: relative; width: min(290px, 78vw); aspect-ratio: 1; border-radius: 50%; margin: 26px auto 26px; display: grid; place-items: center; padding: 36px; color: #fff; font-weight: 900; font-size: clamp(17px, 5vw, 21px); line-height: 1.15; letter-spacing: 0.01em;
  background: radial-gradient(circle at 35% 30%, #ff7a86, #e3304a 55%, #a3122b); box-shadow: 0 0 0 10px rgba(255, 77, 94, 0.12), 0 0 0 22px rgba(255, 77, 94, 0.06), 0 26px 60px -14px rgba(255, 50, 80, 0.75), inset 0 2px 0 rgba(255, 255, 255, 0.3); transition: transform 0.15s; }
.sos-btn::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 77, 94, 0.5); animation: ping 2.2s ease-out infinite; }
.sos-btn:active { transform: scale(0.96); }
@keyframes ping { 0% { transform: scale(0.95); opacity: 1; } 100% { transform: scale(1.18); opacity: 0; } }
.reason { font-style: italic; margin: 0; }
.soft-list { padding-left: 18px; color: var(--muted); } .soft-list li { margin: 6px 0; }

.sos-overlay { position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: radial-gradient(800px 500px at 50% 0%, rgba(47, 123, 255, 0.25), transparent 70%), #030814; opacity: 0; transition: opacity 0.3s; color: #f3f6ff; }
.sos-overlay.show { opacity: 1; }
.sos-inner { max-width: 520px; margin: 0 auto; padding: calc(40px + var(--safe-t)) 22px calc(40px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; min-height: 100%; }
.sos-msg { font-size: 22px; font-weight: 800; line-height: 1.3; min-height: 58px; transition: opacity 0.3s; letter-spacing: -0.02em; }
.sos-h { font-size: 20px; } .sos-types { display: grid; gap: 10px; width: 100%; }
.sos-timer .ring-label b { font-size: 2.2em; }
.breath { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.breath-circle { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(90, 162, 255, 0.5), rgba(47, 123, 255, 0.08) 70%); animation: breathe 14s ease-in-out infinite; }
@keyframes breathe { 0% { transform: scale(0.55); } 28.5% { transform: scale(1); } 57% { transform: scale(1); } 100% { transform: scale(0.55); } }
.breath-label { position: relative; font-weight: 700; font-size: 14px; }
.sos-steps { display: grid; gap: 8px; width: 100%; }
.sos-step { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); text-align: left; cursor: pointer; }
.sos-step input { width: 20px; height: 20px; accent-color: var(--green); }
.sos-step span { display: flex; gap: 8px; align-items: center; }
.sos-step:has(input:checked) { border-color: rgba(34, 209, 122, 0.4); background: rgba(34, 209, 122, 0.08); }
.sos-reasons { width: 100%; padding: 16px; border-radius: 16px; background: rgba(47, 123, 255, 0.08); border: 1px solid rgba(90, 162, 255, 0.2); }
.sos-reasons p { font-style: italic; margin: 6px 0; }
.sos-done { width: 100%; animation: enter 0.5s; }
.btn-choose { width: 100%; min-height: 64px; border-radius: 18px; font-size: 19px; font-weight: 900; letter-spacing: 0.04em; color: #03200e; background: linear-gradient(145deg, #3df09a, #16b464); box-shadow: 0 14px 40px -12px rgba(34, 209, 122, 0.8); }

.burst { position: fixed; left: 50%; top: 45%; z-index: 90; pointer-events: none; }
.burst i { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: hsl(var(--h), 90%, 60%); animation: burst 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards; }
@keyframes burst { to { transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) rotate(180deg); opacity: 0; } }

/* ---------- Journey ---------- */
.journey-track { display: flex; justify-content: space-between; align-items: center; margin: 4px 8px 18px; position: relative; }
.journey-track::before { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: var(--line-hi); }
.jt { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--card-solid); border: 2px solid var(--line-hi); color: var(--muted); }
.jt i { display: none; }
.jt.past { background: var(--green); border-color: var(--green); color: #03200e; }
.jt.now { background: var(--blue); border-color: var(--blue2); color: #fff; box-shadow: 0 0 0 6px rgba(47, 123, 255, 0.2); }
.phase summary { display: flex; align-items: center; gap: 14px; }
.phase-num { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 18px; background: var(--track); flex: none; }
.phase-now .phase-num { background: linear-gradient(145deg, #4f9cff, #2266ee); color: #fff; }
.phase-past .phase-num { background: var(--green); color: #03200e; }
.phase h3 { font-size: 19px; font-weight: 850; }
.phase-now { box-shadow: var(--glow); border-color: rgba(90, 162, 255, 0.3); }
.phase-motto { font-style: italic; color: var(--muted); margin: 14px 0 0; }
.check-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; font-size: 14px; }
.check-item input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.check-item input:checked + span { color: var(--muted); text-decoration: line-through; }

/* ---------- Journal ---------- */
.moods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.moods input { display: none; }
.moods span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 13px; background: var(--track); border: 1px solid var(--line); font-size: 12px; font-weight: 650; cursor: pointer; transition: 0.15s; }
.moods em { font-style: normal; font-size: 24px; }
.moods input:checked + span { border-color: var(--blue2); background: rgba(47, 123, 255, 0.16); transform: translateY(-2px); }
@media (min-width: 560px) { .moods { grid-template-columns: repeat(6, 1fr); } }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-wd { font-size: 11px; color: var(--dim); font-weight: 700; padding-bottom: 4px; }
.cal-d { aspect-ratio: 1; border-radius: 10px; font-size: 13px; font-weight: 650; position: relative; background: var(--track); display: grid; place-items: center; }
.cal-d.has { background: rgba(47, 123, 255, 0.2); }
.cal-d i { position: absolute; bottom: 1px; font-size: 10px; font-style: normal; }
.cal-d.today { outline: 2px solid var(--blue2); } .cal-d.sel { background: var(--blue); color: #fff; }
.jentry { padding: 10px 0; } .jmood { font-size: 26px; }

/* ---------- Settings ---------- */
.set-nav { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; position: sticky; top: 0; z-index: 5; padding: 6px 0; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); }
.set-nav::-webkit-scrollbar { display: none; }
.set-nav a { padding: 7px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.set-sec { scroll-margin-top: 60px; }
.set-h { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.set-h .ic { color: var(--blue2); }
.notif-status { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: var(--track); }
.ns { display: flex; justify-content: space-between; font-size: 13.5px; } .ns span { color: var(--muted); }
.ios-guide { margin-top: 12px; padding: 14px; border-radius: 14px; background: rgba(255, 181, 71, 0.08); border: 1px solid rgba(255, 181, 71, 0.25); font-size: 13.5px; }
.ios-guide ol { padding-left: 18px; margin: 8px 0; } .ios-guide li { margin: 4px 0; } .ios-guide small { color: var(--muted); }
.rem-list { max-height: 420px; overflow-y: auto; border-radius: 12px; }
.rem { border-top: 1px solid var(--line); } .rem:first-child { border-top: 0; }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-opt { padding: 12px 8px; border-radius: 14px; border: 2px solid var(--line); font-size: 13px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.theme-opt i { width: 100%; height: 46px; border-radius: 10px; }
.t-navy i { background: linear-gradient(145deg, #0a1838, #050b1a); box-shadow: inset 0 0 0 1px #2f7bff55; }
.t-black i { background: #000; box-shadow: inset 0 0 0 1px #333; }
.t-light i { background: linear-gradient(145deg, #fff, #e6edfa); box-shadow: inset 0 0 0 1px #cdd8ee; }
.theme-opt.on { border-color: var(--blue2); box-shadow: var(--glow); }
.code-box { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 20px; letter-spacing: 0.08em; text-align: center; padding: 16px; border-radius: 14px; background: var(--track); border: 1px dashed var(--line-hi); user-select: all; word-break: break-all; }
.danger-zone { margin-top: 16px; padding: 14px; border-radius: 14px; border: 1px solid rgba(255, 77, 94, 0.25); display: grid; gap: 8px; }
.danger-zone b { color: var(--red); font-size: 13px; }
.cons { margin-bottom: 12px; }

/* ---------- Finish ---------- */
.finish { text-align: center; padding: 30px 10px 20px; }
.finish .trophy { font-size: 72px; animation: float 3s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(255, 181, 71, 0.5)); }
@keyframes float { 50% { transform: translateY(-10px); } }
.finish h1 { font-size: clamp(44px, 13vw, 80px); font-weight: 900; letter-spacing: -0.045em; background: linear-gradient(90deg, #fff, #8fc0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.finish-sub { font-size: 20px; font-weight: 800; color: var(--green); margin-top: 6px; }
.finish blockquote { margin: 18px auto 0; max-width: 520px; font-size: 17px; font-style: italic; color: var(--muted); }
.cert-prev { margin-top: 6px; }

/* ---------- Modal / toast ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(2, 6, 16, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s; }
.modal-backdrop.show { opacity: 1; }
.modal { position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; padding: 22px 18px calc(22px + var(--safe-b)); border-radius: 26px 26px 0 0; background: var(--card-solid); border: 1px solid var(--line-hi); border-bottom: 0; transform: translateY(30px); transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.2, 1); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.6); }
.modal-wide { max-width: 640px; }
.modal-backdrop.show .modal { transform: none; }
@media (min-width: 1000px) { .modal { border-radius: 24px; border-bottom: 1px solid var(--line-hi); } }
.modal-title { font-size: 20px; font-weight: 850; margin-bottom: 12px; padding-right: 40px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--track); display: grid; place-items: center; color: var(--muted); }
.menu-list { display: grid; gap: 4px; }
.menu-list button { display: flex; align-items: center; gap: 10px; padding: 13px 12px; border-radius: 12px; font-weight: 650; text-align: left; background: var(--track); }
.menu-list .danger { color: var(--red); }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.more-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px; border-radius: 16px; background: var(--track); font-size: 12.5px; font-weight: 700; }
.more-grid .ic { color: var(--blue2); }
.onb { text-align: center; margin-bottom: 18px; }
.onb h2 { font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.onb .accent { background: linear-gradient(90deg, #5aa2ff, #8f7dff); -webkit-background-clip: text; background-clip: text; color: transparent; }

#toasts { position: fixed; left: 50%; top: calc(12px + var(--safe-t)); transform: translateX(-50%); z-index: 95; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; color: #fff; background: rgba(20, 34, 66, 0.95); border: 1px solid rgba(90, 162, 255, 0.3); box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.6); backdrop-filter: blur(14px); opacity: 0; transform: translateY(-10px); transition: 0.3s; }
.toast.show { opacity: 1; transform: none; }
.toast-ok { border-color: rgba(34, 209, 122, 0.45); } .toast-warn { border-color: rgba(255, 181, 71, 0.55); background: rgba(56, 38, 12, 0.95); }

@keyframes pulse { 50% { transform: scale(1.08); box-shadow: 0 0 40px rgba(47, 123, 255, 0.8); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* =====================================================================
   v2 — Tema, foto asli, motion & grafik
   ===================================================================== */
:root { --accent: #7cb8ff; --accent2: #2f6fe0; --s1: #4f9cff; --s2: #18a862; --s3: #9480ff; --s4: #cc8a2c; --aur1: rgba(47,123,255,.35); --aur2: rgba(124,92,255,.22); --aur3: rgba(0,200,255,.16); --btn1: #5aa2ff; --btn2: #2266ee; }
[data-theme="light"] { --s1: #2f6fe0; --s2: #138a4f; --s3: #7a62f0; --s4: #b06f12; --accent: #5aa2ff; --accent2: #2f6fe0; --aur1: rgba(47,123,255,.16); --aur2: rgba(124,92,255,.1); --aur3: rgba(0,200,255,.1); }
[data-theme="aurora"] { --bg: #060818; --bg2: #0b0f2a; --card: rgba(18, 20, 52, .6); --card-solid: #0f1233; --card-hi: rgba(30, 30, 80, .66); --line: rgba(160, 150, 255, .14); --line-hi: rgba(160, 150, 255, .3);
  --blue: #6a5cff; --blue2: #9b8cff; --accent: #64e3ff; --accent2: #8b6bff; --btn1: #8f7dff; --btn2: #4c3fe0; --aur1: rgba(110, 80, 255, .45); --aur2: rgba(0, 220, 200, .28); --aur3: rgba(255, 80, 200, .18); }
[data-theme="gold"] { --bg: #0b0906; --bg2: #15110a; --card: rgba(30, 24, 14, .66); --card-solid: #17120a; --card-hi: rgba(44, 34, 18, .75); --line: rgba(240, 196, 106, .14); --line-hi: rgba(240, 196, 106, .3);
  --blue: #c9962e; --blue2: #f0c46a; --accent: #ffe0a0; --accent2: #c9962e; --btn1: #f0c46a; --btn2: #b07f1c; --aur1: rgba(240, 180, 80, .22); --aur2: rgba(160, 90, 30, .2); --aur3: rgba(255, 220, 150, .1);
  --glow: 0 0 0 1px rgba(240,196,106,.16), 0 18px 50px -22px rgba(240,170,60,.5); }
[data-theme="black"] { --aur1: rgba(47,123,255,.16); --aur2: rgba(124,92,255,.1); --aur3: rgba(0,200,255,.08); }
body { background-image: none !important; }

/* Latar aurora bergerak */
.aurora { position: fixed; inset: -20vmax; z-index: -1; pointer-events: none; filter: blur(60px); }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; will-change: transform; }
.aurora i:nth-child(1) { background: radial-gradient(circle, var(--aur1), transparent 65%); top: 0; right: 0; animation: aur1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: radial-gradient(circle, var(--aur2), transparent 65%); top: 30%; left: 0; animation: aur2 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: radial-gradient(circle, var(--aur3), transparent 65%); bottom: 0; right: 20%; animation: aur3 38s ease-in-out infinite alternate; }
@keyframes aur1 { to { transform: translate(-30vmax, 20vmax) scale(1.2); } }
@keyframes aur2 { to { transform: translate(30vmax, -15vmax) scale(.85); } }
@keyframes aur3 { to { transform: translate(-20vmax, -25vmax) scale(1.15); } }

/* Foto */
.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.ph.ok { opacity: 1; }
.kb { animation: kb 28s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kb { from { transform: scale(1.04); } to { transform: scale(1.18) translate(-2%, 1%); } }
.tile-shade, .pc-shade, .hh-shade, .ph-shade, .ach-shade, .phase-shade { position: absolute; inset: 0; pointer-events: none; }

/* Tombol: gradien tema + kilau */
.btn-primary { background: linear-gradient(145deg, var(--btn1), var(--btn2)); position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); animation: shine 5s ease-in-out infinite 2s; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
[data-theme="gold"] .btn-primary { color: #1a1205; }
.tabs a.on, .photo-tabs a.on span { background: linear-gradient(145deg, var(--btn1), var(--btn2)); }
.pbar-fill { width: var(--w); background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.glass { background: color-mix(in srgb, var(--card-solid) 62%, transparent) !important; backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%); border-color: rgba(255,255,255,.12) !important; }

/* ---------- Hero beranda ---------- */
.home-hero { position: relative; margin: calc(-14px - var(--safe-t)) -16px 0; min-height: min(74vh, 640px); overflow: hidden; display: flex; align-items: flex-end; background: linear-gradient(160deg, #10224a, var(--bg)); }
.hh-media { position: absolute; inset: -40px 0 0; }
.hh-shade { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.05) 35%, color-mix(in srgb, var(--bg) 70%, transparent) 72%, var(--bg) 100%); }
.hh-content { position: relative; z-index: 2; width: 100%; padding: calc(16px + var(--safe-t)) 18px 96px; color: #fff; }
.home-hero .hero-top { position: absolute; top: calc(14px + var(--safe-t)); left: 16px; right: 16px; }
.glass-pill { padding: 8px 14px; border-radius: 16px; background: rgba(10, 16, 34, .38); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.tiny { font-size: 11.5px; opacity: .75; }
.home-hero .avatar { border-color: rgba(255,255,255,.3); background: rgba(10,16,34,.4); backdrop-filter: blur(14px); }
.hero-title { text-shadow: 0 10px 40px rgba(0,0,0,.35); }
.hero-title .w { display: block; }
.hero-title .w > span { display: inline-block; }
.view.enter .hero-title .w > span { animation: rise 1s cubic-bezier(.2,.9,.2,1) both; animation-delay: calc(var(--i) * .11s + .1s); }
@keyframes rise { from { opacity: 0; transform: translateY(60%) rotate(4deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.hero-title .accent { background: linear-gradient(90deg, var(--accent), var(--blue2) 50%, var(--accent2)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hue 8s ease-in-out infinite alternate; }
.view.enter .hero-title .accent > span { animation: rise 1s cubic-bezier(.2,.9,.2,1) both, hue 8s ease-in-out infinite alternate; animation-delay: calc(var(--i) * .11s + .1s), 0s; }
@keyframes hue { to { background-position: 100% 0; } }
.home-hero .hero-tag { color: #fff; }
.home-hero .hero-sub { color: rgba(255,255,255,.82); }
.card.lift { margin-top: -74px; z-index: 3; }
@media (min-width: 1000px) {
  .home-hero { margin: -34px -40px 0; border-radius: 0 0 32px 32px; min-height: 560px; }
  .hh-content { padding: 40px 44px 110px; }
  .home-hero .hero-top { left: 40px; right: 40px; top: 28px; }
  .page-hero { margin: -34px -40px 18px !important; border-radius: 0 0 28px 28px; height: 260px !important; }
  .page-hero .ph-content { padding: 0 40px 26px !important; }
  .tiles { grid-template-columns: repeat(4, 1fr) !important; }
}

/* Countdown */
.countdown .ring-label b, .score-card .ring-label b { background: linear-gradient(180deg, #fff, #b9d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .countdown .ring-label b, [data-theme="light"] .score-card .ring-label b { background: none; color: var(--text); }
.ring-fg { transition: none; filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent2) 70%, transparent)); }

/* Kartu libur */
.rest-card { position: relative; display: block; height: 116px; border-radius: var(--r); overflow: hidden; margin-bottom: 14px; background: linear-gradient(135deg, #0f5a4a, #0b2a3a); }
.rest-card .tile-shade { background: linear-gradient(90deg, rgba(3, 30, 25, .85), rgba(3, 30, 25, .15)); }
.rest-txt { position: absolute; left: 18px; right: 40%; top: 50%; transform: translateY(-50%); color: #fff; }
.rest-txt b { display: block; font-size: 17px; } .rest-txt span { font-size: 12.5px; opacity: .85; }

/* Cincin aktivitas */
.act-rings { display: flex; align-items: center; gap: 18px; }
.act-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; flex: 1; min-width: 0; }
.act-legend li { display: grid; grid-template-columns: 10px 1fr auto; column-gap: 8px; align-items: center; font-size: 13.5px; }
.act-legend i { width: 10px; height: 10px; border-radius: 4px; }
.act-legend b { font-size: 16px; }
.act-legend small { grid-column: 2 / 4; color: var(--muted); font-size: 11.5px; margin-top: -2px; }
.act-rings .ring-label b { font-size: 26px; } .act-rings .ring-label small { font-size: 11px; }
.act-rings .ring-fg { filter: none; }
.week-strip { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ws-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.ws-head b { color: var(--text); font-size: 14px; }
.ws-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ws { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; color: var(--dim); }
.ws i { width: 100%; max-width: 26px; height: 44px; border-radius: 8px; background: var(--track); position: relative; overflow: hidden; }
.ws i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); border-radius: 8px; background: linear-gradient(180deg, var(--s1), color-mix(in srgb, var(--s1) 60%, #000)); }
.ws i.is-good::after { background: linear-gradient(180deg, #3df09a, var(--s2)); }
.ws i.is-rest::after { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--s2) 50%, transparent) 0 4px, transparent 4px 8px); height: 100%; }
.view.enter .ws i::after { animation: grow .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 60ms + .35s); transform-origin: bottom; }

/* Kartu foto umum */
.photo-card { overflow: hidden; color: #fff; min-height: 190px; background: linear-gradient(150deg, #13284f, #0a1530); border-color: rgba(255,255,255,.1); }
.photo-card .pc-shade { background: linear-gradient(180deg, rgba(4,10,24,.25), rgba(4,10,24,.88)); }
.photo-card .pc-shade.dark { background: linear-gradient(180deg, rgba(4,10,24,.45), rgba(4,10,24,.82)); }
.photo-card .pc-shade.side { background: linear-gradient(90deg, rgba(4,10,24,.88), rgba(4,10,24,.35)); }
.pc-body { position: relative; z-index: 2; }
.photo-card .muted, .photo-card .small { color: rgba(255,255,255,.78); }
.eyebrow.light, .sec-mini.light { color: rgba(255,255,255,.85); }
.prayer-card .pt-strip div { background: rgba(255,255,255,.1); backdrop-filter: blur(10px); position: relative; }
.prayer-card .pt-strip .is-next { background: color-mix(in srgb, var(--blue) 45%, transparent); }
.prayer-card .pt-strip i { position: absolute; top: 2px; right: 5px; font-size: 10px; font-style: normal; color: #3df09a; }
.prayer-card .np-in { background: rgba(255,255,255,.16); color: #fff; }
.quote-card { min-height: 150px; display: flex; align-items: flex-end; }
.quote-card blockquote { font-size: 20px; text-shadow: 0 4px 20px rgba(0,0,0,.4); }
.phase-card { min-height: 220px; display: flex; align-items: flex-end; }
.phase-big { font-size: 30px; font-weight: 900; letter-spacing: -.02em; margin: 2px 0; }
.glass-chip { background: rgba(255,255,255,.14) !important; color: #fff !important; border-color: rgba(255,255,255,.2) !important; backdrop-filter: blur(10px); }

/* Tile foto */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.tile { position: relative; display: block; aspect-ratio: 1 / .92; border-radius: 22px; overflow: hidden; color: #fff; text-align: left; background: linear-gradient(150deg, #1a2f5c, #0b1630); border: 1px solid rgba(255,255,255,.08); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; isolation: isolate; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.7); }
.tile:hover .ph { transform: scale(1.07); }
.tile:active { transform: scale(.97); }
.tile .tile-shade { background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(3,8,22,.88)); }
.tile-txt { position: absolute; left: 14px; right: 14px; bottom: 13px; z-index: 2; }
.tile-txt b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.tile-txt small { font-size: 12px; opacity: .8; }
.tile-sos .tile-shade { background: linear-gradient(180deg, rgba(220,30,60,.25), rgba(70,0,15,.92)); }
.tile-sos::after { content: ""; position: absolute; top: 12px; right: 12px; width: 12px; height: 12px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 0 rgba(255,77,94,.7); animation: beacon 1.8s infinite; z-index: 3; }
@keyframes beacon { 70% { box-shadow: 0 0 0 14px rgba(255,77,94,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,94,0); } }
.tile-meter { position: absolute; left: 14px; right: 14px; top: 14px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.2); z-index: 2; overflow: hidden; }
.tile-meter i { display: block; height: 100%; background: #6fd8ff; border-radius: 9px; transition: width .6s; }

/* Pencapaian berfoto */
.ach-row { display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ach-row::-webkit-scrollbar { display: none; }
.ach { position: relative; height: 160px; border-radius: 18px; overflow: hidden; scroll-snap-align: start; color: #fff; background: #13213f; }
.ach .ach-shade { background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(3,8,22,.9)); }
.ach:not(.on) .ph { filter: grayscale(1) brightness(.5) blur(1px); }
.ach-emo { position: absolute; top: 10px; left: 10px; font-size: 22px; z-index: 2; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.ach b { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; font-size: 13px; line-height: 1.2; }
.ach.on { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 60%, transparent), 0 10px 30px -14px var(--accent2); }

/* Header halaman berfoto */
.page-hero { position: relative; margin: calc(-14px - var(--safe-t)) -16px 16px; height: calc(210px + var(--safe-t)); overflow: hidden; display: flex; align-items: flex-end; color: #fff; background: linear-gradient(160deg, #13284f, var(--bg)); }
.ph-media { position: absolute; inset: -30px 0 0; }
.ph-shade { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.08) 40%, color-mix(in srgb, var(--bg) 82%, transparent) 88%, var(--bg)); }
.ph-content { position: relative; z-index: 2; width: 100%; display: flex; align-items: flex-end; gap: 12px; padding: 0 18px 16px; }
.page-hero h1 { font-size: 30px; font-weight: 900; text-shadow: 0 6px 30px rgba(0,0,0,.45); }
.page-hero p { color: rgba(255,255,255,.85); font-size: 13.5px; margin: 2px 0 0; }
[data-theme="light"] .page-hero h1, [data-theme="light"] .page-hero p { color: var(--text); text-shadow: none; }
.page-hero .btn-ghost { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(12px); }
.view.enter .title-anim { animation: rise .9s cubic-bezier(.2,.9,.2,1) both .05s; }

/* Banner kategori kebiasaan */
.group-banner { position: relative; margin: -18px -18px 10px; height: 96px; overflow: hidden; border-radius: var(--r) var(--r) 0 0; color: #fff; background: linear-gradient(150deg, #1a2f5c, #0b1630); }
.group-banner.short { height: 80px; }
.group-banner .tile-shade { background: linear-gradient(90deg, rgba(3,8,22,.85), rgba(3,8,22,.25)); }
.gb-txt { position: absolute; left: 18px; bottom: 16px; z-index: 2; }
.gb-txt h2 { font-size: 19px; font-weight: 850; } .gb-txt span { font-size: 12px; opacity: .85; }
.gb-meter { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.12); z-index: 2; }
.gb-meter i { display: block; height: 100%; background: linear-gradient(90deg, #3df09a, #18a862); box-shadow: 0 0 10px #3df09a; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.habit { transition: background .3s; border-radius: 12px; }
.habit.is-done .hname { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--green) 60%, transparent); }
.hcheck .ic { transform: scale(0); transition: transform .35s cubic-bezier(.3,1.8,.5,1); }
.habit.is-done .hcheck .ic, .hcheck.on .ic { transform: scale(1); }

/* Tab foto kesehatan */
.photo-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); gap: 8px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; padding: 2px; }
.photo-tabs::-webkit-scrollbar { display: none; }
.photo-tabs a { position: relative; height: 78px; border-radius: 16px; overflow: hidden; background: #13213f; transition: transform .2s; }
.photo-tabs a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(3,8,22,.85)); }
.photo-tabs span { position: absolute; left: 8px; bottom: 8px; z-index: 2; color: #fff; font-weight: 800; font-size: 13px; padding: 2px 8px; border-radius: 8px; }
.photo-tabs a:not(.on) .ph { filter: saturate(.6) brightness(.75); }
.photo-tabs a.on { box-shadow: 0 0 0 2px var(--blue2), 0 10px 26px -10px var(--blue); transform: translateY(-2px); }

/* Gelas air animasi */
.water { text-align: center; min-height: 380px; }
.water-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 6px 0; }
.water-glass { position: relative; width: 132px; height: 180px; border-radius: 10px 10px 34px 34px; border: 3px solid rgba(255,255,255,.55); border-top-width: 2px; overflow: hidden; background: rgba(255,255,255,.08); backdrop-filter: blur(6px); box-shadow: inset 0 0 30px rgba(255,255,255,.08), 0 20px 50px -20px rgba(56,201,255,.6); }
.wg-fill { position: absolute; left: 0; right: 0; bottom: 0; height: var(--lvl); transition: height 1s cubic-bezier(.2,.8,.2,1); background: linear-gradient(180deg, rgba(110,215,255,.85), rgba(30,120,255,.9)); }
.wg-fill i { position: absolute; left: -50%; top: -12px; width: 200%; height: 24px; border-radius: 45%; background: rgba(150,225,255,.9); animation: wave 4s linear infinite; }
.wg-fill i + i { opacity: .5; animation-duration: 6s; animation-direction: reverse; top: -9px; }
@keyframes wave { to { transform: translateX(25%) rotate(360deg); } }
.wg-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 2; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.wg-label b { font-size: 44px; font-weight: 900; } .wg-label small { font-size: 12px; }

/* SOS */
.sos-hero { position: relative; margin: calc(-14px - var(--safe-t)) -16px 0; padding: calc(40px + var(--safe-t)) 20px 18px; overflow: hidden; color: #fff; }
.sos-hero > *:not(.sos-hero-bg):not(.sos-hero-shade) { position: relative; z-index: 2; }
.sos-hero-bg { position: absolute; inset: -40px 0 0; }
.sos-hero-shade { position: absolute; inset: 0; background: radial-gradient(circle at 50% 55%, rgba(120,0,20,.35), rgba(3,6,16,.86) 70%), linear-gradient(180deg, rgba(3,6,16,.4), var(--bg)); }
.sos-hero .muted { color: rgba(255,255,255,.8); }
@media (min-width: 1000px) { .sos-hero { margin: -34px -40px 0; border-radius: 0 0 32px 32px; } }
.sos-btn { animation: breatheBtn 3.6s ease-in-out infinite; }
@keyframes breatheBtn { 50% { transform: scale(1.035); } }
.sos-bg { position: absolute; inset: 0; z-index: 0; }
.sos-bg-shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(3,8,22,.55), rgba(3,8,22,.88) 60%, #030814); }
.sos-overlay { background: #030814; }
.sos-inner { position: relative; z-index: 1; }
.sos-step { position: relative; padding: 10px 12px 10px 10px; }
.sos-step input { position: absolute; opacity: 0; }
.step-img { position: relative !important; width: 46px !important; height: 46px !important; border-radius: 12px; flex: none; }
.step-check { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); display: grid; place-items: center; font-style: normal; color: transparent; transition: .25s; }
.sos-step:has(input:checked) .step-check { background: var(--green); border-color: var(--green); color: #03200e; transform: scale(1.1); }

/* KPI berfoto */
.stat-photo { position: relative; overflow: hidden; min-height: 128px; color: #fff; padding: 0 !important; background: #13213f; }
.stat-photo .tile-shade { background: linear-gradient(180deg, rgba(3,8,22,.2), rgba(3,8,22,.9)); }
.sp-txt { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 2; }
.sp-txt b { font-size: 28px; font-weight: 900; letter-spacing: -.03em; display: block; line-height: 1; }
.sp-txt b small { font-size: 14px; font-weight: 700; }
.sp-txt small { font-size: 11.5px; opacity: .85; display: block; margin-top: 3px; }
.spark { display: block; margin-top: 6px; }
.cons-rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 14px 8px; }
.cons-ring { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; }
.cons-ring .ring-label b { font-size: 17px; }
.big-pct { font-size: 22px; }

/* Perjalanan */
.journey-track { position: relative; display: flex; justify-content: space-between; margin: 4px 6px 22px; }
.journey-track::before { display: none; }
.jt-line { position: absolute; left: 17px; right: 17px; top: 17px; height: 3px; background: var(--line-hi); border-radius: 3px; }
.jt-line i { display: block; height: 100%; width: var(--prog); background: linear-gradient(90deg, #3df09a, var(--blue2)); border-radius: 3px; box-shadow: 0 0 10px var(--blue2); }
.view.enter .jt-line i { animation: widen 1.4s cubic-bezier(.2,.8,.2,1) both .3s; }
.jt { flex-direction: column; display: flex; align-items: center; gap: 6px; width: auto; height: auto; background: none; border: 0; }
.jt span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--card-solid); border: 2px solid var(--line-hi); }
.jt small { font-size: 9.5px; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.jt.past span { background: var(--green); border-color: var(--green); color: #03200e; }
.jt.now span { background: var(--blue); border-color: var(--blue2); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--blue) 25%, transparent); animation: pulseRing 2.4s infinite; }
@keyframes pulseRing { 50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--blue) 8%, transparent); } }
.phase { padding: 0; overflow: hidden; }
.phase > :not(summary) { margin-left: 18px; margin-right: 18px; }
.phase > textarea { width: calc(100% - 36px); }
.phase > :last-child { margin-bottom: 18px; }
.phase summary { position: relative; min-height: 132px; padding: 18px; align-items: flex-end; color: #fff; overflow: hidden; background: #13213f; }
.phase summary > :not(.phase-photo) { position: relative; z-index: 2; }
.phase-photo { position: absolute; inset: 0; }
.phase-shade { background: linear-gradient(180deg, rgba(3,8,22,.1), rgba(3,8,22,.88)); }
.phase:not(.phase-now):not([open]) .phase-photo .ph { filter: saturate(.5) brightness(.7); }
.phase summary .small.muted { color: rgba(255,255,255,.85); }
.phase summary .eyebrow { color: rgba(255,255,255,.85); }
.phase-num { background: rgba(255,255,255,.16); backdrop-filter: blur(10px); }

/* Selesai & onboarding */
.finish { position: relative; margin: calc(-14px - var(--safe-t)) -16px 14px; padding: calc(60px + var(--safe-t)) 20px 30px; overflow: hidden; color: #fff; }
.finish > *:not(.finish-bg):not(.finish-shade) { position: relative; z-index: 2; }
.finish-bg { position: absolute; inset: -40px 0 0; }
.finish-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,6,16,.35), rgba(3,6,16,.6) 60%, var(--bg)); }
.finish blockquote { color: rgba(255,255,255,.85); }
.onb-photo { position: relative; height: 150px; margin: -22px -18px -46px; overflow: hidden; border-radius: 26px 26px 0 0; }
.onb-photo .tile-shade { background: linear-gradient(180deg, transparent, var(--card-solid)); }
.onb .logo { position: relative; z-index: 2; }

/* Menu Lainnya */
.more-grid { grid-template-columns: repeat(2, 1fr) !important; }
.more-grid .tile { aspect-ratio: 1.4 / 1; padding: 0 !important; background: #13213f !important; }
@media (min-width: 560px) { .more-grid { grid-template-columns: repeat(3, 1fr) !important; } }

/* ---------- Grafik ---------- */
.bars { padding-top: 22px; gap: 8px; }
.bars-grid { position: absolute; inset: 22px 0 22px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.bars-grid i { border-top: 1px solid var(--line); }
.bar-col { position: relative; z-index: 1; cursor: default; }
.bar-track { background: transparent; border-radius: 0; overflow: visible; max-width: 30px; }
.bar { position: relative; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 55%, transparent)); box-shadow: 0 0 18px -6px var(--c); transform-origin: bottom; }
.bar-muted { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--s2) 45%, transparent) 0 4px, transparent 4px 8px) !important; box-shadow: none; }
.bar-val { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); font-size: 11px; font-weight: 800; color: var(--text); white-space: nowrap; height: auto; }
.bar-col.tip-on .bar { filter: brightness(1.25); }
.bars-goal { margin-top: 0; top: auto; }
.bars-goal { border-top: 1.5px dashed color-mix(in srgb, var(--green) 70%, transparent); }
.view.enter .bar { animation: grow 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 60ms + .2s); }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes widen { from { width: 0; } }
.view.enter .pbar-fill { animation: widen 1.2s cubic-bezier(.2,.8,.2,1) both .25s; }
.linechart-wrap { position: relative; }
.lc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.lc-head b { font-size: 28px; font-weight: 900; letter-spacing: -.03em; } .lc-head b small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.lc-head > span { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--track); }
.lc-head > .down { color: var(--green); } .lc-head > .up { color: var(--amber); }
.lc-grid { stroke: var(--line); stroke-width: 1; }
.lc-target { stroke: var(--green); stroke-dasharray: 4 5; stroke-width: 1.3; opacity: .8; }
.lc-line { filter: drop-shadow(0 4px 10px rgba(47,123,255,.35)); }
.view.enter .lc-line { stroke-dasharray: 1; animation: draw 1.8s cubic-bezier(.3,.7,.2,1) both .2s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.view.enter .lc-area { animation: fadeIn 1.4s ease both .9s; }
.view.enter .lc-pt circle { animation: popIn .4s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i) * 90ms + .8s); transform-box: fill-box; transform-origin: center; }
.lc-pt.tip-on circle { r: 6; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { transform: scale(0); } }
.chart-empty { padding: 22px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line-hi); border-radius: 14px; }
.view.enter .mc { animation: popIn .45s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--i) * 14ms + .2s); }
.mc.tip-on { transform: scale(1.15); }
.chart-tip { position: fixed; z-index: 99; pointer-events: none; padding: 7px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(10, 18, 40, .94); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; white-space: nowrap; }
.chart-tip.show { opacity: 1; transform: none; }

/* Reveal bertahap */
.rv { opacity: 0; transform: translateY(22px) scale(.985); }
.rv.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 60ms); }
.view.enter { animation: pageIn .5s cubic-bezier(.2,.8,.2,1); }
@keyframes pageIn { from { opacity: 0; filter: blur(6px); } }

/* Partikel & konfeti */
.sparkle { position: fixed; z-index: 98; pointer-events: none; }
.sparkle i { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--c); animation: spk .65s cubic-bezier(.1,.8,.3,1) forwards; }
@keyframes spk { to { transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(.2); opacity: 0; } }
.confetti { position: fixed; inset: 0; z-index: 97; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; background: var(--c); animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); } }

/* Tab bar: indikator aktif */
.tabbar a.on:not(.tab-sos)::before, .tabbar button.on::before { content: ""; position: absolute; top: -6px; width: 22px; height: 3px; border-radius: 3px; background: var(--blue2); box-shadow: 0 0 10px var(--blue2); animation: popIn .35s cubic-bezier(.3,1.6,.5,1); }
.tabbar a, .tabbar button { position: relative; }
.tab-sos .ic { animation: beaconSos 2.6s infinite; }
@keyframes beaconSos { 50% { box-shadow: 0 8px 24px -6px rgba(255,77,94,.7), 0 0 0 4px var(--bg), 0 0 0 10px rgba(255,77,94,.15); } }

/* Pilihan tema */
.themes { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important; }
.theme-opt { align-items: flex-start !important; text-align: left; }
.theme-opt i { position: relative; overflow: hidden; height: 64px !important; }
.theme-opt i em { position: absolute; width: 60%; height: 120%; border-radius: 50%; filter: blur(10px); }
.theme-opt b { font-size: 13.5px; } .theme-opt small { font-size: 11px; color: var(--muted); font-weight: 500; }
.t-aurora i { background: #060818; } .t-aurora em:nth-child(1) { background: #6a5cff; left: -10%; top: -20%; } .t-aurora em:nth-child(2) { background: #00dcc8; right: -15%; top: 10%; opacity: .7; } .t-aurora em:nth-child(3) { background: #ff50c8; left: 30%; bottom: -60%; opacity: .5; }
.t-gold i { background: linear-gradient(145deg, #1d160b, #0b0906); } .t-gold em:nth-child(1) { background: #f0c46a; left: 20%; top: 10%; opacity: .55; }
.t-navy em:nth-child(1) { background: #2f7bff; right: -10%; top: -20%; opacity: .6; }

/* Mode animasi mati */
[data-motion="off"] .aurora i, [data-motion="off"] .kb, [data-motion="off"] .btn-primary::after, [data-motion="off"] .sos-btn, [data-motion="off"] .tab-sos .ic, [data-motion="off"] .wg-fill i { animation: none !important; }
[data-motion="off"] .rv { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .aurora, .kb { animation: none !important; } .rv { opacity: 1 !important; transform: none !important; } }
.next-prayer { display: block !important; min-height: 210px; }
.np-grid { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.next-prayer .muted { color: rgba(255,255,255,.8); }
.next-prayer .ring-label small { color: rgba(255,255,255,.75); }
/* perbaikan v2 */
.hh-content { position: static; }
.hh-content > *:not(.hero-top) { position: relative; z-index: 2; }
.home-hero .hero-top { z-index: 3; margin: 0; }
.jt.past, .jt.now { background: none !important; border: 0 !important; box-shadow: none !important; animation: none !important; }
.wg-fill { background: none; overflow: visible; }
.wg-fill i { position: absolute; width: 360px; height: 360px; left: 50%; margin-left: -180px; top: -10px; border-radius: 42%; background: linear-gradient(180deg, rgba(110,215,255,.92), rgba(30,110,255,.95) 40%); animation: spinw 7s linear infinite; }
.wg-fill i + i { top: -14px; opacity: .45; animation-duration: 11s; background: rgba(160,230,255,.9); }
@keyframes spinw { to { transform: rotate(360deg); } }
.water-glass.empty .wg-fill i { display: none; }
/* gradien teks per kata (lebih andal di Safari/Chrome saat beranimasi) */
.hero-title .w.accent { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: inherit !important; animation: none !important; filter: drop-shadow(0 0 24px color-mix(in srgb, var(--accent2) 45%, transparent)); }
.hero-title .w.accent > span { background: linear-gradient(90deg, var(--accent), var(--blue2) 50%, var(--accent2)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.view:not(.enter) .hero-title .w.accent > span { animation: hue 8s ease-in-out infinite alternate; }
