/* Checkout & halaman status pembayaran */
.co-wrap { position: fixed; inset: 0; z-index: 200; background: rgba(29,42,91,.55); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.co-card { position: relative; width: min(480px, 100%); background: var(--paper, #fff8ec); border-radius: 24px; padding: 24px 22px 20px; box-shadow: 0 0 0 3px var(--ink), 0 8px 0 3px var(--ink); color: var(--ink); display: grid; gap: 6px; }
.co-card h2 { font-family: var(--display); font-size: 24px; margin: 0 36px 4px 0; line-height: 1.2; }
.co-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 18px; cursor: pointer; box-shadow: 0 0 0 2px var(--ink); }
.co-price { font-family: var(--display); font-size: 28px; }
.co-price del { font-size: 16px; color: #8a92ab; margin-right: 6px; }
.co-price b { color: #1f8f55; }
.co-isi { margin: 2px 0 8px; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 2px; }
.co-card label { font-weight: 800; font-size: 14px; margin-top: 8px; }
.co-card input[type=email], .co-card input#co-v { width: 100%; min-height: 48px; font: 700 16px var(--body); padding: 10px 14px; border-radius: 14px; border: 2px solid #d5dcec; background: #fff; color: var(--ink); }
.co-card input#co-v { text-transform: uppercase; letter-spacing: .1em; }
.co-card input:focus { outline: none; border-color: var(--potentia); box-shadow: 0 0 0 4px rgba(56,104,200,.15); }
.co-card small { font-size: 12.5px; color: var(--ink-2); }
.co-ok { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 600 !important; font-size: 13.5px !important; color: var(--ink-2); }
.co-ok input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; }
.co-ok a { color: var(--potentia); }
.co-err { margin: 6px 0 0; padding: 10px 12px; border-radius: 12px; background: #fdecee; color: #b4233a; font-weight: 700; font-size: 14px; }
.co-go { justify-content: center; width: 100%; margin-top: 10px; min-height: 52px; }
.co-go[disabled] { opacity: .7; cursor: wait; }
.co-meta { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-2); text-align: center; line-height: 1.5; }
.co-off { font-size: 15px; color: var(--ink-2); }
/* halaman bayar.html */
.pay-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--paper, #fff8ec); }
.pay-card { width: min(520px, 100%); background: #fff; border-radius: 24px; padding: 28px 24px; text-align: center; box-shadow: 0 0 0 3px var(--ink), 0 8px 0 3px var(--ink); }
.pay-card img.logo { height: 34px; margin-bottom: 12px; }
.pay-card h1 { font-family: var(--display); font-size: 28px; margin: 6px 0; }
.pay-card p { color: var(--ink-2); }
.pay-code { font-family: var(--display); font-size: 40px; letter-spacing: .14em; background: #fff3c4; border-radius: 16px; padding: 10px 14px; margin: 12px 0; }
.pay-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.pay-spin { width: 46px; height: 46px; border-radius: 50%; border: 5px solid #e6ebf5; border-top-color: var(--potentia); margin: 10px auto; animation: pay-rot 1s linear infinite; }
@keyframes pay-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pay-spin { animation: none; } }
.pay-meta { font-size: 13px; color: #7a84a3; margin-top: 14px; }

.co-rincian { display: grid; gap: 4px; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 0 0 1.5px #e3e8f3; font-size: 14px; }
.co-rincian div { display: flex; justify-content: space-between; gap: 10px; } .co-rincian .tot { border-top: 1px dashed #d5dcec; padding-top: 4px; font-size: 15px; }
.co-rincian .tot b { color: #1f8f55; }

/* penawaran "selamat datang kembali" (checkout.js tawarkan) */
.promo-wrap { position: fixed; inset: 0; z-index: 210; background: rgba(29,42,91,.6); display: grid; place-items: center; padding: 16px; animation: promoIn .25s ease-out; }
.promo-card { position: relative; width: min(400px, 100%); text-align: center; background: radial-gradient(circle at 50% 0, #fff3c4, #fff8ec 60%); border-radius: 28px; padding: 26px 22px 18px;
  box-shadow: 0 0 0 3px var(--ink), 0 9px 0 3px var(--ink); color: var(--ink); display: grid; gap: 8px; justify-items: center; }
.promo-card img { width: 112px; height: 112px; margin-top: -78px; filter: drop-shadow(0 6px 0 rgba(29,42,91,.25)); animation: bob 2.6s ease-in-out infinite; }
.promo-card h2 { font-family: var(--display); font-size: 26px; margin: 0; }
.promo-big { margin: 0; font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 1; color: var(--orange, #f89048); text-shadow: 0 4px 0 var(--ink); }
.promo-card p { margin: 0; max-width: 30ch; }
.promo-go { width: 100%; justify-content: center; margin-top: 8px; }
.promo-no { border: 0; background: none; color: var(--ink-2); text-decoration: underline; min-height: 44px; font: 600 15px var(--body); cursor: pointer; }
.promo-err { color: #c22a3e; font-weight: 700; }
@keyframes promoIn { from { opacity: 0; } to { opacity: 1; } }
/* banner promo aktif + hitung mundur dari masa berlaku server */
.promo-bar { position: sticky; top: 0; z-index: 25; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; padding: 8px 12px;
  background: var(--orange, #f89048); color: #fff; font-weight: 800; font-size: 15px; text-align: center; }
.promo-bar .pb-c { font-variant-numeric: tabular-nums; background: rgba(0,0,0,.18); border-radius: 8px; padding: 1px 8px; }
.promo-bar .pb-go { border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 700 14px var(--display); padding: 6px 14px; min-height: 36px; cursor: pointer; }
/* notifikasi pembelian nyata (GET /api/pay/recent) */
.buy-toast { position: fixed; left: 16px; bottom: 16px; z-index: 40; max-width: min(360px, calc(100vw - 104px)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px;
  background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 0 0 3px var(--ink), 0 5px 0 3px var(--ink); font-weight: 700; font-size: 14px; animation: toastIn .35s ease-out; transition: opacity .4s, transform .4s; }
.buy-toast button { border: 0; background: none; color: var(--ink-2); min-width: 32px; min-height: 32px; cursor: pointer; }
.buy-toast.out { opacity: 0; transform: translateY(10px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .promo-wrap, .buy-toast { animation: none; } .promo-card img { animation: none; } }
