:root {
  --bg: #0B0F1A; --surface: #141A2A; --surface-2: #0F1422; --line: #232B40; --line-2: #39435C;
  --text: #EEF1F7; --soft: #B4BCCD; --muted: #9AA3B8; --accent: #C8F43C; --on-accent: #0B0F1A;
  --ok: #7DDB8A; --warn: #FFC56B; --err: #FFB4A8; --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--accent); }
h1, h2, h3, .brand-name, .price { font-family: 'Space Grotesk', Inter, sans-serif; }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .soft { color: var(--soft); } .small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; }
.brand-name { font-weight: 700; font-size: 22px; }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 44px; }
.search input { flex: 1; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; font-size: 15px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nav a { color: var(--soft); text-decoration: none; font-weight: 500; font-size: 15px; padding: 12px; border-radius: 10px; }
.nav a:hover, .nav a.on { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--soft); }
.btn-danger { background: transparent; color: var(--err); border-color: #6b3a33; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; font-weight: 600; }
.btn-block { width: 100%; }
button:disabled { opacity: .5; cursor: not-allowed; }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 56px 0 40px; }
.hero-text { flex: 1 1 460px; display: flex; flex-direction: column; gap: 20px; }
.pill { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); border: 1px solid #2E3A1A; background: #161E0D; padding: 7px 12px; border-radius: 999px; }
.hero h1 { margin: 0; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.03; letter-spacing: -.02em; }
.hero p { margin: 0; font-size: 18px; color: var(--soft); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* cards & sections */
.section { padding: 32px 0 56px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--soft); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.game-card { display: flex; flex-direction: column; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, border-color .15s; }
.game-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.game-art { aspect-ratio: 1/1; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 42px; color: #0B0F1A; position: relative; }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game-meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.game-meta b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.badge-pop { position: absolute; top: 8px; left: 8px; background: var(--accent); color: var(--on-accent); font-family: Inter, sans-serif; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-n { width: 38px; height: 38px; border-radius: 999px; border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 700; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--soft); font-size: 15px; }
.band { background: #10162A; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* game page */
.game-head { background: #10162A; border-bottom: 1px solid var(--line); }
.game-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.game-head .game-art { width: 88px; height: 88px; border-radius: 20px; font-size: 34px; overflow: hidden; }
.game-head h1 { margin: 0 0 6px; font-size: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; color: var(--soft); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; }
.layout { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; padding: 28px 0 64px; }
.layout-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.layout-side { flex: 1 1 300px; min-width: 0; position: sticky; top: 16px; }
.panel-title { margin: 0 0 14px; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 12px; font-family: Inter, sans-serif; }
.num { width: 28px; height: 28px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 700; display: grid; place-items: center; flex: none; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--soft); }
.input, select.input, textarea.input { height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); padding: 0 14px; font: inherit; font-size: 16px; width: 100%; }
textarea.input { height: auto; padding: 12px 14px; min-height: 96px; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt > span { display: flex; flex-direction: column; gap: 4px; min-height: 84px; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); cursor: pointer; }
.opt > input:checked + span { border-color: var(--accent); background: #1A2410; }
.opt > input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt .price { color: var(--accent); font-weight: 700; font-size: 17px; }
.opt-list { display: flex; flex-direction: column; gap: 10px; }
.opt-list .opt > span { min-height: 60px; flex-direction: row; align-items: center; justify-content: space-between; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; }
.summary-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.summary-total .price { color: var(--accent); font-size: 26px; font-weight: 700; }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.alert-err { background: #2A1512; border: 1px solid #6b3a33; color: var(--err); }
.alert-ok { background: #13240F; border: 1px solid #2E4A1A; color: var(--ok); }
.alert-warn { background: #2A2210; border: 1px solid #5c4a1f; color: var(--warn); }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 14px; }

/* invoice */
.invoice { max-width: 720px; margin: 0 auto; padding: 36px 20px 64px; display: flex; flex-direction: column; gap: 18px; }
.status { display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid; }
.st-UNPAID, .st-WAITING_CONFIRM, .st-PAID, .st-PROCESSING { color: var(--warn); border-color: #5c4a1f; background: #2A2210; }
.st-SUCCESS { color: var(--ok); border-color: #2E4A1A; background: #13240F; }
.st-FAILED, .st-REJECTED, .st-EXPIRED, .st-REFUNDED { color: var(--err); border-color: #6b3a33; background: #2A1512; }
.qris-box { background: #fff; border-radius: 16px; padding: 16px; width: min(320px, 100%); margin: 0 auto; }
.qris-box img { display: block; width: 100%; }
.big-total { font-size: 34px; font-weight: 700; color: var(--accent); font-family: 'Space Grotesk', sans-serif; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 15px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.mock-bar { background: #5c4a1f; color: #FFE7B5; text-align: center; font-size: 13px; padding: 6px 12px; }

/* admin */
.admin { display: flex; flex-wrap: wrap; min-height: 100vh; }
.admin-nav { flex: 1 1 220px; max-width: 100%; background: #0E1322; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.admin-nav a, .admin-nav button { color: var(--soft); text-decoration: none; padding: 11px 12px; border-radius: 10px; font: inherit; font-size: 15px; background: none; border: 0; text-align: left; cursor: pointer; }
.admin-nav a.on, .admin-nav a:hover { background: var(--surface); color: var(--text); }
.admin-main { flex: 999 1 560px; min-width: 0; padding: 28px 24px 64px; display: flex; flex-direction: column; gap: 18px; }
.admin-main h1 { margin: 0; font-size: 26px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 24px; margin-top: 4px; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; background: var(--surface); }
td .input { height: 38px; font-size: 14px; min-width: 110px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .input { width: auto; flex: 1 1 200px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--soft); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.proof { max-width: 360px; border-radius: 12px; border: 1px solid var(--line); }
.loss { color: var(--err); font-weight: 600; }

/* hero side: banner & harga */
.hero-side { flex: 1 1 400px; min-width: 0; }
.slider { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; scroll-snap-align: start; display: block; }
.dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.dots button[aria-pressed="true"] { background: var(--accent); width: 24px; }
.deals { display: flex; flex-direction: column; gap: 10px; }
.deal { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.deal:hover { border-color: var(--line-2); }
.deal-art { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #0B0F1A; overflow: hidden; flex: none; }
.deal-art img { width: 100%; height: 100%; object-fit: cover; }
.deal-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.deal-name b { font-weight: 600; font-size: 15px; }
.deal-price { color: var(--accent); font-weight: 700; font-size: 16px; white-space: nowrap; }

.game-head.has-banner { background-size: cover; background-position: center; }
.game-head.has-banner .wrap { padding-top: 56px; padding-bottom: 56px; }
.game-head.has-banner h1 { font-size: 40px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
