/* ================================================================
   CourierTrack — mature, FedEx-inspired theme
   Palette: deep indigo, slate, warm amber accent, soft neutrals
   ================================================================ */

:root {
  --ink: #1e2440;          /* deep indigo */
  --ink-2: #29355e;
  --ink-3: #3a477a;
  --accent: #e8960c;       /* warm amber */
  --accent-soft: #fdf1dc;
  --amber-deep: #c47c08;
  --slate: #33405c;
  --slate-soft: #5b6885;
  --muted: #8b93a7;
  --line: #e4e8f0;
  --bg: #f6f7fb;
  --bg-alt: #eef1f8;
  --card: #ffffff;
  --success: #1f9d63;
  --success-bg: #e6f6ee;
  --danger: #d0454b;
  --danger-bg: #fbeaea;
  --info: #3b6fd4;
  --info-bg: #e8effc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 44px -22px rgba(30, 36, 64, .28);
  --shadow-lg: 0 30px 70px -30px rgba(30, 36, 64, .4);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Sora', var(--font);
}

/* ------------------------------- Reset ------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body.home { background: #fbfcfe; }

main { flex: 1; }

img, svg { display: block; max-width: 100%; }

a { color: var(--ink-3); text-decoration: none; }
a:hover { color: var(--accent); }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
}

.container { width: min(1120px, 92%); margin-inline: auto; }
.narrow { max-width: 860px; }

/* --------------------------- Background decor ------------------------ */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
  will-change: transform;
}
.blob-a { width: 520px; height: 520px; top: -160px; right: -140px; background: radial-gradient(circle, rgba(58, 71, 122, .5), transparent 65%); animation: float 16s ease-in-out infinite; }
.blob-b { width: 460px; height: 460px; top: 34%; left: -180px; background: radial-gradient(circle, rgba(232, 150, 12, .32), transparent 65%); animation: float 20s ease-in-out infinite reverse; }
.blob-c { width: 380px; height: 380px; bottom: -120px; right: 12%; background: radial-gradient(circle, rgba(58, 71, 122, .34), transparent 65%); animation: float 24s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-30px) translateX(24px) scale(1.05); }
}

/* ------------------------------- Header ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(251, 252, 254, .78);
  border-bottom: 1px solid rgba(228, 232, 240, .8);
}
.admin-header { background: rgba(246, 247, 251, .85); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--ink), var(--ink-3));
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px -10px rgba(30, 36, 64, .6);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-name span { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--slate-soft);
  transition: background .2s, color .2s;
}
.site-nav a:hover { color: var(--ink); background: rgba(58, 71, 122, .07); }
.site-nav a.active { color: var(--ink); background: rgba(58, 71, 122, .1); }
.site-nav a.nav-cta {
  margin-left: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--ink-3));
  box-shadow: 0 12px 24px -12px rgba(30, 36, 64, .55);
}
.site-nav a.nav-cta:hover { color: #fff; filter: brightness(1.1); }

.admin-tag {
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--accent-soft);
  color: var(--amber-deep);
  border: 1px solid rgba(232, 150, 12, .35);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 4px;
  vertical-align: middle;
  text-transform: uppercase;
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ------------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  line-height: 1.2;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--ink-3));
  box-shadow: 0 14px 28px -14px rgba(30, 36, 64, .6);
}
.btn-primary:hover { color: #fff; box-shadow: 0 20px 34px -16px rgba(30, 36, 64, .7); }

.btn-ghost { color: var(--ink); background: rgba(58, 71, 122, .08); }
.btn-ghost:hover { background: rgba(58, 71, 122, .14); }

.btn-outline { color: var(--ink); background: var(--card); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink-3); color: var(--ink-3); }

.btn-light { color: var(--ink); background: #fff; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .35); }
.btn-light:hover { color: var(--ink); transform: translateY(-2px); }

.btn-danger { color: #fff; background: linear-gradient(135deg, #d0454b, #b2353a); }
.btn-danger:hover { color: #fff; }

.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-xs { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ------------------------------- Hero -------------------------------- */
.hero { position: relative; padding: 84px 0 40px; }
.hero-compact { padding: 64px 0 24px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
}
.hero-content.center { text-align: center; max-width: 720px; margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--amber-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(232, 150, 12, .3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 10px;
  background: rgba(232, 150, 12, .22);
  border-radius: 6px;
  z-index: -1;
}

.lead { font-size: 17.5px; color: var(--slate-soft); max-width: 560px; }
.hero-content.center .lead { margin-inline: auto; }

.hero-cta { display: flex; gap: 14px; margin: 30px 0 26px; flex-wrap: wrap; }

.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--slate); }
.trust-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 800;
}

/* Hero visual / floating cards */
.hero-visual { position: relative; min-height: 420px; }

.float-card {
  background: var(--card);
  border: 1px solid rgba(228, 232, 240, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ship-card {
  position: absolute;
  top: 10px; right: 6%;
  width: 340px;
  padding: 24px;
  transform: rotate(-2deg);
  animation: hover 6s ease-in-out infinite;
  z-index: 2;
}
@keyframes hover {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-12px); }
}
.ship-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.ship-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--amber-deep); }
.ship-badge { font-family: ui-monospace, 'Cascadia Mono', monospace; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--bg-alt); padding: 5px 10px; border-radius: 8px; }

.ship-route { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.rp { display: flex; align-items: center; gap: 8px; flex: 1; }
.rp b { font-size: 13px; color: var(--ink); display: block; line-height: 1.2; }
.rp small { font-size: 11px; color: var(--muted); }
.rl { position: relative; height: 2px; background: var(--line); flex: 1.4; border-radius: 2px; overflow: hidden; }
.rf { position: absolute; inset: 0; width: var(--progress); background: linear-gradient(90deg, var(--accent), var(--amber-deep)); border-radius: 2px; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); border: 2px solid var(--card); box-shadow: 0 0 0 2px var(--line); }
.dot.done { background: var(--success); box-shadow: 0 0 0 2px var(--success-bg); }

.ship-bar { height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.ship-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ink-3), var(--ink)); }
.ship-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-weight: 600; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate);
  z-index: 3;
}
.float-chip svg { width: 17px; height: 17px; color: var(--success); }
.float-chip b { color: var(--success); font-weight: 700; }
.chip-delivered { bottom: 84px; left: 2%; animation: hover 7s ease-in-out infinite 1s; }
.chip-live { top: 6px; left: 8%; animation: hover 8s ease-in-out infinite 2s; }
.chip-live svg { display: none; }
.pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.pulse::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ping 1.6s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* --------------------------- Track widget ---------------------------- */
.track-cta { padding: 26px 0 10px; }
.track-widget {
  background: linear-gradient(140deg, var(--ink), var(--ink-2));
  border-radius: 22px;
  padding: 34px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.track-widget::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 150, 12, .28), transparent 70%);
  top: -120px; right: -80px;
}
.track-widget::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .1), transparent 70%);
  bottom: -100px; left: 30%;
}
.track-widget-head { text-align: center; margin-bottom: 22px; position: relative; z-index: 1; }
.track-widget-head h2 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.track-widget-head p { color: rgba(255, 255, 255, .75); font-size: 15px; }

.hero-widget { background: linear-gradient(140deg, var(--ink-2), var(--ink-3)); }

.track-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}
.track-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 0 16px;
  transition: box-shadow .2s;
}
.track-input-wrap:focus-within { box-shadow: 0 0 0 4px rgba(232, 150, 12, .35); }
.track-input-wrap svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.track-input-wrap input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 16px;
  padding: 16px 0;
  color: var(--ink);
}
.track-input-wrap input::placeholder { color: var(--muted); }

.track-widget-hints {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 16px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.track-widget-hints span { color: rgba(255, 255, 255, .7); font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.hint-chip {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-family: ui-monospace, monospace;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}
.hint-chip:hover { background: rgba(255, 255, 255, .22); }

/* ------------------------------- Sections ----------------------------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.8px; margin-bottom: 12px; }
.section-head p { color: var(--slate-soft); font-size: 16.5px; }

/* ---------------------------- Feature cards --------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.feature-card { padding: 30px; }
.feature-card h3 { font-size: 19px; margin: 18px 0 10px; }
.feature-card p { color: var(--slate-soft); font-size: 15px; }

.feature-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border: 1px solid rgba(232, 150, 12, .35);
  color: var(--amber-deep);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}
.feature-icon svg { width: 26px; height: 26px; }

/* --------------------------- Services split --------------------------- */
.services-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split-text h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -1px; margin-bottom: 14px; }
.split-text > p { color: var(--slate-soft); margin-bottom: 26px; }

.service-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.service-list li { display: flex; gap: 14px; align-items: flex-start; }
.service-list .check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
  margin-top: 2px;
}
.service-list h4 { font-size: 16.5px; margin-bottom: 3px; }
.service-list p { font-size: 14.5px; color: var(--slate-soft); }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-card { padding: 26px; text-align: center; }
.stat-card b { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--ink); letter-spacing: -.5px; }
.stat-card span { color: var(--slate-soft); font-size: 14px; font-weight: 600; }

/* ------------------------------- CTA banner --------------------------- */
.cta-banner {
  background: linear-gradient(120deg, var(--ink), var(--ink-3));
  padding: 54px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 150, 12, .35), transparent 70%);
  right: -100px; top: -140px;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; position: relative; z-index: 1; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 6px; }
.cta-inner p { color: rgba(255, 255, 255, .78); }

/* ---------------------------- Services page --------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.service-card { padding: 30px; position: relative; display: flex; flex-direction: column; }
.service-card h3 { font-size: 20px; margin: 18px 0 10px; }
.service-card > p { color: var(--slate-soft); font-size: 15px; flex: 1; }
.service-card .btn { margin-top: 22px; align-self: flex-start; }
.service-card .tag { position: absolute; top: 20px; right: 20px; }

.service-feats { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.service-feats li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--slate); }
.service-feats .check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
}

/* -------------------------------- Tags -------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-pending { background: var(--info-bg); color: var(--info); }
.tag-picked-up { background: var(--accent-soft); color: var(--amber-deep); }
.tag-in-transit { background: #e8e9fd; color: #5a52c8; }
.tag-out-for-delivery { background: #e6f0fd; color: #2b6cb0; }
.tag-delivered { background: var(--success-bg); color: var(--success); }
.tag-exception { background: var(--danger-bg); color: var(--danger); }
.tag-hot { background: linear-gradient(135deg, var(--accent), var(--amber-deep)); color: #fff; }

/* ------------------------------ Notices ------------------------------- */
.notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
}
.notice-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 16px;
}
.notice h3 { font-size: 16px; margin-bottom: 4px; }
.notice p, .notice li { font-size: 14.5px; color: var(--slate-soft); }
.notice ul { list-style: disc; padding-left: 18px; }
.notice a { font-weight: 600; }

.notice-success { background: var(--success-bg); border-color: rgba(31, 157, 99, .25); }
.notice-success .notice-icon { background: #fff; color: var(--success); }
.notice-error { background: var(--danger-bg); border-color: rgba(208, 69, 75, .25); }
.notice-error .notice-icon { background: #fff; color: var(--danger); }
.notice-info { background: var(--info-bg); border-color: rgba(59, 111, 212, .25); }
.notice-info .notice-icon { background: #fff; color: var(--info); }

/* -------------------------------- Forms ------------------------------- */
.form-panel { padding: 36px; }
.form-section { margin-bottom: 34px; }
.form-section h2 {
  font-size: 18px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px dashed var(--line);
}
.form-row { display: grid; gap: 18px; margin-bottom: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink-3);
  box-shadow: 0 0 0 4px rgba(58, 71, 122, .12);
}
.field textarea { resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 6px; flex-wrap: wrap; }

/* --------------------------- Tracking result -------------------------- */
.shipment-card { padding: 32px; margin-bottom: 24px; }
.shipment-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.shipment-card-head h2 { font-size: 22px; margin-top: 10px; font-family: ui-monospace, 'Cascadia Mono', monospace; letter-spacing: .5px; }
.shipment-meta { display: flex; gap: 26px; flex-wrap: wrap; }
.meta-pair span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.meta-pair strong { color: var(--ink); font-size: 15px; }

.route-strip { display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: 14px; padding: 18px 22px; margin-bottom: 30px; }
.route-point { display: flex; align-items: center; gap: 10px; }
.route-point b { font-size: 14.5px; color: var(--ink); display: block; line-height: 1.2; }
.route-point small { font-size: 12px; color: var(--muted); }
.route-line { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.route-fill { height: 100%; width: var(--progress); background: linear-gradient(90deg, var(--accent), var(--amber-deep)); }

.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 18px; position: relative; padding-bottom: 26px; }
.tl-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px; top: 44px; bottom: 0;
  width: 2px;
  background: var(--line);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--muted);
  z-index: 1;
}
.tl-icon svg { width: 19px; height: 19px; }
.tl-item.done .tl-icon { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 8px 18px -8px rgba(30, 36, 64, .6); }
.tl-item.current .tl-icon { background: linear-gradient(135deg, var(--accent), var(--amber-deep)); border-color: var(--accent); color: #fff; animation: ping-soft 2s ease-out infinite; }
@keyframes ping-soft { 0% { box-shadow: 0 0 0 0 rgba(232, 150, 12, .5); } 100% { box-shadow: 0 0 0 12px rgba(232, 150, 12, 0); } }

.tl-content { padding-top: 2px; }
.tl-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.tl-head h4 { font-size: 15.5px; color: var(--ink); }
.tl-head time { font-size: 13px; color: var(--muted); font-weight: 600; }
.tl-loc { font-size: 14px; color: var(--slate-soft); font-weight: 600; }
.tl-note { font-size: 14px; color: var(--muted); }
.tl-item:not(.done) .tl-content { opacity: .55; }

.shipment-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.shipment-actions .btn:first-child { flex: 1; }

.shipment-details { padding: 32px; margin-bottom: 24px; }
.details-block h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 12px; }
.details-block p { font-size: 14.5px; color: var(--slate-soft); margin-bottom: 4px; }
.details-block .details-name { font-size: 17px; font-weight: 700; color: var(--ink); }

.need-help { display: flex; align-items: center; gap: 18px; padding: 26px; }
.need-help > svg { width: 40px; height: 40px; color: var(--amber-deep); flex-shrink: 0; }
.need-help h3 { font-size: 18px; }
.need-help p { color: var(--slate-soft); font-size: 14.5px; }
.need-help .btn { margin-left: auto; }

.quick-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { padding: 28px; }
.step-num {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ink), var(--ink-3));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--slate-soft); }

/* ------------------------------ Contact ------------------------------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 26px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-card { padding: 26px; }
.contact-card h3 { font-size: 17px; margin: 14px 0 8px; }
.contact-card p { font-size: 14.5px; color: var(--slate-soft); }
.contact-form-wrap { padding: 34px; }
.contact-form-wrap h2 { font-size: 24px; margin-bottom: 22px; }

/* ------------------------------- About -------------------------------- */
.about-lead { padding: 38px; font-size: 17.5px; margin-bottom: 24px; }
.about-lead p { color: var(--slate); }
.about-lead p + p { margin-top: 14px; color: var(--slate-soft); }
.about-cards { margin-bottom: 0; }
.mini-card { padding: 28px; }
.mini-card h3 { font-size: 18px; margin-bottom: 10px; }
.mini-card p { color: var(--slate-soft); font-size: 15px; }

/* ------------------------------- Login -------------------------------- */
.login-body { background: var(--bg); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.login-card { width: min(440px, 100%); padding: 40px; }
.login-brand { margin-bottom: 26px; }
.login-card h1 { font-size: 26px; margin-bottom: 6px; }
.login-sub { color: var(--slate-soft); margin-bottom: 24px; }
.login-hint { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }
.login-hint code { background: var(--bg-alt); padding: 2px 7px; border-radius: 6px; font-size: 12px; color: var(--ink); }
.login-back { margin-top: 14px; text-align: center; font-size: 14px; }

/* ------------------------------- Admin -------------------------------- */
.admin-body { background: var(--bg); }
.admin-hero { padding: 48px 0 20px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 26px; }

.admin-grid-2 { display: grid; grid-template-columns: 1.35fr .9fr; gap: 22px; align-items: start; margin-bottom: 22px; }

.panel { padding: 26px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.panel-head h2 { font-size: 18px; }
.panel-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.panel-danger { border-color: rgba(208, 69, 75, .3); }
.panel-danger p { margin-bottom: 16px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--slate); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(58, 71, 122, .03); }
.table .mono { font-family: ui-monospace, monospace; font-weight: 700; color: var(--ink); font-size: 13.5px; }
.ta-r { text-align: right; }
.mono { font-family: ui-monospace, 'Cascadia Mono', monospace; }
.muted { color: var(--muted); }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 6px; }
.info-grid + .info-grid { margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--line); }
.info-block h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 10px; }
.info-block p { font-size: 14.5px; color: var(--slate-soft); margin-bottom: 4px; }
.info-block strong { color: var(--ink); }

.status-bars { display: flex; flex-direction: column; gap: 16px; }
.status-bar-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--slate); margin-bottom: 6px; }
.status-bar-track { height: 9px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.status-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ink-3), var(--ink)); }
.fill-delivered { background: linear-gradient(90deg, #23b977, var(--success)); }
.fill-in-transit { background: linear-gradient(90deg, var(--accent), var(--amber-deep)); }
.fill-exception { background: linear-gradient(90deg, #e06a70, var(--danger)); }
.fill-picked-up { background: linear-gradient(90deg, #7b74e0, #5a52c8); }
.fill-out-for-delivery { background: linear-gradient(90deg, #4f8ed4, #2b6cb0); }
.fill-pending { background: linear-gradient(90deg, #9aa3c0, #7b85a6); }

.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 24px; flex-wrap: wrap; }
.list-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex: 1; }
.list-filters .track-input-wrap { background: var(--bg); border: 1.5px solid var(--line); flex: 1; min-width: 220px; }
.list-filters .track-input-wrap input { font-size: 14.5px; padding: 11px 0; }
.list-filters select {
  font-family: var(--font);
  font-size: 14px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}
.list-filters .btn { border-radius: 11px; padding: 11px 18px; }

.admin-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.quick-card { display: flex; gap: 16px; align-items: center; padding: 24px; }
.quick-card .feature-icon { width: 46px; height: 46px; border-radius: 13px; font-size: 20px; flex-shrink: 0; }
.quick-card h3 { font-size: 16.5px; margin-bottom: 4px; }
.quick-card p { font-size: 14px; color: var(--slate-soft); }

/* ------------------------------- Footer ------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: rgba(255, 255, 255, .75);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 150, 12, .18), transparent 70%);
  top: -160px; left: -120px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 44px;
  position: relative;
  z-index: 1;
}
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand-name span { color: var(--accent); }
.footer-desc { font-size: 14.5px; max-width: 340px; margin-bottom: 20px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  display: grid; place-items: center;
  color: rgba(255, 255, 255, .85);
  transition: background .2s, transform .2s;
}
.footer-social a:hover { background: var(--accent); color: var(--ink); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(255, 255, 255, .68);
  font-size: 14.5px;
  margin-bottom: 11px;
  transition: color .2s, padding-left .2s;
}
.footer-col a:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255, 255, 255, .5); position: relative; z-index: 1; }
.admin-footer { margin-top: 0; }
.admin-footer .footer-bottom-inner { justify-content: center; }

/* --------------------------- Scroll reveal ---------------------------- */
.js .float-card, .js .feature-card, .js .stat-card, .js .service-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .float-card.in-view, .js .feature-card.in-view, .js .stat-card.in-view, .js .service-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------ Responsive ---------------------------- */
@media (max-width: 980px) {
  .hero-inner, .services-split, .contact-grid, .admin-grid-2 { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; margin-top: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-quick-actions { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 16px 20px;
    gap: 4px;
    transform: translateY(-140%);
    transition: transform .3s ease;
    z-index: 60;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 12px 16px; border-radius: 10px; }
  .site-nav a.nav-cta { margin-left: 0; }
  .nav-toggle { display: block; }

  .track-form { grid-template-columns: 1fr; }
  .track-form .btn { width: 100%; }
  .grid-3, .grid-2, .info-grid { grid-template-columns: 1fr; }
  .ship-card { width: 90%; right: 5%; }
  .chip-delivered { bottom: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 48px 0 34px; }
  .section { padding: 48px 0; }
  .hero { padding: 56px 0 30px; }
  .need-help { flex-direction: column; text-align: center; }
  .need-help .btn { margin-left: 0; }
  .form-panel, .contact-form-wrap { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
