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

:root{
  --ink:#0F1B2B;
  --ink-2:#16263B;
  --ink-3:#1D3049;
  --paper:#EEEDE3;
  --paper-2:#E5E3D5;
  --ink-text:#1B222C;
  --amber:#FF7A33;
  --amber-dim:#C95F24;
  --green:#2E9E5B;
  --steel:#8493A8;
  --steel-dark:#5C6C82;
  --line:#2A3B52;
  --line-light:#D9D6C6;
  --radius-stub: 6px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink-text);
  font-family:'IBM Plex Sans', sans-serif;
  font-size:16px;
  line-height:1.55;
}
h1,h2,h3,.display{
  font-family:'Space Grotesk', sans-serif;
  margin:0;
  color:inherit;
  letter-spacing:-0.01em;
}
.mono{ font-family:'IBM Plex Mono', monospace; }
a{ color:inherit; text-decoration:none; }
img,svg{ display:block; max-width:100%; }
button{ font-family:inherit; cursor:pointer; }
:focus-visible{ outline:2px solid var(--amber); outline-offset:3px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}

.wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }

/* ---------- NAV ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(15,27,43,0.94);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; height:72px; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{ width:26px; height:26px; }
.brand-word{ font-size:19px; font-weight:700; color:#F4F2E9; letter-spacing:-0.01em; }
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a{
  color:var(--steel); font-size:14.5px; font-weight:500;
  transition:color .15s ease;
}
.nav-links a:hover{ color:#F4F2E9; }
.nav-cta{ display:flex; align-items:center; gap:18px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 20px; border-radius:4px; font-size:14.5px; font-weight:600;
  border:1px solid transparent; transition:all .15s ease; white-space:nowrap;
}
.btn-amber{ background:var(--amber); color:#181008; }
.btn-amber:hover{ background:#FF8A4B; }
.btn-ghost-dark{ color:#EDEBDD; }
.btn-ghost-dark:hover{ color:#fff; }
.btn-line{ border-color:var(--line); color:#EDEBDD; }
.btn-line:hover{ border-color:var(--steel); }
@media (max-width:860px){ .nav-links{ display:none; } }

/* ---------- HERO ---------- */
.hero{
  position:relative;
  background:
    linear-gradient(180deg, rgba(9,15,25,0.72) 0%, rgba(9,15,25,0.88) 55%, var(--ink) 100%),
    linear-gradient(90deg, rgba(9,15,25,0.55) 0%, rgba(9,15,25,0.2) 45%, rgba(9,15,25,0.75) 100%),
    url('https://images.pexels.com/photos/16114743/pexels-photo-16114743.jpeg?auto=compress&cs=tinysrgb&w=1920') center 38% / cover no-repeat;
  overflow:hidden;
  padding:88px 0 0;
}
.hero-routes{
  position:absolute; inset:0; opacity:.35; pointer-events:none;
}
.hero-inner{
  position:relative; z-index:2;
  display:grid; grid-template-columns:1fr 420px; gap:60px; align-items:start;
}
@media (max-width:980px){ .hero-inner{ grid-template-columns:1fr; } }

.eyebrow-line{
  display:flex; align-items:center; gap:10px;
  color:var(--steel); font-size:13.5px; font-weight:500; margin-bottom:22px;
}
.eyebrow-line .dot{
  width:7px; height:7px; border-radius:50%; background:var(--amber);
  box-shadow:0 0 0 3px rgba(255,122,51,0.18);
}
.hero h1{
  font-size:clamp(36px,4.6vw,58px);
  font-weight:600; line-height:1.06;
  color:#F6F4EA;
  max-width:640px;
}
.hero p.lead{
  margin-top:22px; font-size:17.5px; color:var(--steel);
  max-width:480px; line-height:1.6;
}

/* search / manifest entry */
.search-panel{
  margin-top:38px;
  background:var(--ink-2);
  border:1px solid var(--line);
  border-radius:6px;
  padding:6px;
  max-width:620px;
}
.search-grid{
  display:grid; grid-template-columns:1fr 1fr auto; gap:0;
}
@media (max-width:640px){ .search-grid{ grid-template-columns:1fr; } }
.search-field{
  padding:14px 18px; border-right:1px solid var(--line);
}
.search-grid .search-field:last-of-type{ border-right:none; }
@media (max-width:640px){ .search-field{ border-right:none; border-bottom:1px solid var(--line); } }
.search-field label{
  display:block; font-size:11.5px; color:var(--steel-dark); font-weight:500;
  margin-bottom:5px;
}
.search-field input{
  width:100%; background:transparent; border:none; color:#F6F4EA;
  font-family:'IBM Plex Sans',sans-serif; font-size:15px; font-weight:500;
  padding:0; outline:none;
}
.search-field input::placeholder{ color:#4C5B72; }
.search-submit{
  display:flex; align-items:center; justify-content:center;
  background:var(--amber); color:#181008; font-weight:600; font-size:14.5px;
  border-radius:4px; padding:0 22px; margin:6px; border:none;
  transition:background .15s ease;
}
.search-submit:hover{ background:#FF8A4B; }
@media (max-width:640px){ .search-submit{ margin:10px 6px 6px; padding:13px; } }

/* manifest ticker */
.ticker-wrap{
  margin-top:22px; max-width:620px;
  border:1px solid var(--line); border-radius:6px;
  background:rgba(255,255,255,0.02);
  overflow:hidden; height:38px; position:relative;
}
.ticker-label{
  position:absolute; left:0; top:0; bottom:0; display:flex; align-items:center;
  padding:0 14px; font-size:11px; color:var(--steel-dark); font-weight:500;
  background:var(--ink-2); border-right:1px solid var(--line); z-index:2;
}
.ticker-track{
  position:absolute; left:96px; right:0; top:0; bottom:0;
  display:flex; align-items:center;
}
.ticker-item{
  display:flex; align-items:center; gap:10px; padding:0 22px;
  font-size:13px; color:#C9CFDA; white-space:nowrap; flex-shrink:0;
}
.ticker-item .code{ color:var(--amber); }
.ticker-item .dash{ color:var(--steel-dark); }
.ticker-anim{
  display:flex; animation:ticker-scroll 22s linear infinite;
}
@keyframes ticker-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

/* dispatch board side card */
.board-card{
  background:var(--ink-2); border:1px solid var(--line); border-radius:8px;
  padding:22px; margin-top:6px;
}
@media (max-width:980px){ .board-card{ display:none; } }
.board-head{
  display:flex; justify-content:space-between; align-items:center;
  padding-bottom:14px; border-bottom:1px solid var(--line); margin-bottom:4px;
}
.board-head span{ font-size:12px; color:var(--steel-dark); font-weight:500; }
.board-head .live{
  display:flex; align-items:center; gap:6px; color:var(--green); font-size:12px; font-weight:600;
}
.board-head .live .pulse{
  width:6px; height:6px; border-radius:50%; background:var(--green);
  animation:pulse 1.6s ease-in-out infinite;
}
@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }

.board-body{ position:relative; height:246px; overflow:hidden; }
.board-body::before, .board-body::after{
  content:''; position:absolute; left:0; right:0; height:22px; z-index:2; pointer-events:none;
}
.board-body::before{ top:0; background:linear-gradient(180deg, var(--ink-2), rgba(22,38,59,0)); }
.board-body::after{ bottom:0; background:linear-gradient(0deg, var(--ink-2), rgba(22,38,59,0)); }
.board-track{ display:flex; flex-direction:column; animation:board-scroll 20s linear infinite; }

@keyframes board-scroll{
  from{ transform:translateY(0); }
  to{ transform:translateY(-50%); }
}

.board-row{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:13px 0; border-bottom:1px solid rgba(255,255,255,0.05);
}
.board-left{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.board-route{ color:#DDE1E9; font-weight:500; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.board-sub{ color:var(--steel-dark); font-size:11px; }
.board-quotes{
  flex-shrink:0; font-size:10.5px; font-weight:600; border:1px solid var(--amber); color:var(--amber);
  padding:3px 9px; border-radius:20px; white-space:nowrap;
}
.board-quotes.pending{ border-color:var(--line); color:var(--steel-dark); }
.board-status{ color:var(--steel-dark); font-size:12px; }
.board-status.in-transit{ color:var(--amber); }

.hero-bottom-space{ height:64px; }

/* ---------- SPLIT PATHS ---------- */
.paths{ padding:86px 0; background:var(--paper); }
.section-head{ max-width:560px; margin-bottom:52px; }
.section-head .kicker{
  color:var(--amber-dim); font-size:13.5px; font-weight:600; margin-bottom:12px;
  display:flex; align-items:center; gap:8px;
}
.section-head .kicker .rule{ width:22px; height:2px; background:var(--amber-dim); }
.section-head h2{ font-size:clamp(26px,3vw,34px); font-weight:600; }

.path-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line-light); border:1px solid var(--line-light); }
@media (max-width:860px){ .path-grid{ grid-template-columns:1fr; } }
.path-cell{
  background:var(--paper); padding:38px 34px; position:relative;
  transition:background .15s ease;
}
.path-cell:hover{ background:#F6F5EC; }
.path-icon{ width:34px; height:34px; margin-bottom:26px; }
.path-cell h3{ font-size:19px; font-weight:600; margin-bottom:10px; }
.path-cell p{ font-size:14.5px; color:var(--steel-dark); margin:0 0 20px; line-height:1.6; }
.path-link{ font-size:14px; font-weight:600; color:var(--ink-text); border-bottom:1.5px solid var(--amber); padding-bottom:2px; }

/* ---------- LIVE REQUESTS ---------- */
.requests{ padding:86px 0; background:var(--paper); }
.requests-sub{ color:var(--steel-dark); font-size:14.5px; margin-top:14px; max-width:480px; line-height:1.6; }

.req-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
@media (max-width:760px){ .req-grid{ grid-template-columns:1fr; } }

.req-card{
  background:var(--ink); border:1px solid var(--line); border-radius:8px;
  padding:22px 24px; display:flex; flex-direction:column; gap:16px;
}
.req-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.req-route{ color:#F0EEE2; font-size:16.5px; font-weight:600; font-family:'Space Grotesk',sans-serif; line-height:1.35; }
.req-route .arrow{ color:var(--steel-dark); margin:0 8px; font-weight:400; }
.req-item{ color:var(--steel); font-size:13px; margin-top:6px; }
.req-quotes{
  flex-shrink:0; display:inline-flex; align-items:center; gap:6px;
  border:1px solid var(--amber); color:var(--amber); font-size:11.5px; font-weight:600;
  padding:5px 10px; border-radius:20px; white-space:nowrap;
}
.req-quotes.pending{ border-color:var(--line); color:var(--steel-dark); }
.req-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:14px; border-top:1px solid rgba(255,255,255,0.06); }
.req-sender{ color:var(--steel-dark); font-size:12.5px; }
.req-time{ display:flex; align-items:center; gap:6px; color:var(--steel-dark); font-size:12px; }
.req-time .pulse{ width:6px; height:6px; border-radius:50%; background:var(--green); animation:pulse 1.6s ease-in-out infinite; }

.req-footer{
  display:flex; align-items:center; justify-content:space-between; margin-top:36px; flex-wrap:wrap; gap:16px;
  padding-top:30px; border-top:1px solid var(--line-light);
}
.req-footer p{ color:var(--steel-dark); font-size:13.5px; margin:0; }

/* ---------- HOW IT WORKS ---------- */
.how{ background:var(--ink); padding:90px 0; position:relative; overflow:hidden; }
.how .section-head h2{ color:#F6F4EA; }
.how .section-head .kicker{ color:var(--amber); }
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; position:relative; }
@media (max-width:860px){ .steps{ grid-template-columns:1fr; gap:36px; } }
.steps::before{
  content:''; position:absolute; top:22px; left:8%; right:8%; height:1px;
  background:repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
@media (max-width:860px){ .steps::before{ display:none; } }
.step{ padding-right:36px; position:relative; }
.step-num{
  font-family:'Space Grotesk',sans-serif; font-size:14px; font-weight:600;
  color:var(--ink); background:var(--amber); width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; margin-bottom:24px; position:relative; z-index:2;
}
.step h3{ color:#F0EEE2; font-size:18px; font-weight:600; margin-bottom:10px; }
.step p{ color:var(--steel); font-size:14.5px; line-height:1.6; margin:0; }

/* ---------- FEATURED COMPANIES ---------- */
.featured{ background:var(--paper); padding:90px 0; }
.company-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
@media (max-width:980px){ .company-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .company-grid{ grid-template-columns:1fr; } }

.stub{
  background:#fff; border:1px solid var(--line-light);
  border-radius:var(--radius-stub);
  position:relative; overflow:visible;
}
.stub-top{ padding:24px 22px 18px; border-bottom:1px dashed #D3D0BF; position:relative; }
.stub-top::before, .stub-top::after{
  content:''; position:absolute; top:-1px; width:16px; height:16px; border-radius:50%;
  background:var(--paper); border:1px solid var(--line-light);
}
.stub-top::before{ left:-9px; }
.stub-top::after{ right:-9px; }

.stub-badges{ display:flex; gap:8px; margin-bottom:14px; }
.badge{
  font-size:10.5px; font-weight:600; padding:4px 9px; border-radius:3px;
  display:inline-flex; align-items:center; gap:5px;
}
.badge-featured{ background:#FCEBDF; color:var(--amber-dim); }
.stamp{
  display:inline-flex; align-items:center; gap:5px;
  border:1.5px solid var(--green); color:var(--green);
  font-size:10.5px; font-weight:700; padding:3px 9px 3px 7px; border-radius:20px;
  transform:rotate(-3deg);
}
.stamp svg{ width:11px; height:11px; }

.stub-top h3{ font-size:18px; font-weight:600; margin-bottom:5px; }
.stub-top .coverage{ font-size:13px; color:var(--steel-dark); }

.stub-mid{ padding:16px 22px; display:flex; justify-content:space-between; align-items:center; }
.rating{ display:flex; align-items:center; gap:6px; font-size:13.5px; font-weight:600; }
.rating .stars{ color:var(--amber-dim); letter-spacing:1px; }
.rating .count{ color:var(--steel-dark); font-weight:400; }
.rate-from{ font-size:12.5px; color:var(--steel-dark); text-align:right; }
.rate-from .amt{ display:block; font-family:'Space Grotesk',sans-serif; font-size:15px; color:var(--ink-text); font-weight:600; }

.stub-bottom{ padding:14px 22px 20px; }
.stub-view{
  display:block; text-align:center; padding:11px; border-radius:4px;
  border:1px solid var(--ink-text); font-size:13.5px; font-weight:600;
  transition:all .15s ease;
}
.stub-view:hover{ background:var(--ink-text); color:#fff; }

/* ---------- STATS ---------- */
.stats{ background:var(--ink-3); padding:0; }
.stats .wrap{ display:grid; grid-template-columns:repeat(4,1fr); }
@media (max-width:760px){ .stats .wrap{ grid-template-columns:repeat(2,1fr); } }
.stat{
  padding:44px 32px; border-right:1px solid var(--line); text-align:left;
}
.stats .wrap > .stat:last-child{ border-right:none; }
@media (max-width:760px){ .stat:nth-child(2n){ border-right:none; } }
.stat .value{ font-family:'Space Grotesk',sans-serif; font-size:34px; font-weight:600; color:var(--amber); }
.stat .label{ font-size:13px; color:var(--steel); margin-top:6px; }

/* ---------- COMPANY CTA ---------- */
.company-cta{ background:var(--paper); padding:100px 0; }
.cta-panel{
  background:var(--ink); border-radius:10px; padding:60px 56px;
  display:grid; grid-template-columns:1.3fr 1fr; gap:40px; align-items:center;
  position:relative; overflow:hidden;
}
@media (max-width:860px){ .cta-panel{ grid-template-columns:1fr; padding:44px 30px; } }
.cta-panel h2{ color:#F6F4EA; font-size:clamp(24px,3vw,32px); font-weight:600; line-height:1.2; margin-bottom:16px; }
.cta-panel p{ color:var(--steel); font-size:15px; max-width:440px; line-height:1.65; }
.cta-list{ list-style:none; margin:22px 0 0; padding:0; }
.cta-list li{
  display:flex; align-items:center; gap:10px; color:#DDE1E9; font-size:14px; margin-bottom:10px;
}
.cta-list svg{ width:15px; height:15px; color:var(--amber); flex-shrink:0; }
.cta-right{ text-align:left; }
@media (max-width:860px){ .cta-right{ margin-top:6px; } }

/* ---------- FOOTER ---------- */
footer{ background:var(--ink); border-top:1px solid var(--line); padding:64px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:36px; padding-bottom:52px; }
@media (max-width:860px){ .footer-grid{ grid-template-columns:repeat(2,1fr); } }
.footer-brand p{ color:var(--steel); font-size:13.5px; max-width:260px; margin-top:14px; line-height:1.6; }
.footer-col h4{ color:#DDE1E9; font-size:13px; font-weight:600; margin-bottom:16px; }
.footer-col ul{ list-style:none; margin:0; padding:0; }
.footer-col li{ margin-bottom:11px; }
.footer-col a{ color:var(--steel); font-size:13.5px; transition:color .15s ease; }
.footer-col a:hover{ color:#F0EEE2; }

.track-lookup{
  display:flex; align-items:center; margin-top:16px; border:1px solid var(--line); border-radius:5px; overflow:hidden; max-width:280px;
}
.track-lookup input{
  flex:1; background:transparent; border:none; padding:11px 12px; color:#EDEBDD;
  font-family:'IBM Plex Mono',monospace; font-size:12.5px; outline:none;
}
.track-lookup input::placeholder{ color:#4C5B72; }
.track-lookup button{
  background:var(--ink-2); border:none; border-left:1px solid var(--line); color:var(--amber);
  padding:11px 14px; font-size:12px; font-weight:600;
}

.footer-bottom{
  border-top:1px solid var(--line); padding:22px 0; display:flex; justify-content:space-between;
  align-items:center; flex-wrap:wrap; gap:12px;
}
.footer-bottom span{ color:var(--steel-dark); font-size:12.5px; }
.footer-bottom .legal{ display:flex; gap:20px; }
.footer-bottom .legal a{ color:var(--steel-dark); font-size:12.5px; }
.footer-bottom .legal a:hover{ color:var(--steel); }

/* ============================================================
   Shared site chrome — page header (non-hero pages) & breadcrumb
   ============================================================ */
.page-header{
  background:var(--ink); padding:56px 0 44px; position:relative; overflow:hidden;
}
.page-header .wrap{ position:relative; z-index:2; }
.page-header h1{ color:#F6F4EA; font-size:clamp(28px,3.4vw,38px); font-weight:600; }
.page-header p{ color:var(--steel); font-size:15px; margin-top:10px; max-width:560px; }
.breadcrumb{ display:flex; gap:8px; align-items:center; color:var(--steel-dark); font-size:13px; margin-bottom:16px; }
.breadcrumb a{ color:var(--steel); }
.breadcrumb a:hover{ color:#F0EEE2; }

/* ============================================================
   Alerts / flash messages
   ============================================================ */
.alert{
  border-radius:6px; padding:14px 18px; font-size:14px; margin-bottom:24px;
  border:1px solid transparent; display:flex; align-items:flex-start; gap:10px;
}
.alert-success{ background:#E9F7EF; border-color:#BFE6CE; color:#1E7A44; }
.alert-error{ background:#FDECEA; border-color:#F5C6C0; color:#B3261E; }

/* ============================================================
   Forms
   ============================================================ */
.form-panel{
  background:#fff; border:1px solid var(--line-light); border-radius:10px;
  padding:36px; max-width:720px;
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
@media (max-width:600px){ .form-row{ grid-template-columns:1fr; } }
.field{ margin-bottom:18px; }
.field label{
  display:block; font-size:13px; font-weight:600; color:var(--ink-text); margin-bottom:7px;
}
.field .hint{ font-size:12px; color:var(--steel-dark); font-weight:400; margin-left:4px; }
.field input[type=text],
.field input[type=tel],
.field input[type=email],
.field select,
.field textarea{
  width:100%; padding:12px 14px; border:1px solid var(--line-light); border-radius:5px;
  font-family:'IBM Plex Sans',sans-serif; font-size:14.5px; color:var(--ink-text);
  background:#fcfcfa; transition:border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--amber); background:#fff;
}
.field textarea{ resize:vertical; min-height:90px; }
.radio-group{ display:flex; gap:12px; flex-wrap:wrap; }
.radio-pill{
  border:1px solid var(--line-light); border-radius:20px; padding:9px 16px;
  font-size:13.5px; cursor:pointer; transition:all .15s ease; color:var(--steel-dark);
}
.radio-pill input{ display:none; }
.radio-pill.checked{ border-color:var(--amber); color:var(--ink-text); background:#FFF3EA; }
.form-submit-row{ display:flex; align-items:center; gap:16px; margin-top:8px; }
.form-note{ font-size:12.5px; color:var(--steel-dark); }
.btn-full{ width:100%; padding:14px; }
.btn[disabled], .btn.disabled{ opacity:.5; pointer-events:none; }

/* ============================================================
   Company search / listing page
   ============================================================ */
.search-toolbar{
  background:#fff; border:1px solid var(--line-light); border-radius:8px;
  padding:20px 22px; display:grid; grid-template-columns:1fr 1fr 1fr auto; gap:16px; align-items:end;
  margin:-64px 0 44px; position:relative; z-index:5;
}
@media (max-width:860px){ .search-toolbar{ grid-template-columns:1fr 1fr; margin-top:24px; } }
.search-toolbar .field{ margin-bottom:0; }
.search-toolbar label{ font-size:11.5px; color:var(--steel-dark); font-weight:600; margin-bottom:6px; }
.results-meta{ display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; flex-wrap:wrap; gap:12px; }
.results-meta p{ color:var(--steel-dark); font-size:14px; margin:0; }
.sort-select{ font-size:13px; border:1px solid var(--line-light); border-radius:5px; padding:8px 12px; background:#fff; }

.pagination{ display:flex; justify-content:center; gap:8px; margin-top:48px; }
.pagination a, .pagination span{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:5px; font-size:13.5px; color:var(--ink-text);
  border:1px solid var(--line-light);
}
.pagination a:hover{ border-color:var(--amber); }
.pagination .current{ background:var(--ink); color:#F6F4EA; border-color:var(--ink); }
.empty-state{
  text-align:center; padding:70px 20px; color:var(--steel-dark);
  border:1px dashed var(--line-light); border-radius:10px;
}
.empty-state h3{ color:var(--ink-text); font-size:18px; margin-bottom:8px; }

/* ============================================================
   Company profile page
   ============================================================ */
.profile-hero{
  background:var(--ink); padding:52px 0 60px; position:relative;
}
.profile-head{ display:flex; gap:24px; align-items:flex-start; flex-wrap:wrap; }
.profile-logo{
  width:76px; height:76px; border-radius:12px; background:var(--ink-2);
  border:1px solid var(--line); display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk',sans-serif; font-size:26px; font-weight:700; color:var(--amber);
  flex-shrink:0;
}
.profile-head h1{ color:#F6F4EA; font-size:clamp(24px,3vw,32px); font-weight:600; }
.profile-meta{ display:flex; gap:14px; align-items:center; margin-top:10px; flex-wrap:wrap; color:var(--steel); font-size:13.5px; }
.profile-actions{ margin-left:auto; display:flex; gap:12px; flex-wrap:wrap; }
@media (max-width:760px){ .profile-actions{ margin-left:0; } }

.profile-body{ padding:56px 0 90px; }
.profile-grid{ display:grid; grid-template-columns:1fr 320px; gap:44px; }
@media (max-width:920px){ .profile-grid{ grid-template-columns:1fr; } }
.profile-section{ margin-bottom:40px; }
.profile-section h2{ font-size:18px; font-weight:600; margin-bottom:14px; }
.profile-section p{ color:var(--steel-dark); font-size:14.5px; line-height:1.7; }
.tag-list{ display:flex; gap:8px; flex-wrap:wrap; }
.tag{
  font-size:12.5px; padding:6px 12px; border-radius:20px; background:var(--paper-2); color:var(--ink-text);
  border:1px solid var(--line-light);
}
.review-card{ border-bottom:1px solid var(--line-light); padding:18px 0; }
.review-card:last-child{ border-bottom:none; }
.review-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.review-name{ font-weight:600; font-size:14px; }
.review-stars{ color:var(--amber-dim); font-size:13px; }
.review-date{ color:var(--steel-dark); font-size:12px; }
.review-comment{ color:var(--steel-dark); font-size:14px; line-height:1.6; }

.sidebar-card{
  background:#fff; border:1px solid var(--line-light); border-radius:10px; padding:24px; margin-bottom:20px;
}
.sidebar-card h3{ font-size:14px; font-weight:600; margin-bottom:14px; }
.sidebar-row{ display:flex; justify-content:space-between; font-size:13.5px; padding:9px 0; border-bottom:1px solid var(--line-light); }
.sidebar-row:last-child{ border-bottom:none; }
.sidebar-row span:first-child{ color:var(--steel-dark); }
.sidebar-row span:last-child{ font-weight:600; }

/* ============================================================
   Tracking page
   ============================================================ */
.track-hero{ background:var(--ink); padding:64px 0 100px; text-align:left; }
.track-hero h1{ color:#F6F4EA; font-size:clamp(26px,3.2vw,34px); font-weight:600; }
.track-search{
  margin-top:26px; display:flex; gap:0; max-width:520px;
  background:var(--ink-2); border:1px solid var(--line); border-radius:6px; padding:6px;
}
.track-search input{
  flex:1; background:transparent; border:none; padding:12px 16px; color:#F6F4EA;
  font-family:'IBM Plex Mono',monospace; font-size:15px; outline:none; letter-spacing:0.03em;
}
.track-search input::placeholder{ color:#4C5B72; font-family:'IBM Plex Sans',sans-serif; letter-spacing:normal; }

.track-panel{
  background:#fff; border:1px solid var(--line-light); border-radius:10px;
  margin-top:-56px; position:relative; z-index:5; overflow:hidden;
}
.track-status-bar{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
  padding:24px 28px; border-bottom:1px solid var(--line-light);
}
.track-code{ font-family:'IBM Plex Mono',monospace; font-size:15px; color:var(--steel-dark); }
.track-status-pill{
  font-size:12.5px; font-weight:600; padding:6px 14px; border-radius:20px;
  background:#FFF3EA; color:var(--amber-dim); display:inline-flex; align-items:center; gap:7px;
}
.track-status-pill .pulse{ width:6px; height:6px; border-radius:50%; background:var(--amber-dim); animation:pulse 1.6s ease-in-out infinite; }
.track-status-pill.delivered{ background:#E9F7EF; color:#1E7A44; }
.track-status-pill.delivered .pulse{ background:#1E7A44; animation:none; }

.track-timeline{ display:flex; padding:26px 28px; gap:0; overflow-x:auto; }
.track-step{ flex:1; min-width:120px; text-align:center; position:relative; }
.track-step::before{
  content:''; position:absolute; top:9px; left:-50%; width:100%; height:2px; background:var(--line-light); z-index:0;
}
.track-step:first-child::before{ display:none; }
.track-step.done::before{ background:var(--amber); }
.track-dot{
  width:20px; height:20px; border-radius:50%; background:#fff; border:2px solid var(--line-light);
  margin:0 auto 10px; position:relative; z-index:1;
}
.track-step.done .track-dot{ background:var(--amber); border-color:var(--amber); }
.track-step.active .track-dot{ border-color:var(--amber); box-shadow:0 0 0 4px #FFF3EA; }
.track-step .label{ font-size:12px; color:var(--steel-dark); font-weight:500; }
.track-step.done .label, .track-step.active .label{ color:var(--ink-text); }

.track-map{ height:380px; background:var(--paper-2); position:relative; }
.track-map .no-signal{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:8px; color:var(--steel-dark); font-size:13.5px; text-align:center; padding:20px;
}
.track-details{ padding:24px 28px; display:grid; grid-template-columns:1fr 1fr; gap:24px; }
@media (max-width:600px){ .track-details{ grid-template-columns:1fr; } }
.track-details h4{ font-size:12.5px; color:var(--steel-dark); font-weight:600; margin-bottom:8px; text-transform:uppercase; letter-spacing:0.04em; }
.track-details p{ font-size:14.5px; color:var(--ink-text); margin:0; }

/* ============================================================
   Utility
   ============================================================ */
.section-thin{ padding:60px 0; }
.center{ text-align:center; }

/* ============================================================
   Company member area — auth pages (login/register)
   ============================================================ */
.auth-shell{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:var(--ink); padding:40px 20px; position:relative; overflow:hidden;
}
.auth-shell .hero-routes{ position:absolute; inset:0; opacity:.3; }
.auth-card{
  position:relative; z-index:2; background:#fff; border-radius:10px;
  padding:40px 38px; width:100%; max-width:420px;
}
.auth-card .brand{ margin-bottom:28px; }
.auth-card .brand-word{ color:var(--ink-text); }
.auth-card h1{ font-size:22px; font-weight:600; margin-bottom:6px; }
.auth-card .sub{ color:var(--steel-dark); font-size:14px; margin-bottom:28px; }
.auth-foot{ margin-top:22px; text-align:center; font-size:13.5px; color:var(--steel-dark); }
.auth-foot a{ color:var(--amber-dim); font-weight:600; }
.auth-card-wide{ max-width:640px; }

/* ============================================================
   Company member area — dashboard shell
   ============================================================ */
.dash-shell{ display:flex; min-height:100vh; background:var(--paper); }
.dash-sidebar{
  width:238px; flex-shrink:0; background:var(--ink); color:#DDE1E9;
  display:flex; flex-direction:column; position:sticky; top:0; height:100vh;
}
.dash-sidebar .brand{ padding:24px 22px; border-bottom:1px solid var(--line); }
.dash-sidebar .brand-word{ color:#F4F2E9; font-size:17px; }
.dash-nav{ flex:1; padding:16px 12px; }
.dash-nav a{
  display:flex; align-items:center; gap:11px; padding:11px 14px; border-radius:6px;
  color:var(--steel); font-size:14px; font-weight:500; margin-bottom:2px; transition:all .15s ease;
}
.dash-nav a:hover{ background:var(--ink-2); color:#F0EEE2; }
.dash-nav a.active{ background:var(--ink-2); color:var(--amber); }
.dash-nav a svg{ width:17px; height:17px; flex-shrink:0; }
.dash-sidebar-foot{ padding:16px 22px; border-top:1px solid var(--line); }
.dash-company-name{ color:#F0EEE2; font-size:13.5px; font-weight:600; }
.dash-company-sub{ color:var(--steel-dark); font-size:12px; margin-top:2px; }
.dash-logout{ display:inline-block; margin-top:12px; font-size:12.5px; color:var(--steel); }
.dash-logout:hover{ color:#F0EEE2; }

.dash-main{ flex:1; min-width:0; }
.dash-topbar{
  background:#fff; border-bottom:1px solid var(--line-light); padding:20px 32px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
}
.dash-topbar h1{ font-size:20px; font-weight:600; }
.dash-topbar p{ color:var(--steel-dark); font-size:13.5px; margin-top:3px; }
.dash-content{ padding:32px; max-width:1100px; }

.dash-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:32px; }
@media (max-width:900px){ .dash-stats{ grid-template-columns:repeat(2,1fr); } }
.dash-stat{ background:#fff; border:1px solid var(--line-light); border-radius:8px; padding:20px; }
.dash-stat .value{ font-family:'Space Grotesk',sans-serif; font-size:26px; font-weight:600; color:var(--ink-text); }
.dash-stat .label{ font-size:12.5px; color:var(--steel-dark); margin-top:4px; }
.dash-stat.accent .value{ color:var(--amber-dim); }

.panel{ background:#fff; border:1px solid var(--line-light); border-radius:8px; margin-bottom:28px; overflow:hidden; }
.panel-head{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  padding:18px 22px; border-bottom:1px solid var(--line-light);
}
.panel-head h2{ font-size:15.5px; font-weight:600; }
.panel-body{ padding:22px; }

.data-table{ width:100%; border-collapse:collapse; }
.data-table th{
  text-align:left; font-size:11.5px; font-weight:600; color:var(--steel-dark); text-transform:uppercase;
  letter-spacing:0.03em; padding:12px 22px; border-bottom:1px solid var(--line-light); background:#FAFAF6;
}
.data-table td{ padding:14px 22px; border-bottom:1px solid var(--line-light); font-size:13.5px; vertical-align:middle; }
.data-table tr:last-child td{ border-bottom:none; }
.data-table .muted{ color:var(--steel-dark); }

.status-pill{
  display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:600;
  padding:4px 10px; border-radius:20px;
}
.status-open, .status-pending{ background:#FFF3EA; color:var(--amber-dim); }
.status-active, .status-delivered, .status-accepted{ background:#E9F7EF; color:#1E7A44; }
.status-assigned, .status-picked_up, .status-in_transit{ background:#EAF1FB; color:#2A5FAE; }
.status-inactive, .status-cancelled, .status-declined, .status-suspended{ background:#F1F0EA; color:var(--steel-dark); }

.btn-small{ padding:8px 14px; font-size:13px; border-radius:5px; }
.btn-outline{ border:1px solid var(--line-light); color:var(--ink-text); background:#fff; }
.btn-outline:hover{ border-color:var(--ink-text); }
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px;
  border-radius:5px; border:1px solid var(--line-light); color:var(--steel-dark);
}
.icon-btn:hover{ border-color:var(--ink-text); color:var(--ink-text); }
.row-actions{ display:flex; gap:8px; }

.inline-form-row{ display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; }
.inline-form-row .field{ margin-bottom:0; }

.badge-count{
  display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px;
  padding:0 6px; border-radius:10px; background:var(--amber); color:#181008; font-size:11px; font-weight:700;
}

/* ============================================================
   Rider layer — mobile-first task view
   ============================================================ */
.rider-shell{ min-height:100vh; background:var(--paper); }
.rider-topbar{
  background:var(--ink); padding:16px 20px; display:flex; justify-content:space-between;
  align-items:center; position:sticky; top:0; z-index:10;
}
.rider-topbar .brand-word{ font-size:15px; }
.rider-topbar .rider-who{ text-align:right; }
.rider-topbar .rider-name{ color:#EDEBDD; font-size:12.5px; font-weight:600; }
.rider-topbar a.signout{ color:var(--steel); font-size:11.5px; }
.rider-topbar a.signout:hover{ color:#F0EEE2; }

.rider-content{ padding:20px; max-width:480px; margin:0 auto; }

.gps-indicator{
  display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--line-light);
  border-radius:8px; padding:13px 16px; margin-bottom:18px; font-size:13px; color:var(--steel-dark);
}
.gps-indicator .dot{ width:8px; height:8px; border-radius:50%; background:var(--steel-dark); flex-shrink:0; }
.gps-indicator.on{ color:#1E7A44; border-color:#BFE6CE; background:#F3FBF6; }
.gps-indicator.on .dot{ background:#1E7A44; animation:pulse 1.6s ease-in-out infinite; }
.gps-indicator.error{ color:#B3261E; border-color:#F5C6C0; background:#FDECEA; }
.gps-indicator .sub{ font-size:11.5px; color:inherit; opacity:.75; display:block; margin-top:1px; }

.task-card{ background:#fff; border:1px solid var(--line-light); border-radius:12px; overflow:hidden; margin-bottom:20px; }
.task-card-head{ background:var(--ink); padding:18px 20px; }
.task-card-head .code{ font-family:'IBM Plex Mono',monospace; color:var(--steel); font-size:12px; letter-spacing:0.03em; }
.task-card-head .status{ margin-top:10px; }
.task-route{ padding:18px 20px 4px; }
.task-point{ display:flex; gap:12px; }
.task-point .marker{ width:10px; height:10px; border-radius:50%; margin-top:5px; flex-shrink:0; }
.task-point.pickup .marker{ background:var(--amber); }
.task-point.dest .marker{ background:var(--ink-text); }
.task-point .label{ font-size:10.5px; color:var(--steel-dark); text-transform:uppercase; letter-spacing:0.04em; font-weight:600; }
.task-point .addr{ font-size:14.5px; color:var(--ink-text); margin-top:3px; line-height:1.4; }
.task-connector{ width:1px; background:var(--line-light); margin-left:4.5px; height:22px; }
.task-meta-row{ display:flex; justify-content:space-between; padding:13px 20px; border-top:1px solid var(--line-light); font-size:13px; }
.task-meta-row span:first-child{ color:var(--steel-dark); }
.task-action{ padding:18px 20px; border-top:1px solid var(--line-light); }
.task-action .btn{ font-size:15px; padding:15px; }

.no-task-card{ background:#fff; border:1px dashed var(--line-light); border-radius:12px; padding:56px 24px; text-align:center; color:var(--steel-dark); }
.no-task-card h3{ color:var(--ink-text); font-size:16px; margin-bottom:8px; }

.rider-history{ margin-top:8px; }
.rider-history-item{
  display:flex; justify-content:space-between; align-items:center; background:#fff;
  border:1px solid var(--line-light); border-radius:8px; padding:13px 16px; margin-bottom:8px; font-size:13px;
}
.rider-history-item .route{ color:var(--ink-text); }
.rider-history-item .when{ color:var(--steel-dark); font-size:12px; }

/* ============================================================
   Company member area — upgrade / payment plans
   ============================================================ */
.plan-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:28px; }
@media (max-width:860px){ .plan-grid{ grid-template-columns:1fr; } }
.plan-card{
  background:#fff; border:1px solid var(--line-light); border-radius:10px; padding:22px;
  display:flex; flex-direction:column;
}
.plan-card.current{ border-color:#BFE6CE; background:#F6FBF8; }
.plan-card h3{ font-size:15.5px; font-weight:600; margin-bottom:6px; }
.plan-card .price{ font-family:'Space Grotesk',sans-serif; font-size:26px; font-weight:600; color:var(--ink-text); margin-bottom:4px; }
.plan-card .price .period{ font-size:12.5px; color:var(--steel-dark); font-weight:400; }
.plan-card p.blurb{ color:var(--steel-dark); font-size:13px; line-height:1.6; flex:1; margin:10px 0 16px; }
.plan-status-tag{
  display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:#1E7A44;
  margin-bottom:10px;
}
