:root{
  --sun:#FF7A1A;--sun-deep:#EF5F06;--gold:#FFB23E;
  --cream:#FFF8F2;--cream-2:#FFEFE2;--paper:#fff;
  --ink:#2A2016;--ink-2:#6E5C4C;--muted:#9A8b7c;--line:#F2E6D8;
  --clay:#C8692B;--clay-deep:#A9531F;--leaf:#1E9E6A;--leaf-soft:#E6F6EE;--red:#E5544B;--blue:#3B6FD8;
  --fd:'Mitr',sans-serif;--fb:'Prompt',sans-serif;--fn:'Space Grotesk',sans-serif;
  --sh:0 12px 34px -22px rgba(120,70,20,.5);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;overflow-x:hidden}
body{font-family:var(--fb);color:var(--ink);background:var(--cream);line-height:1.55;-webkit-font-smoothing:antialiased;padding-bottom:24px}
::-webkit-scrollbar{display:none}
button{font-family:inherit;cursor:pointer}
a{text-decoration:none;color:inherit}

/* ---------- header ---------- */
header{position:sticky;top:0;z-index:40;background:rgba(255,248,242,.9);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.hd{display:flex;align-items:center;gap:10px;padding:11px 14px}
.htitle{font-family:var(--fd);font-weight:600;font-size:17px;flex:1}
.hav{width:34px;height:34px;border-radius:50%;flex:none;display:grid;place-items:center;font-family:var(--fd);font-weight:600;font-size:15px;color:#fff;background:linear-gradient(135deg,var(--sun),var(--sun-deep));box-shadow:0 6px 14px -8px var(--sun-deep)}

/* ---------- layout ---------- */
/* .page outer padding + card box + card gap now come from shared/css (--sp-* tokens) */
.blk{display:flex;flex-direction:column;margin-top:var(--sp-card,14px)}
.title .bar{width:4px;height:16px;border-radius:3px;background:linear-gradient(var(--sun),var(--sun-deep));flex:none}
.title .more{margin-left:auto;font-family:var(--fb);font-weight:500;font-size:12.5px;color:var(--clay);display:inline-flex;align-items:center;gap:3px}
.title .more svg{width:14px;height:14px;stroke:currentColor;stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
/* card box (bg/border/radius/shadow/padding) now comes from shared .card — no local override */

/* ---------- 1. greeting hero (full-bleed, outside .page) ---------- */
.hero{position:relative;overflow:hidden;padding:17px 18px;color:#fff;
  background:linear-gradient(135deg,var(--sun-deep) 0%,var(--sun) 42%,var(--gold) 108%);
  box-shadow:0 18px 40px -24px rgba(210,90,15,.9)}
.hero:before{content:"";position:absolute;right:-38px;top:-42px;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.34),rgba(255,255,255,0) 70%)}
.hero-row{position:relative;display:flex;align-items:center;gap:13px}
.hero-av{width:54px;height:54px;border-radius:16px;flex:none;display:grid;place-items:center;font-family:var(--fd);font-weight:600;font-size:24px;background:rgba(255,255,255,.22);border:1px solid rgba(255,255,255,.35);backdrop-filter:blur(2px)}
.hero-tx{flex:1;min-width:0}
.hero-hi{font-size:12.5px;opacity:.92;font-weight:300}
.hero-nm{font-family:var(--fd);font-weight:600;font-size:19px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-cd{display:inline-flex;align-items:center;gap:5px;margin-top:3px;font-family:var(--fn);font-size:12px;letter-spacing:.4px;opacity:.95}
.hero-cd svg{width:13px;height:13px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.hero-tier{position:absolute;top:10px;right:10px;display:inline-flex;align-items:center;gap:4px;font-family:var(--fd);font-weight:600;font-size:11.5px;color:var(--clay-deep);background:linear-gradient(120deg,#FFE9C2,#FFC97A);padding:5px 10px;border-radius:20px;box-shadow:0 6px 14px -8px rgba(120,70,20,.7)}
.hero-tier svg{width:13px;height:13px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* ---------- 2. balance row ---------- */
.bal-row{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.bal{padding:14px;border-radius:16px;background:var(--paper);border:1px solid var(--line);box-shadow:var(--sh);display:flex;flex-direction:column;gap:8px}
.bal-hd{display:flex;align-items:center;gap:8px}
.bal-ic{width:34px;height:34px;border-radius:11px;flex:none;display:grid;place-items:center}
.bal-ic svg{width:19px;height:19px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.bal.wallet .bal-ic{background:var(--cream-2);color:var(--sun-deep)}
.bal.ptc .bal-ic{background:#FFF3DC;color:#C58A16}
.bal-lbl{font-family:var(--fd);font-weight:500;font-size:12.5px;color:var(--ink-2);line-height:1.2}
.bal-lbl small{display:block;font-family:var(--fn);font-weight:400;font-size:9.5px;color:var(--muted);letter-spacing:.5px}
.bal-amt{font-family:var(--fn);font-weight:700;font-size:22px;letter-spacing:-.4px}
.bal.wallet .bal-amt{color:var(--sun-deep)}
.bal.ptc .bal-amt{color:#C58A16}
.bal-amt small{font-family:var(--fn);font-weight:600;font-size:11px;color:var(--muted);margin-left:3px}
.bal-go{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--muted);font-weight:500}
.bal-go svg{width:13px;height:13px;stroke:currentColor;stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* ---------- 3. level card ---------- */
/* card padding now comes from shared .card (--sp-card-pad) — no local override */
.level-top{display:flex;align-items:center;gap:9px;margin-bottom:11px}
.level-badge{width:36px;height:36px;border-radius:11px;flex:none;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--gold),#E79A18)}
.level-badge svg{width:20px;height:20px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.level-nm{flex:1;font-family:var(--fd);font-weight:600;font-size:15px}
.level-nm small{display:block;font-family:var(--fb);font-weight:400;font-size:11px;color:var(--muted)}
.level-pts{text-align:right;font-family:var(--fn);font-weight:700;font-size:15px;color:var(--clay)}
.level-pts small{font-family:var(--fn);font-weight:400;font-size:11px;color:var(--muted)}
.pbar{height:9px;border-radius:6px;background:var(--cream-2);overflow:hidden}
.pbar span{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,var(--gold),var(--sun-deep))}
.level-note{margin-top:9px;font-size:12px;color:var(--ink-2)}
.level-note b{font-family:var(--fn);font-weight:700;color:var(--clay)}

/* ---------- 4. quick actions ---------- */
.qgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:var(--sp-card,14px)}
.qbtn{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 4px 10px;background:var(--paper);border:1px solid var(--line);border-radius:15px;box-shadow:var(--sh);text-align:center}
.qic{width:42px;height:42px;border-radius:13px;display:grid;place-items:center}
.qic svg{width:22px;height:22px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.qbtn span{font-family:var(--fd);font-weight:500;font-size:11px;color:var(--ink);line-height:1.25}
.qbtn:nth-child(1) .qic{background:var(--cream-2);color:var(--sun-deep)}
.qbtn:nth-child(2) .qic{background:#FFEAF0;color:#D8477F}
.qbtn:nth-child(3) .qic{background:var(--leaf-soft);color:var(--leaf)}
.qbtn:nth-child(4) .qic{background:#E9F0FF;color:var(--blue)}

/* ---------- 5. order rows ---------- */
.orow{display:flex;align-items:center;gap:11px;padding:12px 14px;border-bottom:1px solid var(--line)}
.orow:last-child{border-bottom:none}
.orow-mn{flex:1;min-width:0}
.orow-id{font-family:var(--fn);font-weight:600;font-size:13px;color:var(--ink)}
.orow-sub{font-size:11.5px;color:var(--muted);margin-top:1px}
.orow-rt{text-align:right;flex:none}
.orow-tot{font-family:var(--fn);font-weight:700;font-size:14px;color:var(--ink)}
.chip{display:inline-block;margin-top:4px;font-family:var(--fd);font-weight:500;font-size:10.5px;padding:2px 9px;border-radius:20px}
.chip.blue{background:#E9F0FF;color:var(--blue)}
.chip.gold{background:#FFF3DC;color:#B9820F}
.chip.leaf{background:var(--leaf-soft);color:var(--leaf)}
.chip.red{background:#FDECEB;color:var(--red)}
.chip.mut{background:#F1ECE5;color:var(--muted)}
.arr{flex:none;color:var(--muted);display:grid;place-items:center}
.arr svg{width:16px;height:16px;stroke:currentColor;stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* ---------- 6. parcel cards ---------- */
/* card padding now comes from shared .card (--sp-card-pad); margin-bottom = inter-card gap
   (not reached by the shared main.page>*+.card rule since .parcel nests inside #parcels) */
.parcel{display:flex;gap:12px;align-items:flex-start;margin-bottom:var(--sp-card,14px)}
.parcel:last-child{margin-bottom:0}
.p-ic{width:40px;height:40px;border-radius:12px;flex:none;display:grid;place-items:center;background:#E9F0FF;color:var(--blue)}
.p-ic svg{width:22px;height:22px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.p-mn{flex:1;min-width:0}
.p-top{display:flex;align-items:center;gap:8px}
.p-carrier{font-family:var(--fd);font-weight:600;font-size:13px}
.p-track{font-family:var(--fn);font-size:11.5px;color:var(--ink-2);margin-top:2px;word-break:break-all}
.p-route{font-size:11.5px;color:var(--muted);margin-top:4px;display:flex;align-items:center;gap:5px}
.p-route svg{width:13px;height:13px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}
.p-eta{margin-top:5px;font-size:11.5px;color:var(--ink-2)}
.p-eta b{font-family:var(--fn);font-weight:600;color:var(--clay)}

/* ---------- 7. notifications ---------- */
.nrow{display:flex;gap:11px;padding:12px 14px;border-bottom:1px solid var(--line)}
.nrow:last-child{border-bottom:none}
.n-dot{width:34px;height:34px;border-radius:11px;flex:none;display:grid;place-items:center}
.n-dot svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.n-dot.pay{background:var(--leaf-soft);color:var(--leaf)}
.n-dot.parcel{background:#E9F0FF;color:var(--blue)}
.n-dot.bill{background:var(--cream-2);color:var(--sun-deep)}
.n-dot.promo{background:#FFF3DC;color:#C58A16}
.n-mn{flex:1;min-width:0}
.n-ttl{font-family:var(--fd);font-weight:500;font-size:13px;color:var(--ink);display:flex;align-items:center;gap:6px}
.n-new{width:7px;height:7px;border-radius:50%;background:var(--red);flex:none}
.n-body{font-size:11.5px;color:var(--muted);margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.empty{padding:18px 14px;text-align:center;font-size:12.5px;color:var(--muted)}
