/* STABL
   Layout: sticky sidebar + 12-col modular grid on desktop; single column + bottom tab bar on phones.
   Charcoal (Arang) carries the brand; stabilo green marks what matters, like a highlighter on paper. */
:root {
  --bg: #F4F5F2;
  --surface: #FFFFFF;
  --surface-2: #ECEDEA;
  --ink: #2A2C30;
  --ink-2: #45484F;
  --muted: #696C73;
  --line: #E1E2DF;
  --accent: #8CFF4F;
  --accent-ink: #2A2C30;
  --accent-soft: #E3FBD3;
  --brand: #2A2C30;
  --brand-ink: #FFFFFF;
  --brand-line: #3A3D42;
  --focus: #2A2C30;
  --pos: #1F7A4D;
  --pos-soft: #DCEFE3;
  --neg: #CF4636;
  --neg-soft: #F8E1DD;
  --warn: #A86A12;
  --scrim: rgba(20, 21, 23, .45);
  --glass: rgba(255, 255, 255, .86);
  --shadow-pop: 0 18px 50px -12px rgba(20, 21, 23, .28);

  --f-display: "Bricolage Grotesque", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.45, .64, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141517; --surface: #1D1F22; --surface-2: #26282C; --ink: #EDEEEA; --ink-2: #C8CAC6;
    --muted: #9A9DA3; --line: #2E3034; --accent-soft: #24331B; --focus: #8CFF4F;
    --pos: #4CC28A; --pos-soft: #14301F; --neg: #F17565; --neg-soft: #3B1D18; --warn: #E9B04F;
    --scrim: rgba(0, 0, 0, .6); --glass: rgba(29, 31, 34, .86); --shadow-pop: 0 18px 50px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141517; --surface: #1D1F22; --surface-2: #26282C; --ink: #EDEEEA; --ink-2: #C8CAC6;
  --muted: #9A9DA3; --line: #2E3034; --accent-soft: #24331B; --focus: #8CFF4F;
  --pos: #4CC28A; --pos-soft: #14301F; --neg: #F17565; --neg-soft: #3B1D18; --warn: #E9B04F;
  --scrim: rgba(0, 0, 0, .6); --glass: rgba(29, 31, 34, .86); --shadow-pop: 0 18px 50px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- base ---------- */
/* Tanpa kotak sorotan bawaan saat mengetuk di HP; efek hover hanya untuk perangkat dengan kursor. */
html { -webkit-tap-highlight-color: transparent; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 650; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.ic { display: block; flex: none; }
.amt, .num { font-variant-numeric: tabular-nums; }
.privacy .amt { filter: blur(7px); }
.amt { transition: filter .35s var(--ease-out); }
.eyebrow {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  transition: transform .2s var(--ease-spring), background-color .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
a.btn { text-decoration: none; }
@media (hover: hover) { .btn-primary:hover { box-shadow: 0 8px 22px -8px var(--accent); } }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
@media (hover: hover) { .btn-ghost:hover { background: var(--line); } }
.btn-danger { background: var(--neg-soft); color: var(--neg); }
.btn-danger.armed { background: var(--neg); color: #fff; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; color: var(--ink-2);
  transition: background-color .2s, transform .2s var(--ease-spring);
}
@media (hover: hover) { .icon-btn:hover { background: var(--surface-2); } }
.icon-btn:active { transform: scale(.9); }
.link-btn { color: var(--ink); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; }
@media (hover: hover) { .link-btn:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* ---------- splash ---------- */
.splash { min-height: 100vh; display: grid; place-items: center; }
.splash .mark { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.88); opacity: .6; } }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.login-art {
  position: relative; overflow: hidden; isolation: isolate; background: var(--brand); color: var(--brand-ink);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding-block: 36px; padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: 40px;
}
/* Ledger-paper dots drifting slowly, and a soft highlighter glow behind the logo */
.login-art::before {
  content: ""; position: absolute; inset: -40px; z-index: -2;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--brand-ink) 10%, transparent) 1.2px, transparent 1.7px);
  background-size: 26px 26px; animation: drift 30s linear infinite;
}
.login-art::after {
  content: ""; position: absolute; z-index: -1; width: 64%; aspect-ratio: 1; left: 18%; top: 14%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 66%);
  animation: glow 6s ease-in-out infinite;
}
@keyframes drift { to { transform: translate(26px, 26px); } }
@keyframes glow { 50% { transform: scale(1.14); opacity: .65; } }
.login-art .brand { color: var(--brand-ink); animation: rise .7s var(--ease-out) both; }

.art-stage { position: relative; flex: 1; min-height: 400px; }
.art-logo { position: absolute; left: 50%; top: 48%; width: clamp(150px, 16vw, 220px); aspect-ratio: 1; translate: -50% -50%; }
.art-logo svg { width: 100%; height: 100%; overflow: visible; }
.art-logo .pie { fill: var(--brand-ink); transform-origin: 22px 26px; animation: pieIn 1.1s .2s var(--ease-spring) both; }
.art-logo .wedge { fill: var(--accent); animation: wedgeIn .9s .95s var(--ease-spring) both, wedgePulse 5s 2.6s ease-in-out infinite; }
.art-logo .orbit { transform-origin: 24px 24px; animation: spin 36s linear infinite; }
.art-logo .orbit circle { fill: none; stroke: var(--brand-ink); stroke-opacity: .22; stroke-width: .35; stroke-dasharray: .8 2; }
.art-logo .sat-g { transform-origin: 24px 24px; animation: spin 9s linear infinite; }
.art-logo .sat { fill: var(--accent); }
@keyframes pieIn { from { transform: scale(.3) rotate(-140deg); opacity: 0; } }
@keyframes wedgeIn { from { transform: translate(-7px, 7px); opacity: 0; } }
@keyframes wedgePulse { 0%, 70%, 100% { transform: none; } 80% { transform: translate(-4px, 4px); } 90% { transform: translate(1.5px, -1.5px); } }

/* Floating feature cards: outer element follows the pointer, inner card bobs */
.fx { position: absolute; transform: translate(calc(var(--px, 0) * var(--d, 12px)), calc(var(--py, 0) * var(--d, 12px))); transition: transform .8s var(--ease-out); }
.fx-card {
  background: var(--surface); color: var(--ink); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-pop);
  font-size: 13px; line-height: 1.35; animation: cardIn .8s var(--ease-spring) both, bob 7s ease-in-out infinite;
  animation-delay: var(--in, 1s), var(--bob, 0s);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(22px) scale(.9); } }
@keyframes bob { 50% { translate: 0 -9px; } }
.fx-label { margin: 0 0 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fx-feed { top: 0; left: 0; width: 250px; --d: 14px; }
.fx-budget { top: 30%; right: 0; width: 240px; --d: 24px; }
.fx-quick { bottom: 7%; left: 3%; width: 290px; --d: 18px; }
.fx-safe { bottom: 0; right: 6%; --d: 10px; }

.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; min-height: 126px; }
.feed li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; animation: feedIn .6s var(--ease-spring) both; }
.feed li.out { animation: feedOut .35s ease-in both; }
.feed .emo { display: inline-block; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-style: normal; }
.tx-ic { width: 30px; height: 30px; border-radius: 10px; }
.feed b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed small { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .v { font-weight: 700; font-size: 13px; white-space: nowrap; }
.feed .v.in { color: var(--pos); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-14px) scale(.95); } }
@keyframes feedOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }

.bud-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bud-top b { font-size: 14px; transition: opacity .25s; }
.bud-top span { font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.bud-bar { height: 9px; margin: 9px 0 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bud-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 1s var(--ease-out), background-color .4s; }
.bud-bar i.warn { background: var(--neg); }
.fx-budget small { color: var(--muted); font-size: 12px; }

.qk-input { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.qk-input .ic { color: var(--muted); }
.caret { width: 2px; height: 18px; margin-left: -6px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.qk-chips { display: flex; flex-wrap: wrap; gap: 5px; min-height: 58px; align-content: flex-start; padding-top: 9px; }
.qk-chips .chip { height: 24px; font-size: 11.5px; padding: 0 9px; }
.qk-chips.out .chip { opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s; }

.fx-pill { display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 99px; font-size: 13px; white-space: nowrap; }
.fx-pill b { font-family: var(--f-display); font-size: 15px; }
.live-dot { width: 9px; height: 9px; border-radius: 99px; background: var(--pos); box-shadow: 0 0 0 0 var(--pos); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 8px transparent; } }

.art-quote { font-family: var(--f-display); font-size: clamp(18px, 2vw, 22px); font-weight: 500; max-width: 28ch; line-height: 1.3; margin: 0; }
.art-quote span { display: inline-block; animation: wordIn .6s var(--ease-out) both; animation-delay: calc(1.6s + var(--w) * 70ms); }
.art-quote .hl-mini { color: var(--accent); }
@keyframes wordIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

.login-card {
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding-block: 48px; padding-left: 56px; padding-right: max(48px, env(safe-area-inset-right, 0px));
  max-width: 580px;
}
.login-card h1 { font-size: clamp(38px, 4.8vw, 60px); line-height: 1.04; font-weight: 700; isolation: isolate; }
.hl { position: relative; display: inline-block; color: var(--accent-ink); padding: 0 .12em; }
.hl::before { content: ""; position: absolute; inset: .1em -.02em .02em; z-index: -1; border-radius: 10px; background: var(--accent); transform-origin: left center; }
/* Like a real highlighter: the word is written first, then marked. Leaving reverses it. */
.hl-text { display: inline-block; }
.hl.in .hl-text { animation: rise .45s var(--ease-out) both, inkOn .5s .45s var(--ease-out) both; }
.hl.in::before { animation: wipeIn .55s .45s var(--ease-out) both; }
.hl.out::before { transform-origin: right center; animation: wipeOut .3s ease-in both; }
.hl.out .hl-text { color: var(--ink); animation: textOut .25s .22s ease-in both; }
@keyframes wipeIn { from { transform: scaleX(0); } }
@keyframes wipeOut { to { transform: scaleX(0); } }
@keyframes inkOn { from { color: var(--ink); } }
@keyframes textOut { to { opacity: 0; transform: translateY(-8px); } }
.login-card .lead { color: var(--ink-2); font-size: 16px; max-width: 42ch; }
.login-card > * { animation: rise .8s var(--ease-out) both; }
.login-card > *:nth-child(2) { animation-delay: .08s; }
.login-card > *:nth-child(3) { animation-delay: .16s; }
.login-card > *:nth-child(4) { animation-delay: .24s; }
.login-card > *:nth-child(5) { animation-delay: .32s; }
.login-card > *:nth-child(6) { animation-delay: .4s; }
.login-card > *:nth-child(7) { animation-delay: .48s; }
.btn-google {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 28px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04); align-self: flex-start;
  transition: transform .25s var(--ease-spring), box-shadow .25s, border-color .25s;
}
.btn-google::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, var(--accent) 45%, transparent) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 4.5s 2s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn-google > * { position: relative; z-index: 1; }
@media (hover: hover) { .btn-google:hover { box-shadow: var(--shadow-pop); border-color: transparent; transform: translateY(-2px); } }
.btn-google:active { transform: scale(.97); }
.btn-google[disabled] { opacity: .6; cursor: progress; }
.fine { font-size: 13px; color: var(--muted); max-width: 46ch; }
.fine.note { display: flex; gap: 10px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-md); color: var(--ink-2); }
.feature-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.feature-list li {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 6px 12px 6px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2);
  animation: pop .45s var(--ease-spring) both; animation-delay: calc(.45s + var(--k) * 70ms); transition: border-color .2s, background-color .2s;
}
@media (hover: hover) { .feature-list li:hover { border-color: var(--ink); background: var(--surface); } }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- auth page extras ---------- */
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; animation: rise .7s var(--ease-out) both; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); opacity: .75; font-weight: 600; font-size: 14px; transition: opacity .2s, transform .25s var(--ease-spring); }
@media (hover: hover) { .back-link:hover { opacity: 1; transform: translateX(-3px); } }
.art-stage.solo { min-height: 300px; }
.art-stage.solo .art-logo { width: clamp(180px, 20vw, 260px); }
.auth-slides { display: flex; flex-direction: column; gap: 16px; max-width: 30rem; }
.auth-slide h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; color: var(--brand-ink); }
.auth-slide p { margin-top: 8px; color: color-mix(in srgb, var(--brand-ink) 72%, transparent); font-size: 15px; }
.auth-slide.in { animation: rise .6s var(--ease-out) both; }
/* Semua slide ditumpuk tak terlihat, jadi tinggi kotak = slide terpanjang dan isi di bawahnya tidak meloncat. */
.auth-slide-box { display: grid; }
.auth-slide-box > * { grid-area: 1 / 1; }
.auth-slide.sizer { visibility: hidden; }
.auth-dots { display: flex; gap: 6px; }
.auth-dots button { width: 8px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--brand-ink) 30%, transparent); transition: width .35s var(--ease-out), background-color .3s; }
.auth-dots button.on { width: 26px; background: var(--accent); }
.auth-slides .art-quote { font-size: 16px; color: color-mix(in srgb, var(--brand-ink) 80%, transparent); }

/* ---------- landing page ---------- */
.lp { min-height: 100vh; overflow-x: clip; }
.lp::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--glass); }
.lp-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.lp-nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line);
  animation: navIn .6s var(--ease-out) both;
}
@keyframes navIn { from { transform: translateY(-100%); } }
.lp-nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.lp-nav .brand { color: var(--ink); }
.lp-links { display: flex; gap: 4px; margin-inline: auto; }
.lp-links button { height: 38px; padding: 0 14px; border-radius: 99px; font-size: 14px; font-weight: 550; color: var(--ink-2); transition: background-color .2s, color .2s; }
@media (hover: hover) { .lp-links button:hover { background: var(--surface-2); color: var(--ink); } }
.lp-actions { display: flex; align-items: center; gap: 8px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15.5px; }
.btn-lg .ic { transition: transform .3s var(--ease-spring); }
@media (hover: hover) { .btn-lg:hover .ic { transform: translateX(4px); } }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-block: 56px 72px; }
.lp-hero-text { display: flex; flex-direction: column; gap: 22px; }
.lp-hero-text > * { animation: rise .8s var(--ease-out) both; }
.lp-hero-text > *:nth-child(2) { animation-delay: .08s; }
.lp-hero-text > *:nth-child(3) { animation-delay: .16s; }
.lp-hero-text > *:nth-child(4) { animation-delay: .24s; }
.lp-hero-text > *:nth-child(5) { animation-delay: .32s; }
.lp-hero h1 { font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; font-weight: 700; isolation: isolate; }
.lp-hero .lead { color: var(--ink-2); font-size: 17px; max-width: 44ch; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; }
/* Demo ketik cepat di hero. */
.hero-try { display: flex; flex-direction: column; gap: 10px; max-width: 30rem; }
.hero-try .quick-input { height: 52px; background: var(--surface); }
.hero-try .btn-ink { width: 52px; height: 52px; padding: 0; flex: none; border-radius: 50%; background: var(--ink); color: var(--bg); }
.hero-try .btn-ink:active { transform: scale(.94); }
.hero-try .parse { min-height: 30px; }
.hero-try .parse code { cursor: pointer; }
.ht-done { display: inline; color: var(--pos); font-weight: 600; animation: viewIn .35s var(--ease-out) both; --dx: 0px; }
.ht-done .ic { display: inline; vertical-align: -2px; margin-right: 4px; }
/* Kolom demo di hero sudah asli, jadi kartu animasi "Ketik cepat" tidak perlu ditampilkan lagi di landing. */
.lp-hero .fx-quick { display: none; }
.ht-done .link-btn { font-weight: 700; }
.ap-tx li.ht-new { animation: htNew .6s var(--ease-out) both; }
@keyframes htNew { from { opacity: 0; transform: translateY(-10px) scale(.96); background: var(--accent-soft); } 60% { background: var(--accent-soft); } }
.lp-hero .lead b { color: var(--ink); font-weight: 650; }
/* Hero: tanpa kartu. HP berisi tampilan STABL di tengah, kartu-kartu melayang di sekelilingnya. */
.lp-panel { position: relative; isolation: isolate; min-height: 600px; animation: rise .9s .15s var(--ease-out) both; container-type: inline-size; }
.lp-panel::before { content: ""; position: absolute; inset: -30px -6%; z-index: -2; pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 14%, transparent) 1.2px, transparent 1.7px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); mask-image: radial-gradient(closest-side, #000 40%, transparent); }
.lp-panel::after { content: ""; position: absolute; z-index: -1; width: min(460px, 92%); aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 68%); animation: glow 6s ease-in-out infinite; }
.lp-panel .art-stage { min-height: 600px; }
.lp-panel .fx-card { box-shadow: 0 0 0 1px var(--line), var(--shadow-pop); }

.hp { position: absolute; left: 50%; top: 50%; width: 260px; aspect-ratio: 9 / 19; padding: 9px; border-radius: 40px; background: #0E0F11;
  box-shadow: 0 0 0 1px #3A3D42, 0 40px 70px -28px rgba(0, 0, 0, .5), 0 12px 24px -12px rgba(0, 0, 0, .3);
  translate: calc(-50% + var(--px, 0) * -6px) calc(-50% + var(--py, 0) * -6px); transition: translate .8s var(--ease-out); animation: phoneIn 1s .2s var(--ease-spring) both; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) scale(.92); } }
/* Transaksi sudah tampil di layar HP, jadi kartunya cukup tiga dan hanya menyentuh tepi HP. */
.lp-panel .fx-feed { display: none; }
.lp-panel .fx-budget { top: 20%; left: calc(50% + 70px); width: 210px; }
.lp-panel .fx-quick { bottom: 20%; right: calc(50% + 70px); left: auto; width: 214px; }
.lp-panel .fx-safe { bottom: 6%; left: calc(50% + 40px); right: auto; }
.lp-panel .qk-chips { min-height: 30px; }

.lp-sec { padding-block: 72px; scroll-margin-top: 72px; }
.lp-sec + .lp-sec { border-top: 1px solid var(--line); }
.lp-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 36px; }
.lp-head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; }
.lp-head p { color: var(--ink-2); font-size: 16px; }
.reveal.seen { animation: rise .7s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 70ms); }

.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feat {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease-spring), box-shadow .35s, border-color .3s;
}
@media (hover: hover) { .feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: transparent; } }
.feat-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); transition: background-color .3s, color .3s, transform .35s var(--ease-spring); }
@media (hover: hover) { .feat:hover .feat-ic { background: var(--accent); color: var(--accent-ink); transform: rotate(-8deg) scale(1.06); } }
.feat h3 { font-size: 17px; }
.feat p { color: var(--ink-2); font-size: 14px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step-n { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 18px; background: var(--accent); color: var(--accent-ink); }
.steps h3 { font-size: 18px; }
.steps p { color: var(--ink-2); font-size: 14.5px; }

.lp-head-c { align-items: center; text-align: center; margin-inline: auto; }
/* Dua kartu harga berbagi baris lewat subgrid: nama, harga, tombol, dan daftar selalu sejajar. */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; max-width: 900px; margin-inline: auto; }
.plan { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; padding: 32px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
@supports not (grid-template-rows: subgrid) { .plan { display: flex; flex-direction: column; } }
.plan h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-desc { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 24px; }
.plan-price b { font-family: var(--f-display); font-size: 46px; line-height: 1; letter-spacing: -.035em; }
.plan-price span { color: var(--muted); font-size: 15px; }
.plan-sub { margin-top: 8px; color: var(--muted); font-size: 13px; }
.plan-price s { align-self: center; margin-right: 4px; color: var(--muted); font-size: 16px; text-decoration-thickness: 1.5px; }
.plan-plus .plan-price s { color: color-mix(in srgb, var(--brand-ink) 50%, transparent); }
.plan > .btn { width: 100%; margin-top: 24px; }
.plan hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 28px 0 18px; }
.plan-inc { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.plan li .ic { color: var(--pos); margin-top: 2px; flex: none; }
.plan-plus { color: var(--brand-ink); border-color: color-mix(in srgb, var(--accent) 45%, var(--brand-line)); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .45);
  background: radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--brand); }
.plan-plus li { color: color-mix(in srgb, var(--brand-ink) 85%, transparent); }
.plan-plus li .ic { color: var(--accent); }
.plan-plus :is(.plan-desc, .plan-sub, .plan-price span, .plan-inc) { color: color-mix(in srgb, var(--brand-ink) 62%, transparent); }
.plan-plus hr { border-top-color: color-mix(in srgb, var(--brand-ink) 14%, transparent); }
.plan-plus .badge { background: var(--accent); color: var(--accent-ink); }
.plan-cycle { margin-top: 10px; }
.plan-cycle em { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 4px; color: var(--pos); }
.plans-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin-inline: auto; }
.seg-pills.faq-cats { margin-top: 10px; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.faq-cats::-webkit-scrollbar { display: none; }
.faq-cats button { white-space: nowrap; }
.faq-item { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: border-color .35s, box-shadow .35s; }
@media (hover: hover) { .faq-item:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); } }
.faq-item.open { box-shadow: var(--shadow-pop); border-color: transparent; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; text-align: left; font-weight: 600; font-size: 15.5px; border-radius: inherit; }
.faq-q .ic { flex: none; border-radius: 99px; transition: transform .5s var(--ease-spring), background-color .3s, color .3s, box-shadow .3s; }
.faq-item.open .faq-q .ic { transform: rotate(135deg); color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 0 5px var(--accent); }
/* Height animates through grid rows, so opening and closing glide instead of jumping. */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; min-height: 0; }
.faq-a p { padding: 0 20px 20px; color: var(--ink-2); font-size: 14.5px; max-width: 65ch; opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .4s var(--ease-out); }
.faq-item.open .faq-a p { opacity: 1; transform: none; transition-delay: .1s; }

.login-art.lp-band { margin-block: 24px 72px; border-radius: var(--r-xl); padding: 56px 32px; align-items: center; justify-content: center; text-align: center; gap: 16px; }
.lp-band h2 { font-size: clamp(30px, 4vw, 48px); color: var(--brand-ink); }
.lp-band p { color: color-mix(in srgb, var(--brand-ink) 75%, transparent); font-size: 16px; }
.lp-band::after { left: 30%; top: -40%; width: 40%; }

/* Pasang di HP */
.inst-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.inst-copy { display: flex; flex-direction: column; gap: 24px; }
.inst-copy .lp-head { margin-bottom: 0; }
.inst-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.inst-perks li { display: flex; gap: 14px; align-items: flex-start; }
.inst-perks .feat-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; }
.inst-perks b { display: block; font-size: 15px; }
.inst-perks span:not(.feat-ic) { color: var(--ink-2); font-size: 14px; }
.inst > div { display: none; }
.inst[data-install="ready"] .inst-ready, .inst[data-install="done"] .inst-done, .inst[data-install="guide"] .inst-guide { display: flex; animation: rise .5s var(--ease-out) both; }
.inst-ready, .inst-done { align-items: center; gap: 14px; flex-wrap: wrap; }
.inst-guide { flex-direction: column; gap: 14px; align-items: flex-start; }
.inst-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.inst-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.inst-steps.on li { animation: rise .45s var(--ease-out) both; animation-delay: calc(var(--k) * 60ms); }
.inst-steps .step-n { width: 28px; height: 28px; font-size: 14px; flex: none; transition: transform .35s var(--ease-spring), background-color .3s, color .3s; }
/* Langkah yang sedang diperagakan animasi di sebelahnya */
.inst-steps li { transition: border-color .3s, box-shadow .3s, background-color .3s; }
.inst-steps li:not(.now) .step-n { background: var(--surface-2); color: var(--ink-2); }
.inst-steps li.now { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); box-shadow: 0 10px 28px -16px rgba(0, 0, 0, .35); }
.inst-steps li.now .step-n { transform: scale(1.08); }
.inst-sheet .inst-steps li .step-n, .sheet .inst-steps li .step-n { background: var(--accent); color: var(--accent-ink); }
.inst-steps b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14.5px; }
.inst-steps b .ic { padding: 3px; box-sizing: content-box; border-radius: 6px; background: var(--surface-2); }
.inst-steps div > span { display: block; color: var(--muted); font-size: 13.5px; }

/* Animasi cara pasang. Halaman web di dalam perangkat selalu bertema terang, layar utama HP gelap. */
.inst-art { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; min-height: 600px; padding: 24px 0; }
/* Tanpa kartu: perangkat berdiri di atas pola titik yang memudar dan cahaya stabilo lembut. */
.inst-art::before { content: ""; position: absolute; inset: -20px -10%; z-index: -2; pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 14%, transparent) 1.2px, transparent 1.7px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent); mask-image: radial-gradient(closest-side, #000 35%, transparent); }
.inst-art::after { content: ""; position: absolute; z-index: -1; width: min(420px, 90%); aspect-ratio: 1; left: 50%; top: 44%; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 68%); animation: glow 6s ease-in-out infinite; }
.dd { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; font-family: var(--f-body); }
.dd-stage { width: 100%; height: 500px; display: grid; place-items: center; }
.dd-stage > * { animation: devIn .6s var(--ease-spring) both; }
@keyframes devIn { from { opacity: 0; transform: translateY(18px) scale(.94); } }
.dd-cap { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-height: 54px; }
.dd-cap b { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 15px; color: var(--ink); animation: rise .4s var(--ease-out) both; }
.dd-cap b > span { padding: 3px 8px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.dd-cap .ic { padding: 2px; box-sizing: content-box; border-radius: 5px; background: var(--surface-2); }
.dd-dots { display: flex; gap: 6px; }
.dd-dots i { width: 7px; height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 20%, transparent); transition: width .35s var(--ease-out), background-color .3s; }
.dd-dots i.on { width: 22px; background: var(--ink); }

.dd-scr { position: relative; height: 100%; border-radius: 30px; overflow: hidden; background: #fff; color: #2A2C30; font-size: 11px; line-height: 1.35; }
.dd-web, .dd-home { position: absolute; inset: 0; transition: opacity .45s ease, transform .5s var(--ease-out); }

.dd-page { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; }
.dd-nav { display: flex; align-items: center; gap: 6px; font-family: var(--f-display); font-weight: 800; font-size: 12px; }
.dd-nav .mark { width: 18px; height: 18px; }
.dd-pill { margin-left: auto; padding: 3px 9px; border-radius: 99px; background: #8CFF4F; font-family: var(--f-body); font-size: 9px; font-weight: 700; }
.dd-h { margin-top: 10px; font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.08; letter-spacing: -.02em; }
.dd-h mark { background: #8CFF4F; color: #2A2C30; border-radius: 4px; padding: 0 3px; }
.dd-line { display: block; height: 6px; border-radius: 9px; background: #E6E7E3; }
.dd-line.s { width: 70%; }
.dd-btn { align-self: flex-start; margin-top: 4px; padding: 6px 12px; border-radius: 99px; background: #8CFF4F; font-weight: 700; font-size: 10px; }
.dd-card { margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: #2A2C30; color: #fff; display: flex; flex-direction: column; gap: 2px; }
.dd-card small { font-size: 8.5px; color: #8CFF4F; letter-spacing: .06em; text-transform: uppercase; }
.dd-card b { font-family: var(--f-display); font-size: 15px; }
.dd-card span { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-top: 4px; }
.dd-card span i { flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px; background: rgba(255, 255, 255, .22); }
.dd-card span i:nth-child(4) { background: #8CFF4F; }

.dd-url { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 4px; height: 26px; border-radius: 9px; background: #EEEFEC; color: #45484F; font-size: 10.5px; }
.dd-load { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: #2F7BF6; }
.dd[data-ph="page"] .dd-load { animation: load 1.4s .2s ease-out both; }
@keyframes load { 80% { width: 100%; opacity: 1; } to { width: 100%; opacity: 0; } }
.dd-ibar { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px 12px; background: rgba(248, 248, 246, .96); border-top: 1px solid #E6E7E3; display: flex; flex-direction: column; gap: 8px; }
.dd-tools { display: flex; justify-content: space-between; align-items: center; padding: 0 6px; color: #2F7BF6; }
.dd-abar { display: flex; align-items: center; gap: 6px; padding: 4px 10px 6px; border-bottom: 1px solid #E6E7E3; }
.dd-abar .dd-url { flex: 1; justify-content: flex-start; padding-left: 10px; border-radius: 99px; }
.dd-abar > .dd-hit { padding: 4px; border-radius: 99px; color: #45484F; }

/* Ketukan: target berdenyut hijau saat fasenya tiba. */
.dd-hit { position: relative; display: inline-flex; align-items: center; transition: background-color .25s; }
.dd-hit.press { background: color-mix(in srgb, #8CFF4F 30%, transparent); }
.dd-hit.press::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(140, 255, 79, .55); pointer-events: none; animation: tap 1s .25s ease-out both; }
@keyframes tap { 0% { transform: scale(.3); opacity: 0; } 25% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.dd [data-hit="share"].press { border-radius: 8px; }

.dd-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 10px 14px; border-radius: 16px 16px 0 0; background: #F2F2F5; box-shadow: 0 -10px 30px rgba(0, 0, 0, .15); transform: translateY(105%); transition: transform .5s var(--ease-out); }
.dd-sh-head { display: flex; align-items: center; gap: 8px; padding: 0 4px 10px; }
.dd-sh-head .mark { width: 30px; height: 30px; }
.dd-sh-head small, .dd-add-row small { display: block; color: #8A8D93; font-size: 9.5px; }
.dd-sh-apps { display: flex; justify-content: space-between; padding: 0 6px 10px; }
.dd-sh-apps i { width: 30px; height: 30px; border-radius: 50%; background: var(--c); }
.dd-sheet ul { list-style: none; margin: 0; padding: 0; border-radius: 10px; background: #fff; overflow: hidden; }
.dd-sheet li { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-bottom: 1px solid #EEEFEC; }
.dd-sheet li:last-child { border-bottom: 0; }
.dd-sheet li.dd-hit { display: flex; font-weight: 700; }
.dd-addpg { position: absolute; inset: 26px 0 0; padding: 12px; border-radius: 14px 14px 0 0; background: #F2F2F5; box-shadow: 0 -10px 30px rgba(0, 0, 0, .15); transform: translateY(105%); transition: transform .5s var(--ease-out); display: flex; flex-direction: column; gap: 12px; }
.dd-add-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; color: #2F7BF6; font-size: 10px; }
.dd-add-top b { color: #2A2C30; font-size: 10px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-blue { padding: 3px 6px; border-radius: 6px; font-weight: 700; }
.dd-add-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: #fff; }
.dd-add-row .mark { width: 40px; height: 40px; }
.dd-addpg p { font-size: 9.5px; color: #8A8D93; padding: 0 4px; }

.dd-menu { position: absolute; right: 8px; top: 30px; width: 62%; margin: 0; padding: 6px 0; list-style: none; border-radius: 6px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); transform-origin: top right; transform: scale(.6); opacity: 0; transition: transform .3s var(--ease-out), opacity .2s; }
.dd-menu li { display: flex; align-items: center; gap: 6px; padding: 7px 12px; }
.dd-menu li.dd-hit { display: flex; font-weight: 700; }
.dd-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); opacity: 0; transition: opacity .3s; }
.dd-dialog, .dd-popup { position: absolute; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 16px 14px 12px; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); opacity: 0; transform: scale(.85); transition: transform .35s var(--ease-spring), opacity .25s; }
.dd-dialog { left: 12%; right: 12%; top: 34%; }
.dd-dialog .mark, .dd-popup .mark { width: 34px; height: 34px; margin-bottom: 4px; }
.dd-dialog b, .dd-popup b { font-size: 12px; }
.dd-dialog small, .dd-popup small { color: #8A8D93; font-size: 9.5px; }
.dd-dialog > div, .dd-popup > div { display: flex; justify-content: flex-end; gap: 6px; width: 100%; margin-top: 10px; color: #1B6EF3; font-weight: 700; }
.dd-dialog > div span, .dd-popup > div span { padding: 5px 10px; border-radius: 99px; }
.dd-ok { background: #1B6EF3; color: #fff; }
.dd-ok.press { background: #1B6EF3; }

.dd-home { opacity: 0; transform: scale(1.06); color: #fff; display: flex; flex-direction: column; padding-bottom: 10px;
  background: radial-gradient(120% 70% at 20% 0%, #3B4A33, transparent 60%), radial-gradient(90% 60% at 100% 100%, #2E3A48, transparent 60%), #1B1C1F; }
.dd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; padding: 14px 16px; align-items: start; }
.dd-grid > i, .dd-dock i { width: 100%; aspect-ratio: 1; border-radius: 11px; background: rgba(255, 255, 255, .1); }
.dd-grid > i:nth-of-type(3n) { background: rgba(255, 255, 255, .16); }
.dd-app { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.dd-appic { position: relative; width: 100%; }
.dd-appic .mark { width: 100%; height: auto; display: block; }
.dd-app small { font-size: 8.5px; font-weight: 600; }
.dd-toast { position: absolute; left: 12px; right: 12px; bottom: 74px; display: flex; align-items: center; gap: 6px; padding: 9px 11px; border-radius: 12px; font-size: 10px; font-weight: 600; background: rgba(255, 255, 255, .95); color: #2A2C30; opacity: 0; }
.dd-toast .ic { color: #1F7A4D; }
.dd-dock { margin: auto 10px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 9px; border-radius: 20px; background: rgba(255, 255, 255, .12); }

/* Fase HP */
.dd[data-ph="sheet"] .dd-sheet, .dd[data-ph="add"] .dd-addpg { transform: none; }
.dd[data-ph="pick"] .dd-menu { transform: none; opacity: 1; }
.dd[data-ph="dialog"] .dd-scrim { opacity: 1; }
.dd[data-ph="dialog"] .dd-dialog { transform: none; opacity: 1; }
.dd[data-ph="home"] .dd-web { opacity: 0; transform: scale(.94); }
.dd[data-ph="home"] .dd-home { opacity: 1; transform: none; }
.dd[data-ph="home"] .dd-appic { animation: appDrop .9s .35s var(--ease-spring) both; }
.dd[data-ph="home"] .dd-app small { animation: rise .45s .9s var(--ease-out) both; }
.dd[data-ph="home"] .dd-appic::after { content: ""; position: absolute; inset: 0; border-radius: 22%; animation: tapRing 1.6s 1.3s ease-out 2; }
.dd[data-ph="home"] .dd-toast { animation: toastPeek 2.6s .9s var(--ease-out) both; }
@keyframes appDrop { from { transform: translateY(-120px) scale(.4); opacity: 0; } 60% { opacity: 1; } }
@keyframes toastPeek { 0% { opacity: 0; transform: translateY(16px); } 12%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }
@keyframes tapRing { 0% { box-shadow: 0 0 0 0 rgba(140, 255, 79, .75); } 60%, 100% { box-shadow: 0 0 0 12px transparent; } }

/* Laptop */
.dd-laptop { width: min(460px, 100%); display: flex; flex-direction: column; align-items: center; }
.dd-lid { width: 100%; padding: 9px 9px 12px; border-radius: 16px 16px 4px 4px; background: #0E0F11; box-shadow: 0 0 0 1px #3A3D42, 0 30px 60px -24px rgba(0, 0, 0, .45); }
.dd-desk { position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; border-radius: 6px; font-size: 10px; line-height: 1.35; color: #2A2C30;
  background: radial-gradient(90% 80% at 15% 10%, #3F5A86, transparent 60%), radial-gradient(80% 70% at 100% 100%, #5B3F86, transparent 60%), #1E2433; }
.dd-base { width: 110%; height: 12px; border-radius: 0 0 14px 14px; background: linear-gradient(#CACBD0, #8E9096); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); }
.dd-base::after { content: ""; display: block; width: 18%; height: 4px; margin: 0 auto; border-radius: 0 0 6px 6px; background: #76787E; }
.dd-win { position: absolute; inset: 6% 5% 7%; display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); transition: transform .5s var(--ease-out), opacity .4s, filter .4s; }
.dd-tabs { display: flex; align-items: center; gap: 4px; padding: 6px 8px 0; background: #E8E9EC; }
.dd-tabs > i { width: 7px; height: 7px; border-radius: 50%; background: #FF5F57; }
.dd-tabs > i:nth-child(2) { background: #FEBC2E; }
.dd-tabs > i:nth-child(3) { background: #28C840; margin-right: 6px; }
.dd-tabs span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 6px 6px 0 0; background: #fff; font-size: 9px; font-weight: 600; }
.dd-tabs .mark { width: 11px; height: 11px; }
.dd-tool { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-bottom: 1px solid #E6E7E3; color: #8A8D93; }
.dd-tool .dd-url { flex: 1; justify-content: flex-start; padding-left: 10px; height: 22px; border-radius: 99px; overflow: visible; }
.dd-inst { position: absolute; right: 6px; top: 50%; translate: 0 -50%; padding: 2px; border-radius: 6px; color: #45484F; }
.dd-tip { position: absolute; right: -4px; top: 26px; padding: 3px 7px; border-radius: 5px; background: #2A2C30; color: #fff; font-size: 9px; font-style: normal; white-space: nowrap; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; }
.dd-win .dd-page { padding: 8px 18px; gap: 6px; }
.dd-win .dd-h { margin-top: 4px; font-size: 18px; max-width: 60%; }
.dd-win .dd-line { width: 55%; }
.dd-win .dd-line.s { width: 40%; }
.dd-win .dd-card { position: absolute; right: 18px; top: 74px; width: 38%; }
.dd-popup { right: 10px; top: 52px; width: 46%; padding: 12px; align-items: flex-start; text-align: left; transform-origin: top right; }
.dd-popup .mark { width: 26px; height: 26px; }
.dd-appw { position: absolute; inset: 10% 14% 12%; display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: #F4F5F2; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); opacity: 0; transform: scale(.8) translateY(20px); transition: transform .55s var(--ease-spring), opacity .35s; }
.dd-title { display: flex; align-items: center; gap: 5px; padding: 5px 8px; background: #2A2C30; color: #fff; font-family: var(--f-display); font-size: 10px; }
.dd-title .mark { width: 12px; height: 12px; }
.dd-title span { margin-left: auto; display: flex; gap: 6px; }
.dd-title span i { width: 7px; height: 7px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .6); }
.dd-appbody { flex: 1; display: flex; }
.dd-side { width: 18%; display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; border-right: 1px solid #E1E2DF; }
.dd-side i { height: 7px; border-radius: 4px; background: #E1E2DF; }
.dd-side i.on { background: #8CFF4F; }
.dd-main { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.dd-main .dd-card { margin: 0; padding: 8px 10px; }
.dd-main .dd-card b { font-size: 13px; }
.dd-main .dd-card span { height: 26px; }
.dd-rows { display: flex; flex-direction: column; gap: 5px; }
.dd-rows i { height: 8px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px #E1E2DF; }
.dd-cursor { position: absolute; left: 60%; top: 70%; width: 14px; height: 18px; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); transition: left .9s var(--ease-out), top .9s var(--ease-out), opacity .3s; }

/* Fase laptop */
.dd[data-ph="icon"] .dd-tip { opacity: 1; transform: none; transition-delay: .5s; }
.dd[data-ph="dialog"] .dd-popup { transform: none; opacity: 1; }
.dd[data-ph="app"] .dd-win { transform: scale(.96); filter: brightness(.55); }
.dd[data-ph="app"] .dd-appw { transform: none; opacity: 1; }
.dd[data-ph="app"] .dd-cursor { opacity: 0; }

/* Footer */
.ft { border-top: 1px solid var(--line); overflow: hidden; }
.ft-ticker { border-bottom: 1px solid var(--line); padding-block: 14px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ft-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
@media (hover: hover) { .ft-ticker:hover .ft-track { animation-play-state: paused; } }
.ft-track span { display: inline-flex; align-items: center; gap: 10px; padding-right: 48px; white-space: nowrap; font-size: 14px; color: var(--ink-2); }
.ft-track .ft-dup { padding-right: 0; gap: 0; }
.ft-track .ic { color: var(--ink); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 48px; }
.ft-about { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.ft-about p { color: var(--ink-2); font-size: 14.5px; }
.ft-col a, .legal-doc a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; transition: text-decoration-thickness .2s; }
@media (hover: hover) { .legal-doc a:hover { text-decoration-thickness: 8px; } }
.ft-col h3 { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ft-col button, .ft-col a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; position: relative; transition: color .2s; }
.ft-col button::after, .ft-col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
@media (hover: hover) { .ft-col button:hover, .ft-col a:hover { color: var(--ink); } }
@media (hover: hover) { .ft-col button:hover::after, .ft-col a:hover::after { transform: scaleX(1); } }
.ft-col span { font-size: 13.5px; }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 24px max(28px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.ft-bottom p { font-size: 13px; color: var(--muted); }
.ft-bottom a { color: var(--ink-2); font-weight: 600; text-decoration: none; transition: color .2s; }
@media (hover: hover) { .ft-bottom a:hover { color: var(--ink); } }
.ft-top { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; background: var(--surface-2); font-weight: 600; font-size: 13.5px; transition: background-color .25s, color .25s, transform .25s var(--ease-spring); }
.ft-top .ic { transition: transform .35s var(--ease-spring); }
@media (hover: hover) { .ft-top:hover { background: var(--accent); color: var(--accent-ink); } }
@media (hover: hover) { .ft-top:hover .ic { transform: translateY(-3px); } }

/* Halaman legal */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 48px 80px; align-items: start; }
.legal-page .lp-actions { margin-left: auto; }
.legal-toc { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 12px; animation: rise .6s var(--ease-out) both; }
.legal-toc nav { display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.legal-toc nav button { text-align: left; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 13.5px; color: var(--muted); transition: color .2s, border-color .2s; }
@media (hover: hover) { .legal-toc nav button:hover { color: var(--ink); border-left-color: var(--accent); } }
.legal-toc .link-btn { margin-top: 8px; gap: 8px; }
.legal-doc { max-width: 720px; display: flex; flex-direction: column; gap: 16px; animation: rise .7s .05s var(--ease-out) both; }
.legal-doc h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; }
.legal-since { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.legal-intro { font-size: 17px; color: var(--ink-2); padding-bottom: 8px; }
.legal-doc section { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.legal-doc h2 { display: flex; align-items: baseline; gap: 12px; font-size: 22px; }
.legal-doc h2 > span:first-child { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--muted); }
.legal-doc p, .legal-doc li { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.legal-doc ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal-doc li::marker { color: var(--ink); }
.legal-doc b { color: var(--ink); }
.legal-doc .link-btn { font-size: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.legal-contact { padding-bottom: 8px; }
.legal-doc h2 .lg-t { flex: 1; min-width: 0; }
.lg-h { padding: 0 .1em; margin: 0 -.1em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0% 84%; transition: background-size .55s var(--ease-out), color .3s; }
.lg-h.on { background-size: 100% 84%; color: var(--accent-ink); }
.legal-toc-m, .legal-bar { display: none; }
@media (prefers-reduced-motion: reduce) { .lg-h { transition: none; } }
.err { color: var(--neg); font-size: 13.5px; }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 21px; letter-spacing: .01em; }
.mark { width: 30px; height: 30px; flex: none; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 30px;
  padding-block: 28px; padding-right: 18px; padding-left: max(18px, env(safe-area-inset-left, 0px));
  border-right: 1px solid var(--line);
}
.sidebar .brand { padding: 0 10px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px;
  color: var(--muted); font-weight: 550; transition: color .2s, background-color .2s;
}
@media (hover: hover) { .nav-item:hover { color: var(--ink); background: var(--surface-2); } }
.nav-item.active { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.nav-item.active .ic { color: var(--accent-ink); background: var(--accent); border-radius: 6px; box-shadow: 0 0 0 4px var(--accent); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; text-align: left; width: 100%; }
@media (hover: hover) { .user-chip:hover { background: var(--surface-2); } }
.user-chip .who { min-width: 0; line-height: 1.25; }
.user-chip .who b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .who span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.avatar {
  width: 36px; height: 36px; border-radius: 999px; flex: none; display: grid; place-items: center; overflow: hidden;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; font-family: var(--f-display);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* overflow-x: clip: kartu yang bergeser masuk antar tab tidak boleh memperlebar halaman di HP. */
.main {
  overflow-x: clip; min-width: 0; padding-top: 26px; padding-bottom: 64px;
  padding-left: 40px; padding-right: max(40px, env(safe-area-inset-right, 0px));
}
.topbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.topbar .titles { min-width: 0; flex: 1; }
.topbar h1 { font-size: 32px; line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
/* Titik hijau di akhir judul, gaya yang sama dengan judul di landing. */
.topbar h1::after { content: ''; display: inline-block; width: .2em; height: .2em; margin-left: .07em; border-radius: 2px; background: var(--accent); vertical-align: baseline; }
.topbar .greet { display: flex; align-items: center; gap: 8px; min-height: 26px; margin-bottom: 6px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.greet-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 9px; border-radius: 99px; background: var(--accent-soft); color: var(--ink); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.greet-chip svg { flex: none; color: #C98A0B; }
.greet-chip.night svg { color: #6B78D6; }
.greet-date { overflow: hidden; text-overflow: ellipsis; }
.greet-chip + .greet-date::before { content: "·"; margin-right: 8px; }
.topbar .titles.swap h1, .topbar .titles.swap .greet > * { animation: titleIn .45s var(--ease-out) both; }
.topbar .titles.swap .greet > * { animation-delay: .06s; }
@keyframes titleIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .topbar .titles.swap h1, .topbar .titles.swap .greet > * { animation: none; } }
.page-back { display: inline-flex; align-items: center; gap: 3px; margin-left: -4px; padding: 2px 8px 2px 2px; border-radius: 99px; color: var(--ink-2); font-size: 14px; font-weight: 600; transition: background .2s, transform .25s var(--ease-spring); }
@media (hover: hover) { .page-back:hover { background: var(--surface-2, var(--line)); transform: translateX(-2px); } }
.page-back:active { transform: scale(.96); }
.top-actions { display: flex; align-items: center; gap: 6px; }
.month-switch {
  display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 0 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
}
.month-switch .icon-btn { width: 36px; height: 36px; }
.month-switch .label { min-width: 128px; text-align: center; font-weight: 600; font-size: 14px; }
.month-switch .label button { font-weight: 600; }
.mobile-only { display: none; }

.banner {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; margin-bottom: 20px;
  border-radius: var(--r-md); background: var(--accent-soft); color: var(--ink); font-size: 13.5px;
  animation: rise .6s var(--ease-out) both;
}
.banner p { flex: 1; min-width: 0; }
.banner.closing { animation: bannerOut .35s var(--ease-out) forwards; }
@keyframes bannerOut { to { opacity: 0; transform: translateY(-8px); margin-bottom: -60px; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; animation-timing-function: ease; }

/* ---------- view transitions ---------- */
/* Masuk halaman: singkat dan ringan supaya pindah tab terasa mulus di HP. */
.enter .rv { animation: viewIn .46s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 4) * 45ms); }
/* --dx: arah pindah tab (kanan/kiri). Tanpa arah, kartu naik sedikit. */
@keyframes viewIn { from { opacity: 0; transform: translate(var(--dx, 0px), 14px) scale(.985); } }
/* Kartu di bawah layar menahan animasinya (termasuk grafik di dalamnya) sampai di-scroll terlihat. */
.view .wait, .view .wait * { animation-play-state: paused !important; }
.view .wait .lc-svg { clip-path: inset(0 100% 0 0); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.card {
  min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2 { font-size: 17px; font-weight: 650; }
.card-head .eyebrow { margin-bottom: 2px; }

/* hero */
.hero {
  position: relative; overflow: hidden; background: var(--brand); color: var(--brand-ink); border: 1px solid var(--brand-line);
  border-radius: var(--r-xl); padding: 26px 26px 24px; min-height: 230px; justify-content: space-between;
}
.hero .eyebrow { color: var(--accent); }
.hero-amt { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: -.035em; margin-top: 10px; }
.hero-amt small { font-size: .42em; font-weight: 600; letter-spacing: 0; margin-right: 4px; vertical-align: .9em; }
.hero-row { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-pill {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--brand-ink) 8%, transparent); min-width: 140px;
}
.hero-pill span { font-size: 12.5px; display: flex; align-items: center; gap: 6px; opacity: .8; }
.hero-pill b { font-size: 17px; }
.hero-rings { position: absolute; right: -60px; top: -70px; width: 300px; height: 300px; pointer-events: none; opacity: .5; }
.hero-rings circle { fill: none; stroke: var(--accent); stroke-opacity: .2; }
/* Kartu atas Ringkasan: tab, nilai, perubahan, grafik interaktif, rentang waktu. */
.hero-tabs { position: relative; display: flex; gap: 4px; padding: 3px; border-radius: 99px; background: rgba(255, 255, 255, .07); align-self: flex-start; }
.hero-tabs button { height: 30px; padding: 0 14px; border-radius: 99px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); transition: background-color .25s, color .25s; }
.hero-tabs button.on { background: rgba(255, 255, 255, .14); color: #fff; }
.hero-val { display: flex; flex-direction: column; gap: 4px; }
.hero-val .hero-amt { margin-top: 2px; }
.hero-chg { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.hero-chg .ic { transition: transform .3s var(--ease-out); }
.hero-chg.down { color: #FF8A7A; }
.hero-chg.down .ic { transform: rotate(180deg); }
.hero-chg span { color: rgba(255, 255, 255, .55); font-weight: 500; }
.hero-sub { font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.lc { position: relative; height: 150px; margin: 4px -4px 0; touch-action: pan-y; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.lc-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.lc-area { fill: url(#lc-g); }
.lc-line { fill: none; stroke: var(--lc); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.lc-base { stroke: rgba(255, 255, 255, .28); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.lc-svg { clip-path: inset(0 0 0 0); }
.enter .lc-svg, .lc.drawn .lc-svg { animation: lcDraw 1.1s var(--ease-out) both; }
@keyframes lcDraw { from { clip-path: inset(0 100% 0 0); } }
.lc-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--lc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lc) 30%, transparent); pointer-events: none; transition: top .08s; }
.lc-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--lc); opacity: 0; animation: lcPing 2.2s ease-out infinite; }
@keyframes lcPing { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.2); } }
.lc-cursor { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .45); pointer-events: none; }
.lc-tip { position: absolute; top: 2px; translate: -50% 0; padding: 4px 10px; border-radius: 99px; background: #fff; color: #2A2C30; font-size: 11.5px; font-weight: 650; white-space: nowrap; pointer-events: none; }
.lc-ranges { position: relative; display: flex; justify-content: space-between; gap: 4px; }
.lc-ranges button { flex: 1; height: 30px; border-radius: 99px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, .55); transition: background-color .25s, color .25s; }
.lc-ranges button.on { background: rgba(255, 255, 255, .12); color: #fff; }
@media (hover: hover) { .lc-ranges button:hover, .hero-tabs button:hover { color: #fff; } }
@media (prefers-reduced-motion: reduce) { .lc-svg { animation: none !important; } .lc-dot::after { animation: none; } .tab-ind { transition: opacity .2s; } .tab.active .ic { animation: none; } }
.hero-rings g { transform-origin: 150px 150px; animation: spin 40s linear infinite; }
.hero-rings g:nth-child(2) { animation-duration: 60s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero .rel { position: relative; }

/* safe-to-spend */
.safe-amt { font-family: var(--f-display); font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.safe-amt > span:not(.amt) { font-family: var(--f-body); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pace { display: flex; flex-direction: column; gap: 8px; }
.pace-bar { position: relative; height: 10px; border-radius: 99px; background: var(--surface-2); overflow: visible; }
.pace-bar .fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--accent); transform-origin: left; }
.enter .pace-bar .fill, .enter .prog .fill { animation: growX 1s .25s var(--ease-out) both; }
.pace-bar .mark-today { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink); border-radius: 2px; }
.pace-legend { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.pace-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
@keyframes growX { from { transform: scaleX(0); } }

/* quick add */
.quick { gap: 12px; }
.quick-form { display: flex; gap: 10px; align-items: center; }
.quick-input {
  flex: 1; min-width: 0; height: 50px; padding: 0 16px 0 46px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.quick-input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.quick-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.quick-wrap .ic { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--ink); }
.parse { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px;
  background: var(--surface-2); font-size: 12.5px; font-weight: 550; color: var(--ink-2);
  animation: pop .35s var(--ease-spring) both;
}
.chip.expense { background: var(--neg-soft); color: var(--neg); }
.chip.income { background: var(--pos-soft); color: var(--pos); }
.chip.strong { background: var(--ink); color: var(--bg); }
@keyframes pop { from { opacity: 0; transform: scale(.7); } }
.hint { font-size: 12.5px; color: var(--muted); }
.hint code { font-family: var(--f-mono); font-size: 12px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; cursor: pointer; }

/* flow chart */
.flow { position: relative; height: 220px; padding-left: 44px; }
.flow-grid { position: absolute; inset: 0 0 26px 0; }
.gl { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); }
.gl span { position: absolute; left: 0; top: -9px; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); background: var(--surface); padding-right: 6px; }
.flow-cols { position: relative; height: 100%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.fc { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; height: 100%; padding: 0; border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fc .b { transition: opacity .25s, filter .25s; }
.fc:active .bars { transform: scale(.94); }
.fc .bars { transition: transform .15s var(--ease-out); transform-origin: bottom; }
.fc .bars { flex: 1; width: 100%; display: flex; justify-content: center; align-items: flex-end; gap: 4px; }
.fc .b { display: block; width: min(16px, 36%); height: var(--h); border-radius: 6px 6px 2px 2px; transform-origin: bottom; }
.fc .b.inc { background: var(--pos); }
.flow-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 14px; padding: 10px 14px; border-radius: 14px; background: var(--bg); font-size: 13px; color: var(--muted); }
.flow-sum > *, .donut-center > * { --dx: 0px; }
.flow-sum > * { animation: viewIn .3s var(--ease-out) both; }
.flow-sum b { color: var(--ink); font-weight: 650; }
.fs-m { flex-basis: 100%; font-size: 11px; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.fs-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 3px; background: var(--pos); }
.fs-dot.exp { background: var(--neg); }
.fs-net { margin-left: auto; }
.fs-net.pos b { color: var(--pos); } .fs-net.neg b { color: var(--neg); }
.fc .b.exp { background: var(--neg); }
.fc:not(.on) .b { opacity: .32; }
.fc.on .fl { color: var(--ink); font-weight: 600; }
.enter .fc .b { animation: growY .9s var(--ease-out) both; animation-delay: var(--d); }
@keyframes growY { from { transform: scaleY(0); } }
.fl { font-family: var(--f-mono); font-size: 11px; color: var(--muted); height: 18px; text-transform: uppercase; }
.fc.cur .fl { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.legend-row { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.legend-row i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }

/* donut */
.donut-wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.donut { position: relative; width: 168px; height: 168px; flex: none; margin-inline: auto; }
.donut svg { width: 100%; height: 100%; }
.enter .donut .seg { animation: dash 1.1s var(--ease-out) both; animation-delay: var(--d); }
@keyframes dash { from { stroke-dasharray: 0 400; } }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.15; }
.donut-center b { font-family: var(--f-display); font-size: 21px; letter-spacing: -.02em; }
.donut-center span { font-size: 11.5px; color: var(--muted); }
.legend { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.legend .lg { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: calc(100% + 16px); margin: -4px -8px; padding: 4px 8px; border-radius: 9px; font-size: 13.5px; text-align: left; transition: opacity .25s, background-color .2s; }
.legend .lg.on { background: var(--bg); font-weight: 600; }
.donut-wrap.picked .lg:not(.on) { opacity: .45; }
.donut .seg { cursor: pointer; transition: stroke-width .3s var(--ease-out), opacity .25s; }
.donut-wrap.picked .seg:not(.on) { opacity: .25; }
.donut-wrap .seg.on { stroke-width: 20; }
.donut-center { pointer-events: none; }
.donut-center > * { animation: viewIn .3s var(--ease-out); }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.legend .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend .pc { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }

/* insights */
.ins-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ins { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--r-md); background: var(--bg); font-size: 14px; color: var(--ink-2); }
.ins b { color: var(--ink); }
.ins-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--ink-2); }
.ins.pos .ins-ic { background: var(--pos-soft); color: var(--pos); }
.ins.neg .ins-ic { background: var(--neg-soft); color: var(--neg); }
.ins.acc .ins-ic { background: var(--accent-soft); color: var(--warn); }

/* transactions */
.tx-list { display: flex; flex-direction: column; }
.tx {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px 8px; margin: 0 -8px; width: calc(100% + 16px); border-radius: 14px; transition: background-color .2s, transform .18s var(--ease-out);
}
.tx:active { transform: scale(.985); background: var(--bg); transition-duration: .08s; }
/* Geser untuk hapus: lapisan merah diam di belakang, baris yang digeser membukanya. */
.tx { position: relative; touch-action: pan-y; }
.tx-list, .day-group { position: relative; }
.tx.swiping { z-index: 1; background: var(--surface); }
.tx-swipe-bg { position: absolute; display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding-right: 18px; border-radius: 14px;
  background: color-mix(in srgb, var(--neg) 16%, var(--surface)); color: var(--neg); font-weight: 700; font-size: 14px; pointer-events: none; transition: background-color .2s, color .2s; }
.tx-swipe-bg.armed { background: var(--neg); color: #fff; }
.tx-swipe-bg .ic { transition: transform .3s var(--ease-spring); }
.tx-swipe-bg.armed .ic { transform: scale(1.2); }
@media (hover: hover) { .tx:hover { background: var(--bg); } }
.tx-ic {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c);
}
.tx-main { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.tx-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-sub { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; white-space: nowrap; }
.tx-sub > span { overflow: hidden; text-overflow: ellipsis; }
.tx-amt { font-weight: 650; font-size: 14.5px; white-space: nowrap; }
.tx-amt.income { color: var(--pos); }
.tx-amt.transfer { color: var(--muted); }
.day-group { display: flex; flex-direction: column; }
.day-head {
  display: flex; justify-content: space-between; gap: 12px; padding: 14px 0 6px; font-size: 12.5px; color: var(--muted);
  border-bottom: 1px solid var(--line); margin-bottom: 4px; position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.day-head b { color: var(--ink); font-weight: 600; text-transform: capitalize; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { position: relative; flex: 1 1 240px; min-width: 0; }
.search .ic { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); }
.search input, .select {
  width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); padding: 0 14px 0 40px; outline: none;
}
.select { padding: 0 34px 0 14px; width: auto; max-width: 100%; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.search input:focus, .select:focus { border-color: var(--ink); }
.seg-pills { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border-radius: 999px; flex-wrap: wrap; }
.seg-pills button { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: color .2s, background-color .25s; }
.seg-pills button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.sum-line { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); }
.sum-line b { color: var(--ink); }
.sum-line .pos { color: var(--pos); }
.sum-line .neg { color: var(--neg); }
.f-btn { height: 42px; padding: 0 14px; gap: 6px; }
.f-btn .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; animation: pop .35s var(--ease-spring) both; }
.f-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tx-results { display: flex; flex-direction: column; gap: 14px; }
.filter-tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 12px; border-radius: 99px; background: var(--accent-soft); font-size: 13px; font-weight: 600; }
.filter-tag button { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 99px; }
@media (hover: hover) { .filter-tag button:hover { background: var(--surface); } }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 36px 16px; color: var(--muted); }
.empty .ic-big { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.empty h3 { color: var(--ink); font-size: 17px; }

/* budgets */
.budget-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.budget-row:last-child { border-bottom: 0; }
.budget-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.budget-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.budget-top b { font-size: 14.5px; }
.prog { position: relative; height: 8px; border-radius: 99px; background: var(--surface-2); }
/* Kebiasaan mencatat: streak, tujuh hari terakhir, dan level. */
.hb-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.hb-streak { display: flex; align-items: center; gap: 14px; }
.hb-streak b { display: block; font-family: var(--f-display); font-size: 21px; letter-spacing: -.02em; }
.hb-streak small, .hb-level small { display: block; color: var(--muted); font-size: 13px; }
.hb-flame { font-size: 34px; line-height: 1; filter: grayscale(1); opacity: .45; }
.hb-flame.on { filter: none; opacity: 1; animation: hbFlick 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes hbFlick { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.06) rotate(-3deg); } 60% { transform: scale(.97) rotate(2deg); } }
.hb-week { display: flex; justify-content: center; gap: 10px; }
.hb-week span { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.hb-week i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-ink); }
.hb-week .on i { background: var(--accent); }
.hb-week .quiet i { background: var(--accent-soft); color: var(--ink-2); font-weight: 800; }
.hb-quiet { margin-top: 4px; font-size: 13px; }
.hb-week .today i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.hb-week small { font-size: 11px; color: var(--muted); }
.hb-week .today small { color: var(--ink); font-weight: 650; }
.enter .hb-week .on i { animation: pop .45s var(--ease-spring) both; animation-delay: calc(var(--k) * 55ms + 200ms); }
.hb-level { display: flex; align-items: center; gap: 12px; min-width: 250px; }
.hb-level > div { flex: 1; min-width: 0; }
.hb-level b { font-size: 15px; }
.hb-level .prog { margin-top: 8px; }
.hb-level .prog .fill { background: var(--accent); }
.hb-badge { width: 46px; height: 46px; flex: none; border-radius: 15px; display: grid; place-items: center; font-size: 23px; background: var(--accent-soft); }
@media (max-width: 860px) {
  .hb-card { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hb-week { justify-content: space-between; gap: 4px; }
  .hb-level { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .hb-flame.on { animation: none; } }
.prog .fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--pos); transform-origin: left; }
.prog.warn .fill { background: var(--warn); }
.prog.over .fill { background: var(--neg); }
.prog .pace-tick { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: var(--ink); opacity: .5; }
.state { font-size: 12.5px; font-weight: 600; }
.state.ok { color: var(--pos); }
.state.warn { color: var(--warn); }
.state.over { color: var(--neg); }
.ring-sum { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--surface-2); }
.ring .val { transition: stroke-dashoffset 1.2s var(--ease-out); }
.enter .ring .val { animation: ringIn 1.2s .2s var(--ease-out) both; }
@keyframes ringIn { from { stroke-dashoffset: var(--c); } }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring-center b { font-family: var(--f-display); font-size: 26px; }
.ring-center span { font-size: 11.5px; color: var(--muted); }
.kv { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 180px; }
.kv div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.kv div span { color: var(--muted); }

/* heatmap */
.hm { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; width: 100%; max-width: 440px; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hm-dow { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); text-align: center; text-transform: uppercase; padding-bottom: 2px; }
.hm-cell {
  aspect-ratio: 1; max-width: 100%; border-radius: 9px; display: grid; place-items: center; font-size: 11.5px; font-weight: 600;
  background: var(--surface-2); color: var(--ink-2); transition: transform .2s var(--ease-spring), box-shadow .2s;
}
@media (hover: hover) { .hm-cell:hover { transform: scale(1.12); box-shadow: 0 0 0 2px var(--ink); z-index: 1; position: relative; } }
.hm-cell.l1 { background: color-mix(in srgb, var(--accent) 28%, var(--surface-2)); }
.hm-cell.l2 { background: color-mix(in srgb, var(--accent) 52%, var(--surface-2)); }
.hm-cell.l3 { background: color-mix(in srgb, var(--accent) 78%, var(--surface-2)); color: var(--accent-ink); }
.hm-cell.l4 { background: var(--accent); color: var(--accent-ink); }
.hm-cell.future { background: transparent; border: 1px dashed var(--line); color: var(--muted); cursor: default; }
@media (hover: hover) { .hm-cell.future:hover { transform: none; box-shadow: none; } }
.hm-cell.today { box-shadow: 0 0 0 2px var(--ink); }
.enter .hm-cell { animation: pop .45s var(--ease-spring) both; animation-delay: calc(var(--k) * 12ms + 150ms); }
.hm-legend { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.hm-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* wallets */
.acc-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.acc-total .eyebrow { flex-basis: 100%; }
.acc-total b { font-family: var(--f-display); font-size: clamp(28px, 4vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.acc-total .muted { font-size: 13.5px; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.acc-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; text-align: left; padding: 18px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
@media (hover: hover) { .acc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); } }
.acc-card .top { display: flex; align-items: center; justify-content: space-between; }
.acc-card .bal { font-family: var(--f-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.acc-card .nm { font-weight: 600; }
.acc-card .ty { font-size: 12.5px; color: var(--muted); }
/* Dompet & kartu kredit bergaya kartu bank: warna jenis dompet, kilau halus, angka besar. */
.acc-card.pay { gap: 14px; min-height: 168px; justify-content: space-between; border: 0; color: #fff; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 55%, #fff) 0%, transparent 55%), linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 55%, #0b0c0d));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 24px -14px color-mix(in srgb, var(--c) 80%, #000); }
.acc-card.pay::before { content: ""; position: absolute; z-index: -1; right: -40px; bottom: -70px; width: 190px; height: 190px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .07); }
.acc-card.pay::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 48%, transparent 60%); transform: translateX(-120%); transition: transform .8s var(--ease-out); }
@media (hover: hover) { .acc-card.pay:hover::after { transform: translateX(120%); } }
.acc-card.pay:active { transform: scale(.97); transition-duration: .12s; }
.acc-card.pay .ty { color: rgba(255, 255, 255, .78); }
.acc-card.pay .nm { font-weight: 600; opacity: .92; }
.acc-card.pay .bal { font-size: 26px; }
.pay-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .18); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset; font-size: 19px; }
.acc-card.pay .prog { background: rgba(255, 255, 255, .22); }
.acc-card.pay .prog .fill { background: #fff; }
.acc-card.pay .due-soon { color: #fff; background: rgba(0, 0, 0, .22); align-self: flex-start; padding: 3px 9px; border-radius: 99px; }
.acc-dots { display: none; }
.acc-card.add { align-items: center; justify-content: center; border-style: dashed; color: var(--muted); background: transparent; min-height: 150px; gap: 8px; font-weight: 600; }
.share-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 3px; }
.share-bar i { display: block; height: 100%; border-radius: 99px; transform-origin: left; }
.enter .share-bar i { animation: growX .9s var(--ease-out) both; animation-delay: var(--d); }

.acc-total b.neg { color: var(--neg); }
.acc-card .ty .ic { display: inline; vertical-align: -2px; }
.acc-card .lim { display: flex; flex-direction: column; gap: 6px; }
.acc-card .due-soon { color: var(--neg); font-weight: 650; }
/* Mutasi per akun */
.acc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: end; }
.back-btn { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px 0 8px; border-radius: 99px; background: var(--surface-2); font-size: 13px; font-weight: 600; transition: background-color .2s, transform .25s var(--ease-spring); }
@media (hover: hover) { .back-btn:hover { background: var(--line); transform: translateX(-2px); } }
.acc-id { display: flex; align-items: center; gap: 14px; }
.acc-id .tx-ic { width: 52px; height: 52px; border-radius: 16px; }
.acc-id h2 { font-size: 24px; }
.acc-now { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.acc-now b { font-family: var(--f-display); font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.acc-now b.neg { color: var(--neg); }
.acc-now .muted { font-size: 13px; }
.badge.warn { background: var(--neg-soft); color: var(--neg); }
.acc-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.mut-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mut-sum div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg); }
.mut-sum span { font-size: 12.5px; color: var(--muted); }
.mut-sum b { font-family: var(--f-display); font-size: 18px; letter-spacing: -.02em; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.mut-list { display: flex; flex-direction: column; }
.mut-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: calc(100% + 16px); margin: 0 -8px; padding: 10px 8px; border-radius: 14px; text-align: left; transition: background-color .2s; }
.mut-row + .mut-row { border-top: 1px solid var(--line); }
@media (hover: hover) { .mut-row:hover { background: var(--bg); } }
.mut-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: nowrap; }
.mut-amt b { font-size: 14.5px; }
.mut-amt small { font-size: 12px; color: var(--muted); }
.tx-title .ic { display: inline; vertical-align: -2px; color: var(--muted); }
@media (max-width: 860px) {
  .acc-head { grid-template-columns: minmax(0, 1fr); }
  .acc-now { align-items: flex-start; text-align: left; }
  .mut-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.goal { display: flex; flex-direction: column; gap: 16px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.goal-top { display: flex; gap: 14px; align-items: center; }
.goal-txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.goal h3 { display: flex; align-items: flex-start; gap: 6px; line-height: 1.25; }
.goal h3 > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.goal-emo { flex: none; }
.goal .meta b { color: var(--ink); font-weight: 650; }
/* Kotak saran dan tombol selalu di dasar kartu, jadi kartu dalam satu baris sejajar. */
.goal-bot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.goal .ring { width: 74px; height: 74px; }
.goal .ring-center b { font-size: 16px; font-family: var(--f-mono); font-weight: 500; }
.goal h3 { font-size: 16.5px; }
.goal .meta { font-size: 13px; color: var(--muted); }
.goal-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.goal .need { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--bg); color: var(--ink-2); font-size: 13.5px; }
.goal .need small { color: var(--muted); font-size: 12px; }
.goal.done .need { background: var(--pos-soft); color: var(--pos); }

/* settings */
.set-list { display: flex; flex-direction: column; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.set-row:last-child { border-bottom: 0; }
.set-row .t { min-width: 0; flex: 1 1 220px; }
.set-row .t b { display: block; font-weight: 600; }
.set-row .t span { font-size: 13px; color: var(--muted); }
.set-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle { position: relative; width: 48px; height: 28px; flex: none; }
.toggle input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background-color .25s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 99px; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .3s var(--ease-spring); }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::after { transform: translateX(20px); }
.toggle input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; font-weight: 550; }
.cat-chip .tx-ic { width: 26px; height: 26px; border-radius: 99px; }
@media (hover: hover) { .cat-chip:hover { border-color: var(--ink); } }
.profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile .avatar { width: 60px; height: 60px; font-size: 22px; }
.profile .who { flex: 1 1 160px; min-width: 0; }
.profile .who b { font-size: 18px; font-family: var(--f-display); display: block; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.badge.g { background: var(--pos-soft); color: var(--pos); }
.rec-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rec-row:last-child { border-bottom: 0; }
.rec-row .tx-main { flex: 1; }

/* ---------- hutang & piutang ---------- */
.badge.amber { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.tx-amt.debt { color: var(--ink-2); }
.p-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; font-weight: 700; color: var(--ink);
  background: color-mix(in srgb, var(--c) 30%, var(--surface)); }
.p-av.lg { width: 60px; height: 60px; font-size: 21px; }
.debt-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.debt-sum > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; min-width: 0; }
.debt-sum span { font-size: 12.5px; color: var(--ink-2); }
.debt-sum b { font-family: var(--f-display); font-size: clamp(18px, 3vw, 24px); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.debt-sum .out { background: var(--neg-soft); } .debt-sum .out b { color: var(--neg); }
.debt-sum .in { background: var(--pos-soft); } .debt-sum .in b { color: var(--pos); }
.debt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 24px; }
.debt-row { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 14px 8px; margin: 0; text-align: left; border-top: 1px solid var(--line); border-radius: 0; transition: background-color .2s; }
@media (hover: hover) { .debt-row:hover { background: var(--bg); } }
.debt-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 12px; }
.debt-top { display: flex; align-items: center; gap: 12px; }
.debt-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.debt-who b { font-weight: 650; }
.debt-who small, .debt-val small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.debt-val { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.debt-val b { font-weight: 700; }
.debt-row .prog { height: 6px; }
.debt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.debt-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 28px; align-items: center; }
.debt-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.debt-hero h2 { font-size: 24px; }
.debt-now { display: flex; flex-direction: column; gap: 8px; }
.debt-now b { font-family: var(--f-display); font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.debt-head .acc-actions { grid-column: 1 / -1; }
.debt-tl { display: flex; flex-direction: column; }
.debt-ev { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: start; width: 100%; padding: 10px 0; text-align: left; border-radius: 10px; }
.debt-ev::before { content: ""; position: absolute; left: 8px; top: 30px; bottom: -10px; width: 2px; background: var(--line); }
.debt-ev:last-child::before { display: none; }
.debt-ev i { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--c); border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--c); }
.debt-ev b { display: block; font-weight: 650; }
.debt-ev small { font-size: 12.5px; color: var(--muted); }
.debt-ev > .amt { font-weight: 700; white-space: nowrap; }
.debt-ev:focus-visible { outline: 2px solid var(--focus); }
.due-list { display: flex; flex-direction: column; }
.due-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.due-row + .due-row { border-top: 1px solid var(--line); }
.due-main { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.due-main b { font-weight: 650; }
.due-main small { font-size: 12.5px; color: var(--muted); }
.due-main small.neg { color: var(--neg); }
.due-card { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.note-box { padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.note-box:empty { display: none; }
@media (max-width: 860px) {
  .debt-head { grid-template-columns: minmax(0, 1fr); }
  .debt-hero { align-items: center; text-align: center; }
  .debt-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- alat & tagihan ---------- */
.nav-group { margin: 14px 12px 4px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tool-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 12px; border-radius: 16px; background: var(--bg); text-align: left; min-width: 0; transition: background-color .2s, transform .2s var(--ease-spring); }
.tool-tile:active { transform: scale(.97); }
.tool-ic { width: 38px; height: 38px; margin-bottom: 4px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--ink); }
.tool-tile b { font-size: 14px; font-weight: 650; }
.tool-tile small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.sub-link { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.bill-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bill-sum > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.bill-sum span { font-size: 12px; color: var(--muted); }
.bill-sum b { font-family: var(--f-display); font-size: clamp(15px, 2.4vw, 19px); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bill-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bc-day { position: relative; aspect-ratio: 1; max-height: 64px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: var(--bg); font-size: 13px; color: var(--muted); }
.bc-day b { font-weight: 600; }
.bc-day i { min-width: 8px; height: 8px; padding: 0 3px; border-radius: 99px; font-style: normal; font-size: 0; background: var(--pos); }
.bc-day.today { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.bc-day.ok { background: var(--pos-soft); color: var(--ink); }
.bc-day.due { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--ink); }
.bc-day.due i { background: var(--warn); }
.bc-day.late { background: var(--neg-soft); color: var(--ink); }
.bc-day.late i { background: var(--neg); }
.hm-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.dot.late { background: var(--neg); } .dot.due { background: var(--warn); } .dot.ok { background: var(--pos); }
.bill-list, .bill-subs { display: flex; flex-direction: column; }
.bill-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 0; text-align: left; }
.bill-row + .bill-row { border-top: 1px solid var(--line); }
button.bill-row { border-radius: 0; }
.bill-row.paid .tx-title { color: var(--muted); }
.bill-side { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.bill-side .ic { color: var(--muted); }
.bill-year { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .bill-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bill-sum > div:first-child { grid-column: 1 / -1; }
  .bill-row { grid-template-columns: auto minmax(0, 1fr); }
  .bill-row .bill-side { grid-column: 2; justify-content: space-between; }
  button.bill-row .bill-side { grid-column: auto; }
  button.bill-row { grid-template-columns: auto minmax(0, 1fr) auto; }
}

/* ---------- laporan ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 16px; background: var(--bg); min-width: 0; }
.kpi > span:first-child { font-size: 12.5px; color: var(--muted); }
.kpi b { font-family: var(--f-display); font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delta { font-size: 12px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.delta.good { color: var(--pos); } .delta.bad { color: var(--neg); }
.cmp-list { display: flex; flex-direction: column; gap: 12px; }
.cmp-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.cmp-row .tx-ic { width: 36px; height: 36px; border-radius: 11px; }
.cmp-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cmp-top { display: flex; align-items: baseline; gap: 10px; font-size: 14px; }
.cmp-top b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-top .amt { font-weight: 650; }
.cmp-top .delta { min-width: 52px; text-align: right; }
/* Bulan ini sebagai isi batang, periode yang sama bulan lalu sebagai penanda tegak. */
.cmp-bar { position: relative; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--line) 55%, transparent); }
.cmp-bar i { display: block; height: 100%; border-radius: inherit; min-width: 2px; transform-origin: left; }
.cmp-bar s { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 1.5px var(--surface); }
.cmp-prev { font-size: 12px; color: var(--muted); }
.cmp-prev .amt { color: var(--ink-2); font-weight: 600; }
.cmp-legend { align-items: center; }
.cmp-legend span { display: inline-flex; align-items: center; }
.cmp-legend i.lg-bar { width: 18px; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #7b6cd9, #d4577f, #e07a45); }
.cmp-legend i.lg-tick { width: 3px; height: 13px; border-radius: 2px; background: var(--ink); }
.enter .cmp-bar i, .enter .share-row i { animation: growX .8s var(--ease-out) both; }
.enter .cmp-bar s { animation: fadeIn .4s .55s var(--ease-out) both; }
.dow-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 170px; }
.dow-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.dow-col span { font-size: 11px; color: var(--muted); }
.dow-col i { width: 100%; max-width: 38px; height: var(--h); min-height: 3px; border-radius: 8px 8px 4px 4px; background: var(--surface-2); transform-origin: bottom; }
.enter .dow-col i, .enter .yc-bars i { animation: growY .8s var(--ease-out) both; }
.dow-col.top i { background: var(--accent); }
.dow-col b { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.top-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.top-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; }
.top-list li + li { border-top: 1px solid var(--line); }
.top-list .tx-ic { width: 34px; height: 34px; border-radius: 10px; }
.year-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 200px; align-items: stretch; }
.yc-col { display: flex; flex-direction: column; align-items: center; gap: 6px; border-radius: 10px; padding: 4px 0; transition: background-color .2s; }
@media (hover: hover) { .yc-col:hover { background: var(--bg); } }
.yc-col.cur { background: var(--bg); }
.yc-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.yc-bars i { width: 38%; max-width: 14px; height: var(--h); min-height: 2px; border-radius: 4px 4px 2px 2px; transform-origin: bottom; }
.yc-bars .inc { background: var(--pos); } .yc-bars .exp { background: var(--neg); }
.yc-col b { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.yc-col.cur b { color: var(--ink); }
.share-list { display: flex; flex-direction: column; gap: 12px; }
.share-row { display: grid; grid-template-columns: minmax(0, 1fr) 8.5em; gap: 4px 10px; font-size: 13.5px; }
.share-row b { text-align: right; }
.card-head:has(> .seg-pills) { flex-wrap: wrap; }
.card-head > .seg-pills { flex-wrap: nowrap; }
.share-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-row i { grid-column: 1; height: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--c) var(--w), var(--surface-2) var(--w)); transform-origin: left; }
.share-row small { font-size: 12px; color: var(--muted); text-align: right; }
@media (max-width: 860px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .year-chart { height: 170px; gap: 3px; }
}

/* ---------- impor mutasi ---------- */
.imp-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; border: 1.5px dashed var(--line); border-radius: 16px; text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.imp-drop .ic { color: var(--ink-2); }
.imp-drop span { font-size: 12.5px; color: var(--muted); max-width: 36ch; }
@media (hover: hover) { .imp-drop:hover { border-color: var(--ink); background: var(--bg); } }
.imp-drop:focus-within { border-color: var(--ink); }
#imp { display: flex; flex-direction: column; gap: 14px; }
.imp-bal { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 13px; color: var(--ink-2); }
.imp-bal.ok { background: var(--pos-soft); color: var(--pos); }
.imp-bal .ic { flex: none; margin-top: 1px; }
.imp-sum { font-size: 14px; color: var(--ink-2); }
.imp-map { border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; }
.imp-map summary { display: flex; align-items: center; gap: 8px; height: 44px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.imp-map summary::-webkit-details-marker { display: none; }
.imp-map[open] { padding-bottom: 12px; }
.imp-actions { display: flex; gap: 16px; }
.imp-list { display: flex; flex-direction: column; }
.imp-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; cursor: pointer; }
.imp-row + .imp-row { border-top: 1px solid var(--line); }
.imp-row input { width: 18px; height: 18px; accent-color: var(--ink); }
.imp-row .tx-ic { width: 34px; height: 34px; border-radius: 10px; }
.imp-row b { font-size: 14px; white-space: nowrap; }
.imp-row.dup { opacity: .55; }

/* ---------- baca struk ---------- */
.scan-note { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; background: var(--surface-2); color: var(--ink-2); flex-shrink: 0; }
.scan-note .ic { flex: none; margin-top: 1px; }
.scan-note.ok { background: var(--pos-soft); color: var(--ink); }
.scan-note.ok .ic { color: var(--pos); }
.scan-note.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); }
.scan-note.warn .ic { color: var(--warn); }
.scan-note .spin { flex: none; width: 15px; height: 15px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.scan-btn { align-self: flex-start; }

/* ---------- patungan ---------- */
.split-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; flex-shrink: 0; }
.split-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.split-head .seg-pills button { height: 30px; padding: 0 12px; font-size: 13px; }
.split-list { display: flex; flex-direction: column; }
.split-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; }
.split-row + .split-row { border-top: 1px solid var(--line); }
.split-row .p-av { width: 34px; height: 34px; font-size: 12.5px; }
.split-who { display: flex; flex-direction: column; min-width: 0; }
.split-who b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split-who small { font-size: 12px; color: var(--muted); }
.split-amt { font-weight: 650; white-space: nowrap; }
.split-row input.split-in { width: 112px; min-width: 0; height: 38px; padding: 0 10px; text-align: right; font-weight: 650; }
.split-row .icon-btn { width: 32px; height: 32px; }
.split-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.split-add .input { height: 40px; }
.split-left { font-size: 13px; color: var(--muted); }
.split-left.warn { color: var(--neg); }

/* ---------- kekayaan bersih ---------- */
.nw-total { font-family: var(--f-display); font-size: clamp(32px, 5vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.nw-x { display: flex; justify-content: space-between; margin: 6px 0 4px; font-size: 11px; color: var(--muted); }
.lc-light { height: 150px; }
.lc-light .lc-line { stroke: var(--ink); }
.lc-light .lc-base { stroke: var(--line); }
.lc-light .lc-dot { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.lc-light .lc-dot::after { border-color: var(--ink); }
.lc-light .lc-cursor { background: color-mix(in srgb, var(--ink) 35%, transparent); }
.lc-light .lc-tip { background: var(--ink); color: var(--surface); }
.nw-parts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.nw-parts > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--bg); min-width: 0; }
.nw-parts span { font-size: 12px; color: var(--muted); }
.nw-parts b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-card.asset .delta { font-size: 12px; }
@media (max-width: 860px) {
  .nw-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nw-parts > div:first-child { grid-column: 1 / -1; }
}

/* ---------- kunci aplikasi ---------- */
.lock { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top, 0px)) 16px max(24px, env(safe-area-inset-bottom, 0px)); background: var(--bg); animation: fadeIn .2s ease both; overflow-y: auto; }
.lock.out { animation: fadeOut .25s ease both; }
.lock-in { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(320px, 100%); text-align: center; }
.lock-in .mark { width: 52px; height: 52px; margin-bottom: 10px; }
.lock-in h2 { font-size: 22px; }
.pin-dots { display: flex; gap: 14px; margin: 18px 0 4px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-2); transition: background-color .15s, transform .2s var(--ease-spring); }
.pin-dots i.on { background: var(--ink); border-color: var(--ink); transform: scale(1.1); }
.pin-msg { min-height: 20px; font-size: 13px; color: var(--muted); }
.pin-msg.bad { color: var(--neg); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px 24px; justify-content: center; margin-top: 6px; }
.pin-pad button { width: 72px; height: 72px; border-radius: 50%; font-family: var(--f-display); font-size: 28px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); transition: background-color .15s, transform .15s; }
.pin-pad button:active { transform: scale(.93); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pin-pad .pin-del, .pin-pad .pin-bio { background: none; border-color: transparent; font-size: 24px; color: var(--ink-2); }
.pin-pad button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.lock.busy .pin-pad { opacity: .6; }
.lock-forgot { margin-top: 18px; color: var(--muted); }
.lock-forgot.armed { color: var(--neg); }
.pin-set { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 8px; }
.set-sel { width: auto; min-width: 170px; }

/* ---------- zakat & THR ---------- */
.zk-head { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.zk-head .seg-pills button { white-space: nowrap; }
.zk-head .seg-pills { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.zk-list { display: flex; flex-direction: column; }
.zk-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 150px; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; }
.zk-row + .zk-row { border-top: 1px solid var(--line); }
.zk-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ink); }
.zk-row:has(input[type=checkbox]:not(:checked)) > span, .zk-row:has(input[type=checkbox]:not(:checked)) .zk-in { opacity: .45; }
.zk-row .zk-in, .zk-item .zk-in { height: 40px; text-align: right; font-weight: 600; }
.zk-sub { margin-top: 6px; }
.zk-items { display: flex; flex-direction: column; gap: 8px; }
.zk-item { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 8px; align-items: center; }
.zk-item.amp { grid-template-columns: minmax(0, 1fr) 56px auto 120px auto; }
.zk-item .input { height: 40px; }
.zk-item .zk-n { text-align: center; }
.zk-item > span { color: var(--muted); }
.zk-result { align-self: start; }
.zk-big { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 16px; background: var(--accent-soft); }
.zk-big span { font-size: 13px; color: var(--ink-2); }
.zk-big b { font-family: var(--f-display); font-size: clamp(28px, 4vw, 36px); font-weight: 700; letter-spacing: -.02em; }
.zk-lines { display: flex; flex-direction: column; }
.zk-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; }
.zk-lines > div + div { border-top: 1px solid var(--line); }
.zk-lines span { color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.zk-lines .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.zk-lines .tot { font-weight: 650; }
.thr-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--surface-2); }
.thr-bar i { min-width: 3px; }
.thr-bar i.rest { background: var(--surface-2); }
@media (max-width: 860px) {
  .zk-row { grid-template-columns: auto minmax(0, 1fr); }
  .zk-row .zk-in { grid-column: 2; }
  .zk-item.amp { grid-template-columns: 56px auto minmax(0, 1fr) auto; gap: 6px; }
  .zk-item.amp input[data-f=name] { grid-column: 1 / -1; }
  .zk-item.amp + .zk-item.amp { padding-top: 8px; border-top: 1px solid var(--line); }
  .zk-item { grid-template-columns: minmax(0, 1fr) 118px auto; }
}

/* ---------- dompet bersama ---------- */
.av-stack { display: inline-flex; flex: none; }
.av-stack > * { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: var(--ink);
  background: color-mix(in srgb, var(--c, var(--accent)) 30%, var(--surface)); box-shadow: 0 0 0 2px var(--surface); object-fit: cover; }
.av-stack > * + * { margin-left: -8px; }
.shared-list { display: flex; flex-direction: column; }
.shared-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; width: 100%; padding: 12px 0; text-align: left; }
.shared-row + .shared-row { border-top: 1px solid var(--line); }
.shared-row > .ic { color: var(--muted); }
.space-code { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); flex-wrap: wrap; }
.space-code .eyebrow { flex-basis: 100%; }
.space-code b { flex: 1; font-family: var(--f-mono); font-size: 22px; letter-spacing: .08em; }
.member-list { display: flex; flex-direction: column; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.member-row + .member-row { border-top: 1px solid var(--line); }
.member-row > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.member-row small { font-size: 12px; color: var(--muted); }
.member-row .p-av { width: 34px; height: 34px; font-size: 12.5px; }
.link-btn.neg { color: var(--neg); }
.code-in { font-family: var(--f-mono); font-size: 20px; letter-spacing: .1em; text-transform: uppercase; }
.acc-id .av-stack { margin-left: 8px; }

/* ---------- notifikasi & versi ---------- */
.notif-btn { position: relative; }
.notif-count { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; display: grid; place-items: center;
  background: var(--neg); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px var(--bg); animation: pop .4s var(--ease-spring) both; }
.pop.notif-pop { width: min(380px, calc(100vw - 16px)); padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: min(520px, calc(100vh - 90px)); }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.notif-head b { font-family: var(--f-display); font-size: 17px; }
.notif-list { overflow-y: auto; padding: 0 6px 6px; }
.notif-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; width: 100%; padding: 10px 10px 10px 18px; border-radius: 12px; text-align: left; transition: background-color .15s; }
@media (hover: hover) { .notif-item:hover { background: var(--surface-2); } }
.notif-item:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.notif-item.unread::before { content: ""; position: absolute; left: 6px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--ink); }
.notif-item.unread.neg::before { background: var(--neg); }
.notif-item.unread.warn::before { background: var(--warn); }
.notif-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); }
.notif-item.neg .notif-ic { background: var(--neg-soft); }
.notif-item.warn .notif-ic { background: color-mix(in srgb, var(--warn) 16%, transparent); }
.notif-item.acc .notif-ic { background: var(--accent-soft); }
.notif-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-main b { font-size: 14px; font-weight: 650; line-height: 1.3; }
.notif-item:not(.unread) .notif-main b { font-weight: 550; color: var(--ink-2); }
.notif-main small { font-size: 12.5px; color: var(--muted); }
.notif-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 20px 30px; text-align: center; color: var(--muted); font-size: 13px; }
.notif-empty .ic { color: var(--ink-2); }
.notif-empty b { color: var(--ink); font-size: 15px; }
.notif-foot { border-top: 1px solid var(--line); padding: 10px 16px; }
.side-ver { align-self: flex-start; margin: -4px 0 0 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
@media (hover: hover) { .side-ver:hover { color: var(--ink); } }
.changelog { display: flex; flex-direction: column; gap: 18px; }
.cl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-head b { font-family: var(--f-display); font-size: 16px; }
.cl-head small { flex-basis: 100%; font-size: 12.5px; color: var(--muted); }
.cl-ver ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--ink-2); }
.cl-ver + .cl-ver { padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- tab bar + FAB (phones) ---------- */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding-top: 6px; padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px));
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line);
}
.tabbar-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--muted); transition: color .2s; }
.tab .ic { transition: transform .3s var(--ease-spring); }
.tab.active { color: var(--ink); }
.tab.active .ic { color: var(--accent-ink); animation: tabPop .45s var(--ease-spring); }
.tab:active .ic { transform: scale(.86); transition-duration: .1s; }
@keyframes tabPop { 40% { transform: scale(1.16) translateY(-1px); } }
.tabbar-inner { position: relative; }
.tab, .tab-add { position: relative; z-index: 1; }
/* Pil hijau di belakang ikon tab aktif; sisi belakang tertinggal sedikit agar meluncur seperti cairan. */
.tab-ind { position: absolute; z-index: 0; height: 30px; border-radius: 99px; background: var(--accent); pointer-events: none;
  transition: left .42s var(--ease-out), right .42s var(--ease-out) .07s, opacity .2s; }
.tab-ind.to-r { transition: left .42s var(--ease-out) .07s, right .42s var(--ease-out), opacity .2s; }
.tab-ind.instant { transition: opacity .2s; }
.tab-ind.off { opacity: 0; }
/* Judul ringkas saat halaman di-scroll (hanya HP). */
.mini-bar { display: none; }
.tab-add { position: relative; color: var(--ink); }
.tab-add > span:last-child { margin-top: 25px; }
.tab-plus { position: absolute; left: 50%; top: -31px; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--accent); box-shadow: 0 0 0 5px var(--bg), 0 10px 24px -10px rgba(0, 0, 0, .55); transition: transform .35s var(--ease-spring), background-color .25s, color .25s; }
.tab-plus .ic { transition: transform .35s var(--ease-spring); }
.tab-add:active .tab-plus { transform: scale(.92); }
.tab-add[aria-expanded="true"] .tab-plus { background: var(--accent); color: var(--accent-ink); }
.tab-add[aria-expanded="true"] .tab-plus .ic { transform: rotate(135deg); }
.tab-add:focus-visible { outline: none; }
.tab-add:focus-visible .tab-plus { outline: 2px solid var(--focus); outline-offset: 3px; }
/* Menu Catat: pilihan muncul bertumpuk di atas tombol tengah. */
.cm-wrap { position: fixed; inset: 0; z-index: 29; }
.cm-dim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .22s ease; }
.cm-wrap.open .cm-dim { opacity: 1; }
.cm { position: absolute; left: 50%; bottom: calc(104px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; width: max-content; max-width: calc(100vw - 32px); }
.cm-item { display: flex; align-items: center; gap: 12px; min-width: 200px; height: 50px; padding: 0 20px 0 7px; border-radius: 99px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 650;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(18px) scale(.9); transition: opacity .2s ease, transform .4s var(--ease-spring); transition-delay: calc(var(--i) * 30ms); }
.cm-wrap.open .cm-item { opacity: 1; transform: none; }
.cm-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cm-item:active { transform: scale(.96); }
.cm-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); font-size: 17px; font-weight: 800; }
.cm-item.out .cm-ic { background: var(--neg-soft); color: var(--neg); }
.cm-item.in .cm-ic { background: var(--pos-soft); color: var(--pos); }
body.cm-open .tabbar { z-index: 31; }

/* ---------- sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 20px; }
/* Di layar lebar lembar form menempel di atas, jadi saat isinya berubah hanya bagian bawahnya yang bergerak. */
@media (min-width: 861px) { .sheet-wrap { place-items: start center; padding-top: max(24px, 7vh); } }
.sheet-backdrop { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .3s ease; backdrop-filter: blur(2px); }
.sheet {
  position: relative; width: min(520px, 100%); max-height: min(88vh, 860px); display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(24px) scale(.97); transition: transform .45s var(--ease-spring), opacity .25s ease;
}
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-wrap.open .sheet { opacity: 1; transform: none; }
.sheet-wrap.closing .sheet { transition-timing-function: ease-in; transition-duration: .22s; }
.sheet-grip { display: none; width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 10px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 6px; }
.sheet-head h2 { font-size: 21px; }
.sheet-body { padding: 10px 22px 6px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.sheet-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px 20px; flex-wrap: wrap; }
.sheet-foot .spacer { flex: 1; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.input {
  width: 100%; height: 46px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg); padding: 0 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
select.input { appearance: none; cursor: pointer; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
/* Dropdown & kalender buatan sendiri (menggantikan tampilan bawaan browser) */
.native-hidden { display: none !important; }
.pick { display: flex; align-items: center; gap: 9px; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.pick > span:not(.emo):not(.logo-ic) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick > span.ph { color: var(--muted); }
.pick > .ic:last-child { color: var(--muted); transition: transform .3s var(--ease-out); }
.pick[aria-expanded="true"] > .ic:last-child { transform: rotate(180deg); }
.pick > .ic:first-child:not(:last-child) { color: var(--ink-2); }
.pick-input { width: 100%; height: 46px; padding: 0 12px 0 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg); }
@media (hover: hover) { .pick-input:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); } }
.pick-input[aria-expanded="true"], .pick-input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.pick-pill { height: 42px; max-width: 100%; padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; }
.pick-pill[aria-expanded="true"] { border-color: var(--ink); }
.pop { position: fixed; z-index: 120; max-width: calc(100vw - 16px); padding: 6px; border-radius: 16px; background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-pop); transform-origin: top center;
  animation: popIn .38s cubic-bezier(.2, .9, .25, 1) both, popFade .16s ease-out both; }
.pop.up { transform-origin: bottom center; animation-name: popUp, popFade; }
/* Pop tumbuh dari tombolnya: membesar sambil "terbuka" ke arah bawah (atau atas), lalu isinya menyusul. */
/* Area clip diperluas 40px ke luar supaya bayangan pop tidak terpotong. */
@keyframes popIn { from { transform: translateY(-8px) scale(.9); clip-path: inset(-40px -40px 72% -40px round 16px); } to { clip-path: inset(-40px round 16px); } }
@keyframes popUp { from { transform: translateY(8px) scale(.9); clip-path: inset(72% -40px -40px -40px round 16px); } to { clip-path: inset(-40px round 16px); } }
@keyframes popFade { from { opacity: 0; } }
.pop :is(button, li)[style*="--k"] { animation: popItem .32s cubic-bezier(.2, .9, .25, 1) both; animation-delay: calc(50ms + var(--k) * 9ms); }
/* Masuk dari sedikit di atas sambil membesar: tidak pernah melewati tepi bawah, jadi tidak memunculkan gagang scroll. */
@keyframes popItem { from { opacity: 0; transform: translateY(-4px) scale(.96); } }
.pick-list { display: flex; flex-direction: column; gap: 2px; max-height: min(320px, 50vh); overflow-y: auto; overscroll-behavior: contain; }
.pick-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border-radius: 10px; text-align: left; font-size: 14.5px; transition: background-color .15s; }
.pick-opt span:not(.emo):not(.logo-ic) { flex: 1; min-width: 0; }
@media (hover: hover) { .pick-opt:hover, .pick-opt:focus-visible { background: var(--surface-2); outline: none; } }
.pick-opt.on { font-weight: 650; }
.pick-opt .ic { color: var(--ink); }
.pop.cal { width: 312px; padding: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-head b { font-family: var(--f-display); font-size: 16px; text-transform: capitalize; }
.cal-head .icon-btn { width: 36px; height: 36px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-dow { padding: 6px 0; text-align: center; font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; color: var(--muted); }
.cal-day { aspect-ratio: 1; border-radius: 12px; font-size: 14px; font-weight: 550; font-variant-numeric: tabular-nums; transition: background-color .15s, color .15s; }
@media (hover: hover) { .cal-day:hover:not(:disabled), .cal-day:focus-visible { background: var(--surface-2); outline: none; } }
.cal-day.out { color: var(--muted); opacity: .55; }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-day.on { background: var(--accent); color: var(--accent-ink); font-weight: 750; }
.cal-day:disabled { opacity: .25; cursor: not-allowed; }
.cal-foot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.chip-btn { height: 32px; padding: 0 12px; border-radius: 99px; background: var(--surface-2); font-size: 13px; font-weight: 600; transition: background-color .2s; }
@media (hover: hover) { .chip-btn:hover { background: var(--line); } }
.chip-btn.ghost { margin-left: auto; background: none; color: var(--neg); }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.amount-field {
  display: flex; align-items: baseline; gap: 8px; padding: 6px 4px 10px; border-bottom: 2px solid var(--line); transition: border-color .2s;
}
.amount-field:focus-within { border-color: var(--ink); }
.amount-field span { font-family: var(--f-display); font-size: 22px; color: var(--muted); font-weight: 600; }
.amount-field input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-family: var(--f-display); font-weight: 700;
  font-size: 40px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; padding: 0;
}
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; background: var(--surface-2); border-radius: 16px; position: relative; }
.seg label { position: relative; z-index: 1; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background-color .25s, color .25s; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); }
.seg.type input[value="expense"]:checked + span { color: var(--neg); }
.seg.type input[value="income"]:checked + span { color: var(--pos); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.cat-opt { position: relative; }
.cat-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cat-opt > span {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; color: var(--ink-2); transition: border-color .2s, background-color .2s, transform .25s var(--ease-spring);
}
.cat-opt .tx-ic { width: 34px; height: 34px; border-radius: 11px; }
.cat-opt input:checked + span { border-color: var(--ink); background: var(--bg); transform: scale(1.03); }
.cat-opt input:focus-visible + span { outline: 2px solid var(--focus); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; width: 34px; height: 34px; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 99px; background: var(--c); transition: transform .25s var(--ease-spring); }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); transform: scale(.9); }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.icon-opt { position: relative; }
.icon-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.icon-opt > span { display: grid; place-items: center; height: 44px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink-2); }
.icon-opt input:checked + span { border-color: var(--ink); background: var(--bg); color: var(--ink); }
/* Form transaksi: pilihan jenis, nominal, lalu daftar baris yang bisa diketuk. */
.tseg { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; border-radius: 14px; background: var(--surface-2); }
.tseg label { position: relative; }
.tseg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tseg span { display: block; padding: 8px 0; text-align: center; font-size: 14px; font-weight: 650; color: var(--muted); transition: color .25s; }
.tseg input:checked + span { color: var(--ink); }
.tseg input[value="expense"]:checked + span { color: var(--neg); }
.tseg input[value="income"]:checked + span { color: var(--pos); }
.tseg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 10px; }
.tseg-thumb { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 10px; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 2px 8px -2px rgba(0, 0, 0, .1); transition: translate .4s var(--ease-spring); }
.tseg:has(input[value="income"]:checked) .tseg-thumb { translate: 100% 0; }
.tseg:has(input[value="transfer"]:checked) .tseg-thumb { translate: 200% 0; }
.amt-box { display: flex; flex-direction: column; gap: 4px; padding: 2px 2px 0; }
.amt-top { display: flex; align-items: center; justify-content: space-between; }
.amt-line { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding-bottom: 8px; border-bottom: 2px solid var(--line); transition: border-color .25s; }
.amt-line:focus-within { border-color: var(--ink); }
.amt-rp { font-family: var(--f-display); font-size: 20px; font-weight: 600; color: var(--muted); }
.amt-line input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 0; font-family: var(--f-display); font-weight: 700; font-size: 40px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); transition: font-size .2s var(--ease-out), color .25s; }
.sheet[data-type="income"] .amt-line input { color: var(--pos); }
.calc-res { min-height: 0; font-size: 13.5px; color: var(--muted); }
.calc-res:empty { display: none; }
.calc-toggle { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); background: var(--surface-2); transition: background-color .2s, color .2s; }
.calc-toggle[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.calc-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding-top: 6px; }
.calc-strip button { height: 40px; border-radius: 12px; background: var(--surface-2); font-family: var(--f-mono); font-size: 16px; display: grid; place-items: center; transition: background-color .15s, transform .2s var(--ease-spring); }
.calc-strip button:active { transform: scale(.92); background: var(--accent); color: var(--accent-ink); }
.tseg, .amt-box, .tx-group, .recent { flex-shrink: 0; }
.tx-group { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tx-group > * + *, .tx-rows > * + * { border-top: 1px solid var(--line); }
.tx-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 14px; text-align: left; cursor: pointer; transition: background-color .15s; }
.tx-row > .ic:last-child { flex: none; color: var(--muted); transition: transform .3s var(--ease-out); }
.tx-row[aria-expanded="true"] { background: var(--surface-2); }
.tx-row[data-x][aria-expanded="true"] > .ic:last-child { transform: rotate(180deg); }
.tx-row:active, .tx-hit:active { background: var(--surface-2); }
@media (hover: hover) { button.tx-row:hover, .tx-hit:hover { background: var(--surface-2); } }
.tx-row:focus-visible, .tx-hit:focus-visible, .tx-time:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.tx-group .tx-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--ink-2); background: var(--surface-2); font-size: 19px; }
.tx-group .tx-ic.tint { background: color-mix(in srgb, var(--c) 18%, transparent); }
.tx-group .tx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tx-label { font-size: 12px; font-weight: 500; color: var(--muted); }
.tx-val { font-size: 15px; font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-aside { flex: none; font-size: 12.5px; color: var(--muted); }
.tx-when { padding: 0; gap: 0; cursor: default; }
.tx-hit { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px; text-align: left; transition: background-color .15s; }
.tx-time { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; margin-right: 12px; padding: 0 12px; border-radius: 99px; background: var(--surface-2); font-family: var(--f-mono); font-size: 14px; font-weight: 500; color: var(--ink); transition: background-color .2s, color .2s; }
.tx-time[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.tx-note { cursor: text; }
.tx-note input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; padding: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); }
.tx-note input::placeholder { color: var(--muted); font-weight: 500; opacity: .75; }
.tx-note:focus-within { background: var(--surface-2); }
.tx-panel { padding: 12px 14px 14px; background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.tx-panel textarea { background: var(--surface); }
.recent { display: flex; align-items: center; gap: 6px; margin-top: -4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.recent:has(.chip-btn:nth-of-type(2)) { mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); padding-right: 28px; }
.recent::-webkit-scrollbar { display: none; }
.recent:empty { display: none; }
.recent .hint { flex: none; margin-right: 2px; }
.recent .chip-btn { flex: none; white-space: nowrap; }
.recent .chip-btn small { color: var(--muted); font-weight: 500; }
.pop.tok-pop { width: min(340px, calc(100vw - 16px)); }
.cat-pop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; max-height: min(330px, 50vh); overflow-y: auto; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; border-radius: 12px; text-align: center; transition: background-color .15s; }
.cat-tile .emo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 21px; background: color-mix(in srgb, var(--c) 16%, transparent); }
.cat-tile small { font-size: 11.5px; font-weight: 600; line-height: 1.2; color: var(--ink-2); }
.cat-tile:focus-visible { outline: none; background: var(--surface-2); }
@media (hover: hover) { .cat-tile:hover { background: var(--surface-2); } }
.cat-tile.on { background: var(--accent-soft); }
.cat-tile.on small { color: var(--ink); }
.pop-head { padding: 8px 10px 4px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.acc-opt small { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.again { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.add-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 2px 0; transition: color .2s; }
@media (hover: hover) { .add-link:hover { color: var(--ink); } }
.add-link .ic:last-child:not(:first-child) { transition: transform .3s var(--ease-out); }
.add-link[aria-expanded="true"] .ic:last-child:not(:first-child) { transform: rotate(180deg); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.45; font: inherit; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row:empty { display: none; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease-spring); }
.chip-btn:active { transform: scale(.95); }
.chip-btn.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 14px -8px var(--accent); }
.att { display: flex; flex-direction: column; gap: 10px; }
.att-body { display: flex; flex-direction: column; gap: 10px; }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.att-grid:empty { display: none; }
.att-item { position: relative; }
.att-thumb { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); animation: pop .35s var(--ease-spring) both; }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; }
.att-thumb small { font-size: 10px; font-weight: 700; }
.att-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); box-shadow: 0 0 0 2px var(--surface); }
.att-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.att-actions .btn { cursor: pointer; }
.lightbox { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 24px; background: rgba(8, 9, 10, .86); animation: fadeIn .25s ease both; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: pop .35s var(--ease-spring) both; }
.lightbox .icon-btn { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: 16px; color: #fff; background: rgba(255, 255, 255, .12); }
.lightbox.out { animation: fadeOut .25s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.pop.time { padding: 8px; }
/* Pemilih jam bergaya jam dinding (HP). */
.clk-wrap { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 16px; background: var(--scrim); animation: fadeIn .2s ease both; }
.clk-wrap.out { animation: fadeOut .2s ease both; }
.clk { width: min(328px, 100%); padding: 22px 24px 14px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-pop); animation: pop .32s var(--ease-spring) both; }
.clk-wrap.out .clk { animation: none; }
.clk-title { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.clk-read { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 20px; }
.clk-box { width: 96px; height: 76px; border-radius: 14px; background: var(--surface-2); font-family: var(--f-display); font-size: 50px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); transition: background-color .2s, color .2s; }
.clk-box.on { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 2px var(--accent); }
.clk-colon { font-family: var(--f-display); font-size: 46px; font-weight: 600; color: var(--ink); }
.clk-dial { position: relative; width: 256px; height: 256px; margin: 0 auto; border-radius: 50%; background: var(--surface-2); touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.clk-dial:focus { outline: none; }
.clk-dial:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.clk-pin { position: absolute; left: 124px; top: 124px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.clk-hand { position: absolute; left: 127px; width: 2px; background: var(--accent); transform-origin: 50% 100%; }
.clk-knob { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--accent); }
.clk-knob.dot::after { content: ""; position: absolute; left: 17px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); }
.clk-wrap.tap .clk-hand, .clk-wrap.tap .clk-knob { transition: transform .2s var(--ease-out), height .2s var(--ease-out), top .2s var(--ease-out), left .2s var(--ease-out); }
.clk-nums span { position: absolute; z-index: 1; width: 36px; height: 36px; margin: -18px 0 0 -18px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; pointer-events: none; }
.clk-nums span.in { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.clk-nums span.on { color: var(--accent-ink); }
.clk-foot { display: flex; align-items: center; gap: 4px; margin-top: 16px; }
.clk-foot span { flex: 1; }
.clk-btn { height: 40px; padding: 0 12px; border-radius: 99px; font-size: 14px; font-weight: 650; color: var(--ink); transition: background-color .15s; }
.clk-btn[data-now] { color: var(--muted); }
.clk-btn:active { background: var(--surface-2); }
.time-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.time-cols .pick-list { max-height: 220px; }
.time-cols .pick-opt { justify-content: center; font-family: var(--f-mono); font-variant-numeric: tabular-nums; min-height: 36px; }
.time-cols .pick-opt.on { background: var(--accent); color: var(--accent-ink); }
.check-row { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 550; }
.form-err { color: var(--neg); font-size: 13px; min-height: 0; }
.form-err:empty { display: none; }

/* ---------- toast ---------- */
.toast-root { position: fixed; left: 50%; translate: -50% 0; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border-radius: 16px;
  background: var(--brand); color: var(--brand-ink); border: 1px solid var(--brand-line); font-size: 14px; font-weight: 550; box-shadow: var(--shadow-pop);
  animation: toastIn .45s var(--ease-spring) both;
}
.toast.out { animation: toastOut .25s ease-in both; }
.toast button { color: var(--accent); font-weight: 700; padding: 4px 8px; border-radius: 8px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.92); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 36px 56px; }
  .span-7, .span-5 { grid-column: span 12; }
  .span-8, .span-4 { grid-column: span 12; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .tabbar { display: block; }
  .main { padding-top: 18px; padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex; }
  .topbar { margin-bottom: 18px; gap: 12px; }
  .topbar h1 { font-size: 28px; }
  .topbar .greet { margin-bottom: 4px; }
  .greet-chip + .greet-date { display: none; }
  .topbar .month-switch { order: 3; width: 100%; justify-content: space-between; }
  .mini-bar { position: fixed; z-index: 25; top: 0; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    min-height: calc(46px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
    background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .22s ease, transform .3s var(--ease-out); }
  .mini-bar b { font-size: 15px; font-weight: 700; }
  .mini-bar small { font-size: 11px; color: var(--muted); }
  .mini-bar small:empty { display: none; }
  body.scrolled .mini-bar { opacity: 1; transform: none; pointer-events: auto; }
  .day-head { top: calc(46px + env(safe-area-inset-top, 0px)); }
  /* Transaksi: pil jenis dan tombol Filter (ikon saja) berbagi satu baris. */
  .toolbar .search { flex-basis: 100%; }
  .toolbar .seg-pills { flex: 1; min-width: 0; flex-wrap: nowrap; }
  .toolbar .seg-pills button { flex: 1; min-width: 0; padding: 0 6px; font-size: 13px; }
  .f-btn { position: relative; flex: none; width: 42px; padding: 0; justify-content: center; }
  .f-btn .f-lbl { display: none; }
  .f-btn .count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10.5px; box-shadow: 0 0 0 2px var(--surface); }
  .sum-line { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .sum-line > :first-child { grid-column: 1 / -1; }
  /* Kartu dompet berjajar dan bisa digeser, kartu berikutnya sedikit mengintip. */
  .acc-grid.cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: -18px; padding: 4px 18px 12px; scroll-padding-inline: 18px; scrollbar-width: none; }
  .acc-grid.cards::-webkit-scrollbar { display: none; }
  .acc-grid.cards > .acc-card { flex: 0 0 82%; scroll-snap-align: start; }
  .acc-grid.cards > .acc-card.add { flex-basis: 44%; min-height: 168px; }
  .acc-dots { display: flex; justify-content: center; gap: 6px; }
  .acc-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: width .3s var(--ease-out), background-color .3s; }
  .acc-dots i.on { width: 18px; background: var(--ink); }
  .grid { gap: 14px; }
  .span-6 { grid-column: span 12; }
  .card { padding: 18px; }
  .hero { padding: 22px; min-height: 0; gap: 22px; }
  .toast-root { bottom: calc(156px + env(safe-area-inset-bottom, 0px)); }
  .stack { gap: 14px; }
  .sheet-wrap { place-items: end stretch; padding: 0; }
  .sheet { width: 100%; max-height: min(92vh, calc(var(--vvh, 100vh) - 8px)); border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .sheet-body { min-height: 120px; }
  /* Saat keyboard terbuka: menu bawah dan tombol + menyingkir supaya tidak menutupi kolom. */
  .tabbar { transition: opacity .2s ease, transform .25s var(--ease-out), visibility .2s; }
  body.kb .tabbar { opacity: 0; visibility: hidden; transform: translateY(24px); pointer-events: none; }
  body.kb .sheet-foot { padding-bottom: 10px; }
  /* Di HP cukup tombol × di atas untuk menutup, jadi tombol bawah muat satu baris. */
  .sheet-foot [data-close] { display: none; }
  .sheet-foot { flex-wrap: nowrap; }
  .sheet-foot .btn { padding: 0 16px; }
  .sheet-wrap.open .sheet { transform: none; }
  .sheet-grip { display: block; }
  .sheet-head { padding-top: 10px; }

  .login { grid-template-columns: minmax(0, 1fr); }
  .login-art { padding-block: 22px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .art-stage { min-height: 400px; }
  .art-logo { width: 116px; top: 50%; }
  .fx-feed, .fx-safe, .art-quote { display: none; }
  .fx-budget { top: 0; width: 196px; }
  .fx-quick { bottom: 0; left: 0; width: 232px; }
  .art-stage.solo { min-height: 200px; }
  .art-stage.solo .art-logo { width: 140px; }
  .auth-slides .art-quote { display: none; }
  .lp-wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .lp-nav .lp-links { display: none; }
  .lp-nav-in { justify-content: space-between; height: 60px; }
  .lp-panel { min-height: 0; }
  .lp-panel .art-stage { min-height: 480px; }
  .hp { width: 210px; }
  .lp-panel .fx-budget { top: 12%; left: auto; right: 0; width: 158px; }
  .lp-panel .fx-quick { bottom: 10%; right: auto; left: 0; width: 176px; }
  .lp-panel .fx-safe { display: none; }
  .lp-sec { padding-block: 52px; }
  .feat-grid, .steps, .plans { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { margin-top: 14px; }
  .plan { padding: 26px 22px; }
  .login-art.lp-band { padding: 40px 20px; }
  .inst-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .inst-art { min-height: 0; padding: 12px 0 8px; }
  .dd-stage { height: 470px; }
  .dd[data-p="desktop"] .dd-stage { height: 300px; }
  .dd-laptop { width: 92%; }
  .dd-dev { --w: 226px; }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 40px; }
  .ft-about { grid-column: 1 / -1; }
  .legal { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .legal-toc { position: static; }
  .legal-toc nav, .legal-toc .eyebrow { display: none; }
  .legal-toc-m { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 8px; padding: 18px 18px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
  .legal-toc-m ol { margin: 0; padding: 0; list-style: none; }
  .legal-toc-m li + li { border-top: 1px solid var(--line); }
  .legal-toc-m button, .legal-bar ol button { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 12px 0; text-align: left; font-size: 15px; font-weight: 550; color: var(--ink); }
  .legal-toc-m button span, .legal-bar ol button span { flex: none; width: 20px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--muted); }
  .legal-toc-m button:active, .legal-bar ol button:active { color: var(--muted); }
  /* Bar daftar isi yang menempel di bawah header setelah kotak daftar isi terlewati. */
  .legal-bar { display: block; position: fixed; z-index: 39; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 61px); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px));
    background: linear-gradient(var(--bg) 0 calc(100% - 22px), transparent); pointer-events: none; opacity: 0; translate: 0 -10px; visibility: hidden; transition: opacity .2s, translate .3s var(--ease-out), visibility 0s .3s; }
  .legal-bar.on { opacity: 1; translate: none; visibility: visible; transition: opacity .2s, translate .3s var(--ease-out); }
  .legal-bar > * { pointer-events: auto; }
  .lb-head { width: 100%; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; text-align: left; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
  .lb-head small { flex: none; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .lb-cur { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14.5px; font-weight: 600; color: var(--ink); }
  .lb-cur span { margin-right: 6px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--muted); }
  .lb-head .ic { flex: none; transition: rotate .25s var(--ease-out); }
  .legal-bar.open .lb-head .ic { rotate: 180deg; }
  .legal-bar ol { display: none; list-style: none; margin: 6px 0 0; padding: 2px 16px; max-height: calc(100vh - 200px); overflow: auto; overscroll-behavior: contain; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
  .legal-bar.open ol { display: block; animation: rise .25s var(--ease-out) both; }
  .legal-bar li + li { border-top: 1px solid var(--line); }
  .legal-bar ol button.now span { color: var(--ink); }
  .legal-bar ol button.now::after { content: ""; flex: none; align-self: center; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--accent); }
  .legal-doc section { scroll-margin-top: 126px; }
  .login-card { padding-block: 32px 40px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .btn-google { align-self: stretch; }
}
@media (max-width: 420px) {
  .quick-form .btn span { display: none; }
  .quick-form .btn { width: 50px; padding: 0; height: 50px; }
  .hero-pill { min-width: 0; flex: 1; padding: 10px 12px; }
  .hero-pill b { font-size: 14.5px; }
  .hero-pill.net { display: none; }
  .amount-field input { font-size: 34px; }
}

/* ---------- panduan pengguna baru ---------- */
.ob-wrap { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; }
.ob-backdrop { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s ease; }
.ob { position: relative; width: min(500px, 100%); max-height: min(92vh, 820px); display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-pop); opacity: 0; transform: translateY(26px) scale(.96);
  transition: transform .5s var(--ease-spring), opacity .3s ease; }
.ob-wrap.open .ob-backdrop { opacity: 1; }
.ob-wrap.open .ob { opacity: 1; transform: none; }
.ob-art { position: relative; flex: none; height: 190px; display: grid; place-items: center; overflow: hidden; isolation: isolate; background: var(--brand); color: var(--brand-ink); }
.ob-art::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(circle, color-mix(in srgb, var(--brand-ink) 12%, transparent) 1.2px, transparent 1.7px); background-size: 22px 22px; animation: drift 30s linear infinite; }
.ob-art::after { content: ""; position: absolute; z-index: -1; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 66%); animation: glow 6s ease-in-out infinite; }
.ob-art > * { animation: rise .55s var(--ease-out) both; }
.ob-hello { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.ob-logo .mark { width: 92px; height: 92px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .35)); animation: obPop .8s .1s var(--ease-spring) both; }
@keyframes obPop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.ob-float { position: absolute; font-size: 26px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  left: calc(50% + cos(var(--k) * 60deg) * 150px - 13px); top: calc(50% + sin(var(--k) * 60deg) * 66px - 13px);
  animation: obIn .6s calc(.35s + var(--k) * 80ms) var(--ease-spring) both, bob 6s calc(var(--k) * .7s) ease-in-out infinite; }
@keyframes obIn { from { opacity: 0; transform: scale(.3); } }
.ob-big { font-size: 78px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .35)); animation: obPop .7s var(--ease-spring) both; }
.ob-demo { width: min(320px, 82%); display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); }
.ob-demo .qk-chips { min-height: 30px; }
.ob-tiles { display: grid; grid-template-columns: repeat(4, 64px); gap: 12px; }
.ob-tiles span { display: grid; place-items: center; height: 64px; border-radius: 18px; background: color-mix(in srgb, var(--brand-ink) 10%, transparent); font-size: 30px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; animation: obIn .55s calc(var(--k) * 90ms) var(--ease-spring) both; }
.ob-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 8px; }
.ob-body.in > * { animation: rise .5s var(--ease-out) both; }
.ob-body.in > *:nth-child(2) { animation-delay: .05s; }
.ob-body.in > *:nth-child(3) { animation-delay: .1s; }
.ob-body.in > *:nth-child(4) { animation-delay: .15s; }
.ob-body h2 { font-size: 24px; line-height: 1.15; }
.ob-body > p { color: var(--ink-2); font-size: 14.5px; }
.ob-note { padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 13.5px; }
.ob-accs { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ob-acc { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.ob-acc .tx-ic { width: 36px; height: 36px; border-radius: 11px; }
.ob-acc .input { height: 42px; }
.ob-acc .icon-btn { width: 34px; height: 34px; }
.ob-money { position: relative; }
.ob-money span { position: absolute; left: 12px; top: 50%; translate: 0 -50%; font-size: 13px; font-weight: 600; color: var(--muted); }
.ob-money .input { padding-left: 34px; font-variant-numeric: tabular-nums; }
.ob-add { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.ob-add > div { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-add .chip-btn { display: inline-flex; align-items: center; gap: 4px; }
.ob-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ob-list li { display: flex; gap: 12px; align-items: flex-start; }
.ob-list .emo { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); font-size: 20px; }
.ob-list b { display: block; font-size: 15px; }
.ob-list span:not(.emo) { color: var(--ink-2); font-size: 13.5px; }
.ob-body .inst { margin-top: 4px; }
.ob-body .inst-guide { width: 100%; }
.ob-foot { flex: none; display: flex; align-items: center; gap: 8px; padding: 14px 24px 20px; border-top: 1px solid var(--line); }
.ob-skip { color: var(--muted); }
.ob-dots { display: flex; gap: 5px; margin: 0 auto; }
.ob-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line); transition: width .35s var(--ease-out), background-color .3s; }
.ob-dots i.on { width: 22px; background: var(--ink); }

.coach { position: fixed; inset: 0; z-index: 65; }
.coach-hole { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(10, 11, 12, .62), 0 0 0 3px var(--accent); pointer-events: none;
  transition: left .45s var(--ease-out), top .45s var(--ease-out), width .45s var(--ease-out), height .45s var(--ease-out); animation: holeIn .4s var(--ease-out) both; }
@keyframes holeIn { from { box-shadow: 0 0 0 9999px rgba(10, 11, 12, 0), 0 0 0 12px transparent; } }
.coach-tip { position: fixed; width: min(320px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); animation: rise .45s .1s var(--ease-out) both; }
.coach-tip small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.coach-tip b { font-family: var(--f-display); font-size: 18px; }
.coach-tip p { color: var(--ink-2); font-size: 14px; }
.coach-tip > div { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
@media (max-width: 860px) {
  .ob-wrap { place-items: end stretch; padding: 0; }
  .ob { width: 100%; max-height: 94vh; border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .ob-art { height: 160px; }
  .ob-float { left: calc(50% + cos(var(--k) * 60deg) * 120px - 13px); top: calc(50% + sin(var(--k) * 60deg) * 56px - 13px); }
  .ob-acc { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr) auto; }
  .ob-tiles { grid-template-columns: repeat(4, 56px); gap: 10px; }
  .ob-tiles span { height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .ft-track { flex-wrap: wrap; width: auto; }
  .ft-track .ft-dup { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.inst-mini .inst-guide { flex-direction: row; }

/* ======================================================================
   Beranda v2: perangkat realistis, alur cerita, bento, laptop
   ====================================================================== */
/* --- iPhone 18 Pro ---
   Sudut kontinu ala iOS (bukan lingkaran biasa): bodi, bezel, dan layar memakai masker SVG yang konsentris
   (dibuat dengan .claude/skills/iphone-mockup/squircle.py). Bayangan tetap di .iph; bingkai logam di ::after
   supaya ikut dimasker, tombol samping di luar masker. */
.iph { --w: 290px; --sq-body: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000.00 2086.23' preserveAspectRatio='none'%3E%3Cpath d='M272.10 0.00 L727.90 0.00 C806.25 0.00 845.42 0.00 887.59 13.33 C933.64 30.09 969.91 66.36 986.67 112.41 C1000.00 154.58 1000.00 193.75 1000.00 272.10 L1000.00 1814.13 C1000.00 1892.48 1000.00 1931.65 986.67 1973.82 C969.91 2019.87 933.64 2056.14 887.59 2072.90 C845.42 2086.23 806.25 2086.23 727.90 2086.23 L272.10 2086.23 C193.75 2086.23 154.58 2086.23 112.41 2072.90 C66.36 2056.14 30.09 2019.87 13.33 1973.82 C0.00 1931.65 0.00 1892.48 0.00 1814.13 L0.00 272.10 C0.00 193.75 0.00 154.58 13.33 112.41 C30.09 66.36 66.36 30.09 112.41 13.33 C154.58 0.00 193.75 0.00 272.10 0.00Z'/%3E%3C/svg%3E");
  --sq-bezel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 978.00 2064.23' preserveAspectRatio='none'%3E%3Cpath d='M255.29 0.00 L722.71 0.00 C796.22 0.00 832.98 0.00 872.54 12.51 C915.74 28.23 949.77 62.26 965.49 105.46 C978.00 145.02 978.00 181.78 978.00 255.29 L978.00 1808.94 C978.00 1882.45 978.00 1919.21 965.49 1958.77 C949.77 2001.97 915.74 2036.00 872.54 2051.72 C832.98 2064.23 796.22 2064.23 722.71 2064.23 L255.29 2064.23 C181.78 2064.23 145.02 2064.23 105.46 2051.72 C62.26 2036.00 28.23 2001.97 12.51 1958.77 C0.00 1919.21 0.00 1882.45 0.00 1808.94 L0.00 255.29 C0.00 181.78 0.00 145.02 12.51 105.46 C28.23 62.26 62.26 28.23 105.46 12.51 C145.02 0.00 181.78 0.00 255.29 0.00Z'/%3E%3C/svg%3E");
  --sq-scr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 934.00 2020.23' preserveAspectRatio='none'%3E%3Cpath d='M221.66 0.00 L712.34 0.00 C776.17 0.00 808.08 0.00 842.43 10.86 C879.94 24.51 909.49 54.06 923.14 91.57 C934.00 125.92 934.00 157.83 934.00 221.66 L934.00 1798.57 C934.00 1862.40 934.00 1894.31 923.14 1928.66 C909.49 1966.17 879.94 1995.72 842.43 2009.37 C808.08 2020.23 776.17 2020.23 712.34 2020.23 L221.66 2020.23 C157.83 2020.23 125.92 2020.23 91.57 2009.37 C54.06 1995.72 24.51 1966.17 10.86 1928.66 C0.00 1894.31 0.00 1862.40 0.00 1798.57 L0.00 221.66 C0.00 157.83 0.00 125.92 10.86 91.57 C24.51 54.06 54.06 24.51 91.57 10.86 C125.92 0.00 157.83 0.00 221.66 0.00Z'/%3E%3C/svg%3E");
  position: relative; width: var(--w); aspect-ratio: 71.9 / 150; flex: none; isolation: isolate; border-radius: calc(var(--w) * .2); padding: calc(var(--w) * .033);
  box-shadow: 0 60px 90px -40px rgba(0, 0, 0, .55), 0 24px 40px -24px rgba(0, 0, 0, .45); }
.iph::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(155deg, #a4a7ac 0%, #55585d 10%, #2f3134 30%, #2b2d30 70%, #505357 90%, #9ea1a6 100%);
  -webkit-mask: var(--sq-body) 0 0 / 100% 100% no-repeat; mask: var(--sq-body) 0 0 / 100% 100% no-repeat; }
.iph::before { content: ""; position: absolute; inset: calc(var(--w) * .011); background: #040405;
  -webkit-mask: var(--sq-bezel) 0 0 / 100% 100% no-repeat; mask: var(--sq-bezel) 0 0 / 100% 100% no-repeat; }
.iph-b { position: absolute; width: calc(var(--w) * .012); border-radius: 2px; background: linear-gradient(90deg, #4b4e52, #a9acb0 60%, #6a6d71); }
.iph-b.act { left: calc(var(--w) * -.009); top: 17%; height: 5%; }
.iph-b.v1 { left: calc(var(--w) * -.009); top: 25%; height: 9%; }
.iph-b.v2 { left: calc(var(--w) * -.009); top: 36%; height: 9%; }
.iph-b.pw { right: calc(var(--w) * -.009); top: 28%; height: 14%; }
.iph-scr { position: relative; z-index: 1; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); isolation: isolate;
  -webkit-mask: var(--sq-scr) 0 0 / 100% 100% no-repeat; mask: var(--sq-scr) 0 0 / 100% 100% no-repeat; }
.iph-scr::after { content: ""; position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .02) 32%, transparent 33%); }
/* Dynamic Island versi 18 Pro yang lebih kecil, hitam polos. */
.isl { position: absolute; z-index: 7; top: calc(var(--w) * .025); left: 50%; translate: -50% 0; width: calc(var(--w) * .19); height: calc(var(--w) * .076); border-radius: 99px; background: #000;
  display: flex; align-items: center; overflow: hidden; color: #fff;
  transition: width .55s var(--ease-spring), height .55s var(--ease-spring), border-radius .55s var(--ease-out), top .55s var(--ease-spring); }
.isl-live { display: flex; align-items: center; gap: calc(var(--w) * .03); width: 100%; padding: 0 calc(var(--w) * .045); opacity: 0; transform: scale(.9); transition: opacity .2s, transform .3s var(--ease-out); white-space: nowrap; }
.isl.live { width: calc(var(--w) * .88); height: calc(var(--w) * .2); border-radius: calc(var(--w) * .1); }
.isl.live .isl-live { opacity: 1; transform: none; transition-delay: .18s; }
.il-ic { width: calc(var(--w) * .11); height: calc(var(--w) * .11); border-radius: 50%; display: grid; place-items: center; background: #1c1d20; font-size: calc(var(--w) * .055); flex: none; }
.il-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.il-txt b { font-size: calc(var(--w) * .046); font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.il-txt small { font-size: calc(var(--w) * .036); color: #9a9da3; }
.il-amt { font-size: calc(var(--w) * .05); font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
/* Status bar iOS: jam di tengah "telinga" kiri, ikon di tengah "telinga" kanan, sejajar Dynamic Island.
   Telinga dihitung dari area layar yang terlihat (sudut melengkung memakan sisi luar), jadi keduanya digeser sedikit ke dalam. */
.iph-sb { position: absolute; z-index: 6; top: calc(var(--w) * .025); left: 0; right: 0; height: calc(var(--w) * .076); display: grid; grid-template-columns: 1fr calc(var(--w) * .19) 1fr; align-items: center;
  color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif; pointer-events: none; transition: opacity .25s; }
.sb-l, .sb-r { display: flex; justify-content: center; align-items: center; }
.iph-scr:has(.isl.live) .iph-sb { opacity: 0; }
.sb-l { padding-left: calc(var(--w) * .028); }
.sb-r { padding-right: calc(var(--w) * .028); }
/* Jam SF 17pt pada layar 402pt. Kotak teks dipangkas ke tinggi angka supaya angkanya (bukan kotak hurufnya) tepat di tengah island. */
.iph-sb .sb-time { font-size: calc(var(--w) * .0395); font-weight: 600; letter-spacing: -.01em; line-height: 1; font-feature-settings: "tnum"; }
@supports (text-box: trim-both cap alphabetic) { .iph-sb .sb-time { text-box: trim-both cap alphabetic; } }
@supports not (text-box: trim-both cap alphabetic) { .iph-sb .sb-time { translate: 0 .13em; } }
.sb-ic { display: flex; align-items: center; gap: calc(var(--w) * .014); }
.sb-ic svg { height: calc(var(--w) * .028); width: auto; fill: currentColor; }
.sb-bat { position: relative; width: calc(var(--w) * .062); height: calc(var(--w) * .029); border-radius: calc(var(--w) * .01); background: currentColor; }
.sb-bat::after { content: ""; position: absolute; right: calc(var(--w) * -.008); top: 34%; width: calc(var(--w) * .0055); height: 32%; border-radius: 0 99px 99px 0; background: currentColor; opacity: .4; }
.iph-scr:has(.st-scr.on .ap.dark) .iph-sb, .iph-scr:has(.st-scr.on .ap.lock) .iph-sb { color: #fff; }
.iph-scr:has(.st-scr.on .ap.dark) .iph-home, .iph-scr:has(.st-scr.on .ap.lock) .iph-home { background: #fff; }
.iph-home { position: absolute; z-index: 6; left: 50%; bottom: calc(var(--w) * .019); width: 34%; height: calc(var(--w) * .012); translate: -50% 0; border-radius: 99px; background: var(--ink); opacity: .85; }
.fit { width: calc(var(--fw, 280) * 1px); height: calc(100% / var(--s, 1)); transform: scale(var(--s, 1)); transform-origin: top left; }
.fit[data-fit="280"] { --fw: 280; }
.fit[data-fit="1180"] { --fw: 1180; }

/* --- isi layar aplikasi (dirancang pada lebar 280px) --- */
.ap { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 50px 13px 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 11px; line-height: 1.3; text-align: left; }
.ap small { color: var(--muted); }
.ap-top { display: flex; align-items: center; gap: 8px; }
.ap-top > div { flex: 1; display: flex; flex-direction: column; }
.ap-top small { font-size: 9.5px; }
.ap-top b { font-family: var(--f-display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.ap-bell { position: relative; width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink-2); }
.ap-bell i { position: absolute; top: 1px; right: 0; min-width: 13px; height: 13px; border-radius: 99px; background: var(--neg); color: #fff; font-size: 8px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.ap-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 9.5px; font-weight: 700; flex: none; }
.ap-hero { display: flex; flex-direction: column; gap: 3px; padding: 13px; border-radius: 18px; background: #2A2C30; color: #fff; }
:root[data-theme="dark"] .ap-hero { background: #0E0F10; box-shadow: inset 0 0 0 1px #2E3034; }
.ap-hero small { font-family: var(--f-mono); font-size: 7.5px; letter-spacing: .08em; color: var(--accent); }
.ap-hero > b { font-family: var(--f-display); font-size: 23px; font-weight: 700; letter-spacing: -.03em; }
.ap-chg { display: inline-flex; align-items: center; gap: 3px; font-size: 8.5px; font-weight: 650; color: var(--accent); }
.ap-chg svg { flex: none; }
.lc.ap-lc { height: 50px; margin: 4px 0 2px; cursor: default; pointer-events: none; }
.ap-lc .lc-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--lc) 30%, transparent); }
.ap-rng { display: flex; gap: 3px; }
.ap-rng span { flex: 1; padding: 3px 0; border-radius: 99px; text-align: center; font-family: var(--f-mono); font-size: 7px; color: rgba(255, 255, 255, .5); }
.ap-rng span.on { background: rgba(255, 255, 255, .12); color: #fff; }
.ap-card { display: flex; flex-direction: column; gap: 6px; padding: 11px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); }
.ap-card.glow { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.ap-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ap-row > small { font-family: var(--f-mono); font-size: 7.5px; letter-spacing: .08em; }
.ap-row b { font-size: 11.5px; }
.ap-badge { padding: 2px 7px; border-radius: 99px; background: var(--surface-2); font-size: 8.5px; font-weight: 600; }
.ap-big { font-family: var(--f-display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.ap-big.xl { font-size: 27px; }
.ap-big small { font-family: var(--f-body); font-size: 10px; font-weight: 500; }
.ap-pace { position: relative; height: 6px; border-radius: 99px; background: var(--surface-2); }
.ap-pace i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--accent); }
.ap-pace em { position: absolute; left: var(--x); top: -3px; bottom: -3px; width: 2px; border-radius: 2px; background: var(--ink); }
.ap-note { font-size: 9.5px; color: var(--muted); }
.ap-tx { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ap-tx li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 0; }
.ap-tx li + li { border-top: 1px solid var(--line); }
.ap-ic { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; background: color-mix(in srgb, var(--c) 18%, transparent); }
.ap-tx div { display: flex; flex-direction: column; min-width: 0; }
.ap-tx b { font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-tx small { font-size: 8.5px; }
.ap-tx em { font-style: normal; font-weight: 700; font-size: 10.5px; }
.ap-tx em.in { color: var(--pos); }
.ap-tab { margin: auto -13px 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px 4px 28px; background: var(--glass); border-top: 1px solid var(--line); }
.ap-tab > span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 7.5px; color: var(--muted); }
.ap-tab > span.on { color: var(--ink); }
.ap-tab > span.on .ic { background: var(--accent); color: var(--accent-ink); border-radius: 5px; box-shadow: 0 0 0 3px var(--accent); }
.ap-tab .ap-plus { justify-self: center; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #2A2C30; color: var(--accent); translate: 0 -10px; box-shadow: 0 0 0 4px var(--bg); }
.ap-bud { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; font-size: 10px; }
.ap-bud b { font-size: 10px; }
.ap-bud i { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--pos) var(--w), var(--surface-2) var(--w)); }
.ap-bud i.warn { background: linear-gradient(90deg, var(--warn) var(--w), var(--surface-2) var(--w)); }
.ap-quick { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--ink); font-size: 12px; }
.ap-quick .caret { width: 1.5px; height: 15px; margin: 0; background: var(--ink); animation: blink 1s steps(1) infinite; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 5px; min-height: 44px; align-content: flex-start; }
.ap-chips span { padding: 4px 9px; border-radius: 99px; background: var(--surface-2); font-size: 9.5px; font-weight: 600; }
.ap-chips .out { background: var(--neg-soft); color: var(--neg); }
.ap-chips .strong { background: var(--ink); color: var(--bg); }
.ap-receipt { position: relative; margin: 6px 6px 0; padding: 14px 14px 18px; background: #fbfaf6; color: #222; font-family: var(--f-mono); font-size: 9.5px; line-height: 1.6; border-radius: 4px; rotate: -2deg; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); overflow: hidden; }
.ap-receipt > b { display: block; text-align: center; font-size: 13px; }
.ap-receipt > small { display: block; text-align: center; color: #666; font-size: 8px; }
.ap-receipt hr { border: 0; border-top: 1px dashed #aaa; margin: 6px 0; }
.ap-receipt p { display: flex; justify-content: space-between; margin: 0; }
.ap-receipt .tot { font-weight: 700; font-size: 11px; }
.ap-scan { position: absolute; left: 0; right: 0; top: 0; height: 26px; background: linear-gradient(transparent, color-mix(in srgb, #8CFF4F 55%, transparent), transparent); border-bottom: 2px solid #8CFF4F; }
.ap.dark { background: #0d0e10; color: #f2f3f0; }
.ap.dark .ap-top b { color: #fff; }
.ap-filled { display: flex; flex-direction: column; gap: 3px; margin: 4px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--pos-soft); color: var(--ink); }
.ap.dark .ap-filled { background: #14301F; color: #f2f3f0; }
.ap-filled span { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 700; color: var(--pos); }
.ap-filled b { font-size: 11px; }
.ap-split { gap: 0; }
.ap-split > div { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; }
.ap-split > div + div { border-top: 1px solid var(--line); }
.ap-split span:nth-child(2) { display: flex; flex-direction: column; }
.ap-split em { font-style: normal; font-weight: 700; font-size: 10.5px; }
.ap-pav { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #2A2C30; background: color-mix(in srgb, var(--c) 55%, #fff); flex: none; }
.ap.lock { padding-top: 92px; background: radial-gradient(120% 70% at 30% 10%, #2f5b4c 0%, #12241f 45%, #07090a 100%); color: #fff; gap: 12px; }
.ap-lock-time { display: flex; flex-direction: column; align-items: center; gap: 0; margin-bottom: 18px; }
.ap-lock-time small { color: rgba(255, 255, 255, .8); font-size: 11px; font-weight: 600; }
.ap-lock-time b { font-family: -apple-system, "SF Pro Display", var(--f-display); font-size: 62px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.ap-notif { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; align-items: start; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.ap-notif small { color: rgba(255, 255, 255, .8); font-size: 9.5px; }
.ap-notif b { display: block; font-size: 10.5px; }
.ap-notif em { font-style: normal; font-size: 8.5px; color: rgba(255, 255, 255, .6); }
.ap-nic .mark { width: 30px; height: 30px; }

/* --- MacBook Pro 14 --- */
.mbp { position: relative; width: min(760px, 100%); perspective: 1800px; }
/* Tutup: bingkai aluminium tipis, bezel hitam, strip engsel gelap di bawah layar (proporsi MacBook Pro 14). */
.mbp-lid { position: relative; width: 82%; margin: 0 auto; aspect-ratio: 1.46; padding: 1.5% 1.5% 4%; border-radius: 2.4% 2.4% 0 0 / 3.5% 3.5% 0 0; background: #060606;
  box-shadow: inset 0 0 0 1px #262628, 0 0 0 1.5px #c4c6cb, 0 0 0 2.5px #8d8f94; transform-origin: 50% 100%; }
.mbp-lid::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.6%; background: linear-gradient(#202022, #141415); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.mbp-scr { position: relative; height: 100%; border-radius: 1.2% 1.2% 0 0 / 1.9% 1.9% 0 0; overflow: hidden; background: var(--bg); }
.mbp-scr::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .07) 0 35%, transparent 35.2%); }
.mbp-notch { position: absolute; z-index: 3; top: 0; left: 50%; translate: -50% 0; width: 8%; height: 3.6%; border-radius: 0 0 7px 7px; background: #060606; }
.mbp-notch::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a4566, #07080c 70%); }
/* Bodi: lebih lebar dari tutup, lekukan ibu jari di tengah, dua kaki karet di bawah. */
.mbp-base { position: relative; z-index: 2; width: 100%; height: 0; padding-bottom: 3%; border-radius: 0 0 3% 3% / 0 0 100% 100%;
  background: linear-gradient(180deg, #f1f1f3 0%, #d9dadd 14%, #c6c7cb 45%, #a9abaf 80%, #8c8e92 100%); box-shadow: 0 40px 50px -26px rgba(0, 0, 0, .5), inset 0 1px 0 #fff, inset 1px 0 0 rgba(255, 255, 255, .5), inset -1px 0 0 rgba(255, 255, 255, .5); }
.mbp-base::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18%; background: linear-gradient(90deg, #b9bbbf, #e4e5e8 8%, #e4e5e8 92%, #b9bbbf); }
.mbp-base::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -3px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, #2c2d30 0 6%, transparent 6% 94%, #2c2d30 94%); }
.mbp-base i { position: absolute; z-index: 1; left: 50%; top: 0; width: 17%; height: 42%; translate: -50% 0; border-radius: 0 0 12px 12px / 0 0 8px 8px; background: linear-gradient(#c9cacd, #eeeff1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .28), inset 0 -1px 0 rgba(255, 255, 255, .8); }
.devices .mbp-lid { transform: rotateX(78deg); filter: brightness(.6); transition: transform 1.4s var(--ease-out), filter 1.4s var(--ease-out); }
.devices.open .mbp-lid { transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .devices .mbp-lid { transform: none; filter: none; } }

/* --- aplikasi versi laptop (dirancang pada lebar 1180px) --- */
.dk { height: 100%; display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 14px; text-align: left; }
.dk-side { display: flex; flex-direction: column; gap: 4px; padding: 26px 16px; border-right: 1px solid var(--line); }
.dk-brand { display: flex; align-items: center; gap: 10px; margin: 0 8px 22px; font-family: var(--f-display); font-size: 20px; }
.dk-brand .mark { width: 30px; height: 30px; }
.dk-side > span { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 12px; color: var(--muted); font-weight: 550; }
.dk-side > span.on { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.dk-side > span.on .ic { background: var(--accent); color: var(--accent-ink); border-radius: 6px; box-shadow: 0 0 0 4px var(--accent); }
.dk-side > small { margin: 16px 12px 4px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.dk-side > em { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-style: normal; font-weight: 650; }
.dk-main { padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.dk-top { display: flex; align-items: flex-end; justify-content: space-between; }
.dk-top small { color: var(--muted); font-size: 13px; }
.dk-top b { display: block; font-family: var(--f-display); font-size: 32px; letter-spacing: -.02em; }
.dk-month { padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); }
.dk-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.dk-hero { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 22px; background: #2A2C30; color: #fff; }
:root[data-theme="dark"] .dk-hero { background: #0E0F10; box-shadow: inset 0 0 0 1px #2E3034; }
.dk-hero small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--accent); }
.dk-hero > b { font-family: var(--f-display); font-size: 46px; letter-spacing: -.03em; }
.dk-hero > div { display: flex; gap: 10px; margin-top: 10px; }
.dk-hero > div span { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); font-size: 12px; color: #c8cac6; }
.dk-hero > div b { font-size: 16px; color: #fff; }
.dk-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.dk-card > small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.dk-big { font-family: var(--f-display); font-size: 38px; letter-spacing: -.02em; }
.dk-big em { font-size: 15px; font-style: normal; color: var(--muted); font-family: var(--f-body); }
.dk-card .ap-pace { height: 9px; }
.dk-card .ap-row b { font-size: 16px; }
.dk-card .ap-row small { font-size: 12px; color: var(--muted); }
.dk-bars { display: flex; align-items: flex-end; gap: 18px; height: 170px; padding-top: 8px; }
.dk-bars span { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 6px; }
.dk-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: color-mix(in srgb, var(--pos) 45%, var(--surface)); transform-origin: bottom; }
.dk-bars i + i { background: color-mix(in srgb, var(--neg) 40%, var(--surface)); }
.dk-bars span:last-child i { background: var(--pos); } .dk-bars span:last-child i + i { background: var(--neg); }
.devices.open .dk-bars i { animation: growY 1s var(--ease-out) both; animation-delay: calc(1s + var(--d)); }
.dk .ap-tx li { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; padding: 9px 0; }
.dk .ap-ic { width: 38px; height: 38px; border-radius: 12px; font-size: 18px; }
.dk .ap-tx b { font-size: 14px; } .dk .ap-tx small { font-size: 12px; color: var(--muted); } .dk .ap-tx em { font-size: 14px; }

/* --- beranda: hero --- */
.lp-progress { position: fixed; z-index: 45; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; pointer-events: none; }
.lp-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.hero-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hero-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: tagPulse 2s ease-out infinite; }
@keyframes tagPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.lp2 .hp { position: absolute; left: 50%; top: 50%; width: auto; aspect-ratio: auto; padding: 0; border-radius: 0; background: none; box-shadow: none;
  translate: -50% -50%; transform: perspective(1400px) rotateX(calc(var(--rx, 0) * -10deg)) rotateY(calc(var(--ry, 0) * 14deg)); transition: transform .6s var(--ease-out); animation: phoneIn 1.1s .15s var(--ease-spring) both; }
.lp2 .lp-panel .art-stage { min-height: 660px; }
.lp2 .lp-panel { min-height: 660px; }
/* Kartu melayang di tepi supaya layar iPhone tetap terlihat. */
.lp2 .lp-panel .fx-budget { top: 16%; left: calc(50% + 128px); width: 196px; }
.lp2 .lp-panel .fx-quick { bottom: 24%; right: calc(50% + 134px); width: 214px; }
.lp2 .lp-panel .fx-safe { bottom: 7%; left: calc(50% + 96px); }
.lp2 .lp-panel .fx-card { padding: 12px 14px; }
.lp2 .lp-panel .fx-budget small { font-size: 11px; }

/* --- pita masalah --- */
.pain-band { overflow: hidden; background: var(--accent); color: var(--accent-ink); rotate: -1.6deg; margin: 10px -2% 40px; padding: 14px 0; }
.pain-track { display: flex; width: max-content; gap: 0; animation: ticker 38s linear infinite; }
.pain-track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--f-display); font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.pain-track span::after { content: "✦"; font-size: .7em; opacity: .55; }
.pain-dup { display: inline-flex; }
@media (prefers-reduced-motion: reduce) { .pain-track { animation: none; } }

/* --- alur cerita --- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.story-phone { position: sticky; top: 84px; height: calc(100vh - 110px); max-height: 760px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.story-dev { position: relative; }
.story-dev::before { content: ""; position: absolute; z-index: -1; inset: 10% -30%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 65%); filter: blur(10px); }
.story-phone .iph { --w: min(300px, 26vw); }
.story-dots { display: flex; gap: 6px; }
.story-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line); transition: width .35s var(--ease-out), background-color .3s; }
.story-dots i.on { width: 24px; background: var(--ink); }
.st-stack { position: relative; height: 100%; }
.st-scr { position: absolute; inset: 0; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .45s ease, transform .55s var(--ease-out); pointer-events: none; }
.st-scr.on { opacity: 1; transform: none; }
.st-scr .ap { padding-top: 54px; }
.story-steps { display: flex; flex-direction: column; }
.st-step { min-height: 78vh; display: flex; align-items: center; }
.st-card { display: flex; flex-direction: column; gap: 12px; max-width: 460px; padding: 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); opacity: .35; transform: scale(.97); transition: opacity .4s, transform .5s var(--ease-out), box-shadow .4s; }
.st-step.on .st-card { opacity: 1; transform: none; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .35); }
.st-time { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.st-time b { padding: 4px 10px; border-radius: 99px; background: var(--ink); color: var(--bg); font-family: var(--f-mono); font-size: 12px; font-weight: 500; }
.st-card h3 { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.st-card p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
/* animasi di dalam layar saat babnya aktif */
.st-scr.on .ap-card.glow { animation: glowIn 1.2s var(--ease-out) both; }
@keyframes glowIn { from { box-shadow: 0 0 0 0 transparent; } }
.st-scr.on .ap-bud i { animation: growX .9s var(--ease-out) both; transform-origin: left; }
.st-scr.on .ap-bud:nth-child(3) i { animation-delay: .1s; } .st-scr.on .ap-bud:nth-child(4) i { animation-delay: .2s; }
.st-scr .ap-chips span { opacity: 0; transform: translateY(6px) scale(.9); }
.st-scr.on .ap-chips span { animation: chipIn .35s var(--ease-spring) both; animation-delay: calc(2.1s + var(--n, 0) * .08s); }
.st-scr.on .ap-chips span:nth-child(2) { --n: 1; } .st-scr.on .ap-chips span:nth-child(3) { --n: 2; } .st-scr.on .ap-chips span:nth-child(4) { --n: 3; } .st-scr.on .ap-chips span:nth-child(5) { --n: 4; }
@keyframes chipIn { to { opacity: 1; transform: none; } }
.st-scr .ap-new { opacity: 0; }
.st-scr.on .ap-new { animation: newRow .6s 2.8s var(--ease-spring) forwards; }
@keyframes newRow { from { opacity: 0; transform: translateY(-10px); background: var(--accent-soft); } 60% { background: var(--accent-soft); } to { opacity: 1; transform: none; background: transparent; } }
.st-scr.on .ap-scan { animation: scan 1.6s ease-in-out 3 both; }
@keyframes scan { from { top: -26px; } to { top: 100%; } }
.st-scr .ap-filled { opacity: 0; transform: translateY(10px); }
.st-scr.on .ap-filled { animation: chipIn .5s var(--ease-spring) forwards; animation-delay: 1.8s; }
.st-scr.on .ap-split > div { animation: rowIn .45s var(--ease-out) both; animation-delay: calc(.3s + var(--k) * .12s); }
@keyframes rowIn { from { opacity: 0; transform: translateX(16px); } }
.st-scr .ap-notif { opacity: 0; transform: translateY(-16px) scale(.96); }
.st-scr.on .ap-notif { animation: notifIn .55s var(--ease-spring) forwards; animation-delay: 1.4s; }
.st-scr.on .ap-notif.two { animation-delay: .4s; }
@keyframes notifIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .st-scr .ap-chips span, .st-scr .ap-new, .st-scr .ap-filled, .st-scr .ap-notif { opacity: 1; transform: none; animation: none !important; } }

/* --- bento fitur --- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); min-width: 0; transition: transform .35s var(--ease-out), box-shadow .35s; }
.bento-card.w2 { grid-column: span 2; }
@media (hover: hover) { .bento-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(0, 0, 0, .4); } }
.bento-card h3 { margin-top: 8px; font-size: 18px; font-weight: 650; }
.bento-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.bento-art { height: 170px; border-radius: 18px; background: var(--bg); display: grid; place-items: center; overflow: hidden; padding: 16px; }
.ba-debt { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.ba-debt > div { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; font-size: 13px; }
.ba-debt em { font-style: normal; font-weight: 700; font-size: 13px; } .ba-debt em.pos { color: var(--pos); } .ba-debt em.neg { color: var(--neg); }
.ba-debt i { grid-column: 2 / -1; height: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--c2, var(--pos)) var(--w), var(--surface-2) var(--w)); }
.ba-debt i.neg { --c2: var(--neg); }
.bento-card.seen .ba-debt > div { animation: rowIn .5s var(--ease-out) both; animation-delay: calc(.2s + var(--k) * .12s); }
.ba-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; width: 100%; max-width: 260px; }
.ba-cal i { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 10.5px; color: var(--muted); background: var(--surface); }
.ba-cal i.ok { background: var(--pos-soft); color: var(--ink); } .ba-cal i.due { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--ink); } .ba-cal i.late { background: var(--neg-soft); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--neg); }
.bento-card.seen .ba-cal i.due, .bento-card.seen .ba-cal i.late { animation: throb 1.6s ease-in-out 2; }
@keyframes throb { 50% { transform: scale(1.18); } }
.ba-bars { display: flex; align-items: flex-end; gap: 10px; width: 100%; height: 100%; }
.ba-bars i { flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: color-mix(in srgb, var(--ink) 16%, transparent); transform-origin: bottom; }
.ba-bars i:nth-child(6) { background: var(--accent); }
.bento-card.seen .ba-bars i { animation: growY .9s var(--ease-out) both; animation-delay: calc(var(--k) * .08s); }
.ba-scan { position: relative; width: 120px; height: 100%; }
.ba-scan > div { height: 100%; padding: 12px; background: #fbfaf6; border-radius: 4px; rotate: -3deg; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .35); }
.ba-scan i { height: 5px; border-radius: 3px; background: #d8d6cf; } .ba-scan i.s { width: 60%; }
.ba-scan b { margin-top: auto; font-family: var(--f-mono); font-size: 10px; color: #222; }
.ba-scan > span { position: absolute; left: -10px; right: -10px; top: 0; height: 3px; background: #8CFF4F; box-shadow: 0 0 18px 4px color-mix(in srgb, #8CFF4F 60%, transparent); animation: scan 2.2s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .ba-scan > span { animation: none; top: 60%; } }
.ba-net { width: 100%; height: 100%; }
.ba-net .a { fill: color-mix(in srgb, var(--accent) 30%, transparent); }
.ba-net .l { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 0; }
.bento-card.seen .ba-net .l { animation: draw 1.6s var(--ease-out) both; }
@keyframes draw { from { stroke-dashoffset: 400; } }
.ba-lock { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--ink-2); }
.ba-lock span { display: flex; gap: 10px; }
.ba-lock span i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink-2); background: var(--ink); }
.bento-card.seen .ba-lock span i { animation: dotFill .3s ease both; animation-delay: calc(var(--n, 0) * .18s); }
.ba-lock span i:nth-child(2) { --n: 1; } .ba-lock span i:nth-child(3) { --n: 2; } .ba-lock span i:nth-child(4) { --n: 3; } .ba-lock span i:nth-child(5) { --n: 4; } .ba-lock span i:nth-child(6) { --n: 5; }
@keyframes dotFill { from { background: transparent; } }
.ba-shared { display: flex; align-items: center; }
.ba-shared .ap-pav { width: 48px; height: 48px; font-size: 14px; box-shadow: 0 0 0 3px var(--bg); }
.ba-shared .ap-pav + .ap-pav { margin-left: -12px; }
.ba-shared em { margin-left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--surface); font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--pos); }
.ba-shared em .ic { animation: spin 3s linear infinite; }
.ba-zakat { display: flex; align-items: center; gap: 14px; }
.ba-zakat > span { font-size: 40px; }
.ba-zakat .env { font-size: 30px; rotate: 10deg; }
.ba-zakat div { display: flex; flex-direction: column; padding: 12px 16px; border-radius: 16px; background: var(--accent-soft); }
.ba-zakat small { font-size: 12px; color: var(--ink-2); } .ba-zakat b { font-family: var(--f-display); font-size: 22px; }
.ba-import { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; }
.ba-import .csv { display: flex; flex-direction: column; gap: 6px; }
.ba-import code { font-family: var(--f-mono); font-size: 11px; padding: 6px 8px; border-radius: 8px; background: var(--surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-import ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ba-import li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 10px; background: var(--surface); font-size: 12.5px; }
.ba-import li b { font-size: 12px; }
.bento-card.seen .ba-import li { animation: rowIn .45s var(--ease-out) both; animation-delay: calc(.6s + var(--k) * .15s); }

/* --- laptop + HP --- */
.laptop-sec { overflow: hidden; }
.devices { position: relative; display: flex; justify-content: center; padding: 20px 0 40px; }
.dev-phone { position: absolute; right: max(2%, calc(50% - 470px)); bottom: 6px; z-index: 3; transform: translateY(40px) rotate(4deg); opacity: 0; transition: transform 1s .8s var(--ease-spring), opacity .6s .8s; }
.dev-phone .iph { --w: min(170px, 26vw); }
.devices.open .dev-phone { transform: rotate(4deg); opacity: 1; }
.sync-chip { position: absolute; z-index: 4; left: max(2%, calc(50% - 440px)); bottom: 70px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); font-weight: 650; font-size: 14px; color: var(--pos); opacity: 0; transform: translateY(16px); transition: opacity .5s 1.4s, transform .6s 1.4s var(--ease-spring); }
.sync-chip .ic { animation: spin 3s linear infinite; }
.devices.open .sync-chip { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .dev-phone, .sync-chip { opacity: 1; transform: rotate(4deg); } .sync-chip { transform: none; } }

/* --- privasi --- */
.priv-band { padding-block: 88px; background: #16181b; color: #f2f3f0; }
.priv-band .lp-head .eyebrow { color: var(--accent); }
.priv-band .lp-head h2 { color: #fff; }
.priv-band .lp-head p { color: #b9bcb7; }
.priv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.priv-grid article { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.priv-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, #8CFF4F 18%, transparent); color: #8CFF4F; }
.priv-grid h3 { font-size: 17px; color: #fff; }
.priv-grid p { font-size: 14px; color: #b9bcb7; line-height: 1.5; }
.steps2 { counter-reset: none; }

/* --- responsif beranda v2 --- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .priv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .lp2 .lp-panel, .lp2 .lp-panel .art-stage { min-height: 560px; }
  .lp2 .hp .iph { --w: min(250px, 64vw); }
  .lp2 .lp-panel .fx { display: none; }
  .story-phone { background: linear-gradient(var(--bg) 88%, transparent); margin-inline: -24px; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-phone { top: 70px; height: auto; z-index: 2; padding: 8px 0 12px; }
  .story-phone .iph { --w: min(200px, 52vw); }
  .story-steps { margin-top: -10px; }
  .st-step { min-height: 92vh; align-items: flex-end; padding-bottom: 6vh; }
  .st-card { padding: 20px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .st-card h3 { font-size: 22px; }
  .st-card p { font-size: 15px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-card.w2 { grid-column: auto; }
  .priv-grid { grid-template-columns: minmax(0, 1fr); }
  .priv-band { padding-block: 60px; }
  .dev-phone { right: 0; bottom: 0; }
  .dev-phone .iph { --w: 30vw; }
  .sync-chip { left: 0; bottom: -6px; font-size: 13px; padding: 8px 12px; }
  .devices { padding-bottom: 60px; }
}

/* --- perangkat realistis di demo "Pasang di HP" --- */
.dd-lid { position: relative; width: 90%; padding: 7px 7px 16px; background: #060606; border-radius: 14px 14px 0 0; box-shadow: inset 0 0 0 1px #262628, 0 0 0 1.5px #c4c6cb, 0 0 0 2.5px #8d8f94, 0 30px 60px -24px rgba(0, 0, 0, .45); }
.dd-lid::before { content: ""; position: absolute; z-index: 9; top: 7px; left: 50%; width: 32px; height: 9px; margin-left: -16px; border-radius: 0 0 5px 5px; background: #060606; }
.dd-lid::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(#202022, #141415); }
.dd-base { position: relative; width: 100%; height: 12px; border-radius: 0 0 14px 14px / 0 0 12px 12px; background: linear-gradient(180deg, #f1f1f3 0%, #d9dadd 14%, #c6c7cb 45%, #a9abaf 80%, #8c8e92 100%); box-shadow: 0 24px 36px -20px rgba(0, 0, 0, .5), inset 0 1px 0 #fff; }
.dd-base::after { width: 17%; height: 5px; border-radius: 0 0 8px 8px / 0 0 5px 5px; background: linear-gradient(#c9cacd, #eeeff1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .28); }
.dd-base::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: -2px; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, #2c2d30 0 6%, transparent 6% 94%, #2c2d30 94%); }

/* Thumb pil yang meluncur ke pilihan aktif. Tanpa JS, tombol .on tetap punya latarnya sendiri. */
.seg-pills, .lc-ranges, .hero-tabs { position: relative; isolation: isolate; }
.pill-thumb { position: absolute; z-index: -1; left: 0; top: 0; border-radius: 999px; pointer-events: none; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  transition: transform .42s var(--ease-out), width .42s var(--ease-out), height .3s var(--ease-out); }
.pill-thumb.instant { transition: none; }
.has-thumb > button.on { background: transparent; box-shadow: none; }
.hero-tabs > .pill-thumb { background: rgba(255, 255, 255, .14); box-shadow: none; }
.lc-ranges > .pill-thumb { background: rgba(255, 255, 255, .12); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .pill-thumb { transition: none; } }

/* ---------- Kurangi animasi (Pengaturan) ----------
   Semua animasi & transisi langsung ke hasil akhir, efek berulang berhenti, dan blur kaca diganti warna solid
   supaya GPU tidak terus bekerja (hemat baterai). */
:root[data-calm] *, :root[data-calm] *::before, :root[data-calm] *::after {
  animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
  transition-duration: 1ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
}
:root[data-calm] .tabbar, :root[data-calm] .mini-bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
:root[data-calm]::view-transition-group(*), :root[data-calm]::view-transition-old(*), :root[data-calm]::view-transition-new(*) { animation: none !important; }

/* ---------- perangkat demo "Pasang di HP" ---------- */
.dd-dev { --w: 240px; }
.dd-dev .dd-scr { background: #fff; color: #2A2C30; }
.dd-ios .iph-sb, .adr-sb { color: #111; }
.dd-ios .iph-home { background: #111; opacity: .8; }
.dd-ios .dd-web, .dd-ios .dd-home { padding-top: calc(var(--w) * .13); }
.dd-ios .dd-addpg { top: calc(var(--w) * .12); }
.dd-ios .dd-ibar { padding-bottom: calc(var(--w) * .075); }
.dd[data-ph="home"] :is(.iph-sb, .adr-sb) { color: #fff; }
.dd[data-ph="home"] :is(.iph-home, .adr-nav) { background: #fff; }
.iph-sb, .adr-sb, .iph-home, .adr-nav { transition: color .4s, background-color .4s; }
/* Android bergaya Pixel: rangka aluminium, bezel tipis rata, kamera punch-hole di tengah. */
.adr { position: relative; width: var(--w); aspect-ratio: 72 / 152; flex: none; border-radius: calc(var(--w) * .135); padding: calc(var(--w) * .03);
  background: linear-gradient(145deg, #62666d 0%, #1d1f23 20%, #2c2f34 50%, #191b1e 80%, #50545b 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 0 0 2.5px #0b0c0e, 0 40px 70px -30px rgba(0, 0, 0, .5), 0 12px 24px -12px rgba(0, 0, 0, .3); }
.adr::before { content: ""; position: absolute; inset: calc(var(--w) * .012); border-radius: calc(var(--w) * .124); background: #050506; }
.adr-b { position: absolute; right: calc(var(--w) * -.01); width: calc(var(--w) * .012); border-radius: 2px; background: linear-gradient(90deg, #6a6d71, #b5b8bc 60%, #55585c); }
.adr-b.pw { top: 21%; height: 7%; }
.adr-b.vol { top: 32%; height: 14%; }
.adr-scr { position: relative; z-index: 1; height: 100%; border-radius: calc(var(--w) * .105); overflow: hidden; isolation: isolate; }
.adr-scr::after { content: ""; position: absolute; inset: 0; z-index: 9; pointer-events: none; border-radius: inherit; background: linear-gradient(125deg, rgba(255, 255, 255, .1), transparent 32%); }
.adr-cam { position: absolute; z-index: 9; top: calc(var(--w) * .034); left: 50%; width: calc(var(--w) * .048); height: calc(var(--w) * .048); translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a4766, #06070a 62%); box-shadow: 0 0 0 1.5px #000; }
.adr-sb { position: absolute; z-index: 8; top: 0; left: 0; right: 0; height: calc(var(--w) * .115); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--w) * .075);
  font-family: Roboto, "Google Sans", Inter, system-ui, sans-serif; font-size: calc(var(--w) * .047); font-weight: 500; pointer-events: none; }
.adr-sb span { display: flex; align-items: center; gap: calc(var(--w) * .018); }
.adr-sb svg { height: calc(var(--w) * .04); width: auto; fill: currentColor; }
.adr .dd-web, .adr .dd-home { padding-top: calc(var(--w) * .115); }
.adr-nav { position: absolute; z-index: 8; left: 50%; bottom: calc(var(--w) * .022); width: 30%; height: calc(var(--w) * .012); translate: -50% 0; border-radius: 99px; background: #111; opacity: .7; }

/* Tombol bahasa halaman publik (ID/EN). */
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-size: 13px; font-weight: 700; letter-spacing: .04em; transition: border-color .2s, color .2s, transform .15s var(--ease-out); }
@media (hover: hover) { .lang-btn:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); color: var(--ink); } }
.lang-btn:active { transform: scale(.95); }
.auth-top .lang-btn { margin-left: auto; background: transparent; border-color: color-mix(in srgb, var(--brand-ink) 25%, transparent); color: var(--brand-ink); }
.legal-lang { margin: 6px 0 2px; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 13.5px; color: var(--ink-2); }

/* ---------- Pengaturan ---------- */
.st { --st-amber: #E9A115; --st-blue: #4A7BE0; --st-violet: #8A6CE0; --st-green: #2FA866; --st-red: #E2574C; --st-slate: #69707C; --st-teal: #1E9AA8; --st-orange: #EA7A2E;
  display: grid; grid-template-columns: 210px minmax(0, 720px); gap: 36px; align-items: start; }
.st-side { position: sticky; top: 24px; display: grid; gap: 18px; }
.st-nav { display: grid; gap: 2px; }
.st-nav button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 600; text-align: left; transition: background-color .2s, color .2s; }
.st-nav button .ic { color: var(--muted); transition: color .2s; }
@media (hover: hover) { .st-nav button:hover { background: var(--surface-2); } }
.st-nav button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.st-nav button.on .ic { color: var(--ink); }
.st-ver { display: grid; gap: 4px; justify-items: start; padding: 14px; border-radius: 16px; border: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.st-ver b { font-family: var(--f-mono); font-weight: 500; color: var(--ink); }
.st-ver .btn { margin-top: 6px; }
.st-main { display: grid; gap: 28px; min-width: 0; }
.st-group { display: grid; gap: 10px; min-width: 0; scroll-margin-top: 20px; }
.st-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 4px; font: 500 11.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st-label .link-btn { text-transform: none; letter-spacing: 0; font-family: var(--f-body); }
.st-label-danger { margin-top: 10px; color: var(--neg); }
.st-list { background: var(--surface); border-radius: 18px; overflow: hidden; }
.st-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 10px 16px; position: relative; text-align: left; color: inherit; text-decoration: none; }
.st-list .st-row::before { content: ''; position: absolute; top: 0; left: 62px; right: 0; border-top: 1px solid var(--line); }
.st-list > .st-row:first-child::before { display: none; }
button.st-row, a.st-row { transition: background-color .15s; }
@media (hover: hover) { button.st-row:hover, a.st-row:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); } }
button.st-row:active, a.st-row:active { background: var(--surface-2); }
.st-tile { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; background: var(--c, var(--st-slate)); }
.st-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.st-t b { font-weight: 600; font-size: 14.5px; }
.st-t > span { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.st-end { display: flex; align-items: center; gap: 6px; flex: none; color: var(--muted); font-size: 13px; }
.st-chev { display: flex; color: var(--muted); opacity: .7; }
.st-end .set-sel { width: auto; min-width: 150px; }
.st-empty { margin: 0; padding: 16px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.st-hero { display: grid; gap: 16px; padding: 20px; border-radius: 22px; background: var(--surface); }
.st-hero .profile { flex-wrap: nowrap; align-items: center; }
.st-hero .profile .avatar { border-radius: 18px; }
.st-hero .who { display: grid; justify-items: start; gap: 2px; }
.st-hero .who .badge { margin-top: 4px; }
.st-logout { flex: none; }
.st-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.st-stats > div { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--bg); min-width: 0; }
.st-stats b { font: 700 18px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-stats span { font-size: 12px; color: var(--muted); }
.st-plan { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); }
.st-plan .st-t > span { color: var(--ink-2); }
.st-plus { background: var(--accent); color: #1B3A0B; border-color: var(--accent); flex: none; }
.st-tools { display: none; }
.st-tools .tool-tile { background: var(--surface); gap: 8px; }

.st-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.st-theme { display: grid; gap: 8px; justify-items: center; font-size: 13px; font-weight: 600; color: var(--ink); }
.st-mini { display: grid; grid-template-columns: 26% 1fr; width: 100%; max-width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s, transform .3s var(--ease-spring); }
.st-theme[aria-pressed="true"] .st-mini { box-shadow: 0 0 0 2px var(--ink); transform: translateY(-2px); }
.st-mini i { display: block; }
.st-mini .s { display: grid; gap: 6px; align-content: start; padding: 10px 8px; }
.st-mini .s i { height: 5px; border-radius: 3px; }
.st-mini .c { display: grid; gap: 6px; align-content: start; padding: 10px; }
.st-mini .c i { height: 6px; border-radius: 3px; }
.st-mini .c i:first-child { height: 22px; border-radius: 5px; }
.m-light { background: #F4F5F2; } .m-light .s { background: #ECEDEA; } .m-light i { background: #D6D8D3; } .m-light .c i:first-child { background: #2A2C30; }
.m-dark { background: #141517; } .m-dark .s { background: #1D1F22; } .m-dark i { background: #34373C; } .m-dark .c i:first-child { background: #8CFF4F; }
.m-system { background: linear-gradient(105deg, #F4F5F2 50%, #141517 50%); } .m-system .s { background: #ECEDEA; } .m-system i { background: #BFC2BC; }
.m-system .c i:first-child { background: linear-gradient(105deg, #2A2C30 50%, #8CFF4F 50%); }
.st-radio { display: inline-flex; align-items: center; gap: 6px; }
.st-radio::before { content: ''; width: 14px; height: 14px; border-radius: 99px; box-sizing: border-box; border: 1.5px solid var(--line); }
.st-theme[aria-pressed="true"] .st-radio::before { border: 4.5px solid var(--ink); }

.st-cats { display: grid; gap: 14px; padding: 14px; }
.st-cats .seg-pills { justify-self: start; }
.cat-chip.add { border-style: dashed; background: transparent; color: var(--ink-2); padding-left: 12px; }

.st-day { display: grid; place-items: center; align-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); line-height: 1; flex: none; }
.st-day small { font: 500 7.5px var(--f-mono); letter-spacing: .06em; color: var(--muted); }
.st-day b { font: 700 13px var(--f-display); color: var(--ink); }
.st-row .tx-amt { font-size: 14px; }

.st-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.st-act { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); text-align: left; color: inherit; min-width: 0; transition: transform .25s var(--ease-spring), box-shadow .2s; }
@media (hover: hover) { .st-act:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .35); } }
.st-act:active { transform: scale(.98); }
.st-copy { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
@media (hover: hover) { .st-copy:hover { color: var(--ink); } }
.st-danger { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neg) 35%, transparent); }
.st-danger .st-t b { color: var(--neg); }
.st-foot { margin: 6px 0 0; text-align: center; font-size: 12px; line-height: 1.6; color: var(--muted); }
.st-foot b { font-family: var(--f-mono); font-weight: 500; color: var(--ink-2); }

.plus-sheet { display: grid; gap: 12px; }
.plus-sheet p { margin: 0; }
.plus-sheet ul { display: grid; gap: 10px; margin: 4px 0; padding: 0; list-style: none; }
.plus-sheet li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.plus-sheet li .ic { color: var(--pos); margin-top: 2px; }
.plus-note { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.plus-note .ic { margin-top: 2px; flex: none; }

@media (max-width: 1180px) { .st { grid-template-columns: minmax(0, 720px); } .st-side { display: none; } }
/* Layar lebar: daftar bagian tidak perlu lagi; isi dibagi dua kolom supaya layar terisi,
   kartu profil tetap selebar penuh di atas. Tiap baris tetap pendek, sakelar dekat dengan teksnya. */
@media (min-width: 1300px) {
  .st { display: block; }
  .st-side { display: none; }
  .st-main { display: block; columns: 2; column-gap: 24px; }
  .st-main > .st-group { break-inside: avoid; margin-bottom: 28px; }
  .st-main > #st-akun { column-span: all; }
  .st-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; column-gap: 28px; }
  .st-hero .st-plan { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .st-main { gap: 22px; }
  .st-hero { padding: 16px; gap: 14px; border-radius: 20px; }
  .st-hero .profile { align-items: flex-start; }
  .st-logout { padding: 0; width: 36px; justify-content: center; }
  .st-logout span { display: none; }
  .st-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-plan { flex-wrap: wrap; }
  .st-tools { display: grid; }
  .st-acts { grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--surface); border-radius: 18px; overflow: hidden; }
  .st-act { border-radius: 0; position: relative; }
  .st-act + .st-act::before { content: ''; position: absolute; top: 0; left: 58px; right: 0; border-top: 1px solid var(--line); }
  .st-act:hover { transform: none; box-shadow: none; }
  .st-danger .st-t > span { display: none; }
  .st-end .set-sel { min-width: 0; max-width: 140px; }
}

/* ---------- Transaksi: daftar + panel ringkasan ---------- */
.txp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.txp-main, .tx-wide { container-type: inline-size; min-width: 0; }
.txp-side { display: none; }
.tx-col, .tx-extra, .tx-acc-in { display: none; }
/* Daftar lebar: kategori dan dompet jadi kolom sendiri, baris keterangan hanya untuk jam dan catatan. */
@container (min-width: 700px) {
  .tx-wide .tx { grid-template-columns: auto minmax(0, 1fr) minmax(120px, 170px) 120px; gap: 16px; padding: 9px 10px; margin: 0 -10px; width: calc(100% + 20px); }
  .tx-wide .tx-col { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
  .tx-wide .tx-cat { justify-self: start; max-width: 100%; height: 28px; padding: 0 11px 0 8px; border-radius: 99px; background: color-mix(in srgb, var(--c) 12%, transparent); font-weight: 600; }
  .tx-wide .tx-cat .ic { color: var(--c); flex: none; }
  .tx-wide .tx-acc { color: var(--muted); }
  .tx-wide .tx-base { display: none; }
  .tx-wide .tx-acc { display: none; }
  .tx-wide .tx-acc-in { display: block; flex: none; }
  .tx-wide .tx-acc-in:not(:last-child)::after { content: ' ·'; }
  .tx-wide .tx-extra { display: block; overflow: hidden; text-overflow: ellipsis; }
  .tx-wide .tx-amt { text-align: right; }
  .tx-wide .tx-ic { width: 36px; height: 36px; border-radius: 12px; }
  .tx-wide .day-head { padding-top: 16px; }
}
/* Lebih lebar lagi: dompet punya kolomnya sendiri, baris kecil hanya jam dan catatan. */
@container (min-width: 900px) {
  .tx-wide .tx { grid-template-columns: auto minmax(0, 1.6fr) minmax(130px, 1fr) minmax(110px, .8fr) 130px; }
  .tx-wide .tx-acc { display: inline-flex; }
  .tx-wide .tx-acc-in { display: none; }
  .tx-wide .tx-sub:not(:has(.tx-extra)) { display: none; }
}
@media (min-width: 1100px) {
  .txp { grid-template-columns: minmax(0, 1fr) 320px; }
  .txp-side { display: grid; gap: 14px; position: sticky; top: 20px; }
  .txp-main .sum-line { display: none; }
}
/* Layar lebar: daftar transaksi tetap ramping (maks. 820px); sisa lebar dipakai panel ringkasan dua kolom. */
@media (min-width: 1500px) { .txp { grid-template-columns: minmax(0, 820px) minmax(0, 1fr); } }
@media (min-width: 1840px) { .txp-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.txs { display: grid; gap: 12px; padding: 18px; }
.txs .eyebrow { margin: 0; }
.txs-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.txs-head .link-btn { font-size: 12.5px; }
.txs-net { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.txs-net span { color: var(--muted); font-size: 13px; }
.txs-net b { font: 700 26px/1.1 var(--f-display); letter-spacing: -.02em; }
.txs-net b.pos { color: var(--pos); } .txs-net b.neg { color: var(--neg); }
.txs-bar { display: flex; gap: 3px; height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.txs-bar i { display: block; min-width: 4px; border-radius: 99px; transform-origin: left; }
.txs-bar .in { background: var(--pos); } .txs-bar .out { background: var(--neg); }
.txs-io { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.txs-io > div { display: grid; gap: 2px; min-width: 0; }
.txs-io span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.txs-io span i { width: 8px; height: 8px; border-radius: 3px; }
.txs-io i.in { background: var(--pos); } .txs-io i.out { background: var(--neg); }
.txs-io b { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txs-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 2px; height: 72px; }
.txs-days button { position: relative; height: 100%; display: flex; align-items: flex-end; border-radius: 4px; }
.txs-days button i { display: block; width: 100%; height: max(var(--h), 3px); border-radius: 3px; background: color-mix(in srgb, var(--ink) 22%, transparent); transform-origin: bottom; transition: background-color .2s; }
.txs-days button.future i { background: transparent; box-shadow: inset 0 -3px 0 var(--line); }
.txs-days button.today i { background: color-mix(in srgb, var(--ink) 55%, transparent); }
@media (hover: hover) { .txs-days button:hover i { background: var(--ink); } }
.txs-days button.on i { background: var(--accent); box-shadow: 0 0 0 1.5px var(--ink); }
.enter .txs-days button i { animation: growY .6s var(--ease-out) both; }
@keyframes growY { from { transform: scaleY(0); } }
.txs-axis { display: flex; justify-content: space-between; font: 500 11px var(--f-mono); color: var(--muted); }
.txs-list { display: grid; gap: 2px; margin: 0 -8px; }
.txs-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; text-align: left; transition: background-color .2s; }
@media (hover: hover) { .txs-row:hover { background: var(--bg); } }
.txs-row.on { background: var(--accent-soft); }
.txs-row .tx-ic { width: 32px; height: 32px; border-radius: 10px; flex: none; }
.txs-t { flex: 1; min-width: 0; display: grid; gap: 5px; }
.txs-t > span { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.txs-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txs-t .amt { font-weight: 650; white-space: nowrap; }
.txs-t .amt.pos { color: var(--pos); }
.txs-t > i { display: block; height: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--c) var(--w), var(--surface-2) var(--w)); }
.txs-t small { font-size: 12px; color: var(--muted); }

/* ---------- Tata letak laptop (>= 1300px) untuk Ringkasan, Anggaran, Dompet, Mutasi ---------- */
/* Ringkasan: di HP/tablet kedua kolom "larut" ke grid dan urutan aslinya dijaga lewat --o. */
.dash-l, .dash-r { display: contents; }
.dash > * > section { order: var(--o, 0); }
.budget-list { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1300px) {
  .dash { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(340px, 1fr); align-items: start; }
  .dash-l, .dash-r { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
  .dash-r .hb-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dash-r .hb-week { justify-content: space-between; gap: 4px; }
  .dash-r .hb-level { min-width: 0; }
  .dash-r .due-row .btn { flex: none; }

  .budget-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .budget-list .budget-row:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .hm { max-width: none; }
  .bud { align-items: start; }
  /* Tombol "Dompet baru" sudah ada di kepala kartu; petak tambah tidak perlu memakan satu baris sendiri. */
  .wal .acc-card.add { display: none; }
  .acct > .acc-head .acc-actions .btn:last-child:nth-child(even) { grid-column: 1 / -1; }

  .wal { display: block; columns: 2; column-gap: 18px; }
  .wal > .card { break-inside: avoid; margin-bottom: 18px; }
  .wal > .nw-card { column-span: all; }

  .acct { grid-template-columns: 360px minmax(0, 1fr); align-items: start; }
  .acct > .acc-head { grid-column: 1; position: sticky; top: 20px; display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .acct > .acc-head .acc-now { align-items: flex-start; text-align: left; }
  .acct > .acc-head .acc-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .acct > .acc-head .acc-actions .btn { justify-content: center; }
  .acct > .acc-head .acc-actions .btn:first-child { grid-column: 1 / -1; }
  .acct > section:not(.acc-head) { grid-column: 2; }
  .acct:has(> .inst-sec) > .acc-head { grid-row: span 2; }
}

.mut-wide { container-type: inline-size; }
@container (min-width: 700px) {
  .mut-wide .mut-row { grid-template-columns: auto minmax(0, 1fr) minmax(130px, 200px) 150px; gap: 16px; }
  .mut-wide .tx-cat { display: inline-flex; align-items: center; gap: 7px; justify-self: start; max-width: 100%; height: 28px; padding: 0 11px 0 8px; border-radius: 99px; background: color-mix(in srgb, var(--c) 12%, transparent); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
  .mut-wide .tx-cat .ic { color: var(--c); flex: none; }
}

/* ---------- Target ---------- */
.gl-sum { display: grid; gap: 18px; }
.gl-main { display: grid; gap: 12px; }
.gl-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.gl-total > b { font: 700 clamp(28px, 4vw, 38px)/1.05 var(--f-display); letter-spacing: -.03em; }
.gl-total .muted { font-size: 14px; }
.gl-total .muted b { color: var(--ink); }
.gl-bar { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.gl-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; }
.enter .gl-bar i { animation: growX .9s var(--ease-out) both; }
.gl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gl-stats > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--bg); min-width: 0; }
.gl-stats span { font-size: 12.5px; color: var(--muted); }
.gl-stats b { font: 700 18px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) {
  .gl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Landing: layar laptop versi Transaksi ---------- */
.dk-top b i { display: inline-block; width: 7px; height: 7px; margin-left: 3px; border-radius: 2px; background: var(--accent); }
.dk-tx { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; min-height: 0; }
.dk-list { gap: 4px; padding: 16px 18px; }
.dk-tool { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dk-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; }
.dk-pills { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--surface-2); font-size: 12px; color: var(--muted); }
.dk-pills > * { padding: 5px 10px; border-radius: 99px; }
.dk-pills b { background: var(--surface); color: var(--ink); font-weight: 650; }
.dk-filter { display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--surface-2); font-size: 12px; font-weight: 650; }
.dk-day > span { display: flex; justify-content: space-between; padding: 10px 0 6px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.dk-day > span b { color: var(--ink); font-weight: 600; }
.dk-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 150px 110px; align-items: center; gap: 12px; padding: 8px 0; }
.dk-row .ap-ic { width: 34px; height: 34px; border-radius: 11px; font-size: 16px; }
.dk-t { display: grid; min-width: 0; }
.dk-t b { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.dk-t small { font-size: 11.5px; color: var(--muted); }
.dk-cat { justify-self: start; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--c) 13%, transparent); font-size: 11.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.dk-row em { font-style: normal; font-weight: 650; font-size: 13.5px; text-align: right; }
.dk-row em.in { color: var(--pos); }
.dk-side2 { display: grid; gap: 14px; }
.dk-side2 .dk-card { gap: 10px; padding: 16px 18px; }
.dk-muted { font-size: 12px; color: var(--muted); }
.dk-muted b { display: block; color: var(--ink); font-size: 13px; }
.dk-net { font-family: var(--f-display); font-size: 24px; color: var(--pos); letter-spacing: -.02em; }
.dk-io { display: flex; gap: 3px; height: 7px; border-radius: 99px; overflow: hidden; }
.dk-io i:first-child { background: var(--pos); } .dk-io i + i { background: var(--neg); }
.dk-days { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.dk-days i { flex: 1; height: max(var(--h), 3px); border-radius: 3px; background: color-mix(in srgb, var(--ink) 22%, transparent); transform-origin: bottom; }
.dk-days i.f { height: 3px; background: var(--line); }
.dk-catrow { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; }
.dk-catrow .ap-ic { width: 30px; height: 30px; border-radius: 10px; font-size: 14px; background: color-mix(in srgb, var(--c) 15%, transparent); }
.dk-catrow > span:last-child { display: grid; gap: 5px; font-size: 12.5px; }
.dk-catrow i { display: block; height: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--c) var(--w), var(--surface-2) var(--w)); }
.devices.open .dk-days i { animation: growY 1s var(--ease-out) both; animation-delay: calc(1s + var(--d, 0s)); }
.lp-head-l { display: flex; flex-direction: column; gap: 12px; }
.dev-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; max-width: 760px; }
/* Layar lebar: judul di kiri, dua catatan perangkat bertumpuk di kanan, jadi tidak ada ruang kosong di sebelah teks. */
@media (min-width: 1000px) {
  .laptop-sec .lp-head { max-width: none; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 56px; align-items: center; }
  .laptop-sec .dev-notes { grid-template-columns: minmax(0, 1fr); margin: 0; max-width: none; }
}
.dev-notes li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.dev-notes .ic { flex: none; margin-top: 2px; color: var(--ink); }
.dev-notes b { display: block; color: var(--ink); font-weight: 650; }

/* Kategori baru dari form Catat */
.cat-tile.cat-add .emo { background: transparent; border: 1.5px dashed var(--line); color: var(--muted); }
.cat-new { display: grid; gap: 10px; width: min(300px, 78vw); padding: 4px; }
.cat-new > b { font-size: 14px; }
.cat-new-ic { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.cat-new-ic label { position: relative; }
.cat-new-ic input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cat-new-ic span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 9px; font-size: 18px; transition: background-color .15s; }
.cat-new-ic input:checked + span { background: var(--accent-soft); box-shadow: 0 0 0 1.5px var(--ink); }
.cat-new-ic input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 1px; }
.cat-new-err { margin: 0; min-height: 0; font-size: 12.5px; color: var(--neg); }
.cat-new-err:empty { display: none; }
.cat-new-foot { display: flex; justify-content: flex-end; gap: 8px; }
/* Pilihan paket di jendela Plus */
.plus-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plus-opt { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.plus-opt.best { border: 2px solid var(--ink); }
.plus-opt small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.plus-opt b { font: 700 22px/1.15 var(--f-display); letter-spacing: -.02em; }
.plus-opt b span { font: 500 13px var(--f-body); color: var(--muted); letter-spacing: 0; }
.plus-opt p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.plus-tag { position: absolute; top: -10px; right: 12px; padding: 2px 9px; border-radius: 99px; background: var(--accent); color: #1B3A0B; font-size: 11px; font-weight: 700; }
@media (max-width: 420px) { .plus-opts { grid-template-columns: minmax(0, 1fr); } }

/* Sub kategori */
.cat-pop-head { display: flex; align-items: center; gap: 6px; padding: 2px 2px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.cat-pop-head b { font-size: 14px; }
.cat-pop-head .icon-btn { width: 32px; height: 32px; }
.cat-tile .emo { position: relative; }
.cat-n { position: absolute; right: -5px; top: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--ink); color: var(--surface); font: 700 10px/17px var(--f-body); font-style: normal; text-align: center; }
.cat-new-par { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.cat-new-par .input { flex: 1; height: 38px; }
.cat-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px; border-radius: 22px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.cat-chip.sub { height: 30px; font-size: 12.5px; padding: 0 10px 0 4px; background: var(--surface); }
.cat-chip.sub .tx-ic { width: 22px; height: 22px; }
.cat-chip.sub.add { width: 30px; padding: 0; justify-content: center; }

/* ---------- Avatar (Teman STABL) ---------- */
.avatar.av { background: transparent; }
.av-edit { position: relative; flex: none; border-radius: 18px; }
.av-pen { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 99px; background: var(--ink); color: var(--surface); box-shadow: 0 0 0 3px var(--surface); transition: transform .25s var(--ease-spring); }
@media (hover: hover) { .av-edit:hover .av-pen { transform: scale(1.12); } }
.av-edit:active { transform: scale(.96); }
.av-reset { justify-self: start; font-size: 13px; }
.tm { display: grid; gap: 18px; }
.tm-stage { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; }
/* Gambar avatar tetap terlihat saat daftar pilihan di-scroll. */
.tm-stage { position: sticky; top: -1px; z-index: 2; padding-block: 6px 10px; background: var(--surface); }
.tm-big { width: 132px; height: 132px; border-radius: 40px; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .4); }
.tm-big svg, .tm-sug svg { width: 100%; height: 100%; display: block; }
.tm-sugs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tm-sug { aspect-ratio: 1; border-radius: 16px; overflow: hidden; transition: transform .25s var(--ease-spring); }
@media (hover: hover) { .tm-sug:hover { transform: translateY(-2px); } }
.tm-sug:active { transform: scale(.95); }
.tm-ctrls { display: grid; gap: 12px; }
.tm-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; }
.tm-row > span { font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tm-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-opt { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font-size: 13px; font-weight: 600; text-transform: capitalize; transition: background-color .15s, color .15s; }
.tm-opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.tm-sw { width: 30px; height: 30px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: box-shadow .15s; }
.tm-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
@media (max-width: 520px) {
  .tm-stage { grid-template-columns: 112px minmax(0, 1fr); }
  .tm-big { width: 112px; height: 112px; border-radius: 34px; }
  .tm-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* ---------- Logo dompet ---------- */
.logo-ic { display: inline-grid; place-items: center; width: calc(var(--s) * 1.2); height: calc(var(--s) * 1.2); border-radius: 28%; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); vertical-align: middle; flex: none; }
.logo-ic img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Di dalam kotak ikon berwarna, logo mengisi kotaknya penuh supaya rapi. */
.tx-ic:has(> .logo-ic), .pay-ic:has(> .logo-ic), .ap-ic:has(> .logo-ic) { background: #fff; padding: 0; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.tx-ic > .logo-ic, .pay-ic > .logo-ic { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.logo-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center; }
.logo-prev { grid-row: span 2; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); overflow: hidden; }
.logo-prev.has { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.logo-prev.has > .logo-ic { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.logo-btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo-btns .btn { cursor: pointer; }
.logo-pick small { font-size: 12.5px; line-height: 1.4; }

/* ---------- Kalender ---------- */
.calp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
/* Laptop: kalender + sorotan di kiri, rincian tanggal menempel di kanan. HP: kalender, rincian, lalu sorotan. */
@media (min-width: 1100px) {
  .calp { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "cal det" "sum det"; }
  .cal-card { grid-area: cal; } .cal-sum-card { grid-area: sum; }
  .cal-detail { grid-area: det; position: sticky; top: 20px; }
}
@media (min-width: 1600px) { .calp { grid-template-columns: minmax(0, 1fr) 420px; } }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.cal-cell { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 4px; min-height: 76px; padding: 8px 9px; border-radius: 14px; background: var(--bg); text-align: left; transition: background-color .2s, box-shadow .2s, transform .2s var(--ease-spring); }
.cal-cell.pad { background: transparent; }
.cal-cell b { font-size: 13.5px; font-weight: 650; }
.cal-cell.h1 { background: color-mix(in srgb, var(--neg) 6%, var(--bg)); }
.cal-cell.h2 { background: color-mix(in srgb, var(--neg) 11%, var(--bg)); }
.cal-cell.h3 { background: color-mix(in srgb, var(--neg) 17%, var(--bg)); }
.cal-cell.h4 { background: color-mix(in srgb, var(--neg) 24%, var(--bg)); }
.cal-cell.fut { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.cal-cell.today b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin: -3px 0 0 -4px; border-radius: 99px; background: var(--ink); color: var(--surface); }
.cal-cell.on { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--ink); }
@media (hover: hover) { .cal-cell:not(.pad):hover { transform: translateY(-2px); } }
.cal-net { font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cal-net.pos { color: var(--pos); } .cal-net.neg { color: var(--neg); }
.cal-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cal-sum > div { display: grid; gap: 3px; align-content: start; padding: 12px 14px; border-radius: 14px; background: var(--bg); min-width: 0; }
.cal-sum span { font-size: 12.5px; color: var(--muted); }
.cal-sum b { font: 700 18px var(--f-display); }
.cal-sum b small { font: 500 13px var(--f-body); color: var(--muted); }
.cal-sum > div > small { font-size: 12px; color: var(--muted); }
.cal-sum i { display: block; height: 5px; margin-top: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--w), var(--surface-2) var(--w)); }
.cal-detail { display: grid; gap: 14px; }
.cal-dh { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cal-dh h2 { font-size: 22px; }
.cal-dh p { margin: 0 0 2px; text-transform: capitalize; }
.cal-step { display: flex; gap: 4px; }
.cal-net-big { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--bg); }
.cal-net-big span { font-size: 13px; color: var(--muted); }
.cal-net-big b { font: 700 24px/1.1 var(--f-display); letter-spacing: -.02em; }
.cal-net-big b.pos { color: var(--pos); } .cal-net-big b.neg { color: var(--neg); }
.cal-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cal-stats > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--bg); min-width: 0; }
.cal-stats span { font-size: 12px; color: var(--muted); }
.cal-stats b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-stats .pos { color: var(--pos); } .cal-stats .neg { color: var(--neg); }
.cal-empty { margin: 0; padding: 18px; border-radius: 14px; border: 1px dashed var(--line); text-align: center; color: var(--muted); font-size: 13.5px; }
.cal-add { justify-self: start; }
@media (max-width: 860px) {
  .cal-grid { gap: 4px; }
  .cal-cell { min-height: 56px; padding: 6px 5px; border-radius: 11px; }
  .cal-cell b { font-size: 12.5px; }
  .cal-net { font-size: 10px; letter-spacing: -.02em; }
  .cal-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-legend { display: none; }
  .st-tools .tool-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- Analisis ---------- */
.hl-card { display: grid; gap: 10px; align-content: start; }
.hl-wrap { position: relative; display: grid; justify-items: center; }
.hl-gauge { width: min(220px, 100%); height: auto; }
.hl-gauge path:nth-child(2) { transition: stroke-dashoffset 1s var(--ease-out); }
.enter .hl-gauge path:nth-child(2) { animation: hlIn 1.1s var(--ease-out) both; }
@keyframes hlIn { from { stroke-dashoffset: var(--L); } }
.hl-val { position: absolute; bottom: 4px; display: grid; justify-items: center; }
.hl-val b { font: 700 34px/1 var(--f-display); letter-spacing: -.03em; }
.hl-val span { font-size: 12px; color: var(--muted); }
.hl-msg { margin: 0; font-size: 13.5px; line-height: 1.5; text-align: center; }
.ch-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.ch-h { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font: 500 11.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.ch-h.neg { color: var(--neg); } .ch-h.pos { color: var(--pos); }
.ch-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ch-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ch-list li:last-child { border-bottom: 0; }
.ch-list .tx-ic { width: 34px; height: 34px; border-radius: 11px; }
.ch-t { flex: 1; min-width: 0; display: grid; }
.ch-t b { font-weight: 600; font-size: 14px; }
.ch-t small { font-size: 12px; color: var(--muted); }
.ch-list > li > b { font-weight: 700; white-space: nowrap; }
.ch-list .neg { color: var(--neg); } .ch-list .pos { color: var(--pos); }
.ch-none { margin: 8px 0; font-size: 13.5px; }
.cmp-subs { margin-top: 2px; }
.cmp-subs summary { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; list-style: none; }
.cmp-subs summary::-webkit-details-marker { display: none; }
.cmp-subs summary .ic { transition: transform .25s var(--ease-out); }
.cmp-subs[open] summary .ic { transform: rotate(180deg); }
.cmp-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto 38px; gap: 10px; align-items: center; padding: 6px 0 6px 4px; font-size: 13px; border-top: 1px dashed var(--line); }
.cmp-sub:first-of-type { margin-top: 6px; }
.cmp-sub small { text-align: right; color: var(--muted); font-size: 12px; }
@media (max-width: 860px) { .ch-cols { grid-template-columns: minmax(0, 1fr); } }

.kpis.kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cmp-row:has(.cmp-subs[open]) { align-items: start; }

/* Tanpa akun */
.local-start { display: grid; gap: 12px; }
.local-go { height: 52px; justify-content: center; font-size: 16px; }
.local-demo { justify-self: start; font-size: 14px; }
.st-rename { justify-self: start; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; margin-top: 2px; }
.banner.bk { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.banner.bk .btn { flex: none; }
@media (max-width: 560px) { .banner.bk { flex-wrap: wrap; } .banner.bk p { flex: 1 1 calc(100% - 70px); } .banner.bk .btn { margin-left: 30px; } }
/* Analisis: tombol Bulanan/Tahunan di tempat tetap */
.rep-bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
@media (max-width: 860px) { .rep-bar { justify-content: stretch; } .rep-bar .seg-pills { width: 100%; } .rep-bar .seg-pills button { flex: 1; } }
/* Kalender: kotak tanggal persegi */
.cal-cell { aspect-ratio: 1; min-height: 0; max-width: 100%; }

/* ---------- Dompet / Hutang & Piutang / Aset ---------- */
.wal-tabs { display: none; }
@media (max-width: 860px) {
  .wal-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--surface-2); }
  .wal-tabs button { flex: 1; height: 36px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background-color .2s, color .2s; }
  .wal-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
}
.nw-parts > button { display: flex; flex-direction: column; gap: 2px; text-align: left; transition: background-color .2s; }
.nw-parts > button span { display: inline-flex; align-items: center; gap: 2px; }
@media (hover: hover) { .nw-parts > button:hover { background: var(--surface-2); } }
.db-adds { display: flex; gap: 8px; flex-wrap: wrap; }
.db-net { display: grid; gap: 4px; }
.db-net b { font: 700 clamp(30px, 5vw, 42px)/1.05 var(--f-display); letter-spacing: -.03em; }
.db-net b.pos { color: var(--pos); } .db-net b.neg { color: var(--neg); }
.db-hero { display: grid; gap: 16px; }
.db-next { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--bg); text-align: left; font-size: 13.5px; }
.db-next > span { flex: 1; min-width: 0; }
.db-next .ic { color: var(--muted); flex: none; }
.db-tabs { display: flex; }
.db-col .card-head > b { font: 700 20px var(--f-display); white-space: nowrap; }
.db-col .card-head > b.pos { color: var(--pos); } .db-col .card-head > b.neg { color: var(--neg); }
.debt-list.one { grid-template-columns: minmax(0, 1fr); }
.db-none { margin: 4px 0 0; padding: 18px; border-radius: 14px; border: 1px dashed var(--line); text-align: center; color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) { .db-hero .card-head { flex-wrap: wrap; } .db-adds { width: 100%; } .db-adds .btn { flex: 1; justify-content: center; } }
.as-hero { display: grid; gap: 14px; }
.as-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.as-total > b { font: 700 clamp(30px, 5vw, 42px)/1.05 var(--f-display); letter-spacing: -.03em; }
.as-total .pos { color: var(--pos); font-weight: 650; } .as-total .neg { color: var(--neg); font-weight: 650; }
.as-bar { display: flex; gap: 3px; height: 12px; border-radius: 99px; overflow: hidden; }
.as-bar i { display: block; min-width: 6px; transform-origin: left; }
.enter .as-bar i { animation: growX .8s var(--ease-out) both; animation-delay: var(--d); }
.as-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.as-legend li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; min-width: 0; }
.as-legend span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.as-legend b { margin-left: auto; font-weight: 650; white-space: nowrap; }
.as-legend small { width: 34px; text-align: right; color: var(--muted); font-size: 12px; }
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.as-card { position: relative; display: grid; gap: 4px; padding: 16px; border-radius: 18px; background: var(--bg); text-align: left; overflow: hidden; transition: transform .25s var(--ease-spring), box-shadow .2s; }
.as-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); }
@media (hover: hover) { .as-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -16px rgba(0, 0, 0, .4); } }
.as-card:active { transform: scale(.98); }
.as-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.as-top .tx-ic { width: 36px; height: 36px; border-radius: 11px; --c: inherit; background: color-mix(in srgb, var(--c) 16%, transparent); }
.as-ty { flex: 1; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.as-nm { font-size: 14.5px; font-weight: 600; }
.as-val { font: 700 22px/1.15 var(--f-display); letter-spacing: -.02em; }
.as-meta { font-size: 12px; color: var(--muted); }

/* ---------- detail transaksi ---------- */
.sheet-wrap.swap .sheet, .sheet-wrap.swap .sheet-backdrop { transition: none; }
.sheet-wrap.swap .sheet-body { animation: swapIn .28s ease both; }
@keyframes swapIn { from { opacity: 0; transform: translateY(6px); } }
.txd-top { display: grid; justify-items: center; gap: 6px; padding: 6px 0 4px; text-align: center; }
.txd-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--c); margin-bottom: 4px; }
.txd-ic .emo { font-size: 28px; }
.txd-kind { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.txd-amt { font: 700 clamp(30px, 8vw, 38px)/1.05 var(--f-display); letter-spacing: -.03em; }
.txd-amt.income { color: var(--pos); } .txd-amt.expense { color: var(--neg); }
.txd-title { font-size: 15px; font-weight: 600; max-width: 100%; overflow-wrap: anywhere; }
.txd-rows { display: grid; border-radius: 16px; background: var(--bg); padding: 4px 14px; }
.txd-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; font-size: 14px; }
.txd-row + .txd-row { border-top: 1px solid var(--line); }
.txd-k { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); flex: none; }
.txd-v { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.txd-v .logo-ic, .txd-v .emo { flex: none; }
.txd-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: var(--ink); }
.txd-link:hover { text-decoration: underline; }
.txd-files { display: grid; gap: 8px; }
.txd-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.txd-file { width: 84px; height: 84px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg) center / cover no-repeat; display: grid; place-items: center; align-content: center; gap: 4px; padding: 6px; color: var(--muted); font-size: 10.5px; }
.txd-file span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txd-file.img > * { display: none; }
.txd-file:disabled { opacity: .5; }

/* ---------- cicilan kartu kredit / PayLater ---------- */
.inst-panel { display: grid; gap: 10px; }
.inst-tenor { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.inst-tenor label { position: relative; }
.inst-tenor input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.inst-tenor label span { display: grid; place-items: center; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.inst-tenor input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.inst-tenor input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.inst-tenor .inst-other { height: 40px; padding: 0 8px; text-align: center; font-size: 13px; background: var(--surface); }
.inst-panel .input { background: var(--surface); }
.inst-hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.inst-hint:empty { display: none; }
@media (max-width: 420px) { .inst-tenor { grid-template-columns: repeat(4, minmax(0, 1fr)); } .inst-tenor .inst-other { grid-column: 1 / -1; } }

.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.inst-card { display: grid; gap: 12px; padding: 14px; border-radius: 16px; background: var(--bg); text-align: left; transition: transform .2s var(--ease-out), background .2s; }
.inst-card:hover { background: var(--surface-2); }
.inst-card:active { transform: scale(.985); }
.inst-card.done { opacity: .6; }
.inst-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.inst-nm { display: grid; min-width: 0; flex: 1; }
.inst-nm b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inst-nm small, .inst-per small { color: var(--muted); font-size: 12px; font-weight: 500; }
.inst-per { font-weight: 700; font-size: 15px; white-space: nowrap; }
.inst-card .prog .fill { background: var(--ink); }
.inst-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.inst-foot b { color: var(--ink); }
.inst-sec .hint { margin: 12px 0 0; }

.inst-sum { display: flex; align-items: center; gap: 12px; }
.inst-sum b { font: 700 28px/1.1 var(--f-display); letter-spacing: -.02em; }
.inst-sum b small { font: 500 14px var(--f-body, inherit); color: var(--muted); letter-spacing: 0; }
.inst-sum .eyebrow { margin: 0 0 4px; }
.inst-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inst-kv div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.inst-kv span { font-size: 12px; color: var(--muted); }
.inst-kv b { font-size: 15px; }
.inst-sched { list-style: none; margin: 0; padding: 4px 14px; border-radius: 16px; background: var(--bg); display: grid; }
.inst-sched li { display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 0; font-size: 13.5px; }
.inst-sched li + li { border-top: 1px solid var(--line); }
.inst-no { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 11.5px; font-weight: 700; }
.inst-sched li.paid .inst-no { background: var(--accent); color: #10140C; }
.inst-st { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.inst-sched li.paid .inst-st { color: var(--pos); }
.inst-sched li.cut { color: var(--muted); }
.inst-sched li.cut b { text-decoration: line-through; }
.inst-empty { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--bg); flex-wrap: wrap; }
.inst-empty p { flex: 1 1 260px; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 520px) { .inst-empty .tx-ic { display: none; } .inst-empty .btn { width: 100%; justify-content: center; } }

/* ---------- penyusutan aset ---------- */
.dep-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 46px; padding: 8px 12px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; cursor: pointer; }
.dep-row > span:nth-child(2) { flex: 1; min-width: 140px; }
.dep-rate { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.dep-rate .input { width: 64px; height: 36px; padding: 0 8px; text-align: center; background: var(--surface); }
.dep-box { display: grid; border-radius: 13px; border: 1px solid var(--line); background: var(--bg); }
.dep-box .dep-row { border: 0; background: none; }
.dep-set { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 12px 12px; }
.dep-dir { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 11px; background: var(--surface-2); }
.dep-dir label { position: relative; }
.dep-dir input { position: absolute; opacity: 0; pointer-events: none; }
.dep-dir span { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.dep-dir input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
.dep-dir input[value="-1"]:checked + span .ic { color: var(--neg); }
.dep-dir input[value="1"]:checked + span .ic { color: var(--pos); }
.dep-dir input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- detail aset ---------- */
.ad-top { display: flex; align-items: flex-start; gap: 12px; }
.ad-top .eyebrow { margin: 0 0 4px; }
.ad-val { display: block; font: 700 clamp(28px, 7vw, 34px)/1.05 var(--f-display); letter-spacing: -.03em; }
.ad-chg { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.ad-chg.pos { color: var(--pos); } .ad-chg.neg { color: var(--neg); }
.ad-chg b { color: inherit; }
.ad-chart { position: relative; height: 150px; }
.ad-chart svg { width: 100%; height: 100%; overflow: visible; display: block; }
.ad-area { fill: url(#ad-g); }
.ad-line { fill: none; stroke: var(--lc); stroke-width: 2.4; stroke-linejoin: round; }
.ad-proj { fill: none; stroke: var(--lc); stroke-width: 2; stroke-dasharray: 5 6; opacity: .7; }
.ad-now { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.ad-dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--lc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lc) 22%, transparent); }
.ad-x { position: relative; display: flex; justify-content: space-between; height: 16px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.ad-x span[style] { position: absolute; transform: translateX(-50%); font-weight: 600; color: var(--ink-2); }
.ad-legend { display: flex; align-items: center; gap: 6px; margin: -6px 0 0; font-size: 12px; color: var(--muted); }
.ad-legend i { width: 18px; height: 0; border-top: 2.4px solid var(--ink-2); }
.ad-legend i.dash { margin-left: 10px; border-top-style: dashed; border-top-width: 2px; }
.ad-none { margin: 0; padding: 16px; border-radius: 14px; border: 1px dashed var(--line); font-size: 13px; color: var(--muted); text-align: center; }
.ad-hist { display: grid; gap: 8px; }
.ad-hist ul { list-style: none; margin: 0; padding: 4px 14px; border-radius: 16px; background: var(--bg); }
.ad-hist li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 0; font-size: 13.5px; }
.ad-hist li + li { border-top: 1px solid var(--line); }
.ad-hist small { font-size: 12px; color: var(--muted); }
.ad-hist small.pos { color: var(--pos); } .ad-hist small.neg { color: var(--neg); }

/* ---------- daftar / masuk dengan email ---------- */
.login-card.form { gap: 18px; }
.login-card.form h1 { font-size: clamp(32px, 3.8vw, 46px); }
.auth-form { display: grid; gap: 14px; max-width: 420px; }
.auth-form .input { height: 50px; font-size: 15.5px; background: var(--surface); }
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.pw-eye:hover { color: var(--ink); background: var(--surface-2); }
.pw-meter { display: flex; gap: 4px; margin-top: 2px; }
.pw-meter i { flex: 1; height: 4px; border-radius: 9px; background: var(--surface-2); transition: background .25s; }
.pw-meter i.on { background: var(--pos); }
.pw-hint { font-size: 12px; color: var(--muted); }
.otp-in { font: 600 26px var(--f-mono) !important; letter-spacing: .3em; text-align: center; height: 60px !important; }
.auth-go { height: 52px; justify-content: center; font-size: 16px; }
.auth-go.busy { opacity: .7; cursor: progress; }
.auth-go.busy::after { content: ""; width: 16px; height: 16px; margin-left: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.auth-forgot { justify-self: end; font-size: 13.5px; margin-top: -6px; }
.auth-alt { margin: 0; font-size: 14px; color: var(--ink-2); }
.auth-alt .link-btn { font-weight: 700; }
.auth-or { display: flex; align-items: center; gap: 12px; max-width: 420px; color: var(--muted); font-size: 12.5px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-other { display: grid; justify-items: start; gap: 8px; }
.auth-other .link-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.auth-mail { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; max-width: 100%; overflow-wrap: anywhere; justify-self: start; align-self: flex-start; }
.auth-info { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 13.5px; color: var(--ink-2); }
.auth-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.login-card .err { margin: 0; }
.st-acts { display: inline-flex; gap: 12px; flex-wrap: wrap; }

/* ---------- kritik & saran ---------- */
.fb-lead { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.fb-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fb-kinds label { position: relative; }
.fb-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.fb-kinds span { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); font-size: 12.5px; font-weight: 600; text-align: center; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease-spring); }
.fb-kinds span i { font-style: normal; font-size: 22px; line-height: 1; }
.fb-kinds input:checked + span { border-color: var(--ink); background: var(--accent-soft); }
.fb-kinds input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.fb-kinds label:active span { transform: scale(.97); }
.fb-card { display: grid; gap: 14px; background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); }
.fb-in { display: flex; gap: 12px; align-items: flex-start; }
.fb-emo { font-size: 28px; line-height: 1; }
.fb-in b { font-size: 15.5px; }
.fb-in p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.fb-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-ask { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; padding: 14px; border-radius: 14px; background: var(--accent-soft); font-size: 13.5px; }

/* ---------- ajak teman ---------- */
.ref-box { display: grid; gap: 14px; }
.ref-lead { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.ref-code { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px; border-radius: 18px; background: var(--ink); color: #fff; }
.ref-code .eyebrow { width: 100%; margin: 0; color: var(--accent); }
.ref-code b { flex: 1; font: 700 34px var(--f-mono); letter-spacing: .12em; }
.ref-code .btn { background: rgba(255,255,255,.12); color: #fff; }
.ref-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-size: 14px; overflow-wrap: anywhere; }
.ref-share { height: 50px; justify-content: center; }
.auth-ref { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; }
