/* kucatat — gaya tampilan */
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url(fonts/Poppins-Regular.woff) format('woff'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(fonts/Poppins-Medium.woff) format('woff'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url(fonts/Poppins-Bold.woff) format('woff'); }

:root {
  --g1: #22D3A0; --g2: #0FA3A3; --g3: #0A6FA8;
  --ink: #073B4C; --ink2: #3D5F6C; --muted: #7C949E; --line: #E3EDF0;
  --bg: #F1F7F7; --card: #FFFFFF;
  --coin: #FFB020; --orange: #FF7A1A; --yellow: #FFE066;
  --out: #EF5A4F; --in: #12B886;
  --r: 20px; --shadow: 0 6px 24px rgba(7, 59, 76, .08);
  --grad: linear-gradient(135deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; }
a { color: var(--g2); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hidden { display: none !important; }

/* ---------- tombol & form ---------- */
.btn { border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .1s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(15, 163, 163, .35); }
.btn-coin { background: linear-gradient(135deg, var(--yellow), var(--coin) 55%, var(--orange)); color: #4A2600; }
.btn-ghost { background: #E8F4F4; color: var(--ink); }
.btn-danger { background: #FDECEB; color: var(--out); }
.btn-block { width: 100%; }
.btn-small { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--ink2); margin: 0 0 12px; }
label small { color: var(--muted); font-weight: 400; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; outline: none; transition: border .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--g2); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.alert { padding: 10px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 12px; }
.alert-err { background: #FDECEB; color: #B42318; }
.alert-ok { background: #E3F9EF; color: #087443; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }

/* ---------- halaman masuk/daftar ---------- */
body.auth { min-height: 100vh; background: #0FA3A3; position: relative; }
body.auth::before { content: ''; position: fixed; inset: 0; background: url(img/bg.jpg) center top / cover no-repeat; z-index: -1; }
.auth-wrap { max-width: 420px; margin: 0 auto; padding: 28px 18px 40px; }
.auth-brand { text-align: center; color: #E9FFF8; margin: 8px 0 18px; }
.auth-brand img { width: 190px; height: auto; filter: drop-shadow(0 8px 20px rgba(4, 51, 74, .3)); }
.auth-brand p { margin: 4px 0 0; font-weight: 500; }
.auth-card { padding: 24px 20px; }
.auth-card h1 { margin: 0 0 6px; font-size: 22px; }
.auth-card .muted { margin: 0 0 16px; font-size: 13.5px; }
.auth-links { display: flex; flex-direction: column; gap: 10px; text-align: center; margin-top: 16px; font-size: 14px; font-weight: 500; }
.auth-foot { text-align: center; color: rgba(255, 255, 255, .8); font-size: 12.5px; margin-top: 18px; }
.auth-foot a { color: #fff; }
.code-input { text-transform: uppercase; letter-spacing: 4px; font-weight: 700; text-align: center; font-size: 20px; }
.doc-card { padding: 22px; } .doc-card h3 { margin: 18px 0 4px; font-size: 15px; } .doc-card p { margin: 0; color: var(--ink2); font-size: 14px; }
.back { font-weight: 600; font-size: 14px; }

/* ---------- kerangka aplikasi ---------- */
.app { max-width: 520px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(96px + var(--safe-b)); position: relative; }
.topbar { background: var(--grad); color: #fff; padding: 16px 18px 70px; border-radius: 0 0 30px 30px; position: relative; overflow: hidden; }
.topbar::before { content: ''; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 224, 102, .55), transparent 70%); }
.topbar::after { content: ''; position: absolute; left: -40px; bottom: -90px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.top-row { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.brand-mini { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; letter-spacing: -.3px; }
.brand-mini img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.brand-mini .ku { color: var(--yellow); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; border: 2px solid rgba(255, 255, 255, .7); flex: none; font-size: 15px; }
.hello { position: relative; z-index: 1; margin-top: 14px; }
.hello small { opacity: .85; }
.hello h2 { margin: 0; font-size: 19px; font-weight: 600; }
.month-nav { display: flex; align-items: center; gap: 6px; position: relative; z-index: 1; margin-top: 12px; }
.month-nav button { background: rgba(255, 255, 255, .18); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 10px; font-size: 18px; cursor: pointer; }
.month-nav span { font-weight: 600; min-width: 130px; text-align: center; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; position: relative; z-index: 1; margin-top: 10px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.chip.on { background: #fff; color: var(--ink); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.content { padding: 0 16px; margin-top: -56px; position: relative; z-index: 2; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 22px 4px 10px; }
.section-title h3 { margin: 0; font-size: 16px; }
.section-title a, .section-title button { font-size: 13px; font-weight: 600; background: none; border: 0; color: var(--g2); cursor: pointer; }

/* ---------- kartu saldo ---------- */
.balance { padding: 18px; position: relative; overflow: hidden; }
.balance .lbl { font-size: 13px; color: var(--muted); }
.balance .big { font-size: 30px; font-weight: 700; letter-spacing: -.5px; margin: 2px 0 12px; }
.balance .big.neg { color: var(--out); }
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.io > div { background: #F4F9F9; border-radius: 14px; padding: 10px 12px; }
.io .t { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.io .v { font-weight: 700; font-size: 16px; }
.io .in .v { color: var(--in); } .io .out .v { color: var(--out); }
.arrow { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; color: #fff; }
.arrow.in { background: var(--in); } .arrow.out { background: var(--out); }
.compare { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.compare b.up { color: var(--out); } .compare b.down { color: var(--in); }

/* ---------- aksi cepat ---------- */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.quick button { border: 0; background: #fff; border-radius: 18px; padding: 14px 6px 12px; box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.quick .qi { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; }
.qi.mic { background: linear-gradient(135deg, #FF8A65, #FF5C9A); } .qi.cam { background: linear-gradient(135deg, var(--yellow), var(--orange)); } .qi.pen { background: linear-gradient(135deg, #7DD3FC, #6366F1); }
.qi svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- saran AI ---------- */
.ai-card { margin-top: 14px; padding: 16px; display: flex; gap: 14px; align-items: center; background: linear-gradient(120deg, #073B4C, #0A6FA8); color: #fff; border-radius: var(--r); box-shadow: var(--shadow); cursor: pointer; border: 0; width: 100%; text-align: left; }
.ai-card .spark { font-size: 30px; flex: none; }
.ai-card b { display: block; font-size: 15px; }
.ai-card small { opacity: .8; font-size: 12.5px; }
.ai-card .go { margin-left: auto; background: var(--yellow); color: #4A2600; border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 13px; flex: none; }

/* ---------- grafik ---------- */
.chart-card { padding: 16px; }
.donut-wrap { display: flex; gap: 14px; align-items: center; }
.donut { width: 150px; height: 150px; flex: none; position: relative; }
.donut .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .center b { font-size: 15px; } .donut .center small { font-size: 11px; color: var(--muted); }
.legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.legend div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend .pc { font-weight: 600; color: var(--ink2); }
.empty { text-align: center; color: var(--muted); padding: 22px 10px; font-size: 14px; }
.empty .em { font-size: 34px; display: block; margin-bottom: 4px; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .pair { display: flex; gap: 3px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bars .b { width: 40%; max-width: 16px; border-radius: 6px 6px 3px 3px; min-height: 3px; transition: height .5s; }
.bars .b.in { background: var(--in); } .bars .b.out { background: var(--out); }
.bars .lb { font-size: 11px; color: var(--muted); }
.bars .col.cur .lb { color: var(--ink); font-weight: 700; }
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; justify-content: center; }
.chart-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; background: var(--c); }

/* ---------- anggaran ---------- */
.budget { padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.budget + .budget { border-top: 1px solid var(--line); }
.cat-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; flex: none; }
.budget .info { flex: 1; min-width: 0; }
.budget .top { display: flex; justify-content: space-between; font-size: 14px; gap: 8px; }
.budget .top b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog { height: 8px; background: #EAF1F3; border-radius: 99px; overflow: hidden; margin: 7px 0 4px; }
.prog i { display: block; height: 100%; border-radius: 99px; background: var(--in); transition: width .6s; }
.prog i.warn { background: var(--coin); } .prog i.over { background: var(--out); }
.budget .sub { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.budget input { width: 118px; flex: none; margin: 0; padding: 8px 10px; text-align: right; font-weight: 600; }

/* ---------- daftar transaksi ---------- */
.list { overflow: hidden; }
.trx { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }
.trx + .trx { border-top: 1px solid var(--line); }
.trx .info { flex: 1; min-width: 0; }
.trx .nt { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trx .mt { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.trx .amt { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.trx .amt.in { color: var(--in); } .trx .amt.out { color: var(--ink); }
.src { font-size: 10.5px; padding: 1px 7px; border-radius: 99px; background: #EEF5F6; color: var(--ink2); }
.who { display: inline-flex; align-items: center; gap: 4px; }
.who i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.day-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin: 16px 6px 6px; font-weight: 500; }
.filters { display: flex; gap: 8px; margin-top: 4px; }
.seg { display: flex; background: #fff; border-radius: 14px; padding: 4px; box-shadow: var(--shadow); }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--ink); color: #fff; }
.search { flex: 1; margin: 0; box-shadow: var(--shadow); border: 0; border-radius: 14px; padding: 11px 14px; }

/* ---------- navigasi bawah ---------- */
.bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; background: #fff; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 8px 8px calc(8px + var(--safe-b)); box-shadow: 0 -6px 24px rgba(7, 59, 76, .08); border-radius: 24px 24px 0 0; z-index: 20; }
.bottom-nav button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--muted); cursor: pointer; padding: 4px 0; }
.bottom-nav button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav button.on { color: var(--g2); }
.bottom-nav .mic-btn { position: relative; top: -22px; }
.bottom-nav .mic-btn span.ring { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #FF8A65, #FF5C9A); box-shadow: 0 10px 22px rgba(255, 92, 154, .45); border: 5px solid #fff; }
.bottom-nav .mic-btn svg { stroke: #fff; width: 28px; height: 28px; }
.bottom-nav .mic-btn b { color: var(--ink); font-weight: 600; margin-top: 2px; }

/* ---------- lembar bawah (sheet) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(4, 30, 40, .45); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 50%; bottom: 0; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0; z-index: 50; transform: translate(-50%, 105%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .9, .3, 1), visibility 0s .3s; padding: 10px 18px calc(22px + var(--safe-b)); }
.sheet.show { transform: translate(-50%, 0); visibility: visible; transition: transform .3s cubic-bezier(.2, .9, .3, 1); }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: #D5E2E6; margin: 0 auto 12px; }
.sheet h3 { margin: 0 0 14px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.sheet .x { margin-left: auto; border: 0; background: #EEF5F6; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.type-toggle { display: grid; grid-template-columns: 1fr 1fr; background: #F1F6F7; border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.type-toggle button { border: 0; background: none; padding: 10px; border-radius: 11px; font-weight: 600; cursor: pointer; color: var(--muted); }
.type-toggle button.on.out { background: var(--out); color: #fff; } .type-toggle button.on.in { background: var(--in); color: #fff; }
.amount-input { font-size: 30px; font-weight: 700; text-align: center; border: 0; border-bottom: 2px solid var(--line); border-radius: 0; padding: 6px; }
.amount-input:focus { border-color: var(--g2); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 14px; }
.cat-grid button { border: 1.5px solid transparent; background: #F4F9F9; border-radius: 14px; padding: 8px 4px; font-size: 11px; font-weight: 500; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1.2; color: var(--ink2); min-height: 66px; }
.cat-grid button .e { font-size: 21px; }
.cat-grid button.on { border-color: var(--g2); background: #E3F6F4; color: var(--ink); font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 6px; }
.sheet-actions .btn { flex: 1; }
.items-box { background: #F6FAFA; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.items-box div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.items-box summary { cursor: pointer; font-weight: 600; }
.receipt-thumb { width: 100%; max-height: 200px; object-fit: cover; object-position: top; border-radius: 14px; margin-bottom: 12px; }

/* ---------- perekam suara ---------- */
.voice-stage { text-align: center; padding: 6px 0 4px; }
.pulse { width: 110px; height: 110px; border-radius: 50%; margin: 6px auto 14px; display: grid; place-items: center; background: linear-gradient(135deg, #FF8A65, #FF5C9A); border: 0; cursor: pointer; position: relative; }
.pulse svg { width: 46px; height: 46px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pulse.live::before, .pulse.live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #FF5C9A; opacity: .35; animation: ping 1.6s infinite; z-index: -1; }
.pulse.live::after { animation-delay: .8s; }
@keyframes ping { from { transform: scale(1); opacity: .45; } to { transform: scale(1.7); opacity: 0; } }
.transcript { min-height: 54px; background: #F6FAFA; border-radius: 14px; padding: 12px; font-size: 15px; text-align: left; color: var(--ink); }
.transcript i { color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 12px; }
.parsed { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 12px; }
.parsed .pi { border: 1.5px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.parsed .pi .r { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.parsed .pi input, .parsed .pi select { margin-top: 4px; padding: 9px 10px; font-size: 14px; }
.parsed .pi .hd { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; }
.parsed .pi .hd button { border: 0; background: none; color: var(--out); font-size: 13px; cursor: pointer; }
.tag-in { color: var(--in); } .tag-out { color: var(--out); }

/* ---------- saran ---------- */
.score { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.score .ring { width: 78px; height: 78px; flex: none; position: relative; }
.score .ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; }
.tip { display: flex; gap: 12px; padding: 12px; background: #F6FAFA; border-radius: 16px; margin-bottom: 10px; }
.tip .ic { font-size: 24px; flex: none; }
.tip b { display: block; font-size: 14px; }
.tip p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink2); }
.loading { text-align: center; padding: 26px 0; color: var(--muted); }
.spinner { width: 42px; height: 42px; border: 4px solid #E3EDF0; border-top-color: var(--g2); border-radius: 50%; margin: 0 auto 12px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- keluarga ---------- */
.fam-card { padding: 16px; }
.invite { display: flex; gap: 10px; align-items: center; background: #F6FAFA; border-radius: 14px; padding: 12px; margin-top: 10px; }
.invite code { font-size: 22px; font-weight: 700; letter-spacing: 3px; flex: 1; font-family: inherit; }
.member { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.member + .member { border-top: 1px solid var(--line); }
.member .info { flex: 1; min-width: 0; }
.member .info b { display: block; font-size: 14px; }
.member .info small { color: var(--muted); }
.member select { width: auto; margin: 0; padding: 6px 8px; font-size: 13px; }
.role { font-size: 11px; padding: 2px 8px; border-radius: 99px; font-weight: 600; }
.role.admin { background: #FFF1D6; color: #9A5B00; } .role.dewasa { background: #E3F6F4; color: #0B7A75; } .role.anak { background: #EDE9FE; color: #6D28D9; }
.quota-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.quota-row div { background: #F6FAFA; border-radius: 14px; padding: 10px; text-align: center; font-size: 12px; color: var(--muted); }
.quota-row b { display: block; font-size: 17px; color: var(--ink); }
.menu-list { overflow: hidden; }
.menu-list button, .menu-list a { display: flex; width: 100%; border: 0; background: none; padding: 14px 16px; gap: 12px; align-items: center; font-weight: 500; color: var(--ink); cursor: pointer; text-align: left; font-size: 14.5px; }
.menu-list > * + * { border-top: 1px solid var(--line); }
.foot-credit { text-align: center; font-size: 12px; color: var(--muted); margin: 26px 0 8px; }

/* ---------- notifikasi ---------- */
.toast { position: fixed; left: 50%; bottom: calc(110px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 14px; z-index: 90; opacity: 0; transition: all .25s; max-width: 90%; text-align: center; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #B42318; }

/* ---------- halaman pemilik ---------- */
body.owner { background: var(--bg); }
.owner-wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }
.owner-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { padding: 16px; } .stat b { font-size: 24px; display: block; } .stat span { color: var(--muted); font-size: 13px; }
.table-card { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: #F6FAFA; font-weight: 600; font-size: 12.5px; }
.plan-form { display: flex; gap: 6px; flex-wrap: wrap; }
.plan-form select, .plan-form input { width: auto; margin: 0; padding: 6px 8px; font-size: 13px; }

@media (min-width: 560px) {
  body:not(.auth):not(.owner) { background: #E4EFF0; }
  .app { background: var(--bg); box-shadow: 0 0 40px rgba(7, 59, 76, .08); }
}

/* ---------- langganan ---------- */
.plan-banner { display: block; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: #FFF4DB; color: #7A4A00; font-size: 13.5px; box-shadow: var(--shadow); }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.status-pill.sm { padding: 2px 9px; font-size: 11px; margin: 4px 0 0; }
.st-menunggu { background: #FFF1D6; color: #9A5B00; } .st-aktif, .st-diterima { background: #E3F9EF; color: #087443; }
.st-diblokir, .st-ditolak { background: #FDECEB; color: #B42318; }
.sub-h { font-size: 15px; margin: 18px 0 10px; color: var(--ink); }
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.po-row { flex-direction: row !important; align-items: center; justify-content: space-between; gap: 10px; }
.po-row .pl { display: flex; flex-direction: column; gap: 2px; } .po-row .price { white-space: nowrap; text-align: right; }
.dur-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.plan-opt { margin: 0; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt .po { display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--line); border-radius: 16px; padding: 12px; height: 100%; color: var(--ink2); transition: all .15s; }
.plan-opt .po b { color: var(--ink); font-size: 15px; }
.plan-opt .po small { font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.plan-opt .price { font-weight: 700; color: var(--g2); font-size: 16px; } .plan-opt .price small { font-weight: 400; }
.plan-opt input:checked + .po { border-color: var(--g2); background: #E9F8F6; box-shadow: 0 4px 14px rgba(15, 163, 163, .18); }
.po-s { align-items: center; text-align: center; padding: 10px 4px; } .po-s b { font-size: 13.5px !important; }
.disc { color: #087443 !important; font-weight: 600; }
.total-box { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px; margin-top: 12px; }
.total-box b { font-size: 20px; color: var(--yellow); }
.rek { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1.5px dashed var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.rek div { display: flex; flex-direction: column; } .rek b { font-size: 17px; letter-spacing: .5px; } .rek small { color: var(--muted); font-size: 12px; }
.pay-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 13.5px; } .pay-row + .pay-row { border-top: 1px solid var(--line); }

/* ---------- panel admin ---------- */
.adm { min-height: 100vh; }
.adm-top { background: var(--ink); color: #fff; padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; }
.adm-brand { display: flex; align-items: center; gap: 10px; }
.adm-brand img { width: 38px; height: 38px; border-radius: 11px; }
.adm-brand b { font-size: 19px; display: block; line-height: 1.1; } .adm-brand .ku { color: var(--yellow); }
.adm-brand small { opacity: .7; font-size: 12px; }
.adm-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.adm-nav a { color: #CFE3EA; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.adm-nav a.on { background: rgba(255, 255, 255, .14); color: #fff; }
.adm-nav a.out { color: var(--yellow); }
.adm-nav .nb { font-style: normal; background: var(--orange); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; margin-left: 2px; }
.adm-main { max-width: 1200px; margin: 0 auto; padding: 18px 18px 30px; }
.adm-h { font-size: 21px; margin: 4px 0 14px; } .adm-h2 { font-size: 17px; margin: 26px 0 10px; }
.stats a.stat { color: inherit; } .stat.warn b { color: var(--orange); } .stat.money b { color: var(--in); font-size: 21px; }
.stat small { font-size: 11.5px; }
.adm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.adm-card { padding: 16px 18px; } .adm-card h2 { font-size: 16px; margin: 0 0 10px; }
.adm-card .li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; }
.adm-card .li + .li { border-top: 1px solid var(--line); }
.adm-filter { display: flex; gap: 8px; padding: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.adm-filter input, .adm-filter select { margin: 0; width: auto; flex: 1; min-width: 160px; padding: 9px 12px; }
.adm-filter button { flex: none; }
.verify { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px; margin-bottom: 14px; }
.proof a { display: block; position: relative; }
.proof img { width: 100%; height: 260px; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--line); background: #F6FAFA; }
.proof span { position: absolute; left: 8px; bottom: 8px; background: rgba(7, 59, 76, .8); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 8px; }
.noproof { height: 100%; min-height: 140px; display: grid; place-content: center; text-align: center; background: #F6FAFA; border-radius: 14px; color: var(--muted); }
.vh { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; } .vh h3 { margin: 0; font-size: 17px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 12px 0; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; } .kv .amt { font-size: 17px; color: var(--in); }
.warn-t { color: var(--orange); font-weight: 600; }
.vact { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.vact form { width: 100%; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.inline-form select, .inline-form input { width: auto; margin: 0; padding: 7px 9px; font-size: 13.5px; }
.stack { display: flex; flex-direction: column; gap: 8px; } .stack select, .stack input { margin: 0; }
.stack .btn { align-self: flex-start; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.tc-h { font-size: 16px; margin: 0; padding: 14px 16px 6px; }
.danger { border: 1.5px solid #F8C9C4; } .danger h2 { color: var(--out); }
@media (max-width: 700px) {
  .verify { grid-template-columns: 1fr; } .proof img { height: 200px; }
  .kv { grid-template-columns: 110px 1fr; }
  .adm-main { padding: 14px 12px 30px; }
}
