/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ================================================================
   ROOT VARIABLES
   ================================================================ */
:root {
  /* Brand palette */
  --navy-950: #050B18;
  --navy-900: #0A1730;
  --navy-800: #0F2148;
  --navy-700: #152C5C;
  --brand-500: #1E7FE0;
  --brand-600: #0F6AD8;
  --brand-700: #0B54AE;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-900: #0F172A;

  /* Status colors */
  --status-pending-c: #9CA3AF;    --status-pending-bg: #F3F4F6;
  --status-confirmed-c: #2563EB;  --status-confirmed-bg: #DBEAFE;
  --status-pickedup-c: #7C3AED;   --status-pickedup-bg: #EDE9FE;
  --status-transit-c: #D97706;    --status-transit-bg: #FEF3C7;
  --status-facility-c: #0891B2;   --status-facility-bg: #CFFAFE;
  --status-customs-c: #B45309;    --status-customs-bg: #FFEDD5;
  --status-outfordelivery-c: #0D9488; --status-outfordelivery-bg: #CCFBF1;
  --status-delivered-c: #16A34A;  --status-delivered-bg: #DCFCE7;
  --status-hold-c: #DC2626;       --status-hold-bg: #FEE2E2;
  --status-cancelled-c: #4B5563;  --status-cancelled-bg: #E5E7EB;
  --success-c: #16A34A; --success-bg: #DCFCE7; --success-border: #BBF7D0;
  --error-c: #DC2626;   --error-bg: #FEE2E2;   --error-border: #FECACA;

  /* Radius / shadow / transition */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 3px rgba(5,11,24,.06);
  --shadow: 0 4px 20px rgba(5,11,24,.08);
  --shadow-lg: 0 20px 50px rgba(5,11,24,.18);
  --transition: .25s ease;

  /* Layout */
  --max-w: 1200px;
  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;
  --gap-2xl: 48px;
  --gap-3xl: 80px;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-display-public: 'Barlow Condensed', 'Space Grotesk', system-ui, sans-serif;
}

/* ================================================================
   BASE TYPOGRAPHY
   ================================================================ */
body {
  font-family: var(--font-sans);
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--navy-900); }
p { color: var(--gray-600); }

/* Public-facing pages (home, services, contact, tracking) use Barlow Condensed
   for every heading and subheading — scoped here so the user dashboard and
   admin panel, which only load Space Grotesk, are unaffected. */
.public-site h1, .public-site h2, .public-site h3, .public-site h4,
.public-site .section-title, .public-site .section-desc,
.public-site .nav__title, .public-site .nav__subtitle,
.public-site .services-strip__title, .public-site .unmatched-card__title,
.public-site .stat-card__value, .public-site .footer-brand__name,
.public-site .footer-heading, .public-site .card__title,
.public-site .form-card-title, .public-site .section-heading__title,
.public-site .detail-list__label, .public-site .tracking-result__status,
.public-site .tracking-result__code {
  font-family: var(--font-display-public);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

/* ================================================================
   CONTAINER
   ================================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gap-md);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--gap-lg); }
}
.container--wide { max-width: 1400px; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-xs);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand-500); color: var(--white); }
.btn-primary:hover { background: var(--brand-600); box-shadow: var(--shadow); }
.btn-white { background: var(--white); color: var(--navy-900); }
.btn-white:hover { background: var(--gray-100); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.3); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-outline-dark { background: transparent; border-color: var(--gray-200); color: var(--navy-900); }
.btn-outline-dark:hover { background: var(--gray-50); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 48px; height: 48px; padding: 0; border-radius: var(--radius-full);
  background: var(--brand-500); color: var(--white);
}
.btn-icon:hover { background: var(--brand-600); }

/* ================================================================
   FORMS
   ================================================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--gap-md); }
.form-label { font-size: 14px; font-weight: 600; color: var(--navy-900); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(30,127,224,.15);
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}
@media (min-width: 768px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
  .form-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.form-col-span-2 { grid-column: 1 / -1; }
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--gap-xl);
  margin-bottom: var(--gap-xl);
}
.form-card-title {
  font-size: 20px;
  margin-bottom: var(--gap-lg);
}

/* Section heading with an animated icon, used on the tracking result page */
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--gap-md);
}
.section-heading__icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.section-heading__icon svg { width: 18px; height: 18px; }
.section-heading__title { font-size: 16px; font-weight: 700; color: var(--navy-900); font-family: var(--font-display); }

.section-heading--sender .section-heading__icon { background: rgba(30,127,224,.12); color: var(--brand-600); }
.section-heading--receiver .section-heading__icon { background: #EDE9FE; color: #7C3AED; }
.section-heading--shipment .section-heading__icon { background: #FEF3C7; color: #B45309; }
.section-heading--location .section-heading__icon { background: var(--success-bg); color: var(--success-c); }
.section-heading--cargo .section-heading__icon { background: #FFEDD5; color: #B45309; }
.section-heading--history .section-heading__icon { background: #CFFAFE; color: #0891B2; }

.section-heading--sender .section-heading__icon svg { animation: icon-bounce 2.2s ease-in-out infinite; }
.section-heading--receiver .section-heading__icon svg { animation: icon-pulse 2.2s ease-in-out infinite; }
.section-heading--shipment .section-heading__icon svg { animation: icon-spin-slow 7s linear infinite; }
.section-heading--location .section-heading__icon svg { animation: icon-bounce 1.8s ease-in-out infinite; }
.section-heading--cargo .section-heading__icon svg { animation: icon-pulse 2.4s ease-in-out infinite; }
.section-heading--history .section-heading__icon svg { animation: icon-pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .section-heading__icon svg { animation: none; }
}

/* ================================================================
   ALERTS / FLASH MESSAGES
   ================================================================ */
.flash-stack {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  width: 320px;
  max-width: 90vw;
}
.alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: var(--success-c); border-color: var(--success-border); }
.alert-error { background: var(--error-bg); color: var(--error-c); border-color: var(--error-border); }

/* ================================================================
   BADGES / STATUS
   ================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

/* ================================================================
   TOP BAR
   ================================================================ */
.topbar {
  background: var(--navy-950);
  color: var(--gray-300);
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  padding-block: 8px;
}
.topbar__phone { display: flex; align-items: center; gap: var(--gap-xs); }
.topbar__track { transition: color var(--transition); }
.topbar__track:hover { color: var(--white); }

/* ================================================================
   HEADER / NAV
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 23, 48, .97);
  border-bottom: 1px solid var(--navy-800);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav__brand { display: flex; align-items: center; gap: var(--gap-sm); }
.nav__logo {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--brand-500);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav__logo svg { width: 24px; height: 24px; color: var(--white); }
.nav__brand-text { line-height: 1.3; }
.nav__title { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 17px; }
.nav__subtitle { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-400); }

.nav__links {
  display: none;
  align-items: center;
  gap: var(--gap-xl);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-300);
}
.nav__links a { transition: color var(--transition); }
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }

.nav__actions { display: none; align-items: center; gap: var(--gap-sm); }
.nav__actions a.nav__link-plain { color: var(--gray-300); font-size: 14px; font-weight: 500; transition: color var(--transition); }
.nav__actions a.nav__link-plain:hover { color: var(--white); }

.nav__toggle {
  display: inline-flex;
  background: none; border: none; color: var(--white);
  width: 28px; height: 28px;
}
.nav__toggle svg { width: 100%; height: 100%; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--navy-800);
  background: var(--navy-900);
  padding: var(--gap-lg) var(--gap-md);
  flex-direction: column;
  gap: var(--gap-sm);
  color: var(--gray-300);
  font-size: 14px;
  font-weight: 500;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__actions {
  display: flex;
  gap: var(--gap-sm);
  padding-top: var(--gap-sm);
  border-top: 1px solid var(--navy-800);
}
.mobile-menu__actions a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-full);
}
.mobile-menu__actions a.btn-outline-mobile { border: 1px solid var(--navy-700); }
.mobile-menu__actions a.btn-primary-mobile { background: var(--brand-500); color: var(--white); }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__actions { display: flex; }
  .nav__toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(5,11,24,.55) 0%, rgba(11,84,174,.35) 45%, rgba(5,11,24,.7) 100%),
    url('../img/hero-freight.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--brand-500);
}
.hero__inner {
  padding-block: 96px 160px;
  text-align: center;
}
.hero__eyebrow {
  color: var(--brand-500);
  background: rgba(30,127,224,.15);
  border: 1px solid rgba(30,127,224,.4);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: var(--gap-md);
}
.hero__title {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 760px;
  margin-inline: auto;
  text-shadow: 0 4px 24px rgba(0,0,0,.55);
}
.hero__desc {
  color: var(--gray-200);
  max-width: 560px;
  margin: var(--gap-lg) auto 0;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-md);
  flex-wrap: wrap;
  margin-top: var(--gap-2xl);
}
.hero--compact .hero__inner { padding-block: 96px; }

/* Services strip overlapping hero */
.services-strip-wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gap-md);
  margin-top: -80px;
  position: relative;
  z-index: 10;
}
.services-strip {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
}
@media (min-width: 768px) {
  .services-strip { grid-template-columns: repeat(4, 1fr); }
}
.services-strip__item {
  padding: var(--gap-xl) var(--gap-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--gap-sm);
  border-bottom: 1px solid var(--gray-100);
  color: var(--navy-900);
}
@media (min-width: 768px) {
  .services-strip__item {
    border-bottom: none;
    border-right: 1px solid var(--gray-100);
  }
  .services-strip__item:last-child { border-right: none; }
}
.services-strip__item--active { background: var(--brand-500); color: var(--white); }
.services-strip__icon { font-size: 28px; }
.services-strip__title { font-family: var(--font-display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.services-strip__sub { font-size: 12px; color: var(--gray-500); }
.services-strip__item--active .services-strip__sub { color: rgba(255,255,255,.8); }

/* ================================================================
   SECTION TITLES
   ================================================================ */
.section { padding-block: var(--gap-3xl); }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  text-align: center;
}
.section-desc {
  color: var(--gray-500);
  text-align: center;
  max-width: 560px;
  margin: var(--gap-sm) auto 0;
}
.section-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-lg);
  margin-top: var(--gap-xl);
  font-size: 14px;
  flex-wrap: wrap;
}
.section-tabs__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300); }
.section-tabs__dot--active { background: var(--brand-500); }
.section-tabs__label { color: var(--gray-400); font-weight: 500; }
.section-tabs__label--active { color: var(--brand-600); font-weight: 600; }

/* ================================================================
   WHY CHOOSE US
   ================================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-2xl);
  align-items: center;
  max-width: var(--max-w);
  margin: var(--gap-2xl) auto 0;
}
@media (min-width: 768px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}
.why-visual {
  position: relative;
  height: 320px;
}
.why-visual__back {
  position: absolute; inset: 0;
  background: var(--navy-800);
  border-radius: var(--radius-lg);
  transform: translate(16px, 16px);
}
.why-visual__front {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--brand-500), var(--navy-800));
  display: flex; align-items: center; justify-content: center;
}
.why-visual__front svg { width: 96px; height: 96px; color: rgba(255,255,255,.3); }
.why-text p { margin-bottom: var(--gap-md); }
.why-text__signature { margin-top: var(--gap-lg); }
.why-text__name { font-weight: 700; color: var(--navy-900); }
.why-text__role { font-size: 12px; color: var(--gray-500); }
.why-link {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-xs);
  margin-top: var(--gap-lg);
  color: var(--brand-600);
  font-weight: 600;
  transition: gap var(--transition);
}
.why-link:hover { gap: var(--gap-sm); }

/* ================================================================
   INNOVATION / GRID CARDS
   ================================================================ */
.section--muted { background: var(--gray-50); }
.innovation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-xl);
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
}
@media (min-width: 768px) {
  .innovation-grid { grid-template-columns: repeat(3, 1fr); }
}
.media-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.media-card__image { height: 160px; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.media-card__image--alt { background: linear-gradient(135deg, var(--brand-600), var(--navy-800)); }
.media-card__body { padding: var(--gap-lg); }
.media-card__eyebrow { font-size: 12px; font-weight: 700; color: var(--brand-600); text-transform: uppercase; letter-spacing: .03em; }
.media-card__text { font-size: 14px; color: var(--gray-600); margin-top: var(--gap-xs); }

/* ================================================================
   UNMATCHED SERVICES (dark block)
   ================================================================ */
.section--dark { background: var(--navy-900); }
.section--dark .section-title,
.section--dark h2,
.section--dark h3 { color: var(--white); }
.unmatched-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-2xl);
  max-width: var(--max-w);
  margin: 0 auto;
}
@media (min-width: 768px) {
  .unmatched-grid { grid-template-columns: 1fr 2fr; }
}
.unmatched-intro__title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--white); }
.unmatched-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}
@media (min-width: 480px) {
  .unmatched-cards { grid-template-columns: repeat(2, 1fr); }
}
.unmatched-card {
  padding: var(--gap-lg);
  border-radius: var(--radius);
  border: 1px solid var(--navy-700);
  transition: border-color var(--transition), transform var(--transition);
}
.unmatched-card:hover { transform: translateY(-3px); }
.unmatched-card--highlight { border-color: rgba(255,255,255,.6); }
.unmatched-card__art {
  width: 90%;
  margin: 0 auto;
  display: block;
}
.unmatched-card__art svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
  transition: transform .4s ease;
}
.unmatched-card:hover .unmatched-card__art svg { transform: translateY(-4px) scale(1.03); }
.unmatched-card__title { color: var(--white); font-family: var(--font-display-public, var(--font-display)); font-size: 15px; text-transform: uppercase; letter-spacing: .03em; margin-top: var(--gap-md); }
.unmatched-card__desc { color: var(--gray-400); font-size: 14px; margin-top: var(--gap-sm); line-height: 1.6; }
@keyframes unmatched-art-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.unmatched-card__art svg { animation: unmatched-art-drift 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .unmatched-card__art svg { animation: none !important; }
}

/* ================================================================
   STATS
   ================================================================ */
.stats-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-2xl);
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
@media (min-width: 768px) {
  .stats-section-grid { grid-template-columns: 1fr 1fr; }
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-2xl);
}
.stat-card__value { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: var(--navy-900); }
.stat-card__label { font-size: 14px; color: var(--gray-500); margin-top: 4px; }
.map-placeholder {
  height: 280px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--gap-lg);
}
.map-placeholder svg { width: 64px; height: 64px; color: var(--brand-500); margin: 0 auto; }
.map-placeholder p { font-size: 14px; margin-top: var(--gap-sm); }

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  max-width: var(--max-w);
  margin: 0 auto;
  background: linear-gradient(120deg, var(--brand-600), var(--navy-800));
  border-radius: var(--radius-lg);
  padding: var(--gap-3xl) var(--gap-xl);
  text-align: center;
}
.cta-banner__title { color: var(--white); font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-banner__desc { color: var(--gray-200); max-width: 480px; margin: var(--gap-sm) auto 0; }
.cta-banner .btn { margin-top: var(--gap-xl); }

/* ================================================================
   SERVICES PAGE — CARD GRID
   ================================================================ */
.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-xl);
  max-width: var(--max-w);
  margin: 0 auto;
}
@media (min-width: 640px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .service-cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--gap-xl);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon { font-size: 36px; }
.card__title { font-size: 19px; margin-top: var(--gap-md); }
.card__desc { font-size: 14px; margin-top: var(--gap-sm); line-height: 1.7; }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-2xl);
  max-width: var(--max-w);
  margin: 0 auto;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 2fr 3fr; }
}
.contact-list { display: flex; flex-direction: column; gap: var(--gap-xl); }
.contact-item { display: flex; gap: var(--gap-md); }
.contact-item__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: rgba(30,127,224,.1);
  color: var(--brand-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item__icon--bob svg { animation: icon-bob-wave 2.2s ease-in-out infinite; }
.contact-item__icon--pulse svg { animation: icon-pulse-scale 1.8s ease-in-out infinite; }
.contact-item__icon--drive svg { animation: icon-drive-bounce 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .contact-item__icon svg { animation: none !important; }
}
.contact-item__title { font-weight: 700; color: var(--navy-900); font-size: 15px; }
.contact-item__text { font-size: 14px; color: var(--gray-600); margin-top: 2px; }
.contact-item__sub { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* ================================================================
   AUTH PAGES (login / register)
   ================================================================ */
.auth-wrap {
  max-width: 440px;
  margin: 0 auto;
  padding-block: var(--gap-3xl);
}
.auth-head { text-align: center; margin-bottom: var(--gap-2xl); }
.auth-head__title { font-size: clamp(1.6rem, 3vw, 2rem); }
.auth-head__desc { font-size: 14px; margin-top: var(--gap-xs); }
.auth-form {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--gap-xl);
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}
.auth-form__foot { text-align: center; font-size: 14px; color: var(--gray-500); }
.auth-form__foot a { color: var(--brand-600); font-weight: 600; }
.auth-form__subfoot {
  text-align: center;
  font-size: 12px;
  color: var(--gray-400);
  padding-top: var(--gap-sm);
  border-top: 1px solid var(--gray-100);
}

/* ================================================================
   TRACKING PAGE
   ================================================================ */
.tracking-hero .hero__inner { padding-block: 96px; max-width: 720px; margin-inline: auto; }
.tracking-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  max-width: 560px;
  margin: var(--gap-2xl) auto 0;
}
@media (min-width: 640px) {
  .tracking-form { flex-direction: row; }
}
.tracking-form__input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 5px;
  border: none;
  color: var(--navy-900);
  font-size: 15px;
}
.tracking-form__input:focus { outline: 2px solid var(--brand-500); outline-offset: 2px; }

.tracking-empty {
  text-align: center;
  padding: var(--gap-3xl) var(--gap-lg);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}
.tracking-empty svg { width: 56px; height: 56px; color: var(--gray-300); margin: 0 auto; }
.tracking-empty__title { margin-top: var(--gap-md); }
.tracking-empty__desc { margin-top: var(--gap-sm); }

.tracking-result {
  border: 1px solid var(--gray-100);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
@media (min-width: 640px) {
  .tracking-result { border-radius: var(--radius-lg); }
}
.tracking-result__head {
  padding: var(--gap-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.tracking-result__head-text { flex: 1; min-width: 0; }
.tracking-result__code { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--gray-500); }
.tracking-result__status { font-size: clamp(1.2rem, 2vw, 1.6rem); margin-top: 4px; color: var(--navy-900); }
.tracking-result__status-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(0,0,0,.04);
  animation: status-indicator-pulse 2s ease-in-out infinite;
}
@keyframes status-indicator-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: .8; }
}
@media (prefers-reduced-motion: reduce) {
  .tracking-result__status-indicator { animation: none; }
}
.tracking-result__receipt-bar {
  padding: var(--gap-xl);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  text-align: center;
  background: var(--gray-50);
}
.tracking-result__body {
  padding: var(--gap-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-xl);
}
@media (min-width: 640px) {
  .tracking-result__body { padding: var(--gap-xl); gap: var(--gap-2xl); }
}
@media (min-width: 768px) {
  .tracking-result__body { grid-template-columns: 1fr 1fr; }
}
.detail-list { display: flex; flex-direction: column; gap: var(--gap-sm); font-size: 14px; }
.detail-list__row { display: flex; justify-content: space-between; gap: var(--gap-md); }
.detail-list__label { color: var(--gray-500); }
.detail-list__value { color: var(--navy-900); font-weight: 600; text-align: right; max-width: 60%; }
.remarks-box {
  margin-top: var(--gap-lg);
  padding: var(--gap-md);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  font-size: 14px;
  color: var(--gray-600);
}
.remarks-box strong { color: var(--navy-900); }

.map-box { height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-100); }
.map-box--empty { display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 14px; background: var(--gray-50); }

.cargo-image { margin-top: var(--gap-lg); }
.cargo-image img { border-radius: 4px; border: 1px solid var(--gray-100); max-height: 210px; width: 100%; object-fit: cover; }

.timeline { border-top: 1px solid var(--gray-100); padding: var(--gap-xl); }
.timeline__list { display: flex; flex-direction: column; gap: var(--gap-lg); }
.timeline__item { display: flex; gap: var(--gap-md); }
.timeline__dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.timeline__title { font-weight: 600; font-size: 14px; color: var(--navy-900); }
.timeline__remark { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.timeline__date { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* ================================================================
   DASHBOARD (user)
   ================================================================ */
.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  margin-bottom: var(--gap-2xl);
}
.dash-head__title { font-size: clamp(1.6rem, 3vw, 2rem); }
.dash-head__email { font-size: 14px; color: var(--gray-500); margin-top: 4px; }
.status-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}
.status-pill--active { background: var(--success-bg); color: var(--success-c); border-color: var(--success-border); }
.status-pill--inactive { background: var(--error-bg); color: var(--error-c); border-color: var(--error-border); }

.paywall {
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  padding: var(--gap-3xl) var(--gap-xl);
  background: linear-gradient(180deg, var(--gray-50), var(--white));
}
.paywall__icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-full);
  background: rgba(30,127,224,.1);
  color: var(--brand-600);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.paywall__icon svg { width: 32px; height: 32px; }
.paywall__title { margin-top: var(--gap-lg); }
.paywall__desc { max-width: 420px; margin: var(--gap-sm) auto 0; }
.paywall__note { font-size: 12px; color: var(--gray-400); margin-top: var(--gap-md); }

.dash-note {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: var(--gap-lg);
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--green { background: #22C55E; }

.shipment-summary {
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  padding: var(--gap-xl);
  margin-bottom: var(--gap-xl);
}
.shipment-summary__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
}
.shipment-summary__code { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.shipment-summary__value { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-top: 4px; }
.shipment-summary__status { font-size: 13px; margin-top: var(--gap-xs); }

/* ================================================================
   MAP EDITOR (create/edit shipment)
   ================================================================ */
.map-editor { height: 320px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-100); }
.map-editor-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
  margin-bottom: var(--gap-md);
}
@media (min-width: 768px) {
  .map-editor-controls { grid-template-columns: 2fr 1fr; align-items: end; }
}
.coord-display { font-size: 12px; color: var(--gray-400); margin-top: var(--gap-sm); }
.file-preview { margin-top: var(--gap-sm); height: 80px; border-radius: 4px; border: 1px solid var(--gray-100); }
.file-link { display: inline-block; margin-top: var(--gap-sm); color: var(--brand-600); font-size: 14px; font-weight: 600; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--navy-950);
  color: var(--gray-400);
  margin-top: var(--gap-3xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-2xl);
  padding-block: var(--gap-3xl);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
.footer-brand { display: flex; align-items: center; gap: var(--gap-sm); margin-bottom: var(--gap-md); }
.footer-brand__logo {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--brand-500);
  display: flex; align-items: center; justify-content: center;
}
.footer-brand__logo svg { width: 20px; height: 20px; color: var(--white); }
.footer-brand__name { font-family: var(--font-display); font-weight: 700; color: var(--white); }
.footer-desc { font-size: 14px; line-height: 1.7; }
.footer-social { display: flex; gap: var(--gap-sm); margin-top: var(--gap-lg); }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--brand-500); }
.footer-social svg { width: 16px; height: 16px; }
.footer-heading { color: var(--white); font-weight: 600; margin-bottom: var(--gap-md); font-family: var(--font-sans); font-size: 15px; }
.footer-links a { transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: var(--gap-md); font-size: 14px; }
.footer-contact li { display: flex; align-items: center; gap: var(--gap-sm); }
.footer-contact__icon { display: inline-flex; width: 18px; height: 18px; flex-shrink: 0; color: var(--brand-500); }
.footer-contact__icon svg { width: 100%; height: 100%; }
.footer-contact__icon--bob svg { animation: icon-bob-wave 2.2s ease-in-out infinite; }
.footer-contact__icon--pulse svg { animation: icon-pulse-scale 1.8s ease-in-out infinite; }
.footer-contact__icon--drive svg { animation: icon-drive-bounce 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .footer-contact__icon svg { animation: none !important; }
}
.footer-bottom { border-top: 1px solid var(--navy-800); }
.footer-bottom__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
  padding-block: 20px;
  font-size: 12px;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom__inner { flex-direction: row; text-align: left; }
}
.footer-bottom__links { display: flex; gap: var(--gap-lg); }
.footer-bottom__links a:hover { color: var(--white); }

/* ================================================================
   ADMIN PANEL
   ================================================================ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--navy-950);
  color: var(--gray-300);
  display: flex;
  flex-direction: column;
}
.admin-sidebar__head { padding: 24px; border-bottom: 1px solid var(--navy-800); }
.admin-sidebar__brand { display: flex; align-items: center; gap: var(--gap-sm); }
.admin-sidebar__logo {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--brand-500);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.admin-sidebar__title { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 14px; }
.admin-sidebar__nav { flex: 1; padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 500; }
.admin-sidebar__nav a { padding: 10px 12px; border-radius: var(--radius-sm); transition: background var(--transition); }
.admin-sidebar__nav a:hover { background: var(--navy-800); }
.admin-sidebar__nav a.is-active { background: var(--brand-500); color: var(--white); }
.admin-sidebar__foot { padding: 24px 16px; border-top: 1px solid var(--navy-800); }
.admin-sidebar__user { font-size: 12px; color: var(--gray-500); padding: 0 12px 8px; }
.admin-sidebar__logout {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition);
}
.admin-sidebar__logout:hover { background: var(--navy-700); }
.admin-main { flex: 1; padding: 32px; overflow-x: hidden; background: var(--gray-50); min-height: 100vh; }
.admin-page-title { font-size: 24px; margin-bottom: 4px; }
.admin-page-desc { font-size: 14px; color: var(--gray-500); margin-bottom: var(--gap-2xl); }

.admin-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  margin-bottom: 4px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-md);
  margin-bottom: var(--gap-2xl);
}
@media (min-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-box {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
}
.stat-box__label { font-size: 14px; color: var(--gray-500); }
.stat-box__value { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin-top: var(--gap-sm); }

.panel {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--gap-lg); }
.panel-title { font-size: 17px; }
.panel-link { color: var(--brand-600); font-size: 14px; font-weight: 600; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; font-size: 14px; }
.data-table thead tr { text-align: left; color: var(--gray-400); border-bottom: 1px solid var(--gray-100); }
.data-table th { padding-bottom: 12px; font-weight: 500; }
.data-table tbody tr { border-bottom: 1px solid var(--gray-50); }
.data-table td { padding-block: 12px; color: var(--gray-600); }
.data-table td.is-strong { font-weight: 600; color: var(--navy-900); }
.data-table td.is-right { text-align: right; white-space: nowrap; }
.data-table td.is-muted { color: var(--gray-400); }
.table-empty { text-align: center; padding: var(--gap-2xl); color: var(--gray-400); }
.table-link { color: var(--brand-600); font-weight: 600; margin-right: var(--gap-md); }
.table-link--danger { color: var(--error-c); }

.search-box { max-width: 320px; margin-bottom: var(--gap-lg); }

.admin-form { max-width: 780px; display: flex; flex-direction: column; gap: var(--gap-xl); }

/* ================================================================
   ADMIN LOGIN
   ================================================================ */
.admin-login-body { background: var(--navy-950); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--gap-lg); }
.admin-login-wrap { width: 100%; max-width: 380px; }
.admin-login-head { text-align: center; margin-bottom: var(--gap-2xl); }
.admin-login-head__logo {
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: var(--brand-500);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin: 0 auto var(--gap-md);
}
.admin-login-head__title { color: var(--white); font-size: 22px; }
.admin-login-head__sub { color: var(--gray-400); font-size: 14px; margin-top: 4px; }
.admin-login-form {
  background: var(--navy-900);
  border: 1px solid var(--navy-800);
  border-radius: var(--radius-lg);
  padding: var(--gap-xl);
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}
.admin-login-form .form-label { color: var(--gray-300); }
.admin-login-form .form-control {
  background: var(--navy-950);
  border-color: var(--navy-800);
  color: var(--white);
}
.admin-login-back { text-align: center; color: var(--gray-500); font-size: 12px; margin-top: var(--gap-lg); }
.admin-login-back:hover { color: var(--gray-300); }

/* ================================================================
   USER DASHBOARD SHELL (own sidebar, separate from public header)
   ================================================================ */
.user-layout { display: flex; min-height: 100vh; }
.user-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--navy-900);
  color: var(--gray-300);
  display: flex;
  flex-direction: column;
}
.user-sidebar__head { padding: 24px; border-bottom: 1px solid var(--navy-800); }
.user-sidebar__brand { display: flex; align-items: center; gap: var(--gap-sm); }
.user-sidebar__logo {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--brand-500);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-sidebar__logo svg { width: 20px; height: 20px; color: var(--white); }
.user-sidebar__title { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 14px; }
.user-sidebar__subtitle { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); }
.user-sidebar__nav { flex: 1; padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 500; }
.user-sidebar__nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); transition: background var(--transition); }
.user-sidebar__nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.user-sidebar__nav a:hover { background: var(--navy-800); }
.user-sidebar__nav a.is-active { background: var(--brand-500); color: var(--white); }
.user-sidebar__nav-back { margin-top: var(--gap-md); padding-top: var(--gap-md); border-top: 1px solid var(--navy-800); }
.user-sidebar__foot { padding: 24px 16px; border-top: 1px solid var(--navy-800); }
.user-sidebar__user { font-size: 12px; color: var(--gray-500); padding: 0 12px 8px; overflow-wrap: anywhere; }
.user-sidebar__logout {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition);
}
.user-sidebar__logout:hover { background: var(--navy-700); }
.user-main { flex: 1; padding: 32px; overflow-x: hidden; background: var(--gray-50); min-height: 100vh; }
.user-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--navy-900);
  color: var(--white);
}
.user-topbar__toggle { background: none; border: none; color: var(--white); width: 26px; height: 26px; }

.user-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 24, .5);
  z-index: 190;
}
.user-sidebar-backdrop.is-open { display: block; }

@media (max-width: 900px) {
  .user-layout { flex-direction: column; }
  .user-sidebar {
    display: flex;
    width: 260px;
    max-width: 80vw;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform var(--transition);
  }
  .user-sidebar.is-open { transform: translateX(0); }
  .user-topbar { display: flex; }
  .user-main { padding: 20px; }
}

@media (min-width: 901px) {
  .user-sidebar-backdrop { display: none !important; }
}

.user-page-title { font-size: 24px; margin-bottom: 4px; }
.user-page-desc { font-size: 14px; color: var(--gray-500); margin-bottom: var(--gap-2xl); }

/* Subscription cards on the Subscriptions page */
.sub-cards { display: flex; flex-direction: column; gap: var(--gap-md); }
.sub-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
}
.sub-card__ref { font-size: 12px; color: var(--gray-400); font-family: monospace; }
.sub-card__dates { font-size: 14px; color: var(--gray-600); margin-top: 4px; }
.sub-card__amount { font-weight: 700; color: var(--navy-900); font-size: 15px; }

/* Manage Tracking list */
.tracking-list { display: flex; flex-direction: column; gap: var(--gap-md); }
.tracking-list-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
}
.tracking-list-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
}
.tracking-list-item__code { font-weight: 700; font-size: 16px; color: var(--navy-900); }
.tracking-list-item__meta { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.tracking-list-item__actions { display: flex; gap: var(--gap-sm); flex-wrap: wrap; }
.tracking-list-item--expired { opacity: .7; }

.overview-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  padding: var(--gap-xl);
  margin-bottom: var(--gap-xl);
}
.overview-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
}
.overview-empty {
  text-align: center;
  padding: var(--gap-2xl);
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  color: var(--gray-500);
}

/* Dashboard info banner explaining the subscription/tracking rule */
.info-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-md);
  padding: var(--gap-lg);
  border-radius: var(--radius-lg);
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  margin-bottom: var(--gap-xl);
}
.info-banner__icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--brand-500);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-banner__icon svg { width: 18px; height: 18px; }
.info-banner__text { font-size: 14px; color: var(--navy-900); line-height: 1.6; }
.info-banner__text strong { color: var(--brand-700); }

/* Animated analytics cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-md);
  margin-bottom: var(--gap-xl);
}
@media (min-width: 700px) {
  .stat-cards { grid-template-columns: repeat(4, 1fr); }
}
.stat-card-a {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card-a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card-a__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-card-a__icon svg { width: 24px; height: 24px; }
.stat-card-a__value { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; color: var(--navy-900); }
.stat-card-a__label { font-size: 12.5px; color: var(--gray-500); font-weight: 500; }

.stat-card-a--blue .stat-card-a__icon { background: rgba(30,127,224,.12); color: var(--brand-600); }
.stat-card-a--green .stat-card-a__icon { background: var(--success-bg); color: var(--success-c); }
.stat-card-a--amber .stat-card-a__icon { background: #FEF3C7; color: #B45309; }
.stat-card-a--purple .stat-card-a__icon { background: #EDE9FE; color: #7C3AED; }

/* CSS-animated SVG icons inside stat cards */
@keyframes icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@keyframes icon-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes icon-draw {
  from { stroke-dashoffset: 60; }
  to { stroke-dashoffset: 0; }
}
.stat-card-a__icon svg { animation: icon-pulse 2.6s ease-in-out infinite; }
.stat-card-a--purple .stat-card-a__icon svg { animation: icon-spin-slow 6s linear infinite; }
.stat-card-a--amber .stat-card-a__icon svg { animation: icon-bounce 1.8s ease-in-out infinite; }
.stat-card-a--green .stat-card-a__icon svg path { stroke-dasharray: 60; animation: icon-draw 1.6s ease-out forwards; }
@media (prefers-reduced-motion: reduce) {
  .stat-card-a__icon svg { animation: none; }
}

/* Dashboard action buttons row */
.dash-actions {
  display: flex;
  gap: var(--gap-md);
  flex-wrap: wrap;
  margin-bottom: var(--gap-2xl);
}
.dash-actions .btn { flex: 1; min-width: 200px; }

/* ================================================================
   OVERRIDE: 5px BORDER RADIUS ON ALL BUTTONS
   ================================================================ */
.btn,
.btn-primary,
.btn-white,
.btn-outline,
.btn-outline-dark,
.btn-sm,
.btn-block,
.btn-icon {
  border-radius: 5px;
}

/* ================================================================
   FOOTER: QUICK LINKS HORIZONTAL
   ================================================================ */
.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--gap-md) var(--gap-lg);
  font-size: 14px;
}
.footer-links a {
  white-space: nowrap;
}

/* ================================================================
   PAGE-LOAD / REQUEST SPINNER (top right, next to Track Your Shipment)
   ================================================================ */
.topbar__track-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-spinner {
  width: 15px;
  height: 15px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.page-spinner.is-active { display: inline-flex; }
.page-spinner__ring {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25);
  border-top-color: var(--brand-500);
  animation: spinner-rotate 1.1s linear infinite;
}
@keyframes spinner-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .page-spinner__ring { animation: none; }
}

/* ================================================================
   NAVBAR TOGGLE: RIGHT-SLIDE MOBILE MENU
   ================================================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 82vw;
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 150;
  overflow-y: auto;
  display: flex !important;
}
.mobile-menu.is-open { transform: translateX(0); }
.nav__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 24, .5);
  z-index: 140;
}
.nav__backdrop.is-open { display: block; }
@media (min-width: 768px) {
  .nav__backdrop { display: none !important; }
}

/* ================================================================
   MASONRY IMAGE GALLERY
   ================================================================ */
.masonry {
  columns: 1;
  column-gap: var(--gap-md);
}
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.masonry__item {
  break-inside: avoid;
  margin-bottom: var(--gap-md);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.masonry__item img {
  width: 100%;
  display: block;
  transition: transform .5s ease;
}
.masonry__item:hover img { transform: scale(1.06); }
.masonry__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(5,11,24,.85), transparent);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

/* ================================================================
   PATTERNED BACKGROUND WRAPPERS (behind images)
   ================================================================ */
.pattern-wrap {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  isolation: isolate;
}
.pattern-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--navy-900);
  opacity: .08;
}
.pattern-wrap--dots::before {
  background-image: radial-gradient(var(--brand-500) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: .18;
}
.pattern-wrap--grid::before {
  background-image:
    linear-gradient(var(--brand-500) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand-500) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .10;
}
.pattern-wrap--diagonal::before {
  background-image: repeating-linear-gradient(45deg, var(--brand-500) 0, var(--brand-500) 2px, transparent 2px, transparent 14px);
  opacity: .12;
}
.pattern-wrap > img,
.pattern-wrap > .pattern-wrap__inner {
  position: relative;
  z-index: 1;
}
.pattern-wrap > img {
  width: 100%;
  display: block;
}

/* ================================================================
   HERO: BARLOW CONDENSED + SEQUENCED TEXT ANIMATION
   ================================================================ */
.hero--hasBgPattern {
  position: relative;
  overflow: hidden;
}
.hero--hasBgPattern::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(120deg, rgba(255,255,255,.12) 0, rgba(255,255,255,.12) 3px, transparent 3px, transparent 30px),
    repeating-linear-gradient(60deg, rgba(30,127,224,.14) 0, rgba(30,127,224,.14) 3px, transparent 3px, transparent 30px);
  pointer-events: none;
}
.hero--hasBgPattern::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(30,127,224,.35) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }

.hero-title-condensed {
  font-family: 'Barlow Condensed', var(--font-display), sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
}
.hero-line-1 {
  display: block;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  color: var(--gray-300);
  opacity: 0;
  transform: translateX(-40px);
  animation: hero-slide-left .7s ease forwards;
  animation-delay: .15s;
}
.hero-line-2 {
  display: block;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  color: var(--white);
  margin-top: 6px;
}
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: hero-word-in .55s ease forwards;
}
.hero-word--air { animation-delay: .9s; }
.hero-word--comma1 { opacity: 0; animation: hero-word-in .4s ease forwards; animation-delay: 1.3s; }
.hero-word--ship { animation-delay: 1.5s; }
.hero-word--and { animation-delay: 1.9s; }
.hero-word--land { animation-delay: 2.1s; color: var(--brand-500); }
@keyframes hero-slide-left {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes hero-word-in {
  to { opacity: 1; transform: translateY(0); }
}
.hero__desc-quote {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-slide-up .6s ease forwards;
  animation-delay: 2.6s;
}
.hero__actions {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-slide-up .6s ease forwards;
  animation-delay: 2.85s;
}
@keyframes hero-slide-up {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-line-1, .hero-word, .hero__desc-quote, .hero__actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ================================================================
   SERVICES PAGE: IMAGE + PATTERN CARDS
   ================================================================ */
.service-card-img {
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  margin-bottom: var(--gap-md);
  height: 170px;
}
.service-card-img img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}
.card--with-image .card__icon {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 5px;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.card--with-image { position: relative; }

/* ================================================================
   HOME PAGE: ANIMATED SVG ICONS (services strip)
   ================================================================ */
.services-strip__icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
.services-strip__icon svg {
  width: 100%;
  height: 100%;
}

@keyframes icon-fly-across {
  0%   { transform: translate(-4px, 2px); }
  50%  { transform: translate(4px, -2px); }
  100% { transform: translate(-4px, 2px); }
}
@keyframes icon-drive-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@keyframes icon-bob-wave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-2px) rotate(-3deg); }
}
@keyframes icon-pulse-scale {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}
@keyframes icon-spin-full {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.services-strip__icon--fly svg { animation: icon-fly-across 2.4s ease-in-out infinite; }
.services-strip__icon--drive svg { animation: icon-drive-bounce 1.6s ease-in-out infinite; }
.services-strip__icon--bob svg { animation: icon-bob-wave 2.2s ease-in-out infinite; }
.services-strip__icon--pulse svg { animation: icon-pulse-scale 1.8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .services-strip__icon svg { animation: none !important; }
}

/* ================================================================
   SERVICES PAGE: BADGE ICON ANIMATIONS
   ================================================================ */
.card__icon svg { width: 20px; height: 20px; }

.service-icon--fly svg   { animation: icon-fly-across 2.4s ease-in-out infinite; }
.service-icon--bob svg   { animation: icon-bob-wave 2.2s ease-in-out infinite; }
.service-icon--drive svg { animation: icon-drive-bounce 1.6s ease-in-out infinite; }
.service-icon--pulse svg { animation: icon-pulse-scale 1.8s ease-in-out infinite; }
.service-icon--spin svg  { animation: icon-spin-full 6s linear infinite; }

.service-icon--draw svg path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: icon-draw-reveal 2.5s ease-in-out infinite;
}
@keyframes icon-draw-reveal {
  0%   { stroke-dashoffset: 40; }
  40%  { stroke-dashoffset: 0; }
  70%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 40; }
}

@media (prefers-reduced-motion: reduce) {
  .card__icon svg { animation: none !important; }
}

/* ================================================================
   UTILITIES
   ================================================================ */
/* ================================================================
   CHAT (chat-support.php public page, chat-customer.php user page)
   ================================================================ */
.chat-bubble-row { display: flex; }
.chat-bubble-row--me { justify-content: flex-end; }
.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.chat-bubble--them { background: var(--gray-100); color: var(--navy-900); border-bottom-left-radius: 2px; }
.chat-bubble--me { background: var(--brand-500); color: var(--white); border-bottom-right-radius: 2px; }
.chat-bubble__time { font-size: 10px; opacity: .7; margin-top: 4px; }

.chat-thread-list { display: flex; flex-direction: column; gap: var(--gap-sm); }
.chat-thread-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: var(--gap-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.chat-thread-item:hover { border-color: var(--brand-500); }
.chat-thread-item.is-active { border-color: var(--brand-500); background: rgba(30,127,224,.05); }
.chat-thread-item__name { font-weight: 600; color: var(--navy-900); font-size: 14px; }
.chat-thread-item__meta { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.chat-thread-item__unread {
  background: var(--brand-500);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ================================================================
   UTILITIES
   ================================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mt-lg { margin-top: var(--gap-lg); }
.mb-lg { margin-bottom: var(--gap-lg); }
.hidden { display: none !important; }
