/* BillNet — sistem tampilan.
   Arah: alat lapangan. Abu grafit + kuning helm teknisi (tampil di terik matahari, tidak ungu seperti semua pesaing lokal).
   Ciri khas: kartu iuran dengan cap LUNAS bertinta hijau. Selebihnya tenang dan rapi.
   Font disimpan sendiri: Barlow Semi Condensed (judul & angka; huruf rambu jalan), Barlow Condensed (cap), Instrument Sans (teks). */
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(font/barlow-semi-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 700 800; font-display: swap; src: url(font/barlow-semi-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(font/barlow-condensed-800.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  src: url(font/instrument-sans-latin.woff2) format('woff2'); }

:root {
  /* dasar */
  --grafit: #1d222b;      /* bilah atas, menu samping, teks judul */
  --grafit-2: #2a313d;
  --tinta: #1d222b;
  --redup: #5b6474;       /* teks kedua — kontras 5,9:1 di atas --kertas */
  --samar: #8a93a3;       /* hanya untuk hiasan/garis, bukan teks penting */
  --garis: #e1e4ea;
  --kertas: #f2f3f6;
  --lembar: #ffffff;
  /* merek */
  --kuning: #ffc21a;      /* tombol utama: teks --tinta di atasnya 11:1 */
  --kuning-tua: #e0a800;
  --kuning-muda: #fff4d1;
  /* status */
  --hijau: #13804f;       --hijau-muda: #e3f4eb;   /* lunas, online */
  --oranye: #b4530f;      --oranye-muda: #fdeee2;  /* segera jatuh tempo */
  --merah: #c8322b;       --merah-muda: #fce9e7;   /* telat, router mati */
  --abu: #5b6474;         --abu-muda: #eceef2;     /* terisolir, berhenti */
  --biru: #1f5fbf;        --biru-muda: #e5eefb;    /* info */
  --tinta-cap: #1a7a4c;

  --judul: 'Barlow Semi Condensed', 'Instrument Sans', system-ui, sans-serif;
  --cap: 'Barlow Condensed', 'Barlow Semi Condensed', sans-serif;
  --teks: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-besar: 16px; --r: 12px; --r-kecil: 8px;
  --bayang: 0 1px 0 rgba(29, 34, 43, .04), 0 1px 3px rgba(29, 34, 43, .06);
  --bayang-angkat: 0 10px 30px rgba(29, 34, 43, .16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--teks); background: var(--kertas); color: var(--tinta); -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--judul); line-height: 1.15; letter-spacing: 0; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
.angka { font-variant-numeric: tabular-nums; }
.redup { color: var(--redup); }
.kecil { font-size: 13.5px; }
:focus-visible { outline: 3px solid var(--biru); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ── kerangka ───────────────────────────────────────────────────── */
.kerangka { min-height: 100dvh; display: flex; flex-direction: column; }
.bilah { position: sticky; top: 0; z-index: 10; background: var(--grafit); color: #fff;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
.bilah .usaha { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.bilah .usaha b { font-family: var(--judul); font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.bilah .usaha small { display: block; font-size: 12.5px; color: #b9c0cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { width: 32px; height: 32px; flex: none; }
.tombol-ikon { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; flex: none; position: relative; }
.bilah .tombol-ikon:hover { background: rgba(255,255,255,.08); }
.tombol-ikon svg { width: 22px; height: 22px; }
.tombol-ikon .titik-merah { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--merah); box-shadow: 0 0 0 2px var(--grafit); }

.isi { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 16px 16px calc(88px + env(safe-area-inset-bottom)); }
.isi > * + * { margin-top: 20px; }

/* menu bawah (HP) */
.menu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--lembar); border-top: 1px solid var(--garis);
  display: flex; padding-bottom: env(safe-area-inset-bottom); }
.menu a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px; text-decoration: none;
  color: var(--redup); font-size: 11.5px; font-weight: 600; position: relative; }
.menu a svg { width: 23px; height: 23px; }
.menu a[aria-current="page"] { color: var(--tinta); }
.menu a[aria-current="page"] .ikon-menu { background: var(--kuning); }
.menu .ikon-menu { width: 52px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .15s; }
.menu .kelompok, .menu .sisi-saja { display: none; }
.menu .jumlah { position: absolute; top: 4px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--merah); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

@media (min-width: 960px) {
  .kerangka { padding-left: 248px; }
  .bilah { padding-left: 24px; }
  .bilah .logo-hp { display: none; }
  .menu { top: 0; bottom: 0; right: auto; width: 248px; flex-direction: column; border-top: 0; background: var(--grafit); color: #fff;
    padding: 14px 12px 20px; overflow-y: auto; gap: 1px; z-index: 11; }
  .menu .merek-sisi { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-family: var(--judul); font-weight: 700; font-size: 23px; }
  .menu .kelompok { display: block; font-size: 12.5px; color: #8d96a6; font-weight: 600; padding: 16px 10px 6px; }
  .menu .sisi-saja { display: flex; }
  .menu a { flex: none; flex-direction: row; gap: 12px; padding: 9px 10px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: #d3d8e0; }
  .menu a svg { width: 20px; height: 20px; }
  .menu .ikon-menu { width: auto; height: auto; background: none !important; }
  .menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .menu a[aria-current="page"] { background: var(--kuning); color: var(--tinta); font-weight: 700; }
  .menu .lainnya-hp { display: none; }
  .menu .jumlah { position: static; margin-left: auto; }
  .isi { padding: 28px 32px 56px; }
}
@media (max-width: 959px) { .menu .merek-sisi { display: none; } }

/* ── judul halaman ───────────────────────────────────────────────── */
.kepala { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kepala p { color: var(--redup); margin-top: 2px; }
.kembali { display: inline-flex; align-items: center; gap: 4px; color: var(--redup); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 6px; min-height: 32px; }
.kembali svg { width: 18px; height: 18px; }

/* ── tombol ─────────────────────────────────────────────────────── */
.tombol { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r);
  border: 0; background: var(--kuning); color: var(--tinta); font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; touch-action: manipulation; }
.tombol svg { width: 19px; height: 19px; flex: none; }
.tombol:active { transform: translateY(1px); }
.tombol:disabled { opacity: .5; cursor: default; }
.tombol.gelap { background: var(--grafit); color: #fff; }
.tombol.garis { background: var(--lembar); box-shadow: inset 0 0 0 1.5px var(--garis); }
.tombol.hijau { background: var(--hijau); color: #fff; }
.tombol.bahaya { background: var(--merah-muda); color: var(--merah); }
.tombol.kecil { min-height: 38px; padding: 7px 13px; font-size: 14px; border-radius: 10px; }
.tombol.penuh { width: 100%; }
.tombol.besar { min-height: 54px; font-size: 16.5px; border-radius: 14px; }
@media (hover: hover) { .tombol:hover { filter: brightness(.96); } .tombol.garis:hover { box-shadow: inset 0 0 0 1.5px var(--samar); } }

/* ── lembar putih (wadah utama) ──────────────────────────────────── */
.wadah { background: var(--lembar); border-radius: var(--r-besar); box-shadow: var(--bayang); }
.wadah > .kepala-wadah { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; }
.wadah > .kepala-wadah a { font-size: 14px; font-weight: 600; color: var(--redup); text-decoration: none; }
.wadah > .badan { padding: 0 16px 16px; }
.wadah.badan { padding: 18px 16px; }

/* ── status ─────────────────────────────────────────────────────── */
.status { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; line-height: 1.6; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.lunas, .status.online { background: var(--hijau-muda); color: var(--hijau); }
.status.segera { background: var(--oranye-muda); color: var(--oranye); }
.status.telat, .status.offline { background: var(--merah-muda); color: var(--merah); }
.status.isolir, .status.berhenti, .status.belum { background: var(--abu-muda); color: var(--abu); }
.status.isolir::before { border-radius: 2px; }

/* ── ringkasan setoran (beranda) ─────────────────────────────────── */
.setoran { padding: 18px 16px 16px; }
.setoran .bulan { font-weight: 600; color: var(--redup); }
.setoran .jumlah-besar { font-family: var(--judul); font-weight: 700; font-size: 48px; line-height: 1; letter-spacing: -.01em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.setoran .dari { color: var(--redup); margin-top: 2px; }
.setoran .dari b { color: var(--tinta); }
/* pita pelanggan: satu garis = satu pelanggan, diurutkan menurut keadaan */
.pita { display: flex; gap: 2px; height: 34px; margin-top: 16px; }
.pita i { flex: 1; border-radius: 2px; min-width: 2px; background: var(--abu-muda); }
.pita i.lunas { background: var(--hijau); }
.pita i.segera { background: #e7934f; }
.pita i.telat { background: var(--merah); }
.pita i.isolir { background: repeating-linear-gradient(180deg, var(--abu) 0 3px, transparent 3px 6px); }
.hitungan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.hitungan a { text-decoration: none; padding: 8px 4px 6px; border-radius: 10px; text-align: center; }
.hitungan a:hover { background: var(--kertas); }
.hitungan b { display: block; font-family: var(--judul); font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hitungan span { font-size: 12.5px; color: var(--redup); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.hitungan span::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* jalan pintas */
.pintas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pintas a, .pintas button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border: 0; border-radius: var(--r); background: var(--lembar);
  box-shadow: var(--bayang); text-decoration: none; font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.25; cursor: pointer; color: var(--tinta); }
.pintas .bulat { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--kuning-muda); }
.pintas svg { width: 21px; height: 21px; }

/* ── baris daftar ───────────────────────────────────────────────── */
.daftar { list-style: none; margin: 0; padding: 0; }
.daftar > li + li { border-top: 1px solid var(--garis); }
.baris { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; min-height: 64px; }
a.baris:hover { background: #fafbfc; }
.baris .tengah { flex: 1; min-width: 0; }
.baris .nama { font-weight: 700; display: flex; align-items: center; gap: 8px; min-width: 0; }
.baris .nama span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.baris .keterangan { font-size: 13.5px; color: var(--redup); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.baris .kanan { text-align: right; flex: none; }
.baris .uang { font-weight: 700; font-variant-numeric: tabular-nums; }
.keterangan.warna-telat { color: var(--merah); font-weight: 600; }
.keterangan.warna-segera { color: var(--oranye); font-weight: 600; }
.inisial { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--abu-muda); color: var(--grafit-2); }
.aksi-baris { display: flex; gap: 6px; flex: none; }
.aksi-baris .tombol-ikon { width: 40px; height: 40px; background: var(--kertas); color: var(--tinta); border-radius: 10px; }
.aksi-baris .tombol-ikon svg { width: 20px; height: 20px; }
.aksi-baris .wa { color: #128c4a; }

/* jejak 6 bulan di daftar pelanggan */
.jejak { display: flex; gap: 3px; margin-top: 6px; }
.jejak i { width: 14px; height: 6px; border-radius: 2px; background: var(--abu-muda); }
.jejak i.lunas { background: var(--hijau); }
.jejak i.terlambat { background: linear-gradient(90deg, var(--hijau) 55%, var(--merah) 55%); }
.jejak i.telat { background: var(--merah); }
.jejak i.segera { background: #e7934f; }
.jejak i.nihil { background: transparent; box-shadow: inset 0 0 0 1px var(--garis); }

/* ── pencarian & penyaring ───────────────────────────────────────── */
.cari { position: relative; }
.cari svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--redup); pointer-events: none; }
.cari input[type=search] { padding-left: 44px; }
.saring { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px; }
.saring::-webkit-scrollbar { display: none; }
.saring button { flex: none; border: 0; min-height: 38px; padding: 6px 14px; border-radius: 999px; background: var(--lembar); box-shadow: inset 0 0 0 1.5px var(--garis);
  font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.saring button b { font-weight: 700; color: var(--redup); font-variant-numeric: tabular-nums; }
.saring button[aria-pressed="true"] { background: var(--grafit); color: #fff; box-shadow: none; }
.saring button[aria-pressed="true"] b { color: var(--kuning); }

/* ── isian ──────────────────────────────────────────────────────── */
label.isian { display: block; }
label.isian > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--redup); margin-bottom: 5px; }
label.isian small { display: block; color: var(--redup); font-size: 12.5px; margin-top: 4px; }
input[type=text], input[type=search], input[type=password], input[type=number], input[type=tel], input[type=date], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 13px; border: 1.5px solid var(--garis); border-radius: var(--r); background: var(--lembar); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--grafit); box-shadow: 0 0 0 3px rgba(255, 194, 26, .55); }
.dua-kolom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formulir > * + * { margin-top: 14px; }

/* pilihan bergaya tombol (metode bayar, paket) */
.pilih { display: grid; gap: 8px; }
.pilih.tiga { grid-template-columns: repeat(3, 1fr); }
.pilih label { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 8px; border-radius: var(--r);
  box-shadow: inset 0 0 0 1.5px var(--garis); cursor: pointer; font-weight: 700; font-size: 14px; text-align: center; background: var(--lembar); }
.pilih label svg { width: 22px; height: 22px; }
.pilih input { position: absolute; opacity: 0; pointer-events: none; }
.pilih label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--grafit); background: var(--kuning-muda); }
.pilih label:has(input:focus-visible) { outline: 3px solid var(--biru); outline-offset: 2px; }

/* ── kartu iuran (ciri khas) ─────────────────────────────────────── */
.kartu-iuran { padding: 16px; background:
  linear-gradient(var(--lembar), var(--lembar)) padding-box; }
.kartu-iuran .kepala-kartu p { margin-top: 2px; }
.kartu-iuran .kepala-kartu .tahun { font-family: var(--judul); font-weight: 700; font-size: 18px; }
.kisi-bulan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
@media (min-width: 560px) { .kisi-bulan { grid-template-columns: repeat(6, 1fr); } }
.bulan-iuran { position: relative; min-height: 86px; align-items: flex-start; border-radius: 10px; border: 1.5px dashed var(--garis); padding: 7px 8px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; background: #fcfcfd; }
.bulan-iuran .nama-bulan { font-size: 12.5px; font-weight: 700; color: var(--redup); }
.bulan-iuran .catatan { font-size: 11.5px; color: var(--redup); line-height: 1.25; white-space: nowrap; }
.bulan-iuran .tengah-sel { font-weight: 700; font-size: 13px; }
.telat-hari { display: inline-block; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--merah); border-radius: 4px; padding: 0 4px; line-height: 1.5; vertical-align: 1px; }
.bulan-iuran.lunas { border-style: solid; border-color: #d3e9dc; background: #f8fcfa; }
.bulan-iuran.belum-pasang .catatan { white-space: normal; }
.bulan-iuran.belum-pasang { background: repeating-linear-gradient(135deg, #f6f7f9 0 6px, #fff 6px 12px); border-style: solid; }
.bulan-iuran.telat { border: 1.5px solid #f1b4ae; background: #fff8f7; }
.bulan-iuran.telat .catatan { color: var(--merah); font-weight: 700; }
.bulan-iuran.segera { border: 1.5px solid #f3c9a6; background: #fffaf5; }
.bulan-iuran.segera .catatan { color: var(--oranye); font-weight: 700; }
.bulan-iuran.ini .nama-bulan { color: var(--tinta); }
.bulan-iuran.ini::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--kuning); }
.cap { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%) rotate(var(--miring, -9deg)); color: var(--tinta-cap);
  font-family: var(--cap); font-weight: 800; font-size: 16px; letter-spacing: .08em; line-height: 1;
  padding: 4px 7px 3px; border: 2px solid currentColor; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--lembar), inset 0 0 0 3px currentColor;
  opacity: .88; white-space: nowrap; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='f'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 1.75'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23f)'/%3E%3C/svg%3E");
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='f'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 1.75'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23f)'/%3E%3C/svg%3E"); }
.cap.kecil-cap { position: static; transform: rotate(var(--miring, -9deg)); align-self: center; font-size: 14px; padding: 3px 6px 2px; border-width: 1.5px;
  box-shadow: inset 0 0 0 1px var(--lembar), inset 0 0 0 2.5px currentColor; }
.cap small { display: block; font-size: 8.5px; letter-spacing: .04em; text-align: center; margin-top: 2px; font-weight: 700; }
.cap.baru { animation: cap-turun .42s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes cap-turun {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--miring, -9deg)) scale(2.4); }
  70% { opacity: .95; transform: translate(-50%, -50%) rotate(var(--miring, -9deg)) scale(.94); }
  100% { opacity: .88; transform: translate(-50%, -50%) rotate(var(--miring, -9deg)) scale(1); }
}
.keterangan-kartu { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: 12.5px; color: var(--redup); }

/* ── profil pelanggan ───────────────────────────────────────────── */
.profil { padding: 16px; display: flex; gap: 14px; align-items: center; }
.profil .inisial { width: 56px; height: 56px; font-size: 19px; }
.profil h1 { font-size: 22px; }
.aksi-utama { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.aksi-utama .tombol { padding-left: 10px; padding-right: 10px; }
.rincian { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; padding: 4px 16px 16px; font-size: 14.5px; }
.rincian dt { color: var(--redup); }
.rincian dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.sakelar-internet { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.sakelar-internet .tengah { flex: 1; }
.lampu { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--hijau); box-shadow: 0 0 0 4px var(--hijau-muda); }
.lampu.mati { background: var(--merah); box-shadow: 0 0 0 4px var(--merah-muda); }
.lampu.isolir { background: var(--abu); box-shadow: 0 0 0 4px var(--abu-muda); }

/* ── router ─────────────────────────────────────────────────────── */
.router { padding: 16px; display: grid; gap: 12px; }
.router .atas-router { display: flex; align-items: center; gap: 12px; }
.router .atas-router .tengah { flex: 1; min-width: 0; }
.meteran { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.meteran > div { background: var(--kertas); border-radius: 10px; padding: 8px 10px; }
.meteran span { font-size: 12px; color: var(--redup); font-weight: 600; display: block; }
.meteran b { font-family: var(--judul); font-size: 18px; font-variant-numeric: tabular-nums; }
.batang { height: 4px; border-radius: 2px; background: var(--garis); margin-top: 5px; overflow: hidden; }
.batang i { display: block; height: 100%; background: var(--grafit); border-radius: 2px; }
.batang i.panas { background: var(--merah); }
.skrip { background: var(--grafit); color: #e9edf3; border-radius: var(--r); padding: 12px 14px; font: 12.5px/1.55 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  white-space: pre-wrap; word-break: break-all; max-height: 220px; overflow: auto; }
.langkah { list-style: none; margin: 0; padding: 0; counter-reset: l; display: grid; gap: 14px; }
.langkah li { counter-increment: l; display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.langkah li::before { content: counter(l); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--kuning); font-weight: 800; font-family: var(--judul); }
.langkah li > div > * + * { margin-top: 8px; }

/* ── tabel (laptop) ─────────────────────────────────────────────── */
.tabel-bungkus { overflow-x: auto; }
table.tabel { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabel th { text-align: left; font-size: 12.5px; color: var(--redup); font-weight: 600; padding: 10px 16px; border-bottom: 1px solid var(--garis); white-space: nowrap; }
.tabel td { padding: 11px 16px; border-bottom: 1px solid var(--garis); white-space: nowrap; }
.tabel tr:last-child td { border-bottom: 0; }
.tabel .kanan { text-align: right; }
.banding td:first-child { color: var(--redup); }
.naik { color: var(--hijau); font-weight: 700; }
.turun { color: var(--merah); font-weight: 700; }

/* ── lembar bawah ───────────────────────────────────────────────── */
.lapis { position: fixed; inset: 0; z-index: 30; background: rgba(20, 24, 31, .5); display: flex; align-items: flex-end; justify-content: center; animation: pudar .15s; }
.lembar-bawah { background: var(--lembar); width: 100%; max-width: 520px; max-height: 92dvh; overflow: auto; border-radius: 20px 20px 0 0;
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); animation: naik .22s cubic-bezier(.2, .9, .3, 1); }
.lembar-bawah::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--garis); margin: 0 auto 12px; }
.lembar-bawah > * + * { margin-top: 14px; }
@media (min-width: 600px) { .lapis { align-items: center; } .lembar-bawah { border-radius: 20px; padding-top: 18px; } .lembar-bawah::before { display: none; } }
@keyframes naik { from { transform: translateY(40px); opacity: 0; } }
@keyframes pudar { from { opacity: 0; } }
.total-bayar { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0 0; border-top: 1px dashed var(--garis); }
.total-bayar b { font-family: var(--judul); font-size: 32px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.centang-tagihan { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--garis); cursor: pointer; }
.centang-tagihan + .centang-tagihan { margin-top: 8px; }
.centang-tagihan:has(input:checked) { box-shadow: inset 0 0 0 2px var(--grafit); background: var(--kuning-muda); }
.centang-tagihan input { width: 20px; height: 20px; accent-color: var(--grafit); flex: none; }
.centang-tagihan .tengah { flex: 1; }

/* hasil bayar */
.berhasil { text-align: center; padding: 6px 0 2px; }
.berhasil .cap-besar { position: relative; height: 92px; }
.berhasil .cap { font-size: 34px; padding: 8px 14px 6px; border-width: 3px; top: 50%; }
.berhasil .cap small { font-size: 12px; }
.berhasil p { color: var(--redup); }
.alur-router { display: flex; align-items: center; gap: 10px; background: var(--hijau-muda); color: var(--hijau); border-radius: var(--r); padding: 10px 12px; font-weight: 600; font-size: 14px; text-align: left; }
.alur-router svg { width: 20px; height: 20px; flex: none; }

/* toast */
#toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); background: var(--grafit); color: #fff; padding: 11px 16px;
  border-radius: 12px; font-size: 14.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 40; max-width: calc(100% - 32px); box-shadow: var(--bayang-angkat); }
#toast.tampil { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { #toast { bottom: 28px; left: calc(50% + 124px); } }

/* ── tata letak laptop ───────────────────────────────────────────── */
.dua-lajur { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .dua-lajur { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
  .dua-lajur > * + * { margin-top: 0; }
  .lajur > * + * { margin-top: 20px; }
  .pintas { grid-template-columns: repeat(4, 1fr); }
  .setoran .jumlah-besar { font-size: 56px; }
}
@media (max-width: 959px) { .lajur > * + * { margin-top: 20px; } }
.hanya-laptop { display: none; }
@media (min-width: 960px) { .hanya-laptop { display: revert; } .hanya-hp { display: none !important; } }

/* menu lainnya */
.kisi-modul { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .kisi-modul { grid-template-columns: 1fr 1fr; } }
.modul { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--lembar); border-radius: var(--r); box-shadow: var(--bayang); text-decoration: none; color: inherit; }
.modul .bulat { width: 42px; height: 42px; border-radius: 12px; background: var(--kertas); display: grid; place-items: center; flex: none; }
.modul .bulat svg { width: 21px; height: 21px; }
.modul p { font-size: 13.5px; color: var(--redup); }
.label-kecil { font-size: 11.5px; font-weight: 700; background: var(--kuning-muda); color: #7a5a00; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.judul-kelompok { font-family: var(--judul); font-size: 15px; font-weight: 700; color: var(--redup); margin: 6px 2px 8px; }

.pita-contoh { background: var(--kuning); color: var(--tinta); font-size: 13px; font-weight: 600; text-align: center; padding: 6px 12px; }
.kosong { text-align: center; padding: 28px 16px; color: var(--redup); }

/* ── layar lain: voucher, tiket, pesan, laporan, tim, peta, modem, OLT ── */
.teks-merah, .teks-telat { color: var(--merah); }
.teks-oranye, .teks-segera { color: var(--oranye); }
.teks-hijau, .teks-lunas { color: var(--hijau); }
.teks-berhenti { color: var(--abu); }
.kotak-warna { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.grafik-batang { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 4px; }
.grafik-batang.tinggi { height: 210px; }
.kolom-batang { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.kolom-batang .tumpuk { width: 100%; max-width: 44px; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 2px; }
.kolom-batang .tumpuk i { display: block; min-height: 1px; }
.kolom-batang > span { font-size: 11.5px; color: var(--redup); font-variant-numeric: tabular-nums; }
.nilai-batang { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 520px) { .grafik-batang.tinggi .nilai-batang { display: none; } .grafik-batang.tinggi .kolom-batang:nth-child(odd) > span { visibility: hidden; } }
.kertas-voucher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: var(--kertas); padding: 8px; border-radius: var(--r); }
.tiket-voucher { position: relative; background: var(--lembar); border: 1.5px dashed var(--samar); border-radius: 8px; padding: 7px 8px; font-size: 10.5px; line-height: 1.35; display: flex; flex-direction: column; min-height: 76px; }
.tiket-voucher b { font-family: var(--judul); font-size: 11.5px; padding-right: 26px; }
.tiket-voucher .kode { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; font-weight: 700; letter-spacing: .06em; margin: 2px 0; }
.tiket-voucher > span:last-of-type { padding-right: 26px; }
.qr-mini { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; background:
  conic-gradient(var(--grafit) 25%, transparent 0 50%, var(--grafit) 0 75%, transparent 0) 0 0 / 7px 7px; opacity: .85; }
.baris-tombol { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.baris-tombol:hover { background: #fafbfc; }
.garis-prio { width: 4px; align-self: stretch; border-radius: 2px; flex: none; background: var(--abu-muda); }
.garis-prio.merah { background: var(--merah); }
.garis-prio.segera { background: #e7934f; }
.wadah-abu { background: var(--kertas); border-radius: var(--r); }
.chip-templat { display: flex; flex-wrap: wrap; gap: 6px; }
.gelembung-wa { background: #e8ddd3; border-radius: var(--r); padding: 12px; }
.gelembung-wa > div { background: #d9fdd3; border-radius: 10px 0 10px 10px; padding: 8px 10px 6px; margin-left: 15%; font-size: 14px; box-shadow: 0 1px 1px rgba(0,0,0,.08); white-space: pre-wrap; }
.jam-wa { display: block; text-align: right; font-size: 11px; color: #53bdeb; margin-top: 2px; }
.centang-wa { font-weight: 700; color: var(--samar); letter-spacing: -.15em; flex: none; }
.centang-wa.dibaca { color: #2f9ee0; }
.titik-ember { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.pita-metode { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.label-peran { font-size: 11.5px; font-weight: 700; background: var(--abu-muda); color: var(--grafit-2); border-radius: 6px; padding: 1px 7px; flex: none; }
.peta-bungkus { overflow: hidden; }
.peta-gulir { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.peta { display: block; width: 100%; min-width: 760px; height: auto; }
.titik-odp { cursor: pointer; }
.titik-odp:focus-visible circle { stroke: var(--biru); stroke-width: 4; }
.label-peta { paint-order: stroke; stroke: #f7f8fa; stroke-width: 4px; }
.port-odp { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.port-odp span { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 13px; box-shadow: inset 0 0 0 1.5px var(--garis); color: var(--redup); }
.port-odp span.terpakai { background: var(--grafit); color: var(--kuning); box-shadow: none; }
.statistik-empat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.statistik-empat > div { background: var(--lembar); border-radius: var(--r); box-shadow: var(--bayang); padding: 10px 6px; text-align: center; }
.statistik-empat b { display: block; font-family: var(--judul); font-size: 26px; line-height: 1.1; }
.statistik-empat span { font-size: 12.5px; font-weight: 600; color: var(--redup); }
.statistik-empat > button { border: 0; font: inherit; color: inherit; cursor: pointer; background: var(--lembar); border-radius: var(--r); box-shadow: var(--bayang); padding: 10px 6px; text-align: center; }
.statistik-empat > button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--grafit); background: var(--kuning-muda); }
.judul-bagian-kecil { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ── voucher: 5 templat. Semua ukuran dalam cqw (persen lebar voucher) ── */
.vc-wadah { container-type: inline-size; width: 100%; }
.vc { position: relative; overflow: hidden; color: #16191f; background: #fff; line-height: 1.15; font-family: var(--teks); }
.vc b { font-weight: 700; }
.vc-kode { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.vc-qr { display: block; }
.vc-qr-svg { display: block; width: 100%; height: auto; }
.vc-logo { display: grid; place-items: center; object-fit: cover; flex: none; }
.vc-logo svg { width: 70%; height: 70%; }
.vc-judul { font-family: var(--judul); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.vc-sub, .vc-label, .vc-catatan, .vc-seri, .vc-cepat { display: block; }
.vc-baris { display: flex; align-items: center; flex-wrap: wrap; }

/* 1. Tiket — sobekan berwarna dengan lubang perforasi */
.vc-tiket { aspect-ratio: 2 / 1; display: grid; grid-template-columns: 38% 1fr; border-radius: 3cqw;
  -webkit-mask: radial-gradient(circle at 38% 0, transparent 3cqw, #000 3.1cqw) top / 100% 51% no-repeat, radial-gradient(circle at 38% 100%, transparent 3cqw, #000 3.1cqw) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle at 38% 0, transparent 3cqw, #000 3.1cqw) top / 100% 51% no-repeat, radial-gradient(circle at 38% 100%, transparent 3cqw, #000 3.1cqw) bottom / 100% 51% no-repeat; }
.vc-tiket .vc-kiri { background: var(--vw); color: var(--vt); padding: 4.5cqw 4cqw; display: flex; flex-direction: column; gap: .8cqw; min-width: 0; }
.vc-tiket .vc-logo { width: 9cqw; height: 9cqw; border-radius: 2.4cqw; margin-bottom: 1cqw; }
.vc-tiket .vc-logo-kosong { background: color-mix(in srgb, var(--vt) 14%, transparent); }
.vc-tiket .vc-judul { font-size: 4.8cqw; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.05; }
.vc-tiket .vc-sub { font-size: 3cqw; opacity: .8; }
.vc-tiket .vc-profil { margin-top: auto; font-family: var(--judul); font-weight: 700; font-size: 8.4cqw; line-height: 1; }
.vc-tiket .vc-kanan { position: relative; border-left: .5cqw dashed #c9ced8; padding: 4.5cqw 4cqw 3.5cqw 4.5cqw; display: flex; flex-direction: column; gap: 1cqw; min-width: 0; background: #fff; }
.vc-tiket .vc-label { font-size: 2.8cqw; color: #6b7280; }
.vc-tiket .vc-kode { font-size: 8.4cqw; }
.vc-tiket .vc-baris { gap: 1.6cqw; margin-top: .6cqw; }
.vc-tiket .vc-harga { background: var(--vw); color: var(--vt); border-radius: 99px; padding: .5cqw 2cqw; font-size: 3.2cqw; font-weight: 800; }
.vc-tiket .vc-cepat { font-size: 3cqw; color: #4b5563; font-weight: 600; }
.vc-tiket .vc-catatan { font-size: 2.5cqw; color: #4b5563; margin-top: auto; line-height: 1.3; }
.vc-tiket .vc-seri { font-size: 2.3cqw; color: #9aa3b1; }
.vc-tiket .vc-qr { position: absolute; right: 4cqw; top: 4.5cqw; width: 15cqw; }
.vc-tiket:has(.vc-qr) .vc-kode, .vc-tiket:has(.vc-qr) .vc-label, .vc-tiket:has(.vc-qr) .vc-baris { margin-right: 16cqw; }

/* 2. Kartu — seperti kartu perdana, gradasi + lengkung WiFi */
.vc-kartu { aspect-ratio: 1.75; border-radius: 4cqw; background: linear-gradient(135deg, color-mix(in srgb, var(--vw) 82%, #fff) 0%, var(--vw) 45%, var(--vw2) 100%); color: var(--vt); padding: 5cqw;
  display: grid; grid-template-rows: auto 1fr auto; }
.vc-kartu .vc-hias { position: absolute; right: -10cqw; top: -14cqw; width: 62cqw; opacity: .13; pointer-events: none; }
.vc-kartu .vc-hias svg { width: 100%; height: auto; display: block; }
.vc-kartu .vc-atas { display: flex; align-items: center; gap: 2.6cqw; position: relative; min-width: 0; }
.vc-kartu .vc-atas > div { min-width: 0; }
.vc-kartu .vc-logo { width: 10cqw; height: 10cqw; border-radius: 2.6cqw; }
.vc-kartu .vc-logo-kosong { background: color-mix(in srgb, var(--vt) 16%, transparent); }
.vc-kartu .vc-judul { font-size: 5.4cqw; }
.vc-kartu .vc-sub { font-size: 3cqw; opacity: .8; }
.vc-kartu .vc-tengah { align-self: center; position: relative; }
.vc-kartu .vc-label { font-size: 2.8cqw; opacity: .78; }
.vc-kartu .vc-kode { font-size: 10cqw; display: block; }
.vc-kartu .vc-bawah { display: flex; align-items: center; gap: 2.2cqw; flex-wrap: wrap; position: relative; }
.vc-kartu:has(.vc-qr) .vc-bawah { padding-right: 24cqw; }
.vc-kartu .vc-profil { background: color-mix(in srgb, var(--vt) 17%, transparent); border-radius: 99px; padding: .8cqw 2.8cqw; font-weight: 800; font-size: 3.4cqw; }
.vc-kartu .vc-harga { font-weight: 800; font-size: 4cqw; }
.vc-kartu .vc-cepat, .vc-kartu .vc-seri { font-size: 2.9cqw; opacity: .8; }
.vc-kartu .vc-qr { position: absolute; right: 5cqw; bottom: 5cqw; width: 20cqw; padding: 1.3cqw; background: #fff; border-radius: 2cqw; }

/* 3. Malam — gelap, kode menyala dengan warna pilihan */
.vc-malam { aspect-ratio: 1.75; border-radius: 3cqw; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--vw) 22%, #12161d) 0%, #12161d 60%); color: #fff;
  padding: 4.5cqw 5cqw 4cqw 7.5cqw; display: flex; flex-direction: column; gap: .6cqw; }
.vc-malam .vc-strip { position: absolute; left: 0; top: 0; bottom: 0; width: 2.4cqw; background: var(--vw); }
.vc-malam .vc-atas { display: flex; align-items: center; gap: 2cqw; min-width: 0; }
.vc-malam .vc-logo { width: 7.5cqw; height: 7.5cqw; border-radius: 2cqw; }
.vc-malam .vc-logo-kosong { color: var(--vw); background: rgba(255,255,255,.07); }
.vc-malam .vc-judul { font-size: 4.6cqw; }
.vc-malam .vc-profil { margin-top: 2.4cqw; font-family: var(--judul); font-weight: 700; font-size: 8cqw; color: var(--vw); line-height: 1; }
.vc-malam .vc-kode { font-size: 9.6cqw; text-shadow: 0 0 3cqw color-mix(in srgb, var(--vw) 70%, transparent); }
.vc-malam .vc-baris { gap: 2.2cqw; font-size: 3cqw; color: #b9c0cc; }
.vc-malam .vc-harga { color: #fff; font-weight: 800; font-size: 3.6cqw; }
.vc-malam .vc-catatan { margin-top: auto; font-size: 2.5cqw; color: #8d96a6; line-height: 1.3; }
.vc-malam:has(.vc-qr) > :not(.vc-qr):not(.vc-strip) { margin-right: 24cqw; }
.vc-malam .vc-qr { position: absolute; right: 5cqw; bottom: 5cqw; width: 21cqw; padding: 1.3cqw; background: #fff; border-radius: 2cqw; }

/* 4. Hemat tinta — garis hitam saja */
.vc-hemat { aspect-ratio: 2 / 1; border: .45cqw dashed #111; border-radius: 2cqw; color: #111; padding: 4cqw 4.5cqw; display: flex; flex-direction: column; gap: 1.2cqw; }
.vc-hemat .vc-atas { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; min-width: 0; }
.vc-hemat .vc-judul { font-size: 5cqw; }
.vc-hemat .vc-profil { border: .45cqw solid #111; border-radius: 1.4cqw; padding: .4cqw 1.8cqw; font-weight: 800; font-size: 3.4cqw; white-space: nowrap; }
.vc-hemat .vc-kode { font-size: 10cqw; }
.vc-hemat .vc-baris { gap: 2.4cqw; font-size: 3.1cqw; }
.vc-hemat .vc-harga { font-weight: 800; }
.vc-hemat .vc-catatan { margin-top: auto; font-size: 2.6cqw; line-height: 1.3; }
.vc-hemat:has(.vc-qr) > .vc-kode, .vc-hemat:has(.vc-qr) > .vc-baris, .vc-hemat:has(.vc-qr) > .vc-catatan { margin-right: 21cqw; }
.vc-hemat:has(.vc-qr) .vc-atas { margin-right: 0; }
.vc-hemat .vc-qr { position: absolute; right: 4.5cqw; bottom: 4cqw; width: 18cqw; }

/* 5. Struk 58mm — printer kasir thermal */
.vc-struk { padding: 7cqw 6cqw 9cqw; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2cqw;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: #000;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 6cqw 51% repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 3cqw) no-repeat;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 6cqw 51% repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 3cqw) no-repeat; }
.vc-struk .vc-logo { width: 18cqw; height: 18cqw; border-radius: 4cqw; filter: grayscale(1) contrast(1.4); }
.vc-struk .vc-logo-kosong { border: .8cqw solid #000; }
.vc-struk .vc-judul { font-family: inherit; font-size: 9cqw; font-weight: 800; max-width: 100%; }
.vc-struk .vc-sub { font-size: 5.6cqw; }
.vc-struk .vc-garis { width: 100%; border-top: .9cqw dashed #000; margin: 1.5cqw 0; }
.vc-struk .vc-profil { font-size: 10cqw; font-weight: 800; }
.vc-struk .vc-label { font-size: 5cqw; }
.vc-struk .vc-kode { font-size: 13cqw; letter-spacing: .1em; }
.vc-struk .vc-qr { width: 52cqw; margin: 1cqw 0; }
.vc-struk .vc-baris { justify-content: center; gap: 4cqw; font-size: 6cqw; }
.vc-struk .vc-harga { font-weight: 800; }
.vc-struk .vc-catatan { font-size: 5cqw; line-height: 1.35; }
.vc-struk .vc-seri { font-size: 4.6cqw; }

/* ── layar desainer ── */
.desainer { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .desainer { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } .desainer-pratinjau { position: sticky; top: 92px; } }
.desainer-atur > * + * { margin-top: 14px; }
.desainer-atur h2 { margin-bottom: 12px; }
.panggung { border-radius: var(--r-besar); padding: 32px 20px; display: grid; place-items: center;
  background: radial-gradient(circle, #d5d9e1 1px, transparent 1.4px) 0 0 / 14px 14px, #e8eaef; }
.panggung .vc-wadah { width: min(100%, var(--lebar, 440px)); filter: drop-shadow(0 14px 22px rgba(20, 24, 31, .22)); }
.kertas-a4 { background: #fff; padding: 3%; display: grid; grid-template-columns: repeat(var(--kol), minmax(0, 1fr)); gap: 1.2%; border-radius: 6px; box-shadow: var(--bayang); align-content: start; }
.kertas-struk { display: flex; gap: 14px; justify-content: center; padding: 18px; background: #e8eaef; border-radius: var(--r-besar); }
.kertas-struk .vc-wadah { width: 150px; }
.pilih-templat { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: thin; }
.pilih-templat button { flex: none; width: 148px; border: 0; background: var(--kertas); border-radius: var(--r); padding: 10px; text-align: left; cursor: pointer; font: inherit; color: inherit; box-shadow: inset 0 0 0 1.5px transparent; }
.pilih-templat button[aria-checked="true"] { box-shadow: inset 0 0 0 2.5px var(--grafit); background: var(--kuning-muda); }
@media (min-width: 960px) { .pilih-templat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; } .pilih-templat button { width: auto; padding: 8px; } .pilih-templat .mini { height: 64px; } }
.pilih-templat .mini { display: grid; place-items: center; height: 84px; margin-bottom: 8px; }
.pilih-templat .mini .vc-wadah { width: 100%; }
.pilih-templat .mini:has(.vc-struk) .vc-wadah { width: 46px; }
.pilih-templat b { display: block; font-size: 14px; }
.pilih-templat button > span:last-child { display: block; font-size: 12.5px; color: var(--redup); }
.pilih-warna { display: flex; flex-wrap: wrap; gap: 10px; }
.pilih-warna button, .warna-sendiri { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); position: relative; padding: 0; }
.pilih-warna button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--lembar), 0 0 0 5px var(--grafit); }
.warna-sendiri { display: grid; place-items: center; background: conic-gradient(#e5484d, #ffc21a, #13804f, #1f5fbf, #6e56cf, #e5484d); overflow: hidden; }
.warna-sendiri input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.warna-sendiri span { width: 22px; height: 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; pointer-events: none; }
.warna-sendiri svg { width: 14px; height: 14px; }
.baris-logo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo-unggah { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; }
.logo-unggah.kosong { display: grid; place-items: center; background: var(--kertas); color: var(--redup); font-size: 12.5px; font-weight: 600; box-shadow: inset 0 0 0 1.5px dashed var(--garis); border: 1.5px dashed var(--samar); }
.centang-isi { display: grid; gap: 4px; }
.centang-isi label { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.centang-isi input { width: 20px; height: 20px; accent-color: var(--grafit); }
.galeri-desain .vc-wadah { width: 100%; }

/* nomor WA di voucher */
.vc-wa { display: inline-flex; align-items: center; gap: .7cqw; font-weight: 700; white-space: nowrap; }
.vc-wa svg { width: 1.15em; height: 1.15em; flex: none; }
.vc-kaki { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; }
.vc-pecah { flex-basis: 100%; height: 0; }
.vc-tiket .vc-catatan { margin-top: auto; }
.vc-tiket .vc-kaki { font-size: 2.6cqw; color: #4b5563; }
.vc-tiket .vc-kaki .vc-wa { color: #16191f; }
.vc-kartu .vc-wa { font-size: 3cqw; }
.vc-kartu .vc-bawah { row-gap: 1cqw; }
.vc-malam .vc-wa { font-size: 2.8cqw; color: #fff; margin-top: .6cqw; }
.vc-malam .vc-wa svg { color: var(--vw); }
.vc-malam:has(.vc-wa) .vc-catatan { margin-top: auto; }
.vc-hemat .vc-wa { font-size: 2.8cqw; }
.vc-struk .vc-wa { font-size: 5.4cqw; gap: 1.6cqw; }

/* ── toko voucher (halaman pembeli) & poster ── */
.toko { max-width: 460px; margin: 0 auto; padding: 18px 16px 40px; }
.toko > * + * { margin-top: 16px; }
.toko h1 { font-size: 30px; }
.toko-kepala { display: flex; align-items: center; gap: 12px; }
.toko-kepala b { display: block; font-family: var(--judul); font-size: 20px; line-height: 1.1; }
.toko-kepala span { font-size: 13px; color: var(--redup); }
.toko-kepala .logo, .toko-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.toko-paket { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.toko-paket label { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px; border-radius: var(--r); background: var(--lembar); box-shadow: inset 0 0 0 1.5px var(--garis); cursor: pointer; }
.toko-paket label.dipilih, .toko-paket label:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--grafit); background: var(--kuning-muda); }
.toko-paket label:has(input:focus-visible) { outline: 3px solid var(--biru); outline-offset: 2px; }
.toko-paket input { position: absolute; opacity: 0; pointer-events: none; }
.toko-paket b { font-family: var(--judul); font-size: 24px; line-height: 1.1; }
.toko-paket .redup { font-size: 13.5px; }
.harga-toko { font-weight: 800; font-size: 17px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.laris { position: absolute; top: -9px; right: 10px; background: var(--grafit); color: var(--kuning); font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 2px 9px; }
.toko-qris { padding: 0 0 16px; overflow: hidden; }
.toko-qris-atas { display: flex; justify-content: space-between; align-items: center; background: #c8102e; color: #fff; padding: 10px 16px; }
.toko-qris-atas b { font-family: var(--judul); font-size: 22px; letter-spacing: .04em; font-style: italic; }
.toko-qris-atas span { font-size: 13px; font-weight: 600; }
.toko-qris-jumlah { text-align: center; padding: 16px 16px 6px; }
.toko-qris-jumlah span { display: block; font-size: 14px; }
.toko-qris-jumlah b { font-family: var(--judul); font-size: 38px; font-variant-numeric: tabular-nums; }
.toko-qris-kode { width: min(72%, 260px); margin: 6px auto 10px; }
.toko-qris-kode svg { display: block; width: 100%; height: auto; }
.toko-tunggu { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 14.5px; margin-bottom: 8px; }
.toko-qris p { padding: 0 16px; }
.denyut { width: 10px; height: 10px; border-radius: 50%; background: #e7934f; animation: denyut 1.2s infinite; }
@keyframes denyut { 50% { opacity: .25; transform: scale(.8); } }
.toko-berhasil { text-align: center; }
.lingkar-centang { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: var(--hijau); color: #fff; animation: muncul .35s cubic-bezier(.2, 1.4, .4, 1); }
.lingkar-centang svg { width: 32px; height: 32px; stroke-width: 3; }
@keyframes muncul { from { transform: scale(.4); opacity: 0; } }
.angka-toko { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.angka-toko > div { background: var(--kertas); border-radius: 10px; padding: 10px 12px; }
.angka-toko b { display: block; font-family: var(--judul); font-size: 22px; font-variant-numeric: tabular-nums; }
.angka-toko span { font-size: 12.5px; color: var(--redup); font-weight: 600; }
.tautan-toko { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; padding: 10px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--garis); font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }
.tautan-toko svg { width: 20px; height: 20px; flex: none; }
.poster { aspect-ratio: 148 / 210; background: var(--pw); color: var(--pt); border-radius: 14px; padding: 9% 9% 7%; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: var(--bayang-angkat); container-type: inline-size; }
.poster-atas { display: flex; align-items: center; gap: 3cqw; font-family: var(--judul); font-size: 6cqw; }
.poster-atas .logo, .poster-atas .toko-logo { width: 10cqw; height: 10cqw; border-radius: 2.6cqw; }
.poster h1 { font-size: 11.5cqw; line-height: 1; margin-top: 5cqw; }
.poster-alur { font-size: 4.2cqw; font-weight: 700; margin-top: 2.5cqw; opacity: .85; }
.poster-qr { width: 52cqw; margin-top: 5cqw; background: #fff; padding: 3cqw; border-radius: 4cqw; }
.poster-qr svg { display: block; width: 100%; height: auto; }
.poster-alamat { font-size: 3.8cqw; font-weight: 700; margin-top: 2cqw; }
.poster-harga { list-style: none; padding: 0; margin: auto 0 0; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2cqw; }
.poster-harga li { display: flex; justify-content: space-between; gap: 2cqw; background: color-mix(in srgb, var(--pt) 12%, transparent); border-radius: 2.4cqw; padding: 2cqw 3cqw; font-size: 4cqw; }
.poster-wa { font-size: 3.6cqw; font-weight: 700; margin-top: 3cqw; }
.vc-hemat:has(.vc-qr) > .vc-wa { margin-right: 21cqw; }
.poster h1, .toko h1 { text-wrap: balance; }
.galeri-desain { text-decoration: none; color: inherit; }

/* cara pembayaran */
.tautan-aksi { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; }
.cara-lain { border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--garis); padding: 0 14px; }
.cara-lain summary { cursor: pointer; font-weight: 700; padding: 13px 0; list-style-position: inside; }
.cara-lain[open] { padding-bottom: 14px; }
.cara-lain > * + * { margin-top: 10px; }
.nominal-pas { background: var(--kuning-muda); border-radius: 10px; padding: 10px 12px; display: grid; }
.nominal-pas b { font-family: var(--judul); font-size: 28px; line-height: 1.1; }
.nominal-pas span { color: #6b5200; }
.rekening { display: grid; background: var(--kertas); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.rekening b { font-size: 18px; letter-spacing: .02em; }

/* sakelar nyala/mati */
.sakelar { position: relative; flex: none; width: 48px; height: 28px; margin-top: 2px; }
.sakelar input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sakelar i { position: absolute; inset: 0; border-radius: 14px; background: #cfd4dc; transition: background .15s; pointer-events: none; }
.sakelar i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.sakelar input:checked + i { background: var(--hijau); }
.sakelar input:checked + i::after { transform: translateX(20px); }
.sakelar input:focus-visible + i { outline: 3px solid var(--biru); outline-offset: 2px; }

/* ── masuk & daftar ── */
.halaman-masuk { min-height: 100dvh; display: grid; place-items: center; padding: 28px 16px; background:
  linear-gradient(180deg, var(--grafit) 0 220px, var(--kertas) 220px); }
.kotak-masuk { width: 100%; max-width: 420px; background: var(--lembar); border-radius: 20px; box-shadow: var(--bayang-angkat); padding: 24px 20px 22px; }
.kotak-masuk > * + * { margin-top: 14px; }
.merek-masuk { display: flex; align-items: center; gap: 10px; }
.merek-masuk .logo { width: 40px; height: 40px; }
.merek-masuk b { font-family: var(--judul); font-size: 30px; font-weight: 700; }
.slogan-masuk { color: var(--redup); }
.segmen-masuk { display: grid; grid-template-columns: 1fr 1fr; background: var(--kertas); border-radius: 12px; padding: 4px; gap: 4px; }
.segmen-masuk button { border: 0; background: none; min-height: 40px; border-radius: 9px; font-weight: 700; cursor: pointer; color: var(--redup); }
.segmen-masuk button[aria-selected="true"] { background: var(--lembar); color: var(--tinta); box-shadow: var(--bayang); }
.galat-masuk { background: var(--merah-muda); color: var(--merah); border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 14px; }
.atau-masuk { display: flex; align-items: center; gap: 10px; color: var(--redup); font-size: 13px; }
.atau-masuk::before, .atau-masuk::after { content: ''; flex: 1; height: 1px; background: var(--garis); }
#toast.merah { background: var(--merah); }
.langkah li.beres::before { content: '✓'; background: var(--hijau); color: #fff; }
.kisi-impor { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; margin-top: 6px; }
@media (max-width: 520px) { .kisi-impor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .kisi-impor .nama-impor { grid-column: 1 / -1; } }
.status.pasang { background: var(--kuning-muda); color: #7a5a00; }
