:root{
  --navy:#0B1F3F;--navy2:#16305C;--orange:#F97316;--orange-d:#C2410C;--orange-l:#FFF1E6;--peach:#FDBA74;
  --ink:#0F172A;--muted:#5B6474;--line:#E3E8EF;--cream:#FFF8F2;--gray:#ECEEF1;--soft:#F4F6FA;--ok:#166534;--ok-l:#DCFCE7;
}
*{box-sizing:border-box;min-width:0}
html,body{margin:0;height:100%}
body{font-family:'Plus Jakarta Sans',system-ui,sans-serif;color:var(--ink);background:var(--gray);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
button,input{font-family:inherit}
a{color:var(--navy)}
.app{max-width:480px;margin:0 auto;min-height:100vh;min-height:100dvh;position:relative}
.doodle-gray{background:var(--gray) url(doodle.svg) repeat;background-size:240px 240px}
.doodle-cream{background:var(--cream) url(doodle-orange.svg) repeat;background-size:240px 240px}
.hidden{display:none!important}
.ico{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* ---------- Login ---------- */
#login{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;justify-content:center;gap:20px;padding:32px 20px}
.brand{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.logo{width:80px;height:80px;border-radius:24px;background:var(--navy);color:var(--orange);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:40px;box-shadow:0 12px 30px rgba(11,31,63,.25)}
.brand h1{margin:0;font-size:26px;color:var(--navy)}
.brand p{margin:0;font-size:14px;color:var(--muted)}
.card{background:#fff;border-radius:24px;padding:24px 20px;box-shadow:0 16px 40px rgba(11,31,63,.12);display:flex;flex-direction:column;gap:14px}
.card h2{margin:0;font-size:20px}
.card .sub{margin:-8px 0 0;font-size:13px;color:var(--muted)}
label.lbl{font-size:12px;font-weight:700}
.phone{display:flex;align-items:center;gap:10px;height:56px;background:var(--soft);border:1.5px solid var(--line);border-radius:14px;padding:0 16px;margin-top:-6px}
.phone:focus-within{border-color:var(--navy)}
.phone b{font-size:16px}
.phone i{width:1px;height:24px;background:#D5DAE1}
.phone input{flex:1;border:0;outline:0;background:transparent;font-size:16px;font-weight:600;color:var(--ink)}
.btn{height:56px;border-radius:14px;border:0;background:var(--navy);color:#fff;font-size:16px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;width:100%;text-decoration:none}
.btn:disabled{opacity:.6}
.btn.orange{background:var(--orange);color:var(--navy)}
.btn.ghost{background:#fff;border:1.5px solid var(--navy);color:var(--navy);height:52px;font-size:15px}
.err{background:#FEE2E2;color:#991B1B;border-radius:12px;padding:10px 12px;font-size:13px;line-height:1.4}
.note{margin:0;font-size:12px;line-height:1.5;color:var(--muted);text-align:center}

/* ---------- Shell ---------- */
#main{padding-bottom:96px;min-height:100vh;min-height:100dvh}
.page{display:none}
.page.on{display:block}
nav.tab{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:8px 8px calc(12px + env(safe-area-inset-bottom));z-index:20}
nav.tab button{background:none;border:0;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;font-weight:600;color:var(--muted);min-height:48px;cursor:pointer}
nav.tab button.on{color:var(--orange-d);font-weight:800}
.top{padding:calc(20px + env(safe-area-inset-top)) 20px 16px;display:flex;align-items:center;gap:12px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}
.top h1{margin:0;font-size:18px}
.iconbtn{width:44px;height:44px;border-radius:22px;border:0;background:transparent;display:flex;align-items:center;justify-content:center;color:var(--ink);cursor:pointer}
.wrap{padding:16px 20px;display:flex;flex-direction:column;gap:14px}
.sec{display:flex;justify-content:space-between;align-items:center}
.sec h2{margin:0;font-size:16px;font-weight:800}
.link{background:none;border:0;font-size:13px;font-weight:700;color:var(--orange-d);cursor:pointer;padding:8px 0}
.box{background:#fff;border-radius:18px;border:1px solid var(--line);padding:16px}
.empty{text-align:center;color:var(--muted);font-size:14px;padding:22px 16px;line-height:1.5}

/* ---------- Beranda ---------- */
.hero{background:var(--navy);padding:calc(28px + env(safe-area-inset-top)) 20px 92px;color:#fff;display:flex;justify-content:space-between;align-items:center}
.hero small{display:block;font-size:13px;color:#C9D3E3}
.hero strong{font-size:20px;font-weight:800}
.hero .iconbtn{background:var(--navy2);color:#fff}
.mcard{margin:-76px 20px 0;background:#fff;border-radius:20px;box-shadow:0 10px 30px rgba(11,31,63,.14);padding:18px;cursor:pointer;position:relative}
.mcard .row{display:flex;justify-content:space-between;align-items:flex-start}
.tag{font-size:11px;font-weight:800;letter-spacing:1px;color:var(--orange-d)}
.mid{font-size:15px;font-weight:700;margin-top:4px}
.qrbtn{width:44px;height:44px;border-radius:12px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center}
.prog{display:flex;justify-content:space-between;align-items:baseline;margin-top:14px;font-size:13px;color:var(--muted)}
.prog b{font-size:22px;color:var(--ink)}
.prog span.r{font-size:12px;font-weight:700;color:var(--orange-d)}
.bar10{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;margin-top:10px}
.bar10 i{height:8px;border-radius:4px;background:var(--line)}
.bar10 i.on{background:var(--orange)}
.quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:18px 20px 4px}
.quick button{background:none;border:0;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--ink);cursor:pointer}
.quick span{width:52px;height:52px;border-radius:16px;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--navy)}
.svc{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px;cursor:pointer;text-align:left;width:100%}
.svc .h{display:flex;gap:12px;align-items:center}
.svc .ic{width:40px;height:40px;border-radius:12px;background:var(--orange-l);color:var(--orange-d);display:flex;align-items:center;justify-content:center;flex:none}
.svc .t{font-size:14px;font-weight:700}
.svc .s{font-size:12px;color:var(--muted)}
.steps5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.steps5 i{height:6px;border-radius:3px;background:var(--line)}
.steps5 i.on{background:var(--orange)}
.svc .f{display:flex;justify-content:space-between;gap:8px;font-size:12px}
.svc .f b{color:var(--navy)}
.svc.batal .steps5 i.on{background:#94A3B8}
.promos{display:flex;gap:12px;overflow-x:auto;padding:0 20px 4px;scroll-snap-type:x mandatory}
.promos::-webkit-scrollbar{display:none}
.pcard{flex:0 0 270px;min-height:120px;border-radius:16px;padding:16px;display:flex;flex-direction:column;justify-content:space-between;gap:10px;position:relative;overflow:hidden;scroll-snap-align:start;border:0;text-align:left;cursor:pointer}
.pcard::after{content:'';position:absolute;right:-30px;top:-30px;width:130px;height:130px;border-radius:65px;background:rgba(255,255,255,.16)}
.pcard .l{font-size:11px;font-weight:800;letter-spacing:1px}
.pcard .j{font-size:18px;font-weight:800;line-height:1.2;position:relative}
.pcard .d{font-size:12px;font-weight:600}
.p-orange{background:var(--orange);color:var(--navy)}
.p-navy{background:var(--navy2);color:#fff}
.p-navy .l{color:var(--peach)}

/* ---------- Servis ---------- */
.nota{background:var(--navy);color:#fff;border-radius:20px;padding:18px;display:flex;flex-direction:column;gap:14px}
.nota .k{font-size:12px;color:#C9D3E3}
.nota .u{font-size:18px;font-weight:800}
.chip{font-size:11px;font-weight:800;padding:6px 10px;border-radius:999px;white-space:nowrap}
.chip.o{background:var(--orange);color:var(--navy)}
.chip.g{background:var(--ok-l);color:var(--ok)}
.chip.s{background:#CBD5E1;color:var(--ink)}
.meta3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:11px}
.meta3 span{color:#C9D3E3;display:block}
.meta3 b{font-size:13px}
.tl{display:flex;flex-direction:column}
.tl .st{display:flex;gap:14px}
.tl .rail{display:flex;flex-direction:column;align-items:center;width:24px}
.tl .dot{width:24px;height:24px;border-radius:12px;border:2px solid #CBD3DF;background:#fff;display:flex;align-items:center;justify-content:center;color:#fff;flex:none}
.tl .dot.done{background:var(--navy);border:0}
.tl .dot.cur{border:6px solid var(--orange)}
.tl .ln{width:2px;flex:1;min-height:30px;background:var(--line)}
.tl .ln.done{background:var(--navy)}
.tl .tx{display:flex;flex-direction:column;gap:2px;padding-bottom:16px}
.tl .tx b{font-size:14px}
.tl .tx b.mut{color:var(--muted);font-weight:600}
.tl .tx span{font-size:12px;color:var(--muted)}
.picker{display:flex;gap:8px;overflow-x:auto}
.picker button{flex:none;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:13px;font-weight:700;cursor:pointer}
.picker button.on{background:var(--navy);border-color:var(--navy);color:#fff}

/* ---------- Member ---------- */
.big{background:var(--navy);color:#fff;border-radius:22px;padding:18px;display:flex;gap:16px;align-items:center;position:relative;overflow:hidden}
.big::before{content:'';position:absolute;left:-40px;bottom:-70px;width:160px;height:160px;border-radius:80px;background:var(--navy2)}
.big .info{position:relative;flex:1;display:flex;flex-direction:column;gap:5px}
.big .tag{color:var(--peach)}
.big .n{font-size:18px;font-weight:800}
.big .k{font-size:13px;color:#C9D3E3}
.qr{position:relative;width:120px;height:120px;background:#fff;border-radius:12px;padding:8px;flex:none}
.qr canvas,.qr img{width:104px!important;height:104px!important;display:block}
.stamps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.stamps i{aspect-ratio:1;border-radius:50%;border:2px dashed #CBD3DF;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:14px;font-weight:700;color:var(--muted)}
.stamps i.on{background:var(--navy);border:0;color:#fff}
.stamps i.gift{border-color:var(--orange-d);background:var(--orange-l);color:var(--orange-d)}
.stamps i.gift.on{background:var(--orange);color:var(--navy)}
.hint{background:var(--orange-l);border-radius:14px;padding:12px 14px;display:flex;gap:10px;align-items:center;font-size:13px;line-height:1.4}
.hint .ico{color:var(--orange-d)}
.voucher{border:1.5px dashed var(--navy);background:#fff;border-radius:16px;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.voucher b{font-size:14px;display:block}
.voucher span{font-size:12px;color:var(--muted)}

/* ---------- Riwayat ---------- */
.sum2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sum2 div{border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid var(--line)}
.sum2 div:first-child{background:var(--navy);color:#fff;border:0}
.sum2 span{font-size:12px;color:var(--muted)}
.sum2 div:first-child span{color:#C9D3E3}
.sum2 b{font-size:24px}
.list{background:#fff;border-radius:18px;border:1px solid var(--line)}
.it{display:flex;gap:12px;align-items:center;padding:14px 16px;border-bottom:1px solid #EEF1F5}
.it:last-child{border-bottom:0}
.it .ic{width:40px;height:40px;border-radius:12px;background:#E8EEF8;color:var(--navy);display:flex;align-items:center;justify-content:center;flex:none}
.it .m{flex:1;display:flex;flex-direction:column;gap:2px}
.it .m b{font-size:14px}
.it .m span{font-size:12px;color:var(--muted)}
.it .r{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}
.it .r b{font-size:13px;white-space:nowrap}
.mini{font-size:11px;font-weight:800;padding:2px 8px;border-radius:999px;white-space:nowrap}
.mini.st{color:var(--orange-d);background:var(--orange-l)}
.mini.x{color:var(--muted);background:var(--soft)}

/* ---------- Promo & cabang ---------- */
.pbig{border-radius:20px;overflow:hidden;background:#fff;border:1px solid var(--line)}
.pbig .hd{min-height:130px;padding:18px;display:flex;flex-direction:column;justify-content:space-between;gap:12px;position:relative;overflow:hidden}
.pbig .hd::after{content:'';position:absolute;right:-40px;top:-40px;width:160px;height:160px;border-radius:80px;background:rgba(255,255,255,.16)}
.pbig .hd .j{font-size:22px;line-height:1.15;font-weight:800;position:relative}
.pbig .bd{padding:14px 16px;font-size:14px;line-height:1.5;color:var(--muted)}
.pbig .bd small{display:block;margin-top:6px;font-size:12px}
.cab{display:flex;gap:12px;padding:14px 16px;border-bottom:1px solid #EEF1F5}
.cab:last-child{border-bottom:0}
.cab b{font-size:14px;display:block}
.cab span{font-size:12px;color:var(--muted);line-height:1.4}
.cab .ic{color:var(--orange-d);margin-top:2px}

/* ---------- Popup ---------- */
.ov{position:fixed;inset:0;background:rgba(8,20,42,.72);z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px}
.ov .pop{width:100%;max-width:360px;background:#fff;border-radius:24px;overflow:hidden}
.ov .pop .hd{min-height:220px;padding:24px;display:flex;flex-direction:column;justify-content:space-between;gap:12px;position:relative;overflow:hidden}
.ov .pop .hd::after{content:'';position:absolute;right:-60px;bottom:-60px;width:220px;height:220px;border-radius:110px;background:rgba(255,255,255,.16)}
.ov .pop .hd .l{align-self:flex-start;font-size:11px;font-weight:800;letter-spacing:1px;color:#fff;background:var(--navy);padding:6px 10px;border-radius:999px;position:relative}
.ov .pop .hd .j{font-size:28px;line-height:1.1;font-weight:800;position:relative}
.ov .pop .bd{padding:18px 20px;display:flex;flex-direction:column;gap:12px}
.ov .pop .bd p{margin:0;font-size:14px;line-height:1.5;color:var(--muted)}
.ov .chk{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted);min-height:44px}
.ov .chk input{width:18px;height:18px;accent-color:var(--navy)}
.ov .x{width:48px;height:48px;border-radius:24px;background:#fff;border:0;display:flex;align-items:center;justify-content:center;cursor:pointer}
.spin{width:28px;height:28px;border:3px solid var(--line);border-top-color:var(--orange);border-radius:50%;animation:sp 0.8s linear infinite;margin:40px auto}
@keyframes sp{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation-duration:2s}}
