:root {
  --ink: #07111f;
  --navy: #081b2f;
  --panel: #0b2239;
  --panel-card: #0f2b48;
  --orange: #ff641a;
  --amber: #ff9d45;
  --gold: #f59e0b;
  --crimson: #e11d48;
  --danger-bg: #fff1f2;
  --danger-border: #fecdd3;
  --danger-text: #9f1239;
  --hold-bg: #fffbeb;
  --hold-border: #fde68a;
  --hold-text: #92400e;
  --mint: #10b981;
  --mint-light: #ecfdf5;
  --sky: #0284c7;
  --paper: #f4f7fb;
  --card-bg: #ffffff;
  --muted: #64748b;
  --line: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow: 0 20px 45px rgba(8, 27, 47, 0.09);
  --shadow-lg: 0 25px 70px rgba(5, 22, 38, 0.18);
  --shadow-glow: 0 0 40px rgba(255, 100, 26, 0.25);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

/* Top Header */
.topbar {
  height: 84px;
  padding: 0 max(5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 50;
}
.brand img { width: 175px; display: block; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.topbar-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.topbar-contact svg { width: 18px; height: 18px; stroke: var(--orange); fill: none; stroke-width: 2; }
.topbar-contact strong { color: var(--navy); display: block; font-size: 14px; }
.topbar nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}
.topbar nav a { transition: color 0.2s; }
.topbar nav a:hover { color: var(--orange); }
.topbar .nav-track {
  background: var(--navy);
  color: #fff;
  padding: 11px 22px;
  border-radius: 10px;
  transition: all 0.2s;
}
.topbar .nav-track:hover {
  background: var(--orange);
  box-shadow: 0 6px 18px rgba(255, 100, 26, 0.3);
}

/* Hero Section */
.hero {
  min-height: 440px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 75% 35%, rgba(26, 119, 148, 0.32), transparent 30%),
              linear-gradient(120deg, #051321 0%, #082138 60%, #0b3047 100%);
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(70, 198, 255, 0.15);
}
.hero-orb-one {
  width: 450px;
  height: 450px;
  right: 5%;
  top: -140px;
  box-shadow: inset 0 0 90px rgba(67, 184, 255, 0.1), 0 0 100px rgba(67, 184, 255, 0.1);
}
.hero-orb-two {
  width: 200px;
  height: 200px;
  right: 22%;
  bottom: -60px;
  background: rgba(255, 100, 26, 0.08);
  box-shadow: 0 0 80px rgba(255, 100, 26, 0.2);
}
.hero-inner {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  padding: 65px 0 130px;
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a0c4de;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 11px;
}
.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 14px var(--mint);
  display: inline-block;
}
.hero h1 {
  font: 800 clamp(36px, 5.5vw, 64px)/1.08 "Manrope", sans-serif;
  letter-spacing: -0.05em;
  margin: 18px 0 14px;
  max-width: 720px;
}
.hero h1 span { color: var(--orange); }
.hero p {
  color: #c2d3e1;
  font-size: 17px;
  max-width: 600px;
  line-height: 1.5;
  margin: 0;
}

/* Floating Search Box */
.tracking-search {
  position: absolute;
  top: 345px;
  width: min(850px, 100%);
  padding: 22px;
  background: #ffffff;
  color: var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 10;
}
.tracking-search label {
  display: block;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 10px;
}
.search-row {
  height: 58px;
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 5px 6px 5px 18px;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-row:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 100, 26, 0.15);
  background: #ffffff;
}
.search-row svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #94a3b8;
  stroke-width: 1.8;
  flex-shrink: 0;
}
.search-row input {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}
.search-row button {
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff641a, #ff7e3b);
  color: white;
  font-weight: 700;
  padding: 0 24px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 100, 26, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.search-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 100, 26, 0.45);
}

/* Dashboard Container */
.dashboard {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 95px 0 110px;
}

/* Shipment Header Card */
.shipment-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 11px;
  color: var(--orange);
  display: block;
  margin-bottom: 4px;
}
.shipment-heading h2 {
  font: 800 clamp(28px, 4vw, 42px)/1.1 "Manrope", sans-serif;
  letter-spacing: -0.04em;
  margin: 0;
  display: inline-block;
  color: var(--navy);
}
.copy-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}
.copy-button:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.copy-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-outline-print {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline-print:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.btn-outline-print svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Status Badges */
.status-pill {
  padding: 9px 18px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: var(--shadow-sm);
}
.status-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.6);
  animation: pulse-ring 1.8s infinite;
}
.status-on-hold {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.status-on-hold .status-pulse {
  background: #dc2626;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  animation: pulse-danger 1.5s infinite;
}
.status-delivered {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.status-delivered .status-pulse {
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}
.status-cancelled {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}
@keyframes pulse-danger {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { box-shadow: 0 0 0 11px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* =========================================================
   URGENT HOLD ALERT BANNER (IN-PAGE)
   ========================================================= */
.hold-alert-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%);
  border: 2px solid #f87171;
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 12px 36px rgba(239, 68, 68, 0.12);
  position: relative;
  overflow: hidden;
}
.hold-alert-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #ef4444, #f97316);
}
.hold-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.hold-banner-left {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 740px;
}
.hold-icon-pulse {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fee2e2;
  color: #dc2626;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px #fff1f2, 0 4px 14px rgba(220, 38, 38, 0.2);
  animation: pulse-warning 2s infinite ease-in-out;
}
.hold-icon-pulse svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; }
@keyframes pulse-warning {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.hold-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.hold-banner-content h3 {
  font: 800 20px/1.2 "Manrope", sans-serif;
  color: #991b1b;
  margin: 0 0 6px;
}
.hold-banner-content p {
  color: #7f1d1d;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.hold-banner-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.fee-due-pill {
  text-align: right;
  background: #ffffff;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
}
.fee-due-pill small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #991b1b;
  font-weight: 700;
}
.fee-due-pill strong {
  font-size: 22px;
  font-weight: 800;
  color: #b91c1c;
  display: block;
}
.btn-pay-now {
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
  color: #ffffff;
  border: 0;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-pay-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.45);
}
.btn-pay-now svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Verification Pending Banner */
.pending-alert-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 2px solid #93c5fd;
  border-radius: 20px;
  padding: 22px 28px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.pending-alert-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.pending-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #dbeafe;
  color: #1d4ed8;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pending-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; }
.pending-content h3 {
  font: 800 18px/1.2 "Manrope", sans-serif;
  color: #1e3a8a;
  margin: 0 0 4px;
}
.pending-content p {
  color: #1e40af;
  font-size: 13.5px;
  margin: 0;
}
.pending-badge {
  background: #bfdbfe;
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* =========================================================
   PARTIES & CONSIGNMENT CARD
   ========================================================= */
.parties-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.parties-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.parties-heading h3 {
  font: 750 22px/1.3 "Manrope", sans-serif;
  letter-spacing: -0.025em;
  margin: 4px 0 0;
  color: var(--navy);
}
.secure-detail {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.parties-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
  align-items: stretch;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.party-block {
  padding: 26px;
  min-width: 0;
  background: #ffffff;
}
.party-label {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}
.party-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff1ea;
  color: var(--orange);
}
.party-icon.receiver-icon {
  background: #ecfdf5;
  color: var(--mint);
}
.party-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.party-label small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.party-label h4 {
  font: 750 18px "Manrope", sans-serif;
  margin: 2px 0 0;
  color: var(--navy);
}
.party-details { margin: 12px 0 0; }
.party-details div {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f8fafc;
}
.party-details div:last-child { border-bottom: 0; }
.party-details dt { font-size: 12px; color: var(--muted); font-weight: 500; }
.party-details dd {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.party-details a { color: var(--sky); text-decoration: underline; }
.delivery-direction {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.delivery-direction svg { width: 24px; height: 24px; fill: none; stroke: var(--orange); stroke-width: 2; }

/* Package Facts Strip */
.package-facts {
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 0.9fr 1.15fr 1.1fr;
  margin-top: 18px;
  background: #081b2f;
  color: #fff;
  border-radius: 14px;
  overflow: hidden;
}
.package-facts div {
  padding: 16px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
}
.package-facts div:last-child { border-right: 0; }
.package-facts span, .package-facts strong { display: block; }
.package-facts span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 5px;
}
.package-facts strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.package-facts .package-values span:nth-of-type(2) { margin-top: 8px; }
.package-facts .amount-due-highlight {
  color: #f87171;
  font-weight: 800;
  font-size: 15px;
}
.package-facts .btn-pay-sm {
  display: inline-block;
  margin-top: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 0;
}

/* =========================================================
   MOVEMENT JOURNEY TIMELINE
   ========================================================= */
.journey-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.card-title h3 {
  font: 750 22px/1.3 "Manrope", sans-serif;
  letter-spacing: -0.025em;
  margin: 4px 0 0;
  color: var(--navy);
}
.timeline-status {
  display: flex;
  align-items: center;
  gap: 12px;
}
.updated {
  font-size: 11px;
  color: var(--muted);
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: 8px;
}
.journey-line {
  margin-top: 32px;
  position: relative;
}
.journey-step {
  display: grid;
  grid-template-columns: 50px 1fr;
  min-height: 140px;
}
.step-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-rail::after {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(to bottom, #cbd5e1 0 6px, transparent 6px 12px);
}
.journey-step:last-child .step-rail::after { display: none; }
.journey-step.completed .step-rail::after {
  background: linear-gradient(var(--orange), var(--orange));
  box-shadow: 0 0 10px rgba(255, 100, 26, 0.3);
}
.journey-step.hold-step .step-rail::after {
  background: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}
.step-node {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #94a3b8;
  position: relative;
  z-index: 2;
  border: 2px solid #cbd5e1;
}
.step-node svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.completed .step-node {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 5px #ffedd5, 0 0 20px rgba(255, 100, 26, 0.35);
}
.current-step .step-node {
  background: #0f2b48;
  color: #fff;
  border: 4px solid #e0f2fe;
  box-shadow: 0 0 0 4px rgba(255, 100, 26, 0.15);
}
.current-step .step-node i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
  animation: pulse-ring 1.8s infinite;
}
.hold-step .step-node {
  background: #dc2626 !important;
  color: #fff !important;
  border-color: #fee2e2 !important;
  box-shadow: 0 0 0 6px #fee2e2, 0 0 25px rgba(220, 38, 38, 0.5) !important;
  animation: pulse-warning 1.8s infinite;
}
.step-content {
  padding: 2px 0 26px 14px;
}
.step-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.step-meta time {
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 600;
  text-transform: none;
}
.step-content h4 {
  font: 750 18px "Manrope", sans-serif;
  margin: 6px 0 4px;
  color: var(--navy);
}
.step-content p {
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}
.hold-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 6px;
}

/* =========================================================
   MAP SECTION
   ========================================================= */
.map-card {
  background: #fff;
  border-radius: 22px;
  padding: 8px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.map-toolbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.map-toolbar h3 {
  font: 750 20px/1.3 "Manrope", sans-serif;
  letter-spacing: -0.025em;
  margin: 4px 0 0;
  color: var(--navy);
}
.map-toolbar h3 span {
  color: #94a3b8;
  font-weight: 500;
  padding: 0 6px;
}
.live-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: #065f46;
  background: #ecfdf5;
  padding: 8px 14px;
  border-radius: 8px;
}
.live-badge span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  margin-right: 6px;
}
#shipment-map, .map-empty {
  height: 500px !important;
  min-height: 480px;
  width: 100% !important;
  border-radius: 16px;
  background: #dbe6e8;
  position: relative;
  z-index: 1;
}
.leaflet-container {
  width: 100% !important;
  height: 100% !important;
  font-family: "DM Sans", sans-serif;
  z-index: 1 !important;
}
.leaflet-control-attribution {
  font-size: 10px !important;
  background: rgba(255, 255, 255, 0.8) !important;
}
.map-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.map-empty[hidden] { display: none !important; }
.empty-icon { font-size: 38px; color: var(--orange); }
.map-empty h3 { margin: 12px 0 5px; color: var(--navy); }
.map-legend {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 800;
  display: flex;
  gap: 16px;
  background: rgba(6, 23, 38, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}
.legend-dot.dispatch { background: #ffffff; }
.legend-dot.current { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.legend-dot.destination { background: var(--mint); }

.route-marker { background: transparent; border: 0; }
.pin {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 6px;
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  box-shadow: 0 5px 18px rgba(2, 14, 26, 0.35);
}
.pin:after {
  content: "";
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
}
.pin.dispatch { background: #162c40; }
.pin.destination { background: var(--mint); }
.current-marker {
  position: relative;
  width: 30px;
  height: 30px;
}
.current-marker:before, .current-marker:after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid white;
  box-shadow: 0 0 20px var(--orange);
}
.current-marker:after {
  inset: -8px;
  border: 1px solid var(--orange);
  background: rgba(255, 100, 26, 0.2);
  animation: mapPulse 1.7s ease-out infinite;
}
.route-popup strong {
  display: block;
  font: 700 13px "Manrope", sans-serif;
  color: var(--ink);
  margin-bottom: 2px;
}
.route-popup small {
  color: #788896;
  text-transform: capitalize;
  font-size: 11px;
}
@keyframes mapPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* =========================================================
   PACKAGE GALLERY SECTION
   ========================================================= */
.gallery-section {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gallery-heading h3 {
  font: 750 20px/1.3 "Manrope", sans-serif;
  margin: 4px 0 0;
  color: var(--navy);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.photo-card {
  border: 0;
  padding: 0;
  background: #081b2f;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  text-align: left;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s, opacity 0.3s;
}
.photo-card:hover img { transform: scale(1.05); opacity: 0.8; }
.photo-card > span {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 16px 14px;
  color: white;
  background: linear-gradient(transparent, rgba(3, 14, 25, 0.95));
}
.photo-card b { font-size: 13px; display: block; }
.photo-card small { font-size: 11px; color: #cbd5e1; display: block; margin-top: 4px; }

/* Lightbox Modal */
.lightbox {
  width: min(850px, 92vw);
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: #07111f;
  color: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}
.lightbox::backdrop {
  background: rgba(4, 15, 27, 0.88);
  backdrop-filter: blur(8px);
}
.lightbox img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}
.lightbox p { margin: 0; padding: 18px 24px; font-size: 14px; color: #e2e8f0; }
.lightbox-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* =========================================================
   ANIMATED "PACKAGE ON HOLD" POP-UP MODAL
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 17, 31, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.hold-modal-card {
  width: min(620px, 100%);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  border: 2px solid #fecaca;
  overflow: hidden;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .hold-modal-card {
  transform: translateY(0) scale(1);
}

.hold-modal-header {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #b91c1c 100%);
  color: #fff;
  padding: 28px 30px;
  position: relative;
}
.hold-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.hold-modal-close:hover { background: rgba(255, 255, 255, 0.3); }

.modal-alert-beacon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24;
  animation: pulse-ring 1.5s infinite;
}
.hold-modal-header h2 {
  font: 800 24px/1.2 "Manrope", sans-serif;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.hold-modal-header p {
  font-size: 13.5px;
  color: #fecaca;
  margin: 0;
  line-height: 1.45;
}

.hold-modal-body {
  padding: 26px 30px;
}
.hold-reason-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.hold-reason-box small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c2410c;
  font-weight: 800;
  margin-bottom: 4px;
}
.hold-reason-box strong {
  display: block;
  font-size: 16px;
  color: #9a3412;
  font-family: "Manrope", sans-serif;
}
.hold-details-text {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hold-fee-assessment {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.assessment-label span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.assessment-label strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
  margin-top: 2px;
}
.assessment-amount {
  text-align: right;
}
.assessment-amount small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: #dc2626;
  font-weight: 800;
}
.assessment-amount strong {
  font-size: 26px;
  font-weight: 800;
  color: #b91c1c;
  font-family: "Manrope", sans-serif;
}

.hold-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-modal-primary {
  flex: 1;
  min-width: 200px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-modal-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.45);
}
.btn-modal-secondary {
  padding: 14px 20px;
  background: #f1f5f9;
  color: #334155;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-modal-secondary:hover { background: #e2e8f0; }

/* =========================================================
   CUSTOMER PAYMENT MODAL (CHECKOUT & PROOF UPLOAD)
   ========================================================= */
.checkout-modal-card {
  width: min(780px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(5, 22, 38, 0.3);
  position: relative;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .checkout-modal-card {
  transform: translateY(0) scale(1);
}

.checkout-header {
  background: linear-gradient(135deg, #07111f 0%, #0c233c 60%, #113456 100%);
  color: #fff;
  padding: 26px 32px;
  position: relative;
}
.checkout-header h2 {
  font: 800 22px/1.2 "Manrope", sans-serif;
  margin: 0 0 4px;
}
.checkout-header p {
  color: #94a3b8;
  font-size: 13px;
  margin: 0;
}
.checkout-bill-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
  gap: 12px;
}
.bill-item span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}
.bill-item strong {
  font-size: 13.5px;
  color: #fff;
  display: block;
}
.bill-item.amount-due-highlight strong {
  font-size: 22px;
  color: #ff9d45;
  font-weight: 800;
}

.checkout-body {
  padding: 28px 32px;
}

/* Tabs for Payment Methods */
.payment-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.payment-tab-btn {
  padding: 12px 18px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s;
}
.payment-tab-btn:hover { color: var(--navy); }
.payment-tab-btn.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Crypto Pay Pane */
.crypto-network-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.crypto-chip {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s;
}
.crypto-chip.active {
  border-color: var(--orange);
  background: #fff4ee;
  color: var(--orange);
}

.crypto-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.crypto-qr-wrapper {
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
}
.crypto-qr-wrapper svg { width: 100%; height: 100%; }
.crypto-info small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.copy-address-row {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 12px;
  gap: 10px;
  margin-bottom: 10px;
}
.copy-address-row input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 13px;
  font-family: monospace;
  color: var(--navy);
  font-weight: 700;
}
.btn-copy-address {
  padding: 6px 12px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.crypto-note {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Bank Details Pane */
.bank-grid {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #edf2f7;
}
.bank-row:last-child { border-bottom: 0; }
.bank-row span { font-size: 12px; color: var(--muted); }
.bank-row strong { font-size: 13px; color: var(--navy); }

/* Card Terminal Pane */
.card-terminal {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
}
.card-terminal-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.card-field-full { grid-column: 1 / -1; }
.card-field-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.card-field-group input {
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  outline: 0;
}
.card-field-group input:focus { border-color: var(--orange); }

/* Proof Submission Form */
.proof-upload-section {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  transition: border-color 0.2s;
}
.proof-upload-section:focus-within { border-color: var(--orange); }
.proof-upload-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.proof-upload-heading svg { width: 22px; height: 22px; stroke: var(--orange); fill: none; stroke-width: 2; }
.proof-upload-heading h4 {
  font: 750 16px "Manrope", sans-serif;
  margin: 0;
  color: var(--navy);
}
.proof-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.proof-field-full { grid-column: 1 / -1; }
.proof-form-grid label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.proof-form-grid input, .proof-form-grid textarea, .proof-form-grid select {
  width: 100%;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  outline: 0;
}
.proof-form-grid input:focus, .proof-form-grid textarea:focus {
  border-color: var(--orange);
  background: #ffffff;
}
.file-drop-area {
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  position: relative;
}
.file-drop-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-drop-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.file-drop-label svg { width: 26px; height: 26px; stroke: var(--muted); fill: none; stroke-width: 1.8; }
.file-drop-label b { color: var(--navy); }

.btn-submit-payment {
  width: 100%;
  margin-top: 18px;
  padding: 15px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}
.btn-submit-payment:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
}

/* =========================================================
   OFFICIAL STAMPED CLEARANCE INVOICE MODAL
   ========================================================= */
.invoice-modal-card {
  width: min(800px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  position: relative;
}
.invoice-watermark {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font: 900 68px "Manrope", sans-serif;
  color: rgba(220, 38, 38, 0.06);
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.15em;
}
.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 24px;
}
.invoice-logo img { width: 180px; }
.invoice-title-block { text-align: right; }
.invoice-title-block h2 {
  font: 800 22px "Manrope", sans-serif;
  color: var(--navy);
  margin: 0 0 4px;
}
.invoice-title-block span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}
.invoice-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.invoice-box h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 8px;
}
.invoice-box p {
  margin: 0;
  font-size: 13.5px;
  color: var(--navy);
  line-height: 1.5;
}
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}
.invoice-table th {
  background: #f1f5f9;
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.invoice-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.invoice-table td.amount-col { text-align: right; font-weight: 700; }
.invoice-total-row {
  display: flex;
  justify-content: flex-end;
  gap: 40px;
  font-size: 15px;
  font-weight: 800;
  color: #b91c1c;
  padding-top: 14px;
  border-top: 2px solid #cbd5e1;
  margin-bottom: 30px;
}

.invoice-stamp {
  display: inline-block;
  border: 3px double #dc2626;
  color: #dc2626;
  font: 800 13px/1.3 "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 10px 18px;
  border-radius: 8px;
  transform: rotate(-3deg);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.invoice-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

/* =========================================================
   CONFIRMATION BANNER (AFTER PAYMENT SUBMITTED)
   ========================================================= */
.payment-success-banner {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 2px solid #6ee7b7;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.payment-success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.payment-success-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.payment-success-text h4 {
  font: 750 16px "Manrope", sans-serif;
  color: #065f46;
  margin: 0 0 3px;
}
.payment-success-text p {
  color: #047857;
  font-size: 13px;
  margin: 0;
}

/* Not Found Screen */
.not-found {
  width: min(700px, calc(100% - 48px));
  margin: 95px auto;
  text-align: center;
  background: #fff;
  padding: 60px 40px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.not-found-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff0e9;
  color: var(--orange);
  font-size: 26px;
  font-weight: 800;
}
.not-found h2 { font: 800 30px "Manrope", sans-serif; margin: 10px; color: var(--navy); }
.not-found p { color: var(--muted); line-height: 1.6; }
.not-found a { display: inline-block; margin-top: 14px; color: var(--orange); font-weight: 700; }

/* Footer */
footer {
  padding: 40px max(5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #061321;
  color: #7f95a7;
  font-size: 12px;
}
footer img { width: 150px; }
footer p { margin: 0; }
footer span { white-space: nowrap; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .topbar nav a:not(.nav-track) { display: none; }
  .parties-grid { grid-template-columns: 1fr; }
  .delivery-direction { height: 42px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .delivery-direction svg { transform: rotate(90deg); }
  .package-facts { grid-template-columns: repeat(2, 1fr); }
  .package-facts div:nth-child(2) { border-right: 0; }
  .package-facts div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .crypto-box { grid-template-columns: 1fr; text-align: center; }
  .crypto-qr-wrapper { margin: 0 auto; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-form-grid, .card-terminal-form { grid-template-columns: 1fr; }
  .hold-banner-inner { flex-direction: column; align-items: stretch; }
  .hold-banner-right { align-items: stretch; }
  .btn-pay-now { justify-content: center; }
}

@media (max-width: 600px) {
  .hero-inner, .dashboard { width: calc(100% - 28px); }
  .tracking-search { top: 320px; padding: 16px; }
  .search-row { height: auto; display: grid; grid-template-columns: 28px 1fr; padding: 9px; }
  .search-row button { grid-column: 1/3; margin-top: 8px; width: 100%; justify-content: center; }
  .dashboard { padding-top: 125px; }
  .package-facts { grid-template-columns: 1fr; }
  .package-facts div { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .photo-grid { grid-template-columns: 1fr; }
  .hold-modal-header, .hold-modal-body, .checkout-header, .checkout-body, .invoice-modal-card { padding: 20px; }
  .invoice-meta-grid { grid-template-columns: 1fr; }
}

/* Print Styles */
@media print {
  body * { visibility: hidden; }
  #clearance-invoice-modal, #clearance-invoice-modal * { visibility: visible; }
  #clearance-invoice-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
  }
  .invoice-actions, .hold-modal-close { display: none !important; }
}
