/* Royal Rewards — Royal blue #00A7E0 / gold #F2E33C. Mobile-first; gold is an accent (bars, chips), never text on white. */
:root { --blue:#00A7E0; --blue-dark:#0079a3; --gold:#F2E33C; --ink:#0f172a; --soft:#475569; --line:#e2e8f0; --bg:#f4f8fb; --card:#fff; --bad:#b42318; --ok:#067647; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; padding-bottom:calc(72px + env(safe-area-inset-bottom)); }
[hidden] { display:none !important; }
.top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:calc(8px + env(safe-area-inset-top)) 16px 8px; background:#fff; border-bottom:4px solid var(--gold); position:sticky; top:0; z-index:5; }
.top-logo { height:44px; width:auto; }
main { max-width:560px; margin:0 auto; padding:16px; }
.center { text-align:center; }
.muted { color:var(--soft); }
h1 { font-size:1.35rem; margin:4px 0 12px; }
h2 { font-size:1.05rem; margin:0 0 8px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; margin:0 0 12px; }
.hero { background:var(--blue); color:#fff; border:0; }
.hero .muted { color:#e6f6fd; }
.big { font-size:2.4rem; font-weight:800; line-height:1.1; }
.row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.stats { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:12px; }
a { color:var(--blue-dark); font-weight:600; }
.stat { background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px; }
.stat b { display:block; font-size:1.5rem; }
.bar { height:12px; border-radius:99px; background:rgba(255,255,255,.35); overflow:hidden; margin-top:10px; }
.bar > i { display:block; height:100%; background:var(--gold); border-radius:99px; }
label { display:block; font-weight:600; margin:12px 0 4px; }
input { width:100%; font:inherit; padding:12px; border:1px solid #b8c4d0; border-radius:10px; min-height:44px; background:#fff; color:var(--ink); }
input:focus-visible, button:focus-visible, a:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
.btn { display:block; width:100%; min-height:48px; margin-top:16px; border:0; border-radius:12px; background:var(--blue-dark); color:#fff; font:inherit; font-weight:700; cursor:pointer; }
.btn[disabled] { opacity:.6; cursor:default; }
.link-btn { background:none; border:0; color:var(--blue-dark); font:inherit; font-weight:600; text-decoration:underline; cursor:pointer; min-height:44px; padding:0 4px; }
.msg { padding:10px 12px; border-radius:10px; margin:12px 0 0; font-size:.95rem; }
.msg.err { background:#fef3f2; color:var(--bad); border:1px solid #fecdca; }
.msg.ok { background:#ecfdf3; color:var(--ok); border:1px solid #abefc6; }
.list { list-style:none; margin:0; padding:0; }
.list li { padding:12px 0; border-top:1px solid var(--line); }
.list li:first-child { border-top:0; }
.chip { display:inline-block; padding:2px 10px; border-radius:99px; background:var(--gold); color:#3b3300; font-size:.8rem; font-weight:700; }
.chip.done { background:#d1fadf; color:#054f31; }
.chip.out { background:#e2e8f0; color:#334155; }
.steps { display:flex; gap:4px; margin-top:8px; }
.steps i { flex:1; height:6px; border-radius:99px; background:var(--line); }
.steps i.on { background:var(--blue); }
.tabs { position:fixed; left:0; right:0; bottom:0; display:flex; background:#fff; border-top:1px solid var(--line); padding-bottom:env(safe-area-inset-bottom); z-index:5; }
.tabs a { flex:1; text-align:center; padding:12px 4px; min-height:56px; color:var(--soft); text-decoration:none; font-weight:600; font-size:.9rem; border-top:3px solid transparent; }
.tabs a.on { color:var(--blue-dark); border-top-color:var(--blue); }
.login { padding-top:24px; }
.login .logo { display:block; width:min(280px,80%); margin:0 auto 12px; }
