/* Kalem v2 · tema Kebun · bahasa visual sama dengan Rutin (Poppins, kartu putih, pil, navbar mengambang) */
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url('../fonts/poppins-700.woff2') format('woff2'); }
:root {
  --font: 'Poppins', system-ui, sans-serif;
  --kanvas: #f4f2ea; --paper: #fff; --soft: #eef0e8; --rule: #e6e4da;
  --ink: #1c1c1b; --ink-2: #4a4a46; --ink-3: #74746e;
  --daun: #1f8a5b; --daun-tua: #136b44; --daun-l: #e2f3e9; --daun-t: #146c47;
  --emas: #e3a21a; --emas-l: #fff3d6; --emas-t: #8a5a00;
  --merah: #d65a3c; --merah-l: #fde9e4; --merah-t: #b5432c;
  --biru-l: #e4eefc; --biru-t: #2a5db0;
  --r: 18px; --pil: 999px;
  --bawah: 0px; /* tinggi navbar + bar ketik di HP */
  --aman-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--kanvas); color: var(--ink); font-size: 15px; line-height: 1.45; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
.angka { font-variant-numeric: tabular-nums; }
.potong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- kerangka ---------- */
.kerangka { min-height: 100dvh; }
.samping { display: none; }
main { max-width: 560px; margin: 0 auto; padding: 14px 16px calc(176px + var(--aman-b)); }
.hal-judul { display: flex; align-items: center; gap: 10px; padding: 6px 2px 14px; min-height: 52px; }
.hal-judul h1 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.hal-judul .kanan { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.kembali { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--rule); margin-left: -2px; }
.pil-lv { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: var(--pil); background: var(--paper); border: 1px solid var(--rule); font-size: 13px; font-weight: 600; color: var(--daun-t); white-space: nowrap; }
.pil-lv b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 8px; background: linear-gradient(160deg, #3fbf82, #15784a); color: #fff; font-size: 12px; }

/* navbar HP (pil mengambang ala Rutin) */
.nav { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--aman-b)); z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 4px 6px; max-width: 540px; margin: 0 auto;
  background: rgba(255,255,255,.96); border: 1px solid var(--rule); border-radius: 26px; box-shadow: 0 8px 24px rgba(0,0,0,.08); backdrop-filter: blur(8px); }
.nb { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 58px; justify-content: center; font-size: 12px; font-weight: 500; color: var(--ink-3); position: relative; text-decoration: none; }
.nb svg.i { width: 24px; height: 24px; stroke-width: 1.9; }
.nb.aktif { color: var(--daun-t); font-weight: 600; }
.nb.aktif::after { content: ''; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.nb.tengah .bulat { width: 54px; height: 54px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2aa26b, var(--daun-tua)); color: #fff; box-shadow: 0 8px 18px rgba(19,107,68,.35), 0 0 0 5px var(--kanvas); }
.nb.tengah.aktif { color: var(--daun-t); font-weight: 600; }
.kembali { color: var(--ink); }
.nb.tengah.aktif::after { display: none; }

/* bar ketik cepat (di atas navbar) */
.tulis { position: fixed; left: 12px; right: 12px; bottom: calc(92px + var(--aman-b)); z-index: 29; max-width: 540px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--pil); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.tulis input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; padding: 8px 0; }
.tulis input::placeholder { color: var(--ink-3); }
.btn-bulat { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.mic { color: var(--daun-t); background: var(--daun-l); }
.mic.dengar { background: var(--merah); color: #fff; animation: denyut 1s ease-in-out infinite; }
@keyframes denyut { 50% { box-shadow: 0 0 0 8px rgba(214,90,60,.2); } }
.plus { background: var(--daun); color: #fff; width: 46px; height: 46px; }
.tulis .pratinjau { position: absolute; left: 14px; right: 14px; bottom: calc(100% + 8px); padding: 10px 14px; border-radius: 14px; background: #1c2a22; color: #fff; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.2); display: flex; gap: 8px; align-items: center; }
.tulis .pratinjau b { color: #9be3b9; }
.tulis .pratinjau .enter { margin-left: auto; font-size: 11px; opacity: .75; white-space: nowrap; }

/* ---------- elemen umum ---------- */
.kartu { background: var(--paper); border-radius: var(--r); padding: 16px 18px; margin-top: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.judul { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; color: var(--daun-t); text-transform: uppercase; }
.judul::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--daun); flex: none; }
.judul.emas { color: var(--emas-t); } .judul.emas::before { background: var(--emas); }
.judul.polos::before { display: none; }
.judul .kanan { margin-left: auto; letter-spacing: 0; font-weight: 600; color: var(--ink-3); font-size: 13px; text-transform: none; white-space: nowrap; }
a.kanan, button.kanan { color: var(--daun-t) !important; text-decoration: none; }
.sek { display: flex; align-items: center; margin: 22px 4px 10px; font-size: 13px; font-weight: 700; letter-spacing: 1.8px; color: var(--daun-t); text-transform: uppercase; }
.sek .kanan { margin-left: auto; letter-spacing: 0; font-weight: 600; color: var(--ink-3); font-size: 13px; text-transform: none; }
.baris { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); width: 100%; text-align: left; }
.baris:last-child { border-bottom: 0; }
button.baris:active, .ketukan:active { opacity: .7; }
.ik { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ik svg.i { width: 20px; height: 20px; }
.isi { flex: 1; min-width: 0; }
.nama { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp { font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp.masuk { color: var(--daun); } .rp.netral { color: var(--ink-3); }
.grup { display: flex; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--ink-3); margin-top: 14px; text-transform: uppercase; }
.grup span { margin-left: auto; letter-spacing: 0; font-weight: 600; }
.chip { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--pil); white-space: nowrap; background: var(--soft); color: var(--ink-3); }
.chip.emas { background: var(--emas-l); color: var(--emas-t); } .chip.merah { background: var(--merah-l); color: var(--merah-t); } .chip.hijau { background: var(--daun-l); color: var(--daun-t); }
.tombol { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 20px; border-radius: 16px; background: var(--daun); color: #fff; font-weight: 600; font-size: 16px; width: 100%; }
.tombol.kedua { background: var(--daun-l); color: var(--daun-t); }
.tombol.garis { background: var(--paper); color: var(--ink-2); border: 1.5px solid var(--rule); }
.tombol.merah { background: var(--merah); } .tombol.bahaya { background: var(--paper); color: var(--merah-t); border: 1.5px solid #f3c9bf; }
.tombol.emas { background: linear-gradient(180deg, #f5b833, #e3a21a); box-shadow: 0 4px 0 #b57c06; }
.tombol.emas:active { transform: translateY(3px); box-shadow: 0 1px 0 #b57c06; }
.tombol.kecil { height: 40px; font-size: 14px; border-radius: 12px; width: auto; padding: 0 14px; }
.tombol:disabled { opacity: .45; }
.dua { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kosong { text-align: center; padding: 26px 12px; color: var(--ink-3); font-size: 14px; }
.kosong svg { width: 90px; height: 80px; display: block; margin: 0 auto 8px; }
.kosong b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.ket { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.bar { height: 8px; border-radius: 8px; background: var(--soft); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 8px; background: var(--daun); transition: width .5s; }

/* ---------- beranda ---------- */
.sampul { position: relative; aspect-ratio: 358 / 230; border-radius: 26px; overflow: hidden; container-type: inline-size; background: #cfe7ee; }
.sampul > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sampul .teks { position: absolute; left: 5.2cqw; top: 4.4cqw; pointer-events: none; }
.sampul .salam { font-size: max(13px, 3.8cqw); font-weight: 500; }
.sampul .hari { font-size: max(20px, 7.3cqw); font-weight: 700; line-height: 1.15; }
.sampul.terang .teks { color: #14251a; } .sampul.gelap .teks { color: #fff7ea; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.sampul .gear { position: absolute; right: 3.6cqw; top: 3.6cqw; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.8); display: grid; place-items: center; color: #14251a; }
.sampul .pil-gaji { position: relative; display: inline-flex; margin-top: 1.6cqw; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.9); font-size: 12.5px; font-weight: 600; color: var(--daun-t); pointer-events: none; }
.sampul .pil-gaji svg.i { width: 15px; height: 15px; }
.lvrow { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; margin: 12px 0 0; padding: 12px 14px; position: relative; width: 100%; text-align: left; background: var(--paper); border-radius: var(--r); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.badge { width: 62px; height: 68px; border-radius: 16px; display: grid; place-items: center; align-content: center; color: #fff; background: linear-gradient(160deg, #3fbf82, #15784a); border: 3px solid #fff; box-shadow: 0 6px 14px rgba(19,107,68,.35); line-height: 1; }
.badge small { font-size: 10px; font-weight: 600; letter-spacing: 1px; opacity: .85; } .badge b { font-size: 28px; font-weight: 700; margin-top: 2px; }
.lvrow .badge { width: 52px; height: 56px; border-radius: 14px; border-width: 2px; box-shadow: 0 4px 10px rgba(19,107,68,.3); } .lvrow .badge b { font-size: 23px; } .lvrow .badge small { font-size: 9px; }
.lvrow .nm { font-size: 16.5px; font-weight: 700; }
.lvrow .sb { font-size: 12.5px; color: var(--ink-3); }
.lvrow .xp-hari { font-size: 12px; font-weight: 700; color: var(--daun-t); background: var(--daun-l); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.xp { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: #e4e2d8; margin-top: 10px; overflow: hidden; }
.xp i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #3fbf82, var(--daun)); transition: width .6s; }
.strip { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; font-size: 14px; font-weight: 600; width: 100%; text-align: left; }
.strip .kanan { margin-left: auto; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.strip.misi { background: linear-gradient(90deg, #e5f6ec, #fff7e6); border: 1px solid #d6ebdd; color: #1f4a33; }
.strip.misi.beres { background: #e2f3e9; }
.strip.tg { background: var(--emas-l); color: var(--emas-t); } .strip.tg.telat { background: var(--merah-l); color: var(--merah-t); }
.tag-misi { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #fff; background: var(--daun); padding: 4px 9px; border-radius: 999px; flex: none; }
.titik { display: flex; gap: 4px; } .titik i { width: 8px; height: 8px; border-radius: 50%; background: #cfe3d6; } .titik i.on { background: var(--daun); }
.xp-pil { font-size: 12px; font-weight: 700; color: var(--daun-t); }
.aman { position: relative; margin-top: 12px; border-radius: 22px; padding: 18px; color: #fff; overflow: hidden; background: linear-gradient(150deg, #2aa26b 0%, var(--daun) 45%, var(--daun-tua) 100%); box-shadow: 0 10px 24px rgba(19,107,68,.22); }
.aman.lewat { background: linear-gradient(150deg, #e0794f, #c4502f); box-shadow: 0 10px 24px rgba(196,80,47,.22); }
.aman .lbl { font-size: 13px; font-weight: 500; opacity: .95; display: flex; align-items: center; gap: 6px; }
.aman .nil { font-size: 36px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; margin-top: 2px; }
.aman .nil small { font-size: 18px; font-weight: 600; margin-right: 3px; opacity: .9; }
.aman .bar { background: rgba(255,255,255,.25); margin-top: 12px; height: 9px; } .aman .bar i { background: #fff; }
.aman .bk { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin-top: 6px; opacity: .95; }
.aman .info { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; font-weight: 700; }
.aman .daunan { position: absolute; right: -10px; bottom: -14px; width: 120px; height: 120px; opacity: .16; pointer-events: none; }
.saldo .nil { font-size: 30px; font-weight: 700; margin-top: 2px; letter-spacing: -.3px; line-height: 1.2; overflow-wrap: anywhere; }
.saldo .nil small { font-size: 16px; font-weight: 600; color: var(--ink-3); margin-right: 3px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.kotak { border-radius: 16px; padding: 11px 13px; min-width: 0; }
.kotak .a { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.kotak .a i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 13px; flex: none; }
.kotak .v { font-size: 16.5px; font-weight: 700; margin-top: 3px; overflow-wrap: anywhere; line-height: 1.25; }
.kotak.masuk { background: #e3f4ea; color: #146c47; } .kotak.masuk i { background: #1f8a5b; }
.kotak.keluar { background: #fde9e4; color: #b5432c; } .kotak.keluar i { background: #d65a3c; }
.porsi { display: flex; height: 10px; border-radius: 10px; overflow: hidden; margin-top: 14px; gap: 2px; background: var(--soft); }
.leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.leg b { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.kabar .baris { padding: 9px 0; }
.kabar .ik { width: 34px; height: 34px; border-radius: 10px; }
.kabar .ik svg.i { width: 18px; height: 18px; }
.kabar .kapan { font-size: 13px; font-weight: 600; white-space: nowrap; text-align: right; }
.kabar .kapan.lama { color: var(--merah-t); } .kabar .kapan.baru { color: var(--daun-t); }

/* warna ikon */
.w-peach { background: #fde9dc; color: #c9632b; } .w-biru { background: var(--biru-l); color: var(--biru-t); } .w-kuning { background: var(--emas-l); color: var(--emas-t); }
.w-lilac { background: #eee8fb; color: #6a4fc8; } .w-merah { background: var(--merah-l); color: var(--merah-t); } .w-hijau { background: #e3f4ea; color: #1f8a5b; } .w-abu { background: var(--soft); color: var(--ink-3); }

/* ---------- transaksi & laporan ---------- */
.bulan-ganti { display: flex; align-items: center; gap: 4px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--pil); padding: 3px; }
.bulan-ganti button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.bulan-ganti button:disabled { opacity: .3; }
.bulan-ganti .tengah { width: auto; border-radius: 999px; padding: 0 10px; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: var(--soft); }
.seg button { padding: 9px 6px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg button.on.k { color: var(--merah-t); } .seg button.on.m { color: var(--daun-t); }
.cari { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 0 14px; height: 46px; border-radius: 14px; background: var(--paper); border: 1px solid var(--rule); color: var(--ink-3); }
.cari input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); }
.ringkas-baris { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.ringkas-baris b { color: var(--ink); }
.grafik { width: 100%; height: 150px; margin-top: 10px; display: block; overflow: visible; }
.grafik .b { fill: #f3a98f; } .grafik .b.hi { fill: var(--merah); } .grafik .b.ini { fill: var(--daun); }
.grafik text { font-size: 10px; fill: var(--ink-3); font-family: var(--font); }
.katbar { margin-top: 10px; }
.katbar .r { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.katbar .r .rp { font-size: 14px; }
.katbar .bar { margin-top: 6px; height: 7px; }
.katbar + .katbar { margin-top: 14px; }
.banding { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 500; }
.banding.baik { background: var(--daun-l); color: var(--daun-t); } .banding.buruk { background: var(--merah-l); color: var(--merah-t); }
.periode-ket { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin: -4px 2px 4px; flex-wrap: wrap; }
.periode-ket button { color: var(--daun-t); font-weight: 600; font-size: 13px; }

/* ---------- celengan ---------- */
.panggung { position: relative; aspect-ratio: 358 / 260; border-radius: 26px; overflow: hidden; container-type: inline-size; background: #cfe7ee; }
.panggung > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gelembung { position: absolute; left: 4.4cqw; top: 4.4cqw; max-width: 61%; background: #fff; border-radius: 16px; padding: 2.6cqw 3.4cqw; font-size: max(12px, 3.6cqw); font-weight: 600; line-height: 1.4; box-shadow: 0 4px 12px rgba(0,0,0,.12); pointer-events: none; }
.gelembung::after { content: ''; position: absolute; left: 24.5cqw; bottom: -8px; border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; }
.gelembung b { color: var(--daun); }
.plus-xp { position: absolute; left: 59cqw; top: 34cqw; padding: 4px 10px; border-radius: 999px; background: var(--daun); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 4px 10px rgba(31,138,91,.35); opacity: 0; pointer-events: none; }
.plus-xp.muncul { animation: xp 1.4s ease-out; }
@keyframes xp { 0% { opacity: 0; transform: translateY(8px) scale(.7); } 15% { opacity: 1; transform: translateY(0) scale(1.08); } 25% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.sinar { animation: sinar 6s ease-in-out infinite; } @keyframes sinar { 50% { opacity: .55; } }
.kt { background: #fff; border-radius: 18px; padding: 12px 14px; min-width: 0; }
.kt .k { font-size: 12px; color: var(--ink-3); font-weight: 500; } .kt .v { font-size: 17px; font-weight: 700; margin-top: 2px; overflow-wrap: anywhere; } .kt .v.h { color: var(--daun); }
.recehan { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(90deg, #fff6dc, #fff); border: 1.5px dashed var(--emas); }
.recehan svg { width: 34px; height: 46px; flex: none; }
.recehan .t1 { font-size: 14px; font-weight: 600; } .recehan .t2 { font-size: 12.5px; color: var(--ink-3); }
.recehan .tombol { margin-left: auto; width: auto; background: var(--emas); height: 40px; font-size: 14px; border-radius: 12px; padding: 0 14px; flex: none; }
.tp { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; width: 100%; text-align: left; border: 2px solid transparent; }
.tp.dipilih { border-color: var(--daun); }
.tp > svg { width: 46px; height: 60px; flex: none; }
.tp .bar { margin-top: 6px; }
.tp .nm { font-size: 15px; font-weight: 600; } .tp .rp2 { font-size: 12.5px; color: var(--ink-3); }
.bikin { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 18px; border: 2px dashed #cfe3d6; color: var(--daun-t); font-weight: 600; font-size: 14px; width: 100%; }
.isi-tombol { margin-top: 14px; }

/* ---------- kebun (level) ---------- */
.lv-hero { position: relative; border-radius: 26px; overflow: hidden; padding: 22px 16px 16px; text-align: center; color: #fff; background: linear-gradient(170deg, #f2c26a 0%, #6cc28a 45%, #1f8a5b 100%); box-shadow: 0 10px 26px rgba(31,138,91,.25); }
.lv-hero .sinar-lv { position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 50% 38%, rgba(255,255,255,.16) 0 6deg, rgba(255,255,255,0) 6deg 16deg); animation: putar 60s linear infinite; }
@keyframes putar { to { transform: rotate(1turn); } }
.lv-hero > :not(.sinar-lv) { position: relative; }
.lv-hero .badge { width: 88px; height: 92px; margin: 0 auto; border-radius: 22px; border-width: 4px; } .lv-hero .badge b { font-size: 40px; }
.tier { display: inline-block; margin-top: 12px; padding: 5px 16px; border-radius: 999px; background: linear-gradient(90deg, #2aa26b, #136b44); border: 2px solid rgba(255,255,255,.8); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.lv-hero .gelar { font-size: 26px; font-weight: 700; margin-top: 4px; text-shadow: 0 2px 6px rgba(0,0,0,.15); }
.xp-besar { position: relative; height: 30px; border-radius: 30px; background: rgba(0,0,0,.18); margin: 10px 4px 0; overflow: hidden; }
.xp-besar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 30px; background: linear-gradient(90deg, #ffe08a, #f2b632); }
.xp-besar span { position: relative; line-height: 30px; font-size: 14px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.lagi-xp { font-size: 13.5px; margin-top: 6px; }
.hadiah { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 10px; border-radius: 18px; background: #fff; border: 2px dashed var(--emas); text-align: left; color: var(--ink); }
.hadiah .th { width: 92px; height: 60px; border-radius: 12px; overflow: hidden; position: relative; flex: none; background: var(--soft); display: grid; place-items: center; }
.hadiah .th svg.g { width: 100%; height: 100%; }
.hadiah .k { font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; color: #c27c00; } .hadiah .n { font-size: 15px; font-weight: 700; } .hadiah .s { font-size: 12.5px; color: var(--ink-3); }
.gembok { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.25); }
.gembok svg.i { color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.jalur { position: relative; display: flex; justify-content: space-between; padding: 0 2px; }
.jalur::before { content: ''; position: absolute; left: 30px; right: 30px; top: 34px; border-top: 3px dashed #d9e9dd; }
.node { position: relative; flex: 1; text-align: center; font-size: 11.5px; font-weight: 600; color: #8a8a84; min-width: 0; }
.node .bl { width: 56px; height: 56px; margin: 6px auto 4px; border-radius: 50%; display: grid; place-items: center; background: #eef4ee; border: 3px solid #dfeee3; }
.node .bl svg { width: 40px; height: 40px; }
.node.lewat .bl { background: #e2f3e9; border-color: #8fd3a8; }
.node.kamu .bl { background: #fff; border-color: var(--emas); box-shadow: 0 0 0 5px var(--emas-l); }
.node.kamu { color: var(--ink); }
.node .pita { display: inline-block; margin-top: -10px; position: relative; padding: 1px 8px; border-radius: 8px; background: var(--emas); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.node .x { font-weight: 500; font-size: 10.5px; }
.aturan .baris { padding: 9px 0; } .aturan .nama { white-space: normal; font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sp { position: relative; border-radius: 16px; overflow: hidden; background: #fff; padding: 6px; border: 2px solid transparent; text-align: left; }
.sp.pakai { border-color: var(--daun); }
.sp .gb { position: relative; aspect-ratio: 358 / 230; border-radius: 12px; overflow: hidden; background: var(--soft); }
.sp .gb svg { width: 100%; height: 100%; display: block; }
.sp.tutup .gb svg { filter: grayscale(.7) blur(1.2px) brightness(1.05); }
.sp .lv { position: absolute; left: 12px; top: 12px; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(20,40,30,.6); }
.sp.tutup .lv { background: var(--emas); }
.sp .nm { font-size: 13px; font-weight: 600; padding: 6px 4px 0; } .sp .st { font-size: 11.5px; color: var(--ink-3); padding: 0 4px 2px; } .sp .st.on { color: var(--daun); font-weight: 600; }
.it { background: #fff; border-radius: 16px; padding: 8px 6px 10px; text-align: center; position: relative; }
.it svg.a { width: 64px; height: 64px; }
.it .nm { font-size: 12.5px; font-weight: 600; } .it .hg { font-size: 11.5px; color: var(--ink-3); }
.it.tutup svg.a { filter: grayscale(1) brightness(1.15); opacity: .45; }
.it.punya .hg { color: var(--daun); font-weight: 600; }
.it .kunci-k { position: absolute; right: 8px; top: 8px; color: #a8a69c; }
.it .kunci-k svg.i { width: 18px; height: 18px; }

/* ---------- lembar (bottom sheet) ---------- */
.redup { position: fixed; inset: 0; z-index: 50; background: rgba(20,24,18,.42); opacity: 0; transition: opacity .2s; }
.redup.buka { opacity: 1; }
.lembar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-radius: 26px 26px 0 0; padding: 10px 20px calc(22px + var(--aman-b)); transform: translateY(100%); transition: transform .25s cubic-bezier(.2,.8,.3,1); max-width: 560px; margin: 0 auto; }
.lembar.buka { transform: none; }
.gagang { width: 44px; height: 5px; border-radius: 5px; background: var(--rule); margin: 0 auto 12px; }
.lembar h2 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.lembar h2 .tutup { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink-2); }
.lembar .bantu { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.medan { margin-top: 14px; }
.medan > label, .medan > .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input { width: 100%; height: 50px; border-radius: 14px; border: 1.5px solid var(--rule); background: #fff; padding: 0 14px; font-size: 16px; outline: 0; }
.input:focus { border-color: var(--daun); box-shadow: 0 0 0 3px var(--daun-l); }
.input.besar { height: 58px; font-size: 22px; font-weight: 600; }
.input-rp { position: relative; } .input-rp span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--ink-3); font-size: 18px; pointer-events: none; } .input-rp .input { padding-left: 46px; }
textarea.input { height: 76px; padding: 12px 14px; resize: none; }
.ketik-besar { width: 100%; margin-top: 12px; padding: 14px 16px; border: 2px solid var(--merah); border-radius: 16px; font-size: 18px; font-weight: 500; outline: 0; }
.ketik-besar.m { border-color: var(--daun); } .ketik-besar.p { border-color: #3b7be0; }
.terbaca { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pil { padding: 9px 10px; border-radius: 14px; background: var(--soft); text-align: left; min-width: 0; }
.pil .k { font-size: 11px; color: var(--ink-3); font-weight: 500; } .pil .v { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pil.k-on { background: var(--merah-l); } .pil.k-on .v { color: var(--merah-t); } .pil.m-on { background: var(--daun-l); } .pil.m-on .v { color: var(--daun-t); }
.pilihan { display: flex; flex-wrap: wrap; gap: 8px; }
.pilihan button { font-size: 14px; padding: 8px 13px; border-radius: var(--pil); border: 1.5px solid var(--rule); color: var(--ink-2); background: #fff; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.pilihan button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pilihan button.on { border-color: var(--daun); background: var(--daun-l); color: var(--daun-t); font-weight: 600; }
.pilihan.k button.on { border-color: var(--merah); background: var(--merah-l); color: var(--merah-t); }
.pilihan button svg.i { width: 16px; height: 16px; }
.dampak { margin-top: 12px; padding: 11px 14px; border-radius: 14px; background: var(--emas-l); color: var(--emas-t); font-size: 13px; }
.aksi-bawah { display: flex; gap: 10px; margin-top: 18px; }
.aksi-bawah .tombol { flex: 1; }
.grid-bulan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.grid-bulan button { height: 48px; border-radius: 14px; border: 1.5px solid var(--rule); font-weight: 600; font-size: 14px; }
.grid-bulan button.on { background: var(--daun); border-color: var(--daun); color: #fff; }
.grid-bulan button.ada { border-color: #bfe0cc; }
.grid-bulan button:disabled { opacity: .3; }
.tahun { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 12px; font-weight: 700; font-size: 17px; }
.tahun button { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.tgl-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.tgl-grid button { height: 42px; border-radius: 12px; font-weight: 600; font-size: 14px; background: var(--soft); }
.tgl-grid button.on { background: var(--daun); color: #fff; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(160px + var(--aman-b)); z-index: 60; transform: translate(-50%, 20px); opacity: 0; transition: .25s; background: #1c2a22; color: #fff; padding: 12px 8px 12px 16px; border-radius: 16px; display: flex; align-items: center; gap: 12px; font-size: 14px; max-width: calc(100vw - 32px); width: max-content; box-shadow: 0 10px 30px rgba(0,0,0,.25); pointer-events: none; }
.toast.buka { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.atas { bottom: auto; top: calc(16px + env(safe-area-inset-top, 0px)); }
.toast button { color: #9be3b9; font-weight: 700; padding: 6px 10px; white-space: nowrap; }
.toast .xp-pil { color: #ffe08a; }

/* tur & onboarding */
.tur-redup { position: fixed; inset: 0; z-index: 70; }
.tur-sorot { position: fixed; z-index: 71; border-radius: 22px; box-shadow: 0 0 0 4px rgba(255,255,255,.95), 0 0 0 9999px rgba(28,34,30,.6); transition: all .3s; pointer-events: none; }
.tur { position: fixed; left: 16px; right: 16px; z-index: 72; max-width: 480px; margin: 0 auto; background: var(--paper); border-radius: 24px; padding: 18px 20px 20px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.tur .atasan { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.tur .atasan button { margin-left: auto; color: var(--ink-3); font-weight: 500; font-size: 13.5px; }
.tur .prog { height: 6px; border-radius: 6px; background: var(--soft); margin: 10px 0 12px; overflow: hidden; } .tur .prog i { display: block; height: 100%; background: var(--daun); transition: width .3s; }
.tur h4 { font-size: 18px; font-weight: 700; line-height: 1.3; } .tur p { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; } .tur p b { color: var(--daun-t); }
.tur .tombol { margin-top: 14px; border-radius: 999px; }
.mulai { min-height: 100dvh; display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; padding: 24px 20px calc(24px + var(--aman-b)); }
.mulai .atas { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.mulai h1 { font-size: 28px; line-height: 1.2; font-weight: 700; margin-top: 10px; }
.mulai p.lead { font-size: 15.5px; color: var(--ink-2); margin-top: 8px; }
.mulai .figur { width: 100%; max-width: 340px; aspect-ratio: 358 / 260; margin: 0 auto; border-radius: 26px; overflow: hidden; }
.mulai .figur svg { width: 100%; height: 100%; display: block; }
.mulai .langkah { font-size: 13px; font-weight: 700; letter-spacing: 1.4px; color: var(--daun-t); }
.mulai .bawah { display: grid; gap: 10px; margin-top: 18px; }
.poin { display: grid; gap: 10px; margin-top: 16px; }
.poin div { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.poin svg.i { color: var(--daun); margin-top: 1px; }
.dompet-awal .baris { gap: 10px; }
.dompet-awal .input { height: 44px; }

/* lainnya / pengaturan */
.menu .baris { padding: 14px 0; }
.menu .baris .chev { color: var(--ink-3); }
.saklar { width: 50px; height: 30px; border-radius: 30px; background: #d9d7cd; position: relative; flex: none; transition: background .2s; }
.saklar::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.saklar.on { background: var(--daun); } .saklar.on::after { transform: translateX(20px); }
.panduan h3 { font-size: 15px; margin-top: 14px; } .panduan p, .panduan li { font-size: 14px; color: var(--ink-2); margin-top: 4px; } .panduan ul { padding-left: 18px; }
.kaki-app { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 22px; }

/* ---------- tablet ---------- */
@media (min-width: 700px) and (max-width: 999px) {
  main { max-width: 640px; }
  .nav, .tulis { max-width: 616px; }
}
/* ---------- laptop: sidebar, tanpa navbar bawah ---------- */
@media (min-width: 1000px) {
  .kerangka { display: grid; grid-template-columns: 248px 1fr; }
  .samping { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100dvh; padding: 22px 14px; background: var(--paper); border-right: 1px solid var(--rule); overflow-y: auto; }
  .merek { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; color: var(--daun-t); padding: 0 10px 18px; }
  .merek svg { width: 34px; height: 34px; }
  .sm { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
  .sm:hover { background: var(--soft); }
  .sm.aktif { background: var(--daun-l); color: var(--daun-t); font-weight: 600; }
  .samping .sep { height: 1px; background: var(--rule); margin: 8px 10px; }
  .samping .tombol { margin-top: auto; }
  .nav { display: none; }
  main { max-width: 1120px; width: 100%; padding: 24px 32px 48px; }
  .tulis { position: static; max-width: none; margin: 0 0 14px; box-shadow: none; }
  .toast { bottom: 32px; }
  .sampul .gear { display: none; }
  .lembar { left: 50%; right: auto; bottom: 50%; width: 500px; border-radius: 26px; transform: translate(-50%, 60%); opacity: 0; transition: transform .22s, opacity .22s; max-height: 86dvh; }
  .lembar.buka { transform: translate(-50%, 50%); opacity: 1; }
  .lembar .gagang { display: none; }
  .dua-kolom { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0 24px; align-items: start; }
  .dua-kolom > div > :first-child { margin-top: 0; }
  .grid2.lebar { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .grid3.lebar { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .hal-judul { padding-top: 0; }
  .tur { left: auto; right: 32px; bottom: 32px !important; top: auto !important; width: 420px; }
  button:hover .nama, .tp:hover .nm { color: var(--daun-t); }
  .baris, .tp, .sp, .strip { cursor: pointer; }
}
@media (min-width: 1000px) { .hanya-hp { display: none !important; } }
@media (max-width: 999px) { .hanya-laptop { display: none !important; } }
@media (max-width: 359px) {
  main { padding-left: 12px; padding-right: 12px; }
  .aman .nil { font-size: 30px; } .saldo .nil { font-size: 26px; }
  .duo { grid-template-columns: 1fr; }
  .nb { font-size: 11px; } .nb.tengah .bulat { width: 48px; height: 48px; }
  .terbaca { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
