/* ── Reset & Base ─────────────────────────────────────────────── */
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --navy:#0d1b6e;--navy2:#1a2a8a;--blue:#2563eb;--blue-lt:#eff6ff;
  --green:#16a34a;--green-lt:#f0fdf4;--green-bd:#bbf7d0;
  --amber:#d97706;--amber-lt:#fffbeb;--amber-bd:#fde68a;
  --red:#dc2626;--red-lt:#fef2f2;
  --gray0:#f8fafc;--gray1:#f1f5f9;--gray2:#e2e8f0;
  --gray3:#94a3b8;--gray4:#64748b;--gray5:#475569;--dark:#0f172a;
  --radius:14px;--radius-sm:8px;
  --shadow:0 1px 3px rgba(0,0,0,.08),0 4px 16px rgba(0,0,0,.05);
  --shadow-md:0 4px 12px rgba(0,0,0,.1),0 8px 32px rgba(0,0,0,.06);
}
html{scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;background:var(--gray0);color:var(--dark);font-size:15px;line-height:1.6;min-height:100vh;display:flex;flex-direction:column}

/* ── Header ──────────────────────────────────────────────────── */
.site-header{background:var(--navy);padding:0}
.header-inner{max-width:900px;margin:0 auto;padding:0 16px;height:56px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.header-logo{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0}
.header-logo img{height:34px;width:auto;flex-shrink:0;filter:brightness(0) invert(1)}
.header-logo-text{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.header-logo-title{font-size:.9rem;font-weight:700;color:#fff;letter-spacing:.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-logo-sub{font-size:.65rem;color:rgba(255,255,255,.6);letter-spacing:.4px;text-transform:uppercase;white-space:nowrap}
.header-badge{background:rgba(255,255,255,.12);color:rgba(255,255,255,.85);border:1px solid rgba(255,255,255,.15);padding:4px 11px;border-radius:999px;font-size:.68rem;font-weight:700;letter-spacing:.4px;text-transform:uppercase;white-space:nowrap;flex-shrink:0}

/* ── Main layout ──────────────────────────────────────────────── */
.page-wrap{flex:1;max-width:900px;margin:0 auto;width:100%;padding:28px 20px 48px}

/* ── Status Hero ──────────────────────────────────────────────── */
.status-hero{border-radius:var(--radius);padding:18px 22px 16px;margin-bottom:22px;position:relative;overflow:hidden}
.status-hero::before{content:'';position:absolute;right:-40px;top:-40px;width:200px;height:200px;border-radius:50%;opacity:.08;background:currentColor}
.status-hero.sh-delivered{background:linear-gradient(135deg,#15803d,#16a34a);color:#fff}
.status-hero.sh-progress{background:linear-gradient(135deg,#b45309,#d97706);color:#fff}
.status-hero.sh-pending{background:linear-gradient(135deg,#1d4ed8,#2563eb);color:#fff}
.sh-icon{font-size:1.6rem;margin-bottom:6px;display:block}
.sh-status{font-size:1.15rem;font-weight:800;letter-spacing:.2px;margin-bottom:3px}
.sh-sub{font-size:.88rem;opacity:.85;font-weight:400}
.sh-do{display:inline-block;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.25);border-radius:6px;padding:3px 10px;font-size:.78rem;font-weight:700;letter-spacing:.5px;margin-top:10px}

/* ── Step Tracker ────────────────────────────────────────────── */
.step-track{background:#fff;border-radius:var(--radius);border:1px solid var(--gray2);padding:20px 24px;margin-bottom:18px;box-shadow:var(--shadow)}
.steps{display:flex;align-items:flex-start;position:relative}
.steps::before{content:'';position:absolute;top:16px;left:16px;right:16px;height:2px;background:var(--gray2);z-index:0}
.step{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;position:relative;z-index:1}
.step-dot{width:32px;height:32px;border-radius:50%;border:2px solid var(--gray2);background:#fff;display:flex;align-items:center;justify-content:center;font-size:.85rem;transition:all .3s}
.step.done .step-dot{background:var(--green);border-color:var(--green);color:#fff}
.step.active .step-dot{background:var(--amber);border-color:var(--amber);color:#fff;box-shadow:0 0 0 4px var(--amber-lt)}
.step.done .step-line, .step.active .step-line{background:var(--green)}
.step-lbl{font-size:.68rem;font-weight:600;color:var(--gray3);text-align:center;text-transform:uppercase;letter-spacing:.4px;line-height:1.3;max-width:72px}
.step.done .step-lbl, .step.active .step-lbl{color:var(--gray5)}

/* ── Two column layout (desktop) ─────────────────────────────── */
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.grid-2 .card-full{grid-column:1/-1}

/* ── Info Card ──────────────────────────────────────────────── */
.icard{background:#fff;border:1px solid var(--gray2);border-radius:var(--radius);padding:20px 22px;box-shadow:var(--shadow);margin-bottom:16px}
.icard:last-child{margin-bottom:0}
.icard-title{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--gray3);margin-bottom:14px;display:flex;align-items:center;gap:6px}
.icard-title-icon{width:20px;height:20px;background:var(--navy);border-radius:5px;display:inline-flex;align-items:center;justify-content:center;font-size:.65rem;color:#fff}

/* ── Info rows ───────────────────────────────────────────────── */
.irow{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:9px 0;border-bottom:1px solid var(--gray1)}
.irow:last-child{border-bottom:none;padding-bottom:0}
.irow-lbl{font-size:.78rem;color:var(--gray4);flex-shrink:0;min-width:110px;font-weight:500}
.irow-val{font-size:.88rem;color:var(--dark);font-weight:600;text-align:right;word-break:break-word}
.irow-val.addr{text-align:right;font-weight:400;color:var(--gray5);font-size:.85rem;line-height:1.55}
.irow-val.mono{font-family:monospace;letter-spacing:.5px;font-size:.9rem}

/* ── Copy resi button ────────────────────────────────────────── */
.btn-copy{display:inline-flex;align-items:center;gap:4px;margin-left:8px;padding:2px 9px;background:var(--green-lt);color:var(--green);border:1px solid var(--green-bd);border-radius:5px;font-size:.72rem;font-weight:700;cursor:pointer;vertical-align:middle;white-space:nowrap}
.btn-copy:hover{background:var(--green);color:#fff}

/* ── Items list ─────────────────────────────────────────────── */
.items-list{list-style:none}
.item-row{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid var(--gray1)}
.item-row:last-child{border-bottom:none}
.item-bullet{width:6px;height:6px;border-radius:50%;background:var(--navy);flex-shrink:0;margin-right:10px;margin-top:6px}
.item-name{font-size:.88rem;color:var(--gray5);flex:1;display:flex;align-items:flex-start}
.item-qty{font-size:.8rem;color:var(--gray3);background:var(--gray1);padding:2px 8px;border-radius:999px;flex-shrink:0;margin-left:8px}

/* ── POD grid ───────────────────────────────────────────────── */
.pod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;margin-top:4px}
.pod-item{border-radius:10px;overflow:hidden;border:1px solid var(--gray2);background:var(--gray0);cursor:pointer;transition:box-shadow .15s}
.pod-item:hover{box-shadow:var(--shadow-md)}
.pod-item img{width:100%;aspect-ratio:1;object-fit:cover;display:block;pointer-events:none;user-select:none;-webkit-user-drag:none}
.pod-label{font-size:.7rem;color:var(--gray4);padding:5px 8px;text-align:center;background:#fff}

/* ── Error state ────────────────────────────────────────────── */
.error-wrap{display:flex;align-items:center;justify-content:center;flex:1;padding:40px 20px}
.error-card{background:#fff;border:1px solid var(--gray2);border-radius:var(--radius);padding:48px 32px;text-align:center;max-width:380px;width:100%;box-shadow:var(--shadow)}
.error-icon{font-size:3rem;margin-bottom:16px}
.error-title{font-size:1.05rem;font-weight:700;color:var(--dark);margin-bottom:8px}
.error-msg{color:var(--gray3);font-size:.88rem}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer{background:#fff;border-top:1px solid var(--gray2);padding:20px;text-align:center;font-size:.78rem;color:var(--gray3)}
.site-footer p{margin-bottom:3px}

/* ── Responsive ─────────────────────────────────────────────── */
@media(max-width:640px){
  .page-wrap{padding:16px 14px 40px}
  .grid-2{grid-template-columns:1fr}
  .irow{flex-direction:column;gap:3px}
  .irow-val{text-align:left}
  .irow-val.addr{text-align:left}
  .status-hero{padding:16px 18px 14px}
  .sh-status{font-size:1.05rem}
  .step-lbl{font-size:.62rem;max-width:60px}
  .header-badge{display:none}
}
@media(min-width:641px){
  .irow-lbl{min-width:130px}
}
