@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Electra Logistics Solutions design system
   Logo-derived colors sampled from the Electra logo:
   Primary red #ed1c24, charcoal #333333, near-black #1c1c1e. */
:root {
  --brand-red: #ed1c24;
  --brand-red-dark: #b8141b;
  --brand-blue: #333333;
  --brand-blue-dark: #1a1a1a;
  --brand-blue-gray: #a8a8ab;
  --ink: #1f2124;
  --ink-soft: #5c5c60;
  --navy: #1c1c1e;
  --paper: #ffffff;
  --off-white: #f6f8fb;
  --line: #d8e0e8;
  --success: #146b3a;
  --error: #a2161d;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-red); }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px; z-index: 20; }
.skip-link:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.topbar { background: var(--navy); color: #fff; font-size: 14px; }
.topbar .container { display: flex; justify-content: flex-end; padding: 6px 0; }
.carrier-login-btn { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .03em; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; padding: 3px 14px; transition: background .15s, border-color .15s; }
.carrier-login-btn:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; }
.logo { width: 220px; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a, .dropdown-toggle {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.dropdown { position: relative; padding: 28px 0; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  width: 270px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 10px;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: grid; }
.dropdown-menu a { padding: 9px 10px; border-radius: 6px; }
.dropdown-menu a:hover { background: var(--off-white); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.phone { color: var(--ink); font-weight: 800; white-space: nowrap; }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 8px 10px; font-weight: 800; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 6px;
  border: 2px solid transparent;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.btn-primary { background: var(--brand-red); color: #fff; }
.btn-primary:hover { background: var(--brand-red-dark); color: #fff; }
.btn-secondary { border-color: var(--brand-blue); color: var(--brand-blue); background: #fff; }
.btn-secondary:hover { background: var(--brand-blue); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--brand-blue-dark); color: #fff; }

.hero {
  background:
    linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.72)),
    linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 46%, #ed1c24 100%);
  color: #fff;
  padding: 78px 0 56px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.eyebrow { color: var(--brand-blue-gray); text-transform: uppercase; letter-spacing: .08em; font-weight: 900; font-size: 13px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 16px; color: inherit; }
h1 { font-size: clamp(38px, 6vw, 64px); max-width: 900px; }
h2 { font-size: clamp(28px, 4vw, 42px); color: var(--navy); }
h3 { font-size: 22px; color: var(--navy); }
p { margin: 0 0 16px; }
.lead { font-size: 19px; color: inherit; max-width: 720px; }
.hero .lead { color: #ececec; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0; }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.trust-item { border-left: 4px solid var(--brand-red); background: rgba(255,255,255,.09); padding: 14px; font-weight: 800; }
.hero-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 55%;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
  display: block;
}

/* login page */
.login-page { min-height: 100vh; background: var(--off-white); display: flex; flex-direction: column; }
.login-nav { background: #fff; border-bottom: 1px solid var(--line); }
.login-nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.login-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 56px rgba(0,0,0,.1); padding: 44px 40px; width: 100%; max-width: 460px; }
.login-card .eyebrow { color: var(--brand-red); }
.login-card h1 { font-size: 30px; margin-bottom: 10px; color: var(--navy); }
.login-card .login-desc { color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.login-card .login-desc a { color: var(--brand-blue); }
.login-card .btn-primary { width: 100%; justify-content: center; margin-top: 8px; font-size: 16px; padding: 14px; }
.login-footer { text-align: center; padding: 20px; color: var(--ink-soft); font-size: 13px; }
.login-footer a { color: var(--ink-soft); }
.page-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.stat-item {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-red);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 34px;
  color: var(--brand-red);
  font-weight: 900;
  margin-bottom: 6px;
  line-height: 1;
}
.stat-item span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

section { padding: 70px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .05);
}
.card.accent { border-top-color: var(--brand-red); }
.card p { color: var(--ink-soft); }
.metric { background: #fff; border-left: 5px solid var(--brand-red); padding: 22px; border-radius: var(--radius); }
.metric strong { display: block; font-size: 25px; color: var(--navy); }
.logo-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.logo-slot { min-height: 82px; border: 1px dashed var(--brand-blue-gray); background: #fff; display: grid; place-items: center; color: var(--ink-soft); font-weight: 700; border-radius: var(--radius); }
.check-list, .plain-list { margin: 0; padding: 0; list-style: none; }
.check-list li, .plain-list li { padding: 9px 0 9px 28px; position: relative; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; width: 10px; height: 10px; background: var(--brand-red); position: absolute; left: 0; top: 17px; border-radius: 2px; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.comparison .card:first-child { border-top-color: var(--ink-soft); }
.comparison .card:last-child { border-top-color: var(--brand-red); }
.faq details { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--navy); }
.testimonial { border-left: 5px solid var(--brand-blue); font-style: italic; }
.cta-band { background: var(--brand-blue-dark); color: #fff; padding: 46px; border-radius: var(--radius); display: grid; gap: 18px; grid-template-columns: 1fr auto; align-items: center; }
.cta-band h2 { color: #fff; }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 800; color: var(--navy); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.notice { padding: 12px 14px; border-radius: 6px; margin-bottom: 16px; display: none; }
.notice.success { display: block; color: var(--success); background: #eaf6ef; border: 1px solid #b8dfc6; }
.notice.error { display: block; color: var(--error); background: #fdecec; border: 1px solid #f1b7bb; }
.auth-shell {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  gap: 34px;
  align-items: center;
}
.portal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.form-note {
  color: var(--ink-soft);
  font-size: 14px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.portal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}
.portal-table th,
.portal-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.portal-table th {
  background: var(--off-white);
  color: var(--navy);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  background: #edf4fb;
  color: var(--brand-blue-dark);
  border: 1px solid var(--brand-blue-gray);
  font-size: 13px;
  font-weight: 800;
}
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-form input {
  min-width: 210px;
}
.review-card {
  max-width: 760px;
}

.site-footer { background: var(--navy); color: #d4d4d6; padding: 46px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.footer-logo { background: #fff; padding: 8px; border-radius: 6px; width: 220px; margin-bottom: 16px; }
.site-footer h3 { color: #fff; font-size: 18px; }
.site-footer a { color: #d4d4d6; display: block; margin: 7px 0; }
.site-footer a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.16); margin-top: 26px; padding-top: 18px; font-size: 14px; color: #b5b5b8; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 116px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav.is-open { display: flex; }
  .dropdown { padding: 0; width: 100%; }
  .dropdown-menu { position: static; display: grid; width: 100%; box-shadow: none; margin-top: 8px; }
  .header-actions .phone { display: none; }
  .hero-grid, .grid-2, .grid-3, .grid-4, .comparison, .footer-grid, .cta-band, .auth-shell { grid-template-columns: 1fr; }
  .logo-slots { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-img { height: 300px; order: -1; }
  .portal-head, .inline-form { flex-direction: column; align-items: stretch; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max)); }
  .hero { padding: 54px 0 40px; }
  .trust-strip, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .logo { width: 176px; }
  section { padding: 48px 0; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero-img { height: 240px; }
}

/* ══════════════════════════════════════════════════════════════════════
   PUBLIC SITE DESIGN POLISH
   Overrides the base styles above for a more modern, professional look.
   Portal (.portal-body) is unaffected — its own classes take precedence.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Typography ─────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}
h1 {
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -.025em;
  line-height: 1.05;
  font-weight: 900;
}
h2 {
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: -.02em;
  line-height: 1.1;
  font-weight: 800;
}
h3 { font-size: 18px; letter-spacing: -.01em; font-weight: 700; line-height: 1.3; }
p  { line-height: 1.72; }
.lead { font-size: 18px; line-height: 1.68; }
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-red);
  display: block;
  margin-bottom: 10px;
}
a { transition: color .15s; }

/* ── Topbar ─────────────────────────────────────────────────────────── */
.topbar { background: #0d0d0e; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar .container { padding: 7px 0; }
.carrier-login-btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.18);
  transition: all .15s;
}
.carrier-login-btn:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}

/* ── Header & Navigation ─────────────────────────────────────────────── */
.site-header {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216,224,232,.7);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.nav-wrap { min-height: 78px; gap: 18px; }
.logo { width: 200px; }

.main-nav { gap: 4px; }
.main-nav > a,
.dropdown-toggle {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .005em;
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 7px;
  transition: color .15s, background .15s;
}
.main-nav > a:hover,
.dropdown-toggle:hover { background: var(--off-white); color: var(--brand-blue); }

.dropdown { padding: 20px 0; }
.dropdown-menu {
  top: 64px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 24px 48px rgba(0,0,0,.13), 0 2px 6px rgba(0,0,0,.06);
  padding: 8px;
  width: 250px;
  animation: dropFade .15s ease;
}
@keyframes dropFade { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.dropdown-menu a {
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  padding: 9px 12px;
  color: var(--ink);
  transition: all .12s;
  display: block;
}
.dropdown-menu a:hover {
  background: var(--off-white);
  color: var(--brand-red);
  padding-left: 16px;
}

.phone { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.nav-toggle { border-radius: 8px; font-size: 13px; font-weight: 700; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  min-height: 44px;
  padding: 11px 22px;
  transition: all .2s cubic-bezier(.16,1,.3,1);
}
.btn-primary {
  background: var(--brand-red);
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.btn-primary:hover {
  background: #d41820;
  box-shadow: 0 6px 20px rgba(240,32,40,.4);
  transform: translateY(-2px);
  color: #fff;
}
.btn-secondary {
  font-weight: 700;
  border-width: 2px;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(51,51,51,.22);
}
.btn-dark:hover { transform: translateY(-2px); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(108deg, rgba(10,10,10,.97) 0%, rgba(0,0,0,.88) 50%, rgba(0,0,0,.72) 100%),
    linear-gradient(140deg, #0d0d0e 0%, #262626 35%, #3a3a3a 70%, #ed1c24 100%);
  padding: 100px 0 78px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 70% 50%, rgba(237,28,36,.16) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.012' fill-rule='evenodd'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.2); }
.hero .lead { color: rgba(235,235,236,.9); }
.hero .eyebrow { color: #e5484f; }
.hero-grid { align-items: center; gap: 56px; }

.cta-row { margin: 32px 0; gap: 14px; }
.cta-row .btn-secondary {
  border-color: rgba(255,255,255,.35);
  color: #fff;
  background: rgba(255,255,255,.07);
}
.cta-row .btn-secondary:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.55);
  box-shadow: none;
}

.trust-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0;
}
.trust-item {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-left: 3px solid var(--brand-red);
  padding: 10px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(255,255,255,.88);
  backdrop-filter: blur(4px);
}

.hero-img {
  height: 500px;
  border-radius: 14px;
  box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.07);
  object-position: center 40%;
}

/* ── Sections ─────────────────────────────────────────────────────────── */
section { padding: 92px 0; }
.section-alt { background: #f2f5fa; }
.section-head { margin-bottom: 52px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 16px; color: var(--ink-soft); max-width: 640px; line-height: 1.7; }

/* ── Stat Grid ─────────────────────────────────────────────────────────── */
.stat-grid { gap: 16px; margin-top: 44px; }
.stat-item {
  background: #fff;
  border: 1px solid rgba(216,224,232,.8);
  border-top: 3px solid var(--brand-red);
  border-radius: 12px;
  padding: 30px 20px 26px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: box-shadow .22s, transform .22s;
}
.stat-item:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,.11);
  transform: translateY(-3px);
}
.stat-item strong {
  font-size: 40px;
  letter-spacing: -.04em;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--brand-red);
}
.stat-item span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
body:not(.portal-body) .card {
  border-radius: 12px;
  border: 1px solid rgba(216,224,232,.7);
  border-top: 3px solid var(--brand-blue);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  padding: 28px;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
body:not(.portal-body) .card.accent { border-top-color: var(--brand-red); }
body:not(.portal-body) .card:hover {
  box-shadow: 0 14px 40px rgba(0,0,0,.11);
  transform: translateY(-4px);
  border-color: var(--brand-blue-gray);
}
body:not(.portal-body) a.card { display: block; text-decoration: none; color: inherit; }
body:not(.portal-body) a.card:hover { color: inherit; }
body:not(.portal-body) .card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
body:not(.portal-body) .card p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }
body:not(.portal-body) .card > a:last-child {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue);
  display: inline-block;
  margin-top: 6px;
}
body:not(.portal-body) .card > a:last-child:hover { color: var(--brand-red); }

/* ── Testimonial ─────────────────────────────────────────────────────── */
body:not(.portal-body) .card.testimonial {
  background: linear-gradient(135deg, #f6f9ff 0%, #fff 60%);
  border-top: none;
  border-left: 4px solid var(--brand-blue);
  border-radius: 12px;
  padding: 36px;
  font-style: italic;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}
body:not(.portal-body) .card.testimonial:hover { transform: none; }
body:not(.portal-body) .card.testimonial strong {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── Check list ─────────────────────────────────────────────────────── */
.check-list li {
  font-size: 14px;
  padding: 11px 0 11px 32px;
  border-bottom: 1px solid rgba(216,224,232,.5);
  color: var(--ink);
  line-height: 1.5;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  width: 8px; height: 8px;
  border-radius: 2px;
  top: 19px; left: 0;
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq details {
  border: 1px solid rgba(216,224,232,.8);
  background: #fff;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq details[open] {
  box-shadow: 0 8px 24px rgba(0,0,0,.09);
  border-color: rgba(155,184,208,.6);
}
.faq summary {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  letter-spacing: -.01em;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--brand-blue);
  flex-shrink: 0;
  transition: transform .22s ease;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 24px 22px;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  border-top: 1px solid rgba(216,224,232,.5);
  padding-top: 18px;
}

/* ── CTA Band ─────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(118deg, #1a1a1a 0%, #2c2c2c 45%, #ed1c24 100%);
  border-radius: 16px;
  padding: 56px 52px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.cta-band::before,
.cta-band::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-band::before {
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,.05);
}
.cta-band::after {
  right: 120px; bottom: -100px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,.03);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(20px, 3.5vw, 32px);
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.cta-band p  { font-size: 15px; opacity: .78; margin-bottom: 4px; }
.cta-band .btn-primary {
  background: var(--brand-red);
  border-color: transparent;
  font-size: 15px;
  padding: 13px 28px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(240,32,40,.4);
}
.cta-band .btn-primary:hover { box-shadow: 0 8px 28px rgba(240,32,40,.55); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: #0d0d0e;
  padding: 72px 0 0;
  border-top: 3px solid var(--brand-red);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 56px;
}
.footer-logo {
  width: 172px;
  margin-bottom: 20px;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
}
.site-footer > .container > div > p {
  font-size: 13px;
  line-height: 1.75;
  color: #9a9a9e;
  margin-bottom: 12px;
}
.site-footer h3 {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.32);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.site-footer a {
  color: #9a9a9e;
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin: 9px 0;
  transition: color .15s;
  text-decoration: none;
}
.site-footer a:hover { color: #fff; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
  margin-top: 0;
  font-size: 12px;
  color: rgba(255,255,255,.22);
  letter-spacing: .02em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Forms (contact / quote pages) ──────────────────────────────────── */
body:not(.portal-body) .form {
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.09);
  border: 1px solid rgba(216,224,232,.6);
  padding: 38px;
}
body:not(.portal-body) label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 2px;
}
body:not(.portal-body) input,
body:not(.portal-body) select,
body:not(.portal-body) textarea {
  border-radius: 9px;
  font-size: 14px;
  padding: 13px 16px;
  border: 1.5px solid #d4dce6;
  background: #fafbfc;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
body:not(.portal-body) input:focus,
body:not(.portal-body) select:focus,
body:not(.portal-body) textarea:focus {
  border-color: var(--brand-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(51,51,51,.1);
  outline: none;
}
body:not(.portal-body) textarea { min-height: 150px; }

/* ── Login / Auth page polish ─────────────────────────────────────── */
.login-card, .auth-card {
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.14);
}
.login-page, .auth-page {
  background: linear-gradient(140deg, #f0f4f8 0%, #e8eef6 100%);
}

/* ── Notice / Alert improvements ─────────────────────────────────────── */
.notice.success {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
}
.notice.error {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
}

/* ── Metric card ─────────────────────────────────────────────────────── */
.metric {
  border-radius: 12px;
  border-left: 5px solid var(--brand-red);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: box-shadow .2s, transform .2s;
}
.metric:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }

/* ── Comparison ─────────────────────────────────────────────────────── */
.comparison .card { border-radius: 12px; }

/* ── Public page responsive overrides ───────────────────────────────── */
@media (max-width: 960px) {
  .hero { padding: 72px 0 56px; }
  .hero-img { height: 360px; }
  .cta-band { padding: 40px 32px; border-radius: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding: 56px 0 44px; }
  .hero-img { height: 240px; border-radius: 10px; }
  .trust-strip { flex-direction: column; gap: 8px; }
  .trust-item { border-radius: 0 6px 6px 0; }
  .stat-item strong { font-size: 32px; }
  body:not(.portal-body) .form { padding: 24px; }
  .cta-band { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 36px; }
  .logo { width: 170px; }
  .copyright { font-size: 11px; flex-direction: column; text-align: center; }
}

/* ── Portal Layout ───────────────────────────────────────────────────── */

.portal-body { background: var(--off-white); margin: 0; }

.portal-layout {
  display: flex;
  min-height: 100vh;
}

.portal-sidebar {
  width: 236px;
  flex-shrink: 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 20;
}

.sidebar-brand {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: #fff;
}

.sidebar-logo {
  width: 152px;
  display: block;
}

.sidebar-nav {
  padding: 14px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  color: rgba(255,255,255,.62);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
  line-height: 1.2;
}
.sidebar-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.sidebar-link.active { background: var(--brand-red); color: #fff; }
.sidebar-link svg { flex-shrink: 0; }

.sidebar-footer {
  padding: 12px 10px 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 7px;
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}

.sidebar-user-name { color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3; }
.sidebar-user-role { color: rgba(255,255,255,.45); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 7px;
  color: rgba(255,255,255,.5);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.sidebar-logout:hover { background: rgba(240,32,40,.2); color: #ff8080; }

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 6px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
}
.sidebar-toggle:hover { background: var(--off-white); }

/* Portal Main */
.portal-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.portal-topbar {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  height: 58px;
  z-index: 5;
}

.portal-page-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.topbar-site-link {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.topbar-site-link:hover { color: var(--brand-blue); }

.portal-content { padding: 28px; flex: 1; }

/* Page Cards */
.page-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
}

.page-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.page-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  border-left: 4px solid var(--line);
}
.stat-box.red   { border-left-color: var(--brand-red); }
.stat-box.blue  { border-left-color: var(--brand-blue); }
.stat-box.green { border-left-color: var(--success); }
.stat-box.amber { border-left-color: #d97706; }

.stat-box-value {
  font-size: 30px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-box.red   .stat-box-value { color: var(--brand-red); }
.stat-box.blue  .stat-box-value { color: var(--brand-blue); }
.stat-box.green .stat-box-value { color: var(--success); }
.stat-box.amber .stat-box-value { color: #d97706; }

.stat-box-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-soft);
  font-weight: 700;
}

/* Status Pills - Extended */
.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  line-height: 1.5;
}
.pill-pending   { background: #fef3c7; color: #92400e; }
.pill-approved  { background: #d1fae5; color: #065f46; }
.pill-rejected  { background: #fee2e2; color: #991b1b; }
.pill-available { background: #dbeafe; color: #1e40af; }
.pill-booked    { background: #fef3c7; color: #92400e; }
.pill-covered   { background: #d1fae5; color: #065f46; }
.pill-cancelled { background: #f3f4f6; color: #6b7280; }
.pill-active    { background: #d1fae5; color: #065f46; }
.pill-review    { background: #ede9fe; color: #5b21b6; }
.pill-bid       { background: #fce7f3; color: #9d174d; }

/* Enhanced table */
.portal-table tbody tr:hover { background: #fafbfc; }
.portal-table tbody tr:last-child td { border-bottom: none; }
.portal-table td { vertical-align: middle; }

/* Button extras */
.btn-sm { min-height: 32px; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.btn-success { background: var(--success); color: #fff; border-color: transparent; }
.btn-success:hover { background: #0f5430; color: #fff; }
.btn-danger  { background: var(--error); color: #fff; border-color: transparent; }
.btn-danger:hover  { background: #7c1015; color: #fff; }
.btn-ghost   { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover   { background: var(--off-white); color: var(--ink); border-color: var(--brand-blue-gray); }
.btn-warning { background: #d97706; color: #fff; border-color: transparent; }
.btn-warning:hover { background: #b45309; color: #fff; }

/* Input focus */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(51,51,51,.12);
}

/* Pending Approval Screen */
.pending-approval-card {
  max-width: 480px;
  margin: 80px auto 0;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 36px;
  border-top: 4px solid var(--brand-blue);
}
.pending-approval-card.rejected { border-top-color: var(--brand-red); }
.pending-icon { font-size: 44px; margin-bottom: 16px; }
.pending-approval-card h2 { font-size: 22px; color: var(--navy); margin-bottom: 10px; }
.pending-approval-card p  { color: var(--ink-soft); font-size: 15px; margin-bottom: 16px; }

/* Load Board */
.load-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.load-filters select,
.load-filters input { width: auto; }

.load-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.load-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow .15s, border-color .15s;
  text-decoration: none;
  color: inherit;
}
.load-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); border-color: var(--brand-blue-gray); color: inherit; }

.load-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.load-ref {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.load-route {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
}

.load-city {
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.2;
}

.load-date {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 3px;
}

.route-arrow-icon {
  text-align: center;
  color: var(--brand-blue-gray);
  font-size: 18px;
  line-height: 1;
}

.load-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.load-meta-item { display: flex; align-items: center; gap: 4px; font-weight: 600; }

.load-rate-line {
  font-size: 20px;
  font-weight: 900;
  color: var(--brand-red);
  margin-bottom: 12px;
}
.load-rate-line span { font-size: 13px; color: var(--ink-soft); font-weight: 600; }

.load-card-footer { display: flex; gap: 8px; align-items: center; margin-top: auto; }

/* Load Detail */
.load-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}

.load-info-table { width: 100%; border-collapse: collapse; }
.load-info-table th,
.load-info-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.load-info-table th { width: 38%; background: var(--off-white); color: var(--ink-soft); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.load-info-table tr:last-child th,
.load-info-table tr:last-child td { border-bottom: none; }

.load-map {
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* Booking/Bid Panel */
.booking-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.booking-panel h3 { font-size: 16px; color: var(--navy); margin-bottom: 16px; }

/* Form improvements */
.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-row .field { flex: 1; min-width: 160px; }

/* Action group */
.action-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--brand-blue); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-red); }
.breadcrumb-sep { color: var(--line); }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state-icon { font-size: 44px; margin-bottom: 14px; opacity: .35; }
.empty-state h3 { color: var(--ink-soft); font-size: 18px; margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* Invite Link Box */
.invite-link-box {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  word-break: break-all;
  font-family: monospace;
  color: var(--brand-blue);
  margin-top: 8px;
}

/* ── Load Board (DAT-style table) ───────────────────────────────────── */

.lb-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.lb-topbar {
  background: var(--navy);
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.lb-topbar-title {
  color: rgba(255,255,255,.5);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: 4px;
  white-space: nowrap;
}

.lb-filter-tag {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.75);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .12s, color .12s;
  line-height: 1.4;
}
.lb-filter-tag:hover { background: rgba(255,255,255,.1); color: #fff; }
.lb-filter-tag.active { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }

.lb-filter-select {
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  color: #fff !important;
  padding: 5px 10px !important;
  border-radius: 4px;
  font-size: 12px !important;
  width: auto !important;
  cursor: pointer;
}
.lb-filter-select option { background: #1c1c1e; color: #fff; }

.lb-filter-input {
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  color: #fff !important;
  padding: 5px 10px !important;
  border-radius: 4px;
  font-size: 12px !important;
  width: auto !important;
  min-width: 150px;
}
.lb-filter-input::placeholder { color: rgba(255,255,255,.38) !important; }
.lb-filter-input:focus { border-color: rgba(255,255,255,.5) !important; box-shadow: none !important; }

.lb-resultbar {
  background: var(--off-white);
  border-bottom: 2px solid var(--line);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.lb-count { font-size: 13px; font-weight: 800; color: var(--navy); }
.lb-count span { color: var(--ink-soft); font-weight: 600; }

.lb-scroll { overflow-x: auto; }

.lb-table { width: 100%; border-collapse: collapse; min-width: 760px; }

.lb-table thead th {
  padding: 9px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-soft);
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.lb-table tbody tr {
  border-bottom: 1px solid #eef2f7;
  transition: background .1s;
  cursor: pointer;
}
.lb-table tbody tr:hover { background: #f0f5ff; }
.lb-table tbody tr:last-child { border-bottom: none; }
.lb-table td { padding: 10px 14px; vertical-align: middle; }

.lb-age { font-size: 11px; color: var(--ink-soft); white-space: nowrap; font-weight: 600; }

.lb-city { font-weight: 800; font-size: 14px; color: var(--navy); line-height: 1.25; }
.lb-dt   { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }

.lb-sep { width: 26px; text-align: center; color: var(--brand-blue-gray); font-size: 18px; padding: 0 2px; }

.lb-miles { font-size: 13px; font-weight: 800; color: var(--ink-soft); white-space: nowrap; }

.lb-rate-val { font-size: 16px; font-weight: 900; color: var(--brand-red); line-height: 1.1; white-space: nowrap; }
.lb-rate-sub { font-size: 11px; color: var(--ink-soft); white-space: nowrap; }
.lb-rate-open { font-size: 12px; font-weight: 700; color: var(--ink-soft); font-style: italic; }

.lb-actions { white-space: nowrap; }
.lb-actions .btn { margin: 0 3px 0 0; }

/* Mobile Load Cards (≤ 700px) */
.lb-cards { display: none; }

@media (max-width: 700px) {
  .lb-table-wrap { display: none; }
  .lb-cards { display: flex; flex-direction: column; gap: 12px; }
  .lb-card-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    display: block;
  }
  .lb-card-item:hover { border-color: var(--brand-blue-gray); box-shadow: 0 2px 12px rgba(0,0,0,.08); }
  .lb-card-route { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
  .lb-card-cities { flex: 1; }
  .lb-card-rate { text-align: right; }
  .lb-card-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-soft); margin-top: 8px; }
  .lb-card-meta span { display: flex; align-items: center; gap: 3px; font-weight: 600; }
}

/* ── Autocomplete ────────────────────────────────────────────────────── */

.ac-wrap { position: relative; }

.ac-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--brand-blue);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.13);
  z-index: 300;
  overflow: hidden;
}
.ac-item {
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  transition: background .1s;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.ac-focus { background: #f0f0f1; }
.ac-item svg { flex-shrink: 0; color: var(--brand-blue-gray); }
.ac-label { font-weight: 700; color: var(--navy); }
.ac-hint  { font-size: 11px; color: var(--ink-soft); margin-left: auto; }
.ac-msg   { padding: 9px 12px; font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }

/* Portal Registration/Login pages */
.auth-page { min-height: 100vh; background: var(--off-white); display: flex; flex-direction: column; }
.auth-nav { background: #fff; border-bottom: 1px solid var(--line); }
.auth-nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.auth-body { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,.08); padding: 36px 40px; width: 100%; max-width: 520px; }
.auth-card .eyebrow { color: var(--brand-red); margin-bottom: 6px; }
.auth-card h1 { font-size: 26px; color: var(--navy); margin-bottom: 8px; }
.auth-card .auth-desc { color: var(--ink-soft); font-size: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.auth-footer { text-align: center; padding: 20px; color: var(--ink-soft); font-size: 13px; }

/* ── Sidebar Badge ────────────────────────────────────────────────── */
.sidebar-badge {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-red); margin-left: auto; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(240,32,40,.25);
}

/* ── Setup Alert Banner ───────────────────────────────────────────── */
.setup-alert {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.setup-alert-icon { font-size: 20px; flex-shrink: 0; }
.setup-alert-body { flex: 1; font-size: 14px; color: #78350f; line-height: 1.4; }
.setup-alert-body strong { color: #92400e; }
.setup-alert-btn {
  padding: 7px 14px; background: #f59e0b; color: #fff; border-radius: 6px;
  font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background .15s;
}
.setup-alert-btn:hover { background: #d97706; color: #fff; }

/* ── Green rate color (override red) ─────────────────────────────── */
.rate-green    { color: #16a34a !important; }
.lb-rate-val   { color: #16a34a; }

/* ── Setup Checklist ──────────────────────────────────────────────── */
.setup-steps { display: flex; flex-direction: column; gap: 10px; }
.setup-step {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
}
.setup-step.done  { border-color: #bbf7d0; background: #f0fdf4; }
.setup-step.todo  { border-color: #fde68a; background: #fffbeb; }
.setup-step-check {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.setup-step.done .setup-step-check { background: #16a34a; color: #fff; }
.setup-step.todo .setup-step-check { background: #fbbf24; color: #fff; }
.setup-step-label { flex: 1; font-weight: 700; font-size: 14px; color: var(--navy); }
.setup-step.done .setup-step-label { color: #15803d; }
.setup-step.todo .setup-step-label { color: #92400e; }

/* ── Finance Cards ────────────────────────────────────────────────── */
.finance-stat { border-left-color: #16a34a; }
.finance-stat .stat-box-value { color: #16a34a; }
.finance-stat-pending .stat-box-value { color: #d97706; }

/* ── Payment Method ───────────────────────────────────────────────── */
.payment-method-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.payment-option {
  border: 2px solid var(--line); border-radius: 8px; padding: 14px 12px;
  cursor: pointer; text-align: center; transition: border-color .15s, background .15s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.payment-option:hover { border-color: var(--brand-blue-gray); background: #f8fafc; }
.payment-option.selected { border-color: var(--brand-blue); background: #f0f0f1; }
.payment-option-icon { font-size: 24px; }
.payment-option-label { font-size: 13px; font-weight: 700; color: var(--navy); }
input[type=radio].pm-radio { display: none; }
input[type=radio].pm-radio:checked + .payment-option { border-color: var(--brand-blue); background: #f0f0f1; }

/* ── Fuel Advance ─────────────────────────────────────────────────── */
.advance-calc-box {
  background: var(--off-white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 16px;
}
.advance-calc-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; }
.advance-calc-row:last-child { margin-bottom: 0; border-top: 1px solid var(--line); padding-top: 8px; font-weight: 800; }
.advance-calc-label { color: var(--ink-soft); }
.advance-calc-value { font-weight: 700; color: var(--navy); }
.advance-max { color: #16a34a; font-size: 16px; }

/* ── Truck Post Form ──────────────────────────────────────────────── */
.truck-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; border-left: 4px solid var(--brand-blue);
  transition: box-shadow .15s;
}
.truck-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.truck-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.truck-card-title { font-weight: 800; font-size: 15px; color: var(--navy); }
.truck-card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--ink-soft); }
.truck-card-meta span { display: flex; align-items: center; gap: 4px; font-weight: 600; }

/* ── Dashboard Map ────────────────────────────────────────────────── */
.dashboard-map-wrap {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin-bottom: 20px;
}
.dashboard-map-header {
  padding: 14px 18px; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.dashboard-map-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.85); }
.dashboard-map-subtitle { font-size: 12px; color: rgba(255,255,255,.5); }
#dashboard-map { height: 420px; }

/* Disabled booking state */
.booking-disabled {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.booking-disabled-icon { font-size: 32px; margin-bottom: 10px; }
.booking-disabled h3 { font-size: 15px; color: #92400e; margin-bottom: 8px; }
.booking-disabled p  { font-size: 13px; color: #a16207; margin-bottom: 14px; }

/* ── CSV Import Progress ──────────────────────────────────────────── */
.import-progress { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:28px 24px; margin-bottom:20px; }
.import-steps { display:flex; align-items:flex-start; gap:0; margin-bottom:20px; }
.import-step { flex:1; text-align:center; position:relative; }
.import-step:not(:last-child)::after { content:''; position:absolute; top:17px; left:50%; right:-50%; height:2px; background:var(--line); }
.import-step.done:not(:last-child)::after { background:var(--success); }
.import-step.active:not(:last-child)::after { background:var(--brand-blue); }
.import-step-icon { width:34px; height:34px; border-radius:50%; background:var(--off-white); border:2px solid var(--line); display:flex; align-items:center; justify-content:center; margin:0 auto 8px; font-size:14px; position:relative; z-index:1; transition:.25s; }
.import-step.active .import-step-icon { background:var(--brand-blue); border-color:var(--brand-blue); color:#fff; }
.import-step.done   .import-step-icon { background:var(--success);    border-color:var(--success);    color:#fff; }
.import-step-label { font-size:10px; font-weight:700; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.06em; line-height:1.3; }
.import-step.active .import-step-label { color:var(--brand-blue); }
.import-step.done   .import-step-label { color:var(--success); }
.progress-track { background:#e5e7eb; height:7px; border-radius:4px; margin-bottom:10px; overflow:hidden; }
.progress-fill  { background:var(--brand-blue); height:7px; border-radius:4px; transition:width .4s ease; }
.progress-text  { font-size:13px; color:var(--ink-soft); text-align:center; min-height:20px; }

/* ── CSV Preview Editing ─────────────────────────────────────────── */
.csv-row-invalid td { background:#fff8f8 !important; }
.csv-row-editing td { background:#f0f5ff !important; }
.csv-edit-input { width:100%; font-size:12px; padding:4px 8px; border:1px solid var(--brand-blue); border-radius:4px; font-family:inherit; }
.csv-edit-input.error { border-color:var(--error); background:#fff8f8; }
.csv-geo-tag { display:inline-flex; align-items:center; gap:4px; font-size:11px; padding:2px 7px; border-radius:999px; font-weight:700; }
.csv-geo-ok  { background:#d1fae5; color:#065f46; }
.csv-geo-warn{ background:#fef3c7; color:#92400e; }
.csv-geo-err { background:#fee2e2; color:#991b1b; }
.csv-geo-spin{ background:#dbeafe; color:#1e40af; }

/* ── Delete All Modal ────────────────────────────────────────────── */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:1000; display:flex; align-items:center; justify-content:center; padding:20px; }
.modal-box { background:#fff; border-radius:var(--radius); padding:32px; max-width:440px; width:100%; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.modal-icon { font-size:40px; margin-bottom:14px; text-align:center; }
.modal-title { font-size:20px; font-weight:900; color:var(--navy); margin:0 0 10px; text-align:center; }
.modal-body  { font-size:14px; color:var(--ink-soft); line-height:1.6; margin-bottom:22px; text-align:center; }
.modal-body strong { color:var(--error); }
.modal-actions { display:flex; gap:10px; justify-content:center; }

/* ── Payment Method Forms ────────────────────────────────────────── */
.pm-form-section { border:1px solid var(--line); border-radius:var(--radius); padding:20px; margin-top:16px; background:var(--off-white); }
.pm-form-section h4 { font-size:14px; color:var(--navy); margin:0 0 14px; display:flex; align-items:center; gap:8px; }
.pm-field-group { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.pm-field-group .field.full { grid-column:1/-1; }
.pm-sensitive-note { font-size:11px; color:var(--ink-soft); margin-top:4px; }
.pm-masked { font-family:monospace; font-size:14px; color:var(--navy); background:var(--off-white); border:1px solid var(--line); border-radius:5px; padding:8px 12px; letter-spacing:.06em; }
.pm-agreement-check { display:flex; align-items:flex-start; gap:10px; font-size:13px; color:var(--ink-soft); }
.pm-agreement-check input[type=checkbox] { width:16px; height:16px; margin-top:2px; flex-shrink:0; }

/* Portal Mobile Responsive */
@media (max-width: 1024px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .portal-sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    height: 100vh;
    transition: left .25s ease;
    box-shadow: none;
  }
  .portal-sidebar.is-open {
    left: 0;
    box-shadow: 0 0 0 9999px rgba(0,0,0,.35);
  }
  .sidebar-toggle { display: inline-flex; }
  .portal-content { padding: 18px 16px; }
  .portal-topbar { padding: 0 16px; }
  .load-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .load-board-grid { grid-template-columns: 1fr; }
  .page-card-header { flex-direction: column; align-items: flex-start; }
  .auth-card { padding: 28px 22px; }
}
