/* ==============================================================
   Cargolink - Public Container Tracking
   Century brand palette (sampled from centurysc.com):
     primary navy  #014a89   secondary red #e4002b
   Fonts: Montserrat (headings) + Open Sans (body) - matching centurysc.com.
   Tokens drive every component, so the whole UI re-tones from here.
   ============================================================== */

/* === Light theme tokens (default) =========================== */
:root {
  --cds-surface-base: #f1f4f8;
  --cds-surface-1:    #f8f8f8;   /* Century off-white */
  --cds-surface-2:    #ffffff;
  --cds-surface-3:    #e7ecf2;
  --cds-surface-4:    #d4dce6;

  --cds-border-subtle: rgba(1, 74, 137, 0.10);
  --cds-border-strong: rgba(1, 74, 137, 0.24);
  --cds-divider:       rgba(1, 74, 137, 0.14);

  --cds-primary:       #014a89;   /* Century navy */
  --cds-primary-rgb:   1, 74, 137;
  --cds-primary-hover: #004684;
  --cds-primary-soft:  rgba(1, 74, 137, 0.10);

  --cds-accent:        #e4002b;   /* Century red */
  --cds-accent-rgb:    228, 0, 43;
  --cds-accent-hover:  #bf0000;
  --cds-accent-soft:   rgba(228, 0, 43, 0.12);

  --cds-success: #2f855a;  --cds-success-rgb: 47, 133, 90;
  --cds-warning: #b45309;  --cds-warning-rgb: 180, 83, 9;
  --cds-info:    #0284c7;  --cds-info-rgb: 2, 132, 199;
  --cds-danger:  #e4002b;  --cds-danger-rgb: 228, 0, 43;

  --cds-text:        #313131;   /* Century dark grey */
  --cds-text-muted:  #555a60;
  --cds-text-subtle: #80868e;

  --cds-focus-ring:   0 0 0 4px rgba(228, 0, 43, 0.22);
  /* Softer, multi-layer shadows for a more modern sense of depth */
  --cds-shadow-sm: 0 1px 2px rgba(16, 33, 60, 0.06), 0 1px 3px rgba(16, 33, 60, 0.07);
  --cds-shadow:    0 2px 4px rgba(16, 33, 60, 0.05), 0 8px 24px rgba(16, 33, 60, 0.10);
  --cds-shadow-lg: 0 4px 8px rgba(16, 33, 60, 0.06), 0 24px 56px rgba(16, 33, 60, 0.16);

  --cds-radius-sm: 9px;
  --cds-radius:    13px;
  --cds-radius-lg: 18px;

  --cds-duration-fast:       120ms;
  --cds-duration-base:       220ms;
  --cds-duration-slow:       360ms;
  --cds-duration-deliberate: 480ms;
  --cds-ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --cds-ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --cds-ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --cds-ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --cds-duration-fast: 0ms; --cds-duration-base: 0ms;
    --cds-duration-slow: 0ms; --cds-duration-deliberate: 0ms;
  }
}

/* === Base + typography ====================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: light dark; }

body {
  font-family: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--cds-surface-base);
  color: var(--cds-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(var(--cds-accent-rgb), 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(var(--cds-primary-rgb), 0.10) 0%, transparent 60%);
  background-attachment: fixed;
  animation: cds-bg-drift 80s ease-in-out infinite;
  transition: background-color var(--cds-duration-base) var(--cds-ease),
              color var(--cds-duration-base) var(--cds-ease);
}

@keyframes cds-bg-drift {
  0%, 100% { background-position: 0% 0%, 100% 100%; }
  50%      { background-position: 4% 8%, 96% 92%; }
}

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif; color: var(--cds-text); }
h1 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
h3 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }

code, pre, kbd, .font-monospace { font-family: 'Roboto Mono', ui-monospace, 'SF Mono', 'Cascadia Code', monospace; }

::selection { background: var(--cds-accent-soft); color: var(--cds-text); }

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background-color: rgba(var(--cds-accent-rgb), 0.30);
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: background-color var(--cds-duration-fast) var(--cds-ease);
}
*::-webkit-scrollbar-thumb:hover { background-color: rgba(var(--cds-accent-rgb), 0.55); }
* { scrollbar-width: thin; scrollbar-color: rgba(var(--cds-accent-rgb), 0.30) transparent; }

*:focus-visible { outline: none; box-shadow: var(--cds-focus-ring); border-radius: var(--cds-radius-sm); }


/* === Header ================================================= */
.header {
  background: var(--cds-surface-2);
  border-bottom: 1px solid var(--cds-border-subtle);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; }
.brand:hover .brand-tagline strong { color: var(--cds-accent); transition: color var(--cds-duration-fast) var(--cds-ease); }
.brand-logo { height: 50px; width: auto; display: block; }
.brand-divider { width: 1px; height: 32px; background: var(--cds-border-strong); }
.brand-tagline {
  font-size: 13px; font-weight: 500;
  color: var(--cds-text-muted); line-height: 1.3;
  letter-spacing: 0.01em;
}
.brand-tagline strong {
  display: block; color: var(--cds-text);
  font-weight: 600; font-size: 14px; letter-spacing: -0.005em;
  margin-bottom: 1px;
}
.header-right { font-size: 13px; color: var(--cds-text-muted); display: flex; align-items: center; gap: 14px; }

/* Contact CTA: mirrors the red "Let's Talk / Contact Us" button on centurysc.com */
.contact-btn {
  display: inline-flex; align-items: center;
  background: var(--cds-accent);
  color: #fff; text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(var(--cds-accent-rgb), 0.30);
  transition: transform var(--cds-duration-fast) var(--cds-ease),
              box-shadow var(--cds-duration-fast) var(--cds-ease),
              background-color var(--cds-duration-fast) var(--cds-ease);
}
.contact-btn:hover {
  background: var(--cds-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--cds-accent-rgb), 0.40);
}
.contact-btn:active { transform: translateY(0); }


/* === Hero / search ========================================== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(var(--cds-accent-rgb), 0.32) 0%, transparent 58%),
    radial-gradient(ellipse 50% 55% at 8% 92%, rgba(255, 255, 255, 0.08) 0%, transparent 52%),
    linear-gradient(150deg, #013a6e 0%, var(--cds-primary) 45%, #0a5aa0 100%);
  color: #fff;
  padding: 88px 32px 116px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.10) 0%, transparent 35%),
    radial-gradient(circle at 15% 80%, rgba(255,255,255,0.05) 0%, transparent 30%);
  pointer-events: none;
}
/* Subtle grain so the large gradient doesn't band */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero h1 {
  font-size: clamp(30px, 4vw, 44px); font-weight: 800;
  letter-spacing: -0.03em; color: #fff; margin-bottom: 12px; position: relative;
}
.hero p  { font-size: 16px; opacity: 0.88; margin-bottom: 38px; position: relative; max-width: 520px; margin-left: auto; margin-right: auto; }

.search-box {
  max-width: 640px; margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--cds-radius-lg);
  padding: 7px;
  display: flex; gap: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 24px 60px rgba(2, 22, 45, 0.32),
    0 8px 20px rgba(2, 22, 45, 0.18);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.search-box input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 15px 18px; font-size: 16px;
  font-family: 'Roboto Mono', ui-monospace, monospace; letter-spacing: 1.5px;
  color: var(--cds-text);
}
.search-box input::placeholder { color: var(--cds-text-subtle); letter-spacing: 0.5px; }
.search-box button {
  background: var(--cds-accent);
  color: #fff; border: none;
  padding: 14px 30px;
  border-radius: calc(var(--cds-radius-lg) - 6px);
  font-family: 'Montserrat', inherit; font-size: 14px; font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 6px rgba(var(--cds-accent-rgb), 0.35);
  transition: transform var(--cds-duration-fast) var(--cds-ease),
              box-shadow var(--cds-duration-fast) var(--cds-ease),
              background-color var(--cds-duration-fast) var(--cds-ease);
  position: relative; overflow: hidden;
}
.search-box button:hover {
  background-color: var(--cds-accent-hover);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 8px 22px rgba(var(--cds-accent-rgb), 0.45);
}
.search-box button:active { transform: translateY(0); }
.search-box button:disabled { opacity: 0.7; cursor: progress; }

.search-hint { margin-top: 16px; font-size: 12px; opacity: 0.88; position: relative; }
.search-hint code {
  background: rgba(255,255,255,0.18);
  padding: 3px 8px; border-radius: 6px;
  font-family: 'Roboto Mono', ui-monospace, monospace; cursor: pointer;
  margin: 0 2px; border: 1px solid rgba(255,255,255,0.18);
  transition: all var(--cds-duration-fast) var(--cds-ease);
  display: inline-block;
}
.search-hint code:hover { background: rgba(255,255,255,0.30); transform: translateY(-1px); }


/* === Results card =========================================== */
.results {
  max-width: 1100px;
  margin: -52px auto 56px;
  padding: 0 32px;
  display: none;
  position: relative;
  z-index: 4;
}
.results.visible { display: block; }

.card {
  background-color: var(--cds-surface-2);
  border: 1px solid var(--cds-border-subtle);
  border-radius: var(--cds-radius-lg);
  box-shadow: var(--cds-shadow-lg);
  overflow: hidden;
  /* Thin brand accent rail along the top edge */
  border-top: 3px solid var(--cds-accent);
  animation: cds-card-in var(--cds-duration-slow) var(--cds-ease-out) both;
}
@keyframes cds-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* === Summary ================================================ */
.summary {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.summary-left { border-right: 1px solid var(--cds-border-subtle); padding-right: 32px; }

.label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--cds-text-subtle); font-weight: 600; margin-bottom: 6px;
}

.container-number {
  font-family: 'Roboto Mono', ui-monospace, monospace;
  font-size: 26px; font-weight: 600;
  color: var(--cds-text);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 1px 2px rgba(0,0,0,0.12);
  border: 1px solid transparent;
}
.status-badge::before {
  content: ''; width: 8px; height: 8px;
  border-radius: 50%; background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.eta {
  font-family: 'Montserrat', sans-serif;
  font-size: 38px; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1; margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--cds-text), var(--cds-text-muted));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eta-sub { font-size: 13px; color: var(--cds-text-muted); }

.route { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.route-point { flex: 1; }
.route-point strong { display: block; font-size: 15px; font-weight: 600; color: var(--cds-text); margin-bottom: 2px; }
.route-point span   { font-size: 12px; color: var(--cds-text-muted); }
.route-arrow {
  color: var(--cds-accent); font-size: 20px;
  filter: drop-shadow(0 0 6px rgba(var(--cds-accent-rgb), 0.40));
}

.vessel-block { margin-top: 24px; }
.vessel-block strong { font-size: 15px; font-weight: 600; color: var(--cds-text); display: block; }
.vessel-block span   { font-size: 12px; color: var(--cds-text-muted); display: block; margin-top: 2px; }


/* === Milestones tracker ===================================== */
.milestones {
  padding: 44px 32px;
  background: var(--cds-surface-1);
  border-top: 1px solid var(--cds-border-subtle);
}
.milestones h3 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--cds-accent); font-weight: 600; margin-bottom: 36px;
}
.timeline { position: relative; display: flex; justify-content: space-between; margin: 0 20px; }
.timeline::before {
  content: '';
  position: absolute; top: 24px; left: 24px; right: 24px;
  height: 4px; background: var(--cds-border-subtle);
  border-radius: 2px; z-index: 0;
}
.timeline-progress {
  position: absolute; top: 24px; left: 24px; height: 4px;
  background: linear-gradient(90deg, var(--cds-primary), var(--cds-accent));
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(var(--cds-accent-rgb), 0.45);
  z-index: 1;
  transition: width 1s var(--cds-ease-out);
  width: 0;
}
.milestone {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  width: 120px; text-align: center;
}
.milestone-dot {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--cds-surface-2);
  border: 4px solid var(--cds-border-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  transition: all var(--cds-duration-slow) var(--cds-ease);
}
.milestone.complete .milestone-dot {
  background: var(--cds-primary);
  border-color: var(--cds-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--cds-primary-rgb), 0.35);
}
.milestone.current .milestone-dot {
  background: var(--cds-surface-2);
  border-color: var(--cds-accent);
  color: var(--cds-accent);
  animation: cds-pulse-current 2s infinite;
}
@keyframes cds-pulse-current {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--cds-accent-rgb), 0.55); }
  70%      { box-shadow: 0 0 0 14px rgba(var(--cds-accent-rgb), 0); }
}
.milestone-label { font-size: 12px; font-weight: 600; color: var(--cds-text); margin-bottom: 2px; }
.milestone.pending .milestone-label { color: var(--cds-text-subtle); }
.milestone-date  { font-size: 11px; color: var(--cds-text-muted); }


/* === Event log ============================================== */
.events { padding: 32px; }
.events h3 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--cds-accent); font-weight: 600; margin-bottom: 24px;
}
.event-list {
  border-left: 2px solid var(--cds-border-subtle);
  padding-left: 28px;
  margin-left: 8px;
}
.event { position: relative; padding-bottom: 24px; }
.event::before {
  content: '';
  position: absolute; left: -36px; top: 4px;
  width: 12px; height: 12px;
  background: var(--cds-surface-2);
  border-radius: 50%;
  border: 3px solid var(--cds-surface-2);
  box-shadow: 0 0 0 2px var(--cds-border-subtle);
}
.event.complete::before {
  background: var(--cds-primary);
  box-shadow: 0 0 0 2px var(--cds-primary), 0 0 12px rgba(var(--cds-primary-rgb), 0.45);
}
.event-time     { font-size: 12px; color: var(--cds-text-subtle); margin-bottom: 4px; }
.event-title    { font-size: 14px; font-weight: 600; color: var(--cds-text); margin-bottom: 2px; }
.event-location { font-size: 13px; color: var(--cds-text-muted); }


/* === Empty / error states =================================== */
.empty-state { text-align: center; padding: 56px 32px; color: var(--cds-text-muted); }
.empty-state-icon { font-size: 52px; margin-bottom: 20px; opacity: 0.5; }
.empty-state h3 { font-size: 18px; color: var(--cds-text); margin-bottom: 8px; font-weight: 600; letter-spacing: -0.01em; }


/* === Auxiliary off-screen field ============================= */
/* Off-screen but in the DOM. Real users never see it.
   Avoid display:none - some form-fillers explicitly skip that. */
.alt-email {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}


/* === Profile chip (header) ================================== */
.profile-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 6px;
  background: var(--cds-surface-3);
  border: 1px solid var(--cds-border-subtle);
  border-radius: 999px;
  font-size: 12px; color: var(--cds-text-muted);
  margin-left: 14px;
  transition: all var(--cds-duration-fast) var(--cds-ease);
}
.profile-chip:hover { border-color: var(--cds-accent); }
.profile-chip-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cds-primary), var(--cds-accent));
  color: #fff; font-weight: 600; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20);
}
.profile-chip-text { padding: 0 4px; line-height: 1.25; }
.profile-chip-text strong { color: var(--cds-text); font-weight: 600; }
.profile-chip-text span { display: block; font-size: 11px; color: var(--cds-text-subtle); }
.profile-chip-edit, .profile-chip-clear {
  border: none; background: transparent;
  color: var(--cds-accent); cursor: pointer;
  font-size: 11px; font-weight: 600;
  padding: 4px 8px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: all var(--cds-duration-fast) var(--cds-ease);
}
.profile-chip-edit:hover  { background: var(--cds-accent-soft); color: var(--cds-accent-hover); }
.profile-chip-clear { color: var(--cds-text-subtle); }
.profile-chip-clear:hover { background: rgba(var(--cds-danger-rgb), 0.10); color: var(--cds-danger); }


/* === Profile modal ========================================== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, rgba(10, 23, 50, 0.55) 0%, rgba(5, 13, 26, 0.78) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  transition: opacity var(--cds-duration-base) var(--cds-ease);
}
.modal-backdrop.visible { opacity: 1; pointer-events: auto; }

.modal {
  width: 100%; max-width: 480px;
  background: var(--cds-surface-2);
  border: 1px solid var(--cds-border-subtle);
  border-radius: var(--cds-radius-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--cds-shadow-lg);
  padding: 32px;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: all var(--cds-duration-slow) var(--cds-ease-out);
}
.modal-backdrop.visible .modal { transform: translateY(0) scale(1); opacity: 1; }

.modal-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--cds-accent); font-weight: 600; margin-bottom: 8px;
}
.modal h2 {
  font-size: 22px; font-weight: 700; color: var(--cds-text);
  margin-bottom: 8px; letter-spacing: -0.015em;
}
.modal-intro {
  font-size: 14px; color: var(--cds-text-muted);
  margin-bottom: 24px; line-height: 1.55;
}

.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--cds-text); margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.field label .req { color: var(--cds-danger); margin-left: 2px; }
.field input {
  width: 100%;
  background: var(--cds-surface-2);
  color: var(--cds-text);
  border: 1px solid var(--cds-border-strong);
  border-radius: var(--cds-radius-sm);
  padding: 10px 12px;
  font-family: inherit; font-size: 14px;
  caret-color: var(--cds-accent);
  transition: all var(--cds-duration-fast) var(--cds-ease);
}
.field input:focus {
  outline: none;
  border-color: var(--cds-accent);
  box-shadow: 0 0 0 4px rgba(var(--cds-accent-rgb), 0.18), 0 0 0 1px var(--cds-accent);
}
.field-hint { font-size: 12px; color: var(--cds-text-subtle); margin-top: 6px; }
.field-error {
  font-size: 12px; color: var(--cds-danger); margin-top: 6px;
  display: none;
}
.field.error input { border-color: var(--cds-danger); }
.field.error .field-error { display: block; }

.modal-actions {
  display: flex; gap: 12px; margin-top: 28px;
  justify-content: flex-end;
}
.btn-primary {
  background: var(--cds-primary); color: #fff;
  border: 1px solid var(--cds-primary);
  padding: 11px 22px;
  border-radius: var(--cds-radius);
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%, rgba(0,0,0,0.05) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 2px 4px rgba(0,0,0,0.20);
  transition: all var(--cds-duration-fast) var(--cds-ease);
}
.btn-primary:hover {
  background-color: var(--cds-primary-hover);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 6px 18px rgba(var(--cds-primary-rgb), 0.45);
}
.btn-ghost {
  background: transparent; color: var(--cds-text-muted);
  border: 1px solid var(--cds-border-strong);
  padding: 11px 22px;
  border-radius: var(--cds-radius);
  font-family: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: all var(--cds-duration-fast) var(--cds-ease);
}
.btn-ghost:hover {
  background: var(--cds-surface-3);
  border-color: var(--cds-accent);
  color: var(--cds-text);
}

.modal-fineprint {
  font-size: 11px; color: var(--cds-text-subtle);
  margin-top: 18px; text-align: center;
  border-top: 1px solid var(--cds-border-subtle);
  padding-top: 14px;
}


/* === Footer ================================================= */
.footer {
  text-align: center; padding: 28px;
  font-size: 12px; color: var(--cds-text-subtle);
}
.footer a {
  color: var(--cds-accent); text-decoration: none;
  transition: all var(--cds-duration-fast) var(--cds-ease);
}
.footer a:hover {
  color: var(--cds-accent-hover);
  text-shadow: 0 0 10px rgba(var(--cds-accent-rgb), 0.40);
}


/* === Chips multi-container input (VGE-996) ==================== */
.chips-wrapper {
  flex: 1; min-height: 50px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 8px 12px;
  cursor: text;
}
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--cds-primary-soft);
  color: var(--cds-primary);
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  animation: chip-in 0.2s var(--cds-ease-out);
}
@keyframes chip-in {
  from { transform: translateY(4px) scale(0.92); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.chip button {
  background: transparent; border: none; cursor: pointer; padding: 0;
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--cds-primary);
  font-size: 13px; line-height: 1;
  transition: background var(--cds-duration-fast) var(--cds-ease);
}
.chip button:hover { background: rgba(var(--cds-primary-rgb), 0.20); }
.chips-wrapper input {
  flex: 1; min-width: 180px;
  border: none; outline: none; background: transparent;
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px; letter-spacing: 1px;
  padding: 4px 0;
  color: var(--cds-text);
}
.chips-wrapper input::placeholder {
  color: var(--cds-text-subtle); letter-spacing: normal;
  font-family: 'Open Sans', system-ui, sans-serif;
}
.chip-counter {
  max-width: 720px; margin: 8px auto 0;
  font-size: 12px; color: rgba(255,255,255,0.78);
  text-align: right;
  padding: 0 8px;
  position: relative; z-index: 1;
}
.chip-counter.at-limit { color: rgba(255, 210, 195, 0.95); font-weight: 600; }

/* === Liability disclaimer (VGE-996) =========================== */
.disclaimer {
  max-width: 720px; margin: 16px auto 0;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  font-style: italic;
  text-align: center;
  position: relative; z-index: 1;
  padding: 0 12px;
}
.disclaimer strong { color: rgba(255,255,255,0.95); font-weight: 700; font-style: normal; }

/* === Multi-container results (VGE-996) ======================== */
.multi-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap; gap: 12px;
  padding: 0 4px;
}
.multi-header h2 { font-size: 20px; font-weight: 700; color: var(--cds-text); margin: 0; }
.multi-header h2 strong { color: var(--cds-accent); }
.multi-header .missing-note { color: var(--cds-danger); font-size: 14px; font-weight: 500; margin-left: 8px; }
.multi-actions { display: flex; gap: 8px; }
.multi-actions button {
  background: transparent; border: 1px solid var(--cds-border-strong);
  color: var(--cds-text-muted);
  padding: 6px 12px; border-radius: 999px;
  font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer;
  transition: all var(--cds-duration-fast) var(--cds-ease);
}
.multi-actions button:hover { border-color: var(--cds-accent); color: var(--cds-text); }

.multi-row {
  background: var(--cds-surface-2);
  border: 1px solid var(--cds-border-subtle);
  border-radius: var(--cds-radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--cds-shadow-sm);
  transition: box-shadow var(--cds-duration-fast) var(--cds-ease), border-color var(--cds-duration-fast) var(--cds-ease);
}
.multi-row:hover { box-shadow: var(--cds-shadow); }
.multi-row.expanded { border-color: var(--cds-border-strong); }
.multi-row-summary {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(220px, 1.6fr) auto 20px;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  cursor: pointer;
  transition: background var(--cds-duration-fast) var(--cds-ease);
}
.multi-row-summary:hover { background: var(--cds-surface-1); }
.multi-row-num {
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600; font-size: 15px;
  color: var(--cds-text); letter-spacing: 0.02em;
}
.multi-row-route {
  font-size: 13px; color: var(--cds-text-muted);
  display: flex; align-items: center; gap: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.multi-row-route .arrow { color: var(--cds-accent); flex-shrink: 0; }
.multi-row-eta {
  font-weight: 600; font-size: 14px; color: var(--cds-text);
  text-align: right; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.multi-row-eta small {
  display: block; font-size: 11px; font-weight: 400;
  color: var(--cds-text-subtle);
}
.multi-row-chevron {
  width: 18px; height: 18px; color: var(--cds-text-muted);
  transition: transform var(--cds-duration-base) var(--cds-ease);
}
.multi-row.expanded .multi-row-chevron { transform: rotate(180deg); }
.multi-row-detail { display: none; border-top: 1px solid var(--cds-border-subtle); }
.multi-row.expanded .multi-row-detail {
  display: block;
  animation: detail-in 0.32s var(--cds-ease-out);
}
@keyframes detail-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.multi-row-error .multi-row-num { color: var(--cds-text-muted); }
.multi-row-error .multi-row-chevron { visibility: hidden; }
.multi-row-error .multi-row-summary { cursor: default; }
.multi-row-error .multi-row-summary:hover { background: transparent; }
.status-badge-error {
  background: rgba(var(--cds-danger-rgb), 0.12);
  color: var(--cds-danger);
  border-color: rgba(var(--cds-danger-rgb), 0.32);
}

/* === Bill of Lading + side-by-side meta (VGE-996) ============= */
.detail-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 24px;
}
.detail-meta .vessel-block,
.detail-meta .bol-block { margin-top: 0; }
.bol-block strong {
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px; font-weight: 600; color: var(--cds-text);
  word-break: break-all; display: block;
  letter-spacing: 0.02em;
}

/* === Responsive ============================================= */
@media (max-width: 768px) {
  .summary { grid-template-columns: 1fr; gap: 24px; }
  .summary-left { border-right: none; border-bottom: 1px solid var(--cds-border-subtle); padding-right: 0; padding-bottom: 24px; }
  .timeline { flex-wrap: wrap; gap: 24px; justify-content: center; }
  .timeline::before, .timeline-progress { display: none; }
  .milestone { width: 90px; }
  .hero h1 { font-size: 26px; }
  .hero { padding: 56px 24px 80px; }
  .header { padding: 14px 20px; }
  .multi-row-summary { grid-template-columns: 1fr auto; gap: 8px; padding: 14px 16px; }
  .multi-row-route, .multi-row-eta small { display: none; }
  .detail-meta { grid-template-columns: 1fr; gap: 16px; }
}
