/* =========================================================
   YB TOPUP — tema gelap, aksen emas
   ========================================================= */
:root {
  --m100: 100ms; --m150: 150ms; --m200: 200ms; --m300: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --bg: #0b0f17;
  --bg2: #111623;
  --panel: #161c2a;
  --panel2: #1d2434;
  --border: #273043;
  --text: #e9edf5;
  --muted: #8d97ab;
  --gold: #f3b94a;
  --gold2: #c98a1b;
  --blue: #4f8cff;
  --green: #28c76f;
  --red: #ff5c5c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  padding-bottom: 90px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.25; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 10px; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .3px; }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.sub { color: var(--muted); margin: -4px 0 14px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a1200;
  font-weight: 800; border: 0; border-radius: 12px; padding: 12px 20px; cursor: pointer;
  transition: transform .12s ease, filter .12s ease; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: var(--m100); }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(26,18,0,.35); border-top-color: #1a1200; animation: spin .7s linear infinite; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-wa { background: linear-gradient(135deg, #2ee37a, #16a34a); color: #04200e; width: 100%; margin-top: 14px; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--panel2); color: var(--text); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 16px; cursor: pointer; font-weight: 600;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost.sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.copy { background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 7px; padding: 2px 7px; font-size: 12px; cursor: pointer; vertical-align: middle; }
.copy:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Header ---------- */
.topbar { background: var(--bg2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.topbar-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: 1px; flex: 0 0 auto; }
.brand img { display: block; }
.brand .logo-full { height: 44px; width: auto; }
.brand .logo-mark { display: none; }
@media (max-width: 640px) { .topbar .brand .logo-full { display: none; } .topbar .brand .logo-mark { display: block; } }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a1200; font-size: 15px; }
.brand-text { color: var(--text); font-size: 15px; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; color: var(--muted); max-width: 640px; }
.search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); min-width: 0; }
.search input::placeholder { color: var(--muted); }
.pill-cs { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--green); border: 1px solid rgba(40,199,111,.35); border-radius: 999px; padding: 7px 12px; white-space: nowrap; flex: 0 0 auto; }
.pill-cs .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(40,199,111,.18); }
.navrow { display: flex; gap: 4px; overflow-x: auto; padding: 0 12px 8px; scrollbar-width: none; }
.navrow::-webkit-scrollbar { display: none; }
.navrow a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.navrow a:hover, .navrow a.active { color: var(--gold); background: rgba(243,185,74,.1); }
@media (max-width: 640px) { .pill-cs span:not(.dot) { display: none; } .pill-cs { padding: 9px 9px; } .brand-text { display: none; } .topbar-row { padding: 10px 12px; gap: 8px; } }
.pay-desc { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }

/* ---------- Hero slider ---------- */
.hero { position: relative; margin: 16px 0 10px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-track { position: relative; aspect-ratio: 21 / 8; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: flex; align-items: center;
  background: linear-gradient(120deg, var(--c1), var(--c2)); background-size: cover; background-position: center;
  background-image: var(--bd, linear-gradient(120deg, var(--c1), var(--c2)));
}
@media (max-width: 640px) {
  .hero-track { aspect-ratio: 3 / 2; }
  .hero-slide { background-image: var(--bm, var(--bd, linear-gradient(120deg, var(--c1), var(--c2)))); }
  .hero-text { padding: 0 28px; }
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide.active { animation: kenburns 7s ease-out forwards; }
.hero-dots button { transition: width var(--m200) var(--ease-out), background var(--m200); }
.hero-btn { transition: background var(--m150), transform var(--m150) var(--ease-out); }
.hero-btn:hover { background: rgba(0,0,0,.7); transform: translateY(-50%) scale(1.06); }
.hero-text { padding: 0 48px; display: flex; flex-direction: column; gap: 4px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero-text em { font-style: normal; font-weight: 800; letter-spacing: 3px; font-size: 12px; opacity: .85; }
.hero-text strong { font-size: clamp(22px, 4vw, 44px); font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.hero-text span { font-size: clamp(13px, 1.6vw, 17px); opacity: .9; }
.hero-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.hero-btn.prev { left: 10px; } .hero-btn.next { right: 10px; }
.hero-dots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--gold); width: 20px; border-radius: 4px; }

/* ---------- Beranda ---------- */
.intro { padding: 10px 4px 0; }
.intro h1 { font-size: 20px; letter-spacing: 1px; }
.intro p { color: var(--muted); font-size: 14px; }
.section { margin: 26px 0; }
.section h2 { font-size: 17px; }
.grid-popular { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.grid-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.game-card { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; transition: transform .15s ease, border-color .15s ease; }
.game-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.game-card.hidden { display: none; }
.game-thumb { width: 72px; height: 72px; border-radius: 12px; flex: 0 0 72px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); font-weight: 800; font-size: 15px; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-meta { display: flex; flex-direction: column; min-width: 0; }
.game-meta strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-meta small { color: var(--muted); font-size: 12px; }
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 8px; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs button { background: var(--panel); border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.cat-tabs button.active { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a1200; border-color: transparent; }
.empty { color: var(--muted); text-align: center; padding: 30px 0; }
#showMore { margin-top: 14px; }
.grid-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.news-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.news-card:hover { border-color: var(--gold); }
.news-card strong { font-size: 15px; }
.news-card span { color: var(--muted); font-size: 13px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.features div { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.features b { font-size: 14px; } .features span { color: var(--muted); font-size: 13px; }

/* ---------- Panel umum ---------- */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 14px 0; }
.alert { border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-weight: 600; font-size: 14px; }
.alert.bad { background: rgba(255,92,92,.12); color: #ff8a8a; border: 1px solid rgba(255,92,92,.3); }
.alert.ok { background: rgba(40,199,111,.12); color: #5fe29a; border: 1px solid rgba(40,199,111,.3); }

/* ---------- Halaman game ---------- */
.game-banner { margin: 14px -16px 0; height: clamp(150px, 26vw, 300px); background: linear-gradient(120deg, var(--c1), var(--c2)); background-size: cover; background-position: center; position: relative; }
.game-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(11,15,23,.05) 60%); }
.game-head { display: flex; align-items: flex-end; gap: 18px; margin-top: -70px; position: relative; z-index: 2; padding: 0 4px; }
.game-cover { width: 150px; height: 150px; flex: 0 0 150px; border-radius: 16px; overflow: hidden; border: 3px solid var(--panel); box-shadow: var(--shadow); display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); font-weight: 800; font-size: 34px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-info { padding-bottom: 6px; }
.game-info h1 { font-size: 22px; letter-spacing: .5px; }
.publisher { color: var(--muted); margin: 0 0 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges span { font-size: 12px; font-weight: 700; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px; }
@media (max-width: 560px) { .game-head { margin-top: -50px; gap: 12px; } .game-cover { width: 110px; height: 110px; flex-basis: 110px; font-size: 24px; } .game-info h1 { font-size: 18px; } }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin: 18px 0 6px; }
.tabs { position: relative; }
.tabs button { position: relative; z-index: 1; background: transparent; border: 0; border-radius: 9px; padding: 10px; font-weight: 700; color: var(--muted); cursor: pointer; transition: color var(--m200); }
.tabs button.active { color: #1a1200; }
.tabs .tab-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: linear-gradient(135deg, var(--gold), var(--gold2)); transition: transform var(--m200) var(--ease-out); z-index: 0; }
.tabs[data-active="1"] .tab-ind { transform: translateX(100%); }
.tab-pane { animation: fadein var(--m200) var(--ease-out); }

.step header { display: flex; align-items: center; gap: 12px; margin: -18px -18px 16px; padding: 12px 18px; background: var(--panel2); border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
.step header h2 { margin: 0; font-size: 15px; }
.num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a1200; font-weight: 800; font-size: 14px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.field span { display: flex; align-items: center; gap: 6px; }
.field span small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea, .promo-row input, .cek-form input {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 11px; padding: 11px 13px; color: var(--text); outline: 0; font-weight: 500; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus, .promo-row input:focus, .cek-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(243,185,74,.15); }
.field select option { background: var(--bg2); }
.help { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--muted); color: var(--muted); font-size: 10px; font-style: normal; cursor: help; }

.cat-title { margin: 16px 0 10px; font-size: 14px; color: var(--text); }
.cat-title:first-of-type { margin-top: 0; }
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.product input { position: absolute; opacity: 0; pointer-events: none; }
.product-box { display: flex; flex-direction: column; gap: 4px; background: var(--panel2); border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 12px 10px; cursor: pointer; position: relative; transition: border-color .12s, transform .12s; min-height: 92px; }
.product-box:hover { border-color: rgba(243,185,74,.6); transform: translateY(-2px); }
.product input:checked + .product-box { border-color: var(--gold); background: rgba(243,185,74,.1); box-shadow: 0 0 0 3px rgba(243,185,74,.15); }
.product input:checked + .product-box::after { content: "✓"; position: absolute; top: 8px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #1a1200; font-size: 12px; font-weight: 800; display: grid; place-items: center; animation: pop var(--m200) var(--ease-out); }
.product-box:active { transform: scale(.98); }
.product-name { font-weight: 700; font-size: 13px; padding-right: 24px; }
.product-price { color: var(--gold); font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.ico { width: 22px; height: 22px; flex: 0 0 22px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.product-status { margin-top: auto; align-self: flex-end; font-size: 10px; font-weight: 700; color: var(--green); background: rgba(40,199,111,.12); border-radius: 6px; padding: 2px 6px; }

.qty { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qty-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel2); color: var(--text); font-size: 20px; cursor: pointer; }
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }
#qtyInput { width: 80px; text-align: center; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 9px; outline: 0; font-weight: 700; }
.qty .hint { margin: 0; }

.pay-group { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--panel2); overflow: hidden; }
.pay-group summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; cursor: pointer; font-weight: 700; }
.pay-group summary::-webkit-details-marker { display: none; }
.pay-group summary::after { content: "⌄"; color: var(--muted); font-size: 18px; margin-left: 10px; transition: transform .15s; }
.pay-group[open] summary::after { transform: rotate(180deg); }
.pay-group-meta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pay-group-meta small { color: var(--muted); font-weight: 500; }
.badge-best { font-style: normal; font-size: 10px; font-weight: 800; background: var(--gold); color: #1a1200; border-radius: 5px; padding: 2px 6px; }
.pay-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; padding: 0 10px 10px; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-box { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.pay-box:hover { border-color: rgba(243,185,74,.6); }
.pay-method input:checked + .pay-box { border-color: var(--gold); background: rgba(243,185,74,.1); }
.pay-logo { width: 34px; height: 34px; border-radius: 8px; overflow: hidden; flex: 0 0 34px; background: #fff; }
.pay-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pay-name { font-size: 13px; font-weight: 700; flex: 1; }
.pay-total { font-size: 13px; color: var(--gold); font-weight: 800; white-space: nowrap; }

.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; text-transform: uppercase; }
.help-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.help-box span { color: var(--muted); flex: 1; }

.orderbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--bg2); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px rgba(0,0,0,.35); transition: transform var(--m200) var(--ease-out), opacity var(--m200) var(--ease-out); }
.orderbar.is-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
.orderbar-text .tot.bump { animation: bump var(--m300) var(--ease-out); display: inline-block; }
.orderbar-next { color: var(--gold); font-weight: 700; font-size: 12px; cursor: pointer; background: none; border: 0; padding: 0; text-decoration: underline; }
.orderbar-inner { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.orderbar-text { flex: 1; font-size: 13px; color: var(--muted); min-width: 0; }
.orderbar-text b { color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orderbar-text .tot { color: var(--gold); font-weight: 800; }
.btn-order { padding: 12px 22px; }

.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity var(--m200) var(--ease-out); }
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; }
.modal.is-closing { opacity: 0; transition-duration: var(--m150); transition-timing-function: var(--ease-in); }
.modal-box { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 20px; width: 100%; max-width: 440px; box-shadow: var(--shadow); transform: translateY(8px) scale(.98); transition: transform var(--m200) var(--ease-out); }
.modal.is-open .modal-box { transform: none; }
.modal.is-closing .modal-box { transform: translateY(8px) scale(.98); transition-duration: var(--m150); transition-timing-function: var(--ease-in); }
.modal-box dl { margin: 12px 0; display: grid; grid-template-columns: 1fr 2fr; gap: 6px 10px; font-size: 14px; }
.modal-box dt { color: var(--muted); } .modal-box dd { margin: 0; font-weight: 600; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }

.steps-list { padding-left: 20px; margin: 6px 0 10px; }
.steps-list li { margin-bottom: 4px; }
.faq details { border-bottom: 1px solid var(--border); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }

.review-summary { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.review-score { display: flex; flex-direction: column; align-items: center; }
.review-score b { font-size: 40px; color: var(--gold); line-height: 1; } .review-score span { color: var(--muted); }
.review-score small { color: var(--muted); margin-top: 4px; }
.review-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.review-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.review-bar i { flex: 1; height: 8px; background: var(--bg2); border-radius: 4px; overflow: hidden; }
.review-bar b { display: block; height: 100%; background: var(--gold); }
.review { border-top: 1px solid var(--border); padding: 10px 0; }
.review-head { display: flex; justify-content: space-between; } .review-head span { color: var(--gold); }
.review small { color: var(--muted); } .review p { margin: 4px 0 0; }
.review-form { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Invoice ---------- */
.invoice-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.invoice-head h1 { font-size: 22px; margin: 2px 0; }
.invoice-head small { color: var(--muted); }
.status { display: inline-block; font-weight: 800; border-radius: 999px; padding: 8px 14px; font-size: 13px; }
.status.sm { padding: 4px 10px; font-size: 12px; }
.status.warn { background: rgba(243,185,74,.15); color: var(--gold); }
.status.info { background: rgba(79,140,255,.15); color: var(--blue); }
.status.ok { background: rgba(40,199,111,.15); color: var(--green); }
.status.bad { background: rgba(255,92,92,.15); color: var(--red); }
.status.muted { background: rgba(141,151,171,.15); color: var(--muted); }
.invoice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .invoice-grid { grid-template-columns: 1fr; } }
.dl { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; }
.total { color: var(--gold); font-weight: 800; font-size: 17px; }
.countdown { color: var(--muted); } .countdown b { color: var(--red); font-family: ui-monospace, monospace; }
.qris { background: #fff; border-radius: 12px; padding: 12px; width: min(280px, 100%); margin: 0 auto 12px; }
.qris img { margin: 0 auto; }
.qris.placeholder { color: #333; text-align: center; font-weight: 700; padding: 40px 12px; }
.qris code { font-size: 11px; }
.pay-detail { display: flex; flex-direction: column; gap: 10px; background: var(--bg2); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.pay-detail small { display: block; color: var(--muted); font-size: 12px; }
.pay-detail b { font-size: 18px; }

/* ---------- Cek transaksi ---------- */
.cek h1 { font-size: 22px; }
.cek-form { display: flex; gap: 8px; } .cek-form input { flex: 1; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 700; font-size: 12px; }
.table small { color: var(--muted); }

/* ---------- Footer & chat ---------- */
.footer { margin-top: 40px; border-top: 1px solid var(--border); background: var(--bg2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; padding: 30px 16px 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
.footer h4 { font-size: 14px; margin-bottom: 10px; }
.footer-grid a:not(.brand) { display: block; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.footer-grid a:not(.brand):hover { color: var(--gold); }
.footer-about p { color: var(--muted); font-size: 13px; margin: 12px 0; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-block !important; margin: 0 !important; }
.copyright { padding: 10px 16px 20px; color: var(--muted); font-size: 12px; text-align: center; }
.chat-cs { position: fixed; right: 16px; bottom: 80px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #04200e; font-weight: 800; border-radius: 999px; padding: 10px 14px; box-shadow: var(--shadow); transition: transform var(--m150) var(--ease-out); }
.chat-cs:hover { transform: translateY(-2px); }
.chat-cs.ring::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid #25d366; animation: ring 1.2s ease-out 2; pointer-events: none; }
body:not(.has-orderbar) .chat-cs { bottom: 20px; }
body:not(.has-orderbar) { padding-bottom: 30px; }


/* =========================================================
   ANIMASI — hanya transform/opacity, durasi 100–300ms
   ========================================================= */
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes drawcheck { to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: .35; } }

/* Pindah halaman: cross-fade */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fadein var(--m150) var(--ease-in) reverse; }
::view-transition-new(root) { animation: fadein var(--m200) var(--ease-out); }

/* Reveal saat masuk layar (sekali) */
[data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity var(--m300) var(--ease-out), transform var(--m300) var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(6px); transition: opacity var(--m200) var(--ease-out), transform var(--m200) var(--ease-out); transition-delay: var(--d, 0ms); }
[data-stagger].in > * { opacity: 1; transform: none; }
.hero { transform-origin: center; }
.hero-slide { overflow: hidden; }

/* Header: bayangan saat discroll */
.topbar { transition: box-shadow var(--m200); }
.topbar.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.35); }

/* Kartu game & tombol kategori */
.game-card { transition: transform var(--m150) var(--ease-out), border-color var(--m150), opacity var(--m150); }
.cat-tabs button { transition: background var(--m150), color var(--m150), border-color var(--m150); }

/* Grup pembayaran: isi muncul halus saat dibuka */
.pay-group[open] .pay-list { animation: fadein var(--m200) var(--ease-out); }
.pay-group summary::after { transition: transform var(--m200) var(--ease-out); }
.pay-box { transition: border-color var(--m150), background var(--m150), transform var(--m100); }
.pay-box:active { transform: scale(.985); }
.pay-method input:checked + .pay-box .pay-logo { animation: bump var(--m300) var(--ease-out); }

/* FAQ */
.faq summary::after { transition: transform var(--m200) var(--ease-out); display: inline-block; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details[open] p { animation: fadein var(--m200) var(--ease-out); }

/* Jumlah: angka "flip" */
#qtyInput.flip { animation: bump var(--m200) var(--ease-out); }
.qty-btn { transition: border-color var(--m150), color var(--m150), transform var(--m100); }
.qty-btn:active { transform: scale(.92); }

/* Input fokus */
.field input, .field select, .field textarea, .promo-row input, .cek-form input { transition: border-color var(--m150), box-shadow var(--m150); }

/* Toast (pesan di bawah layar) */
.toast-wrap { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; width: min(480px, calc(100% - 32px)); pointer-events: none; }
body:not(.has-orderbar) .toast-wrap { bottom: 24px; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; background: var(--panel2); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: opacity var(--m200) var(--ease-out), transform var(--m200) var(--ease-out); }
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateY(8px); transition-duration: var(--m150); transition-timing-function: var(--ease-in); }
.toast.ok { border-left-color: var(--green); }
.toast.info { border-left-color: var(--blue); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; }

/* Kembali ke atas */
.to-top { position: fixed; left: 16px; bottom: 80px; z-index: 70; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--panel2); color: var(--text); cursor: pointer; opacity: 0; transform: translateY(8px); transition: opacity var(--m200) var(--ease-out), transform var(--m200) var(--ease-out); pointer-events: none; font-size: 18px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
body:not(.has-orderbar) .to-top { bottom: 20px; }

/* Tombol salin */
.copy { transition: color var(--m150), border-color var(--m150); }
.copy.done { color: var(--green); border-color: var(--green); }

/* Invoice: centang sukses digambar, countdown berkedip di akhir */
.success-check { width: 72px; height: 72px; margin: 0 0 10px; }
.success-check circle { stroke: var(--green); stroke-width: 3; fill: rgba(40,199,111,.12); stroke-dasharray: 220; stroke-dashoffset: 220; animation: drawcheck .5s var(--ease-out) forwards; }
.success-check path { stroke: var(--green); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: drawcheck .3s var(--ease-out) .35s forwards; }
.countdown b.urgent { animation: blink 1s steps(2) infinite; }
.status.warn { position: relative; }

/* Status spinner kecil (menunggu) */
.spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(243,185,74,.3); border-top-color: var(--gold); animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }

/* Fokus keyboard terlihat */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Mode hemat gerak */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .hero-slide.active { animation: none; }
  .orderbar.is-hidden, .modal-box, .toast { transform: none; }
  html { scroll-behavior: auto; }
}
