/* Halaman toko (beli.html, selesai.html) - tema sama dengan index.html: putih, biru sedang, biru laut */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");
:root {
  --laut: #0a2647;           /* biru laut */
  --biru: #1f6fe5;           /* biru sedang (teks putih 4.7:1) */
  --biru-muda: #e7f0fd;
  --kertas: #fbfcff;
  --teks: #0a2647;
  --redup: #4b5e7a;
  --garis-halus: #d5deec;
  --teks-gelap: #c9d8ee;
  --hijau: #157a45; --merah: #c43c3c;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--laut); color: var(--teks); font: 16px/1.6 "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
a { color: var(--biru); }

/* header: pil putih, isi: lembar putih membulat di atas biru laut */
header.atas { width: calc(100% - 28px); max-width: 680px; margin: 14px auto 0; }
header.atas .wadah { display: flex; align-items: center; height: 60px; max-width: none; padding: 0 22px; border-radius: 16px; background: #fff; }
.merek { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; font-size: 18px; color: var(--laut); }
.merek img { width: 28px; height: 28px; }
.wadah { max-width: 580px; margin: 0 auto; padding: 0 20px; }
main { width: calc(100% - 28px); max-width: 680px; margin: 12px auto 40px; padding: 44px 0 52px; background: var(--kertas); border-radius: 32px; }
h1 { font-size: clamp(30px, 7vw, 42px); line-height: 1.1; font-weight: 800; margin: 0 0 12px; letter-spacing: -.03em; }
.sorot { display: inline-block; background: var(--biru); color: #fff; padding: 0 .24em .06em; border-radius: .24em; transform: rotate(-2deg); }
.redup { color: var(--redup); }
.kartu { background: #fff; border: 1.5px solid var(--garis-halus); border-radius: 22px; padding: 24px; margin-top: 26px; }
label { display: block; font-weight: 700; font-size: 14px; margin: 18px 0 6px; }
label:first-child { margin-top: 0; }
input, select {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1.5px solid var(--garis-halus);
  background: #fff; color: var(--teks); font: inherit;
}
input:focus, select:focus { outline: 2px solid var(--biru); outline-offset: 1px; border-color: transparent; }
.catatan { font-size: 13px; color: var(--redup); margin-top: 6px; }
.harga { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; padding-top: 16px; border-top: 1.5px solid var(--garis-halus); }
.harga b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }

/* tombol terbelah: teks + blok ikon di kanan (sama dengan index.html) */
.tombol {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px;
  min-height: 52px; padding: 0 0 0 20px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer;
  background: var(--biru); color: #fff; font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.25; text-decoration: none; text-align: left;
}
.tombol::after {
  content: "→"; flex: none; align-self: stretch; display: grid; place-items: center;
  width: 52px; font-size: 18px; background: var(--laut); color: #fff; transition: width .15s, background .15s, color .15s;
}
.tombol[download]::after { content: "↓"; }
.tombol:hover::after { width: 62px; }
.tombol:disabled { opacity: .55; cursor: wait; }
.tombol:disabled:hover::after { width: 52px; }
.tombol.kedua { background: transparent; border-color: var(--laut); color: var(--laut); }
.tombol.kedua::after { background: transparent; color: var(--laut); border-left: 2px solid var(--laut); }
.tombol.kedua:hover::after { background: var(--laut); color: #fff; }
.pesan { margin-top: 14px; font-size: 14px; color: var(--merah); min-height: 1em; }
.kunci {
  display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--biru-muda); border-radius: 12px; padding: 14px 14px 14px 18px; margin: 14px 0;
}
.kunci code { font: 700 clamp(15px, 4.6vw, 20px) Consolas, "Courier New", monospace; letter-spacing: .04em; overflow-wrap: anywhere; color: var(--laut); }
.kunci button { background: var(--laut); color: #fff; border: 0; border-radius: 7px; padding: 9px 14px; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.kunci button:hover { background: var(--biru); }
.status-ok { color: var(--hijau); }
ol { padding-left: 20px; }
.kelompok-beli { margin-bottom: 20px; }
.kelompok-beli.paket { padding: 14px 16px; background: var(--laut); color: #fff; border-radius: 16px; }
.kelompok-beli.paket .catatan, .kelompok-beli.paket .redup { color: var(--teks-gelap); }
.kelompok-beli.paket .judul-kelompok { color: #8fb6ef; }
.judul-kelompok { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--biru); }
label.pilih {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 2px; font-weight: 500; font-size: 15px;
  border-bottom: 1.5px solid var(--garis-halus); cursor: pointer;
}
label.pilih input { width: 18px; height: 18px; flex: none; accent-color: var(--biru); }
label.pilih span { flex: 1; min-width: 0; }
label.pilih b { white-space: nowrap; }
.kelompok-beli.paket label.pilih { border-bottom: 0; font-weight: 700; }
.putar { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--garis-halus); border-top-color: var(--biru); border-radius: 50%; animation: putar 1s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes putar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .putar { animation: none; } }
.blok-app { margin-top: 22px; padding-top: 16px; border-top: 1.5px solid var(--garis-halus); }
.blok-app > p:first-child { margin: 0; }
.blok-app .tombol { margin-top: 12px; }
.judul-app { margin: 22px 0 10px; font-size: 18px; }

@media (max-width: 560px) {
  header.atas, main { width: calc(100% - 16px); }
  header.atas { margin-top: 8px; }
  main { margin-top: 8px; border-radius: 24px; padding: 32px 0 40px; }
  .wadah { padding: 0 16px; }
  .kartu { padding: 18px; }
}
