:root{
  --mt-red:#ff2d19;
  --mt-red-deep:#ff002b;
  --mt-orange:#ff7a19;
  --mt-text:#222426;
  --mt-sub:#858687;
  --mt-line:#f0e3e0;
  --ok:#2e7d32;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;}
html,body{height:100%;}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--mt-text);
  background:
    radial-gradient(60% 30% at 12% 0%, rgba(255,231,77,.35), rgba(255,231,77,0) 60%),
    radial-gradient(50% 28% at 92% 8%, rgba(255,255,255,.30), rgba(255,255,255,0) 60%),
    linear-gradient(180deg,#ff5a3c 0%,#ff2d19 42%,#ff7a19 100%);
  display:flex;justify-content:center;align-items:flex-start;
  min-height:100vh;padding:0 0 14px;overflow-x:hidden;
}
.page{position:relative;width:100%;max-width:430px;min-width:300px;container-type:inline-size;padding:0 3.2cqw;}

.hero{text-align:center;padding:8cqw 0 5cqw;color:#fff;}
.hero-badge{
  display:inline-block;padding:1.2cqw 3.4cqw;border-radius:999px;
  background:rgba(255,255,255,.22);border:1px solid rgba(255,255,255,.45);
  font-size:2.9cqw;font-weight:600;margin-bottom:3cqw;backdrop-filter:blur(4px);
}
.hero h1{font-size:9cqw;font-weight:900;letter-spacing:.4cqw;line-height:1.18;text-shadow:0 3px 12px rgba(140,20,0,.35);}
.hero h1 em{font-style:normal;color:#ffe94d;}
.hero-tags{display:flex;justify-content:center;gap:1.8cqw;margin-top:3.4cqw;flex-wrap:wrap;}
.hero-tag{padding:1.2cqw 2.6cqw;border-radius:999px;background:rgba(255,255,255,.9);color:#d3320a;font-size:2.9cqw;font-weight:700;}

.step-head{cursor:pointer;display:flex;align-items:flex-start;gap:2.6cqw;}
.step-card.collapsed .step-panel{display:none;}
.step-toggle{flex:0 0 auto;width:5cqw;height:5cqw;display:flex;align-items:center;justify-content:center;color:#c9c5c1;font-size:3.2cqw;transition:transform .25s;}
.step-card.collapsed .step-toggle{transform:rotate(-90deg);}
.step-card{background:#fff;border-radius:3.6cqw;padding:4cqw;margin-bottom:2.8cqw;box-shadow:0 6px 18px rgba(122,49,0,.14);border:1px solid #ffe9e4;transition:opacity .3s;}
.step-head-text{flex:1;min-width:0;}
.step-title{font-size:4.2cqw;font-weight:800;line-height:1.35;color:#1f2124;}
.step-sub{font-size:3.1cqw;color:var(--mt-sub);margin-top:.8cqw;line-height:1.5;}
.step-check{flex:0 0 auto;font-size:4.4cqw;color:#43a047;display:none;font-weight:800;}
.step-card.done .step-check{display:block !important;}
.step-why{margin-top:3cqw;padding:2.6cqw 3cqw;border-radius:2.4cqw;background:linear-gradient(180deg,#fff8e6,#fff2d9);border:1px dashed #ffd98a;font-size:3.1cqw;line-height:1.65;color:#7a4b00;}
.step-why b{color:#d3320a;}
.step-body{margin-top:3.2cqw;}

.status-badge{display:none;align-items:center;justify-content:center;gap:1.4cqw;width:fit-content;margin:0 auto 2.8cqw;padding:0.9cqw 3.3cqw;border-radius:999px;font-size:3cqw;font-weight:600;}
.status-badge.idle{background:#fff0f2;color:#ff2d19;}
.status-badge.loading{background:linear-gradient(135deg,#fff8e8,#ffe9c4);color:#b06000;border:1px solid #ffd98a;box-shadow:0 2px 10px rgba(255,170,0,.22);}
.status-badge.loading::before{content:'';flex:0 0 auto;width:2.8cqw;height:2.8cqw;border-radius:50%;border:.5cqw solid rgba(176,96,0,.2);border-top-color:#ff8a00;animation:mt-spin .8s linear infinite;}
.status-badge.success{background:#e6f7e6;color:#2e7d32;}
.status-badge.error{background:#fce8e6;color:#c62828;}

@keyframes mt-spin{to{transform:rotate(360deg);}}
@keyframes mt-breath{0%,100%{box-shadow:0 8px 20px rgba(255,0,43,.35);}50%{box-shadow:0 8px 28px rgba(255,0,43,.62);}}
@keyframes mt-shine{0%{left:-70%;}100%{left:130%;}}
@keyframes mt-float{0%,100%{transform:translateY(0) scale(1);}50%{transform:translateY(-1.2cqw) scale(1.05);}}
@keyframes mt-dot{0%,80%,100%{opacity:.22;transform:translateY(0);}40%{opacity:1;transform:translateY(-1cqw);}}
@keyframes pulseRing{0%{box-shadow:0 0 0 0 rgba(255,215,64,.85);}70%{box-shadow:0 0 0 2.4cqw rgba(255,215,64,0);}100%{box-shadow:0 0 0 0 rgba(255,215,64,0);}}
.step-card.highlight{animation:pulseRing 1.4s ease-out 2;}

.btn-primary{width:100%;border:none;cursor:pointer;padding:3.6cqw 0;border-radius:999px;font-weight:800;font-size:4.4cqw;letter-spacing:0.2cqw;color:#fff;background:linear-gradient(115deg,#ff002b 3%,#ff2e96);box-shadow:0 8px 20px rgba(255,0,43,.35);transition:transform .15s, filter .15s;}
.btn-primary:active{transform:scale(.985);filter:brightness(1.03);}
.btn-primary:disabled{opacity:1;cursor:not-allowed;background:linear-gradient(115deg,#b3001f 3%,#b81f63);}
.btn-primary.claimed-locked{background:linear-gradient(115deg,#b9b9b9 3%,#9e9e9e);box-shadow:0 6px 16px rgba(0,0,0,.18);}
.btn-primary.is-loading{display:flex;align-items:center;justify-content:center;gap:1.8cqw;background:linear-gradient(115deg,#ff7a19 3%,#ff2e96);animation:mt-breath 1.6s ease-in-out infinite;}
.btn-spinner{flex:0 0 auto;width:4cqw;height:4cqw;border-radius:50%;border:.65cqw solid rgba(255,255,255,.35);border-top-color:#fff;animation:mt-spin .75s linear infinite;}

.qr-loading{padding:2cqw 1cqw 1cqw;text-align:center;}
.qr-skeleton{position:relative;width:44cqw;height:44cqw;margin:1.4cqw auto 3cqw;border-radius:2.6cqw;overflow:hidden;background:linear-gradient(135deg,#fff2ec,#ffe4db);border:1px dashed #ffc4b6;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 2px 10px rgba(255,45,25,.07);}
.sk-shine{position:absolute;top:0;left:-70%;width:42%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.9),transparent);animation:mt-shine 1.5s ease-in-out infinite;}
.qr-loading-title{font-size:3.4cqw;font-weight:700;color:#3c2a24;}
.qr-loading-sub{font-size:2.9cqw;color:#9a8b86;margin-top:1.2cqw;line-height:1.6;}
.qr-loading-dots{display:flex;align-items:center;justify-content:center;gap:1.4cqw;margin-top:2.6cqw;}
.qr-loading-dots i{width:1.5cqw;height:1.5cqw;border-radius:50%;background:var(--mt-red);animation:mt-dot 1.2s ease-in-out infinite;}
.qr-loading-dots i:nth-child(2){animation-delay:.15s;}
.qr-loading-dots i:nth-child(3){animation-delay:.3s;}
.result-loading{display:flex;align-items:center;justify-content:center;gap:2cqw;padding:4.4cqw 0;color:#9a8b86;font-size:3.2cqw;font-weight:600;}
.rl-spinner{flex:0 0 auto;width:4cqw;height:4cqw;border-radius:50%;border:.6cqw solid #ffe0d8;border-top-color:var(--mt-red);animation:mt-spin .8s linear infinite;}

#qrContent{display:none;background:#fff;border-radius:3.3cqw;padding:4.2cqw 3cqw;margin-top:3cqw;border:1px solid var(--mt-line);box-shadow:0 4px 14px rgba(122,49,0,.08);text-align:center;}
#qrContent.has-content{display:block;}
#qrContent .qr-img{width:46cqw;max-width:200px;height:auto;border-radius:2.6cqw;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.10);margin:1.6cqw auto 3cqw;display:block;}
#qrContent .placeholder{color:#9aa0a6;font-size:3.3cqw;line-height:1.7;padding:4.2cqw 1.4cqw;text-align:center;}
#qrContent .link-btn{display:inline-flex;align-items:center;justify-content:center;gap:1.6cqw;padding:2.9cqw 7cqw;border:none;border-radius:999px;cursor:pointer;background:linear-gradient(115deg,#ff7a18,#ff2d19);color:#fff;font-weight:700;font-size:3.6cqw;box-shadow:0 6px 16px rgba(255,45,25,.35);margin:0 auto;}
#qrContent .hint{color:#858687;font-size:3cqw;margin-top:3cqw;line-height:1.6;text-align:center;}
#qrContent .expiry{color:#bbb;font-size:2.8cqw;margin-top:1.4cqw;text-align:center;}

.result-box{margin-top:3.4cqw;display:flex;flex-direction:column;gap:2cqw;}
.result-head{font-weight:700;font-size:3.2cqw;color:#222426;line-height:1.5;}
.result-note{font-size:2.6cqw;color:#858687;line-height:1.6;}
.result-empty{color:#9aa0a6;text-align:center;padding:3cqw 0;font-size:3.2cqw;}
.coupon-item{position:relative;display:flex;align-items:center;gap:1cqw;background:#fff;border-radius:2.4cqw;padding:2.4cqw;margin-bottom:1.8cqw;box-shadow:0 3px 10px rgba(122,49,0,.07);border:1px solid #f3e9e6;}
.coupon-item-left{flex:0 0 20cqw;display:flex;flex-direction:column;align-items:center;justify-content:center;}
.coupon-amt{color:var(--mt-red);font-weight:800;font-size:3.4cqw;line-height:1.2;text-align:center;word-break:break-word;}
.coupon-divider{width:0;align-self:stretch;margin:0 1.2cqw;border-left:1px dashed #e6c9c2;}
.coupon-item-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:.8cqw;}
.coupon-name{font-size:3cqw;font-weight:600;color:#222426;line-height:1.35;word-break:break-word;}
.coupon-time{font-size:2.4cqw;color:#858687;line-height:1.4;}
.coupon-status{flex:0 0 auto;min-width:11cqw;height:6cqw;border-radius:999px;font-size:2.6cqw;font-weight:600;display:flex;align-items:center;justify-content:center;background:#ffd9d3;color:var(--mt-red);}
.pager{display:flex;align-items:center;justify-content:center;gap:2.6cqw;margin-top:2cqw;padding-top:2cqw;border-top:1px dashed #eee;font-size:2.8cqw;color:#666;}
.pager button{border:1px solid #ddd;background:#fff;color:#333;padding:1.4cqw 3.4cqw;border-radius:1.4cqw;font-size:2.8cqw;cursor:pointer;}
.pager button:disabled{opacity:.45;cursor:not-allowed;}

.foot-note{margin-top:4cqw;text-align:center;color:rgba(255,255,255,.85);font-size:2.7cqw;line-height:1.7;}
#reauthBar{display:none;margin-top:3.2cqw;text-align:center;}
#reauthBar.is-show{display:block;}
#reauthBtn{cursor:pointer;padding:2.2cqw 5cqw;border:1px solid #e3e0dc;border-radius:999px;background:#fff;color:#8a8580;font-size:3.2cqw;font-weight:600;}
#reauthHint{margin-top:1.6cqw;color:#b0aaa4;font-size:2.8cqw;line-height:1.6;}
