/* KaepBlox — "Lobby" design */

:root {
  --bg: #0B0A10;
  --s1: #13111A;
  --s2: #0E0C14;
  --s3: #1A1724;
  --ln: #25212F;
  --ln2: #332D42;
  --tx: #F3F1F8;
  --tx2: #BDB7CC;
  --mu: #8A849B;
  --mu2: #5F596F;
  --p: #7A1CFF;
  --p-dark: #4A0FA8;
  --p-soft: rgba(122, 28, 255, .16);
  --m: #C21CFF;
  --ok: #3DDC97;
  --warn: #FBBF24;
  --bad: #FF5C7A;
  --r: 10px;
  --font: 'Montserrat', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--tx); font-family: var(--font); font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: #C9B3FF; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
b, strong { font-weight: 600; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 480px; }
.page { padding-top: 40px; padding-bottom: 64px; }
.page > h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.card { background: var(--s1); border: 1px solid var(--ln); border-radius: 14px; padding: 24px; }
.card h1 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.card h2 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); margin-bottom: 14px; }
.muted { color: var(--mu); }
.hint { font-size: 12.5px; color: var(--mu); margin: 6px 0 14px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }

/* ---------- Robux icon (official sprite) ---------- */
.rbx { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; flex-shrink: 0;
  background: url(/assets/img/robux-sprite.svg) no-repeat 0 0 / 200% 300%; }
.rbx-gold { background-position: 0 50%; }

/* ---------- Nav ---------- */
.nav { background: var(--s2); border-bottom: 1px solid var(--ln); position: sticky; top: 0; z-index: 20; }
.nav-in { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--tx); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 25px; height: 29px; }
.wm { font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.links { display: flex; gap: 4px; }
.links a { color: var(--mu); font-size: 13.5px; font-weight: 600; padding: 8px 13px; border-radius: 8px; }
.links a:hover { color: var(--tx); text-decoration: none; background: rgba(255,255,255,.04); }
.links a.on { color: var(--tx); background: var(--p-soft); }
.nav-rt { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-rt form { margin: 0; }
.btn { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 9px; font-weight: 700; font-size: 13.5px; border: 1px solid var(--ln2); background: transparent; color: var(--tx); cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: #4A4260; }
.btn-solid { background: var(--p); border-color: var(--p); }
.btn-solid:hover { background: #8733FF; border-color: #8733FF; }
.burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--ln2); border-radius: 9px; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 16px; height: 2px; background: var(--tx); border-radius: 2px; }
.drawer { display: none; }

/* ---------- Flash ---------- */
.flashes { max-width: 1180px; margin: 16px auto 0; padding: 0 24px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--r); font-size: 14px; font-weight: 600; border: 1px solid; }
.flash-success { background: rgba(61,220,151,.08); border-color: rgba(61,220,151,.35); color: #A7F3D0; }
.flash-error { background: rgba(255,92,122,.08); border-color: rgba(255,92,122,.4); color: #FECDD6; }
.flash-info { background: var(--p-soft); border-color: rgba(122,28,255,.45); color: #DDD0FF; }

/* ---------- Hero / Lobby ---------- */
.hero { display: grid; grid-template-columns: 1fr 392px; min-height: 620px; background: #110E19; max-width: 1180px; margin: 0 auto; border-left: 1px solid var(--ln); border-right: 1px solid var(--ln); }
.stage { position: sticky; top: 66px; align-self: start; height: min(680px, calc(100vh - 66px)); min-height: 560px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 46px;
  background: radial-gradient(ellipse 60% 48% at 50% 86%, rgba(122,28,255,.22), transparent 70%), linear-gradient(180deg, #0B0A10, #110E19); }
.feed { position: absolute; top: 20px; left: 20px; width: 290px; background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.06); border-radius: 9px; padding: 10px 12px; font-size: 12.5px; line-height: 1.65; z-index: 3; }
.feed h5 { margin: 0 0 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mu); display: flex; align-items: center; gap: 7px; }
.feed h5 i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.feed p { margin: 0; color: #D6D2E0; font-weight: 500; }
.feed p b { font-weight: 700; }
.feed p span { color: var(--mu2); }
.feed .feed-empty { color: var(--mu); }
.plus { position: absolute; top: 140px; right: 12%; display: flex; align-items: center; gap: 7px; font-weight: 900; font-size: 26px; color: var(--ok); transform: rotate(-6deg); text-shadow: 0 2px 0 rgba(0,0,0,.6); z-index: 3; animation: pop .35s ease-out; }
.plus .rbx { width: 26px; height: 26px; }
@keyframes pop { from { transform: rotate(-6deg) scale(.6); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
.nametag { text-align: center; text-shadow: 0 2px 3px rgba(0,0,0,.9); position: relative; z-index: 3; min-height: 58px; }
.nametag small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--mu); text-shadow: none; }
.nametag b { display: block; font-size: 20px; font-weight: 800; }
.nametag span { font-size: 12.5px; color: var(--tx2); font-weight: 600; }
.stage[data-state="idle"] .nametag b, .stage[data-state="bad"] .nametag b { color: var(--mu); }
.fig-wrap { width: 340px; height: 340px; margin-top: -34px; position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; }
.fig { width: 340px; height: 340px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)); animation: rise .4s ease-out; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.fig-empty { width: 150px; height: 225px; margin-bottom: 64px; }
.stage[data-state="checking"] .fig-empty { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.plate { width: 440px; height: 150px; margin-top: -118px; position: relative; z-index: 1; border-radius: 6px;
  transform: perspective(520px) rotateX(58deg); background-color: #1B1825;
  background-image: radial-gradient(circle at 50% 42%, rgba(255,255,255,.17) 0 3px, rgba(0,0,0,.4) 3.6px 4.8px, transparent 5.2px);
  background-size: 20px 20px; border: 2px solid #2F2A40; box-shadow: 0 0 0 1px rgba(122,28,255,.45), 0 30px 70px rgba(122,28,255,.3); }
.stage-cap { position: absolute; bottom: 14px; font-size: 11px; font-weight: 600; color: #4E485E; letter-spacing: .04em; }

/* ---------- Shop panel ---------- */
.shop { background: var(--s1); border-left: 1px solid var(--ln); padding: 24px 22px; display: flex; flex-direction: column; }
.shop-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 10px; }
.shop-hd h1 { font-size: 16px; font-weight: 800; }
.shop-hd span { font-size: 11.5px; color: var(--mu); font-weight: 600; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--s2); border: 1px solid var(--ln); border-radius: var(--r); }
.seg-opt { position: relative; margin: 0; text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: 0; text-transform: none; padding: 9px 2px; border-radius: 7px; color: var(--mu); cursor: pointer; line-height: 1.25; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt:hover { color: var(--tx); }
.seg-opt:has(input:checked) { background: var(--p); color: #fff; }
.seg-opt:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 1px; }
.seg-opt.off { color: #4A4558; cursor: not-allowed; }
.seg-opt small { display: block; font-size: 9px; font-weight: 600; letter-spacing: .06em; margin-top: 1px; }
.method-desc { font-size: 12px; color: var(--mu); margin: 8px 2px 14px; min-height: 18px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.slot { aspect-ratio: 1 / .88; background: var(--s2); border: 1px solid var(--ln); border-radius: var(--r); display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; overflow: hidden; cursor: pointer; color: var(--tx); padding: 0; transition: border-color .12s, background .12s, transform .12s; }
.slot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rc, transparent); }
.slot:hover { border-color: var(--ln2); background: #12101A; }
.slot:active { transform: scale(.97); }
.slot b { display: flex; align-items: center; gap: 5px; font-size: 18px; font-weight: 800; line-height: 1; }
.slot small { font-size: 11.5px; color: var(--mu); margin-top: 6px; font-weight: 600; }
.slot.t1 { --rc: #8A8F99; } .slot.t2 { --rc: #4ADE80; } .slot.t3 { --rc: #60A5FA; } .slot.t4 { --rc: #A855F7; } .slot.t5 { --rc: #FBBF24; }
.slot.on { border-color: #fff; box-shadow: inset 0 0 0 1px #fff; background: var(--s3); }
.slot-custom { border-style: dashed; color: var(--mu); font-size: 12.5px; font-weight: 700; }
.slot-custom.on { color: var(--tx); }
.custom { margin-top: -6px; }

label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); margin: 0 0 6px; }
.field { height: 44px; border: 1px solid var(--ln); background: var(--s2); border-radius: 9px; display: flex; align-items: center; gap: 9px; padding: 0 12px; transition: border-color .12s; }
.field:focus-within { border-color: var(--p); }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 14.5px; font-weight: 600; }
.field input::placeholder { color: #4E485E; font-weight: 500; }
.field input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
.field-user { padding-left: 8px; }
.field-av { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; background: repeating-linear-gradient(90deg, #1E1A28 0 8px, #26212F 8px 16px); overflow: hidden; }
.field-av img { width: 100%; height: 100%; display: block; }
.field-st { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.field-st svg { width: 13px; height: 13px; }
.field-user[data-state="ok"] { border-color: rgba(61,220,151,.6); }
.field-user[data-state="ok"] .field-st { color: var(--ok); }
.field-user[data-state="bad"] { border-color: var(--bad); }
.field-user[data-state="bad"] .field-st { color: var(--bad); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #3A3448; border-top-color: var(--p); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hint b { color: var(--tx); }
.hint-mail { margin-top: -6px; }

.tot { display: flex; justify-content: space-between; align-items: baseline; margin: auto 0 12px; padding-top: 10px; }
.tot small { font-size: 12px; color: var(--mu); font-weight: 600; }
.tot b { font-size: 24px; font-weight: 800; }
.tot b.tot-muted { font-size: 14px; color: var(--mu); font-weight: 700; }
.cta { width: 100%; height: 52px; border: 0; border-radius: var(--r); background: var(--p); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 4px 0 var(--p-dark); cursor: pointer; transition: transform .08s, box-shadow .08s, background .12s; text-decoration: none; margin-top: 6px; }
.cta:hover { background: #8733FF; text-decoration: none; }
.cta:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--p-dark); }
.cta[disabled] { background: #221E2D; color: #5A546A; box-shadow: none; cursor: not-allowed; transform: none; }
.cta kbd { font-family: var(--font); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; border: 1px solid rgba(255,255,255,.45); border-bottom-width: 3px; padding: 2px 6px; border-radius: 4px; }
.cta[disabled] kbd { border-color: #3A3448; }
.cta-inline { width: auto; padding: 0 22px; height: 44px; margin: 0; }
.pay-note { text-align: center; font-size: 11px; color: var(--mu); margin: 12px 0 0; font-weight: 500; }

/* ---------- Confirmation popup (Via Username) ---------- */
.modal { width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--ln2); border-radius: 16px; background: var(--s1); color: var(--tx); box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; }
.modal[open] { display: flex; flex-direction: column; animation: modal-in .18s ease-out; }
.modal::backdrop { background: rgba(5,4,9,.72); backdrop-filter: blur(2px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--ln); }
.modal-hd h2 { font-size: 17px; font-weight: 700; }
.modal-x { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--ln); background: transparent; color: var(--mu); cursor: pointer; display: grid; place-items: center; }
.modal-x:hover { color: var(--tx); border-color: var(--ln2); }
.modal-x svg { width: 14px; height: 14px; }
.modal-body { padding: 16px 20px 4px; overflow-y: auto; }
.modal-ft { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--ln); }
.modal-ft .btn { height: 44px; padding: 0 22px; font-weight: 600; }
.modal-ft .btn[disabled] { background: #221E2D; border-color: #221E2D; color: #5A546A; cursor: not-allowed; }
.cf-sum { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--ln); border-radius: 12px; background: var(--s2); margin-bottom: 14px; }
.cf-sum img { width: 44px; height: 44px; border-radius: 10px; background: var(--s3); flex-shrink: 0; }
.cf-who { min-width: 0; }
.cf-who b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-who span { font-size: 12.5px; color: var(--mu); }
.cf-amt { margin-left: auto; text-align: right; white-space: nowrap; }
.cf-amt span { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; }
.cf-amt b { font-weight: 700; }
.cf-amt small { display: block; font-size: 12.5px; color: var(--mu); }
.cf-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mu); margin: 0 0 8px; }

/* ---------- Via Username: 2-Step + age ---------- */
.notice { background: rgba(122,28,255,.08); border: 1px solid rgba(122,28,255,.35); border-radius: 12px; padding: 14px; margin: 0 0 16px; }
.notice-hd { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 8px; }
.notice-hd b { font-size: 13.5px; line-height: 1.4; font-weight: 600; }
.notice-i { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--p); color: #fff; font-size: 11.5px; font-weight: 700; font-style: normal; display: inline-grid; place-items: center; }
.notice p { font-size: 12.5px; color: var(--tx2); margin: 0 0 8px; line-height: 1.6; font-weight: 400; }
.notice .path { color: #D9C6FF; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgba(122,28,255,.25); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--tx); cursor: pointer; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--p); cursor: pointer; }
.age { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.age-opt { margin: 0; display: flex; align-items: center; gap: 9px; border: 1px solid var(--ln); background: var(--s2); border-radius: var(--r); padding: 12px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--tx); }
.age-opt input { margin: 0; accent-color: var(--p); width: 16px; height: 16px; }
.age-opt:has(input:checked) { border-color: var(--p); background: var(--p-soft); }
.u18 { margin: -4px 0 16px; }
.u18 summary { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #C9B3FF; cursor: pointer; list-style: none; }
.u18 summary::-webkit-details-marker { display: none; }
.u18 summary .notice-i { width: 18px; height: 18px; font-size: 11px; background: transparent; border: 1.5px solid #C9B3FF; color: #C9B3FF; }
.u18-body { margin-top: 10px; background: var(--s2); border: 1px solid var(--ln); border-radius: 12px; padding: 14px; display: grid; gap: 12px; }
.u18-item b { display: block; font-size: 13px; margin-bottom: 2px; font-weight: 600; }
.u18-item p { margin: 0; font-size: 12.5px; color: var(--tx2); line-height: 1.6; font-weight: 400; }
.u18-honest { margin: 0; font-size: 12px; color: var(--mu); line-height: 1.55; border-top: 1px solid var(--ln); padding-top: 12px; }
.u18-alt { display: grid; gap: 10px; font-size: 12.5px; color: var(--tx2); line-height: 1.5; }
.u18-alt .btn { justify-self: start; }
.gift-note { background: rgba(61,220,151,.06); border: 1px solid rgba(61,220,151,.3); border-radius: 12px; padding: 14px; font-size: 12.5px; color: var(--tx2); line-height: 1.55; margin-bottom: 18px; }
.gift-note b { display: block; color: var(--tx); font-size: 13.5px; margin-bottom: 4px; }
.notice-inline { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.35); color: #FDE68A; border-radius: var(--r); padding: 12px 14px; font-size: 13.5px; }
.notice-inline b { color: #fff; }

/* ---------- Gift In Game, step 2 ---------- */
.steps-mini { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.steps-mini span { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ln); color: var(--mu); }
.steps-mini .done { color: var(--ok); border-color: rgba(61,220,151,.35); }
.steps-mini .on { color: var(--tx); background: var(--p-soft); border-color: rgba(122,28,255,.5); }
.gift-grid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.gift-main > p.muted { margin: 0 0 20px; font-size: 14px; }
.gift-sum { position: sticky; top: 84px; }
.mt { margin-top: 16px; }
.map-results { display: grid; gap: 6px; margin-top: 8px; }
.map-res { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px; border-radius: var(--r); border: 1px solid var(--ln); background: var(--s2); color: var(--tx); cursor: pointer; }
.map-res:hover { border-color: var(--p); }
.map-res img, .map-picked img { width: 44px; height: 44px; border-radius: 9px; background: var(--s3); flex-shrink: 0; }
.map-res b, .map-picked b { display: block; font-size: 14px; }
.map-res span, .map-picked span { font-size: 12px; color: var(--mu); }
.map-msg { font-size: 13px; color: var(--mu); padding: 8px 2px; }
.map-picked { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--p); background: var(--p-soft); border-radius: var(--r); }
.map-picked .btn { margin-left: auto; height: 34px; }
.items-wrap { margin-top: 18px; }
.items-hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.items-hd label { margin: 0; }
.field-sm { height: 36px; width: 200px; }
.field-sm input { font-size: 13px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; max-height: 420px; overflow-y: auto; padding: 2px; }
.item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 8px; border-radius: var(--r); border: 1px solid var(--ln); background: var(--s2); color: var(--tx); cursor: pointer; position: relative; }
.item:hover { border-color: var(--ln2); background: #12101A; }
.item.on { border-color: #fff; box-shadow: inset 0 0 0 1px #fff; background: var(--s3); }
.item img { width: 64px; height: 64px; border-radius: 10px; background: var(--s3); }
.item b { font-size: 12.5px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item span { font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.item em { position: absolute; top: 6px; left: 6px; font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .05em; padding: 2px 5px; border-radius: 4px; background: #2E2A3A; color: var(--mu); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ln); background: var(--s2); border-radius: var(--r); overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--tx); font-size: 20px; font-weight: 700; cursor: pointer; }
.qty button:hover { background: var(--s3); }
.qty input { width: 64px; height: 44px; border: 0; border-left: 1px solid var(--ln); border-right: 1px solid var(--ln); background: transparent; text-align: center; font-weight: 800; font-size: 16px; outline: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.gift-main .link-btn { display: block; margin-top: 16px; padding: 0; }

.check-gift { border-top: 0; margin: 4px 0 12px; padding: 12px; background: var(--s2); border: 1px solid var(--ln); border-radius: var(--r); font-size: 12.5px; }
.check-gift:has(input:checked) { border-color: rgba(61,220,151,.45); }

/* ---------- QRIS payment ---------- */
.qris-card h1 { margin-bottom: 4px; }
.qris { width: min(320px, 100%); margin: 20px auto 18px; background: #fff; color: #111; border-radius: 16px; padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.qris-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 10px; }
.qris-logo { font-weight: 800; letter-spacing: .04em; color: #111; border: 2px solid #111; border-radius: 6px; padding: 1px 7px; font-size: 12px; }
.qris-img { aspect-ratio: 1; display: grid; place-items: center; background: #fff; }
.qris-img img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.qris-img .qr-code { width: 86%; height: 86%; }
.qris-amt { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed #ccc; margin-top: 12px; padding-top: 12px; }
.qris-amt small { color: #666; font-weight: 600; font-size: 12px; }
.qris-amt b { font-size: 22px; font-weight: 800; }
.qris-steps { margin: 0 0 18px; padding-left: 20px; color: var(--tx2); font-size: 13.5px; line-height: 1.7; }
.qris-steps b { color: var(--tx); }
.pay-wait { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border: 1px solid var(--ln); border-radius: var(--r); background: var(--s2); color: var(--tx2); font-size: 13.5px; }

/* ---------- Admin ---------- */
.admin-hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-hd h1 { font-size: 28px; font-weight: 700; }
.admin-tag { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--warn); }
.admin-actions { display: flex; gap: 10px; }
.admin-actions form { margin: 0; }
.admin-card { margin-bottom: 18px; }
.admin-card h2 { color: var(--tx); font-size: 16px; text-transform: none; letter-spacing: 0; font-weight: 700; margin-bottom: 4px; }
.admin-note { font-size: 13px; margin: 0 0 18px; }
.rate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.rate-card { background: var(--s2); border: 1px solid var(--ln); border-radius: 12px; padding: 16px; }
.rate-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.rate-hd b { font-size: 15px; }
.field .pre, .field .post { color: var(--mu); font-size: 13px; font-weight: 600; }
.minmax { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.switch { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: var(--tx); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { width: 36px; height: 20px; border-radius: 999px; background: #2E2A3A; position: relative; transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #8A849B; transition: transform .15s, background .15s; }
.switch input:checked + .switch-ui { background: var(--p); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + .switch-ui { outline: 2px solid #fff; outline-offset: 2px; }
.admin-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.area { width: 100%; border: 1px solid var(--ln); background: var(--s2); border-radius: 9px; padding: 10px 12px; color: var(--tx); font: inherit; font-size: 14px; resize: vertical; outline: 0; }
.area:focus { border-color: var(--p); }
.admin .cta-inline { margin-top: 14px; }
.mode-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 520px; margin-bottom: 18px; }
.cred-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.oauth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--tx); font: inherit; font-size: 14px; font-weight: 600; }
.select option { background: var(--s1); }
.copy-row { display: grid; gap: 6px; margin-top: 14px; }
.copy-row span { font-size: 12px; color: var(--mu); font-weight: 500; }
.copy-row code { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: #D9C6FF; background: var(--s2); border: 1px dashed var(--ln2); border-radius: 8px; padding: 9px 12px; overflow-x: auto; white-space: nowrap; user-select: all; }
.inline-form { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.inline-form .hint { margin: 0; }
.pill-ok { background: rgba(61,220,151,.12); color: var(--ok); }
.check-plain { border-top: 0; padding-top: 0; margin-top: 12px; color: var(--tx2); }
.preset-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--mu); }
.preset-row .btn { height: 34px; padding: 0 14px; font-weight: 600; }
.field-test { width: 280px; max-width: 100%; }
.admin-warn { margin-bottom: 16px; }
.admin-note code { font-size: 12px; color: #D9C6FF; }

/* ---------- Trust & how ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); background: var(--s2); max-width: 1180px; margin: 0 auto; border-left: 1px solid var(--ln); border-right: 1px solid var(--ln); }
.trust div { padding: 18px 24px; border-right: 1px solid var(--ln); }
.trust div:last-child { border-right: 0; }
.trust b { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; }
.trust b i { width: 8px; height: 8px; background: var(--p); border-radius: 2px; }
.trust small { display: block; font-size: 12px; color: var(--mu); margin-top: 3px; font-weight: 500; }
.how { padding-top: 56px; padding-bottom: 72px; }
.how h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.how li { background: var(--s1); border: 1px solid var(--ln); border-radius: 14px; padding: 20px; counter-increment: step; }
.how li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--p-soft); color: #D9C6FF; font-weight: 800; margin-bottom: 12px; }
.how li b { display: block; font-size: 15px; margin-bottom: 4px; }
.how li span { font-size: 13px; color: var(--mu); }

/* ---------- Pay ---------- */
.sim-banner { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.35); color: #FDE68A; border-radius: var(--r); padding: 12px 16px; font-size: 13.5px; margin-bottom: 18px; }
.pay-grid, .order-grid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 18px 0; }
.channel { margin: 0; text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 700; color: var(--tx); border: 1px solid var(--ln); background: var(--s2); border-radius: var(--r); padding: 12px 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.channel input { accent-color: var(--p); }
.channel:has(input:checked) { border-color: var(--p); background: var(--p-soft); }
.qr-sim { display: flex; gap: 18px; align-items: center; background: var(--s2); border: 1px dashed var(--ln2); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.qr-sim p { margin: 4px 0 0; font-size: 13px; }
.qr-box { background: #fff; padding: 8px; border-radius: 8px; flex-shrink: 0; }
.qr-code { width: 96px; height: 96px; background:
  conic-gradient(#111 25%, #fff 0 50%, #111 0 75%, #fff 0) 0 0 / 16px 16px; opacity: .85; }
.summary .row, .card .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; color: var(--mu); }
.card .row span:last-child { color: var(--tx); font-weight: 600; text-align: right; }
.row-total { border-top: 1px solid var(--ln); margin-top: 8px; padding-top: 14px !important; color: var(--tx) !important; font-weight: 700; }
.row-total span:last-child { font-size: 20px; font-weight: 800 !important; }
.who { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ln); margin-bottom: 10px; }
.who img { width: 52px; height: 52px; border-radius: 12px; background: var(--s3); }
.who b { display: block; font-size: 16px; }
.who span { font-size: 13px; color: var(--mu); }

/* ---------- Order tracking ---------- */
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.who-lg { border: 0; padding: 0; margin: 0; }
.who-lg img { width: 72px; height: 72px; border-radius: 14px; }
.who-lg small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mu); }
.who-lg b { display: flex; align-items: center; gap: 7px; font-size: 20px; font-weight: 800; }
.status { display: inline-block; font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.status-menunggu_bayar { color: var(--warn); border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.status-diproses { color: #C9B3FF; border-color: rgba(122,28,255,.5); background: var(--p-soft); }
.status-sukses { color: var(--ok); border-color: rgba(61,220,151,.4); background: rgba(61,220,151,.08); }
.status-gagal, .status-kedaluwarsa { color: var(--bad); border-color: rgba(255,92,122,.4); background: rgba(255,92,122,.08); }
.timeline { list-style: none; margin: 0 0 20px; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 34px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ln2); background: var(--s2); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 24px; bottom: 2px; width: 2px; background: var(--ln); }
.timeline li:last-child::after { display: none; }
.timeline li b { display: block; font-size: 15px; color: var(--mu); }
.timeline li span { font-size: 12.5px; color: var(--mu2); }
.timeline li.done::before { background: var(--ok); border-color: var(--ok); }
.timeline li.done::after { background: rgba(61,220,151,.5); }
.timeline li.done b { color: var(--tx); }
.timeline li.now::before { border-color: var(--p); background: var(--p); box-shadow: 0 0 0 5px var(--p-soft); animation: pulse 1.2s ease-in-out infinite; }
.timeline li.now b { color: var(--tx); }
.timeline li.now span { color: #C9B3FF; }
.timeline li.fail::before { background: var(--bad); border-color: var(--bad); }

/* ---------- Prices ---------- */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 18px; }
.price-card.off { opacity: .55; }
.price-hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price-hd h2 { margin: 0; color: var(--tx); font-size: 16px; text-transform: none; letter-spacing: 0; }
.pill { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #2E2A3A; color: var(--mu); white-space: nowrap; }
.price-card .muted { font-size: 13px; margin: 6px 0 14px; }
.rate { font-size: 22px; font-weight: 800; margin: 0; }
.rate span { font-size: 13px; color: var(--mu); font-weight: 600; }
.table-card { padding: 8px 20px; overflow-x: auto; }
.table-card h2 { margin: 14px 0 6px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); font-weight: 700; padding: 12px 10px; border-bottom: 1px solid var(--ln); white-space: nowrap; }
.price-table td { padding: 12px 10px; border-bottom: 1px solid var(--ln); white-space: nowrap; font-weight: 600; }
.price-table tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin: 20px 0; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mu); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--tx2); font-size: 14px; }

/* ---------- Auth ---------- */
.auth .stack label { margin-top: 12px; }
.oauth { display: grid; gap: 8px; margin-top: 18px; }
.btn-oauth { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: var(--r); border: 1px solid var(--ln2); background: var(--s2); color: var(--tx); font-weight: 700; font-size: 14px; }
.btn-oauth:hover { text-decoration: none; border-color: #4A4260; background: #12101A; }
.btn-oauth svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; color: var(--mu2); font-size: 12px; font-weight: 600; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--ln); }
.auth .cta { margin-top: 16px; }
.field-code input { text-align: center; font-size: 22px; letter-spacing: .5em; font-weight: 800; }
.link-btn { background: none; border: 0; color: #C9B3FF; font-weight: 700; cursor: pointer; margin-top: 14px; font-size: 13.5px; }

/* ---------- Account / error / dev ---------- */
.acct-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.acct-head h1 { font-size: 28px; font-weight: 800; }
.err-code { font-size: 64px; font-weight: 900; margin: 0; color: var(--p); line-height: 1; }
.page.center .card h1 { margin: 10px 0 20px; }
.mail-frame { width: 100%; height: 760px; border: 1px solid var(--ln); border-radius: 14px; margin-top: 14px; background: #0B0A10; }
.dev-badge { position: fixed; right: 16px; bottom: 16px; z-index: 30; background: #FBBF24; color: #1A1400; font-size: 12px; font-weight: 800; padding: 8px 12px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.dev-badge:hover { text-decoration: none; background: #FCD34D; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--ln); background: var(--s2); margin-top: 0; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 32px 24px 18px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-in p { color: var(--mu); font-size: 13px; margin: 10px 0 0; max-width: 360px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.foot-links a { color: var(--tx2); font-size: 13.5px; font-weight: 600; }
.foot-links .dev-link { color: var(--warn); }
.foot-copy { max-width: 1180px; margin: 0 auto; padding: 0 24px 24px; color: var(--mu2); font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .links, .nav-rt { display: none; }
  .burger { display: flex; }
  .drawer { display: none; flex-direction: column; padding: 8px 16px 16px; border-top: 1px solid var(--ln); }
  .drawer.open { display: flex; }
  .drawer a { color: var(--tx2); font-weight: 600; padding: 11px 8px; border-radius: 8px; }
  .drawer a.on { background: var(--p-soft); color: var(--tx); }
  .hero { grid-template-columns: 1fr; border: 0; }
  .stage { position: relative; top: 0; height: auto; min-height: 430px; }
  .gift-grid { grid-template-columns: 1fr; }
  .rate-grid, .admin-2col, .cred-grid, .oauth-grid { grid-template-columns: 1fr; }
  .gift-sum { position: static; }
  .feed { display: none; }
  .shop { border-left: 0; border-top: 1px solid var(--ln); }
  .trust { grid-template-columns: 1fr 1fr; border-left: 0; border-right: 0; }
  .trust div:nth-child(2) { border-right: 0; }
  .trust div:nth-child(-n+2) { border-bottom: 1px solid var(--ln); }
  .how ol, .price-cards { grid-template-columns: 1fr; }
  .pay-grid, .order-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap, .nav-in, .flashes { padding-left: 16px; padding-right: 16px; }
  .stage { min-height: 380px; }
  .fig-wrap, .fig { width: 280px; height: 280px; }
  .plate { width: 320px; }
  .plus { right: 6%; top: 90px; font-size: 22px; }
  .shop { padding: 20px 16px; }
  .qr-sim { flex-direction: column; text-align: center; }
  .items-hd { flex-direction: column; align-items: stretch; }
  .field-sm { width: 100%; }
  .items { grid-template-columns: repeat(2, 1fr); }
  .modal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .modal-ft .btn { flex: 1; justify-content: center; }
  .age { grid-template-columns: 1fr; }
}
