/* AVORA — tông Shopee: cam #ee4d2d chủ đạo, nền sáng, xu vàng = tiền hoàn */
:root{
  --bg:#f5f5f5; --bg2:#fafafa; --card:#ffffff; --card2:#fff2ee;
  --line:#f0f0f0; --text:#222222; --muted:#8a8a8a; --gold:#ffb800;
  --accent:#ee4d2d; --accent2:#ff7337; --green:#00a67c; --red:#d0011b;
  --radius:16px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0;width:100%;max-width:100%;overflow-x:hidden}
html{background:#f5f5f5}
/* iOS Safari: 'clip' chặn kéo ngang triệt để hơn 'hidden'; pan-y chỉ cho vuốt dọc */
body{overflow-x:clip;touch-action:pan-y}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  background:var(--bg);color:var(--text);
  min-height:100vh;padding-bottom:78px;position:relative;
}
.wrap{max-width:520px;margin:0 auto;padding:16px;width:100%}
img,svg{max-width:100%}
h1,h2,h3{margin:0}
button{font-family:inherit;cursor:pointer;border:none}
input{font-family:inherit}
a{color:var(--accent)}

/* Header */
.brand{display:flex;align-items:center;gap:9px;padding:8px 4px 14px}
.brand .dot{width:12px;height:12px;border-radius:50%;background:linear-gradient(135deg,#ffce3d,#ffb800);box-shadow:0 0 0 3px #fff3d6}
.brand b{font-size:20px;letter-spacing:1px;color:var(--accent)}
.brand small{color:var(--muted);margin-left:auto;font-size:12px;max-width:150px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Cards */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:16px;margin-bottom:14px;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.hero{background:linear-gradient(135deg,#ff7337,#ee4d2d 55%,#d73211);border:none;color:#fff;
  box-shadow:0 6px 20px rgba(238,77,45,.28)}
.hero .label{font-size:12px;opacity:.9;letter-spacing:.5px;font-weight:700}
.hero .big{font-size:32px;font-weight:800;margin-top:2px;line-height:1.2}
.hero .row{display:flex;gap:8px;margin-top:12px}
.hero .sub2{font-size:14px;opacity:.95;margin-top:8px;line-height:1.5}
.pill{background:rgba(255,255,255,.18);border-radius:12px;padding:8px 10px;flex:1;text-align:center}
.pill .v{font-weight:800;font-size:16px}
.pill .k{font-size:11px;opacity:.92}

.title{font-size:13px;color:var(--muted);font-weight:700;letter-spacing:.4px;margin-bottom:8px;text-transform:uppercase}
label{display:block;font-size:13px;color:#555;margin:10px 0 5px;font-weight:600}
/* 16px BẮT BUỘC: nhỏ hơn là iOS tự zoom khi chạm vào ô nhập */
.inp{width:100%;background:var(--bg2);border:1.5px solid #e8e8e8;border-radius:12px;
  padding:13px 14px;color:var(--text);font-size:16px;outline:none}
.inp:focus{border-color:var(--accent);background:#fff}
.btn{width:100%;background:linear-gradient(90deg,#ff7337,var(--accent));color:#fff;
  font-weight:700;font-size:16px;padding:14px;border-radius:12px;margin-top:12px;
  box-shadow:0 4px 12px rgba(238,77,45,.25)}
.btn:active{opacity:.88}
.btn.ghost{background:#fff;border:1.5px solid #e5e5e5;color:#444;box-shadow:none}
.btn.gold{background:linear-gradient(90deg,#ffce3d,#ffb800);color:#5c3a00;box-shadow:0 4px 12px rgba(255,184,0,.3)}
.btn.sm{width:auto;padding:9px 14px;font-size:14px;margin:0}

.result{background:#fff8f0;border:1.5px dashed var(--accent);border-radius:12px;padding:12px;margin-top:12px;word-break:break-all}
.result .lnk{font-size:13px;color:var(--accent);font-weight:600}
.msg{font-size:13px;color:var(--muted);margin-top:8px;line-height:1.5}
.err{color:var(--red);font-size:13px;margin-top:8px}
.ok{color:var(--green);font-size:13px;margin-top:8px}

/* Deals */
.deal{display:flex;gap:11px;align-items:center;padding:11px 0;border-top:1px solid var(--line)}
.deal:first-child{border-top:none}
.deal img{width:52px;height:52px;border-radius:10px;object-fit:cover;background:#f5f5f5;border:1px solid var(--line)}
.deal .t{font-size:14px;font-weight:600;line-height:1.3;color:var(--text)}
.deal .b{font-size:12.5px;color:var(--accent);font-weight:800;margin-top:2px}
.badge{background:linear-gradient(90deg,#ffce3d,#ffb800);color:#5c3a00;font-size:10px;font-weight:800;padding:2px 7px;border-radius:8px;margin-left:6px}

/* list */
.hitem{display:flex;justify-content:space-between;padding:9px 0;border-top:1px solid var(--line);font-size:14px}
.hitem:first-child{border-top:none}
.hitem .amt{font-weight:700}
.hitem .amt.plus{color:var(--green)} .hitem .amt.minus{color:var(--red)}
.muted{color:var(--muted)}.small{font-size:12px}.center{text-align:center}
.mt{margin-top:14px}

/* Tab bar */
.tabbar{position:fixed;bottom:0;left:0;right:0;background:#ffffff;border-top:1px solid #ececec;
  display:flex;max-width:520px;margin:0 auto;z-index:10;box-shadow:0 -2px 10px rgba(0,0,0,.05)}
.tab{flex:1;padding:10px 0 12px;text-align:center;color:#9a9a9a;font-size:11px;background:none;font-weight:600}
.tab.active{color:var(--accent)}
.tab .ic{font-size:20px;display:block;margin-bottom:2px}

.hidden{display:none!important}
.copy{color:var(--accent);font-size:13px;font-weight:700;background:none;padding:4px}
.steps{counter-reset:s;padding:0;margin:6px 0 0;list-style:none}
.steps li{counter-increment:s;position:relative;padding:8px 0 8px 34px;font-size:14px;line-height:1.5;border-top:1px solid var(--line)}
.steps li:first-child{border-top:none}
.steps li::before{content:counter(s);position:absolute;left:0;top:8px;width:24px;height:24px;
  background:linear-gradient(135deg,#ff7337,var(--accent));border-radius:50%;text-align:center;line-height:24px;font-size:13px;font-weight:700;color:#fff}

/* Hình minh hoạ hero */
.illus{display:block;width:100%;max-width:270px;margin:14px auto 0}

/* Hàng tin cậy */
.trust{display:flex;gap:8px;margin:-4px 0 14px}
.trust .t{flex:1;background:#fff;border:1px solid var(--line);border-radius:14px;
  padding:11px 6px;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.trust .t .ic{font-size:20px;display:block}
.trust .t .l{font-size:11px;color:#666;margin-top:3px;font-weight:700;line-height:1.3}

/* 3 bước hoạt động */
.how{display:flex;flex-direction:column;gap:12px;margin-top:4px}
.how .step{display:flex;gap:12px;align-items:flex-start}
.how .num{flex:none;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;
  font-size:20px;background:linear-gradient(135deg,#fff1e8,#ffe3d6);border:1px solid #ffd7c4}
.how .step .h{font-weight:800;font-size:15px;color:var(--text)}
.how .step .d{font-size:13px;color:var(--muted);line-height:1.45;margin-top:2px}

/* Hộp vì sao hoàn nhiều */
.why{background:linear-gradient(135deg,#fff4ee,#fff9f0);border:1px solid #ffd7c4}
.why .q{font-size:15px;font-weight:800;color:var(--accent)}
.why .a{font-size:13.5px;color:#444;line-height:1.55;margin-top:6px}

/* Empty state có hình */
.empty{text-align:center;padding:8px 0}
.empty svg{width:120px;height:auto;margin:0 auto 8px;display:block}
