/* ============================================================
   VeloxShip — Premium Logistics CSS
   ============================================================ */

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

:root {
  --primary:    #2563eb;
  --primary-d:  #1d4ed8;
  --primary-l:  #dbeafe;
  --accent:     #f59e0b;
  --success:    #10b981;
  --danger:     #ef4444;
  --warning:    #f59e0b;
  --info:       #3b82f6;
  --dark:       #0f172a;
  --dark-2:     #1e293b;
  --dark-3:     #334155;
  --mid:        #64748b;
  --light:      #f8fafc;
  --border:     #e2e8f0;
  --text:       #1e293b;
  --text-muted: #64748b;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.15);
  --glass:      rgba(255,255,255,.06);
  --glass-b:    1px solid rgba(255,255,255,.12);
  --font:       'Inter', system-ui, sans-serif;
  --header-h:   68px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.light-page { background: #fff; }

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.1; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 700; }
p  { line-height: 1.7; color: var(--text-muted); }
a  { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: 'SF Mono', monospace; font-size: .82em; background: var(--border); padding: 2px 6px; border-radius: 5px; color: var(--primary); }
textarea { resize: vertical; min-height: 80px; }
.muted { color: var(--text-muted); font-size: .875rem; }
.required { color: var(--danger); }

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.center { align-items: center; text-align: center; }
.section      { padding: 80px 0; }
.section-tight { padding: 48px 0; }
.bg-dark-section { background: var(--dark); color: #fff; }
.bg-dark-section p { color: rgba(255,255,255,.7); }
.bg-dark-section h2 { color: #fff; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(15, 23, 42, .95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  height: var(--header-h);
  transition: box-shadow .3s;
}
.site-header,
.site-header * {
  -webkit-tap-highlight-color: transparent;
}
.site-header.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.3); }
.header-row {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}

/* Logo */
.site-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff; font-size: 1.25rem;
  white-space: nowrap; flex-shrink: 0;
}
.site-logo strong { font-weight: 800; letter-spacing: -.02em; }
.site-logo strong span { color: var(--accent); }
.logo-mark {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark img {
  width: 100%; height: 100%; display: block;
}

/* Nav (FLAT — no submenus) */
.site-nav {
  display: flex; align-items: center; gap: 4px;
  flex: 1; margin-left: 12px; justify-content: center;
}
.nav-link {
  color: rgba(255,255,255,.75);
  font-size: .875rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  text-decoration: none; white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav-link.is-active { color: #fff; background: rgba(255,255,255,.1); }

/* Nav CTA */
.nav-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--danger); color: #fff;
  font-size: .7rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 99px;
  padding: 0 4px; margin-left: 4px; vertical-align: middle;
}

/* Mobile toggle */
.mobile-nav-toggle { display: none; }
.mobile-drawer {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
  padding: 0;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s;
}
.mobile-drawer.active { max-height: 600px; padding: 16px 24px; }
.mobile-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-links a, .mobile-links button {
  color: rgba(255,255,255,.96); font-size: .9rem;
  padding: 10px 12px; border-radius: 8px;
  background: none; border: none; text-align: left; cursor: pointer;
  text-decoration: none; transition: background .2s, color .2s;
  text-shadow: 0 1px 10px rgba(15,23,42,.5);
}
.mobile-links a:hover, .mobile-links button:hover, .mobile-links a.is-active { background: rgba(255,255,255,.12); color: #fff; }
.nav-dash-btn.is-active { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.2); }
.mobile-sep { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 8px 0; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .mobile-nav-toggle { display: flex; }
  .mobile-drawer { display: block; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn-secondary { display: none; }
}
@media (max-width: 640px) {
  .nav-cta { display: none; }
}

@media (max-width: 768px) {
  .header-row {
    justify-content: space-between;
  }

  .mobile-nav-toggle {
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .site-header {
    overflow: visible;
    isolation: isolate;
    z-index: 99999;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: block;
    max-height: none;
    overflow: visible;
    padding: 16px;
    background: linear-gradient(180deg, rgba(7, 12, 24, 0.94) 0%, rgba(15, 23, 42, 0.92) 100%);
    backdrop-filter: blur(22px) saturate(165%);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.46), inset 0 1px 0 rgba(255,255,255,.12);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
    will-change: opacity, transform;
  }

  .mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    max-height: none;
    padding: 16px;
  }

  .mobile-menu::before,
  .mobile-menu::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
  }

  .mobile-menu::before {
    background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 100%);
    opacity: .85;
  }

  .mobile-menu::after {
    inset: 1px;
    border: 1px solid rgba(255,255,255,.06);
  }

  .mobile-menu .mobile-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    z-index: 1;
    pointer-events: auto;
  }

  .mobile-menu a,
  .mobile-menu button,
  .mobile-menu .mobile-links a,
  .mobile-menu .mobile-links button {
    pointer-events: auto;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu .mobile-links a,
  .mobile-menu .mobile-links button {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 14px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    color: rgba(255,255,255,.98);
  }

  .mobile-menu .mobile-links a:hover,
  .mobile-menu .mobile-links button:hover,
  .mobile-menu .mobile-links a.is-active {
    background: rgba(255,255,255,.18);
  }

  .mobile-menu .mobile-sep {
    grid-column: 1 / -1;
    margin: 2px 0;
    border-top: 1px solid rgba(255,255,255,.12);
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-family: var(--font); font-size: .9rem; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none;
  transition: all .2s; white-space: nowrap; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active, .btn.is-pressed { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); color: #fff; }
.btn-secondary {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.15);
}
.btn-secondary:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .8rem; }
.btn-block { width: 100%; justify-content: center; }
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8); cursor: pointer; transition: all .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.15); }

/* Light page buttons */
.light-page .btn-secondary, .dashboard-shell .btn-secondary,
.auth-shell .btn-secondary {
  background: var(--border); color: var(--text); border-color: var(--border);
}
.light-page .btn-secondary:hover, .dashboard-shell .btn-secondary:hover,
.auth-shell .btn-secondary:hover {
  background: #cbd5e1; color: var(--text);
}

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 99px;
  font-size: .75rem; font-weight: 600; white-space: nowrap;
}
.badge.info    { background: rgba(59,130,246,.15);  color: #60a5fa; border: 1px solid rgba(59,130,246,.25); }
.badge.success { background: rgba(16,185,129,.15);  color: #34d399; border: 1px solid rgba(16,185,129,.25); }
.badge.warning { background: rgba(245,158,11,.15);  color: #fbbf24; border: 1px solid rgba(245,158,11,.25); }
.badge.danger  { background: rgba(239,68,68,.15);   color: #f87171; border: 1px solid rgba(239,68,68,.25); }

/* ── Hero ── */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
  background: var(--dark); color: #fff; overflow: hidden;
  z-index: 1;
}
.hero::before,
.hero::after {
  pointer-events: none;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(15,23,42,.6) 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 420px; gap: 60px;
  align-items: center; padding-top: 60px; padding-bottom: 60px;
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero-copy h1 { color: #fff; }
.hero-copy .lead { font-size: 1.05rem; color: rgba(255,255,255,.75); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 24px; margin-top: 8px;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stats .metric { flex: 0 0 auto; }
.hero-stats .metric strong { font-size: 1.6rem; color: #fff; }
.hero-stats .metric span  { font-size: .8rem; color: rgba(255,255,255,.6); display: block; }
.wide-stats { justify-content: center; }
.wide-stats .metric { min-width: 160px; text-align: center; }

/* Hero panel */
.hero-panel { display: flex; flex-direction: column; gap: 16px; }
.floating-card {
  background: var(--glass); border: var(--glass-b);
  backdrop-filter: blur(16px); border-radius: var(--radius-lg);
  padding: 20px; color: #fff;
}
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.panel-kicker { font-size: .75rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.panel-value { font-size: .9rem; font-weight: 600; margin-top: 4px; line-height: 1.4; }
.panel-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.panel-list li { display: flex; justify-content: space-between; font-size: .8rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.panel-list li span { color: rgba(255,255,255,.55); }
.panel-list li strong { color: #fff; font-weight: 600; }
.mini-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mini-list li { display: flex; justify-content: space-between; font-size: .82rem; }
.mini-list li span { color: rgba(255,255,255,.55); }
.mini-list li strong { color: #fff; }

/* ── Eyebrow ── */
.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); display: block;
}
.section-title { color: var(--dark); }
.section-copy  { max-width: 680px; font-size: 1.05rem; }

/* ── Marquee ── */
.route-marquee {
  background: var(--dark-2); border-top: 1px solid var(--dark-3);
  border-bottom: 1px solid var(--dark-3);
  padding: 14px 0; overflow: hidden;
}
.route-track {
  display: flex; width: max-content;
  animation: marquee 28s linear infinite;
}
.route-pill {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.7); font-size: .82rem; font-weight: 500;
  padding: 0 24px; white-space: nowrap;
}
.route-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); flex-shrink: 0;
  box-shadow: 0 0 6px var(--success);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Grids ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.page-grid    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── Feature card ── */
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.icon-pill {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-l); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  flex-shrink: 0;
}
.feature-card h3 { color: var(--dark); }
.card-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.card-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; }
.card-list li i { color: var(--success); margin-top: 2px; flex-shrink: 0; }
.card-list li span { color: var(--text-muted); }
.card-tag {
  display: inline-block; padding: 4px 12px;
  background: var(--primary-l); color: var(--primary);
  border-radius: 99px; font-size: .8rem; font-weight: 600;
  margin-top: auto;
}

/* ── Media card ── */
.media-card {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; background: var(--dark);
}
.media-card img, .media-card video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.media-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(15,23,42,.9) 0%, transparent 100%);
  padding: 24px 20px 20px; color: #fff;
}
.media-caption strong { display: block; font-weight: 700; margin-bottom: 4px; }
.media-caption p { color: rgba(255,255,255,.7); font-size: .85rem; margin: 0; }

/* ── Page hero ── */
.page-hero { padding: 60px 0 40px; background: var(--dark); color: #fff; position: relative; }
.page-hero h1 { color: #fff; }
.page-hero .page-subtitle { color: rgba(255,255,255,.7); max-width: 540px; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.5); display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb i { font-size: .65rem; }

/* ── Forms ── */
.form-card { display: flex; flex-direction: column; gap: 16px; }
.form-card label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 11px 14px; border-radius: 8px;
  border: 1.5px solid var(--border); background: #fff;
  font-family: var(--font); font-size: .9rem; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.calculator-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 24px;
}
.calculator-card label { color: rgba(255,255,255,.75); }
.calculator-card input, .calculator-card select {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff;
}
.calculator-card input::placeholder { color: rgba(255,255,255,.35); }
.calculator-card input:focus, .calculator-card select:focus {
  border-color: rgba(255,255,255,.4); box-shadow: none;
}
.checkbox-wrap { display: flex; align-items: flex-end; padding-bottom: 2px; }
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 500; cursor: pointer; color: rgba(255,255,255,.7);
}
.checkbox-label input { width: auto; }

/* ── Alerts ── */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: .875rem; font-weight: 500;
}
.alert.info    { background: rgba(59,130,246,.1);  color: #2563eb; border: 1px solid rgba(59,130,246,.2); }
.alert.success { background: rgba(16,185,129,.1);  color: #059669; border: 1px solid rgba(16,185,129,.2); }
.alert.error   { background: rgba(239,68,68,.1);   color: #dc2626; border: 1px solid rgba(239,68,68,.2); }
.alert.warning { background: rgba(245,158,11,.1);  color: #d97706; border: 1px solid rgba(245,158,11,.2); }

/* ── Metrics ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin: 24px 0;
}
.metric {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.metric strong { font-size: 2rem; font-weight: 900; color: var(--dark); line-height: 1; }
.metric span   { font-size: .8rem; color: var(--text-muted); }
.metric span i { margin-right: 4px; }

/* ── Dashboard shell ── */
.dashboard-shell { background: #f1f5f9; min-height: calc(100vh - var(--header-h)); padding: 32px 0 60px; }
.dashboard-welcome {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 28px 32px;
  margin-bottom: 24px;
}
.admin-welcome {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}
.dashboard-identity { display: flex; align-items: center; gap: 16px; }
.avatar-lg {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff; flex-shrink: 0;
}
.admin-avatar { background: rgba(245,158,11,.2); border-color: rgba(245,158,11,.3); color: var(--accent); }
.dashboard-welcome h1 { font-size: 1.5rem; color: #fff; }
.dashboard-welcome p  { color: rgba(255,255,255,.6); font-size: .85rem; }
.dash-header-actions { flex-wrap: wrap; }

/* ── Dashboard card ── */
.dashboard-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.card-title-row {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 12px; margin-bottom: 16px;
}
.card-title-row h3 { color: var(--dark); }
.card-title-row h3 i { margin-right: 8px; color: var(--primary); }
.card-title-row p  { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }

/* ── Profile ── */
.profile-avatar-wrap { display: flex; align-items: center; gap: 14px; }
.profile-avatar-wrap .avatar-lg {
  background: var(--primary-l); color: var(--primary);
  border: 2px solid var(--border);
}
.profile-avatar-wrap h3 { color: var(--dark); margin-bottom: 2px; }
.profile-avatar-wrap p  { color: var(--text-muted); font-size: .85rem; margin: 0; }
.profile-grid { grid-template-columns: repeat(3, 1fr); }
.shipment-meta-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin-top: 8px;
}
.shipment-meta-grid.detail-meta-grid { grid-template-columns: repeat(3, 1fr); }
.shipment-meta-grid .span2 { grid-column: span 2; }
.shipment-meta-grid div label { display: block; font-size: .72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.shipment-meta-grid div strong { font-size: .9rem; color: var(--dark); }

/* ── Messages ── */
.message-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; background: #fff;
  transition: border-color .2s;
}
.message-card.unread { border-left: 3px solid var(--primary); background: rgba(37,99,235,.02); }
.message-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.message-header > div { display: flex; align-items: center; gap: 8px; }
.message-subject { font-size: .9rem; color: var(--dark); }
.message-date { font-size: .75rem; color: var(--text-muted); white-space: nowrap; }
.message-body { font-size: .875rem; color: var(--text-muted); line-height: 1.6; white-space: pre-wrap; }
.msg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.read-tag { font-size: .75rem; color: var(--success); margin-top: 8px; display: block; }
.msg-count-badge {
  display: inline-flex; align-items: center;
  background: var(--primary); color: #fff;
  font-size: .72rem; font-weight: 700;
  padding: 2px 7px; border-radius: 99px; margin-left: 6px;
}

/* ── Shipment card ── */
.shipment-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.shipment-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.shipment-surface { display: flex; }
.shipment-thumb {
  width: 200px; flex-shrink: 0;
  background: var(--dark); overflow: hidden;
}
.shipment-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shipment-content { flex: 1; padding: 20px; }
.shipment-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.shipment-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.shipment-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.shipment-meta { font-size: .78rem; color: var(--text-muted); display: flex; gap: 6px; }
.shipment-code { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.shipment-code i { color: var(--primary); }
.shipment-top-actions { align-items: flex-end; flex-shrink: 0; gap: 8px; }
.timer-pill {
  font-size: .78rem; font-weight: 600; color: var(--primary);
  background: var(--primary-l); padding: 4px 10px; border-radius: 99px;
  white-space: nowrap;
}
.eta-live { /* dynamic countdown */ }

/* Progress */
.shipment-progress-wrap { margin-bottom: 14px; }
.shipment-progress {
  height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 6px;
}
.shipment-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 99px; transition: width .8s ease;
}
.motion-lane {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .72rem; font-weight: 600; color: var(--text-muted); position: relative;
}
.motion-lane .truck-marker {
  position: absolute; left: calc(var(--progress, 0%) - 10px);
  color: var(--primary); font-size: .9rem;
  transition: left .8s ease; z-index: 1;
}
.motion-lane.large { padding: 0 4px; }
.route-node { white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }

/* Detail progress */
.detail-progress-wrap { margin: 16px 0; }
.detail-flight-strip {
  display: flex; align-items: center; gap: 16px;
  background: var(--light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin: 12px 0;
}
.flight-node { flex: 1; }
.flight-node.right { text-align: right; }
.flight-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 4px; }
.flight-value { font-size: .9rem; font-weight: 700; color: var(--primary); }
.flight-place { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.flight-middle {
  flex: 2; display: flex; flex-direction: column;
  align-items: center; gap: 6px; text-align: center;
}
.flight-elapsed { font-size: .78rem; font-weight: 600; color: var(--accent); }
.flight-line { font-size: 1.2rem; color: var(--primary); }

/* Status banner */
.status-banner {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(239,68,68,.07); border: 1px solid rgba(239,68,68,.15);
  border-radius: var(--radius); padding: 12px 16px; margin: 8px 0;
  color: var(--danger);
}
.status-banner > i { font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.status-banner strong { display: block; font-size: .9rem; margin-bottom: 2px; }
.status-banner p { font-size: .85rem; color: inherit; margin: 0; }

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-heading {
  font-size: .85rem; font-weight: 700; color: var(--dark);
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.timeline-heading i { color: var(--primary); }
.timeline-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: 5px;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.timeline-dot.success { background: var(--success); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.timeline-dot.danger  { background: var(--danger);  box-shadow: 0 0 0 3px rgba(239,68,68,.15);  }
.timeline-body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.timeline-body strong { display: flex; justify-content: space-between; font-size: .85rem; color: var(--dark); }
.timeline-body strong span:last-child { font-size: .75rem; color: var(--text-muted); font-weight: 400; white-space: nowrap; }
.timeline-body > span { font-size: .8rem; color: var(--text-muted); }
.compact-timeline { margin-top: 12px; }

/* ── Shipment detail ── */
.shipment-detail-stack { gap: 16px; padding: 8px 0; }

/* ── Admin tables ── */
.table-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); }
.responsive-table-card { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th {
  background: var(--dark); color: rgba(255,255,255,.8);
  padding: 12px 16px; text-align: left; font-weight: 600; font-size: .78rem;
  letter-spacing: .04em; white-space: nowrap;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--light); }
tbody td small { color: var(--text-muted); font-size: .75rem; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-btn {
  padding: 5px 10px; border-radius: 6px; border: none;
  font-size: .75rem; font-weight: 600; cursor: pointer;
  background: var(--primary-l); color: var(--primary); transition: all .2s;
}
.table-btn:hover { background: var(--primary); color: #fff; }
.table-btn.warn   { background: rgba(245,158,11,.12); color: #d97706; }
.table-btn.warn:hover   { background: var(--warning); color: #fff; }
.table-btn.danger { background: rgba(239,68,68,.1); color: var(--danger); }
.table-btn.danger:hover { background: var(--danger); color: #fff; }

/* ── Toast ── */
.vs-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  padding: 12px 20px; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; color: #fff;
  background: var(--dark-2); transform: translateY(100px);
  opacity: 0; transition: all .3s; pointer-events: none;
  max-width: 380px; box-shadow: var(--shadow-lg);
}
.vs-toast.show { transform: translateY(0); opacity: 1; }
.vs-toast.success { background: var(--success); }
.vs-toast.error   { background: var(--danger);  }
.vs-toast.warning { background: var(--warning); color: var(--dark); }
.vs-toast.info    { background: var(--primary); }

/* ── Modal ── */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15,23,42,.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
  padding: 20px;
}
.modal.active { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--dark-2); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 28px;
  width: 100%; max-width: 780px; max-height: 90vh; overflow-y: auto;
  color: #fff;
  transform: scale(.95) translateY(20px);
  transition: transform .3s;
}
.modal.active .modal-card { transform: scale(1) translateY(0); }
.modal-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.modal-head h3 { color: #fff; }
.modal-head .page-subtitle { color: rgba(255,255,255,.6); font-size: .85rem; margin: 0; }
.modal-card .shipment-code { color: rgba(255,255,255,.7); font-size: .85rem; }
.modal-card .shipment-meta-grid label { color: rgba(255,255,255,.5); }
.modal-card .shipment-meta-grid strong { color: #fff; }
.modal-card .timeline-body strong { color: #fff; }
.modal-card .timeline-body span { color: rgba(255,255,255,.55); }
.modal-card .timeline-item { border-color: rgba(255,255,255,.1); }
.modal-card .detail-flight-strip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.modal-card .flight-label { color: rgba(255,255,255,.5); }
.modal-card .flight-place { color: rgba(255,255,255,.5); }
.modal-card .shipment-progress { background: rgba(255,255,255,.1); }
.modal-card .route-node { color: rgba(255,255,255,.6); }

/* Modal edit form */
.modal-card .form-card input, .modal-card .form-card select, .modal-card .form-card textarea {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: #fff;
}
.modal-card .form-card label { color: rgba(255,255,255,.75); }
.modal-card .form-card select option { background: var(--dark-2); color: #fff; }

/* ── Auth ── */
.auth-shell { background: var(--dark); min-height: calc(100vh - var(--header-h)); padding: 60px 0; }
.auth-layout { display: grid; grid-template-columns: 1fr 460px; gap: 80px; align-items: start; }
.auth-copy { color: #fff; display: flex; flex-direction: column; gap: 20px; }
.auth-copy h1 { color: #fff; }
.auth-copy .page-subtitle { color: rgba(255,255,255,.65); }
.auth-visual { border-radius: var(--radius-lg); overflow: hidden; height: 220px; margin-top: 8px; }
.auth-visual img { width: 100%; height: 100%; object-fit: cover; }
.auth-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 28px; color: #fff;
}
.auth-card .alert.info { background: rgba(59,130,246,.1); color: #93c5fd; border-color: rgba(59,130,246,.2); }
.auth-card .form-card input {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); color: #fff;
}
.auth-card .form-card input::placeholder { color: rgba(255,255,255,.3); }
.auth-card .form-card input:focus { border-color: rgba(255,255,255,.35); box-shadow: none; }
.auth-card .form-card label { color: rgba(255,255,255,.75); }
.account-switch { display: flex; justify-content: space-between; align-items: center; }
.account-switch strong { color: #fff; font-size: .9rem; }
.auth-link { font-size: .85rem; color: var(--accent); }
.auth-link:hover { color: #fde68a; }
.auth-note { font-size: .82rem; color: rgba(255,255,255,.5); text-align: center; margin-top: 4px; }
.auth-note a { color: var(--accent); }

/* ── Footer ── */
.site-footer {
  background: var(--dark); border-top: 1px solid var(--dark-3);
  padding: 60px 0 24px; color: rgba(255,255,255,.8);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.5); margin-top: 12px; max-width: 300px; }
.footer-links strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.footer-links a { display: block; font-size: .875rem; color: rgba(255,255,255,.65); margin-bottom: 8px; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-note {
  display: flex; justify-content: space-between;
  padding-top: 20px; border-top: 1px solid var(--dark-3);
  font-size: .78rem; color: rgba(255,255,255,.35);
  flex-wrap: wrap; gap: 8px;
}

/* ── Visual vault ── */
.visual-vault { background: var(--dark); overflow: hidden; }
.visual-ribbon { overflow: hidden; margin: 12px 0; }
.visual-track { display: flex; width: max-content; animation: marquee 70s linear infinite; gap: 12px; }
.visual-ribbon.reverse .visual-track { animation-direction: reverse; animation-duration: 62s; }
body.gallery-lightbox-open .visual-track { animation-play-state: paused; }
.visual-tile { flex-shrink: 0; height: 200px; width: 280px; overflow: hidden; border-radius: var(--radius); }
.visual-tile.wide { width: 360px; }
.visual-tile img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(15,23,42,.88);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 2500;
}
.gallery-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.gallery-lightbox-dialog {
  position: relative;
  max-width: min(94vw, 1280px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  object-fit: contain;
  background: #0f172a;
}
.gallery-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(15,23,42,.72);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.gallery-lightbox-close:hover {
  background: rgba(15,23,42,.95);
}
.vault-title { color: #fff; }
.compact-vault-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.compact-vault-card { border-radius: var(--radius); overflow: hidden; height: 220px; }
.compact-vault-card img { width: 100%; height: 100%; object-fit: cover; }

/* ── Steps ── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.step-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.step-number {
  font-size: 2rem; font-weight: 900; color: var(--primary-l);
  line-height: 1; font-variant-numeric: tabular-nums;
}

/* ── Locations ── */
.locations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.location-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.location-flag { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.location-card h3 { color: var(--dark); margin-bottom: 12px; font-size: 1rem; }
.location-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.location-card li { font-size: .82rem; color: var(--text-muted); }
.location-card strong { color: var(--dark); }
.route-pills-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.route-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; }
.faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: .9rem; font-weight: 600; color: var(--dark);
  text-align: left; gap: 12px;
}
.faq-q i { transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 16px; }
.faq-answer p { font-size: .875rem; }
.faq-answer.hidden { display: none; }

/* ── Reveal animation ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s ease var(--reveal-delay, 0ms),
              transform .55s ease var(--reveal-delay, 0ms);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.premium-hover-lift { transition: transform .2s, box-shadow .2s; }
.premium-hover-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }


/* ── Ambient motion enhancements ── */
body { position: relative; }
body.ambient-motion::before,
body.ambient-motion::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  opacity: .08;
  z-index: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}
body.ambient-motion::before {
  top: 12%;
  left: -6%;
  width: min(26vw, 320px);
  height: min(26vw, 320px);
  background: radial-gradient(circle, rgba(37,99,235,.22) 0%, rgba(37,99,235,0) 72%);
  animation: ambientDriftOne 18s ease-in-out infinite;
}
body.ambient-motion::after {
  right: -8%;
  bottom: 10%;
  width: min(24vw, 300px);
  height: min(24vw, 300px);
  background: radial-gradient(circle, rgba(245,158,11,.18) 0%, rgba(245,158,11,0) 72%);
  animation: ambientDriftTwo 22s ease-in-out infinite;
}
[data-site-shell], .modal, .vs-toast, .social-panel {
  position: relative;
  z-index: 1;
}
.site-header {
  position: sticky;
  z-index: 99999;
}
.motion-float {
  animation: softFloat var(--float-duration, 14s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}
@keyframes softFloat {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 1; }
  50%      { transform: translate3d(0, -6px, 0); opacity: .985; }
}
@keyframes ambientDriftOne {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: .08; }
  50%      { transform: translate3d(18px, -14px, 0); opacity: .13; }
}
@keyframes ambientDriftTwo {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: .06; }
  50%      { transform: translate3d(-20px, 16px, 0); opacity: .11; }
}

/* ── About hero slider ── */
.about-hero-slider { isolation: isolate; }
.about-hero-slider .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease, transform 6s ease;
  transform: scale(1.02);
}
.about-hero-slider .hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.about-mission-gallery { grid-template-columns: repeat(4, 1fr); }

/* ── Rate calculator visibility fix ── */
#rates, #rates .support-grid { overflow: visible; }
#rateCalcForm {
  display: flex;
  visibility: visible;
  opacity: 1;
  position: relative;
  z-index: 2;
}
#rates .calculator-card {
  background: #fff;
  border: 1px solid var(--border);
}
#rates .calculator-card label,
#rates .checkbox-label {
  color: var(--text);
}
#rates .calculator-card input,
#rates .calculator-card select {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
#rates .calculator-card input::placeholder { color: var(--text-muted); }
#rates .calculator-card input:focus,
#rates .calculator-card select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
#calcResult {
  display: block;
  min-height: 32px;
  position: relative;
  z-index: 2;
}

/* ── Floating social panel ── */
.social-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.social-panel-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 12px, 0);
  transition: opacity .3s ease, transform .3s ease;
}
.social-panel.open .social-panel-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}
.social-link,
.social-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: opacity .25s ease, transform .25s ease;
}
.social-link:hover,
.social-toggle:hover {
  transform: translate3d(0, -2px, 0);
  opacity: .96;
  text-decoration: none;
}
.social-toggle {
  background: var(--primary);
  border-color: rgba(255,255,255,.18);
  cursor: pointer;
}
.social-link i,
.social-toggle i { font-size: 1rem; }
.social-link span,
.social-toggle span { font-size: .84rem; font-weight: 600; }

/* ── Empty state ── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 48px 24px; text-align: center; color: var(--text-muted);
}
.empty-state .icon-pill { width: 60px; height: 60px; font-size: 1.4rem; opacity: .5; }
.empty-state h3 { color: var(--dark); }

/* ── Overview mini ── */
.overview-mini { display: flex; flex-direction: column; gap: 12px; }
.overview-mini > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.overview-mini label { font-size: .8rem; color: var(--text-muted); }
.overview-mini strong { font-size: .85rem; color: var(--dark); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--dark-3); border-radius: 3px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .feature-grid    { grid-template-columns: repeat(2, 1fr); }
  .page-grid       { grid-template-columns: 1fr 1fr; }
  .steps-grid      { grid-template-columns: repeat(2, 1fr); }
  .locations-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .form-grid-3     { grid-template-columns: repeat(2, 1fr); }
  .profile-grid    { grid-template-columns: repeat(2, 1fr); }
  .about-mission-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-inner      { grid-template-columns: 1fr; }
  .hero-panel      { display: none; }
  .support-grid    { grid-template-columns: 1fr; }
  .auth-layout     { grid-template-columns: 1fr; }
  .auth-copy       { display: none; }
  .dashboard-grid  { grid-template-columns: 1fr; }
  .shipment-surface { flex-direction: column; }
  .shipment-thumb  { width: 100%; height: 200px; }
  .shipment-top    { flex-direction: column; }
  .detail-flight-strip { flex-direction: column; gap: 8px; }
  .flight-node.right { text-align: left; }
  .compact-vault-grid { grid-template-columns: 1fr; }
  .about-mission-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .social-panel { right: 16px; bottom: 16px; }
  .social-link span, .social-toggle span { display: none; }
  .about-mission-gallery { grid-template-columns: 1fr; }
  .feature-grid   { grid-template-columns: 1fr; }
  .page-grid      { grid-template-columns: 1fr; }
  .steps-grid     { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .form-grid      { grid-template-columns: 1fr; }
  .form-grid-3    { grid-template-columns: 1fr; }
  .section        { padding: 48px 0; }
  .section-tight  { padding: 32px 0; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .dashboard-welcome { flex-direction: column; align-items: flex-start; }
  .hero-stats     { gap: 16px; }
  .timeline-body strong { flex-direction: column; gap: 2px; }
  .shipment-meta-grid { grid-template-columns: 1fr 1fr; }
  .profile-grid   { grid-template-columns: 1fr; }
  .gallery-lightbox { padding: 18px; }
  .gallery-lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}

/* ============================================================
   VeloxShip — Visibility & Content Rendering Fixes
   ============================================================ */

/* ── Fix 1: Hero Panel Floating Cards — ensure content visible on dark hero ──
   The floating-card uses glass effect (rgba white, very low opacity).
   Ensure the panel-value text color is explicitly set to white so it
   inherits correctly even if backdrop-filter is unsupported.
   Also ensure hero-panel reveal does not stay hidden if JS is slow. */
.hero-panel .floating-card { color: #fff; }
.hero-panel .floating-card .panel-value { color: #fff; }
.hero-panel .floating-card .panel-kicker { color: var(--accent); }

/* Ensure hero-panel is rendered (fallback if IntersectionObserver is slow) */
@media (prefers-reduced-motion: no-preference) {
  .hero-panel.reveal:not(.visible) {
    /* Allow a CSS-only fallback after 1.5s to avoid permanently hidden content */
    animation: revealFallback 0s 1.5s forwards;
  }
}
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Fix 2: "Track a shipment from the homepage" — section-title & section-copy
   On the home page (non-light-page), ensure the heading and description
   text have proper contrast against the light body background (#f8fafc). */
#quick-track .section-title { color: var(--dark); }
#quick-track .section-copy  { color: var(--text-muted); }
#quick-track p              { color: var(--text-muted); }

/* ── Fix 3: Our Mission Section — "Transparency and speed in every shipment."
   section-title on light-page must render with dark colour. */
.light-page .section-title { color: var(--dark); }

/* ── Fix 4: Our Mission — four stat boxes on light-page (about.html)
   .hero-stats .metric strong and span are styled for the dark hero context
   (color: #fff) but about.html uses them on a white light-page background,
   making white text invisible against white card backgrounds. Fix colours. */
.light-page .hero-stats .metric strong { color: var(--dark); }
.light-page .hero-stats .metric span   { color: var(--text-muted); }

/* Also fix the border separator — on a light background, white/transparent border
   looks odd. Use the standard light border. */
.light-page .hero-stats {
  border-top-color: var(--border);
}

/* ── Fix 5: Get Started — "Submit a shipping request." heading & description
   These are on a light-page so section-title/section-copy are already
   handled by Fix 3, but explicitly scope to #create-shipment for safety. */
#create-shipment .section-title { color: var(--dark); }
#create-shipment .section-copy  { color: var(--text-muted); }
#create-shipment p              { color: var(--text-muted); }

/* ── Fix 6: Get Started — Shipping request form invisible on light-page
   The form uses .calculator-card which is designed for dark backgrounds
   (rgba glass effect, white text). On a light-page this is nearly invisible.
   Mirror the same fix applied to #rates .calculator-card. */
#create-shipment,
#create-shipment .support-grid { overflow: visible; }

#shippingRequestForm {
  display: flex;
  visibility: visible;
  opacity: 1;
  position: relative;
  z-index: 2;
}

#create-shipment .calculator-card {
  background: #fff;
  border: 1px solid var(--border);
}
#create-shipment .calculator-card label {
  color: var(--text);
}
#create-shipment .calculator-card input,
#create-shipment .calculator-card select,
#create-shipment .calculator-card textarea {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
#create-shipment .calculator-card input::placeholder,
#create-shipment .calculator-card textarea::placeholder {
  color: var(--text-muted);
}
#create-shipment .calculator-card input:focus,
#create-shipment .calculator-card select:focus,
#create-shipment .calculator-card textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
#shippingRequestAlert {
  display: block;
  min-height: 0;
  position: relative;
  z-index: 2;
}

/* ── Fix 7: Route Network — "Active shipping lanes across every region." title
   Already handled by .light-page .section-title (Fix 3). Scoped explicitly. */
.route-pills-stack + * .section-title,
.section-tight .section-title { color: var(--dark); }

/* ── Fix 8: Route Network — route-pills in .route-pills-stack on light-page
   .route-pill colour is set for dark marquee background (rgba white).
   Inside .route-pills-stack on a light-page these are near-invisible.
   Override to use dark readable text. */
.route-pills-stack .route-pill {
  color: var(--text);
}
.route-pills-stack .route-pill strong {
  color: var(--dark);
}
.route-pills-stack .route-pill .dot {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

/* ── Fix 9: Location cards — countries not showing
   .location-card li and strong colours are correct but the card uses .reveal
   which starts at opacity:0. Ensure text colours are explicitly defined so
   when reveal triggers the content is unambiguously visible. */
.location-card li     { color: var(--text-muted); }
.location-card strong { color: var(--dark); }
.location-card h3     { color: var(--dark); }
.location-card .location-flag i { color: var(--primary); }



/* ── Minimal non-breaking fixes for requested admin/mobile updates ── */
.hero .hero-stats .metric {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.hero .hero-stats .metric strong,
.hero .hero-stats .metric span {
  text-shadow: 0 1px 12px rgba(15,23,42,.45);
}
