:root{
  --navy:#0B2545; --blue:#0B4EA2; --blue2:#1168D8; --sky:#E8F2FE; --sky2:#F4F8FE;
  --line:#E2E8F0; --text:#0F172A; --muted:#64748B; --green:#16A34A; --green-soft:#E7F8EC;
  --red:#DC2626; --amber:#F59E0B; --radius:16px;
  --shadow:0 8px 24px rgba(11,37,69,.08);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  font-family:'Inter','Segoe UI',system-ui,-apple-system,Roboto,Arial,sans-serif;
  color:var(--text); background:#DCEBFA; min-height:100vh;
}
body::before{content:"";position:fixed;inset:0;background:
  radial-gradient(900px 500px at 12% 0%, #BFDBFE 0%, transparent 60%),
  radial-gradient(800px 500px at 90% 10%, #CFE7FF 0%, transparent 55%),
  linear-gradient(180deg,#EAF4FF 0%,#D7E9FB 100%);z-index:-2}
.phone{position:relative;width:100%;max-width:470px;margin:0 auto;min-height:100vh;background:#fff;box-shadow:0 0 0 1px rgba(11,37,69,.06),0 30px 80px rgba(11,37,69,.18);display:flex;flex-direction:column;overflow:hidden}
@media(min-width:900px){ body{padding:26px 0} .phone{min-height:calc(100vh - 52px);border-radius:30px} }
.topbar{display:flex;align-items:center;gap:10px;padding:14px 18px;background:#fff;border-bottom:1px solid #EEF2F7;position:sticky;top:0;z-index:20}
.topbar img{height:30px;display:block}
.topbar .grow{flex:1}
.icon-btn{width:36px;height:36px;border-radius:11px;border:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--navy)}
.icon-btn:hover{background:var(--sky2)}
.badge-dot{width:8px;height:8px;border-radius:50%;background:var(--green);display:inline-block}
.screen{padding:0 18px 110px;flex:1;animation:fade .22s ease}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
h1.page-title{font-size:21px;line-height:1.25;margin:18px 0 4px;color:var(--navy);letter-spacing:-.3px}
.page-sub{color:var(--muted);font-size:13px;margin:0 0 16px}
.hero{margin:16px -18px 0;padding:26px 22px 22px;background:
  linear-gradient(180deg,rgba(9,44,86,.82),rgba(9,44,86,.55)),
  radial-gradient(280px 180px at 85% 20%,#3B82F6 0%,transparent 70%),
  linear-gradient(120deg,#0B4EA2,#0E63C9 55%,#2C8BE8);
  color:#fff;position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;right:-60px;bottom:-90px;width:240px;height:240px;border:36px solid rgba(255,255,255,.07);border-radius:50%}
.hero h2{font-size:23px;margin:0 0 8px;line-height:1.3;letter-spacing:-.3px}
.hero p{margin:0;color:#D7E9FF;font-size:13px;line-height:1.55;max-width:300px}
.pills{display:flex;gap:10px;margin:18px 0 4px;position:relative;z-index:2}
.pill{flex:1;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);border-radius:14px;padding:10px 6px;text-align:center;font-size:10.5px;color:#EAF3FF;backdrop-filter:blur(4px)}
.pill svg{display:block;margin:0 auto 6px;color:#fff}
.actions{padding:18px 18px 0;display:flex;flex-direction:column;gap:10px}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:15px 16px;font-size:15px;font-weight:700;cursor:pointer;text-decoration:none;font-family:inherit;transition:.16s}
.btn-primary{background:linear-gradient(135deg,#0B4EA2,#1370DA);color:#fff;box-shadow:0 8px 20px rgba(11,78,162,.25)}
.btn-primary:hover{filter:brightness(1.06)}
.btn-outline{background:#fff;color:var(--navy);border:1.5px solid #C9DCF2}
.btn-outline:hover{background:var(--sky)}
.btn-soft{background:var(--sky);color:var(--blue)}
.btn-green{background:linear-gradient(135deg,#16A34A,#22B455);color:#fff}
.btn-red{background:#FEE2E2;color:#B91C1C}
.btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.btn-block{width:100%}
.card{background:#fff;border:1px solid #E9EEF5;border-radius:var(--radius);padding:16px;box-shadow:0 2px 10px rgba(11,37,69,.04)}
.card + .card{margin-top:12px}
.muted{color:var(--muted)}
.small{font-size:12.5px}
.tiny{font-size:11.5px}
.row{display:flex;align-items:center;gap:10px}
.between{justify-content:space-between}
.field{margin-bottom:14px}
.field label{display:block;font-size:12.5px;font-weight:700;color:#334155;margin-bottom:7px}
.input{width:100%;padding:14px 14px;border-radius:11px;border:1.5px solid #D9E3EE;font-size:14.5px;font-family:inherit;background:#FBFDFF;color:var(--text);transition:.15s}
.input:focus{outline:none;border-color:var(--blue2);background:#fff;box-shadow:0 0 0 4px rgba(17,104,216,.1)}
.input::placeholder{color:#94A3B8}
.hint{display:flex;gap:8px;padding:12px 13px;border-radius:11px;background:#FFF7E6;border:1px solid #FDE7B0;color:#8A5A00;font-size:12px;line-height:1.5}
.hint svg{flex:0 0 auto;margin-top:1px;color:#D97706}
.link{color:var(--blue2);font-weight:700;text-decoration:none;cursor:pointer}
.link:hover{text-decoration:underline}
.footer-links{display:flex;justify-content:center;gap:14px;padding:22px 0 10px;font-size:11.5px;color:#7C8CA1}
.footer-links a{color:#7C8CA1;text-decoration:none}
.footer-links a:hover{color:var(--blue)}
.divider{height:1px;background:#EEF2F7;margin:16px 0}
.pkghead{display:flex;align-items:center;justify-content:space-between;margin:16px 2px 12px}
.pkghead h3{font-size:14px;margin:0;color:var(--navy)}
.pkg{display:flex;align-items:center;gap:12px;padding:15px 14px;border:1.5px solid #E4EBF4;border-radius:14px;margin-bottom:10px;cursor:pointer;background:#fff;transition:.15s}
.pkg:hover{border-color:#B7D2F2;background:#FAFCFF}
.pkg.sel{border-color:var(--blue2);background:linear-gradient(180deg,#F3F9FF,#EAF4FF);box-shadow:0 4px 14px rgba(17,104,216,.1)}
.pkg .radio{width:20px;height:20px;border-radius:50%;border:2px solid #C3D2E4;flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.pkg.sel .radio{border-color:var(--blue2)}
.pkg.sel .radio:after{content:"";width:10px;height:10px;border-radius:50%;background:var(--blue2)}
.pkg .meta{flex:1;min-width:0}
.pkg .nm{font-size:14px;font-weight:700;color:var(--navy);display:flex;align-items:center;gap:6px}
.pkg .dt{font-size:12px;color:var(--muted);margin-top:3px}
.pkg .pr{font-size:14.5px;font-weight:800;color:#D92D20;white-space:nowrap}
.tag{font-size:9.5px;font-weight:800;letter-spacing:.4px;background:#FEF3C7;color:#B45309;border-radius:20px;padding:2px 7px;text-transform:uppercase}
.sticky-bar{position:fixed;left:0;right:0;bottom:0;max-width:470px;margin:0 auto;padding:12px 18px calc(12px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-top:1px solid #EDF2F8;z-index:30;display:flex;gap:12px;align-items:center}
.sticky-bar .info{flex:1;min-width:0}
.sticky-bar .info b{display:block;font-size:15px;color:var(--navy)}
.sticky-bar .info span{font-size:11.5px;color:var(--muted)}
.sticky-bar .btn{flex:0 0 auto;padding:13px 26px}
.tabs{display:flex;background:#EFF4FA;border-radius:12px;padding:4px;gap:4px;margin:14px 0 16px}
.tabs button{flex:1;border:0;background:transparent;padding:9px 6px;border-radius:9px;font-size:12px;font-weight:700;color:#5A7089;cursor:pointer;font-family:inherit}
.tabs button.on{background:#fff;color:var(--blue);box-shadow:0 2px 8px rgba(11,37,69,.1)}
.order-box{text-align:center;border:1px dashed #C9DCF2;border-radius:14px;padding:18px;background:#FAFCFF}
.qr-wrap{background:#fff;padding:10px;border-radius:14px;display:inline-block;border:1px solid #E6EEF7}
.qr-wrap img{width:190px;height:190px;display:block}
.timer{font-variant-numeric:tabular-nums;font-weight:800;color:#D92D20}
.kv{display:flex;justify-content:space-between;gap:12px;padding:9px 0;font-size:12.5px;border-bottom:1px dashed #EDF2F8}
.kv:last-child{border-bottom:0}
.kv span{color:var(--muted)}
.kv b{color:var(--navy);text-align:right;font-weight:700}
.paid-ic{width:64px;height:64px;border-radius:50%;background:var(--green-soft);color:var(--green);display:flex;align-items:center;justify-content:center;margin:0 auto 14px}
.voucher-code{font-size:26px;font-weight:800;letter-spacing:2px;color:var(--navy);text-align:center;margin:6px 0 2px;font-family:'SF Mono',Consolas,monospace}
.copy-btn{border:1px solid #D9E3EE;background:#fff;border-radius:9px;padding:7px 10px;font-size:11.5px;font-weight:700;color:var(--blue);cursor:pointer;display:inline-flex;align-items:center;gap:5px;font-family:inherit}
.wifi-anim{width:120px;height:120px;margin:8px auto 4px;position:relative;display:flex;align-items:center;justify-content:center}
.wifi-anim .ring{position:absolute;inset:0;border-radius:50%;border:2px solid rgba(22,163,74,.18);animation:pulse 2.2s infinite}
.wifi-anim .ring:nth-child(2){animation-delay:.7s}
.wifi-anim .ring:nth-child(3){animation-delay:1.4s}
@keyframes pulse{0%{transform:scale(.55);opacity:.9}100%{transform:scale(1.15);opacity:0}}
.wifi-anim .core{width:64px;height:64px;border-radius:50%;background:var(--green-soft);color:var(--green);display:flex;align-items:center;justify-content:center;position:relative;z-index:2}
.progress{height:8px;border-radius:20px;background:#EDF2F8;overflow:hidden}
.progress > i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#16A34A,#34D399);transition:width .4s}
.steps{counter-reset:step}
.step{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid #F0F4F9}
.step:last-child{border-bottom:0}
.step .no{width:26px;height:26px;flex:0 0 auto;border-radius:50%;background:var(--sky);color:var(--blue);font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center}
.step b{display:block;font-size:13px;margin-bottom:3px;color:var(--navy)}
.step p{margin:0;font-size:12px;color:var(--muted);line-height:1.55}
.empty{text-align:center;padding:34px 16px;color:var(--muted);font-size:13px}
.empty svg{display:block;margin:0 auto 10px;color:#B7C7DA}
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:#0B2545;color:#fff;padding:11px 18px;border-radius:11px;font-size:12.5px;opacity:0;pointer-events:none;transition:.25s;z-index:99;max-width:90%;text-align:center}
.toast.show{opacity:1;transform:translate(-50%,0)}
.tx-item{display:flex;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #F0F4F9}
.tx-item:last-child{border-bottom:0}
.tx-ic{width:38px;height:38px;border-radius:11px;background:var(--sky);color:var(--blue);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.tx-item .t{flex:1;min-width:0}
.tx-item .t b{display:block;font-size:13px;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tx-item .t span{font-size:11px;color:var(--muted)}
.tx-item .a{text-align:right;font-size:12.5px;font-weight:800;color:var(--navy)}
.chip{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:3px 9px;font-size:10.5px;font-weight:700}
.chip.ok{background:var(--green-soft);color:#15803D}
.chip.wait{background:#FFF7E6;color:#B45309}
.chip.off{background:#FEE2E2;color:#B91C1C}
.sheet{position:fixed;inset:0;background:rgba(11,37,69,.45);display:none;align-items:flex-end;z-index:60;justify-content:center}
.sheet.show{display:flex}
.sheet .inner{background:#fff;border-radius:20px 20px 0 0;padding:20px 18px calc(20px + env(safe-area-inset-bottom));width:100%;max-width:470px;animation:up .25s ease}
@keyframes up{from{transform:translateY(30px);opacity:.6}to{transform:none;opacity:1}}
.brand-lock{display:flex;align-items:center;gap:9px}
.brand-lock img{height:34px}
.loading{display:flex;align-items:center;justify-content:center;padding:50px 0;color:var(--muted);font-size:13px;gap:9px}
.spin{width:16px;height:16px;border:2px solid #CBD5E1;border-top-color:var(--blue2);border-radius:50%;animation:sp .7s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
