* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f4f6f8; color: #1c2530; line-height: 1.55; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.topbar { background: #0f2a43; color: #fff; position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.brand { font-weight: 800; font-size: 1.1rem; }
.userbox { display: flex; align-items: center; gap: 8px; font-size: .9rem; flex-wrap: wrap; justify-content: flex-end; }
.saldo-label { opacity: .75; }
.saldo { background: #1d9e6c; padding: 4px 10px; border-radius: 999px; }
.userid { opacity: .65; font-size: .75rem; }
main { padding-bottom: 40px; }
h1 { font-size: 1.6rem; margin: 20px 0 8px; }
h2 { font-size: 1.2rem; margin: 28px 0 10px; }
.hero p { margin: 0 0 12px; }
.live-prices { background: #fff; border: 1px solid #dfe5ea; border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.lp-title { font-weight: 700; }
.notice { border-radius: 10px; padding: 12px 14px; margin-top: 16px; }
.notice.warn { background: #fff7e0; border: 1px solid #f0d48a; }
.notice.err { background: #fdecea; border: 1px solid #f2b0aa; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card { background: #fff; border: 1px solid #dfe5ea; border-radius: 12px; padding: 16px; }
.product h3 { margin: 0 0 4px; font-size: 1.05rem; }
.product .price { font-size: 1.4rem; font-weight: 800; color: #0f2a43; margin: 4px 0 8px; }
.product p { margin: 0 0 12px; font-size: .9rem; color: #55606c; min-height: 2.6em; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e8f0fe; color: #1a56db; }
.badge.soon { background: #fdecea; color: #b3261e; }
.btn { border: none; cursor: pointer; border-radius: 9px; padding: 10px 16px; font-weight: 700; font-size: .95rem; }
.btn.primary { background: #1d9e6c; color: #fff; }
.btn.primary:disabled { background: #9db3a8; cursor: not-allowed; }
.btn.ghost { background: #eef2f5; color: #1c2530; }
.btn.danger { background: #fdecea; color: #b3261e; }
.btn.small { padding: 6px 10px; font-size: .85rem; }
.hint { color: #55606c; font-size: .9rem; }
.topup-amounts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.amt { border: 1px solid #c9d3dc; background: #fff; border-radius: 9px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.amt.active { border-color: #1d9e6c; background: #e6f7ef; }
#customAmount { padding: 10px; border: 1px solid #c9d3dc; border-radius: 9px; width: 200px; }
.topup-box { margin-top: 14px; text-align: center; }
.topup-box img { max-width: 240px; width: 100%; height: auto; }
.topup-box .total { font-size: 1.5rem; font-weight: 800; }
.active-order .phone { font-size: 1.6rem; font-weight: 800; letter-spacing: 1px; }
.active-order .code { font-size: 2.4rem; font-weight: 800; letter-spacing: 6px; color: #1d9e6c; }
.active-order .status { font-weight: 700; }
.history table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; font-size: .88rem; }
.history th, .history td { padding: 8px 10px; border-bottom: 1px solid #edf0f2; text-align: left; }
.history th { background: #eef2f5; }
.rules ul { padding-left: 20px; }
.rules li { margin-bottom: 8px; }
footer { margin-top: 32px; color: #77828d; font-size: .85rem; }
@media (max-width: 560px) {
  h1 { font-size: 1.35rem; }
  .active-order .code { font-size: 2rem; letter-spacing: 4px; }
}
