/* Halaman Top Up. */
.shop { display: grid; gap: 22px; padding: 28px 0 56px; }
.shop-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.shop-head h1 { font-size: clamp(36px, 6vw, 52px); color: var(--leaf-dark); }
.shop-head p { color: var(--muted); font-size: 18px; }
.steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 15px; }
.steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--leaf); color: #fff; font-family: var(--display); font-weight: 400; }

/* Akun tujuan */
.target {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px;
  border-radius: 18px; background: var(--sun-soft); border: 2px solid #f4dd8a;
}
.target.ready { background: var(--leaf-soft); border-color: #bfe3b6; }
.target-text { display: flex; flex-direction: column; min-width: 0; }
.target-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.target strong { font-family: var(--display); font-weight: 400; font-size: 26px; overflow-wrap: anywhere; }
.target-note { font-size: 15px; color: var(--muted); }

.shop-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.shop-section-head h2 { font-size: 28px; }
.pay-state { font-size: 14px; font-weight: 600; color: var(--muted); }
.pay-state.on::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); margin-right: 6px; vertical-align: middle; }

/* Paket: nominal sebagai pusat perhatian */
.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pack {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 16px; border-radius: 20px;
  background: var(--card); box-shadow: var(--shadow); border: 2px solid transparent;
}
.pack.promo { border-color: var(--sawit); }
.pack-tag { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #eef2f6; color: var(--muted); }
.pack-tag-empty { visibility: hidden; }
.pack.promo .pack-tag { background: var(--sawit); color: #fff; }
.pack-amount { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--leaf-dark); }
.pack-amount small { display: block; margin-top: 4px; font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--muted); }
.pack-desc { color: var(--muted); font-size: 15px; line-height: 1.4; }
.pack-price { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.pack-price strong { font-size: 22px; line-height: 1.15; }
.pack-price-old { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pack-price s { color: var(--muted); font-size: 14px; }
.pack-price em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--sawit); }
.pack .btn { width: 100%; }

/* Kartu terakhir yang mengisi sisa baris: tampil mendatar (info kiri, harga + tombol kanan). */
.pack.pack-fill { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; row-gap: 8px; align-items: center; align-content: center; }
.pack.pack-fill > .pack-tag { grid-column: 1; grid-row: 1; justify-self: start; }
.pack.pack-fill > .pack-amount { grid-column: 1; grid-row: 2; }
.pack.pack-fill > .pack-desc { grid-column: 1; grid-row: 3; }
.pack.pack-fill > .pack-price { grid-column: 2; grid-row: 1 / 3; align-self: end; align-items: flex-end; text-align: right; margin-top: 0; }
.pack.pack-fill > .btn { grid-column: 2; grid-row: 3; width: auto; min-width: 170px; }

.packs.packs-premium { grid-template-columns: 1fr; }
.pack-wide { flex-direction: row; align-items: center; gap: 18px; background: #263445; color: #fff; }
.pack-wide .pack-amount { color: var(--sun); font-size: 30px; }
.pack-wide .pack-amount small, .pack-wide .pack-desc { color: rgba(255, 255, 255, 0.8); }
.pack-wide .pack-main { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pack-wide .pack-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 180px; }
.pack-wide .btn { width: auto; min-width: 160px; }
.pack-wide .pack-tag { background: rgba(255, 255, 255, 0.14); color: #fff; }

.packs-empty { grid-column: 1 / -1; padding: 18px; border-radius: 16px; border: 2px dashed var(--line); color: var(--muted); text-align: center; }

/* FAQ */
.faq { background: var(--card); border-radius: 22px; padding: 20px 22px; box-shadow: var(--shadow); }
.faq h2 { font-size: 26px; margin-bottom: 6px; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 22px; line-height: 1; color: var(--leaf); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 8px; color: var(--muted); }
.faq a { color: var(--leaf-dark); }

/* Modal konfirmasi */
.confirm-list { margin: 14px 0 6px; }
.confirm-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.confirm-list dt { color: var(--muted); }
.confirm-list dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.confirm-list .confirm-world { align-items: center; }
.confirm-list .confirm-world.hidden { display: none; }
/* Kode voucher (opsional) di jendela konfirmasi */
.voucher-box { margin: 14px 0 4px; padding: 12px; border: 2px dashed var(--line); border-radius: 16px; background: #f8fbff; }
.voucher-box.applied { border-style: solid; border-color: rgba(46, 158, 68, .45); background: #effaf1; }
.modal-card .voucher-label { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.voucher-label span { color: var(--muted); font-weight: 600; }
.voucher-row { display: flex; gap: 8px; align-items: stretch; }
.modal-card .voucher-row input {
  flex: 1 1 auto; width: auto; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 12px; background: #fff;
  font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.modal-card .voucher-row input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; color: #9aa7b6; }
.voucher-row .btn { flex: none; min-height: 46px; padding: 0 18px; font-size: 16px; border-radius: 12px; }
.voucher-msg { margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--muted); }
.voucher-msg:empty { display: none; }
.voucher-msg.ok { color: #23803a; }
.voucher-msg.err { color: var(--red); }
.confirm-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 6px; padding: 12px 0 2px; border-top: 1px solid var(--line); }
.confirm-total > span { color: var(--muted); font-weight: 600; }
.confirm-total-price { text-align: right; font-size: 22px; font-weight: 800; line-height: 1.15; }
.confirm-total-price s { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.confirm-total-price.discounted { color: #23803a; }
.confirm-list .confirm-world select { max-width: 220px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 600; background: #fff; }

@media (max-width: 960px) { .packs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
  .packs { grid-template-columns: repeat(2, 1fr); }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .steps li { padding: 6px 8px 6px 6px; font-size: 13px; line-height: 1.15; }
  .pack-wide { flex-direction: column; align-items: stretch; }
  .pack-wide .pack-side { align-items: stretch; min-width: 0; }
  .pack-wide .btn { width: 100%; }
}
@media (max-width: 420px) {
  .packs { gap: 10px; }
  .pack { padding: 14px 12px 12px; gap: 8px; }
  .pack-amount { font-size: 28px; }
  .pack-amount small { font-size: 12.5px; }
  .pack-desc { font-size: 14px; }
  .pack-price strong { font-size: 19px; }
  .pack.pack-fill > .btn { min-width: 120px; }
  .target { flex-direction: column; align-items: stretch; }
}
