/* =============================================================================
   SHIPPING WISH LLC — Design System v2.0
   2026 Modern Enterprise Trucking Technology Platform
   
   Inspired by: Samsara, Motive, Transfix, project44 — premium B2B SaaS
   ============================================================================= */

/* --------------------------------------------------------------------------- */
/* GOOGLE FONTS                                                                 */
/* --------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* --------------------------------------------------------------------------- */
/* DESIGN TOKENS                                                                */
/* --------------------------------------------------------------------------- */
:root {
  /* Color — Neutrals */
  --color-white:      #ffffff;
  --color-gray-50:    #f8fafc;
  --color-gray-100:   #f1f5f9;
  --color-gray-200:   #e2e8f0;
  --color-gray-300:   #cbd5e1;
  --color-gray-400:   #94a3b8;
  --color-gray-500:   #64748b;
  --color-gray-600:   #475569;
  --color-gray-700:   #334155;
  --color-gray-800:   #1e293b;
  --color-gray-900:   #0f172a;
  --color-gray-950:   #080d17;

  /* Color — Brand Navy (Primary) */
  --color-navy-900:   #0f172a;
  --color-navy-800:   #1e293b;
  --color-navy-700:   #1e3a5f;
  --color-navy-600:   #1e40af;

  /* Color — Brand Amber (Accent) */
  --color-amber-50:   #fffbeb;
  --color-amber-100:  #fef3c7;
  --color-amber-200:  #fde68a;
  --color-amber-300:  #fcd34d;
  --color-amber-400:  #fbbf24;
  --color-amber-500:  #f59e0b;
  --color-amber-600:  #d97706;
  --color-amber-700:  #b45309;

  /* Color — Blue (Secondary CTA, info) */
  --color-blue-50:    #eff6ff;
  --color-blue-100:   #dbeafe;
  --color-blue-500:   #3b82f6;
  --color-blue-600:   #2563eb;
  --color-blue-700:   #1d4ed8;

  /* Color — Status */
  --color-success:    #10b981;
  --color-warning:    #f59e0b;
  --color-error:      #ef4444;
  --color-info:       #3b82f6;

  /* Semantic tokens */
  --text-primary:     var(--color-gray-900);
  --text-secondary:   var(--color-gray-600);
  --text-muted:       var(--color-gray-400);
  --text-inverted:    var(--color-white);
  --text-accent:      var(--color-amber-600);

  --bg-page:          var(--color-gray-50);
  --bg-card:          var(--color-white);
  --bg-dark:          var(--color-navy-900);
  --bg-dark-card:     var(--color-navy-800);
  --bg-subtle:        var(--color-gray-100);

  --border-default:   var(--color-gray-200);
  --border-strong:    var(--color-gray-300);
  --border-subtle:    var(--color-gray-100);

  --accent-primary:   var(--color-amber-500);
  --accent-hover:     var(--color-amber-600);
  --accent-subtle:    var(--color-amber-50);

  /* Typography */
  --font-sans:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:        'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --text-xs:          0.75rem;     /* 12px */
  --text-sm:          0.875rem;    /* 14px */
  --text-base:        1rem;        /* 16px */
  --text-lg:          1.125rem;    /* 18px */
  --text-xl:          1.25rem;     /* 20px */
  --text-2xl:         1.5rem;      /* 24px */
  --text-3xl:         1.875rem;    /* 30px */
  --text-4xl:         2.25rem;     /* 36px */
  --text-5xl:         3rem;        /* 48px */
  --text-6xl:         3.75rem;     /* 60px */
  --text-7xl:         4.5rem;      /* 72px */

  --font-light:       300;
  --font-normal:      400;
  --font-medium:      500;
  --font-semibold:    600;
  --font-bold:        700;
  --font-extrabold:   800;
  --font-black:       900;

  --leading-tight:    1.2;
  --leading-snug:     1.375;
  --leading-normal:   1.5;
  --leading-relaxed:  1.625;

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

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-sm:   640px;
  --container-md:   768px;
  --container-lg:   1024px;
  --container-xl:   1280px;
  --container-2xl:  1400px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------- */
/* TYPOGRAPHY                                                                   */
/* --------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

.display-1 { font-size: var(--text-7xl); font-weight: var(--font-black); line-height: 1.05; letter-spacing: -0.03em; }
.display-2 { font-size: var(--text-6xl); font-weight: var(--font-black); line-height: 1.08; letter-spacing: -0.025em; }
.heading-1 { font-size: var(--text-5xl); font-weight: var(--font-extrabold); line-height: 1.1; letter-spacing: -0.02em; }
.heading-2 { font-size: var(--text-4xl); font-weight: var(--font-bold); line-height: 1.15; letter-spacing: -0.015em; }
.heading-3 { font-size: var(--text-3xl); font-weight: var(--font-bold); line-height: 1.2; letter-spacing: -0.01em; }
.heading-4 { font-size: var(--text-2xl); font-weight: var(--font-semibold); line-height: 1.3; }
.heading-5 { font-size: var(--text-xl); font-weight: var(--font-semibold); line-height: 1.4; }
.heading-6 { font-size: var(--text-lg); font-weight: var(--font-semibold); line-height: 1.4; }

.body-xl  { font-size: var(--text-xl);  line-height: var(--leading-relaxed); }
.body-lg  { font-size: var(--text-lg);  line-height: var(--leading-relaxed); }
.body-md  { font-size: var(--text-base); line-height: var(--leading-relaxed); }
.body-sm  { font-size: var(--text-sm);  line-height: var(--leading-normal); }
.body-xs  { font-size: var(--text-xs);  line-height: var(--leading-normal); }

.label    { font-size: var(--text-xs); font-weight: var(--font-semibold); letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow  { font-size: var(--text-sm); font-weight: var(--font-semibold); letter-spacing: 0.1em; text-transform: uppercase; }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-inverted  { color: var(--text-inverted); }
.text-accent    { color: var(--text-accent); }
.text-success   { color: var(--color-success); }
.text-error     { color: var(--color-error); }

/* --------------------------------------------------------------------------- */
/* LAYOUT                                                                       */
/* --------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-2xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-lg {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-md {
  width: 100%;
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-24);
}

.section-sm {
  padding-block: var(--space-16);
}

.section-lg {
  padding-block: var(--space-32);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-inverted);
}

.section-subtle {
  background-color: var(--bg-subtle);
}

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

/* Flex */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* --------------------------------------------------------------------------- */
/* NAVIGATION                                                                   */
/* --------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 3000;
  background-color: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  box-sizing: border-box;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--container-2xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-amber-500), var(--color-amber-600));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  font-weight: var(--font-black);
  color: var(--color-gray-900);
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.nav-logo-text span {
  color: var(--color-amber-400);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav-links a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: rgba(255,255,255,0.92);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--color-white);
  background-color: rgba(255,255,255,0.1);
}

.nav-links a.active {
  color: var(--color-amber-400);
}

/* Dropdown — with gap bridge so mouse doesn't lose hover */
.nav-item-dropdown {
  position: relative;
}

/* Invisible bridge fills the 12px gap between trigger and menu */
.nav-item-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 14px;
  background: transparent;
  display: none;
}

.nav-item-dropdown:hover::after {
  display: block;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  min-width: 230px;
  box-shadow: var(--shadow-2xl);
  z-index: 200;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-weight: var(--font-medium);
}

.nav-dropdown-menu a:hover {
  color: var(--color-amber-300);
  background-color: rgba(255,255,255,0.08);
}

.nav-dropdown-menu .dropdown-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: var(--space-3) var(--space-4) var(--space-1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Mobile menu */
.nav-hamburger {
  display: none;
  position: relative;
  z-index: 3001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  flex-shrink: 0 !important;
  -webkit-tap-highlight-color: rgba(245, 158, 11, 0.25);
  touch-action: manipulation;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 992px) {
  .nav-links {
    display: none !important;
  }
  .nav-actions .live-status,
  .nav-actions #nav-login-btn {
    display: none !important;
  }
  .nav-actions #nav-cta-btn {
    font-size: 11px !important;
    padding: 6px 12px !important;
  }
  .nav-hamburger {
    display: flex !important;
  }
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  top: 0;
  padding: 84px 22px 32px;
  background: #ffffff;
  z-index: 2500;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.nav-mobile.open {
  display: flex;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-mobile a {
  display: block;
  padding: var(--space-4) var(--space-2);
  font-size: var(--text-lg);
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0;
  text-decoration: none;
  font-weight: 600;
}

.nav-mobile a.active {
  color: var(--color-amber-400) !important;
  font-weight: 700;
}

.nav-mobile .btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 20px !important;
  border-radius: var(--radius-lg);
  font-size: var(--text-base) !important;
  border-bottom: none !important;
  margin-top: 0 !important;
}

.nav-mobile-cta-group {
  margin-top: 24px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-mobile-cta-group .btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 20px !important;
  border-radius: var(--radius-lg);
  font-size: var(--text-base) !important;
  border-bottom: none !important;
  margin: 0 !important;
  text-decoration: none !important;
}

.nav-mobile-cta-group .btn-secondary-glass {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

.nav-mobile-cta-group .btn-primary-amber {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
}

/* --------------------------------------------------------------------------- */
/* BUTTONS                                                                      */
/* --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn:focus-visible {
  outline: 2px solid var(--color-amber-500);
  outline-offset: 2px;
}

/* Sizes */
.btn-xs  { padding: 0.375rem 0.75rem; font-size: var(--text-xs); border-radius: var(--radius-sm); }
.btn-sm  { padding: 0.5rem 1rem; font-size: var(--text-sm); }
.btn-lg  { padding: 0.875rem 1.75rem; font-size: var(--text-base); border-radius: var(--radius-lg); }
.btn-xl  { padding: 1.125rem 2.25rem; font-size: var(--text-lg); border-radius: var(--radius-lg); }

/* Full width */
.btn-block { width: 100%; }

/* Variants */
.btn-primary {
  background: linear-gradient(135deg, var(--color-amber-500), var(--color-amber-600));
  color: var(--color-gray-900);
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-amber-400), var(--color-amber-500));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.25);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}

.btn-dark {
  background: var(--color-gray-900);
  color: var(--color-white);
  border-color: var(--color-gray-700);
}
.btn-dark:hover {
  background: var(--color-gray-800);
  border-color: var(--color-gray-600);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-gray-900);
  border-color: var(--border-default);
  box-shadow: var(--shadow-xs);
}
.btn-light:hover {
  background: var(--color-gray-50);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--color-error);
  color: var(--color-white);
  border-color: transparent;
}
.btn-danger:hover {
  background: #dc2626;
}

/* --------------------------------------------------------------------------- */
/* CARDS                                                                        */
/* --------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-body { padding: var(--space-6); }
.card-body-lg { padding: var(--space-8); }

.card-hover {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.card-dark {
  background: var(--bg-dark-card);
  border-color: rgba(255,255,255,0.07);
  color: var(--text-inverted);
}

/* --------------------------------------------------------------------------- */
/* BADGES                                                                       */
/* --------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-amber  { background: var(--color-amber-100); color: var(--color-amber-700); }
.badge-blue   { background: var(--color-blue-100);  color: var(--color-blue-700); }
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-gray   { background: var(--color-gray-100); color: var(--color-gray-700); }
.badge-navy   { background: rgba(30,40,80,0.12); color: var(--color-navy-700); }
.badge-outline { background: transparent; border: 1.5px solid currentColor; }

/* --------------------------------------------------------------------------- */
/* FORMS                                                                        */
/* --------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.form-label.required::after {
  content: ' *';
  color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--color-white);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
}

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

/* --------------------------------------------------------------------------- */
/* STATUS INDICATORS                                                            */
/* --------------------------------------------------------------------------- */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.active   { background: var(--color-success); box-shadow: 0 0 0 2px rgba(16,185,129,0.2); }
.status-dot.warning  { background: var(--color-warning); }
.status-dot.error    { background: var(--color-error); }
.status-dot.inactive { background: var(--color-gray-400); }

/* --------------------------------------------------------------------------- */
/* SECTION HEADERS                                                              */
/* --------------------------------------------------------------------------- */
.section-header {
  margin-bottom: var(--space-16);
}

.section-header.center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-amber-600);
  margin-bottom: var(--space-4);
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-amber-500);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-4xl));
  font-weight: var(--font-extrabold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-title.inverted { color: var(--text-inverted); }

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.section-subtitle.inverted { color: rgba(255,255,255,0.65); }

/* --------------------------------------------------------------------------- */
/* STAT CARD                                                                    */
/* --------------------------------------------------------------------------- */
.stat-card {
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-value {
  font-size: var(--text-4xl);
  font-weight: var(--font-black);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-card .stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

.stat-card .stat-change {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  margin-top: var(--space-2);
}

.stat-card.dark {
  background: var(--bg-dark-card);
  border-color: rgba(255,255,255,0.07);
}

.stat-card.dark .stat-value { color: var(--text-inverted); }
.stat-card.dark .stat-label { color: rgba(255,255,255,0.5); }

/* --------------------------------------------------------------------------- */
/* ICON BOXES                                                                   */
/* --------------------------------------------------------------------------- */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.icon-box-sm { width: 36px; height: 36px; font-size: 16px; border-radius: var(--radius-md); }
.icon-box-lg { width: 64px; height: 64px; font-size: 28px; border-radius: var(--radius-xl); }

.icon-box-amber  { background: var(--color-amber-50);  color: var(--color-amber-600); }
.icon-box-blue   { background: var(--color-blue-50);   color: var(--color-blue-600); }
.icon-box-green  { background: #d1fae5;                color: #047857; }
.icon-box-navy   { background: rgba(15,23,42,0.07);    color: var(--color-navy-800); }
.icon-box-white  { background: rgba(255,255,255,0.12); color: var(--color-white); }

/* --------------------------------------------------------------------------- */
/* FEATURE CARDS                                                                */
/* --------------------------------------------------------------------------- */
.feature-card {
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--color-amber-300);
  box-shadow: 0 0 0 1px var(--color-amber-200), var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin: var(--space-4) 0 var(--space-2);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------- */
/* PROCESS STEPS                                                                */
/* --------------------------------------------------------------------------- */
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-gray-900);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------- */
/* TABLES                                                                       */
/* --------------------------------------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: var(--text-sm);
}

.table th {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--border-default);
  text-align: left;
  white-space: nowrap;
}

.table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-default);
  color: var(--text-primary);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: var(--color-gray-50);
}

/* --------------------------------------------------------------------------- */
/* ACCORDION / FAQ                                                              */
/* --------------------------------------------------------------------------- */
.accordion-item {
  border-bottom: 1px solid var(--border-default);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  background: none;
  border: none;
  text-align: left;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  cursor: pointer;
  gap: var(--space-4);
}

.accordion-trigger .accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  transition: all var(--transition-base);
  color: var(--text-secondary);
}

.accordion-item.open .accordion-icon {
  background: var(--color-amber-100);
  color: var(--color-amber-700);
  transform: rotate(45deg);
}

.accordion-content {
  display: none;
  padding-bottom: var(--space-5);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.accordion-item.open .accordion-content {
  display: block;
}

/* --------------------------------------------------------------------------- */
/* TESTIMONIALS                                                                 */
/* --------------------------------------------------------------------------- */
.testimonial-card {
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.testimonial-quote {
  font-size: var(--text-2xl);
  color: var(--color-amber-500);
  margin-bottom: var(--space-4);
  line-height: 1;
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-amber-500), var(--color-amber-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  color: var(--color-gray-900);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
}

.testimonial-company {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------- */
/* HERO                                                                         */
/* --------------------------------------------------------------------------- */
.hero {
  background: var(--color-gray-900);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(245,158,11,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(29,78,216,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------- */
/* TRUST BAR                                                                    */
/* --------------------------------------------------------------------------- */
.trust-bar {
  background: var(--color-white);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  padding-block: var(--space-5);
}

.trust-bar-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.trust-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.trust-bar-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-black);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.trust-bar-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------- */
/* FOOTER                                                                       */
/* --------------------------------------------------------------------------- */
.footer {
  background: var(--color-gray-950);
  color: rgba(255,255,255,0.6);
}

.footer-top {
  padding-block: var(--space-16) var(--space-12);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  max-width: 300px;
  margin-top: var(--space-4);
  color: rgba(255,255,255,0.65);
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  letter-spacing: 0.01em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.72);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-amber-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-block: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.72);
}

.footer-contact-item a:hover {
  color: var(--color-amber-400);
}

/* --------------------------------------------------------------------------- */
/* TOAST NOTIFICATIONS                                                          */
/* --------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-gray-900);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-size: var(--text-sm);
  color: var(--color-white);
  pointer-events: all;
  animation: toastIn 0.3s ease;
  max-width: 360px;
}

.toast.success { border-left: 3px solid var(--color-success); }
.toast.error   { border-left: 3px solid var(--color-error); }
.toast.warning { border-left: 3px solid var(--color-warning); }

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

/* --------------------------------------------------------------------------- */
/* EMPTY STATES                                                                 */
/* --------------------------------------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  text-align: center;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
  opacity: 0.4;
}

.empty-state h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.empty-state p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 320px;
}

/* --------------------------------------------------------------------------- */
/* MODAL                                                                        */
/* --------------------------------------------------------------------------- */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 4000;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal-backdrop.open {
  display: flex !important;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-6) 0;
}

.modal-header h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
}

.modal-body { padding: var(--space-6); }
.modal-footer {
  padding: 0 var(--space-6) var(--space-6);
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}
.modal-lg { max-width: 840px; }

/* --------------------------------------------------------------------------- */
/* DASHBOARD & TMS APP SHELL                                                    */
/* --------------------------------------------------------------------------- */
.app-shell, .app-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--color-gray-50);
}

html, body.app-body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  background: var(--color-gray-50);
}

.app-sidebar {
  background: var(--color-gray-900);
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 8px 8px 12px;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

@supports (height: 100dvh) {
  .app-sidebar {
    height: 100dvh;
    max-height: 100dvh;
  }
}

.app-sidebar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sidebar-nav-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-nav-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sidebar-foot {
  flex: 0 0 auto;
  margin-top: 8px;
  padding-top: 8px;
  padding-bottom: 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3) var(--space-3) var(--space-3);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: var(--space-3) 0 var(--space-1) var(--space-3);
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-bottom: 2px;
}

.sidebar-nav-link:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

.sidebar-nav-link.active {
  color: var(--color-amber-400);
  background: rgba(245,158,11,0.12);
  font-weight: var(--font-semibold);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  margin-top: var(--space-6);
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}

.app-header {
  height: 72px;
  background: var(--color-white);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  position: sticky;
  top: 0;
  z-index: 90;
}

.app-content {
  padding: var(--space-8);
  flex: 1;
}

/* Notification Bell Dropdown */
.notif-wrapper {
  position: relative;
}

.notif-bell-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-gray-100);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.notif-bell-btn:hover {
  background: var(--color-gray-200);
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-error);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

.notif-popover {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 360px;
  background: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  z-index: 200;
  overflow: hidden;
}

.notif-popover.open {
  display: block;
}

.notif-popover-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-gray-50);
}

.notif-popover-list {
  max-height: 320px;
  overflow-y: auto;
}

.notif-item {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: var(--space-3);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.notif-item:hover {
  background: var(--color-gray-50);
}

.notif-item.unread {
  background: var(--color-amber-50);
}

/* Stat KPI Cards */
.stat-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.stat-kpi-card {
  background: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.stat-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xl);
  background: var(--color-amber-50);
  color: var(--color-amber-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-kpi-title {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-kpi-val {
  font-size: var(--text-3xl);
  font-weight: var(--font-black);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Data Tables */
.tms-table-card {
  background: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

.tms-table-wrapper {
  overflow-x: auto;
}

.tms-table-v2 {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-sm);
}

.tms-table-v2 th {
  background: var(--color-gray-50);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-default);
}

.tms-table-v2 td {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

.tms-table-v2 tr:hover td {
  background: var(--color-gray-50);
}

@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .stat-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .stat-card-grid { grid-template-columns: 1fr; }
  .app-content { padding: var(--space-4); }
}

/* --------------------------------------------------------------------------- */
/* UTILITIES                                                                    */
/* --------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.mt-auto { margin-top: auto; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

.w-full  { width: 100%; }
.h-full  { height: 100%; }

.rounded-full { border-radius: var(--radius-full); }
.overflow-hidden { overflow: hidden; }

/* Dividers */
.divider {
  height: 1px;
  background: var(--border-default);
  margin-block: var(--space-6);
}

/* --------------------------------------------------------------------------- */
/* ANIMATIONS                                                                   */
/* --------------------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-up   { animation: fadeUp 0.6s ease forwards; }
.animate-fade-in   { animation: fadeIn 0.4s ease forwards; }
.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }
.animate-delay-400 { animation-delay: 400ms; }
.animate-delay-500 { animation-delay: 500ms; }

/* Scroll reveal — add via IntersectionObserver JS */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------- */
/* RESPONSIVE                                                                   */
/* --------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-6xl: 2.75rem;
    --text-7xl: 3.25rem;
  }

  .container,
  .container-lg,
  .container-md {
    padding-inline: var(--space-4);
  }

  .nav-links,
  .nav-actions .btn:not(.btn-primary) {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-bar-grid {
    gap: var(--space-8);
  }

  .section { padding-block: var(--space-16); }
  .section-lg { padding-block: var(--space-20); }
}

@media (max-width: 480px) {
  .trust-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: var(--space-6);
  }
}

/* =============================================================================
   ENTERPRISE ERP 2026 — HIGH PRODUCTIVITY UNIFIED DASHBOARD STYLES
   ============================================================================= */

/* Search & Filter Toolbar */
.toolbar-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--border-default);
  border-bottom: none;
  border-top-left-radius: var(--radius-2xl);
  border-top-right-radius: var(--radius-2xl);
  flex-wrap: wrap;
}

.search-input-group {
  position: relative;
  min-width: 280px;
  flex: 1;
  max-width: 420px;
}

.search-input-group input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.4rem;
  font-size: var(--text-sm);
  background: var(--color-gray-50);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-full);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input-group input:focus {
  background: var(--color-white);
  border-color: var(--color-amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.search-input-group .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Filter Tab Pills */
.filter-tabs-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-gray-100);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
}

.filter-tab-pill {
  padding: 5px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-tab-pill:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.6);
}

.filter-tab-pill.active {
  background: var(--color-white);
  color: var(--color-navy-900);
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

.filter-tab-pill .count-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  font-size: 10px;
  border-radius: 10px;
  background: var(--color-gray-200);
  color: var(--color-gray-700);
}

.filter-tab-pill.active .count-badge {
  background: var(--color-amber-100);
  color: var(--color-amber-800);
}

/* Status Badges Enhanced */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  text-transform: capitalize;
  white-space: nowrap;
}

.badge-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-status.new           { background: #eff6ff; color: #1d4ed8; }
.badge-status.contacted     { background: #fef3c7; color: #b45309; }
.badge-status.interested    { background: #ecfdf5; color: #047857; }
.badge-status.packet_sent   { background: #f3e8ff; color: #6b21a8; }
.badge-status.active        { background: #d1fae5; color: #065f46; }
.badge-status.dead          { background: #f1f5f9; color: #64748b; }

.badge-status.booked        { background: #eff6ff; color: #1e40af; }
.badge-status.dispatched    { background: #fef3c7; color: #92400e; }
.badge-status.in_transit    { background: #e0e7ff; color: #3730a3; position: relative; }
.badge-status.in_transit::before { animation: pulseDot 1.5s infinite; }
.badge-status.delivered     { background: #d1fae5; color: #065f46; }
.badge-status.invoiced      { background: #fce7f3; color: #9d174d; }
.badge-status.paid          { background: #dcfce7; color: #15803d; }

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

/* FMCSA Live Search Widget Card */
.fmcsa-widget-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  color: #fff;
  margin-bottom: var(--space-6);
  box-shadow: 0 12px 30px rgba(15,23,42,0.2);
  border: 1px solid rgba(255,255,255,0.08);
}

.fmcsa-widget-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.fmcsa-widget-title {
  font-size: var(--text-base);
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fmcsa-widget-title .gov-badge {
  background: rgba(245,158,11,0.2);
  color: var(--color-amber-400);
  border: 1px solid rgba(245,158,11,0.3);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fmcsa-search-bar-inner {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.fmcsa-search-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  outline: none;
  transition: all var(--transition-fast);
}

.fmcsa-search-input:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-amber-400);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.2);
}

.fmcsa-search-input::placeholder {
  color: rgba(255,255,255,0.4);
}

/* Carrier Table Action Pill Buttons */
.btn-table-action {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid var(--border-default);
  background: var(--color-white);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-table-action:hover {
  background: var(--color-gray-100);
  border-color: var(--border-strong);
}

.btn-table-action.primary {
  background: var(--color-amber-500);
  color: var(--color-navy-900);
  border-color: transparent;
}

.btn-table-action.primary:hover {
  background: var(--color-amber-600);
}

.btn-table-action.call {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}
.btn-table-action.call:hover { background: #dcfce7; }

.btn-table-action.sms {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}
.btn-table-action.sms:hover { background: #dbeafe; }

.btn-table-action.email {
  background: #fcf4ff;
  color: #7e22ce;
  border-color: #f0abfc;
}
.btn-table-action.email:hover { background: #fae8ff; }

/* User / Lead Ownership Badge */
.owner-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}

.owner-pill.unassigned {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.owner-pill .avatar-micro {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-amber-500);
  color: #0f172a;
  font-size: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Equipment Pill */
.equip-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: var(--color-gray-100);
  color: var(--color-gray-800);
  border: 1px solid var(--border-default);
}

/* --------------------------------------------------------------------------- */
/* PRICING SECTION (ENTERPRISE FIT & FINISH)                                  */
/* --------------------------------------------------------------------------- */
.pricing-section {
  padding: var(--space-16) 0;
  background: linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-2xl);
  margin: var(--space-12) 0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.pricing-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-12);
  padding: 0 var(--space-4);
}

.pricing-header h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.pricing-header p {
  font-size: var(--text-base);
  color: #94a3b8;
  line-height: 1.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.pricing-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  color: #0f172a;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.pricing-card.featured {
  background: #ffffff;
  border: 2px solid #f59e0b;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.22);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: 0 25px 50px rgba(245, 158, 11, 0.28);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

.pricing-card h3 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.pricing-trucks {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.pricing-rate {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid #e2e8f0;
}

.pricing-rate .num {
  font-size: 2.75rem;
  font-weight: 800;
  color: #0b1220;
  line-height: 1;
}

.pricing-rate .unit {
  font-size: var(--text-sm);
  color: #94a3b8;
  font-weight: 600;
}

.pricing-desc {
  font-size: var(--text-xs);
  color: #475569;
  line-height: 1.5;
  margin-bottom: var(--space-6);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-features li {
  font-size: var(--text-xs);
  color: #334155;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.pricing-features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    width: 100%;
    padding-inline: var(--space-4);
    box-sizing: border-box;
  }
  .pricing-card {
    width: 100%;
    box-sizing: border-box;
  }
  .pricing-card.featured {
    transform: none !important;
  }
  .pricing-card.featured:hover {
    transform: translateY(-4px) !important;
  }
  .pricing-badge {
    max-width: 90%;
    white-space: normal;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------- */
/* CTA BANNER SECTION (ENTERPRISE HERO CTA)                                   */
/* --------------------------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-2xl);
  padding: 56px 32px;
  text-align: center;
  margin: var(--space-12) auto;
  max-width: 1140px;
  width: calc(100% - 32px);
  box-sizing: border-box;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0) 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.cta-section p {
  font-size: var(--text-base);
  color: #cbd5e1 !important;
  max-width: 620px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}

.cta-btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cta-trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
  font-size: var(--text-xs);
  color: #94a3b8;
  flex-wrap: wrap;
}

.cta-trust-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 40px 18px;
    margin: var(--space-8) auto;
    width: calc(100% - 24px);
  }
  .cta-section h2 {
    font-size: var(--text-xl);
  }
  .cta-btn-group {
    flex-direction: column;
    width: 100%;
  }
  .cta-btn-group .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------- */
/* CATALOG GRID RESPONSIVE (BEYOND BASIC DISPATCH)                             */
/* --------------------------------------------------------------------------- */
.catalog-grid-responsive {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  max-width: 1140px;
  margin: 0 auto;
}

.catalog-card-item {
  background: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  overflow: hidden;
  word-wrap: break-word;
}

.catalog-card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-amber-400);
}

@media (max-width: 768px) {
  .catalog-grid-responsive {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 4px !important;
  }
  .catalog-card-item {
    padding: 16px 10px !important;
  }
  .catalog-card-item h4 {
    font-size: 13px !important;
    line-height: 1.3 !important;
    word-break: break-word;
  }
  .catalog-card-item p {
    font-size: 11px !important;
    line-height: 1.3 !important;
    word-break: break-word;
  }
}

@media (max-width: 992px) {
  .kpi-cards-responsive {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}
@media (max-width: 576px) {
  .kpi-cards-responsive {
    grid-template-columns: 1fr !important;
  }
}

/* --------------------------------------------------------------------------- */
/* TMS PLATFORM SHOWCASE (ENTERPRISE MOCKUP)                                  */
/* --------------------------------------------------------------------------- */
.platform-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.platform-preview {
  background: linear-gradient(145deg, #0b1120 0%, #0f172a 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-2xl);
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 158, 11, 0.1);
  position: relative;
}

.platform-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: var(--space-3);
  border-radius: var(--radius-lg);
}

.platform-table-wrapper::-webkit-scrollbar {
  height: 4px;
}

.platform-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.4);
  border-radius: 4px;
}

@media (max-width: 992px) {
  .platform-grid-container {
    grid-template-columns: 1fr !important;
    gap: var(--space-8) !important;
  }

  .platform-stat-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-3) !important;
  }

  .platform-stat {
    padding: 12px 10px !important;
  }

  .platform-stat .ps-value {
    font-size: 1.4rem !important;
  }

  .platform-table-row {
    min-width: 580px !important;
  }

  .platform-preview {
    padding: 16px 12px !important;
  }
}

/* --------------------------------------------------------------------------- */
/* HERO SECTION (SERVICES & PUBLIC PAGES)                                      */
/* --------------------------------------------------------------------------- */
.hero {
  padding: 100px 24px 80px;
  background: linear-gradient(180deg, #090d16 0%, #0f172a 60%, #1e293b 100%);
  color: #ffffff !important;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0) 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  color: #ffffff !important;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 820px;
  margin: 0 auto 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #cbd5e1 !important;
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero .cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a !important;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1rem;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
  transition: all 0.25s ease;
  text-decoration: none;
}

.hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.45);
}

.hero .btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.live-status {
  color: #34d399 !important;
  font-weight: 700;
}

@media (max-width: 768px) {
  .hero {
    padding: 70px 20px 50px;
  }
  .hero .cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero .cta-group a {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------- */
/* SUB-PAGE RESPONSIVE GRID SYSTEM (FACTORING, INSURANCE, ELD, DOT, DISPATCH) */
/* --------------------------------------------------------------------------- */
.responsive-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.responsive-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

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

@media (max-width: 992px) {
  .responsive-grid-3col {
    grid-template-columns: 1fr !important;
    gap: var(--space-4) !important;
  }

  .responsive-grid-2col {
    grid-template-columns: 1fr !important;
    gap: var(--space-4) !important;
  }

  .factoring-grid, .insurance-grid, .eld-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-8) !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
    gap: var(--space-3) !important;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
    line-height: 1.15 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .section {
    padding-block: var(--space-12) !important;
  }
}

.social-icon-btn {
  transition: all 0.25s ease !important;
}
.social-icon-btn:hover {
  transform: translateY(-3px) scale(1.1);
  background: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* =============================================================================
   UI LOCK — one size, one chrome, every page
   ============================================================================= */
body.app-body,
body:has(.app-shell) {
  background: var(--color-gray-50);
  font-size: 14px;
}

.app-shell,
.app-layout {
  grid-template-columns: 248px 1fr;
  height: 100vh;
  max-height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  align-items: start;
}

@supports (height: 100dvh) {
  .app-shell,
  .app-layout {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
  }
}

.app-main {
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

@supports (height: 100dvh) {
  .app-main {
    height: 100dvh;
    max-height: 100dvh;
  }
}

.app-sidebar {
  width: 248px;
  padding: 8px 8px 14px;
  align-self: start;
  position: relative;
  top: auto;
  overflow: hidden !important;
  scrollbar-width: none !important;
}

.sidebar-brand {
  padding: 8px 10px 12px;
  margin-bottom: 8px;
  gap: 10px;
}

.sidebar-brand .nav-logo-mark,
.app-sidebar .nav-logo-mark {
  width: 32px !important;
  height: 32px !important;
  font-size: 13px !important;
  border-radius: 8px;
}

.sidebar-brand-name {
  font-weight: 800;
  font-size: 14px !important;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sidebar-brand-tag {
  font-size: 10px !important;
  color: var(--color-amber-400);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-section-label {
  font-size: 10px;
  margin: 6px 0 1px 10px;
}

.sidebar-nav-link {
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0;
  gap: 8px;
}

.sidebar-nav-link span[aria-hidden] {
  width: 18px;
  text-align: center;
  font-size: 13px;
}

.sidebar-user-card {
  padding: 8px 10px;
  margin-top: 0;
  border-radius: 12px;
  gap: 10px;
}

.sidebar-user-card .avatar,
.app-sidebar .avatar {
  width: 32px !important;
  height: 32px !important;
  font-size: 12px !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-sidebar .btn-block {
  margin-top: 6px !important;
  height: 34px;
  font-size: 12px;
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.85) !important;
  border-color: rgba(255,255,255,0.1) !important;
}

.app-header {
  height: 64px;
  min-height: 64px;
  padding: 0 24px;
  gap: 16px;
}

.app-header h1,
.app-header-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.app-header p,
.app-header-sub {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  margin: 2px 0 0 !important;
  font-weight: 500;
  line-height: 1.35;
}

.app-header .live-status {
  font-size: 11px;
  white-space: nowrap;
}

.app-content {
  padding: 24px;
}

.stat-card-grid {
  gap: 16px;
  margin-bottom: 24px;
}

.stat-kpi-card {
  padding: 18px 20px;
  border-radius: 16px;
}

.stat-kpi-icon {
  width: 36px;
  height: 36px;
  font-size: 16px;
  border-radius: 10px;
}

.stat-kpi-title {
  font-size: 11px;
}

.stat-kpi-val {
  font-size: 26px;
  margin-top: 4px;
}

.tms-table-card {
  border-radius: 16px;
}

.tms-table-header {
  padding: 14px 16px;
}

.tms-table-v2 {
  font-size: 13px;
}

.tms-table-v2 th,
.tms-table-v2 td {
  padding: 12px 16px !important;
}

.app-shell .btn,
.app-content .btn,
.app-header .btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
}

.app-shell .btn-sm,
.app-content .btn-sm,
.app-header .btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

body .btn.btn-primary,
a.btn.btn-primary {
  background: var(--color-amber-500);
  color: var(--color-gray-900);
  border: 1px solid transparent;
  padding-left: 16px;
  padding-right: 16px;
}

body .btn.btn-secondary,
a.btn.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
}

.app-header .btn.btn-secondary,
.app-content .btn.btn-secondary,
.app-body .btn.btn-secondary {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-table-action {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.form-input, .form-select, input.form-input, select.form-select, textarea.form-input {
  height: 40px;
  font-size: 14px;
  border-radius: 8px;
}

textarea.form-input { height: auto; min-height: 88px; }

.form-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

.app-mobile-bar {
  display: none;
  height: 56px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--color-gray-900);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 120;
}

.app-mobile-bar strong {
  font-size: 14px;
  font-weight: 800;
}

.app-mobile-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 8px;
  font-size: 18px;
}

.app-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  z-index: 190;
}

.app-sidebar.shell-mounted {
  contain: layout style paint;
}
.app-sidebar:not(.shell-content-ready) > * {
  visibility: hidden;
}
.app-sidebar.shell-content-ready > * {
  visibility: visible;
}
.app-sidebar .sidebar-shell-placeholder {
  margin: 16px 12px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.45;
}

.page-hero {
  background: var(--color-gray-900);
  padding: 72px 0 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.page-hero .container {
  max-width: var(--container-xl);
}

.page-hero .eyebrow,
.page-hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-amber-400);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.03em;
  line-height: 1.15 !important;
  max-width: 720px;
  margin: 0;
}

.page-hero p {
  font-size: 16px !important;
  color: rgba(255,255,255,0.7) !important;
  max-width: 560px;
  line-height: 1.65;
  margin-top: 16px;
  font-weight: 400;
}

.legal-doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-doc h2 {
  font-size: 18px;
  margin: 28px 0 10px;
}

.legal-doc ul {
  list-style: disc;
  padding-left: 20px;
  margin: 8px 0 16px;
}

.nav-inner {
  height: 64px;
}

.nav-links a {
  font-size: 13px;
  padding: 6px 10px;
}

.nav-actions .btn {
  height: 36px;
}

.live-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body .container {
  width: 100%;
  max-width: var(--container-2xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (max-width: 1024px) {
  .app-shell,
  .app-layout {
    grid-template-columns: 1fr;
  }
  .app-mobile-bar { display: flex; }
  .app-sidebar {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 200;
    transform: translateX(-100%);
    width: 248px;
    transition: transform 0.2s ease;
    overflow-y: auto;
  }
  .app-sidebar.is-open { transform: translateX(0); }
  .app-sidebar-backdrop.is-open { display: block; }
  .app-header { padding: 0 16px; height: auto; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
}

@media (max-width: 640px) {
  .app-content { padding: 16px; }
  .app-header { flex-wrap: wrap; height: auto; }
  .stat-kpi-val { font-size: 22px; }
}

.tms-panel {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.tms-panel h3,
.tms-panel h4 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 12px;
}

.app-shell .btn-amber,
.app-content .btn-amber,
.btn.btn-amber {
  background: var(--color-amber-500);
  color: var(--color-gray-900);
  border: 1px solid transparent;
}

.app-shell .btn-outline,
.app-content .btn-outline,
.btn.btn-outline {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

/* CRM / TMS cards: numbered lists, compact row actions, hidden modals */
.app-content .tms-panel.call-track-card,
.app-content .call-track-card {
  overflow: visible;
}

.app-content .call-track-card ol,
.app-content .tms-panel ol {
  list-style: decimal;
  padding-left: 1.25rem;
}

.app-content .call-track-card ol li,
.app-content .tms-panel ol li {
  list-style: decimal;
  display: list-item;
}

.app-content .tms-table-v2 .btn,
.app-shell .tms-table-v2 .btn {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.modal-backdrop:not(.open) {
  display: none !important;
}


