/* Blue Jay Logistics -- stylesheet. Originally built on Tailwind v4
   (`@import "tailwindcss"`); this static version replaces that build step
   with the small set of hand-written utility classes below (see the end
   of this file) plus the full hand-authored design system that follows,
   copied as-is so every screen renders pixel-identical. `.dark` variants
   throughout are toggled by assets/js/dashboard.js. */

:root {
  --blue-950: #051a44;
  --blue-900: #08245c;
  --blue-800: #0a3986;
  --blue-650: #0d5fd0;
  --blue-500: #1688ff;
  --blue-200: #cae2ff;
  --blue-100: #edf6ff;
  --cyan: #5ad6ff;
  --ink: #102033;
  --muted: #64748b;
  --line: #d9e6f5;
  --paper: #ffffff;
  --soft: #f6f9fd;
  --shadow: 0 24px 70px rgba(7, 42, 92, 0.14);
  --radius: 8px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--blue-500);
  color: var(--paper);
}

.icon-sprite {
  /* display: none here breaks <use> icon references on Safari (iOS in
     particular) and several other mobile/in-app browsers: WebKit treats
     a display:none ancestor as removed from the render tree, so any
     <use href="#icon-x"> pointing at a <symbol> inside it resolves to
     nothing. The icon then renders empty, which is why icons were
     collapsing to a rendering artifact on phones instead of showing.
     This keeps the sprite out of the visible layout and out of the
     accessibility tree without display:none, which every browser's
     <use> resolution handles correctly. */
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon,
.icon-xl {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.icon-xl {
  width: clamp(2rem, 4vw, 3.2rem);
  height: clamp(2rem, 4vw, 3.2rem);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--blue-900);
  box-shadow: var(--shadow);
  transform: translateY(-150%);
  transition: transform 0.25s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container-page {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
}

.scroll-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue-500));
  transition: width 0.08s linear;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  min-height: var(--header-height);
  /* Flex, not a fixed 3-column grid: the header's child count changes
     (brand, mobile toggle, nav, language switcher, portal link), and a
     rigid grid pushed the extra item onto a broken second row. */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: var(--paper);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, min-height 0.3s ease;
}

/* The nav takes the free space between brand and the right-hand
   controls, so those stay pinned to the edges as before. */
.site-header > .site-nav { flex: 1 1 auto; justify-content: center; }
.site-header > .brand,
.site-header > .lang-switcher,
.site-header > .header-action { flex: 0 0 auto; }

.site-header.is-scrolled,
.site-header.nav-active {
  min-height: 66px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-950);
  box-shadow: 0 14px 40px rgba(9, 41, 83, 0.09);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: start;
  min-width: max-content;
}

.brand-mark {
  display: block;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius);
  background: #fff;
  object-fit: contain;
  padding: 2px;
  flex-shrink: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.05;
}

.brand small {
  color: currentColor;
  font-size: 0.72rem;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 700;
}

/* Spacing via margins, not flex `gap`: gap on a flex container isn't
   supported in older WebKit (some in-app browsers and older Safari),
   where the links would otherwise run together with no separation.
   The plain rem value is a fallback for engines without clamp(). */
.nav-login-item { display: none; }  /* shown only in the mobile menu */

.site-nav > a + a {
  margin-left: 1.5rem;
  margin-left: clamp(0.8rem, 2.5vw, 2rem);
}

.site-nav a {
  position: relative;
  padding: 0.45rem 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 100%;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle,
.header-action,
.button,
.mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.header-action {
  justify-self: end;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid currentColor;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid currentColor;
  background: transparent;
  color: currentColor;
}

.header-action:hover,
.button:hover,
.mode-tab:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 86svh;
  overflow: hidden;
  color: var(--paper);
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: clamp(7rem, 14vw, 10rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  transform: translate3d(0, 0, 0) scale(1.04);
  filter: saturate(0.96) contrast(1.03);
  will-change: transform;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 26, 68, 0.92) 0%, rgba(5, 26, 68, 0.72) 42%, rgba(5, 26, 68, 0.22) 100%),
    linear-gradient(0deg, rgba(5, 26, 68, 0.44), rgba(5, 26, 68, 0.08));
}

.hero-content {
  display: grid;
  align-content: center;
  gap: 1.35rem;
}

.eyebrow {
  margin: 0;
  color: var(--blue-500);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.contact .eyebrow {
  color: var(--cyan);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  font-size: 4.7rem;
  font-size: clamp(4.7rem, 16vw, 12.8rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title span {
  display: inline-block;
  transform: translateY(110%) rotate(3deg);
  animation: title-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title span:nth-child(2) {
  /* Solid fallback FIRST: color: transparent only ever makes sense once
     we know the outline effect below it will actually render. Without
     this, any browser that doesn't support -webkit-text-stroke (several
     Android browsers, some in-app webviews) shows "JAY" as fully
     invisible text -- transparent, with no stroke to replace it. */
  color: rgba(255, 255, 255, 0.92);
  animation-delay: 0.14s;
}

@supports (-webkit-text-stroke: 1px white) or (text-stroke: 1px white) {
  .hero-title span:nth-child(2) {
    /* The "no background" hollow look: transparent fill, outline only,
       so the hero image shows through each letter. */
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.92);
    text-stroke: 1.5px rgba(255, 255, 255, 0.92);
  }
}

/* "LTD" sits small and high next to JAY -- solid white so it stays
   legible against the outlined JAY it follows. */
.hero-title-suffix {
  font-size: 0.2em;
  line-height: 1;
  vertical-align: super;
  margin-left: 0.12em;
  letter-spacing: 0.06em;
  color: #fff;
  -webkit-text-stroke: 0;
}

.hero-copy {
  max-width: 38rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  min-height: 3.15rem;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  appearance: none;
}

.button-primary {
  background: var(--paper);
  color: var(--blue-900);
  box-shadow: 0 20px 50px rgba(2, 15, 38, 0.2);
}

.button-blue {
  background: var(--blue-500);
  color: var(--paper);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  backdrop-filter: blur(12px);
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 8.5rem));
  gap: 0.7rem;
  max-width: 32rem;
  padding: 0;
  margin: clamp(0.8rem, 4vw, 2.5rem) 0 0;
  list-style: none;
}

.hero-kpis li {
  min-height: 5.2rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero-kpis strong,
.hero-kpis span {
  display: block;
}

.hero-kpis strong {
  font-size: 1.45rem;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1;
}

.hero-kpis span {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
}

.service-strip {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.strip-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.5rem;
  color: var(--blue-900);
}

.strip-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: max-content;
  font-weight: 900;
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section-head {
  display: grid;
  gap: 0.8rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head.centered {
  justify-items: center;
  text-align: center;
}

.section h2,
.contact h2 {
  /* 12ch is a nice measure in English, but a single long word in
     Kinyarwanda or French ("irahagaragara") is wider than that box and
     used to spill out of it. min(100%, …) keeps the heading inside its
     column whatever the language, and break-word lets a word that is
     still too wide wrap instead of overflowing. */
  max-width: min(100%, 14ch);
  margin: 0;
  color: var(--blue-950);
  font-size: 2.1rem;
  font-size: clamp(2.1rem, 5.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;       /* older engines */
  hyphens: auto;
}

.service-grid,
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 17rem;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(8, 36, 92, 0.03);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-200);
  box-shadow: var(--shadow);
}

.service-card h3,
.fleet-card h3,
.process-step h3 {
  margin: 1.4rem 0 0.45rem;
  color: var(--blue-950);
  font-size: 1.05rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.service-card p,
.network-copy p {
  max-width: 31rem;
  margin: 0;
  color: var(--muted);
}

.network {
  overflow: clip;
  background: linear-gradient(180deg, var(--soft), var(--paper));
}

.network-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 2rem;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.network-copy {
  display: grid;
  gap: 1rem;
}

.route-board {
  position: relative;
  min-height: 30rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--blue-950);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.route-board::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 70px 70px;
  content: "";
  opacity: 0.55;
}

.route-map {
  position: absolute;
  inset: 0;
}

.route-line {
  position: absolute;
  top: 50%;
  left: 13%;
  width: 73%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue-500));
  transform: rotate(-10deg);
  transform-origin: left;
}

.route-node {
  position: absolute;
  z-index: 2;
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--paper);
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 12px rgba(90, 214, 255, 0.16);
}

.node-one {
  left: 12%;
  top: 55%;
}

.node-two {
  left: 48%;
  top: 41%;
}

.node-three {
  right: 12%;
  top: 31%;
}

.route-steps {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: end;
  gap: 0.8rem;
  min-height: 27rem;
}

.route-step {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.8rem;
  width: min(100%, 24rem);
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(10px);
  transition: color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

.route-step:nth-child(2) {
  margin-left: 12%;
}

.route-step:nth-child(3) {
  margin-left: 24%;
}

.route-step span,
.route-step strong {
  grid-column: 2;
}

.route-step svg {
  grid-row: span 2;
}

.route-step span {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.route-step strong {
  color: var(--paper);
}

.route-step.is-active {
  background: rgba(90, 214, 255, 0.2);
  color: var(--cyan);
  transform: translateX(0.55rem);
}

.image-band {
  position: relative;
  height: clamp(18rem, 46vw, 36rem);
  overflow: hidden;
}

.image-band img {
  width: 100%;
  height: 122%;
  object-fit: cover;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.fleet-card {
  position: relative;
  min-height: clamp(22rem, 38vw, 31rem);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--blue-950);
  color: var(--paper);
}

.fleet-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease, filter 0.65s ease;
}

.fleet-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 26, 68, 0.88), rgba(5, 26, 68, 0.06) 62%);
  content: "";
}

.fleet-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.fleet-card div {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: grid;
  gap: 0.8rem;
}

.fleet-card h3 {
  max-width: 10ch;
  margin: 0;
  color: var(--paper);
  font-size: 1.6rem;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1;
}

.planner {
  background: var(--blue-100);
}

.planner-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(250px, 0.8fr);
  gap: 1rem;
  gap: clamp(1rem, 4vw, 2rem);
  align-items: center;
  min-height: 14rem;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.planner-copy h2 {
  max-width: 11ch;
  margin: 0.45rem 0 0;
  font-size: 2rem;
  font-size: clamp(2rem, 5vw, 4rem);
}

.mode-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.mode-tab {
  min-height: 2.9rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--blue-900);
}

.mode-tab.is-active {
  border-color: var(--blue-500);
  background: var(--blue-650);
  color: var(--paper);
  box-shadow: 0 12px 30px rgba(13, 95, 208, 0.22);
}

.planner-output {
  display: grid;
  gap: 0.35rem;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  border-left: 1px solid var(--line);
}

.planner-output span,
.planner-output small {
  color: var(--muted);
  font-weight: 800;
}

.planner-output strong {
  color: var(--blue-950);
  font-size: 2rem;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.95;
}

.process-rail {
  --rail-progress: 0%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.process-rail::before,
.process-rail::after {
  position: absolute;
  left: 0;
  right: 0;
  top: 3.2rem;
  height: 2px;
  content: "";
}

.process-rail::before {
  background: var(--line);
}

.process-rail::after {
  width: var(--rail-progress);
  background: linear-gradient(90deg, var(--cyan), var(--blue-500));
  transition: width 0.15s linear;
}

.process-step {
  position: relative;
  z-index: 1;
  min-height: 13rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.process-step span {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 900;
}

.contact {
  background: var(--blue-950);
  color: var(--paper);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  gap: clamp(2rem, 7vw, 5rem);
  align-items: flex-start;
}
.contact-grid > .contact-copy { flex: 1 1 320px; }
.contact-grid > .contact-form { flex: 1.2 1 360px; }

.contact h2 {
  color: var(--paper);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2rem;
}

.contact-links a,
.contact-links span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1 1 calc(50% - 0.425rem);
  min-width: 220px;
}

.contact-form label.full,
.contact-form .full,
.form-status {
  flex: 1 1 100%;
}

.contact-form span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue-950);
  outline: none;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(90, 214, 255, 0.16);
}

.form-status {
  min-height: 1.25rem;
  margin: 0;
  color: var(--cyan);
  font-weight: 800;
}

.site-footer {
  padding: 2rem 0;
  background: #03112f;
  color: var(--paper);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 700;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes title-in {
  to {
    transform: translateY(0) rotate(0);
  }
}

@supports (animation-timeline: view()) {
  .image-band img {
    animation: image-drift linear both;
    animation-timeline: view();
    animation-range: entry -15% exit 115%;
  }
}

@keyframes image-drift {
  from {
    transform: translateY(-8%);
  }
  to {
    transform: translateY(8%);
  }
}

/* ============================================================
   Client portal dashboard — redesigned to match the look of Blue Jay's
   internal staff system: a navy dispatch-style sidebar, card/pill/table
   components, and the same type system (Space Grotesk display, Inter
   body, JetBrains Mono for reference codes). Scoped entirely under
   .dashboard-shell with its own --dash- prefixed variables so none of
   this touches the public marketing site's look above this line.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

.dashboard-shell {
  --dash-navy-950: #0b1b32;
  --dash-navy-900: #10233d;
  --dash-navy-800: #16304f;
  --dash-blue-600: #2657a6;
  --dash-blue-500: #3b74c4;
  --dash-blue-100: #dce8f9;
  --dash-paper: #f5f7fb;
  --dash-white: #ffffff;
  --dash-ink: #16202f;
  --dash-ink-soft: #5c6b85;
  --dash-ink-faint: #8b96ab;
  --dash-line: #e3e7ef;
  --dash-ok: #1e8e5a; --dash-ok-bg: #e5f6ee;
  --dash-warn: #c77c15; --dash-warn-bg: #fbf0dc;
  --dash-bad: #c4432b; --dash-bad-bg: #fbeae6;
  --dash-info: #2657a6; --dash-info-bg: #eaf1fb;
  --dash-neutral-bg: #eef0f4;
  --dash-font-display: 'Space Grotesk', sans-serif;
  --dash-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --dash-font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --dash-sidebar-w: 248px;
  --dash-radius-sm: 8px;
  --dash-radius-md: 12px;
  --dash-radius-lg: 18px;
  --dash-shadow-sm: 0 1px 2px rgba(11, 27, 50, 0.06);
  --dash-shadow-md: 0 8px 24px rgba(11, 27, 50, 0.08);

  min-height: 100vh;
  background: var(--dash-paper);
  color: var(--dash-ink);
  font-family: var(--dash-font-body);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.dashboard-shell h1, .dashboard-shell h2, .dashboard-shell h3, .dashboard-shell h4 {
  font-family: var(--dash-font-display); font-weight: 600; margin: 0; color: var(--dash-navy-950); letter-spacing: -0.01em;
}
.dashboard-shell code, .dashboard-shell .mono { font-family: var(--dash-font-mono); }
.dashboard-shell a { color: var(--dash-blue-600); }
.dashboard-shell button { font-family: inherit; }

/* ---------- Shell / sidebar ---------- */
.dashboard-shell .app-frame { display: flex; min-height: 100vh; }

.dashboard-shell .app-sidebar {
  width: var(--dash-sidebar-w); flex-shrink: 0; background: linear-gradient(180deg, var(--dash-navy-950), var(--dash-navy-900));
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.dashboard-shell .app-sidebar .brand,
.dashboard-shell .app-sidebar .dashboard-brand {
  display: flex; align-items: center; gap: 10px; padding: 20px 18px; color: #fff;
}
.dashboard-shell .brand-mark {
  width: 36px; height: 36px; border-radius: 9px; background: #fff; object-fit: contain; padding: 2px;
  display: block; flex-shrink: 0;
}
.dashboard-shell .app-sidebar .brand strong { display: block; font-family: var(--dash-font-display); font-weight: 700; color: #fff; font-size: 15px; line-height: 1.2; }
.dashboard-shell .app-sidebar .brand small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: #8fa8cc; }

.dashboard-shell .app-nav { flex: 1; padding: 10px 12px; overflow-y: auto; }
.dashboard-shell .app-sidebar-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,0.08); }

.dashboard-shell .app-nav-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 2px; border-radius: var(--dash-radius-sm);
  color: #c3d3ec; font-size: 13.5px; font-weight: 500; transition: background 0.12s ease, color 0.12s ease;
}
.dashboard-shell .app-nav-link svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.85; }
.dashboard-shell .app-nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.dashboard-shell .app-nav-link.is-active { background: var(--dash-blue-600); color: #fff; box-shadow: var(--dash-shadow-sm); }

/* ---------- Main column / topbar ---------- */
.dashboard-shell .app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dashboard-shell .app-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 28px; background: var(--dash-white); border-bottom: 1px solid var(--dash-line); position: sticky; top: 0; z-index: 5;
}
.dashboard-shell .app-topbar .eyebrow { font-size: 11.5px; color: var(--dash-ink-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.dashboard-shell .app-topbar h1 { font-size: 19px; }
.dashboard-shell .topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dashboard-shell .icon-button {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--dash-radius-sm); border: 1px solid var(--dash-line); background: var(--dash-white); cursor: pointer; color: var(--dash-ink-soft);
  position: relative;
}
.dashboard-shell .icon-button:hover { border-color: var(--dash-blue-500); color: var(--dash-blue-600); }
.dashboard-shell .icon-button svg { width: 16px; height: 16px; }

/* ---------- Notification bell + dropdown ---------- */
.dashboard-shell .notif-center { position: relative; }
.dashboard-shell .notif-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 999px; background: var(--dash-bad, #dc2626); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 16px; text-align: center;
  border: 2px solid var(--dash-white);
}
.dashboard-shell .notif-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 40;
  width: min(360px, 88vw);
  background: var(--dash-white); border: 1px solid var(--dash-line); border-radius: var(--dash-radius-md);
  box-shadow: var(--dash-shadow-md, 0 18px 40px rgba(9,41,83,.14));
  overflow: hidden;
}
.dashboard-shell .notif-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--dash-line);
  font-weight: 800; font-size: 13.5px; color: var(--dash-ink);
}
.dashboard-shell .notif-mark-all {
  border: none; background: none; color: var(--dash-blue-600); font-weight: 700;
  font-size: 12px; cursor: pointer; padding: 2px 4px;
}
.dashboard-shell .notif-mark-all:hover { text-decoration: underline; }
.dashboard-shell .notif-list { max-height: 340px; overflow-y: auto; }
.dashboard-shell .notif-empty { padding: 22px 14px; text-align: center; color: var(--dash-ink-faint); font-size: 13px; }
.dashboard-shell .notif-item {
  display: block; width: 100%; text-align: left; border: none; background: none; cursor: pointer;
  padding: 11px 14px; border-bottom: 1px solid var(--dash-line);
}
.dashboard-shell .notif-item:last-child { border-bottom: none; }
.dashboard-shell .notif-item:hover { background: var(--dash-paper); }
.dashboard-shell .notif-item.is-unread { background: var(--dash-blue-50, #eff6ff); }
.dashboard-shell .notif-item-title { font-weight: 700; font-size: 13px; color: var(--dash-ink); display: flex; align-items: center; gap: 6px; }
.dashboard-shell .notif-item.is-unread .notif-item-title::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--dash-blue-600); flex-shrink: 0;
}
.dashboard-shell .notif-item-body { font-size: 12.5px; color: var(--dash-ink-soft); margin-top: 2px; line-height: 1.4; }
.dashboard-shell .notif-item-time { font-size: 11px; color: var(--dash-ink-faint); margin-top: 4px; }

@media (max-width: 480px) {
  .dashboard-shell .notif-menu { position: fixed; top: 62px; right: 8px; left: 8px; width: auto; }
}

.dashboard-shell > .app-frame > .app-main > *:not(.app-topbar) { padding: 24px 28px 60px; }

/* ---------- Cards / panels ---------- */
.dashboard-shell .dashboard-card,
.dashboard-shell .panel {
  background: var(--dash-white); border: 1px solid var(--dash-line); border-radius: var(--dash-radius-md);
  padding: 20px; box-shadow: var(--dash-shadow-sm);
}
.dashboard-shell .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.dashboard-shell .panel-head h2 { font-size: 15.5px; }
.dashboard-shell .dashboard-stack { display: flex; flex-direction: column; gap: 18px; }
.dashboard-shell .dashboard-grid { display: flex; flex-wrap: wrap; gap: 18px; }
.dashboard-shell .dashboard-grid.cols-2 > * { flex: 1 1 360px; }

/* ---------- Metrics ---------- */
.dashboard-shell .metric-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.dashboard-shell .metric-card { flex: 1 1 220px; }
.dashboard-shell .metric-card {
  background: var(--dash-white); border: 1px solid var(--dash-line); border-radius: var(--dash-radius-md);
  padding: 16px 18px; display: flex; align-items: flex-start; justify-content: space-between; box-shadow: var(--dash-shadow-sm);
}
.dashboard-shell .metric-card span { display: block; font-size: 12px; color: var(--dash-ink-faint); margin-bottom: 6px; }
.dashboard-shell .metric-card strong { display: block; font-family: var(--dash-font-display); font-size: 22px; color: var(--dash-navy-950); }
.dashboard-shell .metric-card svg { color: var(--dash-blue-500); flex-shrink: 0; }

/* ---------- Tracking / timeline ---------- */
.dashboard-shell .tracking-card > div:first-child { margin-bottom: 16px; }
.dashboard-shell .tracking-card span { display: block; font-family: var(--dash-font-mono); font-size: 12px; color: var(--dash-ink-faint); }
.dashboard-shell .tracking-card strong { display: block; font-family: var(--dash-font-display); font-size: 17px; margin: 4px 0; }
.dashboard-shell .tracking-card small { color: var(--dash-ink-soft); }
.dashboard-shell .timeline { list-style: none; margin: 0; padding: 0; }
.dashboard-shell .timeline li { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.dashboard-shell .timeline li:not(:last-child)::before { content: ''; position: absolute; left: 4px; top: 14px; bottom: 0; width: 1px; background: var(--dash-line); }
.dashboard-shell .timeline li span { width: 9px; height: 9px; border-radius: 50%; background: var(--dash-blue-500); margin-top: 5px; flex-shrink: 0; }
.dashboard-shell .timeline li strong { display: block; font-size: 13.5px; }
.dashboard-shell .timeline li p { margin: 2px 0; font-size: 13px; color: var(--dash-ink-soft); }
.dashboard-shell .timeline li small { color: var(--dash-ink-faint); font-size: 11.5px; }

/* ---------- Data tables ---------- */
.dashboard-shell .data-table { display: flex; flex-direction: column; }
.dashboard-shell .data-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 11px 4px; border-bottom: 1px solid var(--dash-line); font-size: 13.5px;
}
.dashboard-shell .data-row > * { flex: 1 1 140px; min-width: 0; }
.dashboard-shell .data-row > .row-actions { flex: 0 0 auto; }
.dashboard-shell .data-row:last-child { border-bottom: none; }
.dashboard-shell .empty-note { color: var(--dash-ink-faint); font-size: 13px; padding: 14px 4px; margin: 0; }

/* ---------- Buttons / chips ---------- */
.dashboard-shell .button, .dashboard-shell .chip-button {
  font-family: var(--dash-font-body); font-weight: 600; border-radius: var(--dash-radius-sm); border: 1px solid transparent; cursor: pointer;
}
.dashboard-shell .button { padding: 11px 18px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.dashboard-shell .button.full { width: 100%; }
.dashboard-shell .button-blue, .dashboard-shell .button-primary { background: var(--dash-blue-600); color: #fff; }
.dashboard-shell .button-blue:hover, .dashboard-shell .button-primary:hover { background: var(--dash-navy-800); }
.dashboard-shell .chip-button { padding: 6px 12px; font-size: 12.5px; }
.dashboard-shell .chip-button-positive { background: var(--dash-ok-bg); color: var(--dash-ok); }
.dashboard-shell .chip-button-negative { background: var(--dash-bad-bg); color: var(--dash-bad); }
.dashboard-shell .chip-button-neutral { background: var(--dash-neutral-bg); color: var(--dash-ink-soft); }
.dashboard-shell .row-actions { display: flex; gap: 6px; justify-self: end; }

/* ---------- Status pills (replaces the Tailwind-utility badges) ---------- */
.dashboard-shell .inline-flex[class*="bg-"] {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--dash-font-body) !important;
  font-weight: 600 !important; font-size: 11.5px !important; padding: 4px 10px !important; border-radius: 999px !important;
  background: var(--dash-neutral-bg) !important; color: var(--dash-ink-soft) !important;
}
.dashboard-shell .inline-flex[class*="bg-emerald"], .dashboard-shell .inline-flex[class*="bg-cyan"] { background: var(--dash-ok-bg) !important; color: var(--dash-ok) !important; }
.dashboard-shell .inline-flex[class*="bg-amber"] { background: var(--dash-warn-bg) !important; color: var(--dash-warn) !important; }
.dashboard-shell .inline-flex[class*="bg-rose"] { background: var(--dash-bad-bg) !important; color: var(--dash-bad) !important; }
.dashboard-shell .inline-flex[class*="bg-blue"], .dashboard-shell .inline-flex[class*="bg-indigo"] { background: var(--dash-info-bg) !important; color: var(--dash-info) !important; }

/* ---------- Tabs ---------- */
.dashboard-shell .dashboard-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--dash-line); margin-bottom: 20px; overflow-x: auto; }
.dashboard-shell .dashboard-tab {
  background: none; border: none; padding: 10px 4px; margin-right: 22px; font-size: 13.5px; font-weight: 600;
  color: var(--dash-ink-faint); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; flex-shrink: 0;
}
.dashboard-shell .dashboard-tab.is-active { color: var(--dash-blue-600); border-color: var(--dash-blue-600); }
.dashboard-shell .dashboard-tab-panel[hidden] { display: none; }

/* ---------- Forms ---------- */
.dashboard-shell .form-field { display: block; margin-bottom: 14px; }
.dashboard-shell .form-field span { display: block; font-size: 12.5px; font-weight: 600; color: var(--dash-ink-soft); margin-bottom: 5px; }
.dashboard-shell .form-field input, .dashboard-shell .form-field select, .dashboard-shell .form-field textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--dash-radius-sm); border: 1px solid var(--dash-line);
  font-family: inherit; font-size: 14px; background: var(--dash-white); color: var(--dash-ink);
}
.dashboard-shell .form-field input:focus, .dashboard-shell .form-field select:focus, .dashboard-shell .form-field textarea:focus {
  outline: none; border-color: var(--dash-blue-500); box-shadow: 0 0 0 3px var(--dash-blue-100);
}
.dashboard-shell .request-form.compact .form-field { margin-bottom: 10px; }

/* ---------- Chat panel ---------- */
.dashboard-shell .chat-panel { display: flex; flex-wrap: wrap; gap: 16px; min-height: 360px; }
.dashboard-shell .chat-conversation-list { flex: 0 0 220px; }
.dashboard-shell .chat-main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; }
@media (max-width: 720px) { .dashboard-shell .chat-conversation-list { flex: 1 1 100%; } }
.dashboard-shell .chat-conversation-list { display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--dash-line); padding-right: 12px; }
.dashboard-shell .chat-conversation-item {
  text-align: left; background: none; border: none; border-radius: var(--dash-radius-sm); padding: 9px 10px; cursor: pointer;
}
.dashboard-shell .chat-conversation-item strong { display: block; font-size: 13px; }
.dashboard-shell .chat-conversation-item span { display: block; font-size: 12px; color: var(--dash-ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-shell .chat-conversation-item:hover { background: var(--dash-paper); }
.dashboard-shell .chat-conversation-item.is-active { background: var(--dash-blue-100); }
.dashboard-shell .chat-thread { display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.dashboard-shell .chat-empty { color: var(--dash-ink-faint); font-size: 13px; }
.dashboard-shell .chat-composer { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--dash-line); padding-top: 12px; margin-top: 12px; }
.dashboard-shell .chat-composer input {
  padding: 10px 12px; border-radius: var(--dash-radius-sm); border: 1px solid var(--dash-line); font-family: inherit; font-size: 13.5px;
}
.dashboard-shell .chat-composer > div[data-recipient-fields] { display: flex; gap: 8px; }
.dashboard-shell .chat-composer > div[data-recipient-fields] input { flex: 1; }

.dashboard-shell .app-topbar .topbar-title { display: flex; align-items: center; gap: 12px; }
.dashboard-shell #app-sidebar-toggle { display: none; }
.dashboard-shell .app-sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(11,27,50,0.45); z-index: 45; }

/* ---------- Mobile: slide-out sidebar ---------- */
@media (max-width: 900px) {
  .dashboard-shell #app-sidebar-toggle { display: inline-flex; }
  .dashboard-shell .app-sidebar { position: fixed; left: -260px; top: 0; z-index: 50; transition: left 0.2s ease; }
  .dashboard-shell .app-sidebar.is-open { left: 0; }
  .dashboard-shell .app-sidebar-backdrop.is-open { display: block; }
  .dashboard-shell > .app-frame > .app-main > *:not(.app-topbar) { padding: 18px 16px 50px; }
  .dashboard-shell .app-topbar { padding: 14px 16px; }
}

/* ---------- Marketing site: mobile nav drawer ----------
   These were lost when the dashboard section of this stylesheet was
   rewritten; restored here and adapted for the flexbox header. */
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  /* On small screens the portal link moves INTO the menu, under Contact,
     rather than competing for space in the header. */
  .site-header > .header-action { display: none; }
  .site-header > .lang-switcher { order: 2; }
  .site-header > .nav-toggle { order: 3; }

  .nav-login-item {
    display: block;
    margin-top: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    color: var(--blue-650);
    font-weight: 800;
  }

  .site-nav {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: calc(var(--header-height) + 0.5rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    color: var(--blue-950);
    box-shadow: var(--shadow);
    transform: translateY(-1rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.95rem;
    border-radius: var(--radius);
  }

  /* Stacked in the drawer -- swap the horizontal spacing for vertical. */
  .site-nav > a + a { margin-left: 0; margin-top: 0.2rem; }

  .service-grid,
  .network-grid,
  .planner-shell {
    grid-template-columns: 1fr;
  }
}

/* ---------- Long-word safety net ----------
   Applies in every language: Kinyarwanda and French produce noticeably
   longer words than the English the layout was first drawn with. */
h1, h2, h3, h4,
.hero-copy, .section-head p,
.service-card p, .fleet-card p,
.shipment-card h4, .dashboard-card h3 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ---------- Language switcher ---------- */
.lang-switcher { position: relative; }
.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.lang-button:hover { background: rgba(255, 255, 255, 0.18); }
.lang-button .icon { width: 1.05rem; height: 1.05rem; }
.lang-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 10rem;
  display: flex;
  flex-direction: column;
  padding: 0.35rem;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  z-index: 60;
}
.lang-menu[hidden] { display: none; }
.lang-menu a {
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.lang-menu a:hover { background: var(--soft); }
.lang-menu a.is-active { background: var(--blue-100); color: var(--blue-800); }

/* ---------- Auth pages (login / register / forgot / reset) ---------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-card {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 960px;
  border-radius: var(--dash-radius-lg);
  overflow: hidden;
  box-shadow: var(--dash-shadow-md);
}
.auth-visual {
  flex: 1 1 360px;
  background: linear-gradient(160deg, var(--dash-navy-950), var(--dash-navy-800));
  color: #fff;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.auth-logo-link { display: inline-block; }
.auth-logo-link img { display: block; width: 72px; height: 72px; border-radius: 14px; background: #fff; padding: 6px; }
.auth-visual .eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: #8fa8cc; margin: 0 0 8px; }
.auth-visual h1 { color: #fff; font-size: 26px; margin: 0 0 10px; }
.auth-visual > div > p { color: #c3d3ec; font-size: 14.5px; line-height: 1.6; margin: 0; }
.auth-route {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--dash-radius-md);
  font-size: 13px;
  color: #dce8f9;
}
.auth-route .icon { width: 20px; height: 20px; flex-shrink: 0; }
.auth-panel {
  flex: 1 1 360px;
  background: var(--dash-white);
  padding: 40px 36px;
  display: flex;
  align-items: center;
}
.auth-form { width: 100%; }
.auth-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
}
.auth-links a { color: var(--dash-blue-600); }
.form-note { padding: 10px 14px; border-radius: var(--dash-radius-sm); font-size: 13.5px; margin: 0 0 16px; }
.form-note-error { background: var(--dash-bad-bg); color: var(--dash-bad); border: 1px solid rgba(196,67,43,0.2); }
@media (max-width: 720px) {
  .auth-visual, .auth-panel { padding: 30px 24px; }
}

/* ---------- Shipment status cards ---------- */
.dashboard-shell .shipment-cards { display: flex; flex-direction: column; gap: 14px; }
.dashboard-shell .shipment-card {
  border: 1px solid var(--dash-line); border-radius: var(--dash-radius-md); padding: 16px 18px; background: var(--dash-white);
}
.dashboard-shell .shipment-card.is-cancelled { opacity: 0.68; }
/* Submitted, not yet picked up by staff -- softer and visually distinct
   from a real shipment that's actually moving. */
.dashboard-shell .shipment-card.is-pending {
  border-style: dashed;
  background: var(--dash-paper);
}
.dashboard-shell .shipment-card.is-pending .shipment-code { color: var(--dash-warn); font-weight: 700; letter-spacing: 0.06em; }
.dashboard-shell .shipment-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.dashboard-shell .shipment-code { font-size: 11.5px; color: var(--dash-ink-faint); display: block; }
.dashboard-shell .shipment-card-head h4 { font-size: 15.5px; margin-top: 3px; }
.dashboard-shell .shipment-meta { font-size: 12.5px; color: var(--dash-ink-soft); margin: 12px 0 0; }
.dashboard-shell .shipment-latest { font-size: 13px; margin: 8px 0 0; color: var(--dash-ink); }
.dashboard-shell .shipment-latest .text-faint { color: var(--dash-ink-faint); font-size: 11.5px; }

/* Progress rail: four steps, filled up to wherever the shipment is. */
.dashboard-shell .shipment-progress {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 0;
}
.dashboard-shell .shipment-progress li {
  flex: 1 1 0; position: relative; text-align: center; font-size: 11px; color: var(--dash-ink-faint);
}
.dashboard-shell .shipment-progress li::before {
  content: ''; position: absolute; top: 6px; left: 0; right: 50%; height: 2px; background: var(--dash-line);
}
.dashboard-shell .shipment-progress li:first-child::before { display: none; }
.dashboard-shell .shipment-progress li .dot {
  position: relative; z-index: 1; display: block; width: 14px; height: 14px; margin: 0 auto 6px;
  border-radius: 50%; background: var(--dash-white); border: 2px solid var(--dash-line);
}
.dashboard-shell .shipment-progress li.is-done::before,
.dashboard-shell .shipment-progress li.is-current::before { background: var(--dash-blue-500); }
.dashboard-shell .shipment-progress li.is-done .dot { background: var(--dash-blue-500); border-color: var(--dash-blue-500); }
.dashboard-shell .shipment-progress li.is-current .dot {
  background: var(--dash-blue-600); border-color: var(--dash-blue-600); box-shadow: 0 0 0 4px var(--dash-blue-100);
}
.dashboard-shell .shipment-progress li.is-done,
.dashboard-shell .shipment-progress li.is-current { color: var(--dash-ink); font-weight: 600; }
.dashboard-shell .shipment-progress li.is-cancelled .dot { border-color: var(--dash-bad); background: var(--dash-bad-bg); }

/* ---------- Chat bubbles (WhatsApp/Instagram style) ---------- */
.dashboard-shell .chat-thread {
  background: var(--dash-paper);
  border-radius: var(--dash-radius-md);
  padding: 16px;
  overflow-y: auto;
  max-height: 460px;
}
.dashboard-shell .chat-bubble {
  max-width: 78%;
  align-self: flex-start;
  background: var(--dash-white);
  border-radius: 16px 16px 16px 4px;
  padding: 9px 13px 7px;
  box-shadow: var(--dash-shadow-sm);
  position: relative;
}
.dashboard-shell .chat-bubble strong {
  display: block;
  font-family: var(--dash-font-body);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--dash-blue-600);
  margin-bottom: 2px;
}
.dashboard-shell .chat-bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--dash-ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.dashboard-shell .chat-bubble small {
  display: block;
  text-align: right;
  font-size: 10.5px;
  color: var(--dash-ink-faint);
  margin-top: 3px;
}
/* The client's own messages: blue, right-aligned, tail on the right. */
.dashboard-shell .chat-bubble-self {
  align-self: flex-end;
  background: var(--dash-blue-600);
  border-radius: 16px 16px 4px 16px;
}
.dashboard-shell .chat-bubble-self strong { color: rgba(255,255,255,0.82); }
.dashboard-shell .chat-bubble-self p { color: #fff; }
.dashboard-shell .chat-bubble-self small { color: rgba(255,255,255,0.7); }

/* Composer sits under the thread like a messaging app's input bar. */
.dashboard-shell .chat-composer {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border-top: none;
  padding-top: 12px;
  flex-wrap: wrap;
}
.dashboard-shell .chat-composer input[name="draft"] {
  flex: 1 1 200px;
  border-radius: 999px;
  padding: 11px 16px;
}
.dashboard-shell .chat-composer > div[data-recipient-fields] { flex: 1 1 100%; }
.dashboard-shell .chat-composer .icon-button {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--dash-blue-600); color: #fff; border-color: var(--dash-blue-600); flex-shrink: 0;
}
.dashboard-shell .chat-composer .icon-button:hover { background: var(--dash-navy-800); border-color: var(--dash-navy-800); }
.dashboard-shell .chat-empty { color: var(--dash-ink-faint); font-size: 13px; text-align: center; margin: auto; }


/* ---------- Marketing site: phone layout ----------
   Restored (and adapted for the flex-based header/forms) after the
   dashboard section of this stylesheet was rewritten -- these rules had
   been lost, leaving the public site cramped on a phone. */
@media (max-width: 720px) {
  .container-page { width: min(100% - 1.2rem, 1180px); }

  .site-header { padding-inline: 0.8rem; }

  .hero { min-height: 84svh; padding-top: 6.8rem; }
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 26, 68, 0.92), rgba(5, 26, 68, 0.64)),
      linear-gradient(0deg, rgba(5, 26, 68, 0.36), rgba(5, 26, 68, 0.08));
  }
  .hero-title { font-size: 4.2rem; font-size: clamp(4.2rem, 26vw, 7.2rem); }

  /* Stack the calls to action and let them fill the width. */
  .hero-actions { display: flex; flex-direction: column; align-items: stretch; }
  .hero-actions .button,
  .contact-form .button { width: 100%; }

  /* Single column for everything that pairs up on desktop. */
  .contact-grid,
  .contact-form label,
  .request-form,
  .footer-grid { flex-direction: column; }
  .contact-form label { flex: 1 1 100%; min-width: 0; }
  .hero-kpis,
  .fleet-grid,
  .service-grid,
  .process-rail { grid-template-columns: 1fr; }
  .hero-kpis { max-width: none; }

  .strip-track {
    justify-content: flex-start;
    overflow-x: auto;
    min-height: 4.8rem;
    scrollbar-width: none;
  }
  .strip-track::-webkit-scrollbar { display: none; }

  .route-board { min-height: 28rem; }
  .route-step,
  .route-step:nth-child(2),
  .route-step:nth-child(3) { width: 100%; margin-left: 0; }

  .footer-grid { align-items: flex-start; }

  /* Dashboard on a phone: cards and rows go full width. */
  .dashboard-shell .metric-card { flex: 1 1 100%; }
  .dashboard-shell .data-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .dashboard-shell .data-row > * { flex: 1 1 auto; width: 100%; }
  .dashboard-shell .data-row > .row-actions { justify-content: flex-start; }
  .dashboard-shell .shipment-card-head { flex-direction: column; }
  .dashboard-shell .shipment-progress li .step-label { font-size: 10px; }
  .dashboard-shell .chat-bubble { max-width: 90%; }
  .dashboard-shell .app-topbar { align-items: flex-start; flex-direction: column; }
  .auth-card { border-radius: var(--dash-radius-md); }
}

.dashboard-shell .lang-menu { background: var(--dash-white); border-color: var(--dash-line); }
.dashboard-shell .lang-menu a { color: var(--dash-ink); }
.dashboard-shell .lang-menu a:hover { background: var(--dash-paper); }
.dashboard-shell .lang-menu a.is-active { background: var(--dash-blue-100); color: var(--dash-blue-600); }

/* ---------- Dark theme ---------- */
/* assets/js/dashboard.js toggles .dark on <html>, same mechanism the
   marketing site already uses -- not a class on .dashboard-shell itself. */
html.dark .dashboard-shell {
  --dash-paper: #0b1420; --dash-white: #101b2c; --dash-ink: #e7ecf5; --dash-ink-soft: #a9b6cc; --dash-ink-faint: #78859e; --dash-line: #223248;
}
html.dark .dashboard-shell .app-nav-link:hover { background: rgba(255,255,255,0.08); }
/* ------------------------------------------------------------------ */
/* Utility classes -- the original app generated these at build time  */
/* via `@import "tailwindcss";` (Tailwind v4). This PHP/HTML/CSS/JS    */
/* version has no build step, so the exact set actually used across   */
/* the auth card and status badges is hand-written here instead, using*/
/* Tailwind's own default palette values for pixel-identical output.  */
/* ------------------------------------------------------------------ */
.grid { display: grid; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.place-items-center { place-items: center; }
.min-h-svh { min-height: 100svh; }
.min-h-7 { min-height: 1.75rem; }
.min-h-12 { min-height: 3rem; }
.w-full { width: 100%; }
.max-w-5xl { max-width: 64rem; }
.overflow-hidden { overflow: hidden; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.p-3 { padding: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.rounded-\[8px\] { border-radius: 8px; }
.border { border-width: 1px; border-style: solid; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

@media (min-width: 768px) {
  .md\:grid-cols-\[0\.92fr_1\.08fr\] { grid-template-columns: 0.92fr 1.08fr; }
}

/* Tailwind default palette values used by the status badge tones and the
   register-notice callout on the auth card. */
.border-sky-100 { border-color: #e0f2fe; }
.bg-sky-50 { background-color: #f0f9ff; }
.text-sky-950 { color: #082f49; }
.text-slate-500 { color: #64748b; }
.text-slate-700 { color: #334155; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-amber-100 { background-color: #fef3c7; }
.text-amber-900 { color: #78350f; }
.bg-cyan-100 { background-color: #cffafe; }
.text-cyan-900 { color: #164e63; }
.bg-blue-100 { background-color: #dbeafe; }
.text-blue-900 { color: #1e3a8a; }
.bg-indigo-100 { background-color: #e0e7ff; }
.text-indigo-900 { color: #312e81; }
.bg-emerald-100 { background-color: #d1fae5; }
.text-emerald-900 { color: #064e3b; }
.bg-rose-100 { background-color: #ffe4e6; }
.text-rose-900 { color: #881337; }

.dark .border-sky-100 { border-color: rgba(125, 211, 252, 0.25); }
.dark .bg-sky-50 { background-color: rgba(14, 116, 144, 0.16); }
.dark .text-sky-950 { color: #e0f2fe; }
.dark .text-slate-500 { color: #94a3b8; }
.dark .text-slate-700 { color: #cbd5e1; }
