/* Halaman /bayar */
body.pay { min-height: 100dvh; background: linear-gradient(180deg, #ffeef6, #fbf1ff 60%, #fff5fa); color: var(--ink); }
.pay-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; position: sticky; top: 0; z-index: 2; background: rgba(255,244,249,.88); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(232,85,143,.12); }
.pay-top a { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--pink-deep); text-decoration: none; }
.pay-top img { width: 32px; height: 32px; border-radius: 9px; }
.pay-top span { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.pay-main { padding: 22px 16px 50px; display: grid; place-items: start center; }
.pay-card { width: min(100%, 520px); background: #fff; border-radius: 28px; padding: 24px 20px; box-shadow: 0 8px 0 #f6cfe0, 0 20px 40px rgba(160,60,120,.12); display: flex; flex-direction: column; gap: 14px; }
.pay-card[hidden] { display: none; }
.pay-card h1 { margin: 0; font-size: 26px; text-align: center; }
.pay-sub { margin: -6px 0 4px; text-align: center; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.pay-plans { display: grid; gap: 10px; }
.pay-plan { position: relative; display: block; border-radius: 20px; padding: 14px 16px; background: #fff7fb; box-shadow: inset 0 0 0 2px #ffd6e7; cursor: pointer; }
.pay-plan input { position: absolute; opacity: 0; }
.pay-plan.on { background: linear-gradient(160deg, #fff, #fff0f7); box-shadow: inset 0 0 0 3px var(--pink), 0 6px 16px rgba(232,85,143,.18); }
.pp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pp-head b { font-size: 17px; } .pp-head em { font-style: normal; font-weight: 700; font-size: 20px; color: var(--pink-deep); }
.pay-plan ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.pay-card label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pay-card label small { font-weight: 500; color: var(--ink-soft); }
.pay-card input:not([type="radio"]) { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 14px; border: 2px solid #ffd6e7; background: #fff; color: var(--ink); outline: none; }
.pay-card input:focus { border-color: var(--pink); }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-note { font-size: 12.5px; color: var(--ink-soft); text-align: center; line-height: 1.45; }
.pay-err { margin: 0; padding: 10px 12px; border-radius: 12px; background: #ffe9ed; color: #c2304f; font-size: 14px; font-weight: 600; }
.pay-err[hidden] { display: none; }
.pay-card .btn.big { font-size: 19px; }
.pay-wa { text-align: center; font-size: 13.5px; color: var(--ink-soft); }
.pay-spin { width: 54px; height: 54px; margin: 10px auto 0; border-radius: 50%; border: 6px solid var(--pink-soft); border-top-color: var(--pink-deep); animation: paySpin .9s linear infinite; }
@keyframes paySpin { to { transform: rotate(360deg); } }
.pay-big { font-size: 60px; text-align: center; line-height: 1; }
.pay-big img.fx { width: 66px; height: 66px; }
.pay-login { margin: 0; display: grid; gap: 4px; background: #fff7fb; border-radius: 18px; padding: 14px 16px; box-shadow: inset 0 0 0 2px #ffd6e7; }
.pay-login dt { font-size: 12px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .5px; margin-top: 6px; }
.pay-login dd { margin: 0; font-size: 15.5px; font-weight: 600; word-break: break-all; }
.pay-login code { font-size: 18px; background: #fff; padding: 2px 8px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px #ffd6e7; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pay-row > label { min-width: 0; }
.pay-card input:not([type="radio"]) { width: 100%; min-width: 0; box-sizing: border-box; }
body.pay { overflow-x: hidden; }

.pay-note a { color: var(--pink-deep); }

.pay-promo { display: flex; gap: 8px; }
.pay-promo input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.pay-promo .btn { flex: none; padding: 10px 18px; font-size: 15px; }
.pay-promo-msg { margin: -6px 0 0; font-size: 13.5px; font-weight: 600; }
.pay-promo-msg.ok { color: #1f8f5a; } .pay-promo-msg.bad { color: #c2304f; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#pay-amt s { opacity: .65; font-weight: 500; margin-right: 4px; }

.pay-promo-toggle { align-self: flex-start; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--pink-deep); cursor: pointer; }
.pay-promo[hidden] { display: none; }
@media (max-width: 640px) {
  #pay-form { padding-bottom: 104px; }
  #pay-go { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 5; box-shadow: 0 6px 0 var(--pink-deep), 0 14px 28px rgba(160,60,120,.3); }
  #pay-form .pay-wa, #pay-form .pay-note:last-of-type { margin-bottom: 0; }
}
.pay-or { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.pay-or::before, .pay-or::after { content: ''; flex: 1; height: 1px; background: #f3cfe0; }
.pay-card .wa-btn { justify-content: center; }

.pay-last { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: #fff6e0; box-shadow: inset 0 0 0 2px #ffd98a; color: #6b4a00; text-decoration: none; }
.pay-last.paid { background: #eafbf1; box-shadow: inset 0 0 0 2px #9fe3bb; color: #145c36; }
.pay-last b { font-size: 15.5px; }
.pay-last span { font-size: 12.5px; overflow-wrap: anywhere; }
