/* ————————————————————————————————————————————————
   GateQRIS Dashboard — draft gaya "Paygrid" (terang)
   Visual draft only. Font kecil & rapat, kartu putih
   membulat di atas latar abu-biru lembut.
   ———————————————————————————————————————————————— */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/pjs-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --latar: #FAF6EA;
  --kartu: #ffffff;
  --teks: #272D2A;
  --redup: #8E9484;
  --redup-2: #B9BBA9;
  --garis: #ECE4D0;
  --biru: #0EA5E9;
  --biru-lembut: #E0F2FE;
  --oranye: #f5a623;
  --hijau: #22a06b;
  --hijau-lembut: #e2f4ec;
  --kuning-lembut: #fdf3e0;
  --kuning-teks: #a86e0c;
  --merah: #e05252;
  --radius: 20px;
  --bayang: 0 1px 2px rgba(96, 82, 45, .04), 0 10px 28px -18px rgba(96, 82, 45, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 14px; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--latar);
  color: var(--teks);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ——— Kerangka ——— */
.tata {
  display: grid;
  grid-template-columns: 228px 1fr;
  min-height: 100vh;
}

/* ——— Sidebar ——— */
.samping {
  background: var(--kartu);
  border-right: 1px solid var(--garis);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 8px 20px;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.logo .ubin {
  width: 30px; height: 30px;
  filter: drop-shadow(0 3px 6px rgba(96, 82, 45, .14));
  display: grid; place-items: center;
  flex: none;
}
.logo b span { color: var(--biru); }

.menu { display: flex; flex-direction: column; gap: 3px; }
.menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 500;
  color: #62665C;
}
.menu a svg { flex: none; }
.menu a:hover { background: #FAF6EA; color: var(--teks); }
.menu a.aktif {
  background: var(--biru-lembut);
  color: var(--biru);
  font-weight: 600;
}
.menu .grup {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--redup-2);
  padding: 16px 12px 6px;
}

.akun-bawah {
  margin-top: auto;
  border-top: 1px solid var(--garis);
  padding: 14px 8px 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #ffd9a8;
  color: #8a5410;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700;
  flex: none;
}
.akun-bawah .siapa { min-width: 0; }
.akun-bawah .siapa b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.akun-bawah .siapa span { display: block; font-size: 11.5px; color: var(--redup); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ——— Konten utama ——— */
.utama {
  padding: 24px 28px 34px;
  min-width: 0;
}

.baris-atas {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.baris-atas h1 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.baris-atas .sub { font-size: 12.5px; color: var(--redup); margin-top: 2px; }

.cari {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--kartu);
  border: 1px solid var(--garis);
  border-radius: 999px;
  padding: 8px 15px;
  width: 245px;
  color: var(--redup);
  font-size: 13px;
}
.cari input {
  border: 0; outline: 0; background: none;
  font: inherit; color: var(--teks); width: 100%;
}
.cari input::placeholder { color: var(--redup-2); }

.tombol-ikon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--kartu);
  border: 1px solid var(--garis);
  display: grid; place-items: center;
  color: #62665C;
  cursor: pointer;
  position: relative;
  flex: none;
}
.tombol-ikon .titik-notif {
  position: absolute; top: 8px; right: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #f2607c;
  border: 1.5px solid #fff;
}
.avatar-atas {
  width: 38px; height: 38px; border-radius: 50%;
  background: #ffd9a8; color: #8a5410;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  flex: none; cursor: pointer;
}

/* ——— Kartu umum ——— */
.kartu {
  background: var(--kartu);
  border-radius: var(--radius);
  box-shadow: var(--bayang);
  padding: 20px 22px;
}
.kartu h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kartu h2 .aksi {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--biru);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.kartu .ket {
  font-size: 12.5px;
  color: var(--redup);
  margin-top: 3px;
}

/* ——— Statistik ——— */
.grid-stat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.chip-kuning { background: var(--kuning-lembut); color: var(--kuning-teks); }
.ket-stat { font-size: 11px; color: var(--redup); margin-top: 2px; }
.kaki .disclaimer { font-size: 11.5px; color: var(--redup-2); max-width: 660px; margin: 8px auto 0; line-height: 1.55; }
.stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.stat .chip {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
}
.chip-biru   { background: var(--biru-lembut);  color: var(--biru); }
.chip-hijau  { background: var(--hijau-lembut); color: var(--hijau); }
.chip-ungu   { background: #eee9fd; color: #7a5af5; }
.chip-oranye { background: #fdeeda; color: var(--oranye); }
.stat .label { font-size: 12.5px; color: var(--redup); font-weight: 500; }
.stat .angka { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }

/* ——— Baris dua kolom ——— */
.grid-2 {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
  align-items: stretch;
}
.tumpuk-kanan { display: flex; flex-direction: column; gap: 18px; }

/* ——— Grafik ——— */
.legenda { display: flex; gap: 16px; margin-left: auto; font-size: 12px; color: var(--redup); font-weight: 500; }
.legenda i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.sumbu { display: flex; justify-content: space-between; font-size: 11px; color: var(--redup-2); padding: 8px 2px 0; }

/* ——— QRIS & perangkat ——— */
.qris-isi { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.kotak-qr {
  width: 74px; height: 74px;
  border: 1px solid var(--garis);
  border-radius: 14px;
  display: grid; place-items: center;
  flex: none;
  background: #FDFBF4;
}
.qris-isi b { font-size: 14px; display: block; }
.qris-isi .kecil { font-size: 12px; color: var(--redup); margin-top: 2px; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700;
  padding: 3.5px 10px;
  border-radius: 999px;
  letter-spacing: .01em;
}
.pill-hijau  { background: var(--hijau-lembut); color: var(--hijau); }
.pill-kuning { background: var(--kuning-lembut); color: var(--kuning-teks); }
.pill-abu    { background: #F4EEDF; color: #71809a; }
.pill-biru   { background: var(--biru-lembut); color: var(--biru); }

.perangkat { display: flex; align-items: center; gap: 11px; margin-top: 14px; }
.perangkat .tumbuh { flex: 1; min-width: 0; }
.perangkat b { font-size: 13.5px; display: block; }
.perangkat .kecil { font-size: 12px; color: var(--redup); }
.titik { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.titik-hidup { background: #2fbf71; box-shadow: 0 0 0 4px rgba(47, 191, 113, .16); }
.titik-mati  { background: #c3cedd; }

.tombol {
  border: 1px solid var(--garis);
  background: var(--kartu);
  color: var(--teks);
  font: inherit; font-size: 12.5px; font-weight: 600;
  border-radius: 10px;
  padding: 7px 13px;
  cursor: pointer;
}
.tombol:hover { background: #FDFBF4; }
.tombol-biru { background: var(--biru); border-color: var(--biru); color: #fff; }
.tombol-biru:hover { background: #2270cb; }

.pairing {
  border-top: 1px dashed var(--garis);
  margin-top: 16px; padding-top: 14px;
}
.pairing b { font-size: 12.5px; display: block; }
.pairing p { font-size: 12px; color: var(--redup); margin: 2px 0 10px; }

/* ——— Langkah integrasi ——— */
.cek-item { display: flex; gap: 11px; padding: 10px 0; align-items: flex-start; }
.cek-item + .cek-item { border-top: 1px solid #F7F2E4; }
.cek-item .bulat {
  width: 23px; height: 23px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700;
  flex: none; margin-top: 1px;
}
.bulat-sudah { background: var(--hijau-lembut); color: var(--hijau); }
.bulat-belum { background: #F4EEDF; color: var(--redup); }
.cek-item b { font-size: 13.5px; display: block; }
.cek-item p { font-size: 12.5px; color: var(--redup); margin-top: 1px; line-height: 1.5; }

/* ——— Tabel transaksi ——— */
.tabel { width: 100%; border-collapse: collapse; margin-top: 8px; }
.tabel th {
  text-align: left;
  font-size: 11px; font-weight: 600;
  letter-spacing: .07em;
  color: var(--redup-2);
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--garis);
}
.tabel td {
  font-size: 13px;
  padding: 11px 10px;
  border-bottom: 1px solid #F7F2E4;
  vertical-align: middle;
}
.tabel tr:last-child td { border-bottom: 0; }
.tabel .ref { font-weight: 600; }
.tabel .sub-sel { display: block; font-size: 11.5px; color: var(--redup); margin-top: 1px; font-weight: 400; }
.tabel .nominal { font-weight: 700; text-align: right; }
.tabel th.kanan, .tabel td.kanan { text-align: right; }

/* ——— Mutasi ——— */
.mutasi-item { padding: 12px 0; }
.mutasi-item + .mutasi-item { border-top: 1px solid #F7F2E4; }
.mutasi-item .atas { display: flex; align-items: center; gap: 8px; }
.mutasi-item .atas b { font-size: 12.5px; }
.mutasi-item .atas .waktu { font-size: 11.5px; color: var(--redup-2); }
.mutasi-item .atas .pill { margin-left: auto; }
.mutasi-item .teks {
  font-size: 12.5px; color: #62665C;
  line-height: 1.55; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mutasi-item .nominal-baca { font-size: 11.5px; color: var(--redup); margin-top: 3px; }

/* ——— Integrasi API ——— */
.api-baris {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #F7F2E4;
  margin-top: 6px;
}
.api-baris .tumbuh { flex: 1; min-width: 0; }
.api-baris b { font-size: 13.5px; display: block; }
.api-baris .kecil { font-size: 12px; color: var(--redup); }
.api-baris code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  background: #FAF6EA;
  border: 1px solid var(--garis);
  padding: 5px 9px;
  border-radius: 8px;
  color: #46607f;
  white-space: nowrap;
}
.endpoint {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  background: #0f2748;
  color: #cfe4ff;
  border-radius: 12px;
  padding: 12px 15px;
  line-height: 1.9;
  overflow-x: auto;
  white-space: nowrap;
  margin-top: 12px;
}
.endpoint .metode { color: #7fd08c; font-weight: 700; }
.endpoint .metode-get { color: #8fc3ff; font-weight: 700; }

/* ——— Kaki ——— */
.kaki {
  display: flex; gap: 20px; align-items: center;
  font-size: 12px; color: var(--redup);
  padding: 6px 4px 0;
}
.kaki .tautan { display: flex; gap: 16px; }
.kaki a:hover { color: var(--biru); }
.kaki p { margin-left: auto; }

/* ——— Langkah integrasi: 3 kolom ——— */
.grid-2 { align-items: start; }
.langkah-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 26px;
  margin-top: 8px;
}
.langkah-grid .cek-item { border-top: 0; }

/* ——— Layar sempit ——— */
@media (max-width: 900px) {
  .tata { grid-template-columns: 1fr; }
  .samping { position: static; height: auto; }
  .grid-stat { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .langkah-grid { grid-template-columns: 1fr; }
  .cari { display: none; }
  .utama { padding: 18px 16px 28px; }
}

/* ————————————————————————————————————————————
   FUNGSIONAL (ditambahkan saat dashboard-baru dipasang live):
   kelas untuk tampilan masuk + konten yang digambar dashboard.js
   ———————————————————————————————————————————— */
[hidden] { display: none !important; }

.grid-sama { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; align-items: start; }
@media (max-width: 900px) { .grid-sama { grid-template-columns: 1fr; } }

/* Baris data generik (digambar JS) */
.baris { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid #F7F2E4; }
.baris.pertama { border-top: 0; }
.baris .tumbuh { flex: 1; min-width: 0; }
.baris .nama { font-size: 13.5px; font-weight: 650; display: block; }
.tumbuh .kecil, span.kecil { font-size: 12px; color: var(--redup); display: block; }
p.kecil { font-size: 12px; color: var(--redup); }
.kosong { font-size: 13px; color: var(--redup); line-height: 1.6; padding: 6px 0; }
.mutasi-teks { font-size: 12.5px; color: #62665C; line-height: 1.55; margin-top: 3px; }
.titik-mati { background: #C9CDBB; }
.kode-pairing { font-size: 22px; font-weight: 800; letter-spacing: .35em; color: var(--biru); font-variant-numeric: tabular-nums; }

/* Lencana status tambahan (JS) */
.pill-emas { background: var(--kuning-lembut); color: var(--kuning-teks); }
.pill-merah { background: #fdecec; color: var(--merah); }

/* Langkah integrasi dari JS */
.cek-item .bulat.belum { background: var(--biru-lembut); color: var(--biru); }
.cek-item .bulat.sudah { background: var(--hijau-lembut); color: var(--hijau); }

/* Tombol & field (nama kelas lama dari dashboard.js) */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-emas { background: var(--biru); color: #fff; box-shadow: 0 8px 20px rgba(14, 165, 233, .25); }
.btn-emas:hover { background: #0284C7; }
.btn-garis { background: #fff; color: var(--teks); border-color: var(--garis); }
.btn-garis:hover { background: #FDFBF4; }
.btn-merah { background: #fdecec; color: var(--merah); border-color: #f6d5d5; }
.btn-merah:hover { background: #fbdddd; }
.field { width: 100%; padding: 11px 14px; border: 1px solid var(--garis); border-radius: 12px; font: inherit; font-size: 14px; background: #fff; color: var(--teks); }
.field:focus { outline: 2px solid var(--biru-lembut); border-color: var(--biru); }
textarea.field { min-height: 84px; resize: vertical; margin-bottom: 10px; }
.gagal { background: #fdecec; border: 1px solid #f6d5d5; color: #a33; border-radius: 12px; padding: 11px 14px; font-size: 13px; margin-bottom: 14px; line-height: 1.55; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* ——— Tampilan masuk ——— */
.masuk-topbar { max-width: 1120px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; }
.masuk-topbar .kembali { margin-left: auto; font-size: 13px; color: var(--redup); font-weight: 600; }
.masuk-topbar .kembali:hover { color: var(--biru); }
.masuk-split { max-width: 1120px; margin: 0 auto; padding: 14px 24px 44px; display: grid; grid-template-columns: 400px 1fr; gap: 48px; align-items: start; }
.kartu-masuk { background: #fff; border: 1px solid var(--garis); border-radius: var(--radius); box-shadow: var(--bayang); padding: 28px; }
.kartu-masuk h1 { font-size: 20px; font-weight: 750; letter-spacing: -.01em; }
.kartu-masuk .sub { font-size: 13px; color: var(--redup); margin: 6px 0 18px; line-height: 1.55; }
.field-label { display: flex; font-size: 12.5px; font-weight: 650; margin: 14px 0 7px; }
.field-label .lupa { margin-left: auto; color: var(--biru); font-weight: 600; }
.bungkus-ikon { position: relative; display: flex; align-items: center; }
.bungkus-ikon > svg { position: absolute; left: 13px; color: var(--redup-2); pointer-events: none; }
.bungkus-ikon .field { padding-left: 40px; }
.bungkus-ikon .mata { position: absolute; right: 8px; background: none; border: 0; font: inherit; font-size: 12px; font-weight: 650; color: var(--biru); cursor: pointer; padding: 6px 8px; }
.kartu-masuk .btn { margin-top: 20px; }
.persetujuan { font-size: 12px; color: var(--redup); text-align: center; margin-top: 16px; line-height: 1.6; }
.persetujuan a, .di-bawah-kartu a { color: var(--biru); }
.di-bawah-kartu { text-align: center; font-size: 13px; color: var(--redup); margin-top: 16px; }
.masuk-kanan h2 { font-size: 24px; font-weight: 750; letter-spacing: -.01em; line-height: 1.35; max-width: 480px; }
.masuk-kanan h2 em { color: var(--biru); font-style: normal; }
.masuk-frame { margin-top: 22px; border: 1px solid var(--garis); border-radius: 16px; overflow: hidden; box-shadow: var(--bayang); }
.masuk-frame img { display: block; width: 100%; height: auto; }
.manfaat { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.manfaat .item { display: flex; gap: 12px; }
.manfaat .cek { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--hijau-lembut); color: var(--hijau); display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 1px; }
.manfaat b { font-size: 13.5px; }
.manfaat p { font-size: 12.5px; color: var(--redup); line-height: 1.55; margin-top: 2px; }
@media (max-width: 900px) { .masuk-split { grid-template-columns: 1fr; gap: 30px; } }

/* ——— Halaman dokumen (Panduan / Syarat / Privasi) ——— */
.legal { max-width: 780px; margin: 0 auto; padding: 26px 20px 10px; }
.legal > a { font-weight: 700; font-size: 14px; color: var(--biru); }
.legal > a:hover { color: #0284C7; }
.legal .kartu { padding: 30px 34px; margin-top: 14px; }
.legal h1 { font-size: 23px; font-weight: 750; letter-spacing: -.01em; }
.legal .sub { font-size: 13.5px; color: var(--redup); margin-top: 6px; }
.legal h2 { font-size: 12.5px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--biru); margin: 26px 0 9px; }
.legal p { font-size: 14px; line-height: 1.75; color: #3C413C; margin-bottom: 10px; }
.legal p:last-child { margin-bottom: 0; }
.kaki-dok { max-width: 780px; margin: 0 auto; padding: 4px 20px 30px; }
@media (max-width: 640px) { .legal .kartu { padding: 24px 20px; } }

/* ——— Saldo Layanan + Modal Top Up (Tahap komersial 1) ——— */
.saldo-strip { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 18px; }
.saldo-strip .label { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; color: var(--redup); }
.saldo-angka { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.saldo-ket { font-size: 12.5px; color: var(--redup); margin-top: 3px; }
.saldo-strip .tombol-biru { padding: 10px 20px; font-size: 13px; }
.modal-latar { position: fixed; inset: 0; background: rgba(39, 45, 42, .48); display: flex; align-items: center; justify-content: center; z-index: 1200; padding: 18px; }
.modal-kartu { background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(39, 45, 42, .25); padding: 24px; width: 100%; max-width: 430px; max-height: 92vh; overflow-y: auto; }
.modal-kepala { display: flex; align-items: center; margin-bottom: 14px; }
.modal-kepala h3 { font-size: 16.5px; font-weight: 750; }
.modal-kepala .tombol-ikon { margin-left: auto; }
.topup-preset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.topup-preset .tombol { padding: 9px 4px; }
.topup-status { text-align: center; font-size: 13px; color: var(--redup); line-height: 1.6; }

/* ——— Panduan Memulai (6 langkah berwarna) ——— */
.panduan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 820px) { .panduan-grid { grid-template-columns: 1fr; } }
.panduan-kartu { border: 1px solid var(--garis); border-radius: 14px; padding: 15px 16px; background: #FFFDF6; }
.panduan-kepala { display: flex; align-items: center; gap: 11px; }
.ikon-warna { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 4px 10px rgba(39, 45, 42, .13); }
.ikon-warna svg { width: 23px; height: 23px; }
.ikon-warna.w-sky { background: linear-gradient(135deg, #38BDF8, #0284C7); }
.ikon-warna.w-ungu { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.ikon-warna.w-kuning { background: linear-gradient(135deg, #FBBF24, #D97706); }
.ikon-warna.w-hijau { background: linear-gradient(135deg, #34D399, #059669); }
.ikon-warna.w-ros { background: linear-gradient(135deg, #FB7185, #E11D48); }
.ikon-warna.w-indigo { background: linear-gradient(135deg, #818CF8, #4F46E5); }
.panduan-judul { font-size: 14px; font-weight: 700; line-height: 1.35; }
.panduan-poin { margin: 10px 0 0; padding-left: 17px; color: var(--redup); font-size: 12.5px; line-height: 1.75; }
.pill-panduan { margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.pill-selesai { background: var(--hijau-bg); color: var(--hijau); }
.pill-giliran { background: var(--sky-tint); color: var(--sky-dark); }
.pill-belum { background: #F1EAD6; color: var(--redup); }

/* ——— Indikator langkah daftar/verifikasi ——— */
.langkah-daftar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ld { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--redup); font-weight: 600; }
.ld i { width: 24px; height: 24px; border-radius: 50%; background: #EFE7D2; color: var(--redup); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 800; flex: none; }
.ld.aktif { color: var(--teks); }
.ld.aktif i { background: var(--sky); color: #fff; }
.ld.selesai { color: var(--redup); }
.ld.selesai i { background: var(--hijau-bg); color: var(--hijau); }
.ld-garis { width: 26px; height: 1.5px; background: var(--garis); }

/* ——— Meter kekuatan password ——— */
.meter { display: flex; gap: 5px; margin-top: 8px; }
.meter span { height: 5px; flex: 1; border-radius: 99px; background: #EFE7D2; transition: background .25s; }
.meter-teks { font-size: 11.5px; color: var(--redup); margin-top: 6px; }

/* ——— Checkbox persetujuan ——— */
.setuju { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--redup); line-height: 1.55; margin: 14px 0 4px; cursor: pointer; }
.setuju input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--sky-dark); flex: none; cursor: pointer; }
.setuju a { color: var(--sky-dark); font-weight: 600; }

/* ——— Kotak kode verifikasi ——— */
.kode-baris { display: flex; gap: 8px; margin: 6px 0 16px; }
.kode-box { width: 100%; text-align: center; font-size: 22px; font-weight: 800; padding: 13px 0; border: 1.5px solid var(--garis); border-radius: 12px; background: #FFFDF6; color: var(--teks); font-family: inherit; }
.kode-box:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-tint); }

/* ——— Banner pengingat dashboard ——— */
.banner-ingat { display: flex; align-items: center; gap: 14px; background: #FFF7E0; border: 1px solid #F0D48A; border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; }
.banner-ingat .b-ikon { font-size: 20px; flex: none; }
.banner-ingat b { font-size: 13.5px; display: block; }
.banner-ingat p { font-size: 12.5px; color: #7A6414; margin-top: 2px; line-height: 1.55; }
.banner-ingat .tombol { margin-left: auto; flex: none; }

/* ——— Modal bantuan ——— */
.tombol-wa { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; background: #22C55E; color: #fff; font-weight: 700; font-size: 14px; border-radius: 12px; padding: 13px; text-decoration: none; margin-bottom: 10px; }
.tombol-wa:hover { background: #16A34A; }
.tombol-panduan { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; background: var(--sky-tint); color: var(--sky-dark); font-weight: 700; font-size: 14px; border-radius: 12px; padding: 13px; text-decoration: none; margin-bottom: 14px; }

/* Alias variabel untuk blok tambahan (panduan/daftar/verifikasi/bantuan) */
:root {
  --sky: #0EA5E9;
  --sky-tint: #E0F2FE;
  --sky-dark: #0284C7;
  --hijau-bg: #e2f4ec;
}

/* ——— Header publik sederhana (logo + lampu tema + kembali), putih & selalu di atas ——— */
.topbar-pub { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--garis); }
.topbar-pub-dalam { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; }
.topbar-pub-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--teks); font-size: 17px; text-decoration: none; }
.topbar-pub-logo b { font-weight: 750; letter-spacing: -.01em; }
.topbar-pub-tanda { width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center; filter: drop-shadow(0 4px 8px rgba(96, 82, 45, .14)); }
.topbar-pub-kanan { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.topbar-pub .kembali { font-size: 13.5px; color: var(--redup); font-weight: 600; text-decoration: none; }
.topbar-pub .kembali:hover { color: var(--biru); }
.tombol-lampu { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--garis); background: #fff; color: #64748B; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.tombol-lampu:hover { border-color: #D8CCAA; }

/* Indikator langkah: selalu sebaris, garis penghubung lentur */
.langkah-daftar { flex-wrap: nowrap; }
.ld { white-space: nowrap; font-size: 12px; }
.ld-garis { flex: 1 1 14px; min-width: 8px; width: auto; }
@media (max-width: 420px) { .ld { font-size: 11px; } .ld i { width: 21px; height: 21px; font-size: 11px; } }

/* Petunjuk kecil di bawah kolom isian */
.petunjuk { font-size: 11.5px; color: var(--redup); margin-top: 6px; line-height: 1.55; }

/* ——— Tema gelap untuk halaman publik/auth (daftar, verifikasi, masuk, legal) ———
   Diaktifkan kelas .gelap pada <body> (halaman mandiri) atau #v-masuk
   (layar masuk dashboard). Panel dashboard TIDAK ikut gelap. */
body.gelap, #v-masuk.gelap, #v-panel.gelap, .modal-latar.gelap, #inspeksi.gelap {
  --latar: #0C1220;
  --kartu: #141D31;
  --teks: #E9EDF5;
  --redup: #97A3BA;
  --redup-2: #5D6B85;
  --garis: #26334D;
  --biru-lembut: #12314D;
  --hijau-lembut: #123528;
  --hijau-bg: #123528;
  --sky-tint: #12314D;
  --kuning-lembut: #3A2E10;
  --kuning-teks: #F2C14E;
  --bayang: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -18px rgba(0, 0, 0, .6);
}
body.gelap, #v-masuk.gelap { background: var(--latar); }
#v-masuk.gelap { min-height: 100vh; }
#v-panel.gelap { background: var(--latar); min-height: 100vh; }
body.gelap .topbar-pub, #v-masuk.gelap .topbar-pub { background: rgba(12, 18, 32, .92); }
body.gelap .tombol-lampu, #v-masuk.gelap .tombol-lampu { background: #1B2740; color: #F2C14E; }
body.gelap .kartu-masuk, #v-masuk.gelap .kartu-masuk { background: #141D31; }
body.gelap .field, #v-masuk.gelap .field { background: #0F1729; }
body.gelap .field::placeholder, #v-masuk.gelap .field::placeholder { color: #5D6B85; }
body.gelap .masuk-frame, #v-masuk.gelap .masuk-frame { background: #141D31; }
body.gelap .kode-box { background: #0F1729; }
body.gelap .ld i { background: #26334D; }
body.gelap .meter span { background: #26334D; }
body.gelap .tombol, #v-masuk.gelap .tombol { background: #1B2740; color: var(--teks); border-color: var(--garis); }
body.gelap .setuju a, #v-masuk.gelap .persetujuan a { color: var(--biru); }
body.gelap .gagal, #v-masuk.gelap .gagal { background: #3B1626; color: #F3A8BC; }

/* ——— Tema gelap PANEL dashboard (kelas .gelap pada #v-panel / .modal-latar) ——— */
#v-panel.gelap .menu a:hover { background: #1B2740; }
#v-panel.gelap .banner-ingat { background: #3A2E10; border-color: #6B5518; color: var(--teks); }
#v-panel.gelap .field { background: #0F1729; }
#v-panel.gelap .field::placeholder { color: #5D6B85; }
#v-panel.gelap .tombol-lampu { background: #1B2740; color: #F2C14E; }
#v-panel.gelap .pill-abu { background: #26334D; color: var(--redup); }
#v-panel.gelap .bulat-belum { background: #26334D; }
#v-panel.gelap .kode-box { background: #0F1729; }
#v-panel.gelap .chip-ungu { background: #2A2145; color: #B7A6F5; }
#v-panel.gelap .chip-oranye { background: #3A2A10; color: #F0B35C; }
#v-panel.gelap .gagal { background: #3B1626; color: #F3A8BC; }
#v-panel.gelap .tombol { background: #1B2740; color: var(--teks); border-color: var(--garis); }
#v-panel.gelap .tombol-biru { background: var(--biru); border-color: var(--biru); color: #fff; }
.modal-latar.gelap .modal-kartu { background: #141D31; color: var(--teks); }
.modal-latar.gelap .field { background: #0F1729; }
.modal-latar.gelap .tombol { background: #1B2740; color: var(--teks); border-color: var(--garis); }

/* Perbaikan kontras tema gelap: teks warisan harus ikut terang di dalam wadah gelap */
#v-panel.gelap, .modal-latar.gelap, #v-masuk.gelap, #inspeksi.gelap { color: var(--teks); }
#v-panel.gelap .panduan-kartu { background: #1B2740; }
#v-panel.gelap .btn-garis { background: #1B2740; color: var(--teks); }
#v-panel.gelap .btn-garis:hover { background: #22314F; }
.modal-latar.gelap .btn-garis { background: #1B2740; color: var(--teks); }

/* ——— Tab status (Transaksi & Mutasi) + Inspeksi ——— */
.tab-tx { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-tx button { border: 1px solid var(--garis); background: #FDFBF4; color: var(--redup); font: inherit; font-size: 12.5px; font-weight: 650; padding: 7px 14px; border-radius: 99px; cursor: pointer; }
.tab-tx button:hover { color: var(--teks); border-color: #D8CCAA; }
.tab-tx button.aktif { background: var(--biru); border-color: var(--biru); color: #fff; }
.tab-tx button .tab-angka { opacity: .85; font-weight: 600; }
.tabel-bungkus { overflow-x: auto; }
.inspeksi-latar { position: fixed; inset: 0; background: rgba(24, 28, 24, .45); z-index: 1100; }
.inspeksi { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 94vw); background: var(--kartu); color: var(--teks); z-index: 1200; box-shadow: -18px 0 44px rgba(39, 45, 42, .22); padding: 22px; overflow-y: auto; }
.inspeksi-kepala { display: flex; align-items: center; margin-bottom: 16px; }
.inspeksi-kepala h3 { font-size: 16.5px; font-weight: 750; }
.inspeksi-kepala .tombol-ikon { margin-left: auto; }
.inspeksi h4 { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--redup); margin: 18px 0 8px; }
.inspeksi h4:first-child { margin-top: 0; }
.rincian { width: 100%; font-size: 13px; }
.rincian td { padding: 5px 0; vertical-align: top; }
.rincian td:first-child { color: var(--redup); width: 42%; }
.rincian td:last-child { font-weight: 600; word-break: break-word; }
.log-webhook { border: 1px solid var(--garis); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: 12.5px; }
.log-webhook .lw-atas { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.log-webhook .lw-respons { color: var(--redup); margin-top: 5px; word-break: break-word; white-space: pre-wrap; }
#v-panel.gelap .tab-tx button { background: #1B2740; color: var(--redup); }
#v-panel.gelap .tab-tx button.aktif { background: var(--biru); color: #fff; }
#inspeksi.gelap { background: #141D31; }

/* ——— Dokumentasi API (docs.html) ——— */
.dok-pre { background: #0F1729; color: #D9E4F5; border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 12.5px; line-height: 1.65; margin: 10px 0 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.kd { background: #E0F2FE; color: #075985; padding: 1px 6px; border-radius: 6px; font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.m-post, .m-get { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .05em; padding: 2px 9px; border-radius: 6px; vertical-align: 2px; }
.m-post { background: #DCF2E6; color: #0B7A44; }
.m-get { background: #E0F2FE; color: #0284C7; }
.legal table.dok-tabel { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 8px 0 14px; }
.legal table.dok-tabel th { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--garis); color: var(--redup); font-size: 12px; letter-spacing: .04em; }
.legal table.dok-tabel td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--garis); vertical-align: top; line-height: 1.6; }
body.gelap .legal p { color: var(--redup); }
