/* ==========================================================================
   Atlas Freight — main stylesheet
   Light, editorial logistics theme · royal blue + amber · Plus Jakarta Sans
   ========================================================================== */

:root {
  --bg: #f5f7fb;
  --bg2: #eef2f8;
  --bg3: #e6ecf6;
  --surface: #ffffff;
  --surface2: #f8fafd;
  --border: #e3e8f0;
  --border2: #bfd2f7;
  --ink: #0b1626;
  --text: #1e293b;
  --muted: #5b6b84;
  --muted2: #8a98ad;
  --primary: #2457e6;
  --primary2: #1a44c2;
  --accent: #3b6cff;
  --accent2: #7ea2ff;
  --amber: #f59e0b;
  --amber2: #fbbf24;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --grad: linear-gradient(135deg, #4f7dff 0%, #2457e6 55%, #1a44c2 100%);
  --grad-ink: linear-gradient(135deg, #16254a 0%, #0b1626 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(15, 34, 80, 0.12);
  --shadow-sm: 0 6px 20px rgba(15, 34, 80, 0.07);
  --glow: 0 12px 30px rgba(36, 87, 230, 0.32);
  --font-head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --container: 1560px;
  --container-text: 1100px;
  --gutter: 48px;
  --nav-h: 80px;
}
@media (max-width: 1500px) { :root { --gutter: 36px; } }
@media (max-width: 1024px)  { :root { --gutter: 24px; } }
@media (max-width: 560px)   { :root { --gutter: 16px; --nav-h: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 560px at 8% -10%, rgba(59, 108, 255, 0.13), transparent 60%),
    radial-gradient(700px 480px at 96% 2%, rgba(245, 158, 11, 0.10), transparent 60%);
}
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.55; }
.page { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--primary); text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.028em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
strong, b { color: var(--ink); }
button { font: inherit; }
::selection { background: rgba(36, 87, 230, 0.18); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container-sm { max-width: calc(var(--container-text) + var(--gutter) * 2); }
.section { padding-block: 100px; position: relative; }
.section-tight { padding-block: 64px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.78rem; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 64px; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; }
.flex { display: flex; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.04em; }

/* Eyebrow / labels ------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px; border-radius: 999px;
  border: 1px solid rgba(36, 87, 230, 0.2); background: rgba(36, 87, 230, 0.08); color: var(--primary);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: ping 1.8s infinite; }
.grad-text {
  background: linear-gradient(90deg, #2457e6, #4f7dff, #1a44c2, #2457e6);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientMove 7s linear infinite;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.005em;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap; line-height: 1.2; position: relative; overflow: hidden; font-family: var(--font-body);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(36, 87, 230, 0.42); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--border2); transform: translateY(-2px); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary2); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 255, 255, 0.25); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #16254a; transform: translateY(-2px); }
.btn-danger { background: #fff1f1; border-color: #fecaca; color: #b91c1c; }
.btn-danger:hover { background: #fee2e2; }
.btn-success { background: #ecfdf3; border-color: #bbf7d0; color: #15803d; }
.btn-success:hover { background: #dcfce7; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; border-radius: 10px; }
.btn-xs { padding: 6px 11px; font-size: 0.78rem; border-radius: 9px; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Navigation ------------------------------------------------------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background 0.35s, box-shadow 0.35s, border-color 0.35s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 8px 28px rgba(15, 34, 80, 0.08); border-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.logo { display: inline-flex; align-items: center; flex: none; color: var(--ink); }
.logo img { display: block; width: auto; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.logo .logo-full { height: 46px; }
.logo .logo-mark { height: 44px; display: none; }
.logo:hover img { transform: scale(1.04); }
.logo svg { display: block; height: 46px; width: auto; }
.footer-logo { margin-bottom: 18px; color: #fff; }
.footer-logo svg { height: 50px; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 0.93rem; transition: 0.25s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(36, 87, 230, 0.07); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer, .nav-scrim { display: none; }
@media (max-width: 1024px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 58; background: rgba(11, 22, 38, 0.45); opacity: 0; transition: opacity 0.35s; pointer-events: none; }
  .nav-scrim.open { opacity: 1; pointer-events: auto; }
  .nav-drawer {
    display: flex; flex-direction: column; position: fixed; top: var(--nav-h); right: 0; bottom: 0;
    width: min(360px, 86%); z-index: 60; background: #fff; border-left: 1px solid var(--border); padding: 24px;
    transform: translateX(105%); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; box-shadow: -24px 0 60px rgba(15, 34, 80, 0.18);
  }
  .nav-drawer.open { transform: none; }
  .nav-drawer ul { list-style: none; padding: 0; margin: 0 0 20px; }
  .nav-drawer li a { display: block; padding: 14px 16px; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: 1.05rem; }
  .nav-drawer li a:hover, .nav-drawer li a.active { background: rgba(36, 87, 230, 0.08); color: var(--primary); }
  .nav-drawer .drawer-actions { display: flex; flex-direction: column; gap: 10px; }
  .nav.scrolled, .nav.menu-open { background: rgba(255, 255, 255, 0.96); }
}
@media (max-width: 640px) {
  .nav .logo .logo-full { display: none; }
  .nav .logo .logo-mark { display: block; }
}
/* Pages that open on a dark photo hero: the navigation turns white until scrolled. */
.page:has(main > .page-hero:first-child) .nav:not(.scrolled) .logo { color: #fff; }
.page:has(main > .page-hero:first-child) .nav:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, 0.8); }
.page:has(main > .page-hero:first-child) .nav:not(.scrolled) .nav-links a:hover,
.page:has(main > .page-hero:first-child) .nav:not(.scrolled) .nav-links a.active { color: #fff; background: rgba(255, 255, 255, 0.14); }
.page:has(main > .page-hero:first-child) .nav:not(.scrolled) .btn-ghost { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); color: #fff; box-shadow: none; }
.page:has(main > .page-hero:first-child) .nav:not(.scrolled) .nav-toggle { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); }
.page:has(main > .page-hero:first-child) .nav:not(.scrolled) .nav-toggle span { background: #fff; }

/* Toasts / alerts -------------------------------------------------------- */
.toasts { position: fixed; top: calc(var(--nav-h) + 14px); right: 18px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: 380px; width: calc(100% - 36px); pointer-events: none; }
.toast { pointer-events: auto; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; gap: 12px; align-items: flex-start; animation: toastIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); font-size: 0.92rem; color: var(--ink); }
.toast svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.toast.success { border-color: #bbf7d0; } .toast.success svg { color: var(--success); }
.toast.error { border-color: #fecaca; } .toast.error svg { color: var(--danger); }
.toast.info { border-color: var(--border2); } .toast.info svg { color: var(--primary); }
.toast.hide { opacity: 0; transform: translateX(30px); transition: 0.4s; }
.alert { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface2); margin-bottom: 18px; font-size: 0.92rem; display: flex; gap: 10px; color: var(--text); }
.alert-error { border-color: #fecaca; background: #fff5f5; color: #991b1b; }
.alert-success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.alert-info { border-color: var(--border2); background: #eef3ff; color: #1e3a8a; }
.alert ul { margin: 0; padding-left: 18px; }

/* Cards ------------------------------------------------------------------ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s; }
.card-hover:hover { transform: translateY(-6px); border-color: var(--border2); box-shadow: var(--shadow); }
.card-sm { padding: 20px; }
.icon-box { width: 52px; height: 52px; border-radius: 14px; background: rgba(36, 87, 230, 0.09); border: 1px solid rgba(36, 87, 230, 0.14); display: grid; place-items: center; color: var(--primary); margin-bottom: 18px; transition: 0.35s; }
.icon-box svg { width: 24px; height: 24px; }
.card:hover .icon-box { background: var(--grad); color: #fff; border-color: transparent; transform: rotate(-6deg) scale(1.05); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; padding: calc(var(--nav-h) + 56px) 0 70px; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); margin: 0 0 20px; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 8px; }
.track-form { display: flex; gap: 8px; margin: 26px 0 14px; padding: 8px; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); transition: 0.3s; max-width: 600px; }
.track-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(36, 87, 230, 0.12), var(--shadow); }
.track-form input { flex: 1; background: transparent; border: 0; color: var(--ink); font-size: 1rem; padding: 12px 14px; outline: 0; min-width: 0; font-family: var(--font-body); font-weight: 500; }
.track-form input::placeholder { color: var(--muted2); font-weight: 400; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; }
.hero-badges svg { width: 16px; height: 16px; color: var(--success); }
.hero-stats { display: flex; gap: 40px; margin-top: 42px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--ink); line-height: 1.1; letter-spacing: -0.03em; }
.hero-stats span { color: var(--muted); font-size: 0.85rem; }

/* Live map card in the hero */
.hero-map { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #e8eef7; height: 600px; }
.hero-map .ml-host { position: absolute; inset: 0; }
.hero-map .hm-chip { position: absolute; z-index: 5; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); min-width: 200px; animation: float 6s ease-in-out infinite; }
.hero-map .hm-chip.c1 { top: 18px; left: 18px; }
.hero-map .hm-chip.c2 { bottom: 18px; right: 18px; animation-delay: 1.3s; }
.hm-chip .hc-title { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted2); font-weight: 700; margin-bottom: 5px; }
.hm-chip .hc-row { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.hm-chip .hc-row svg { width: 17px; height: 17px; color: var(--primary); }
.hm-chip .mini-progress { height: 6px; border-radius: 99px; background: var(--bg3); margin-top: 10px; overflow: hidden; }
.hm-chip .mini-progress i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; animation: grow 2.4s 0.8s forwards cubic-bezier(0.2, 0.7, 0.2, 1); }
.hm-live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #b45309; background: #fff4df; border: 1px solid #fde4b6; padding: 4px 9px; border-radius: 99px; }
.hm-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pingAmber 1.6s infinite; }
.hero-photos { position: absolute; left: -2px; bottom: -2px; z-index: 6; display: flex; gap: 10px; padding: 14px; }
.hero-photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 16px; border: 3px solid #fff; box-shadow: var(--shadow-sm); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(11, 22, 38, 0.18); border-radius: 20px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--primary); animation: scrollCue 1.8s infinite; }

/* Marquee ---------------------------------------------------------------- */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { color: var(--muted); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; font-size: 0.93rem; }
.marquee-track span svg { width: 16px; height: 16px; color: var(--primary); }

/* Services --------------------------------------------------------------- */
.service-card { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: 0.4s; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.service-card:hover { transform: translateY(-8px); border-color: var(--border2); box-shadow: var(--shadow); }
.sc-img { height: 220px; overflow: hidden; position: relative; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 22, 38, 0.55)); }
.service-card:hover .sc-img img { transform: scale(1.08); }
.sc-body { padding: 26px 24px 24px; position: relative; flex: 1; }
.sc-body .icon-box { position: absolute; top: -30px; right: 22px; margin: 0; background: #fff; box-shadow: var(--shadow-sm); }
.sc-body p { color: var(--muted); font-size: 0.95rem; margin: 0 0 14px; }
.sc-link { font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.sc-link svg { width: 16px; height: 16px; transition: transform 0.3s; }
.service-card:hover .sc-link svg { transform: translateX(4px); }

/* Steps ------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.step { position: relative; padding: 32px 28px 28px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); overflow: hidden; transition: 0.35s; }
.step:hover { border-color: var(--border2); transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-sm); }
.step-num { position: absolute; top: 10px; right: 20px; font-family: var(--font-head); font-size: 4.2rem; font-weight: 800; color: rgba(36, 87, 230, 0.08); line-height: 1; }
.step h3 { margin-top: 14px; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Split feature ---------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-img { position: relative; }
.split-img > img { border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); width: 100%; height: 480px; object-fit: cover; }
.split-img .float-card { position: absolute; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.96); border: 1px solid var(--border); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.split-img .float-card.tl { top: 22px; left: -28px; }
.split-img .float-card.br { bottom: 22px; right: -28px; animation-delay: 1.2s; }
.float-card b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
.float-card span { font-size: 0.8rem; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 24px 0; }
.check-list li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--muted); }
.check-list li strong { color: var(--ink); display: block; }
.check-list .ck { width: 26px; height: 26px; flex: none; border-radius: 8px; background: #ecfdf3; border: 1px solid #bbf7d0; color: #15803d; display: grid; place-items: center; margin-top: 2px; }
.check-list .ck svg { width: 14px; height: 14px; }

/* Gallery ---------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; }
.g-item { border-radius: 18px; overflow: hidden; position: relative; border: 1px solid var(--border); margin: 0; background: var(--bg3); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.g-item:hover img { transform: scale(1.07); }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(180deg, transparent, rgba(11, 22, 38, 0.86)); color: #fff; font-weight: 600; font-size: 0.9rem; transform: translateY(8px); opacity: 0; transition: 0.4s; }
.g-item:hover figcaption { transform: none; opacity: 1; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* Stats ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 32px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--font-head); font-size: 2.8rem; font-weight: 800; line-height: 1; margin-bottom: 8px; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* Testimonials ----------------------------------------------------------- */
.testi { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; transition: 0.35s; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.testi:hover { transform: translateY(-6px); border-color: var(--border2); box-shadow: var(--shadow); }
.testi .quote { position: absolute; top: 20px; right: 24px; width: 40px; height: 40px; color: rgba(36, 87, 230, 0.12); }
.testi-head { display: flex; gap: 14px; align-items: center; }
.avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border2); flex: none; }
.avatar-initials { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; flex: none; }
.testi-head b { display: block; color: var(--ink); }
.testi-head span { font-size: 0.82rem; color: var(--muted); }
.testi p { color: var(--muted); margin: 0; flex: 1; }
.testi h4 { margin: 0; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: #e2e8f0; stroke: none; }
.stars svg.on { fill: #f59e0b; }
.rating-big { display: flex; align-items: center; gap: 24px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.rating-big .num { font-family: var(--font-head); font-size: 4rem; font-weight: 800; line-height: 1; color: var(--ink); }
.rating-bars { flex: 1; min-width: 220px; }
.rating-bars div { display: grid; grid-template-columns: 22px 1fr 40px; gap: 10px; align-items: center; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.rating-bars i { height: 8px; border-radius: 99px; background: var(--bg3); overflow: hidden; display: block; }
.rating-bars i b { display: block; height: 100%; background: linear-gradient(90deg, #fbbf24, #f59e0b); width: 0; transition: width 1.2s 0.3s; }

/* CTA band --------------------------------------------------------------- */
.cta-band { position: relative; border-radius: 28px; overflow: hidden; padding: 76px 64px; background: var(--ink); color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--cta-img) center/cover no-repeat; opacity: 0.3; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 22, 38, 0.95) 20%, rgba(11, 22, 38, 0.35)); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 640px; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.72); max-width: 560px; font-size: 1.05rem; }
.cta-band .eyebrow { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.cta-band .btn-ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: #fff; box-shadow: none; }

/* Page hero (inner pages) ------------------------------------------------ */
.page-hero { position: relative; padding: calc(var(--nav-h) + 80px) 0 76px; overflow: hidden; text-align: center; background: var(--ink); color: #fff; }
.page-hero.has-img::before { content: ""; position: absolute; inset: 0; background: var(--hero-img) center/cover no-repeat; opacity: 0.42; }
.page-hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 22, 38, 0.55), rgba(11, 22, 38, 0.9)); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 14px; color: #fff; }
.page-hero p { color: rgba(255, 255, 255, 0.75); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.page-hero .eyebrow { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.crumbs { display: inline-flex; gap: 8px; color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; margin-bottom: 16px; }
.crumbs a { color: rgba(255, 255, 255, 0.8); }

/* Forms ------------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 0.78rem; color: var(--muted2); font-weight: 400; }
.input, .select, .textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--ink); font: inherit; outline: 0; transition: 0.2s; }
.input::placeholder, .textarea::placeholder { color: var(--muted2); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(36, 87, 230, 0.12); }
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b6b84' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.form-row-weight { grid-template-columns: 0.72fr 1.35fr 1fr; }
.input-unit { display: flex; gap: 8px; }
.input-unit .input { flex: 1; min-width: 0; }
.input-unit .unit-tag { flex: none; display: grid; place-items: center; min-width: 54px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface2); color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted2); pointer-events: none; }
.input-icon .input { padding-left: 44px; }
.input-icon .toggle-pw { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; display: grid; place-items: center; }
.input-icon .toggle-pw svg { width: 18px; height: 18px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }

/* Auth pages ------------------------------------------------------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; padding-top: var(--nav-h); }
.auth-side { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 56px; color: #fff; }
.auth-side > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 22, 38, 0.15), rgba(11, 22, 38, 0.9)); }
.auth-side > div { position: relative; z-index: 1; max-width: 460px; }
.auth-side blockquote { margin: 0 0 18px; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; line-height: 1.35; color: #fff; }
.auth-side b { color: #fff; }
.auth-side .muted { color: rgba(255, 255, 255, 0.7); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); margin-bottom: 28px; }
.auth-alt { text-align: center; margin-top: 22px; color: var(--muted); font-size: 0.92rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted2); font-size: 0.8rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Badges ----------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; border: 1px solid transparent; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-lg { font-size: 0.9rem; padding: 8px 16px; }
.badge-gray { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.badge-blue { background: #e8efff; color: #1e40af; border-color: #c7d7f7; }
.badge-cyan { background: #e6f6ff; color: #0369a1; border-color: #bae6fd; }
.badge-cyan .dot { animation: ping 1.6s infinite; }
.badge-violet { background: #f3e8ff; color: #6d28d9; border-color: #e9d5ff; }
.badge-amber { background: #fff4df; color: #b45309; border-color: #fde4b6; }
.badge-indigo { background: #eef0ff; color: #3730a3; border-color: #d6d9ff; }
.badge-indigo .dot { animation: ping 1.6s infinite; }
.badge-green { background: #ecfdf3; color: #15803d; border-color: #bbf7d0; }
.badge-red { background: #fff1f1; color: #b91c1c; border-color: #fecaca; }

/* Tracking page ---------------------------------------------------------- */
.track-hero { padding: calc(var(--nav-h) + 64px) 0 36px; text-align: center; }
.track-hero.compact { padding: calc(var(--nav-h) + 28px) 0 8px; text-align: left; }
.track-hero.compact .track-form { margin: 0; max-width: 560px; }
.track-hero .track-form { margin-inline: auto; max-width: 640px; }
.track-hero .samples { color: var(--muted2); font-size: 0.85rem; }
.track-hero .samples a { color: var(--muted); border-bottom: 1px dashed var(--muted2); margin: 0 4px; }
.copy-btn { background: var(--surface2); border: 1px solid var(--border); color: var(--muted); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 0.78rem; display: inline-flex; gap: 6px; align-items: center; transition: 0.2s; font-family: var(--font-body); }
.copy-btn:hover { color: var(--primary); border-color: var(--border2); }
.copy-btn svg { width: 14px; height: 14px; }

.ship-head { padding: 0; overflow: hidden; }
.ship-top { display: grid; grid-template-columns: minmax(220px, 0.9fr) minmax(300px, 1.6fr) minmax(200px, auto); gap: 28px; padding: 28px 30px; align-items: center; border-bottom: 1px solid var(--border); }
.ship-ref span, .ship-eta span, .ship-now span { display: block; font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted2); font-weight: 700; margin-bottom: 6px; }
.ship-ref h2 { margin: 0 0 8px; font-size: 1.55rem; letter-spacing: 0.02em; word-break: break-all; }
.ship-now h1 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0 0 8px; }
.ship-now p { margin: 0; color: var(--muted); }
.ship-now .ship-route { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.ship-route b { color: var(--ink); }
.ship-route svg { width: 16px; height: 16px; color: var(--primary); }
.ship-eta { text-align: right; }
.ship-eta b { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); margin-bottom: 8px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; list-style: none; margin: 0; padding: 0; background: var(--surface2); }
.rail-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 14px; text-align: center; }
.rail-step + .rail-step { border-left: 1px solid var(--border); }
.rail-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--muted2); background: #fff; transition: 0.3s; }
.rail-icon svg { width: 18px; height: 18px; }
.rail-label { font-size: 0.8rem; font-weight: 600; color: var(--muted2); }
.rail-done { background: #eef3ff; }
.rail-done .rail-icon { background: var(--primary); border-color: transparent; color: #fff; }
.rail-done .rail-label { color: var(--ink); }
.rail-now { background: #fff; }
.rail-now .rail-icon { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.rail-now .rail-label { color: var(--ink); font-weight: 700; }
.rail-now::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); }
.ship-note { padding: 18px 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; border-top: 1px solid var(--border); }
.ship-note p { margin: 0; color: var(--muted); flex: 1; min-width: 220px; }
.wn-flag { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 0.82rem; color: #b45309; background: #fff4df; border: 1px solid #fde4b6; padding: 5px 11px; border-radius: 8px; }
.wn-flag svg { width: 15px; height: 15px; }
.wn-meta { font-size: 0.8rem; color: var(--muted2); }
.progress { height: 10px; border-radius: 999px; background: var(--bg3); overflow: hidden; position: relative; }
.progress-fill { height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width 1.6s cubic-bezier(0.2, 0.7, 0.2, 1); position: relative; }
.progress-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); animation: shimmer 2.2s infinite; }

/* The live map */
.ship-map { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #e8eef7; }
.ship-map .ml-host { height: 620px; width: 100%; }
.map-panel { position: absolute; top: 16px; left: 16px; z-index: 5; width: min(340px, calc(100% - 32px)); background: rgba(255, 255, 255, 0.96); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.map-panel .mp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.map-panel .mp-head b { font-family: var(--font-head); font-size: 0.95rem; }
.map-panel .mp-loc { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--ink); line-height: 1.3; }
.map-panel .mp-addr { color: var(--muted); font-size: 0.84rem; margin-top: 2px; }
.map-panel .mp-rows { display: grid; gap: 7px; margin-top: 12px; font-size: 0.84rem; color: var(--muted); }
.map-panel .mp-rows div { display: flex; justify-content: space-between; gap: 12px; }
.map-panel .mp-rows b { color: var(--ink); text-align: right; }
.map-panel .mp-note { margin: 10px 0 0; font-size: 0.8rem; color: var(--muted2); }
.map-toolbar { position: absolute; z-index: 5; right: 16px; top: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.map-toolbar .seg { display: inline-flex; background: rgba(255, 255, 255, 0.96); border: 1px solid var(--border); border-radius: 12px; padding: 4px; box-shadow: var(--shadow-sm); }
.map-toolbar .seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-size: 0.8rem; font-weight: 700; color: var(--muted); cursor: pointer; font-family: var(--font-body); }
.map-toolbar .seg button.on { background: var(--ink); color: #fff; }
.map-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.map-bottom { position: absolute; z-index: 5; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; pointer-events: none; }
.map-bottom > * { pointer-events: auto; }
.map-legend { display: flex; gap: 14px; flex-wrap: wrap; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; font-size: 0.76rem; color: var(--muted); font-weight: 600; box-shadow: var(--shadow-sm); }
.map-legend i { display: inline-block; width: 22px; height: 4px; border-radius: 3px; vertical-align: middle; margin-right: 6px; }
.map-legend .lg-done i { background: var(--primary); }
.map-legend .lg-est i { background: var(--amber); }
.map-legend .lg-next i { background: repeating-linear-gradient(90deg, #94a3b8 0 4px, transparent 4px 8px); }
.map-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.map-head h3 { margin: 0; }
.map-hint { position: absolute; left: 12px; bottom: 12px; z-index: 500; background: rgba(255, 255, 255, 0.9); border: 1px solid var(--border); color: var(--muted); font-size: 0.74rem; padding: 5px 10px; border-radius: 8px; pointer-events: none; }
.map-shell { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: #e8eef7; }
#shipment-map { height: 460px; width: 100%; }

/* MapLibre chrome */
.maplibregl-map { font-family: var(--font-body); }
.maplibregl-ctrl-group { border-radius: 12px !important; box-shadow: var(--shadow-sm) !important; border: 1px solid var(--border); overflow: hidden; }
.maplibregl-ctrl-group button { width: 36px !important; height: 36px !important; }
.maplibregl-ctrl-attrib { font-size: 10.5px !important; background: rgba(255, 255, 255, 0.8) !important; border-radius: 8px 0 0 0; }
.maplibregl-ctrl-attrib a { color: var(--muted) !important; }
.maplibregl-cooperative-gesture-screen { font-size: 0.9rem; border-radius: 24px; }
.maplibregl-popup-content { font-family: var(--font-body); border-radius: 14px !important; padding: 14px 16px !important; box-shadow: var(--shadow) !important; border: 1px solid var(--border); min-width: 220px; }
.maplibregl-popup-close-button { font-size: 18px; color: var(--muted); padding: 4px 8px; }
.map-pop b { display: block; color: var(--ink); font-size: 0.98rem; margin-top: 6px; font-family: var(--font-head); }
.map-pop-addr { color: var(--muted); font-size: 0.83rem; margin-top: 3px; }
.map-pop p { color: var(--muted); margin: 8px 0 0; font-size: 0.85rem; }
.map-pop-time { color: var(--muted2); font-size: 0.76rem; margin-top: 8px; }
.map-pop-tag { display: inline-block; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 800; padding: 3px 8px; border-radius: 99px; }
.map-pop-completed { background: #ecfdf3; color: #15803d; }
.map-pop-current { background: #eef3ff; color: var(--primary); }
.map-pop-pending { background: #f1f5f9; color: #475569; }

/* Stop markers */
.stop-marker { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2.5px solid #94a3b8; color: #475569; font-family: var(--font-head); font-weight: 800; font-size: 0.8rem; box-shadow: 0 6px 16px rgba(15, 34, 80, 0.22); cursor: pointer; transition: transform 0.2s; }
.stop-marker:hover { transform: scale(1.12); z-index: 10; }
.stop-marker svg { width: 16px; height: 16px; }
.stop-marker.completed { background: var(--primary); border-color: #fff; color: #fff; }
.stop-marker.current { background: #fff; border-color: var(--primary); color: var(--primary); width: 40px; height: 40px; }
.stop-marker.current::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--primary); animation: mapPulse 2s ease-out infinite; }
.stop-marker.k-warehouse, .stop-marker.k-hub { border-radius: 10px; }
.stop-marker.k-port.completed, .stop-marker.k-airport.completed { background: #0f766e; }
.stop-marker.k-delivery.pending { border-style: dashed; }
.stop-marker .sm-label { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); white-space: nowrap; font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, 0.92); border: 1px solid var(--border); padding: 2px 8px; border-radius: 99px; pointer-events: none; box-shadow: var(--shadow-sm); }
.stop-marker.pending .sm-label { color: var(--muted); }
.labels-off .stop-marker .sm-label { display: none; }

/* The package itself */
.pkg-marker { position: relative; width: 50px; height: 50px; }
.pkg-marker .pm-ring { position: absolute; inset: 0; border-radius: 50%; background: rgba(245, 158, 11, 0.28); animation: pkgPulse 1.8s ease-out infinite; }
.pkg-marker .pm-body { position: absolute; inset: 7px; border-radius: 50%; background: linear-gradient(145deg, #fbbf24, #f59e0b 60%, #d97706); border: 3px solid #fff; box-shadow: 0 10px 24px rgba(180, 83, 9, 0.45); display: grid; place-items: center; color: #fff; transition: transform 0.2s linear; }
.pkg-marker .pm-body svg { width: 19px; height: 19px; }
.pkg-marker .pm-tag { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -4px); white-space: nowrap; background: var(--ink); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 4px 9px; border-radius: 99px; letter-spacing: 0.02em; box-shadow: var(--shadow-sm); }
.pkg-marker .pm-tag::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -4px; border: 4px solid transparent; border-top-color: var(--ink); }
.pkg-marker.is-est .pm-body { background: linear-gradient(145deg, #fde68a, #fbbf24 60%, #f59e0b); }
.pkg-marker.has-cargo { width: 56px; height: 56px; }
.pkg-marker.has-cargo .pm-body { inset: 6px; background: #fff; border-color: var(--amber); box-shadow: 0 10px 24px rgba(180, 83, 9, 0.35); }
.pkg-marker .pm-emoji { font-size: 26px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.pkg-marker .pm-veh { position: absolute; right: -2px; bottom: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.pkg-marker .pm-veh svg { width: 13px; height: 13px; }
.cargo-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: #fff4df; border: 1px solid #fde4b6; color: #92400e; font-weight: 700; font-size: 0.82rem; }
.cargo-chip .em { font-size: 1.05rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.detail { padding: 14px 16px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--border); }
.detail span { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted2); font-weight: 700; margin-bottom: 4px; }
.detail b { font-weight: 700; color: var(--ink); word-break: break-word; }
.party { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.party h4 { display: flex; gap: 8px; align-items: center; color: var(--primary); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.party h4 svg { width: 16px; height: 16px; }
.party b { color: var(--ink); display: block; font-size: 1.05rem; }
.party p { color: var(--muted); margin: 4px 0 0; font-size: 0.92rem; }
.party-addr { line-height: 1.55; overflow-wrap: anywhere; }
.party-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 10px !important; }
.party-contact span { display: flex; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.party-contact svg { width: 15px; height: 15px; flex: none; color: var(--primary); }

.route-wrap { overflow-x: auto; padding: 10px 0 6px; -webkit-overflow-scrolling: touch; }
.route-wrap svg { display: block; min-width: 100%; }
.route-node text { fill: var(--muted); font-size: 12px; font-family: var(--font-body); font-weight: 500; }
.route-node.completed circle.core { fill: url(#routeGrad); stroke: transparent; }
.route-node.current circle.core { fill: #fff; stroke: var(--primary); stroke-width: 3; }
.route-node.current circle.halo { animation: haloPulse 1.8s infinite; }
.route-node.pending circle.core { fill: #fff; stroke: var(--border2); stroke-width: 2; }
.route-node.completed text, .route-node.current text { fill: var(--ink); font-weight: 600; }
.route-base { stroke: rgba(148, 163, 184, 0.45); stroke-width: 3; stroke-dasharray: 6 8; fill: none; }
.route-progress { stroke: url(#routeGrad); stroke-width: 4; fill: none; stroke-linecap: round; }

.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item { position: relative; display: grid; grid-template-columns: 150px 44px 1fr; gap: 14px; padding-bottom: 28px; }
.tl-item::before { content: ""; position: absolute; left: calc(150px + 14px + 21px); top: 30px; bottom: -4px; width: 2px; background: var(--border); }
.tl-item.completed::before { background: var(--primary); }
.tl-item.current::before { background: linear-gradient(180deg, var(--primary), var(--border)); }
.tl-item:last-child::before { display: none; }
.tl-time { text-align: right; color: var(--muted); font-size: 0.84rem; padding-top: 6px; }
.tl-time b { display: block; color: var(--ink); font-weight: 700; }
.tl-dot { width: 34px; height: 34px; border-radius: 11px; border: 1.5px solid var(--border); background: #fff; margin: 2px auto 0; position: relative; z-index: 1; display: grid; place-items: center; transition: 0.3s; color: var(--muted2); }
.tl-dot svg { width: 16px; height: 16px; }
.tl-item.completed .tl-dot { background: var(--primary); border-color: transparent; color: #fff; }
.tl-item.current .tl-dot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 6px rgba(36, 87, 230, 0.14); animation: pulseRing 1.8s infinite; }
.tl-body { padding-top: 4px; }
.tl-body b { display: block; color: var(--ink); font-size: 1.02rem; font-family: var(--font-head); }
.tl-body p { color: var(--muted); margin: 2px 0 0; font-size: 0.92rem; }
.tl-item.pending .tl-body b { color: var(--muted); }
.tl-item.pending .tl-body p { color: var(--muted2); }
.tl-tag { display: inline-block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; color: var(--primary); margin-left: 8px; background: #eef3ff; padding: 2px 8px; border-radius: 99px; vertical-align: middle; }
.tl-kind { display: inline-block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--muted2); margin-left: 8px; vertical-align: middle; }
.tl-body b[data-focus-stop] { cursor: pointer; }
.tl-body b[data-focus-stop]:hover { color: var(--primary); }
.tl-addr { color: var(--muted2); font-size: 0.83rem; margin-top: 2px; display: flex; gap: 5px; align-items: flex-start; }
.tl-addr svg { width: 13px; height: 13px; flex: none; margin-top: 3px; }

.not-found { text-align: center; padding: 48px 24px; }
.not-found .icon-box { margin: 0 auto 18px; width: 70px; height: 70px; border-radius: 20px; }
.not-found .icon-box svg { width: 32px; height: 32px; }

/* Admin address picker & route builder ----------------------------------- */
.geo-picker { border: 1px solid var(--border2); background: #f5f8ff; border-radius: 14px; padding: 16px; margin-top: 6px; }
.geo-picker h5 { margin: 0 0 10px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--primary); display: flex; align-items: center; gap: 7px; }
.geo-picker h5 svg { width: 15px; height: 15px; }
.geo-search { display: flex; gap: 8px; }
.geo-search .input { flex: 1; min-width: 0; }
.geo-status { font-size: 0.8rem; color: var(--muted); margin-top: 8px; min-height: 1em; }
.geo-status.geo-ok { color: #15803d; }
.geo-status.geo-err { color: #b91c1c; }
.geo-results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.geo-result { text-align: left; background: #fff; border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 9px 12px; cursor: pointer; font-size: 0.85rem; line-height: 1.4; transition: 0.2s; font-family: var(--font-body); }
.geo-result:hover { border-color: var(--accent); background: #eef3ff; }
.geo-map { height: 280px; border-radius: 12px; overflow: hidden; margin-top: 10px; border: 1px solid var(--border); background: #e8eef7; }
.geo-coords { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 10px; align-items: end; }
.geo-coords .field { margin: 0; }
.route-builder { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: #e8eef7; margin-bottom: 18px; }
.route-builder .ml-host { height: 460px; }
.rb-help { position: absolute; z-index: 5; left: 12px; top: 12px; background: rgba(255, 255, 255, 0.95); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: 0.82rem; color: var(--muted); box-shadow: var(--shadow-sm); max-width: 360px; }
.rb-help b { color: var(--ink); }
.rb-help.rb-armed { border-color: var(--amber); background: #fff8e8; color: #92400e; }
.rb-status { position: absolute; z-index: 5; left: 12px; bottom: 12px; background: var(--ink); color: #fff; font-size: 0.8rem; padding: 7px 12px; border-radius: 10px; opacity: 0; transition: 0.3s; }
.rb-status.show { opacity: 1; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.lib-card { display: flex; gap: 14px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--border); align-items: flex-start; }
.lib-card .icon-box { margin: 0; width: 44px; height: 44px; border-radius: 12px; flex: none; }
.lib-card b { display: block; color: var(--ink); }
.lib-card .meta { color: var(--muted); font-size: 0.83rem; }
.lib-card .actions { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 640px) { .geo-coords { grid-template-columns: 1fr 1fr; } .geo-coords > .btn { grid-column: 1 / -1; } .geo-map { height: 220px; } #shipment-map { height: 340px; } .route-builder .ml-host { height: 340px; } }

/* Dashboard -------------------------------------------------------------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.pkg-card { display: grid; grid-template-columns: 1.3fr 1.6fr 1fr auto; gap: 20px; align-items: center; padding: 22px 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: 0.3s; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.pkg-card:hover { border-color: var(--border2); transform: translateX(4px); }
.pkg-card .num { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.pkg-card .num small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.pkg-card .route { color: var(--muted); font-size: 0.92rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pkg-card .route b { color: var(--ink); font-weight: 600; }
.pkg-card .route svg { width: 16px; height: 16px; color: var(--primary); flex: none; }
.pkg-card .progress { height: 8px; margin-top: 8px; }

/* FAQ -------------------------------------------------------------------- */
.faq-cats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.faq-cats button { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: 0.25s; font-family: var(--font-body); }
.faq-cats button.active, .faq-cats button:hover { background: var(--ink); color: #fff; border-color: transparent; }
.faq-item { border: 1px solid var(--border); border-radius: 16px; background: #fff; margin-bottom: 12px; overflow: hidden; transition: border-color 0.3s; box-shadow: var(--shadow-sm); }
.faq-item.open { border-color: var(--border2); }
.faq-q { width: 100%; text-align: left; padding: 20px 22px; background: none; border: 0; color: var(--ink); font-weight: 700; font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-family: var(--font-head); }
.faq-q svg { width: 20px; height: 20px; flex: none; color: var(--primary); transition: transform 0.35s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); color: var(--muted); padding: 0 22px; }
.faq-a > div { padding-bottom: 20px; }
.faq-a p:last-child { margin-bottom: 0; }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 40px; align-items: start; }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon-box { margin: 0; width: 46px; height: 46px; border-radius: 12px; flex: none; }
.contact-item b { display: block; color: var(--ink); }
.contact-item span, .contact-item a { color: var(--muted); font-size: 0.93rem; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 380px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* About ------------------------------------------------------------------ */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.milestones { position: relative; padding-left: 28px; }
.milestones::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--primary), var(--border)); }
.milestone { position: relative; padding: 0 0 28px 20px; }
.milestone::before { content: ""; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 5px rgba(36, 87, 230, 0.12); }
.milestone b { color: var(--primary); font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.1em; }
.milestone h4 { margin: 4px 0 6px; }
.milestone p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { text-align: center; }
.team-card .photo { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 1; margin-bottom: 14px; position: relative; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.team-card:hover .photo img { transform: scale(1.06); }
.team-card b { display: block; color: var(--ink); font-family: var(--font-head); }
.team-card span { color: var(--muted); font-size: 0.88rem; }

/* Legal ------------------------------------------------------------------ */
.legal-grid { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.toc h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted2); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; font-size: 0.9rem; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--primary); }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: 0.4em; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .updated { font-size: 0.85rem; color: var(--muted2); margin-bottom: 30px; }

/* Admin ------------------------------------------------------------------ */
.admin-shell { padding: calc(var(--nav-h) + 36px) 0 60px; }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; border-radius: 16px; background: #fff; border: 1px solid var(--border); margin-bottom: 32px; box-shadow: var(--shadow-sm); }
.admin-nav a { padding: 10px 16px; border-radius: 11px; color: var(--muted); font-weight: 600; font-size: 0.92rem; display: inline-flex; gap: 8px; align-items: center; transition: 0.25s; }
.admin-nav a svg { width: 17px; height: 17px; }
.admin-nav a:hover { color: var(--primary); background: #eef3ff; }
.admin-nav a.active { color: #fff; background: var(--ink); }
.admin-nav .count { background: var(--amber); color: #fff; border-radius: 99px; padding: 1px 7px; font-size: 0.72rem; }
.page-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-title h1 { font-size: 1.9rem; margin: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.stat-card { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--border); display: flex; gap: 16px; align-items: center; box-shadow: var(--shadow-sm); }
.stat-card .icon-box { margin: 0; flex: none; }
.stat-card b { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--ink); line-height: 1.1; }
.stat-card span { color: var(--muted); font-size: 0.85rem; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 200px; padding: 10px 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted2); padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 700; background: var(--surface2); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 0.93rem; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.2s; }
.table tbody tr:hover td { background: #f8fafd; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.table a.strong { color: var(--ink); font-weight: 700; }
.pagination { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 13px; border-radius: 9px; border: 1px solid var(--border); background: #fff; color: var(--muted); font-size: 0.85rem; }
.pagination .current { background: var(--ink); color: #fff; border-color: transparent; }
.stop-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--border); margin-bottom: 10px; }
.stop-row.current { border-color: var(--border2); background: #f5f8ff; }
.stop-row .n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; background: var(--bg3); color: var(--muted); }
.stop-row .n svg { width: 16px; height: 16px; }
.stop-row.completed .n { background: var(--primary); color: #fff; }
.stop-row.current .n { border: 2px solid var(--primary); color: var(--primary); background: #fff; }
.stop-row b { color: var(--ink); display: block; }
.stop-row .meta { color: var(--muted); font-size: 0.85rem; }
.stop-row .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.stop-sub { padding: 0 18px 18px; margin: -6px 0 12px; border: 1px solid var(--border2); border-top: 0; border-radius: 0 0 14px 14px; background: #f8faff; }
.inline-form { display: inline; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 0.93rem; }
.kv dt { color: var(--muted2); }
.kv dd { margin: 0; color: var(--text); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg { width: 44px; height: 44px; color: var(--muted2); margin-bottom: 12px; }
.section-card { margin-bottom: 26px; }
.section-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.section-card h3 svg { width: 20px; height: 20px; color: var(--primary); }
.review-body { color: var(--muted); font-size: 0.9rem; max-width: 460px; }

/* Footer ----------------------------------------------------------------- */
.footer { margin-top: 60px; background: var(--ink); color: rgba(255, 255, 255, 0.72); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px; padding: 68px 0 44px; }
.footer .logo { margin-bottom: 18px; }
.footer p { color: rgba(255, 255, 255, 0.62); font-size: 0.93rem; max-width: 340px; }
.footer h4 { font-size: 0.95rem; color: #fff; margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 11px; }
.footer li a { color: rgba(255, 255, 255, 0.68); transition: 0.25s; font-size: 0.93rem; display: inline-block; }
.footer li a:hover { color: #fff; transform: translateX(4px); }
.footer .contact-line { display: flex; gap: 10px; color: rgba(255, 255, 255, 0.68); font-size: 0.9rem; margin-bottom: 12px; align-items: flex-start; }
.footer .contact-line a { color: rgba(255, 255, 255, 0.85); }
.footer .contact-line svg { width: 17px; height: 17px; color: var(--amber); flex: none; margin-top: 3px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); display: grid; place-items: center; color: rgba(255, 255, 255, 0.8); transition: 0.25s; }
.social a svg { width: 18px; height: 18px; }
.social a:hover { color: #fff; background: var(--primary); border-color: transparent; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255, 255, 255, 0.45); font-size: 0.85rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.7); margin-left: 16px; }
.footer-bottom a:hover { color: #fff; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 40; opacity: 0; transform: translateY(20px); transition: 0.3s; cursor: pointer; border: 0; }
.to-top.show { opacity: 1; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* Install-the-app prompt (PWA) --------------------------------------------- */
.pwa-install { position: fixed; left: 18px; bottom: 18px; z-index: 45; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); max-width: min(420px, calc(100% - 36px)); animation: toastIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pwa-install img { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.pwa-install > div { flex: 1; min-width: 0; line-height: 1.3; }
.pwa-install b { display: block; font-family: var(--font-head); font-size: 0.92rem; }
.pwa-install span { font-size: 0.78rem; color: var(--muted); }
.pwa-install .pi-x { border: 0; background: none; color: var(--muted2); font-size: 1.3rem; cursor: pointer; padding: 2px 6px; line-height: 1; }
@media (max-width: 560px) { .pwa-install { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-wrap: wrap; } .pwa-install > div { flex-basis: calc(100% - 100px); } .pwa-install .pi-go { flex: 1; } }

/* Reveal animations ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.reveal-left { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal-scale { transform: scale(0.94); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > :nth-child(1) { transition-delay: 0.05s; } .stagger.in > :nth-child(2) { transition-delay: 0.15s; } .stagger.in > :nth-child(3) { transition-delay: 0.25s; }
.stagger.in > :nth-child(4) { transition-delay: 0.35s; } .stagger.in > :nth-child(5) { transition-delay: 0.45s; } .stagger.in > :nth-child(6) { transition-delay: 0.55s; }
.stagger.in > :nth-child(7) { transition-delay: 0.65s; } .stagger.in > :nth-child(8) { transition-delay: 0.75s; } .stagger.in > :nth-child(9) { transition-delay: 0.85s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(36, 87, 230, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(36, 87, 230, 0); } 100% { box-shadow: 0 0 0 0 rgba(36, 87, 230, 0); } }
@keyframes pingAmber { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); } 70% { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 4px rgba(36, 87, 230, 0.2); } 70% { box-shadow: 0 0 0 12px rgba(36, 87, 230, 0); } 100% { box-shadow: 0 0 0 4px rgba(36, 87, 230, 0); } }
@keyframes mapPulse { 0% { transform: scale(0.65); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes pkgPulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes haloPulse { 0% { r: 12; opacity: 0.6; } 100% { r: 26; opacity: 0; } }
@keyframes gradientMove { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { to { width: 68%; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes scrollCue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* Wide screens ----------------------------------------------------------- */
@media (min-width: 1400px) {
  .section-head { max-width: 820px; }
  .hero h1 { font-size: clamp(3.2rem, 3.6vw, 4.6rem); }
  .hero .lead { max-width: 620px; font-size: 1.2rem; }
  .hero .track-form { max-width: 660px; }
  .hero-map { height: 660px; }
  .gallery { grid-auto-rows: 260px; }
  .split { gap: 80px; }
  .split-img > img { height: 540px; }
  .legal-grid { grid-template-columns: 300px minmax(0, 1100px); justify-content: start; gap: 80px; }
  .detail-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Admin: mobile-first table → card transformation ------------------------ */
.admin-nav { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a { white-space: nowrap; flex: none; }

@media (max-width: 880px) {
  .table-wrap { overflow: visible; border: 0; background: none; border-radius: 0; box-shadow: none; }
  .table { min-width: 0; width: 100%; display: block; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table tbody { display: block; }
  .table tbody tr { display: block; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
  .table tbody tr:hover td { background: none; }
  .table td { display: grid; grid-template-columns: minmax(84px, 34%) 1fr; gap: 12px; align-items: start; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; text-align: left; }
  .table td:last-child { border-bottom: 0; padding-bottom: 0; }
  .table td::before { content: attr(data-label); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted2); font-weight: 700; padding-top: 3px; }
  .table td:not([data-label]) { grid-template-columns: 1fr; }
  .table td[data-label="Actions"] { display: block; padding-top: 12px; }
  .table td > .badge, .table td > .stars, .table td > .btn { justify-self: start; width: -moz-fit-content; width: fit-content; }
  .table td .actions { justify-content: flex-start; gap: 8px; }
  .table td .actions .btn { padding: 9px 12px; font-size: 0.82rem; }
  .table td .review-body { max-width: 100%; }
  .table td form[id^="pw-"], .table td form[id^="av-"] { justify-content: flex-start !important; flex-wrap: wrap; }
  .table td form[id^="pw-"] .input, .table td form[id^="av-"] .select { max-width: none !important; flex: 1; min-width: 140px; }
  .pagination { justify-content: center; }
  .admin-shell { padding-top: calc(var(--nav-h) + 24px); }
  .page-title { flex-direction: column; align-items: stretch; gap: 14px; }
  .page-title h1 { font-size: 1.6rem; }
  .page-title > .flex, .page-title > form { width: 100%; }
  .page-title .btn, .page-title > form .btn { flex: 1; justify-content: center; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .stat-card b { font-size: 1.5rem; }
  .toolbar { gap: 8px; }
  .toolbar .input-icon { width: 100%; min-width: 0 !important; flex: 1 1 100% !important; }
  .toolbar .select, .toolbar > .btn { flex: 1; min-width: 0; }
  .admin-shell .card { padding: 20px 18px; }
  .stop-row { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .stop-row .n { grid-row: 1; }
  .stop-row .actions { justify-content: flex-start; gap: 8px; }
  .stop-row .actions .btn { padding: 9px 12px; font-size: 0.82rem; }
  .stop-row .actions form { display: inline-flex; }
}
@media (max-width: 520px) {
  .toolbar .select, .toolbar > .btn { flex: 1 1 100%; min-width: 0; width: 100%; }
  .table tbody tr { padding: 12px 14px; }
  .table td { grid-template-columns: 1fr; gap: 2px; padding: 8px 0; }
  .table td::before { padding-top: 0; }
  .admin-nav { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-radius: 0; border-left: 0; border-right: 0; }
  .page-title .btn { font-size: 0.88rem; padding: 11px 14px; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .hero { min-height: 0; padding-bottom: 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-map { height: 480px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats, .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .split-img .float-card.tl { left: 12px; } .split-img .float-card.br { right: 12px; }
  .legal-grid { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .pkg-card { grid-template-columns: 1fr 1fr; }
  .ship-top { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .ship-eta { text-align: left; }
  .rail { grid-auto-flow: row; grid-auto-columns: auto; }
  .rail-step { flex-direction: row; justify-content: flex-start; gap: 14px; text-align: left; padding: 12px 22px; }
  .rail-step + .rail-step { border-left: 0; border-top: 1px solid var(--border); }
  .rail-now::after { width: 3px; height: auto; top: 0; right: auto; }
  .ship-note { padding: 16px 22px; }
  .ship-map .ml-host { height: 520px; }
}
@media (max-width: 768px) {
  .section { padding-block: 70px; }
  .grid-3, .grid-2, .values, .steps { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g-wide { grid-column: span 2; } .g-tall { grid-row: span 1; }
  .form-row, .form-row-3, .form-row-weight { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 44px 1fr; }
  .tl-item::before { left: 21px; }
  .tl-time { grid-column: 2; grid-row: 2; text-align: left; padding: 0; margin-top: 4px; }
  .tl-time b { display: inline; margin-right: 8px; }
  .tl-body { grid-column: 2; grid-row: 1; }
  .tl-dot { grid-row: 1; }
  .cta-band { padding: 48px 28px; }
  .stop-row { grid-template-columns: 34px 1fr; }
  .stop-row .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 10px; }
  .pkg-card { grid-template-columns: 1fr; gap: 12px; }
  .map-panel { position: static; width: auto; border-radius: 0; border: 0; border-bottom: 1px solid var(--border); box-shadow: none; background: #fff; }
  .ship-map .ml-host { height: 440px; }
  .map-toolbar { top: auto; bottom: 16px; right: 12px; }
  .map-bottom { right: auto; bottom: 16px; left: 12px; }
  .map-legend { display: none; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 2.3rem; }
  .track-form { flex-direction: column; }
  .track-form .btn { width: 100%; }
  .hero-stats { gap: 24px; }
  .hero-map { height: 400px; border-radius: 20px; }
  .hero-photos { display: none; }
  .hm-chip { min-width: 150px; padding: 10px 12px; }
  .stats, .footer-grid, .grid-4, .team, .gallery { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .gallery { grid-auto-rows: 200px; }
  .g-wide { grid-column: span 1; }
  .split-img > img { height: 300px; }
  .section-head { margin-bottom: 36px; }
  .toasts { right: 12px; width: calc(100% - 24px); }
  .auth-form { padding: 36px 18px; }
  .track-hero { padding-top: calc(var(--nav-h) + 36px); }
  .track-hero.compact { padding-top: calc(var(--nav-h) + 18px); }
  .ship-ref h2 { font-size: 1.25rem; }
  .map-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .map-actions .btn { justify-content: center; }
  .map-hint { display: none; }
  .ship-map .ml-host { height: 380px; }
  .map-toolbar .seg button { padding: 6px 9px; font-size: 0.74rem; }
  .party { padding: 18px; }
  .detail { padding: 13px 15px; }
  .detail b { font-size: 0.95rem; }
  .tl-body b { font-size: 0.97rem; line-height: 1.35; }
  .copy-btn { font-size: 0.72rem; padding: 5px 8px; }
  .stop-marker .sm-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal, .stagger > * { opacity: 1; transform: none; }
}
