/* ============================================================
   Vorta Logistics — design tokens
   Distinct from the core Vorta brand: cobalt blue on a navy-black
   canvas (motion / tracking / trust) instead of Vorta's emerald,
   built on the same route-and-checkpoint motif.
   ============================================================ */

:root {
  /* Color */
  --bg:            #090C15;
  --surface:       #121729;
  --surface-2:     #1A2036;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  --cobalt:        #3E63FF;
  --cobalt-dim:    #2E4FD9;
  --cobalt-wash:   rgba(62, 99, 255, 0.14);

  --amber:         #E8A23D;
  --amber-wash:    rgba(232, 162, 61, 0.12);

  --red:           #E2554B;
  --red-wash:      rgba(226, 85, 75, 0.12);

  --text:          #F4F5FA;
  --text-dim:      #ADB2C6;
  --text-mute:     #7B8098;

  /* Type */
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-dim); }

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

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

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

::selection { background: var(--cobalt-wash); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--cobalt);
  color: #06110D;
}
.btn--primary:hover { background: #1CD79A; }

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--cobalt); color: var(--cobalt); }

.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   Site header / nav
   ============================================================ */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav__brand .mark {
  width: 26px; height: 26px;
  color: var(--cobalt);
  flex-shrink: 0;
}
.nav__brand .mark svg { width: 100%; height: 100%; }
.nav__brand .sub { color: var(--text-mute); font-weight: 500; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* ============================================================
   Hero + route signature motif
   ============================================================ */

.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero__bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__bg-video video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(1.1);
}
.hero__bg-video::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(9,12,21,0.75) 45%, var(--bg) 100%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cobalt);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.hero__eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 0 0 4px var(--cobalt-wash);
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  max-width: 12ch;
}
.hero__lead {
  font-size: 17.5px;
  max-width: 46ch;
  margin-bottom: 32px;
}

.track-form {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.track-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 12px 14px;
  min-width: 0;
}
.track-form input::placeholder { color: var(--text-mute); font-family: var(--font-body); }
.track-form input:focus { outline: none; }
.track-form:focus-within { border-color: var(--cobalt); }

.hero__secondary-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14.5px;
}
.hero__secondary-cta a { color: var(--cobalt); font-weight: 600; }
.hero__secondary-cta a:hover { text-decoration: underline; }

/* Signature element: an abstract route line with checkpoint nodes and a
   traveling pulse — the same visual grammar reused literally (not just
   decoratively) on the tracking timeline further down the site. */
.route-art {
  position: relative;
  height: 340px;
}
.route-art svg { width: 100%; height: 100%; }
.route-art .route-path {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}
.route-art .route-node {
  fill: var(--surface-2);
  stroke: var(--border-strong);
  stroke-width: 1.5;
}
.route-art .route-node--active {
  fill: var(--cobalt);
  stroke: var(--cobalt);
}
.route-art .route-pulse {
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 2;
  opacity: 0;
  animation: pulse-ring 2.6s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { opacity: 0.55; r: 6; }
  80%  { opacity: 0; r: 22; }
  100% { opacity: 0; r: 22; }
}
.route-art .route-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.route-art .route-traveler {
  fill: var(--text);
  filter: drop-shadow(0 0 6px var(--cobalt));
}

/* ============================================================
   Sections
   ============================================================ */

.section { padding: 72px 0; border-top: 1px solid var(--border); }
.section--tight { padding: 48px 0; }

.section__head { max-width: 620px; margin-bottom: 44px; }
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.section__title { font-size: clamp(24px, 3vw, 32px); }

/* How it works — numbered steps are justified here: booking, transit and
   arrival are a genuine fixed sequence, not an arbitrary list. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 99, 255, 0.4);
  box-shadow: 0 16px 32px -18px rgba(62, 99, 255, 0.5);
}
.step__index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cobalt);
  margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; margin: 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

.service-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(62, 99, 255, 0.45);
}
.service-card--featured { border-color: rgba(62, 99, 255, 0.35); }
.service-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cobalt);
  background: var(--cobalt-wash);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card ul { margin: 18px 0 0; padding: 0; list-style: none; }
.service-card li {
  font-size: 14px;
  color: var(--text-dim);
  padding: 8px 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px;
}
.service-card li:first-child { border-top: none; }
.service-card li span:last-child { color: var(--text); font-family: var(--font-mono); }

/* CTA band */
.cta-band {
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 12px; }
.cta-band p { max-width: 46ch; margin: 0 auto 28px; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.footer__col a, .footer__col span {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  padding: 5px 0;
}
.footer__col a:hover { color: var(--cobalt); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   Track page
   ============================================================ */

.track-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
}
.track-hero h1 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 20px; }

.track-result { padding: 48px 0 80px; }

.not-found-card {
  padding: 40px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}
.not-found-card h2 { font-size: 20px; margin-bottom: 8px; }

.shipment-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
@media (max-width: 700px) { .shipment-summary { grid-template-columns: 1fr; } }

.summary__tracking { font-family: var(--font-mono); font-size: 13px; color: var(--text-mute); margin-bottom: 6px; }
.summary__route { font-size: 22px; font-family: var(--font-display); font-weight: 600; margin-bottom: 14px; }
.summary__route .arrow { color: var(--cobalt); margin: 0 10px; }

.summary__meta { display: flex; flex-wrap: wrap; gap: 22px; }
.summary__meta div { font-size: 13.5px; color: var(--text-mute); }
.summary__meta strong { display: block; color: var(--text); font-weight: 500; font-size: 14.5px; margin-top: 2px; }

.summary__status { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; justify-content: center; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  white-space: nowrap;
}
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.status-pill--neutral { background: var(--surface-2); color: var(--text-dim); }
.status-pill--neutral::before { background: var(--text-mute); }
.status-pill--active { background: var(--cobalt-wash); color: var(--cobalt); }
.status-pill--active::before { background: var(--cobalt); }
.status-pill--success { background: var(--cobalt-wash); color: var(--cobalt); }
.status-pill--success::before { background: var(--cobalt); }
.status-pill--warning { background: var(--amber-wash); color: var(--amber); }
.status-pill--warning::before { background: var(--amber); }
.status-pill--danger { background: var(--red-wash); color: var(--red); }
.status-pill--danger::before { background: var(--red); }

.delay-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--amber-wash);
  border: 1px solid rgba(232, 162, 61, 0.35);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}
.delay-banner__icon { color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.delay-banner strong { display: block; color: var(--amber); font-size: 14.5px; margin-bottom: 3px; }
.delay-banner p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* Timeline — literal reuse of the route/checkpoint motif from the hero,
   now carrying real information: the shipment's actual chronological path. */
.timeline { position: relative; padding-left: 6px; }
.timeline__item {
  position: relative;
  padding: 0 0 30px 34px;
  border-left: 2px dashed var(--border-strong);
  margin-left: 6px;
}
.timeline__item:last-child { border-left-color: transparent; padding-bottom: 0; }

.timeline__marker {
  position: absolute;
  left: -9px; top: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border-strong);
}
.timeline__item--latest .timeline__marker {
  background: var(--cobalt);
  border-color: var(--cobalt);
  box-shadow: 0 0 0 5px var(--cobalt-wash);
}
.timeline__item--warning .timeline__marker {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 5px var(--amber-wash);
}

.timeline__time { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-mute); margin-bottom: 4px; }
.timeline__status { font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.timeline__location { font-size: 13.5px; color: var(--text-dim); margin-bottom: 4px; }
.timeline__desc { font-size: 13.5px; color: var(--text-mute); margin: 0; }

.track-cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   Forms (send a parcel, admin login, event form)
   ============================================================ */

.form-page { padding: 56px 0 80px; }
.form-page__head { max-width: 560px; margin-bottom: 40px; }

.form-section {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.form-section h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-mute);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 20px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 760px) { .form-grid--3 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.field .hint { font-size: 12px; color: var(--text-mute); }

input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="date"], input[type="datetime-local"],
input[type="password"], textarea, select {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  width: 100%;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cobalt); }
input::placeholder, textarea::placeholder { color: var(--text-mute); }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A92' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}

.service-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .service-picker { grid-template-columns: 1fr; } }
.service-option {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  background: var(--surface-2);
  transition: border-color 0.15s ease;
}
.service-option input { position: absolute; opacity: 0; }
.service-option strong { display: block; font-size: 15px; margin-bottom: 4px; }
.service-option span { font-size: 13px; color: var(--text-mute); }
.service-option:has(input:checked) { border-color: var(--cobalt); background: var(--cobalt-wash); }
.service-option:has(input:checked) strong { color: var(--cobalt); }

.form-errors {
  padding: 16px 18px;
  background: var(--red-wash);
  border: 1px solid rgba(226, 85, 75, 0.35);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.form-errors strong { display: block; color: var(--red); font-size: 14px; margin-bottom: 6px; }
.form-errors ul { margin: 0; padding-left: 18px; }
.form-errors li { font-size: 13.5px; color: var(--text-dim); }

.form-actions { display: flex; justify-content: flex-end; margin-top: 24px; }

/* ============================================================
   Send success
   ============================================================ */

.success-page { padding: 88px 0; text-align: center; }
.success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cobalt-wash);
  color: var(--cobalt);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.success-page h1 { font-size: 26px; margin-bottom: 10px; }
.success-page > p { max-width: 44ch; margin: 0 auto 32px; }

.tracking-display {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}
.tracking-display__number { font-family: var(--font-mono); font-size: 22px; letter-spacing: 0.04em; }
.copy-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-family: var(--font-body);
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--cobalt); color: var(--cobalt); }

.success-page__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Admin
   ============================================================ */

.admin-body { background: var(--bg); min-height: 100vh; }

.admin-bar {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.admin-bar .container { display: flex; align-items: center; justify-content: space-between; }
.admin-bar__brand { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.admin-bar__brand span { color: var(--cobalt); }
.admin-bar__right { display: flex; align-items: center; gap: 16px; font-size: 13.5px; color: var(--text-mute); }

.admin-main { padding: 40px 0 72px; }

.login-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 380px;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.login-card__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font-family: var(--font-display); font-weight: 700; }
.login-card h1 { font-size: 19px; margin-bottom: 6px; }
.login-card > p { font-size: 13.5px; margin-bottom: 24px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .stats-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.stat-card__value { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.stat-card__label { font-size: 12px; color: var(--text-mute); margin-top: 2px; }

.filters-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.filters-bar input, .filters-bar select { width: auto; }
.filters-bar input[type="text"] { min-width: 220px; }

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-mute);
  background: var(--surface);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface); }
tbody a.row-link { color: var(--text); font-family: var(--font-mono); font-weight: 500; }
tbody a.row-link:hover { color: var(--cobalt); }

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-mute);
}

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }

.shipment-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .shipment-detail-grid { grid-template-columns: 1fr; } }

.detail-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.detail-card h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-mute); margin-bottom: 16px; }
.detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; }
.detail-row:first-child { border-top: none; }
.detail-row span:first-child { color: var(--text-mute); }
.detail-row span:last-child { text-align: right; }

.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }
.checkbox-row label { font-size: 13.5px; color: var(--text-dim); margin: 0; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--text-mute); margin-bottom: 18px;
}
.back-link:hover { color: var(--text); }

/* ============================================================
   Scroll-triggered reveal (see /js/reveal.js)
   ============================================================ */

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: calc(var(--reveal-index, 0) * 90ms);
}
.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
