/* Kas Umum — tampilan kaca (glass) navy & emas */
:root {
  --bg: #EDF1F8;
  --ink: #0B1B3A;
  --ink-2: #46526B;
  --ink-3: #7C879D;
  --hair: rgba(11, 27, 58, .08);
  --hair-2: rgba(11, 27, 58, .14);
  --glass: rgba(255, 255, 255, .56);
  --glass-hi: rgba(255, 255, 255, .78);
  --glass-solid: rgba(255, 255, 255, .86);
  --glass-brd: rgba(255, 255, 255, .78);
  --field: rgba(255, 255, 255, .72);
  --brand: #0A2A5E;
  --brand-2: #143F86;
  --brand-ink: #0A2A5E;
  --brand-soft: rgba(10, 42, 94, .08);
  --gold: #E0A11B;
  --gold-2: #F7C855;
  --gold-ink: #8A5B00;
  --gold-soft: rgba(224, 161, 27, .16);
  --in: #0E8A5F;
  --in-soft: rgba(14, 138, 95, .12);
  --out: #CF432B;
  --out-soft: rgba(207, 67, 43, .11);
  --tr: #2F6FED;
  --tr-soft: rgba(47, 111, 237, .12);
  --warn: #A86A00;
  --warn-soft: rgba(224, 161, 27, .18);
  --danger: #C0281C;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --blur: blur(20px) saturate(170%);
  --shadow: 0 1px 1px rgba(10, 42, 94, .04), 0 12px 32px -14px rgba(10, 42, 94, .22);
  --shadow-lg: 0 30px 80px -24px rgba(10, 42, 94, .38);
  --inner: inset 0 1px 0 rgba(255, 255, 255, .85);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #050B19;
  --ink: #E9EEF9;
  --ink-2: #AFBAD0;
  --ink-3: #7D89A3;
  --hair: rgba(255, 255, 255, .07);
  --hair-2: rgba(255, 255, 255, .13);
  --glass: rgba(20, 33, 64, .5);
  --glass-hi: rgba(28, 44, 82, .66);
  --glass-solid: rgba(16, 27, 54, .9);
  --glass-brd: rgba(255, 255, 255, .09);
  --field: rgba(9, 18, 40, .6);
  --brand: #F2BB45;
  --brand-2: #FFD27A;
  --brand-ink: #9DBBFF;
  --brand-soft: rgba(157, 187, 255, .12);
  --gold-ink: #F7C855;
  --gold-soft: rgba(247, 200, 85, .14);
  --in: #3CCB95;
  --in-soft: rgba(60, 203, 149, .14);
  --out: #FF7D62;
  --out-soft: rgba(255, 125, 98, .14);
  --tr: #7FA7FF;
  --tr-soft: rgba(127, 167, 255, .15);
  --warn: #F2BB45;
  --warn-soft: rgba(242, 187, 69, .15);
  --danger: #FF6B5E;
  --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 14px 36px -16px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 90px -20px rgba(0, 0, 0, .8);
  --inner: inset 0 1px 0 rgba(255, 255, 255, .07);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; }
/* latar aurora */
body::before, body::after { content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(70px); opacity: .75; }
body::before { width: 62vmax; height: 62vmax; left: -18vmax; top: -24vmax; background: radial-gradient(closest-side, rgba(36, 86, 180, .38), rgba(36, 86, 180, 0)); animation: drift1 26s ease-in-out infinite alternate; }
body::after { width: 54vmax; height: 54vmax; right: -16vmax; bottom: -22vmax; background: radial-gradient(closest-side, rgba(240, 178, 40, .34), rgba(240, 178, 40, 0)); animation: drift2 30s ease-in-out infinite alternate; }
.aura { position: fixed; z-index: -1; pointer-events: none; width: 40vmax; height: 40vmax; right: 18vw; top: 8vh; border-radius: 50%; background: radial-gradient(closest-side, rgba(120, 160, 255, .22), rgba(120, 160, 255, 0)); filter: blur(60px); animation: drift1 34s ease-in-out infinite alternate-reverse; }
[data-theme="dark"] body::before { background: radial-gradient(closest-side, rgba(40, 90, 210, .45), rgba(40, 90, 210, 0)); }
[data-theme="dark"] body::after { background: radial-gradient(closest-side, rgba(230, 160, 30, .22), rgba(230, 160, 30, 0)); }
@keyframes drift1 { to { transform: translate(9vmax, 6vmax) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-8vmax, -7vmax) scale(1.1); } }

button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-ink); text-decoration: none; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.in { color: var(--in); } .out { color: var(--out); } .tr { color: var(--tr); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
::selection { background: var(--gold-soft); }

/* permukaan kaca */
.glass, .panel, .side, .hero-bal, .modal, .filters-box, .tabbar-in, .auth-card {
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd); box-shadow: var(--inner), var(--shadow);
}
.glow { position: relative; isolation: isolate; }
.glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .5), transparent 42%); mix-blend-mode: soft-light; z-index: 1; }
[data-theme="dark"] .glow::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(247, 200, 85, .12), transparent 45%); mix-blend-mode: normal; }
.glow:hover::after { opacity: 1; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side svg, .org-switch svg { flex: none; }
.side { position: sticky; top: 14px; height: calc(100vh - 28px); margin: 14px 0 14px 14px; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; border-radius: 24px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 14px; }
.brand img { height: 46px; width: auto; display: block; }
.brand .lg-d, [data-theme="dark"] .brand .lg-l { display: none; }
[data-theme="dark"] .brand .lg-d { display: block; }
.org-switch { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 1px solid var(--hair); background: var(--glass-hi); border-radius: var(--r); cursor: pointer; text-align: left; margin-bottom: 10px; transition: transform .15s, border-color .15s; }
.org-switch:hover { border-color: var(--hair-2); transform: translateY(-1px); }
.org-switch b { display: block; font-size: 13.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-switch span { font-size: 12px; color: var(--ink-3); }
.org-logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; overflow: hidden; }
[data-theme="dark"] .org-logo { color: #1A1300; }
.org-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--glass-hi); color: var(--ink); }
.nav a.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px -10px rgba(10, 42, 94, .7); }
[data-theme="dark"] .nav a.on { color: #1A1300; box-shadow: 0 8px 22px -10px rgba(242, 187, 69, .6); }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold); }
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav-sep { height: 1px; background: var(--hair); margin: 10px 6px; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 12px 6px 0; border-top: 1px solid var(--hair); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #241800; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.side-foot .who { min-width: 0; flex: 1; }
.side-foot .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who span { font-size: 12px; color: var(--ink-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 18px 30px 14px; transition: background .2s, box-shadow .2s; }
.top.scrolled { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 1px 0 var(--hair); }
.top h1 { font-size: 22px; margin: 0; letter-spacing: -.025em; font-weight: 800; }
.top .grow { flex: 1; }
.top .m-logo { display: none; height: 30px; }
.page { padding: 4px 30px 70px; max-width: 1260px; }
.page > * { animation: up .45s cubic-bezier(.2, .7, .2, 1) both; }
.page > *:nth-child(2) { animation-delay: .05s; } .page > *:nth-child(3) { animation-delay: .1s; } .page > *:nth-child(4) { animation-delay: .15s; }
.demo-bar { position: relative; z-index: 30; background: linear-gradient(90deg, var(--gold-2), var(--gold)); color: #2A1C00; padding: 8px 30px; font-size: 13px; font-weight: 650; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.demo-bar a { color: inherit; text-decoration: underline; font-weight: 800; }

/* ---------- kontrol ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--hair-2); background: var(--glass-hi); font-weight: 650; font-size: 14px; cursor: pointer; white-space: nowrap; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -12px rgba(10, 42, 94, .8), inset 0 1px 0 rgba(255, 255, 255, .18); }
[data-theme="dark"] .btn.primary { color: #1A1300; box-shadow: 0 10px 24px -12px rgba(242, 187, 69, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; color: #241800; font-weight: 750; box-shadow: 0 12px 26px -12px rgba(224, 161, 27, .85), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.gold::before, .btn.primary::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg); transition: left .6s; }
.btn.gold:hover::before, .btn.primary:hover::before { left: 120%; }
.btn.ghost { border-color: transparent; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn.ghost:hover { background: var(--glass-hi); }
.btn.danger { color: var(--danger); }
.btn.sm { height: 33px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.icon { width: 40px; padding: 0; }
.btn.sm.icon { width: 33px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .22; animation: ripple .55s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 12px; }
.input, select.input, textarea.input { height: 42px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--hair-2); background: var(--field); width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s, background .15s; }
select.input { cursor: pointer; }
textarea.input { height: auto; padding: 10px 13px; resize: vertical; min-height: 70px; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); background: var(--glass-solid); }
.input.sm { height: 35px; font-size: 13.5px; border-radius: 10px; }
.input.money { font-size: 26px; font-weight: 800; height: 60px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--glass); border: 1px solid var(--hair); border-radius: 12px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.seg button { border: 0; background: transparent; height: 33px; padding: 0 14px; border-radius: 9px; font-weight: 650; font-size: 13.5px; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.seg button:hover { color: var(--ink); }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button svg { width: 16px; height: 16px; }
.seg button.on { background: var(--glass-solid); color: var(--ink); box-shadow: 0 2px 8px -2px rgba(10, 42, 94, .2); }
.seg.type button.on[data-v="in"] { color: var(--in); }
.seg.type button.on[data-v="out"] { color: var(--out); }
.seg.type button.on[data-v="transfer"] { color: var(--tr); }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--glass-hi); color: var(--ink-2); border: 1px solid var(--hair); white-space: nowrap; }
.badge svg { width: 12px; height: 12px; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.in { background: var(--in-soft); color: var(--in); border-color: transparent; }
.badge.out { background: var(--out-soft); color: var(--out); border-color: transparent; }
.badge.tr { background: var(--tr-soft); color: var(--tr); border-color: transparent; }
.badge.red { background: var(--out-soft); color: var(--danger); border-color: transparent; }
.badge.brand { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.badge.gold { background: var(--gold-soft); color: var(--gold-ink); border-color: transparent; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 0%, transparent); }
.via { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.via svg { width: 13px; height: 13px; }

/* ---------- panel ---------- */
.panel { border-radius: var(--r-lg); }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 18px 22px 0; position: relative; z-index: 2; }
.panel-h h2 { font-size: 15.5px; margin: 0; font-weight: 750; letter-spacing: -.015em; }
.panel-h .grow { flex: 1; }
.panel-b { padding: 16px 22px 22px; position: relative; z-index: 2; }
.empty { padding: 44px 20px; text-align: center; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* ---------- beranda ---------- */
.hero-bal { display: grid; grid-template-columns: 1.45fr 1fr 1fr; border-radius: 26px; overflow: hidden; margin-bottom: 18px; }
.hero-bal > div { padding: 22px 24px; position: relative; }
.hero-bal > div + div { border-left: 1px solid var(--hair); }
.hero-bal .lbl { font-size: 13px; font-weight: 650; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.hero-bal .lbl svg { width: 16px; height: 16px; }
.hero-bal .big { font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1.12; margin: 8px 0 4px; }
.hero-bal .mid { font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 2px; }
.hero-bal .main-cell { color: #fff; overflow: hidden; background:
  radial-gradient(120% 140% at 100% 0%, rgba(247, 200, 85, .35), transparent 45%),
  radial-gradient(90% 120% at 0% 100%, rgba(80, 140, 255, .35), transparent 55%),
  linear-gradient(140deg, #0A2A5E 0%, #0F3878 55%, #0A2552 100%); }
.hero-bal .main-cell::before { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1.5px solid rgba(247, 200, 85, .35); box-shadow: 0 0 0 26px rgba(247, 200, 85, .06), 0 0 0 54px rgba(247, 200, 85, .035); }
.hero-bal .main-cell .lbl { color: rgba(255, 255, 255, .8); }
.hero-bal .main-cell .muted { color: rgba(255, 255, 255, .7); }
.hero-bal .main-cell .sheen { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%); background-size: 250% 100%; background-position: 130% 0; transition: background-position 1.1s ease; pointer-events: none; }
.hero-bal .main-cell:hover .sheen { background-position: -30% 0; }
.split { margin-top: 14px; position: relative; z-index: 2; }
.split .bar { display: flex; height: 7px; border-radius: 7px; overflow: hidden; background: rgba(255, 255, 255, .16); }
.split .bar i { display: block; height: 100%; transition: width .9s cubic-bezier(.2, .7, .2, 1); }
.split .bar i:first-child { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.split .bar i:last-child { background: rgba(255, 255, 255, .78); }
.split .lg { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.split .lg b { display: block; color: #fff; font-size: 14.5px; }
.split .lg i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; }
.dash { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dash .col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* peta kas */
.tree { padding: 8px 12px 14px; position: relative; z-index: 2; }
.node { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; padding: 11px 12px 11px calc(12px + var(--d) * 26px); border-radius: 14px; cursor: pointer; transition: background .2s, transform .2s; }
.node:hover { background: var(--glass-hi); transform: translateX(3px); }
.node::before { content: ""; position: absolute; left: calc(var(--d) * 26px - 7px); top: -2px; height: 27px; width: 13px; border-left: 1.5px solid var(--hair-2); border-bottom: 1.5px solid var(--hair-2); border-bottom-left-radius: 8px; }
.node.root::before { display: none; }
.node .nm { display: flex; align-items: center; gap: 9px; min-width: 0; }
.node .nm b { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node .nm .code { color: var(--ink-3); font-size: 12px; font-weight: 600; white-space: nowrap; }
[data-theme="dark"] .dot { outline: 1.5px solid rgba(255, 255, 255, .35); outline-offset: 1px; }
.node .bal { text-align: right; font-weight: 800; font-size: 15px; }
.node .sub { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding-left: 18px; }
.node .bar { flex: 1; height: 5px; background: var(--hair); border-radius: 5px; overflow: hidden; max-width: 240px; }
.node .bar i { display: block; height: 100%; border-radius: 5px; animation: grow .9s cubic-bezier(.2, .7, .2, 1) both; transform-origin: left; }
.node .meta { font-size: 12px; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; }
.node .meta .in, .node .meta .out { font-weight: 650; }
@keyframes grow { from { transform: scaleX(0); } }

.chart { width: 100%; height: 230px; display: block; overflow: visible; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--ink-3); }
.chart .b { transform-box: fill-box; transform-origin: bottom; animation: rise-b .8s cubic-bezier(.2, .7, .2, 1) both; transition: opacity .2s; }
.chart g.m:hover .b { filter: brightness(1.1); }
.chart g.m .hit { cursor: pointer; }
.chart g.m:hover .hit { fill: var(--hair); }
@keyframes rise-b { from { transform: scaleY(0); } }
.chart-tip { position: fixed; z-index: 300; pointer-events: none; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; background: var(--glass-solid); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-brd); box-shadow: var(--shadow); transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; }
.chart-tip b { display: block; margin-bottom: 2px; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.cat-bars { display: flex; flex-direction: column; gap: 13px; }
.cat-bars .r { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 13.5px; }
.cat-bars .r .t { height: 7px; grid-column: 1 / -1; background: var(--out-soft); border-radius: 7px; overflow: hidden; }
.cat-bars .r .t i { display: block; height: 100%; background: linear-gradient(90deg, var(--out), color-mix(in srgb, var(--out) 60%, var(--gold))); border-radius: 7px; animation: grow .9s cubic-bezier(.2, .7, .2, 1) both; transform-origin: left; }

/* ---------- daftar & tabel ---------- */
.txl { display: flex; flex-direction: column; position: relative; z-index: 2; }
.txr { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 22px; border-top: 1px solid var(--hair); cursor: pointer; transition: background .15s; }
.txr:first-child { border-top: 0; }
.txr:hover { background: var(--glass-hi); }
.txr .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; transition: transform .2s; }
.txr:hover .ic { transform: scale(1.06) rotate(-4deg); }
.txr .ic svg { width: 19px; height: 19px; }
.txr .ic.in { background: var(--in-soft); } .txr .ic.out { background: var(--out-soft); } .txr .ic.tr { background: var(--tr-soft); }
.txr .d { min-width: 0; }
.txr .d b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txr .d > span { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 7px; align-items: center; min-width: 0; }
.txr .d .kn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txr .d .via, .txr .d .badge, .txr .d svg { flex: none; }
.txr .a { text-align: right; font-weight: 800; font-size: 15px; }
.txr .a small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.date-sep { padding: 14px 22px 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); border-top: 1px solid var(--hair); letter-spacing: .01em; }
.date-sep:first-child { border-top: 0; }

.table-wrap { overflow-x: auto; position: relative; z-index: 2; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: 11px 14px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
table.t td { padding: 10px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t .r { text-align: right; }
table.t tfoot td { font-weight: 800; background: var(--brand-soft); border-top: 1px solid var(--hair-2); }
table.t tr.clickable { cursor: pointer; }
table.t tr.clickable:hover td { background: var(--glass-hi); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .input { width: auto; }
.filters .search { flex: 1; min-width: 210px; position: relative; }
.filters .search .input { width: 100%; padding-left: 38px; }
.filters .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--ink-3); }
.sumline { display: flex; gap: 22px; flex-wrap: wrap; padding: 14px 22px; border-bottom: 1px solid var(--hair); font-size: 13px; color: var(--ink-2); position: relative; z-index: 2; }
.sumline b { font-size: 15px; }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(5, 14, 34, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; animation: fade .2s ease; }
.overlay.out { animation: fade .18s ease reverse forwards; }
.modal { width: 100%; max-width: 560px; background: var(--glass-solid); border-radius: 26px; box-shadow: var(--inner), var(--shadow-lg); animation: pop .32s cubic-bezier(.2, .9, .25, 1.1); }
.modal.wide { max-width: 760px; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 20px 24px 4px; }
.modal-h h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; flex: 1; }
.modal-b { padding: 14px 24px 22px; }
.modal-f { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 24px 20px; border-top: 1px solid var(--hair); }
.modal-f .left { margin-right: auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes up { from { opacity: 0; transform: translateY(12px); } }

/* pilihan catat */
.chooser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice { --c: var(--brand-ink); --cs: var(--brand-soft); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; padding: 18px 16px 16px; border-radius: 20px; border: 1px solid var(--hair); background: var(--glass-hi); cursor: pointer; transition: transform .25s cubic-bezier(.2, .8, .2, 1.2), border-color .2s, box-shadow .25s; animation: up .4s cubic-bezier(.2, .7, .2, 1) both; }
.choice:nth-child(2) { animation-delay: .06s; } .choice:nth-child(3) { animation-delay: .12s; }
.choice:hover, .choice:focus-visible { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--c) 70%, transparent); }
.choice::before { content: ""; position: absolute; width: 140px; height: 140px; right: -50px; top: -60px; border-radius: 50%; background: var(--cs); transition: transform .4s; }
.choice:hover::before { transform: scale(1.35); }
.choice .ci { position: relative; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--cs); color: var(--c); }
.choice .ci svg { width: 23px; height: 23px; }
.choice > div { position: relative; display: flex; flex-direction: column; gap: 3px; }
.choice b { position: relative; font-size: 15.5px; letter-spacing: -.01em; }
.choice span { position: relative; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.choice kbd { position: absolute; right: 12px; bottom: 10px; font: 700 11px var(--font); color: var(--ink-3); border: 1px solid var(--hair-2); border-radius: 6px; padding: 1px 6px; }
.choice.in { --c: var(--in); --cs: var(--in-soft); }
.choice.out { --c: var(--out); --cs: var(--out-soft); }
.choice.tr { --c: var(--tr); --cs: var(--tr-soft); }
.form-head { display: flex; align-items: center; gap: 12px; margin: -2px 0 2px; }
.form-head .ci { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; }
.form-head .ci svg { width: 20px; height: 20px; }
.form-head .ci.in { background: var(--in-soft); color: var(--in); } .form-head .ci.out { background: var(--out-soft); color: var(--out); } .form-head .ci.tr { background: var(--tr-soft); color: var(--tr); }
.form-head b { font-size: 16px; display: block; }
.form-head > span:not(.ci) { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.form-head .btn { margin-left: auto; }
.viapick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.viapick button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--hair-2); background: var(--field); cursor: pointer; text-align: left; transition: border-color .2s, background .2s, transform .15s; }
.viapick button:hover { transform: translateY(-1px); }
.viapick button .vi { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.viapick button .vi svg { width: 18px; height: 18px; }
.viapick button b { display: block; font-size: 14px; }
.viapick button small { color: var(--ink-3); font-size: 11.5px; }
.viapick button.on { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px var(--gold-soft); }
.viapick button.on .vi { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #241800; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.flow .arrow { width: 36px; height: 42px; display: grid; place-items: center; color: var(--tr); }
.flow .arrow svg { width: 20px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chips button { height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--hair-2); background: var(--field); font-size: 12.5px; font-weight: 650; color: var(--ink-2); cursor: pointer; transition: background .15s, transform .15s; }
.chips button:hover { background: var(--gold-soft); transform: translateY(-1px); }

.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; background: var(--glass-solid); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-brd); color: var(--ink); padding: 11px 18px; border-radius: 14px; font-weight: 650; font-size: 14px; box-shadow: var(--shadow-lg); animation: pop .3s cubic-bezier(.2, .9, .25, 1.1); }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--in); box-shadow: 0 0 0 4px var(--in-soft); }
.toast.err::before { background: var(--danger); box-shadow: 0 0 0 4px var(--out-soft); }

.dropzone { border: 1.5px dashed var(--hair-2); border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; color: var(--ink-2); font-size: 13.5px; background: var(--field); transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: var(--gold-soft); }
.dropzone svg { width: 22px; color: var(--gold); flex: none; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: 14px; border: 1px solid var(--hair); overflow: hidden; background: var(--field); display: grid; place-items: center; font-size: 11px; color: var(--ink-3); text-align: center; cursor: pointer; transition: transform .2s; }
.thumb:hover { transform: scale(1.04); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 13px; line-height: 1; }

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 14px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.member { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); }
.member:first-child { border-top: 0; }
.member .who { flex: 1; min-width: 0; }
.member .who b { display: block; }
.member .who span { font-size: 12.5px; color: var(--ink-3); }

.loader { display: grid; place-items: center; min-height: 50vh; color: var(--ink-3); }
.spin { width: 28px; height: 28px; border: 3px solid var(--hair-2); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { border-radius: 12px; background: linear-gradient(90deg, var(--hair) 25%, var(--glass-hi) 50%, var(--hair) 75%); background-size: 300% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -150% 0; } }

.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.colors button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform .15s; }
.colors button:hover { transform: scale(1.12); }
.colors button.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }

/* ---------- masuk / daftar ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; padding: 28px; }
.auth-art { color: #fff; padding: 44px; border-radius: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
  background: radial-gradient(90% 80% at 100% 0%, rgba(247, 200, 85, .32), transparent 50%), radial-gradient(80% 90% at 0% 100%, rgba(80, 140, 255, .4), transparent 55%), linear-gradient(140deg, #0A2A5E, #0F3878 60%, #081F47); }
.auth-art::after { content: ""; position: absolute; right: -90px; top: -90px; width: 360px; height: 360px; border-radius: 50%; border: 1.5px solid rgba(247, 200, 85, .3); box-shadow: 0 0 0 40px rgba(247, 200, 85, .05), 0 0 0 84px rgba(247, 200, 85, .03); }
.auth-art img { height: 64px; width: auto; align-self: flex-start; position: relative; z-index: 1; }
.auth-art h2 { font-size: 36px; line-height: 1.12; letter-spacing: -.035em; max-width: 460px; margin: 0; position: relative; z-index: 1; }
.auth-art p { color: rgba(255, 255, 255, .8); max-width: 430px; position: relative; z-index: 1; }
.auth-form { display: grid; place-items: center; padding: 20px 0; }
.auth-card { width: 100%; max-width: 420px; padding: 32px 30px; border-radius: 28px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.03em; }
.auth-card .m-logo { height: 52px; width: auto; align-self: center; margin-bottom: 6px; display: none; }
.err { color: var(--danger); font-size: 13.5px; font-weight: 600; }
.err:empty { display: none; }
.mini-ledger { position: relative; z-index: 1; background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 14px 18px; max-width: 430px; font-size: 13.5px; }
.mini-ledger div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, .18); }
.mini-ledger div:last-child { border: 0; font-weight: 800; color: #F7C855; }

/* ---------- ponsel ---------- */
.tabbar { display: none; }
.fab-menu { display: none; }
@media (max-width: 1080px) { .dash { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .side.open { display: flex; position: fixed; inset: 10px auto 10px 10px; height: auto; width: 284px; margin: 0; z-index: 150; background: var(--glass-solid); animation: slide .28s cubic-bezier(.2, .8, .2, 1); }
  @keyframes slide { from { transform: translateX(-110%); } }
  .scrim { position: fixed; inset: 0; background: rgba(5, 14, 34, .4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 140; animation: fade .2s; }
  .top { padding: 12px 14px; }
  .top h1 { font-size: 19px; }
  .page { padding: 4px 14px 120px; }
  .demo-bar { padding: 8px 16px; }
  .hero-bal { grid-template-columns: 1fr 1fr; }
  .hero-bal .main-cell { grid-column: 1 / -1; }
  .hero-bal > div + div { border-left: 0; }
  .hero-bal > div:nth-child(3) { border-left: 1px solid var(--hair); }
  .hero-bal .big { font-size: 32px; }
  .hero-bal .mid { font-size: 18px; }
  .hero-bal > div { padding: 16px 18px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .txr { padding: 12px 16px; }
  .panel-h { padding: 16px 16px 0; }
  .panel-b { padding: 14px 16px 16px; }
  .chooser { grid-template-columns: 1fr; gap: 10px; }
  .choice { flex-direction: row; align-items: center; padding: 14px; }
  .choice > div { display: flex; flex-direction: column; }
  .choice kbd { display: none; }
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); justify-self: center; height: 24px; }
  .tabbar { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 90; }
  .tabbar-in { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border-radius: 24px; padding: 7px 6px; background: var(--glass-solid); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 650; color: var(--ink-3); background: none; border: 0; padding: 4px 0; cursor: pointer; transition: color .2s; }
  .tabbar a.on { color: var(--brand-ink); }
  .tabbar a.on svg { transform: translateY(-1px); }
  .tabbar svg { width: 22px; height: 22px; transition: transform .2s; }
  .tabbar .fab { width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #241800; display: grid; place-items: center; margin: -26px auto 0; box-shadow: 0 14px 28px -10px rgba(224, 161, 27, .8), inset 0 1px 0 rgba(255, 255, 255, .5); transition: transform .3s cubic-bezier(.2, .9, .25, 1.3); }
  .tabbar .fab svg { width: 26px; height: 26px; color: #241800; }
  .tabbar .fab.open { transform: rotate(135deg); }
  .fab-menu { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(5, 14, 34, .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .2s; }
  .fab-menu .list { position: absolute; left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
  .fab-menu .choice { background: var(--glass-solid); animation: fabin .34s cubic-bezier(.2, .9, .25, 1.15) both; }
  .fab-menu .choice:nth-child(1) { animation-delay: .1s; } .fab-menu .choice:nth-child(2) { animation-delay: .05s; } .fab-menu .choice:nth-child(3) { animation-delay: 0s; }
  @keyframes fabin { from { opacity: 0; transform: translateY(30px) scale(.94); } }
  .top .hide-m { display: none; }
  .top .m-logo { display: block; }
  .overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: 26px 26px 0 0; max-height: 94vh; overflow-y: auto; animation: sheet .34s cubic-bezier(.2, .8, .2, 1); }
  @keyframes sheet { from { transform: translateY(100%); } }
  .auth { grid-template-columns: 1fr; padding: 16px; }
  .auth-art { display: none; }
  .auth-card { padding: 26px 20px; }
  .auth-card .m-logo { display: block; }
  .kv { grid-template-columns: 112px 1fr; }
  .toasts { bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .side, .top, .tabbar { display: none !important; } body::before, body::after { display: none; } }
