/* ==========================================================================
   RobuxInstant — design system v6
   Dark "volt" theme: deep ink surfaces, electric blue, bolt yellow.
   Variable names from v5 (--ink-2, --panel, --gold, ...) are kept as aliases
   so inline styles generated by app-v4.js and bayar.html keep working.
   ========================================================================== */

:root{
  color-scheme: dark;

  --bg:#060A13; --bg-2:#0A1120;
  --surface:#0F1728; --surface-2:#141E33; --surface-3:#1B2845;
  --line:rgba(148,170,220,.14); --line-2:rgba(148,170,220,.28);
  --text:#EEF3FF; --muted:#8E9BBA; --faint:#5F6C8C;

  --blue:#2D8CFF; --blue-2:#6DB4FF; --blue-deep:#0B4FD6;
  --volt:#FFD21F; --volt-2:#FFB800; --volt-ink:#241A00;
  --green:#3DE0A5; --red:#FF6B78;

  /* v5 aliases */
  --ink:var(--bg); --ink-2:var(--surface-2); --panel:var(--surface); --panel-2:var(--surface-3);
  --blue-soft:var(--blue-2);
  --gold:var(--volt); --gold-fill:var(--volt); --gold-line:var(--volt-2); --gold-bg:rgba(255,210,31,.09);
  --green-fill:var(--green);

  --radius:16px; --radius-sm:11px; --maxw:1160px;
  --shadow:0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -22px rgba(0,0,0,.7);

  --f-display:'Bricolage Grotesque','Segoe UI',system-ui,sans-serif;
  --f-body:'DM Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --f-mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth; scroll-padding-top:88px; -webkit-text-size-adjust:100%; overflow-x:clip}
body{
  margin:0; min-height:100vh;
  background:var(--bg); color:var(--text);
  font-family:var(--f-body); font-size:15.5px; line-height:1.65;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
  overflow-x:hidden;
}
h1,h2,h3,h4{margin:0; font-family:var(--f-display); font-weight:800; line-height:1.08; letter-spacing:-.025em}
p{margin:0}
a{color:inherit}
img,svg{max-width:100%}
button{font-family:inherit}
::selection{background:var(--volt); color:var(--volt-ink)}
:focus-visible{outline:2px solid var(--volt); outline-offset:3px; border-radius:8px}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 20px}
.sr-only{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
.mono{font-family:var(--f-mono); font-variant-numeric:tabular-nums}

/* ---------- ambient background ---------- */
.ambient{position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(900px 520px at 88% -6%, rgba(45,140,255,.20), transparent 62%),
    radial-gradient(700px 480px at -6% 14%, rgba(255,210,31,.07), transparent 60%),
    var(--bg);
}
.ambient::after{content:""; position:absolute; inset:0; opacity:.55;
  background-image:linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(ellipse 80% 55% at 50% 0%, #000 0%, transparent 72%);
          mask-image:radial-gradient(ellipse 80% 55% at 50% 0%, #000 0%, transparent 72%);
}

/* ---------- header ---------- */
header.site{position:sticky; top:0; z-index:50; background:rgba(6,10,19,.72); backdrop-filter:blur(16px) saturate(1.4); -webkit-backdrop-filter:blur(16px) saturate(1.4); border-bottom:1px solid var(--line)}
.nav{display:flex; align-items:center; gap:18px; height:68px}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; flex:none}
.brand img{width:36px; height:36px; display:block}
.brand-txt{font-family:var(--f-display); font-weight:800; font-size:21px; letter-spacing:-.04em; color:var(--text)}
.brand-txt b{color:var(--blue-2); font-weight:800}
.nav .links{display:flex; gap:4px; margin-left:auto; align-items:center}
.nav .links a{font-size:14px; font-weight:500; color:var(--muted); text-decoration:none; padding:8px 12px; border-radius:99px; transition:color .15s, background .15s}
.nav .links a:hover{color:var(--text); background:rgba(255,255,255,.05)}
.nav .links a[aria-current=page]{color:var(--text)}
.cta-mini{flex:none; display:inline-flex; align-items:center; gap:7px; padding:9px 16px; border-radius:99px; background:var(--volt); color:var(--volt-ink)!important; font-weight:700; font-size:13.5px; text-decoration:none; transition:transform .15s, box-shadow .15s; box-shadow:0 8px 22px -10px rgba(255,210,31,.7)}
.cta-mini:hover{transform:translateY(-1px); box-shadow:0 12px 26px -10px rgba(255,210,31,.85)}
.burger{display:none; flex:none; width:42px; height:42px; border-radius:12px; border:1px solid var(--line-2); background:var(--surface); color:var(--text); cursor:pointer; align-items:center; justify-content:center}
.burger span{display:block; width:17px; height:2px; background:currentColor; border-radius:2px; position:relative; transition:background .15s}
.burger span::before,.burger span::after{content:""; position:absolute; left:0; width:17px; height:2px; background:currentColor; border-radius:2px; transition:transform .2s}
.burger span::before{top:-6px} .burger span::after{top:6px}
.burger[aria-expanded=true] span{background:transparent}
.burger[aria-expanded=true] span::before{transform:translateY(6px) rotate(45deg)}
.burger[aria-expanded=true] span::after{transform:translateY(-6px) rotate(-45deg)}
@media(max-width:860px){
  .burger{display:inline-flex; margin-left:auto}
  .cta-mini{display:none}
  .nav .links{position:absolute; left:0; right:0; top:68px; margin:0; flex-direction:column; align-items:stretch; gap:2px; padding:10px 20px 18px; background:rgba(8,13,24,.97); border-bottom:1px solid var(--line); display:none}
  .nav .links.open{display:flex}
  .nav .links a{padding:13px 12px; font-size:15.5px; border-radius:12px}
}

/* ---------- buttons ---------- */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; border:none; border-radius:12px; padding:13px 20px; font-weight:700; font-size:14.5px; background:var(--volt); color:var(--volt-ink); cursor:pointer; text-decoration:none; text-align:center; transition:transform .15s, box-shadow .15s, background .15s; box-shadow:0 10px 24px -12px rgba(255,210,31,.75)}
.btn:hover{transform:translateY(-1px); background:#FFDE4D}
.btn:active{transform:translateY(0)}
.btn.ghost{background:rgba(255,255,255,.04); color:var(--text); border:1px solid var(--line-2); box-shadow:none}
.btn.ghost:hover{background:rgba(255,255,255,.08); border-color:var(--blue-2)}
.btn.blue{background:var(--blue); color:#fff; box-shadow:0 10px 24px -12px rgba(45,140,255,.9)}
.btn.blue:hover{background:#4C9DFF}
.btn:disabled{opacity:.38; cursor:not-allowed; transform:none; box-shadow:none}
.btn.lg{padding:16px 26px; font-size:15.5px; border-radius:14px}

/* ---------- hero ---------- */
.hero{position:relative; padding:56px 20px 30px; overflow-x:clip}
.hero-grid{display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); gap:36px; align-items:center}
.eyebrow{display:inline-flex; align-items:center; gap:9px; font-size:12.5px; font-weight:600; letter-spacing:.02em; color:var(--blue-2); padding:7px 13px 7px 11px; border-radius:99px; border:1px solid rgba(109,180,255,.28); background:rgba(45,140,255,.08)}
.eyebrow i{width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 0 rgba(61,224,165,.6); animation:ping 2s infinite}
@keyframes ping{70%{box-shadow:0 0 0 8px rgba(61,224,165,0)} 100%{box-shadow:0 0 0 0 rgba(61,224,165,0)}}
.hero h1{font-size:clamp(2.55rem,6vw,4.5rem); line-height:.98; letter-spacing:-.04em; margin:20px 0 0}
.hero h1 mark{background:none; color:var(--volt-ink); position:relative; display:inline-block; padding:0 .12em; z-index:0; white-space:nowrap}
.hero h1 mark::before{content:""; position:absolute; inset:.06em -.04em .02em; background:var(--volt); transform:skew(-7deg) rotate(-1.2deg); border-radius:.14em; z-index:-1}
.hero .sub{margin-top:22px; max-width:50ch; color:var(--muted); font-size:17px; line-height:1.6}
.hero-cta{display:flex; flex-wrap:wrap; gap:12px; margin-top:30px}
.proof{display:flex; flex-wrap:wrap; gap:10px 26px; margin-top:34px; padding-top:24px; border-top:1px solid var(--line)}
.proof div{display:flex; align-items:center; gap:10px; font-size:13.5px; font-weight:500; color:var(--text)}
.proof svg{width:30px; height:30px; flex:none; padding:7px; border-radius:9px; background:var(--surface-2); border:1px solid var(--line); color:var(--volt)}

.stage{position:relative; aspect-ratio:1/1; max-width:520px; width:100%; margin-inline:auto}
.stage .glow{position:absolute; inset:8% 6%; border-radius:50%; background:radial-gradient(circle, rgba(45,140,255,.42), transparent 66%); filter:blur(30px)}
.stage .coin{position:absolute; left:50%; top:46%; width:72%; transform:translate(-50%,-50%); animation:bob 6s ease-in-out infinite; filter:drop-shadow(0 30px 40px rgba(0,0,0,.55))}
@keyframes bob{50%{transform:translate(-50%,-53%)}}
.stage .orbit{position:absolute; inset:2%; width:96%; height:96%; animation:spin 40s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.float{position:absolute; background:rgba(15,23,40,.86); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border:1px solid var(--line-2); border-radius:16px; box-shadow:0 24px 44px -24px #000}
.ticket{left:-2%; bottom:5%; width:min(268px,58%); padding:15px 16px; animation:bob2 7s ease-in-out infinite}
@keyframes bob2{50%{transform:translateY(-8px)}}
.ticket .t-top{display:flex; justify-content:space-between; align-items:center; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); font-weight:700}
.ticket .t-user{display:flex; align-items:center; gap:10px; margin:12px 0 14px}
.ticket .t-av{width:34px; height:34px; border-radius:10px; background:linear-gradient(145deg,var(--blue),var(--blue-deep)); display:grid; place-items:center; font-family:var(--f-display); font-weight:800; font-size:15px}
.ticket .t-name{font-weight:700; font-size:14px; line-height:1.2}
.ticket .t-sub{font-size:11.5px; color:var(--muted)}
.t-steps{display:grid; gap:9px; margin:0; padding:0; list-style:none}
.t-steps li{display:flex; align-items:center; gap:10px; font-size:12.5px; color:var(--muted)}
.t-steps li::before{content:""; width:16px; height:16px; border-radius:50%; flex:none; border:1.5px solid var(--line-2)}
.t-steps li.on{color:var(--text)}
.t-steps li.on::before{background:var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-4.9' fill='none' stroke='%23052' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; border-color:var(--green)}
.t-steps li.now::before{border-color:var(--volt); background:radial-gradient(circle,var(--volt) 38%,transparent 42%)}
.chip-qris{right:0; top:9%; padding:11px 15px; display:flex; align-items:center; gap:10px; animation:bob2 8s ease-in-out infinite reverse}
.chip-qris .q{width:34px; height:34px; border-radius:9px; background:#fff; display:grid; place-items:center}
.chip-qris b{display:block; font-size:13.5px; line-height:1.2}
.chip-qris span{font-size:11.5px; color:var(--muted)}
.chip-bolt{right:6%; bottom:14%; width:54px; height:54px; border-radius:16px; display:grid; place-items:center; background:linear-gradient(150deg,var(--volt),var(--volt-2)); border:none; color:var(--volt-ink); animation:bob 5s ease-in-out infinite; transform:rotate(8deg)}
@media(max-width:940px){
  .hero{padding-top:34px}
  .hero-grid{grid-template-columns:1fr; gap:10px}
  .stage{max-width:400px; margin-top:26px}
  .hero h1{font-size:clamp(2.4rem,10vw,3.4rem)}
}
@media(max-width:560px){
  .hero{padding-top:26px}
  .stage{max-width:340px}
  .stage .coin{top:41%; width:66%}
  .ticket{width:60%; padding:12px 13px; left:0; bottom:0}
  .ticket .t-user{margin:9px 0 11px}
  .t-steps{gap:7px} .t-steps li{font-size:11.5px}
  .chip-qris{top:2%; right:-2%; padding:9px 12px}
  .chip-qris span{display:none}
  .proof{gap:12px 20px}
}

/* ---------- section scaffolding ---------- */
.sec-head{margin-bottom:26px}
.sec-head .kicker{font-family:var(--f-mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--volt); font-weight:500}
.sec-head h2{font-size:clamp(1.7rem,3.6vw,2.4rem); margin-top:10px}
.sec-head p{color:var(--muted); margin-top:10px; max-width:58ch}
section.block{padding:70px 0 10px}

/* ---------- order builder ---------- */
.main{display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:26px; padding:40px 20px 30px; align-items:start}
@media(max-width:980px){ .main{grid-template-columns:minmax(0,1fr)} }
.main > *{min-width:0}

.step{position:relative; background:linear-gradient(180deg,var(--surface) 0%,rgba(15,23,40,.7) 100%); border:1px solid var(--line); box-shadow:var(--shadow); border-radius:var(--radius); padding:22px; margin-bottom:16px}
.step-head{display:flex; align-items:center; gap:13px; margin-bottom:18px}
.step-no{width:32px; height:32px; flex:none; border-radius:10px; display:grid; place-items:center; background:var(--surface-3); border:1px solid var(--line-2); color:var(--volt); font-family:var(--f-mono); font-weight:500; font-size:13.5px}
.step-head h2{font-size:18.5px}
.step-head .note{margin-left:auto; font-size:12.5px; color:var(--muted); text-align:right}
@media(max-width:560px){ .step{padding:18px} .step-head .note{display:none} }

label.field{display:block; font-size:12.5px; font-weight:600; letter-spacing:.02em; color:var(--muted); margin-bottom:8px}
input[type=text],input[type=email],input[type=tel]{width:100%; height:50px; padding:0 15px; border-radius:12px; font:500 15.5px var(--f-body); background:var(--bg-2); border:1px solid var(--line-2); color:var(--text); transition:border-color .15s, box-shadow .15s}
input::placeholder{color:var(--faint)}
input:hover{border-color:rgba(148,170,220,.42)}
input:focus{outline:none; border-color:var(--blue); box-shadow:0 0 0 4px rgba(45,140,255,.18)}
.row{display:flex; gap:10px}
.row input{flex:1; min-width:0}
.row .btn{height:50px; padding:0 20px; flex:none}
.hint{font-size:13px; color:var(--muted); margin-top:11px}
.error-text{font-size:13px; color:var(--red); margin-top:10px; display:none}
.error-text.show{display:block}
.contact-fields{display:flex; flex-wrap:wrap; gap:14px}
.contact-fields > div{flex:1; min-width:200px}

.account-found{margin-top:14px; display:none; align-items:center; gap:13px; padding:12px 14px; background:rgba(61,224,165,.07); border:1px solid rgba(61,224,165,.32); border-radius:13px}
.account-found.show{display:flex}
.avatar{width:42px; height:42px; border-radius:12px; flex:none; display:grid; place-items:center; background:linear-gradient(145deg,var(--blue),var(--blue-deep)); color:#fff; font-family:var(--f-display); font-weight:800; overflow:hidden}
.avatar img{width:100%; height:100%; object-fit:cover}
.account-found > div:nth-child(2){min-width:0; flex:1}
.account-found .name{font-weight:700; font-size:15px; line-height:1.25; overflow-wrap:anywhere}
.account-found .uid{font-size:12px; color:var(--muted); font-family:var(--f-mono); overflow-wrap:anywhere}
.account-found .ok{margin-left:auto; color:var(--green); font-weight:700; font-size:13px; display:flex; align-items:center; gap:6px; white-space:nowrap}
.account-found .ok::before{content:""; width:16px; height:16px; border-radius:50%; background:var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-4.9' fill='none' stroke='%23052' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}

/* tabs */
.tabs{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px}
.tab{background:transparent; border:1px solid var(--line-2); color:var(--muted); padding:8px 15px; border-radius:99px; font-weight:600; font-size:13.5px; cursor:pointer; transition:all .15s}
.tab:hover{color:var(--text); border-color:var(--blue-2)}
.tab[aria-selected=true]{background:var(--blue); border-color:var(--blue); color:#fff; box-shadow:0 8px 20px -10px rgba(45,140,255,.9)}
.substep-title{font-size:12.5px; font-weight:600; letter-spacing:.02em; color:var(--muted); margin:4px 0 12px}

/* robux packs */
.grid{display:grid; grid-template-columns:repeat(3,1fr); gap:12px}
@media(max-width:620px){
  .grid{grid-template-columns:repeat(2,1fr); gap:10px}
  .pick{padding:13px 11px 12px}
  .pick .amount{gap:2px 6px}
  .pick .amount .num{font-size:17px}
  .pick .amount .unit{flex-basis:100%; margin-top:1px}
  .pick .amount i{width:17px; height:17px}
  .pick .amount i::after{inset:4px}
  .account-found .ok{font-size:0; gap:0; flex:none}
  .account-found .ok::before{width:22px; height:22px}
}
.pick{position:relative; text-align:left; cursor:pointer; background:var(--bg-2); border:1.5px solid var(--line); border-radius:14px; padding:15px 14px 14px; color:var(--text); transition:border-color .15s, background .15s, transform .15s, box-shadow .15s; overflow:hidden}
.pick::before{content:""; position:absolute; right:-26px; top:-26px; width:84px; height:84px; border-radius:50%; background:radial-gradient(circle,rgba(45,140,255,.20),transparent 68%); opacity:0; transition:opacity .2s}
.pick:hover{border-color:var(--line-2); transform:translateY(-2px); background:var(--surface-2)}
.pick:hover::before{opacity:1}
.pick[aria-pressed=true]{border-color:var(--volt); background:linear-gradient(160deg,rgba(255,210,31,.12),rgba(255,210,31,.03)); box-shadow:0 0 0 3px rgba(255,210,31,.14)}
.pick[aria-pressed=true]::after{content:""; position:absolute; right:10px; top:10px; width:20px; height:20px; border-radius:50%; background:var(--volt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-4.9' fill='none' stroke='%23241A00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.pick .amount{display:flex; align-items:center; flex-wrap:wrap; gap:2px 7px}
.pick .amount .num{font-family:var(--f-display); font-weight:800; font-size:19px; letter-spacing:-.03em; line-height:1.1}
.pick .amount .unit{font-size:12px; font-weight:600; color:var(--muted)}
.pick[aria-pressed=true] .amount .unit{color:#E8D58A}
.pick .amount i{width:20px; height:20px; border-radius:50%; flex:none; background:radial-gradient(circle at 34% 28%,#FFF1A6,var(--volt) 48%,#D99500); box-shadow:inset 0 -2px 0 rgba(0,0,0,.22), 0 3px 8px -2px rgba(255,184,0,.55); position:relative}
.pick .amount i::after{content:""; position:absolute; inset:5px; background:#7A4B00; clip-path:polygon(58% 0,18% 56%,46% 56%,36% 100%,84% 40%,55% 40%); opacity:.9}
.pick .price{margin-top:10px; font-weight:700; color:var(--text); font-size:14.5px; font-variant-numeric:tabular-nums}
.pick[aria-pressed=true] .price{color:var(--volt)}
.pick .strike{font-size:12px; color:var(--faint); text-decoration:line-through; font-variant-numeric:tabular-nums}
.ribbon{position:absolute; top:0; right:0; font-size:10px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; background:var(--red); color:#fff; padding:4px 9px; border-radius:0 12px 0 10px}
.ribbon.best{background:var(--green); color:#032616}
.pick[aria-pressed=true] .ribbon{display:none}
.skel{height:92px; border-radius:14px; border:1px solid var(--line); background:linear-gradient(100deg,var(--bg-2) 30%,var(--surface-2) 50%,var(--bg-2) 70%) 0 0/220% 100%; animation:shimmer 1.4s linear infinite}
@keyframes shimmer{to{background-position:-220% 0}}

/* payment */
.pay-list{display:grid; grid-template-columns:repeat(2,1fr); gap:10px}
@media(max-width:620px){ .pay-list{grid-template-columns:1fr} }
.pay{display:flex; align-items:center; gap:13px; cursor:pointer; text-align:left; background:var(--bg-2); border:1.5px solid var(--line); border-radius:13px; padding:12px 13px; color:var(--text); transition:border-color .15s, background .15s}
.pay:hover{border-color:var(--line-2); background:var(--surface-2)}
.pay[aria-pressed=true]{border-color:var(--volt); background:linear-gradient(160deg,rgba(255,210,31,.11),rgba(255,210,31,.02)); box-shadow:0 0 0 3px rgba(255,210,31,.12)}
.pay .pname{font-weight:700; font-size:14px}
.pay .pfee{font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums}
.pay .pay-logo{width:58px!important; height:30px!important; flex:0 0 58px!important; background:#fff!important; display:flex!important; align-items:center!important; justify-content:center!important; overflow:hidden!important; border-radius:7px!important; border:none!important}
.pay .pay-logo-img{width:48px!important; height:20px!important; object-fit:contain!important; display:block!important}
.pay .badge-fallback{width:100%; height:100%; place-items:center; font-size:9px; font-weight:800; color:#0B1020; background:#E8ECFF}

/* ---------- order summary (ticket) ---------- */
.summary{position:sticky; top:88px; background:linear-gradient(180deg,var(--surface-2),var(--surface)); border:1px solid var(--line-2); box-shadow:var(--shadow); border-radius:20px; padding:24px 22px 22px}
.summary::before{content:""; position:absolute; left:0; right:0; top:0; height:4px; border-radius:20px 20px 0 0; background:linear-gradient(90deg,var(--blue),var(--volt))}
.summary h3{font-size:15px; font-family:var(--f-mono); font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:14px}
.sline{display:flex; justify-content:space-between; gap:14px; font-size:14px; padding:7px 0; color:var(--muted)}
.sline b{color:var(--text); font-weight:600; text-align:right; max-width:60%; overflow-wrap:anywhere}
.sep{position:relative; height:0; border-top:1.5px dashed var(--line-2); margin:15px 0}
.sep::before,.sep::after{content:""; position:absolute; top:-12px; width:22px; height:22px; border-radius:50%; background:var(--bg); border:1px solid var(--line-2)}
.sep::before{left:-33px; clip-path:inset(0 0 0 50%)} .sep::after{right:-33px; clip-path:inset(0 50% 0 0)}
.total{display:flex; justify-content:space-between; align-items:baseline; font-weight:600; color:var(--muted)}
.total .val{font-family:var(--f-display); font-weight:800; color:var(--volt); font-size:30px; letter-spacing:-.03em; font-variant-numeric:tabular-nums}
.summary .btn{width:100%; margin-top:18px; padding:16px}
.safe{display:flex; gap:8px; align-items:center; justify-content:center; margin-top:14px; font-size:12.5px; color:var(--muted)}
.safe svg{width:15px; height:15px; color:var(--green); flex:none}
@media(max-width:980px){ .summary{position:static} .sep::before{left:-23px} .sep::after{right:-23px} }

/* ---------- how it works ---------- */
.cards3{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; counter-reset:s}
@media(max-width:860px){ .cards3{grid-template-columns:1fr} }
.mini{position:relative; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:26px 24px 24px; overflow:hidden; counter-increment:s}
.mini::before{content:"0" counter(s); position:absolute; right:18px; top:6px; font-family:var(--f-display); font-weight:800; font-size:76px; letter-spacing:-.06em; color:rgba(148,170,220,.07); line-height:1}
.mini .ic{width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:rgba(45,140,255,.12); border:1px solid rgba(109,180,255,.25); color:var(--blue-2); margin-bottom:18px}
.mini h4{font-size:18px; margin-bottom:8px; position:relative}
.mini p{font-size:14.5px; color:var(--muted); position:relative}

/* ---------- tracking ---------- */
.track{background:linear-gradient(135deg,var(--surface-2),var(--surface)); border:1px solid var(--line-2); border-radius:20px; padding:26px; display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:30px; align-items:start}
@media(max-width:860px){ .track{grid-template-columns:1fr; padding:20px; gap:18px} }
.track h2{font-size:clamp(1.5rem,3vw,2rem)}
.track p.lead{color:var(--muted); margin-top:10px; font-size:14.5px}
.track input{font-family:var(--f-mono); font-size:14.5px}
table.orders{width:100%; border-collapse:collapse; font-size:14px; margin-top:4px}
table.orders th{text-align:left; color:var(--muted); font-weight:500; padding:11px 0; border-bottom:1px solid var(--line); width:38%}
table.orders td{padding:11px 0; border-bottom:1px solid var(--line); font-weight:600; font-family:var(--f-mono); font-size:13.5px; overflow-wrap:anywhere}
.pill{display:inline-block; font-family:var(--f-body); font-size:12px; font-weight:700; padding:4px 11px; border-radius:99px}
.pill.paid{background:rgba(61,224,165,.14); color:var(--green)}
.pill.pending{background:rgba(255,210,31,.13); color:var(--volt)}
.pill.bad{background:rgba(255,107,120,.14); color:var(--red)}
.empty{color:var(--muted); font-size:13.5px; padding:14px 0}

/* ---------- faq ---------- */
.faq{display:grid; gap:10px; max-width:820px}
.faq details{background:var(--surface); border:1px solid var(--line); border-radius:14px; transition:border-color .15s}
.faq details[open]{border-color:var(--line-2); background:var(--surface-2)}
.faq summary{cursor:pointer; list-style:none; padding:18px 20px; font-weight:600; font-size:15.5px; display:flex; justify-content:space-between; align-items:center; gap:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:""; width:22px; height:22px; flex:none; border-radius:50%; background:var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v8M4 8h8' stroke='%23FFD21F' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; transition:transform .2s}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{padding:0 20px 20px; color:var(--muted); font-size:14.5px; max-width:68ch}

/* ---------- footer ---------- */
footer.site-foot{margin-top:90px; border-top:1px solid var(--line); background:linear-gradient(180deg,transparent,rgba(10,17,32,.9)); padding:52px 0 36px; color:var(--muted); font-size:14px}
.foot-grid{display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:36px}
@media(max-width:760px){ .foot-grid{grid-template-columns:1fr 1fr} .foot-grid > :first-child{grid-column:1/-1} }
.foot-grid h5{margin:0 0 14px; font-family:var(--f-mono); font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--faint); font-weight:500}
.foot-grid ul{list-style:none; margin:0; padding:0; display:grid; gap:9px}
.foot-grid a{text-decoration:none; transition:color .15s} .foot-grid a:hover{color:var(--text)}
.foot-grid p{max-width:36ch; margin-top:14px}
.foot-base{margin-top:40px; padding-top:22px; border-top:1px solid var(--line); font-size:12.5px; color:var(--faint); display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 24px}

/* ---------- modal / toast ---------- */
.overlay{position:fixed; inset:0; background:rgba(3,6,12,.7); backdrop-filter:blur(6px); display:none; align-items:center; justify-content:center; padding:18px; z-index:80}
.overlay.show{display:flex}
.modal{background:var(--surface); border:1px solid var(--line-2); box-shadow:0 40px 90px -30px #000; border-radius:22px; width:100%; max-width:440px; max-height:88vh; overflow-y:auto; padding:26px}
.modal h3{font-size:20px}
.qr{width:220px; height:220px; margin:18px auto 12px; background:#fff; border-radius:16px; padding:11px}
.qr img{width:100%; height:100%; display:block; object-fit:contain}
.countdown{text-align:center; font-weight:700; color:var(--volt); font-size:15px}
.kv{display:flex; justify-content:space-between; gap:14px; font-size:14px; padding:8px 0; color:var(--muted); border-bottom:1px dashed var(--line)}
.kv:last-of-type{border-bottom:none}
.kv b{color:var(--text); font-weight:600; text-align:right; overflow-wrap:anywhere}
.modal .btn{width:100%; margin-top:14px}
.status-wrap{text-align:center; padding:8px 0}
.spinner{width:42px; height:42px; margin:14px auto; border-radius:50%; border:3px solid var(--line-2); border-top-color:var(--volt); animation:spin .9s linear infinite}
.tickmark,.waitmark,.errmark{width:64px; height:64px; margin:6px auto 16px; border-radius:50%; display:grid; place-items:center; font-size:28px; font-weight:800}
.tickmark{background:rgba(61,224,165,.12); border:2px solid var(--green); color:var(--green)}
.waitmark{background:rgba(255,210,31,.1); border:2px solid var(--volt); color:var(--volt)}
.errmark{background:rgba(255,107,120,.12); border:2px solid var(--red); color:var(--red)}
.toast{position:fixed; left:50%; transform:translateX(-50%) translateY(8px); bottom:calc(24px + env(safe-area-inset-bottom,0px)); background:var(--surface-3); border:1px solid var(--line-2); color:var(--text); padding:12px 20px; border-radius:99px; font-size:14px; font-weight:600; opacity:0; pointer-events:none; transition:opacity .2s, transform .2s; z-index:90; box-shadow:0 20px 40px -14px #000; max-width:calc(100vw - 32px); text-align:center}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0)}

/* ---------- legal / document pages ---------- */
.doc{max-width:860px; margin:0 auto; padding:56px 20px 0}
.doc .doc-head{margin-bottom:34px}
.doc .doc-head .kicker{font-family:var(--f-mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--volt)}
.doc h1{font-size:clamp(2rem,5vw,3rem); margin-top:12px; letter-spacing:-.035em}
.doc .updated{margin-top:14px; font-size:13px; color:var(--muted); font-family:var(--f-mono)}
.doc .intro{margin-top:18px; color:var(--muted); font-size:16.5px; max-width:62ch}
.prose{background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:12px 34px 34px}
@media(max-width:600px){ .prose{padding:6px 20px 24px} }
.prose.plain{background:none; border:none; padding:0}
.prose h2{font-size:19px; margin:30px 0 10px}
.prose p,.prose li{color:#B8C4DE; line-height:1.8}
.prose p + p{margin-top:12px}
.prose ul{padding-left:20px; margin:10px 0}
.prose li{margin:6px 0} .prose li::marker{color:var(--volt)}
.prose a{color:var(--blue-2); text-underline-offset:3px; overflow-wrap:anywhere}
.callout{margin:20px 0; padding:16px 18px; border-radius:12px; background:var(--gold-bg); border:1px solid rgba(255,210,31,.28); border-left:4px solid var(--volt); color:var(--text)}
.callout strong{color:var(--volt)}
.contact-card{padding:20px 22px; border:1px solid var(--line-2); border-radius:14px; margin:16px 0; background:var(--surface-2)}
.contact-card h2{margin:0 0 10px; font-size:17px}
.contact-card p + p{margin-top:10px}
.wa-btn{display:inline-flex; align-items:center; gap:9px; padding:13px 20px; background:#25D366; color:#04230F!important; border-radius:12px; text-decoration:none!important; font-weight:700; transition:transform .15s, filter .15s}
.wa-btn:hover{transform:translateY(-1px); filter:brightness(1.08)}
.doc-links{display:flex; gap:10px 22px; flex-wrap:wrap; margin-top:26px; padding-top:22px; border-top:1px solid var(--line); font-size:14px}
.doc-links a{color:var(--muted); text-decoration:none} .doc-links a:hover{color:var(--text)}

/* ---------- payment page (bayar.html) ---------- */
.pay-page{max-width:540px; padding-top:34px; padding-bottom:30px}
.pcard{background:linear-gradient(180deg,var(--surface-2),var(--surface)); border:1px solid var(--line-2); box-shadow:var(--shadow); border-radius:20px; padding:24px; margin-bottom:16px}
.pcard h1{font-size:25px}
.pcard .psub{color:var(--muted); font-size:14px; margin-top:6px}
.timer-box{display:flex; justify-content:space-between; align-items:center; gap:12px; background:var(--gold-bg); border:1px solid rgba(255,210,31,.3); border-radius:14px; padding:14px 16px; margin:20px 0 6px}
.timer-box .lbl{font-size:12.5px; color:var(--muted); font-weight:500; line-height:1.45}
.timer-box .cd{font-family:var(--f-mono); font-size:28px; font-weight:500; color:var(--volt); font-variant-numeric:tabular-nums; letter-spacing:.02em}
.timer-box .cd.urgent{color:var(--red); animation:blink 1s steps(2) infinite}
@keyframes blink{50%{opacity:.45}}
.timer-box.plain{background:var(--surface-3); border-color:var(--line)}
.exp-note{font-size:13px; color:#FFB4BB; background:rgba(255,107,120,.1); border:1px solid rgba(255,107,120,.3); border-radius:12px; padding:12px 14px; margin-top:12px}
.copyrow{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; background:var(--bg-2); border:1px solid var(--line-2); border-radius:14px; padding:14px 16px; margin-top:12px}
.copyrow .lbl{font-size:12px; color:var(--muted); font-weight:600}
.copyrow .val{font-family:var(--f-display); font-size:clamp(23px,6.4vw,28px); font-weight:800; letter-spacing:-.02em; white-space:nowrap; margin-top:2px; font-variant-numeric:tabular-nums}
.copyrow .val.gold{color:var(--volt)}
.btn.sm{padding:9px 14px; font-size:13px; flex:none; height:auto}
a.btn{display:inline-flex}
.qr.big{width:292px; height:292px; max-width:80vw; margin:22px auto 10px; border-radius:20px; padding:14px; box-shadow:0 0 0 1px var(--line-2), 0 30px 60px -28px rgba(45,140,255,.55)}
.qr.big img{width:100%; height:100%; object-fit:contain}
.qr-hint{text-align:center; font-size:13px; color:var(--muted)}
@media(max-width:480px){ .qr.big{width:320px; height:320px; max-width:88vw} .pcard{padding:20px} }
.actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:16px}
.actions .btn{flex:1; min-width:150px; margin-top:0}
details.howto{margin-top:2px}
details.howto summary{cursor:pointer; font-weight:700; font-size:15px; list-style:none; display:flex; align-items:center; justify-content:space-between}
details.howto summary::-webkit-details-marker{display:none}
details.howto summary::after{content:""; width:20px; height:20px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%238E9BBA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; transition:transform .2s}
details.howto[open] summary::after{transform:rotate(180deg)}
details.howto ol{margin:14px 0 0; padding-left:20px; color:var(--muted); font-size:14px}
details.howto li{margin-bottom:8px} details.howto li::marker{color:var(--volt); font-family:var(--f-mono)}
.detail-title{font-size:12px; font-family:var(--f-mono); letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; font-weight:500}
.live-note{display:flex; align-items:center; gap:9px; justify-content:center; font-size:12.5px; color:var(--muted); margin-top:18px}
.dot{width:8px; height:8px; border-radius:50%; background:var(--green); animation:pulse 1.4s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.25}}
.center{text-align:center}
.status-wrap h1{font-size:24px}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important; transition:none!important}
  html{scroll-behavior:auto}
}
