/* ============================================================
   Courier Parcel Tracking — Design System (Steps 4 + 10)
   ============================================================ */
:root {
  --bg: #ffffff;
  --surface: #f4f7fb;
  --surface2: #e9eff7;
  --ink: #0d1b2e;
  --muted: #5c6b80;
  --brand: #1a56db;
  --brand-dark: #1244ac;
  --brand-deep: #0b2a6b;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --success: #16a34a;
  --warn: #d97706;
  --border: #e2e8f2;
  --track-line: #1a56db;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(13, 27, 46, 0.06);
  --shadow: 0 10px 30px rgba(13, 27, 46, 0.10);
  --shadow-lg: 0 20px 50px rgba(13, 27, 46, 0.16);
  --maxw: 1180px;
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .h { font-family: var(--font-head); font-weight: 800; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--ink); }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--brand); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: 13px 24px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(26, 86, 219, .28); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(249, 115, 22, .28); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-white { background: #fff; color: var(--brand); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }

/* ---------------- Top strip + nav ---------------- */
.topstrip {
  background: var(--brand-deep); color: #dbe4f7; font-size: .8rem;
  text-align: center; padding: 7px 12px; letter-spacing: .02em;
}
.topstrip strong { color: #fff; }

.nav {
  position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; color: var(--ink); }
.brand .logo {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff;
  box-shadow: 0 6px 16px rgba(26,86,219,.38);
}
.brand .logo .lucide { width: 24px; height: 24px; }
.logo-mark { width: 30px; height: 30px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; }
.brand-abbr { font-family: var(--font-head); font-weight: 800; font-size: 1.28rem; letter-spacing: .04em; color: inherit; }
.brand-full { font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--muted); margin-top: 2px; }
.footer .brand-full { color: #9fb0c9; }
/* Uploaded logo (static/img/logo.png) — replaces the fallback lockup when present */
.brand-logo-img { height: 46px; width: auto; max-width: 280px; object-fit: contain; display: block; }
.brand-logo-img ~ .brand-fallback { display: none; }
/* On the dark footer, sit the logo on a white chip so navy artwork stays readable */
.footer .brand-logo-img { height: 38px; background: #fff; padding: 9px 14px; border-radius: 12px; }
.footer-disclaimer { color: #8595ad; font-size: .78rem; line-height: 1.5; border-top: 1px solid #24334b; margin: 30px 0 0; padding-top: 18px; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: 12px; }
.nav-links a {
  position: relative; color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 8px; font-size: .95rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-track { display: flex; gap: 6px; }
.nav-track input {
  width: 160px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: .88rem;
}
.nav-user { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 20px 18px; border-bottom: 1px solid var(--border); background: #fff; }
.mobile-menu a { padding: 10px 8px; border-radius: 8px; color: var(--ink); font-weight: 600; }
.mobile-menu a:hover { background: var(--surface); }
.mobile-menu.open { display: flex; }

/* ---------------- Status badges ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head);
  font-weight: 700; font-size: .82rem; padding: 6px 13px; border-radius: 999px;
  background: var(--surface2); color: var(--muted); border: 1px solid var(--border);
  white-space: nowrap;
}
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.badge.pending  { color: #64748b; background: #eef2f7; border-color: #e2e8f2; }
.badge.transit  { color: #1a56db; background: #e8f0fe; border-color: #cfe0fb; }
.badge.outfor   { color: #ea580c; background: #fff1e6; border-color: #ffd9bf; }
.badge.delivered{ color: #16a34a; background: #e7f7ec; border-color: #c5eccf; }
.badge.delayed  { color: #d97706; background: #fdf3e3; border-color: #f6e0b8; }
.badge.customs  { color: #d97706; background: #fdf3e3; border-color: #f6e0b8; }
.badge .dot.pulse { animation: pulse-dot 1.4s infinite; }

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(26,86,219,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(26,86,219,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,86,219,0); }
}

/* ---------------- Cards / surfaces ---------------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px;
}
.card-hover { transition: transform .2s ease, box-shadow .2s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------- Forms ---------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--ink); }
.input, input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=datetime-local], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .95rem; font-family: var(--font-body); color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s;
}
.input:focus, input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
.form-error { color: #dc2626; font-size: .9rem; margin: 8px 0; min-height: 1em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(11,42,107,.95) 0%, rgba(18,68,172,.88) 45%, rgba(249,115,22,.55) 120%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(115deg, #0b2a6b, #1a56db);
  background-size: cover, 40px 40px, cover;
}
.hero-inner { padding: 84px 0 92px; position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 24px rgba(9,20,50,.45); }
.hero .lead { color: #eaf1fb; max-width: 560px; text-shadow: 0 1px 12px rgba(9,20,50,.4); }
.live-tag {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; margin-bottom: 18px; backdrop-filter: blur(4px);
}
.live-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse-dot-orange 1.4s infinite; }
@keyframes pulse-dot-orange {
  0%   { box-shadow: 0 0 0 0 rgba(249,115,22,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(249,115,22,0); }
  100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}

.track-box {
  background: #fff; border-radius: var(--radius); padding: 10px; display: flex; gap: 8px;
  box-shadow: var(--shadow-lg); max-width: 560px; margin-top: 24px;
}
.track-box input {
  flex: 1; border: none; font-size: 1.05rem; padding: 14px 16px; border-radius: var(--radius-sm);
}
.track-box input:focus { outline: none; box-shadow: none; }
.track-box.center-box { margin-left: auto; margin-right: auto; }

.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat { }
.hero-stats .num { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: #fff; }
.hero-stats .label { color: #cdd9f0; font-size: .88rem; }

/* ---------------- Trust strip ---------------- */
.trust-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust-strip .container { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; padding: 20px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.trust-item .ico { color: var(--brand); font-size: 1.2rem; }

/* ---------------- How it works / services ---------------- */
.step-num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--surface2); color: var(--brand);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 14px;
}
.service-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(135deg, #e8f0fe, #dbe7fb); margin-bottom: 14px;
}

/* ---------------- Count-up band ---------------- */
.stat-band { background: var(--brand-deep); color: #fff; }
.stat-band .num { font-family: var(--font-head); font-weight: 800; font-size: 2.8rem; color: #fff; }
.stat-band .num .accent { color: var(--accent); }
.stat-band .label { color: #b9c8e8; font-weight: 600; }

/* ---------------- Timeline ---------------- */
.timeline { position: relative; padding-left: 6px; }
.tl-item { position: relative; padding: 0 0 26px 34px; }
.tl-item::before {
  content: ""; position: absolute; left: 9px; top: 22px; bottom: -4px; width: 2px; background: var(--border);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--border); z-index: 2;
}
.tl-item.done .tl-dot { border-color: var(--success); background: var(--success); }
.tl-item.current .tl-dot { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px rgba(26,86,219,.15); }
.tl-item.done .tl-dot::after {
  content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800;
}
.tl-item.future { opacity: .55; }
.tl-status { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.tl-loc { color: var(--muted); font-size: .9rem; }
.tl-time { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.tl-notes { font-size: .88rem; color: var(--ink); margin-top: 5px; background: var(--surface); padding: 6px 10px; border-radius: 8px; display: inline-block; }

/* ---------------- Map ---------------- */
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
#map, .mini-map { width: 100%; height: 480px; min-height: 360px; background: var(--surface2); }
.mini-map { height: 260px; border-radius: var(--radius-sm); }
.parcel-marker {
  background: var(--accent); width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(249,115,22,.35), 0 2px 8px rgba(0,0,0,.3);
  animation: parcel-pulse 1.6s infinite;
}
@keyframes parcel-pulse {
  0% { box-shadow: 0 0 0 4px rgba(249,115,22,.4), 0 2px 8px rgba(0,0,0,.3); }
  70% { box-shadow: 0 0 0 12px rgba(249,115,22,0), 0 2px 8px rgba(0,0,0,.3); }
  100% { box-shadow: 0 0 0 4px rgba(249,115,22,0), 0 2px 8px rgba(0,0,0,.3); }
}
.cp-marker { background: var(--brand); width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.3); }

/* --- Courier rider marker --- */
.rider-wrap { position: relative; width: 48px; height: 48px; }
.rider-ping {
  position: absolute; inset: 6px; border-radius: 50%;
  background: rgba(26, 86, 219, .30); z-index: 1;
  animation: rider-ping 1.9s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes rider-ping {
  0%   { transform: scale(.55); opacity: .75; }
  80%  { transform: scale(1.9);  opacity: 0; }
  100% { transform: scale(1.9);  opacity: 0; }
}
.rider-badge {
  position: absolute; inset: 7px; border-radius: 50%; z-index: 2;
  background: #fff; border: 2.5px solid var(--brand);
  box-shadow: 0 6px 16px rgba(13,27,46,.35); display: grid; place-items: center;
}
.rider-body { width: 30px; height: 24px; display: block; transition: transform .3s ease; }
.rider-body.flip { transform: scaleX(-1); }

/* --- Location pin (current location, no active journey) --- */
.loc-pin {
  position: relative; width: 30px; height: 40px;
  filter: drop-shadow(0 4px 5px rgba(13,27,46,.35));
}
.loc-pin::before {
  content: ""; position: absolute; left: 3px; top: 0; width: 24px; height: 24px;
  background: var(--accent); border: 3px solid #fff; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); transform-origin: center;
}
.loc-pin span {
  position: absolute; left: 11px; top: 8px; width: 8px; height: 8px;
  background: #fff; border-radius: 50%; z-index: 2;
}

/* --- Route start / finish --- */
.route-end.start {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--success); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.route-end.finish {
  width: 26px; height: 26px; font-size: 15px; line-height: 1;
  display: grid; place-items: center;
  background: #fff; border-radius: 50%;
  border: 2px solid var(--brand); box-shadow: 0 3px 8px rgba(0,0,0,.3);
}

/* ---------------- Track result header ---------------- */
.track-header { background: linear-gradient(120deg, var(--brand-deep), var(--brand)); color: #fff; }
.track-header .container { padding: 40px 20px; }
.track-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: .02em; }
.summary-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.summary-row .k { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.summary-row .v { font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: start; }

/* ---------------- Footer ---------------- */
.footer { background: var(--ink); color: #b9c6db; padding: 56px 0 26px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer a { color: #b9c6db; }
.footer a:hover { color: #fff; }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 34px; }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer .brand .logo { }
.footer-track { display: flex; gap: 6px; margin-top: 10px; }
.footer-track input { flex: 1; padding: 10px 12px; border-radius: 8px; border: 1px solid #2a3b53; background: #16233a; color: #fff; }
.footer-bottom { border-top: 1px solid #24334b; margin-top: 34px; padding-top: 18px; font-size: .84rem; color: #7f90a8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------------- Toast ---------------- */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 12px; box-shadow: var(--shadow);
  font-size: .92rem; font-weight: 600; display: flex; align-items: center; gap: 10px;
  transform: translateY(10px); opacity: 0; transition: .28s ease; max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast .ico { color: var(--accent); }
.toast.success .ico { color: #4ade80; }

/* ---------------- Notfound ---------------- */
.notfound { text-align: center; padding: 90px 20px; }
.notfound .big { font-size: 4rem; }

/* ---------------- Animations (Step 10) ---------------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .6s ease, transform .6s ease; will-change: transform, opacity; }
.reveal.left  { transform: translateX(-40px); }
.reveal.right { transform: translateX(40px); }
.reveal.scale { transform: scale(.92); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .5s ease, transform .5s ease; }
.stagger.in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ---------------- Utilities ---------------- */
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap { gap: 12px; }
.gap-lg { gap: 24px; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 32px; }
.mb { margin-bottom: 16px; }
.tag-pill { display:inline-block; background: var(--surface2); color: var(--brand); padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.copy-btn { cursor: pointer; }
.hide { display: none !important; }

/* ================================================================
   Premium components (Giant-Tunnel-inspired)
   ================================================================ */

/* --- Lucide icons --- */
.lucide { width: 20px; height: 20px; stroke-width: 2; vertical-align: middle; flex: none; }
.btn .lucide { width: 18px; height: 18px; }
.service-ico .lucide, .why-ico .lucide, .trust-item .ico .lucide { width: 26px; height: 26px; }

/* --- Section header --- */
.sec-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.sec-head h2 { margin-bottom: 10px; }

/* --- Rotating hero --- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--brand-deep); min-height: 620px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide-bg {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; overflow: hidden;
  background-size: cover; background-position: center;
}
.hero-slide-bg.active { opacity: 1; }
.hero-slide-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
}
/* Ken Burns slow zoom on the visible slide */
.hero-slide-bg.active img { animation: kenburns 22s ease-out both; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.16); } }

/* Semi-transparent navy overlay — photo stays clearly visible (dark left → light right for text) */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(11,42,107,.80) 0%, rgba(13,48,120,.55) 46%, rgba(11,42,107,.35) 100%);
}
.hero .hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-copy { min-height: 210px; }
.hero-slide { display: none; }
.hero-slide.active { display: block; animation: heroFade .8s ease both; }
@keyframes heroFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lane-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28); padding: 7px 15px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; margin-bottom: 18px; backdrop-filter: blur(4px);
}
.lane-badge .lucide { width: 16px; height: 16px; color: var(--accent); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-dots { display: flex; gap: 9px; margin-top: 30px; }
.hero-dots button {
  width: 34px; height: 5px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,.35); padding: 0; transition: background .25s;
}
.hero-dots button.active { background: var(--accent); }

/* --- Media / image blocks --- */
.media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.media-badge {
  position: absolute; left: 18px; bottom: 18px; background: #fff; color: var(--ink);
  border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.media-badge .lucide { color: var(--brand); width: 30px; height: 30px; }
.media-badge .n { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.media-badge .l { font-size: .8rem; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev .media { order: 2; }

/* --- How it works (01-04) --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-card .idx { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--surface2); line-height: 1; margin-bottom: 6px; }
.step-card .s-ico { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg,#e8f0fe,#dbe7fb); color: var(--brand); display: grid; place-items: center; margin: 4px 0 14px; }
.step-card .s-ico .lucide { width: 24px; height: 24px; }

/* --- Service cards --- */
.svc-card { display: flex; flex-direction: column; gap: 6px; }
.svc-card .learn { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); }
.svc-card .learn .lucide { width: 16px; height: 16px; transition: transform .2s; }
.svc-card:hover .learn .lucide { transform: translateX(4px); }

/* --- Why choose us --- */
.why-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; }

/* --- Testimonials --- */
.tcard { display: flex; flex-direction: column; gap: 14px; }
.stars { display: flex; gap: 2px; color: #f5a623; }
.stars .lucide { width: 18px; height: 18px; fill: currentColor; }
.tquote { font-size: 1.02rem; color: var(--ink); }
.tperson { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.tperson .nm { font-weight: 700; font-size: .95rem; }
.tperson .rl { color: var(--muted); font-size: .82rem; }

/* --- Newsletter --- */
.newsletter { background: linear-gradient(120deg, var(--brand-deep), var(--brand)); color: #fff; border-radius: 22px; padding: 48px; text-align: center; overflow: hidden; position: relative; }
.newsletter h2 { color: #fff; }
.newsletter p { color: #d8e3f7; }
.newsletter form { display: flex; gap: 10px; max-width: 480px; margin: 22px auto 0; }
.newsletter input { flex: 1; border: none; }

/* --- Footer social --- */
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: #16233a; display: grid; place-items: center; color: #b9c6db; transition: background .2s, color .2s; }
.socials a:hover { background: var(--brand); color: #fff; }
.socials .lucide { width: 18px; height: 18px; }
.footer .contact-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer .contact-row .lucide { width: 17px; height: 17px; color: var(--brand); }

/* ================================================================
   Auth pages (login / register)
   ================================================================ */
.auth-wrap { padding: 48px 20px; display: flex; justify-content: center; }
.auth-split {
  display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 940px;
  background: #fff; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.auth-aside {
  position: relative; color: #fff; padding: 44px 40px; display: flex; flex-direction: column;
  background:
    linear-gradient(150deg, rgba(11,42,107,.86), rgba(18,68,172,.7) 60%, rgba(249,115,22,.45)),
    url("/static/img/hero-truck.jpg");
  background-size: cover; background-position: center;
}
.auth-aside .brand { color: #fff; margin-bottom: auto; }
.auth-aside h2 { color: #fff; margin-top: 26px; }
.auth-aside .pt { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: #e6edfb; font-weight: 600; }
.auth-aside .pt .lucide { width: 20px; height: 20px; color: var(--accent); flex: none; }
.auth-form { padding: 44px 40px; }
.auth-form h2 { margin-bottom: 4px; }

.input-icon { position: relative; }
.input-icon > .lucide { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.input-icon input { padding-left: 42px; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); padding: 6px; display: grid; place-items: center; }
.pw-toggle .lucide { width: 18px; height: 18px; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--muted); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

@media (max-width: 760px) {
  .auth-split { grid-template-columns: 1fr; max-width: 440px; }
  .auth-aside { display: none; }
  .auth-form { padding: 34px 26px; }
}

/* ================================================================
   Detailed shipment view (Royal-style)
   ================================================================ */
.status-banner {
  border-radius: 12px; padding: 14px 20px; text-align: center; font-family: var(--font-head);
  font-weight: 800; letter-spacing: .04em; color: #fff; margin-bottom: 22px; text-transform: uppercase; font-size: .95rem;
}
.status-banner.pending  { background: #64748b; }
.status-banner.transit  { background: var(--brand); }
.status-banner.outfor   { background: var(--accent); }
.status-banner.delivered{ background: var(--success); }
.status-banner.delayed  { background: var(--warn); }

.detail-block { padding: 26px; }
.detail-title {
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin: 0 0 18px;
  padding-bottom: 12px; border-bottom: 2px solid var(--border); position: relative;
}
.detail-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--brand); }

.party .p-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; color: var(--ink); }
.party .p-line .lucide { color: var(--brand); width: 17px; height: 17px; margin-top: 3px; flex: none; }
.party .p-name { font-weight: 700; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 26px; }
.info-grid .item .k { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 3px; }
.info-grid .item .v { font-weight: 600; color: var(--ink); }

.table-scroll { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.dtable { width: 100%; border-collapse: collapse; min-width: 640px; }
.dtable th { background: var(--brand); color: #fff; text-align: left; padding: 12px 14px; font-family: var(--font-head); font-weight: 700; font-size: .82rem; }
.dtable td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.dtable tbody tr:nth-child(even) { background: var(--surface); }
.dtable .rmk { color: var(--muted); }
.totals { display: flex; gap: 30px; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; font-weight: 700; }
.totals .muted-label { color: var(--muted); font-weight: 600; }

.barcode-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; }
.barcode-wrap svg { max-width: 100%; height: auto; }
.barcode-num { font-family: var(--font-head); font-weight: 700; letter-spacing: .12em; }

/* --- Track layout: wide area, unboxed panels, large map --- */
.track-container { max-width: 1460px; }
.track-cols { display: grid; grid-template-columns: 340px 1fr; gap: 26px; align-items: start; }
.timeline-panel { padding: 6px 2px 2px; }
.track-map { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.track-map #map { height: 660px; min-height: 660px; }
@media (max-width: 1000px) {
  .track-cols { grid-template-columns: 1fr; gap: 18px; }
  .track-map #map { height: 440px; min-height: 440px; }
}

/* Print */
@media print {
  .topstrip, .nav, .footer, .toast-wrap, #map, .map-wrap, .hero-cta,
  .no-print, .leaflet-container { display: none !important; }
  body { background: #fff; }
  .track-header { background: #fff !important; color: #000 !important; }
  .track-header .track-num, .track-header .k, .track-header .v { color: #000 !important; }
  .card { box-shadow: none !important; border: 1px solid #ccc; break-inside: avoid; }
  .two-col { grid-template-columns: 1fr !important; }
  .status-banner { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dtable th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .nav-links, .nav-track { display: none; }
  .hamburger { display: block; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .summary-row { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.rev .media { order: 0; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .summary-row { grid-template-columns: 1fr 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 60px 0; }
  .hero { min-height: 560px; }
  .hero-stats { gap: 22px; }
  .newsletter { padding: 32px 20px; }
  .newsletter form { flex-direction: column; }
  #map { height: 380px; }
}
