/* ============================================================
   ABM CARGO — Master Stylesheet
   Design System, Components & Page Layouts
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;1,14..32,400&family=Poppins:wght@600;700;800;900&display=swap');

/* ------------------------------------------------------------ */
/*  1. CSS CUSTOM PROPERTIES (Design Tokens)                    */
/* ------------------------------------------------------------ */
:root {
  /* Brand Colors */
  --navy:          #0B2545;
  --navy-light:    #133A6A;
  --navy-dark:     #061A33;
  --navy-muted:    rgba(11,37,69,0.07);
  --teal:          #1F7A8C;
  --accent:        #00A8E8;
  --accent-dark:   #0090CC;
  --accent-light:  #E0F5FD;

  /* Neutrals */
  --white:         #FFFFFF;
  --bg-light:      #F5F7FA;
  --bg-mid:        #EDF0F5;
  --border:        #DDE3EC;
  --border-light:  #EEF1F6;
  --text:          #1E293B;
  --text-muted:    #64748B;
  --text-light:    #94A3B8;

  /* Status */
  --success:       #10B981;
  --success-bg:    #D1FAE5;
  --warning:       #F59E0B;
  --warning-bg:    #FEF3C7;
  --error:         #EF4444;
  --error-bg:      #FEE2E2;
  --info:          #3B82F6;
  --info-bg:       #DBEAFE;

  /* Typography */
  --font-heading:  'Poppins', 'Inter', sans-serif;
  --font-body:     'Inter', sans-serif;
  --text-base:     1rem;       /* 16px */
  --text-sm:       0.875rem;
  --text-xs:       0.75rem;
  --text-lg:       1.125rem;
  --text-xl:       1.25rem;
  --text-2xl:      1.5rem;
  --text-3xl:      1.875rem;
  --text-4xl:      2.25rem;
  --text-5xl:      3rem;
  --text-6xl:      3.75rem;
  --lh-tight:      1.2;
  --lh-normal:     1.6;
  --lh-relaxed:    1.75;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Border Radius */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.07), 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.09), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.11), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.07);
  --shadow-navy: 0 8px 32px rgba(11,37,69,0.22);
  --shadow-accent: 0 8px 28px rgba(0,168,232,0.32);

  /* Transitions */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --tr-fast:   0.15s;
  --tr-base:   0.25s;
  --tr-slow:   0.4s;

  /* Layout */
  --container:       1240px;
  --container-sm:    820px;
  --header-h:        150px;
  --header-h-slim:   70px;
}

/* ------------------------------------------------------------ */
/*  2. RESET & BASE                                             */
/* ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: var(--lh-tight); }

/* ------------------------------------------------------------ */
/*  3. UTILITY CLASSES                                          */
/* ------------------------------------------------------------ */
.hidden { display: none !important; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.container--sm { max-width: var(--container-sm); }

.section {
  padding: var(--sp-24) 0;
}
.section--gray { background: var(--bg-light); }
.section--navy { background: var(--navy); color: var(--white); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: var(--r-full);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--sp-4);
}
.section-title--white { color: var(--white); }

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 600px;
  line-height: var(--lh-relaxed);
}
.section-subtitle--white { color: rgba(255,255,255,0.75); }

.section-header {
  margin-bottom: var(--sp-16);
}
.section-header--center { text-align: center; }
.section-header--center .section-label { justify-content: center; }
.section-header--center .section-subtitle { margin: 0 auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ------------------------------------------------------------ */
/*  4. BUTTONS                                                  */
/* ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--tr-base) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity var(--tr-fast) var(--ease);
}
.btn:hover::after { opacity: 1; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,168,232,0.38);
}
.btn--primary:active { transform: translateY(0); }

.btn--navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-navy);
}
.btn--navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}
.btn--outline-navy:hover {
  border-color: var(--navy);
  background: var(--navy-muted);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 0.75rem 1rem;
}
.btn--ghost:hover { background: var(--accent-light); }

.btn--sm { padding: 0.5rem 1.25rem; font-size: var(--text-xs); }
.btn--lg { padding: 1rem 2.25rem; font-size: var(--text-base); }
.btn--icon { padding: 0.65rem; border-radius: var(--r-sm); }
.btn--full { width: 100%; }

.btn:disabled, .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* Spinner inside button */
.btn .spinner-btn {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.loading .spinner-btn { display: block; }
.btn.loading .btn-text { opacity: 0.7; }

/* ------------------------------------------------------------ */
/*  5. HEADER / NAVIGATION                                      */
/* ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--tr-base) var(--ease),
              height var(--tr-base) var(--ease),
              box-shadow var(--tr-base) var(--ease);
}

.site-header.scrolled {
  height: var(--header-h-slim);
  background: rgba(6, 26, 51, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.site-header.header--solid {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--sp-8);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}
.site-logo__img {
  height: 130px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  transition: height var(--tr-base) var(--ease);
}
.site-header.scrolled .site-logo__img {
  height: 56px;
}
.site-logo__mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: white;
  font-family: var(--font-heading);
  letter-spacing: -0.05em;
  box-shadow: var(--shadow-accent);
  transition: transform var(--tr-base) var(--ease);
}
.site-logo:hover .site-logo__mark { transform: rotate(-5deg) scale(1.05); }

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-logo__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}
.site-logo__tagline {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* Nav links */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-link {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  border-radius: var(--r-sm);
  transition: all var(--tr-fast) var(--ease);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-cta {
  padding: 0.55rem 1.35rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--tr-base) var(--ease);
  box-shadow: 0 0 0 0 rgba(0,168,232,0.5);
  animation: pulse-cta 2.5s ease infinite;
}
.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  animation: none;
}

@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,168,232,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0,168,232,0); }
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  border-radius: var(--r-sm);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: var(--r-full);
  transition: all var(--tr-base) var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------ */
/*  6. FOOTER                                                   */
/* ------------------------------------------------------------ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: var(--sp-20) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  margin-top: var(--sp-4);
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: all var(--tr-fast) var(--ease);
}
.footer-socials a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--tr-fast) var(--ease);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.footer-links a:hover { color: var(--accent); }
.footer-links a::before {
  content: '›';
  font-size: 1rem;
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-4);
}
.footer-contact-item i {
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  padding: var(--sp-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-bottom p { font-size: var(--text-sm); color: rgba(255,255,255,0.45); }

/* ------------------------------------------------------------ */
/*  7. HERO SECTION                                             */
/* ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?w=1600&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,26,51,0.92) 0%,
    rgba(11,37,69,0.78) 50%,
    rgba(31,122,140,0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
  padding-bottom: var(--sp-20);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(0,168,232,0.18);
  border: 1px solid rgba(0,168,232,0.35);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-6);
}
.hero-badge span.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.5s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
}
.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-10);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-16);
}

/* Hero Stats Bar */
.hero-stats {
  display: flex;
  gap: var(--sp-10);
  padding-top: var(--sp-10);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: var(--sp-1);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,0.5);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
}
.hero-scroll i { font-size: 1.2rem; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ------------------------------------------------------------ */
/*  8. QUICK TRACK WIDGET                                       */
/* ------------------------------------------------------------ */
.quick-track {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-12);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.quick-track::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--accent));
}

.quick-track-tabs {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
  padding: var(--sp-1);
  background: var(--bg-light);
  border-radius: var(--r-md);
}

.track-tab {
  flex: 1;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--tr-base) var(--ease);
  text-align: center;
  border: none;
  background: none;
}
.track-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.track-form-group {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-end;
}

.form-field {
  flex: 1;
}
.form-field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}
.form-field input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: var(--bg-light);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  color: var(--text);
  transition: all var(--tr-base) var(--ease);
  outline: none;
}
.form-field input::placeholder { color: var(--text-light); }
.form-field input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0,168,232,0.1);
}

/* ------------------------------------------------------------ */
/*  9. SERVICE CARDS                                            */
/* ------------------------------------------------------------ */
.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: all var(--tr-base) var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr-base) var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent-light), rgba(31,122,140,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: var(--sp-5);
  transition: all var(--tr-base) var(--ease);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  transform: scale(1.08);
}

.service-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--sp-3);
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}

/* ------------------------------------------------------------ */
/*  10. STATS COUNTER SECTION                                   */
/* ------------------------------------------------------------ */
.stats-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--teal) 140%);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-1);
  position: relative;
}

.stat-item {
  padding: var(--sp-10) var(--sp-8);
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat-number .suffix { color: var(--accent); }

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ------------------------------------------------------------ */
/*  11. FLEET CARDS                                             */
/* ------------------------------------------------------------ */
.fleet-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--tr-base) var(--ease);
}
.fleet-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }

.fleet-card__image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.fleet-card__badge {
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  padding: var(--sp-1) var(--sp-3);
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.fleet-card__body { padding: var(--sp-6); }
.fleet-card__name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--sp-2);
}
.fleet-card__type {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--sp-4);
}

.fleet-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.fleet-spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fleet-spec__label {
  font-size: var(--text-xs);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fleet-spec__value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

/* ------------------------------------------------------------ */
/*  12. TRACKING RESULT CARDS                                   */
/* ------------------------------------------------------------ */
.track-result {
  animation: fadeSlideUp 0.4s var(--ease);
}

.track-result-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.track-result-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: var(--sp-8) var(--sp-10);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.track-result-header h2 {
  color: var(--white);
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-1);
}
.track-result-header p { color: rgba(255,255,255,0.65); font-size: var(--text-sm); }

.track-result-body {
  padding: var(--sp-10);
}

.track-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-6);
}

.track-detail-item { }
.track-detail-item dt {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--sp-1);
}
.track-detail-item dt i {
  color: var(--accent);
  margin-right: 6px;
  width: 14px;
  text-align: center;
}
.track-detail-item dd {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge--loaded    { background: var(--success-bg); color: var(--success); }
.status-badge--released  { background: var(--info-bg);    color: var(--info); }
.status-badge--transit   { background: var(--warning-bg); color: var(--warning); }
.status-badge--hold      { background: var(--error-bg);   color: var(--error); }

/* Timeline for live tracking */
.timeline {
  position: relative;
  padding-left: var(--sp-10);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--sp-8);
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--sp-10) + 12px);
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--border);
}
.timeline-item:first-child .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,168,232,0.25);
}

.timeline-date {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-1);
}
.timeline-event {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-1);
}
.timeline-location {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ------------------------------------------------------------ */
/*  13. FORMS (Generic)                                         */
/* ------------------------------------------------------------ */
.form-group {
  margin-bottom: var(--sp-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.form-label .req { color: var(--error); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  color: var(--text);
  background: var(--white);
  transition: all var(--tr-base) var(--ease);
  outline: none;
  -webkit-appearance: none;
}
.form-control::placeholder { color: var(--text-light); }
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,168,232,0.12);
}
.form-control:invalid:not(:placeholder-shown) { border-color: var(--error); }

.form-control--error { border-color: var(--error) !important; }

.form-error {
  font-size: var(--text-xs);
  color: var(--error);
  margin-top: var(--sp-1);
  display: none;
}
.form-error.visible { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

/* ------------------------------------------------------------ */
/*  14. CARDS (Generic)                                         */
/* ------------------------------------------------------------ */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------ */
/*  15. TOAST NOTIFICATIONS                                     */
/* ------------------------------------------------------------ */
#toast-container {
  position: fixed;
  top: calc(var(--header-h) + var(--sp-4));
  right: var(--sp-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.06);
  min-width: 300px;
  max-width: 400px;
  pointer-events: auto;
  animation: toastIn 0.3s var(--ease) forwards;
  position: relative;
  overflow: hidden;
}
.toast::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.toast--success::before { background: var(--success); }
.toast--error::before   { background: var(--error); }
.toast--warning::before { background: var(--warning); }
.toast--info::before    { background: var(--info); }

.toast-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.9rem;
}
.toast--success .toast-icon { background: var(--success-bg); color: var(--success); }
.toast--error   .toast-icon { background: var(--error-bg);   color: var(--error); }
.toast--warning .toast-icon { background: var(--warning-bg); color: var(--warning); }
.toast--info    .toast-icon { background: var(--info-bg);    color: var(--info); }

.toast-body { flex: 1; }
.toast-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.toast-msg { font-size: var(--text-xs); color: var(--text-muted); }

.toast-close {
  color: var(--text-light); font-size: 1.1rem; line-height: 1;
  cursor: pointer; padding: var(--sp-1);
  transition: color var(--tr-fast) var(--ease);
}
.toast-close:hover { color: var(--text); }

.toast.hiding { animation: toastOut 0.25s var(--ease) forwards; }

@keyframes toastIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(110%); opacity: 0; }
}

/* ------------------------------------------------------------ */
/*  16. MODAL                                                   */
/* ------------------------------------------------------------ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(6,26,51,0.65);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6);
  animation: fadeIn 0.2s var(--ease);
}
.modal-overlay.hidden { display: none; }

.modal {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  animation: scaleIn 0.25s var(--ease);
  overflow: hidden;
}

.modal-header {
  padding: var(--sp-6) var(--sp-8);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: var(--text-xl); color: var(--navy); }
.modal-close {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1.1rem; cursor: pointer;
  transition: all var(--tr-fast) var(--ease);
}
.modal-close:hover { background: var(--bg-light); color: var(--text); }

.modal-body { padding: var(--sp-8); }
.modal-footer {
  padding: var(--sp-5) var(--sp-8);
  border-top: 1px solid var(--border-light);
  display: flex; justify-content: flex-end; gap: var(--sp-3);
}

/* ------------------------------------------------------------ */
/*  17. SKELETON LOADER                                         */
/* ------------------------------------------------------------ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-light) 25%, var(--bg-mid) 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  border-radius: var(--r-sm);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-line { height: 14px; margin-bottom: var(--sp-2); }
.skeleton-line--sm { width: 60%; }
.skeleton-line--lg { width: 85%; }

/* ------------------------------------------------------------ */
/*  18. PAGE HERO (non-home pages)                             */
/* ------------------------------------------------------------ */
.page-hero {
  padding: calc(var(--header-h) + var(--sp-16)) 0 var(--sp-16);
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}
.page-hero--gray::after { background: var(--bg-light); }

.page-hero__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.page-hero__title {
  font-size: clamp(var(--text-4xl), 5vw, 3.75rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: var(--sp-4);
  line-height: var(--lh-tight);
}
.page-hero__sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  line-height: var(--lh-relaxed);
}

/* ------------------------------------------------------------ */
/*  19. BREADCRUMB                                              */
/* ------------------------------------------------------------ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  margin-bottom: var(--sp-6);
}
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.35); }
.breadcrumb .current { color: rgba(255,255,255,0.85); font-weight: 500; }

/* ------------------------------------------------------------ */
/*  20. ADMIN PANEL                                             */
/* ------------------------------------------------------------ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-light);
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--navy-dark);
  min-height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
}

.admin-sidebar__brand {
  padding: var(--sp-6) var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar__nav {
  padding: var(--sp-6) var(--sp-3);
  flex: 1;
}

.admin-nav-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0 var(--sp-3);
  margin-bottom: var(--sp-3);
  margin-top: var(--sp-5);
}
.admin-nav-label:first-child { margin-top: 0; }

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: all var(--tr-fast) var(--ease);
  margin-bottom: var(--sp-1);
}
.admin-nav-item i { width: 18px; text-align: center; }
.admin-nav-item:hover, .admin-nav-item.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.admin-nav-item.active { background: var(--accent); color: var(--white); }

.admin-main { flex: 1; overflow-x: hidden; }

.admin-topbar {
  background: var(--white);
  padding: var(--sp-4) var(--sp-8);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
}

.admin-content { padding: var(--sp-8); }

.admin-page-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--sp-1);
}
.admin-page-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-8);
}

/* Admin stats cards */
.admin-stat-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.admin-stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.admin-stat-icon--blue   { background: var(--info-bg);    color: var(--info); }
.admin-stat-icon--green  { background: var(--success-bg); color: var(--success); }
.admin-stat-icon--orange { background: var(--warning-bg); color: var(--warning); }
.admin-stat-icon--red    { background: var(--error-bg);   color: var(--error); }
.admin-stat-num {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 2px;
}
.admin-stat-label { font-size: var(--text-xs); color: var(--text-muted); font-weight: 500; }

/* Data table */
.data-table-wrap {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.table-toolbar {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 360px;
}
.search-input-wrap i {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.9rem;
}
.search-input-wrap input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 2px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  outline: none;
  transition: all var(--tr-base) var(--ease);
}
.search-input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,168,232,0.1);
}

.filter-group {
  display: flex; gap: var(--sp-3); flex-wrap: wrap;
}

.filter-select {
  padding: 0.55rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  color: var(--text);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: all var(--tr-base) var(--ease);
  -webkit-appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}
.filter-select:focus { border-color: var(--accent); }

.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th, .data-table td {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-sm);
}
.data-table th {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.data-table th:hover { color: var(--navy); }
.data-table th .sort-icon { margin-left: var(--sp-1); opacity: 0.4; }
.data-table th.sorted .sort-icon { opacity: 1; color: var(--accent); }

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-light); }

.action-btns {
  display: flex; gap: var(--sp-2); align-items: center;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.pagination-info { font-size: var(--text-xs); color: var(--text-muted); }
.pagination-pages { display: flex; gap: var(--sp-1); }
.page-btn {
  min-width: 32px; height: 32px; padding: 0 var(--sp-2);
  border-radius: var(--r-sm); font-size: var(--text-xs); font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); cursor: pointer;
  transition: all var(--tr-fast) var(--ease);
}
.page-btn:hover { background: var(--bg-light); color: var(--navy); }
.page-btn.active { background: var(--navy); color: var(--white); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ------------------------------------------------------------ */
/*  21. LOGIN PAGE                                              */
/* ------------------------------------------------------------ */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--teal) 150%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
}

.login-card {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 420px;
  padding: var(--sp-10) var(--sp-10);
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------ */
/*  22. TESTIMONIALS                                            */
/* ------------------------------------------------------------ */
.testimonial-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--accent-light);
  position: absolute;
  top: var(--sp-2); left: var(--sp-5);
  line-height: 1;
}

.testimonial-body {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; color: var(--navy); font-size: var(--text-sm); }
.testimonial-role { font-size: var(--text-xs); color: var(--text-muted); }

/* Stars */
.stars { display: flex; gap: 2px; color: #FBBF24; margin-bottom: var(--sp-5); }
.stars i { font-size: 0.85rem; }

/* ------------------------------------------------------------ */
/*  23. CTA BANNER                                              */
/* ------------------------------------------------------------ */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
  padding: var(--sp-20) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  right: -100px; top: -100px;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  left: -50px; bottom: -80px;
}

.cta-banner h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  color: var(--white);
  margin-bottom: var(--sp-4);
  position: relative; z-index: 1;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto var(--sp-8);
  font-size: var(--text-lg);
  position: relative; z-index: 1;
}
.cta-banner .cta-actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
  position: relative; z-index: 1;
}

/* ------------------------------------------------------------ */
/*  24. SCROLL REVEAL ANIMATION                                 */
/* ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--tr-slow) var(--ease), transform var(--tr-slow) var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ------------------------------------------------------------ */
/*  25. GENERIC ANIMATIONS                                      */
/* ------------------------------------------------------------ */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* Spinner */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto;
}

/* ---- Tracking Loading State ---- */
@keyframes trackPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(0.96); }
}
@keyframes progressBar {
  0%   { width: 0%; }
  30%  { width: 35%; }
  60%  { width: 65%; }
  85%  { width: 85%; }
  100% { width: 95%; }
}
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

#track-loading,
#live-loading .card {
  animation: trackPulse 2s ease-in-out infinite;
}

.track-progress-bar {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-top: var(--sp-4);
}
.track-progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  border-radius: var(--r-full);
  animation: progressBar 25s ease-out forwards;
}

/* ------------------------------------------------------------ */
/*  26. CONTACT PAGE                                            */
/* ------------------------------------------------------------ */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
  padding: var(--sp-6);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--tr-base) var(--ease);
}
.contact-info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.contact-info-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent-light), rgba(31,122,140,0.12));
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-card h4 { font-size: var(--text-sm); font-weight: 700; color: var(--navy); margin-bottom: var(--sp-1); }
.contact-info-card p  { font-size: var(--text-sm); color: var(--text-muted); }

/* ------------------------------------------------------------ */
/*  27. RESPONSIVE BREAKPOINTS                                  */
/* ------------------------------------------------------------ */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(2n) { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { width: 220px; }
}

/* Tablet ≤ 768px */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  /* Fix: backdrop-filter on the header breaks position:fixed for the mobile menu */
  .site-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--navy-dark);
  }

  /* Fix: constrain logo so it doesn't overflow the mobile header */
  .site-logo__img {
    height: 44px;
    max-height: 44px;
  }
  .site-header.scrolled .site-logo__img {
    height: 36px;
  }
  /* Ensure header-inner doesn't overflow */
  .header-inner {
    gap: var(--sp-3);
  }

  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--navy-dark); /* Solid fallback for mobile browsers */
    padding: var(--sp-8) var(--sp-6);
    gap: var(--sp-2);
    align-items: flex-start;
    z-index: 999;
    animation: fadeIn 0.2s var(--ease);
  }
  .site-nav.open .nav-link { font-size: var(--text-lg); padding: var(--sp-4); width: 100%; }
  .site-nav.open .nav-cta { font-size: var(--text-lg); padding: 0.75rem 1.75rem; }

  /* Fix: prevent vertical centering from pushing content under the header on small mobile screens */
  .hero { align-items: flex-start; padding-top: calc(var(--header-h) + 40px); }
  .hero-content { padding-top: 0; }

  .hero-stats { flex-direction: column; gap: var(--sp-6); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .quick-track { padding: var(--sp-6); }
  .track-form-group { flex-direction: column; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }

  .section { padding: var(--sp-16) 0; }

  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%; min-height: auto; position: relative;
    flex-direction: row; flex-wrap: wrap;
  }

  .data-table-wrap { overflow-x: auto; }

  /* Admin table → card layout on mobile */
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td {
    display: block; width: 100%;
  }
  .data-table tr {
    padding: var(--sp-4);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    margin: var(--sp-3) var(--sp-4);
    background: var(--white);
    box-shadow: var(--shadow-xs);
  }
  .data-table td {
    padding: var(--sp-2) 0;
    border: none;
    display: flex; align-items: center; justify-content: space-between;
    font-size: var(--text-sm);
  }
  .data-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-muted);
    font-size: var(--text-xs);
    text-transform: uppercase;
    min-width: 120px;
  }
}

/* Mobile ≤ 480px */
@media (max-width: 480px) {
  :root { --header-h: 60px; }
  .site-logo__img {
    height: 38px;
    max-height: 38px;
  }
  .container { padding: 0 var(--sp-4); }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; }
  .hero-title { font-size: 2.25rem; }
  .login-card { padding: var(--sp-8) var(--sp-6); }
}
