/* ==========================================================
   Home Logistics — Design System 2.0
   Colors: Navy (#123354) + Amber (#c9692f)
   Typography: Inter (body) + Sora (display/headings)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
  --navy-950: #0c2740;
  --navy-900: #123354;
  --navy-800: #1a4269;
  --navy-700: #235280;
  --navy-600: #2c5f8a;
  --orange-500: #c9692f;
  --orange-600: #a8531f;
  --orange-400: #d98a54;
  --orange-50: #fbeee5;
  --white: #ffffff;
  --gray-50: #f8fafb;
  --gray-100: #f2f5f8;
  --gray-200: #e4e9ef;
  --gray-300: #ccd4de;
  --gray-500: #7c8a9c;
  --gray-700: #46566a;
  --gray-900: #1a2433;
  --success: #17864f;
  --success-bg: #e6f6ed;
  --danger: #c02b2b;
  --danger-bg: #fbe9e9;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(8, 20, 38, 0.06), 0 1px 2px rgba(8, 20, 38, 0.05);
  --shadow: 0 8px 24px rgba(8, 20, 38, 0.09), 0 2px 6px rgba(8, 20, 38, 0.06);
  --shadow-lg: 0 24px 60px rgba(8, 20, 38, 0.16), 0 6px 16px rgba(8, 20, 38, 0.08);
  --border: 1px solid var(--gray-200);
  --max-width: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

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

h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--navy-950);
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--gray-700); }

.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-dark {
  background: radial-gradient(ellipse 120% 100% at 50% 0%, var(--navy-800) 0%, var(--navy-950) 70%);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--gray-300); }
.section-gray { background: var(--gray-50); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-600);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--orange-500);
  border-radius: 2px;
}
.section-dark .eyebrow { color: var(--orange-400); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }

/* ---------- Icon system ---------- */
.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 44px; height: 44px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Sora', 'Inter', sans-serif;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--orange-500); color: var(--white); box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 0 0 0 rgba(249,115,22,0); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(249,115,22,0.55); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.btn-navy { background: var(--navy-950); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 20, 38, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.logo .icon { color: var(--orange-500); width: 26px; height: 26px; }
.logo span { color: var(--orange-500); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--gray-300); font-weight: 500; font-size: 0.92rem; transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -18px; height: 2px; background: var(--orange-500); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); cursor: pointer; padding: 6px; }

@media (max-width: 900px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-950); flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 16px; display: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links.open { display: flex; }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse 90% 80% at 50% -10%, var(--navy-700) 0%, var(--navy-950) 62%);
  color: var(--white);
  padding: 108px 0 64px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero p.lead { font-size: 1.15rem; color: var(--gray-300); max-width: 620px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 26px 16px;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.stat-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.stat-value { font-family: 'Sora', sans-serif; font-size: 2.1rem; font-weight: 800; color: var(--orange-500); letter-spacing: -0.02em; }
.stat-label { color: var(--gray-300); font-size: 0.85rem; margin-top: 6px; }

@media (max-width: 700px) {
  .stats-row { grid-template-columns: 1fr; }
}

/* ---------- Trust bar ---------- */
.trust-bar { border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); padding: 28px 0; }
.trust-bar .container { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--gray-700); font-weight: 600; font-size: 0.9rem; }
.trust-item .icon { color: var(--orange-500); }

/* ---------- Process steps ---------- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: step; position: relative; }
.process-step { text-align: center; padding: 0 16px; position: relative; }
.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: 0 auto 18px;
  border-radius: 999px;
  background: var(--navy-950);
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}
.process-step::after {
  content: '';
  position: absolute;
  top: 20px; left: calc(50% + 36px); right: calc(-50% + 36px);
  height: 1.5px;
  background: var(--gray-200);
}
.process-step:last-child::after { display: none; }
@media (max-width: 800px) {
  .process-steps { grid-template-columns: 1fr; gap: 36px; }
  .process-step::after { display: none; }
}

/* ---------- Feature grid ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gray-300); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; margin-bottom: 0; }
.feature-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  background: var(--orange-50);
  color: var(--orange-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon.on-dark { background: rgba(249,115,22,0.14); color: var(--orange-400); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.testimonial-stars { display: flex; gap: 3px; color: var(--orange-500); margin-bottom: 14px; }
.testimonial-stars .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.testimonial-name { font-weight: 700; color: var(--navy-950); font-family: 'Sora', sans-serif; font-size: 0.95rem; }
.testimonial-company { color: var(--gray-500); font-size: 0.83rem; }

/* ---------- Pricing / columns ---------- */
.pricing-card {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--navy-700);
}
.pricing-card.featured { background: var(--orange-500); }
.pricing-card ul { text-align: left; margin: 24px 0; }
.pricing-card ul li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }

/* ---------- Cards (dispatch for companies/owner-operators) ---------- */
.info-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--gray-200);
}
.info-card ul li { padding: 6px 0; color: var(--gray-700); }
.info-card ul li::before { content: "✓ "; color: var(--orange-500); font-weight: 700; }

/* ---------- Equipment tags ---------- */
.equipment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .equipment-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .equipment-grid { grid-template-columns: 1fr; } }
.equipment-tag {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  color: var(--navy-950);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.equipment-tag:hover { border-color: var(--orange-400); box-shadow: var(--shadow-sm); }
.equipment-tag .icon { color: var(--orange-500); width: 22px; height: 22px; }

/* ---------- FAQ Accordion ---------- */
.accordion-item { border-bottom: 1px solid var(--gray-200); }
.accordion-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-950);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.accordion-question .icon { color: var(--orange-500); font-size: 1.3rem; transition: transform 0.2s; }
.accordion-item.open .icon { transform: rotate(45deg); }
.accordion-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; color: var(--gray-700); }
.accordion-item.open .accordion-answer { max-height: 500px; padding-bottom: 20px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--navy-950); }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--gray-900);
}
.form-control:focus { outline: none; border-color: var(--orange-500); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  max-width: 480px;
  margin: 0 auto;
}
.form-error { color: var(--danger); font-size: 0.82rem; margin-top: 4px; }
.alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--gray-300); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.footer-grid h4 { color: var(--white); font-family: 'Sora', sans-serif; font-size: 0.9rem; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 18px; }
.footer-tagline { color: var(--orange-400); font-family: 'Sora', sans-serif; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em; margin: 10px 0 0; }
.footer-grid ul li { margin-bottom: 11px; font-size: 0.92rem; }
.footer-grid ul li.footer-contact-row { display: flex; align-items: center; gap: 10px; }
.footer-grid ul li.footer-contact-row .icon { color: var(--orange-500); flex-shrink: 0; }
.footer-grid a { color: var(--gray-300); transition: color 0.15s; }
.footer-grid a:hover { color: var(--orange-500); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.83rem; color: var(--gray-500); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-bottom { justify-content: center; text-align: center; } }

/* ---------- Chatbot widget ---------- */
.chatbot-launcher {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--navy-950); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.chatbot-launcher:hover { transform: translateY(-2px) scale(1.03); background: var(--navy-800); }
.chatbot-launcher .icon { width: 26px; height: 26px; }
.chatbot-launcher .close-icon { display: none; }
.chatbot-launcher.open .chat-icon { display: none; }
.chatbot-launcher.open .close-icon { display: block; }
.chatbot-dot {
  position: absolute; top: 4px; right: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--orange-500); border: 2px solid var(--navy-950);
}

.chatbot-panel {
  position: fixed; bottom: 94px; right: 24px; z-index: 300;
  width: 370px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 140px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.chatbot-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.chatbot-header {
  background: var(--navy-950); color: var(--white);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 12px;
}
.chatbot-header .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(249,115,22,0.16); color: var(--orange-400);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chatbot-header .title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.95rem; }
.chatbot-header .status { font-size: 0.76rem; color: var(--gray-300); display: flex; align-items: center; gap: 6px; }
.chatbot-header .status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }

.chatbot-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: var(--gray-50); }
.chat-msg { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: 0.88rem; line-height: 1.5; }
.chat-msg.bot { align-self: flex-start; background: var(--white); border: 1px solid var(--gray-200); border-bottom-left-radius: 4px; color: var(--gray-900); }
.chat-msg.user { align-self: flex-end; background: var(--navy-950); color: var(--white); border-bottom-right-radius: 4px; }
.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chat-quick-reply {
  background: var(--white); border: 1.5px solid var(--orange-500); color: var(--orange-600);
  padding: 7px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: background-color 0.15s;
}
.chat-quick-reply:hover { background: var(--orange-50); }
.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; border-bottom-left-radius: 4px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--gray-500); animation: chat-bounce 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chatbot-input-row { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--gray-200); background: var(--white); }
.chatbot-input-row input {
  flex: 1; border: 1.5px solid var(--gray-200); border-radius: 999px; padding: 10px 16px;
  font-size: 0.88rem; font-family: inherit; outline: none; background: var(--gray-50);
}
.chatbot-input-row input:focus { border-color: var(--orange-400); background: var(--white); }
.chatbot-send {
  width: 38px; height: 38px; border-radius: 50%; border: none; flex-shrink: 0;
  background: var(--orange-500); color: var(--white); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background-color 0.15s;
}
.chatbot-send:hover { background: var(--orange-600); }
.chatbot-send .icon { width: 17px; height: 17px; }
.chatbot-footnote { text-align: center; font-size: 0.7rem; color: var(--gray-500); padding: 6px 0 10px; background: var(--white); }

@media (max-width: 480px) {
  .chatbot-panel { right: 16px; left: 16px; width: auto; bottom: 88px; }
  .chatbot-launcher { right: 16px; bottom: 16px; }
}

/* ---------- Rate-per-mile calculator ---------- */
.calculator-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.calculator-info {
  padding: 48px 44px;
  color: var(--white);
  display: flex; flex-direction: column; justify-content: center;
}
.calculator-info h2 { color: var(--white); }
.calculator-info p { color: var(--gray-300); }
.calculator-info ul li { color: var(--gray-300); padding: 6px 0; display: flex; align-items: center; gap: 10px; }
.calculator-info ul li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-500); flex-shrink: 0; }
.calculator-form {
  background: var(--white);
  padding: 44px;
  display: flex; flex-direction: column; justify-content: center;
}
.calculator-result {
  margin-top: 8px; padding: 20px; border-radius: var(--radius);
  background: var(--orange-50); text-align: center;
}
.calculator-result-value { font-family: 'Sora', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--orange-600); letter-spacing: -0.02em; }
.calculator-result-label { color: var(--gray-700); font-size: 0.85rem; margin-top: 4px; }
@media (max-width: 850px) {
  .calculator-card { grid-template-columns: 1fr; }
  .calculator-info, .calculator-form { padding: 36px 28px; }
}

/* ---------- Toast notifications ---------- */
.toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 400;
  display: flex; flex-direction: column; gap: 10px;
  max-width: calc(100vw - 32px);
}
.toast {
  display: flex; align-items: center; gap: 12px;
  min-width: 280px; max-width: 380px;
  background: var(--navy-950); color: var(--white);
  padding: 14px 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem; font-weight: 500;
  opacity: 0; transform: translateX(24px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  border-left: 3px solid var(--orange-500);
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { border-left-color: #22c55e; }
.toast-error { border-left-color: #ef4444; }
.toast-msg { flex: 1; line-height: 1.4; }
.toast-close { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 0; }
.toast-close:hover { color: var(--white); }
@media (max-width: 500px) {
  .toast-container { left: 16px; right: 16px; top: 16px; }
  .toast { min-width: 0; max-width: none; width: 100%; }
}

/* ---------- Dashboard layout ---------- */
.dash-shell { display: flex; min-height: 100vh; background: var(--gray-50); font-family: 'Inter', sans-serif; }
.dash-sidebar { width: 244px; background: var(--navy-950); color: var(--white); flex-shrink: 0; padding: 22px 0; display: flex; flex-direction: column; }
.dash-sidebar .logo { padding: 4px 24px 26px; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 24px; color: var(--gray-300); font-weight: 500; font-size: 0.88rem; border-right: 3px solid transparent; transition: background-color 0.15s, color 0.15s; }
.dash-nav a .icon { width: 19px; height: 19px; flex-shrink: 0; }
.dash-nav a:hover { background: rgba(255,255,255,0.04); color: var(--white); }
.dash-nav a.active { background: rgba(249,115,22,0.12); color: var(--orange-400); border-right-color: var(--orange-500); }
.dash-nav a#dash-logout { margin-top: auto; }
.dash-main { flex: 1; padding: 36px 40px; max-width: 100%; overflow-x: auto; }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 12px; }
.dash-topbar h2 { font-size: 1.5rem; }

@media (max-width: 900px) {
  .dash-shell { flex-direction: column; }
  .dash-sidebar { width: 100%; padding: 12px 0; }
  .dash-nav { display: flex; overflow-x: auto; }
  .dash-nav a { white-space: nowrap; border-right: none !important; }
}

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 32px; }
.dash-card { background: var(--white); border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--gray-200); transition: box-shadow 0.15s; }
.dash-card:hover { box-shadow: var(--shadow-sm); }
.dash-card .value { font-family: 'Sora', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--navy-950); letter-spacing: -0.01em; }
.dash-card .label { color: var(--gray-500); font-size: 0.82rem; margin-top: 5px; }

.panel { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 24px; margin-bottom: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.panel-head h3 { font-size: 1.05rem; }

table.data-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--gray-200); font-size: 0.9rem; }
.data-table th { color: var(--gray-500); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.04em; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-available { background: #dcfce7; color: #166534; }
.badge-booked { background: #fef3c7; color: #92400e; }
.badge-in_transit { background: #dbeafe; color: #1e40af; }
.badge-delivered { background: #e0e7ff; color: #3730a3; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-picked_up { background: #e0e7ff; color: #3730a3; }
.badge-delayed { background: #fee2e2; color: #991b1b; }
.badge-out_for_delivery { background: #fef3c7; color: #92400e; }
.badge-new { background: #fef3c7; color: #92400e; }
.badge-contacted { background: #dbeafe; color: #1e40af; }
.badge-converted { background: #dcfce7; color: #166534; }
.badge-closed { background: var(--gray-200); color: var(--gray-700); }
.badge-active { background: #dcfce7; color: #166534; }
.badge-inactive { background: #fee2e2; color: #991b1b; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-admin { background: var(--navy-950); color: #fff; }
.badge-client { background: var(--orange-500); color: #fff; }
.badge-sales { background: #0891b2; color: #fff; }

.filters-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.filters-bar .form-control { width: auto; min-width: 160px; }

/* ---------- Load board extras ---------- */
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--navy-950); }
.sort-icon { width: 12px; height: 12px; display: inline-block; vertical-align: middle; margin-left: 2px; opacity: 0.4; transform: rotate(90deg); }
th.sort-asc .sort-icon { opacity: 1; transform: rotate(-90deg); }
th.sort-desc .sort-icon { opacity: 1; transform: rotate(90deg); }

.skeleton-bar { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.4s ease-in-out infinite; }
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.board-empty { text-align: center; padding: 48px 20px; }
.board-empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--gray-100); color: var(--gray-500); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }

/* ---------- Testimonial carousel ---------- */
.carousel-wrap { position: relative; }
.carousel-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 12px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 calc(50% - 12px); scroll-snap-align: start; }
@media (max-width: 800px) { .carousel-slide { flex-basis: 100%; } }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; }
.carousel-arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gray-300);
  background: var(--white); color: var(--navy-950); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background-color 0.15s, border-color 0.15s;
}
.carousel-arrow:hover { background: var(--gray-100); border-color: var(--gray-500); }
.carousel-arrow .rotate-180 { transform: rotate(180deg); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300); border: none; cursor: pointer; padding: 0; transition: background-color 0.15s, transform 0.15s; }
.carousel-dot.active { background: var(--orange-500); transform: scale(1.3); }

/* ---------- Mini status timeline (client dashboard) ---------- */
.mini-timeline { display: flex; align-items: center; gap: 4px; }
.mini-timeline-step { width: 22px; height: 5px; border-radius: 3px; background: var(--gray-200); }
.mini-timeline-step.done { background: var(--orange-500); }

.modal-overlay { position: fixed; inset: 0; background: rgba(10,25,47,0.6); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--white); border-radius: var(--radius); padding: 28px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-box .modal-close { float: right; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--gray-500); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--gray-500); }

/* ---------- Extra status badges (tickets, priority, mail, calls) ---------- */
.badge-open { background: #dbeafe; color: #1e40af; }
.badge-resolved { background: #dcfce7; color: #166534; }
.badge-low { background: var(--gray-200); color: var(--gray-700); }
.badge-normal { background: #dbeafe; color: #1e40af; }
.badge-high { background: #fef3c7; color: #92400e; }
.badge-urgent { background: #fee2e2; color: #991b1b; }
.badge-demo { background: #ede9fe; color: #5b21b6; }
.badge-completed { background: #dcfce7; color: #166534; }
.badge-no_answer { background: #fef3c7; color: #92400e; }
.badge-voicemail { background: #dbeafe; color: #1e40af; }
.badge-sent { background: #dcfce7; color: #166534; }
.badge-logged { background: var(--gray-200); color: var(--gray-700); }
.badge-failed { background: #fee2e2; color: #991b1b; }

/* ---------- Dashboard top strip + notification bell ---------- */
.dash-topstrip { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.notif-wrap { position: relative; }
.notif-bell-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gray-200); background: var(--white); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.notif-bell-btn:hover { background: var(--gray-50); border-color: var(--gray-300); }
.notif-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--orange-500); color: #fff; font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--white);
}
.notif-panel {
  position: absolute; top: 48px; right: 0; width: 340px; max-width: calc(100vw - 40px);
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 250;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  max-height: 420px; display: flex; flex-direction: column;
}
.notif-panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.notif-panel-head { padding: 14px 16px; font-weight: 700; font-family: 'Sora', sans-serif; border-bottom: 1px solid var(--gray-100); color: var(--navy-950); }
.notif-list { overflow-y: auto; }
.notif-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--gray-100); color: inherit; transition: background-color 0.12s; }
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: #fff7ed; }
.notif-item.unread .notif-title { font-weight: 700; }
.notif-title { font-size: 0.86rem; color: var(--navy-950); margin-bottom: 2px; }
.notif-msg { font-size: 0.8rem; color: var(--gray-600); margin-bottom: 4px; }
.notif-time { font-size: 0.72rem; color: var(--gray-400); }
.notif-empty { padding: 24px 16px; text-align: center; color: var(--gray-400); font-size: 0.85rem; }

/* ---------- Demo power dialer widget ---------- */
.dialer-launcher {
  position: fixed; bottom: 24px; right: 96px; z-index: 300;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--orange-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; box-shadow: var(--shadow-lg);
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.dialer-launcher:hover { transform: translateY(-2px) scale(1.03); background: var(--orange-600); }
.dialer-panel {
  position: fixed; bottom: 88px; right: 96px; z-index: 300;
  width: 310px; max-width: calc(100vw - 32px);
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.98); pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.dialer-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.dialer-header { background: var(--navy-950); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.dialer-header .avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(249,115,22,0.18); color: var(--orange-400); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dialer-header .title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.9rem; }
.dialer-header .status { font-size: 0.72rem; color: var(--gray-300); display: flex; align-items: center; gap: 5px; }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; display: inline-block; }
.dialer-close { margin-left: auto; background: none; border: none; color: #fff; cursor: pointer; opacity: 0.75; }
.dialer-close:hover { opacity: 1; }
.dialer-body { padding: 16px; }
.dialer-display { width: 100%; text-align: center; font-size: 1.15rem; font-weight: 700; padding: 10px; border: 1.5px solid var(--gray-200); border-radius: 8px; margin-bottom: 8px; font-family: 'Sora', sans-serif; color: var(--navy-950); }
.dialer-name-input { margin-bottom: 12px; font-size: 0.85rem; }
.dialer-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.dialer-key { padding: 12px 0; border-radius: 8px; border: 1px solid var(--gray-200); background: var(--gray-50); font-weight: 700; font-size: 1rem; cursor: pointer; color: var(--navy-900); transition: background-color 0.12s; }
.dialer-key:hover { background: var(--gray-100); }
.dialer-actions { display: flex; gap: 8px; margin-bottom: 16px; }
.dialer-actions .btn { flex: 1; }
.dialer-clear { width: 40px; border-radius: 8px; border: 1px solid var(--gray-200); background: var(--gray-50); cursor: pointer; color: var(--gray-600); }
.dialer-log-head { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--gray-500); margin-bottom: 8px; }
.dialer-log { max-height: 130px; overflow-y: auto; }
.dialer-log-item { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--gray-100); font-size: 0.82rem; }
@media (max-width: 480px) {
  .dialer-panel { right: 16px; left: 16px; width: auto; }
  .dialer-launcher { right: 84px; bottom: 16px; }
}

.btn-call-inline {
  border: none; background: var(--orange-50); color: var(--orange-600); font-size: 0.72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; cursor: pointer; margin-left: 6px; vertical-align: middle;
}
.btn-call-inline:hover { background: var(--orange-400); color: #fff; }

/* ---------- Support ticket thread ---------- */
.ticket-thread { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
.ticket-msg { max-width: 78%; padding: 10px 14px; border-radius: 12px; font-size: 0.88rem; }
.ticket-msg.from-client { align-self: flex-start; background: var(--gray-50); border: 1px solid var(--gray-200); border-bottom-left-radius: 3px; }
.ticket-msg.from-admin { align-self: flex-end; background: var(--navy-950); color: #fff; border-bottom-right-radius: 3px; }
.ticket-msg.from-admin .ticket-msg-meta { color: var(--gray-300); }
.ticket-msg-meta { font-size: 0.72rem; color: var(--gray-500); margin-bottom: 4px; }
.ticket-msg-body { line-height: 1.5; white-space: pre-wrap; }

/* ---------- Hero / route illustration band (inline SVG, no external images) ---------- */
.hero-illustration { width: 100%; max-width: 460px; height: auto; }
.route-band { background: var(--navy-950); padding: 8px 0 46px; }
.route-illustration { width: 100%; height: auto; display: block; }
@media (max-width: 720px) { .route-band { display: none; } }

/* ---------- Shipment tracking page ---------- */
.tracking-info-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 14px 16px; }
.tracking-info-label { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--gray-500); font-weight: 700; margin-bottom: 6px; }
.tracking-info-label .icon { color: var(--orange-500); }
.tracking-info-value { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1rem; color: var(--navy-950); }
.tracking-timeline { position: relative; padding-left: 8px; }
.tracking-step { position: relative; display: flex; gap: 16px; padding-bottom: 26px; }
.tracking-step:last-child { padding-bottom: 0; }
.tracking-step::before { content: ''; position: absolute; left: 5px; top: 20px; bottom: -6px; width: 2px; background: var(--gray-200); }
.tracking-step:last-child::before { display: none; }
.tracking-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gray-300); flex-shrink: 0; margin-top: 4px; z-index: 1; }
.tracking-step.current .tracking-dot { background: var(--orange-500); box-shadow: 0 0 0 4px var(--orange-50); }
.tracking-step-title { font-weight: 700; color: var(--navy-950); font-size: 0.92rem; }
.tracking-step.current .tracking-step-title { color: var(--orange-600); }
.tracking-step-loc { font-size: 0.84rem; color: var(--gray-700); margin-top: 2px; }
.tracking-step-note { font-size: 0.84rem; color: var(--gray-600); margin-top: 2px; }
.tracking-step-time { font-size: 0.76rem; color: var(--gray-400); margin-top: 4px; }

/* ---------- AI Smart Match badge (load board) ---------- */
.ai-score-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.ai-score-great { background: #dcfce7; color: #166534; }
.ai-score-good { background: #dbeafe; color: #1e40af; }
.ai-score-fair { background: #fef3c7; color: #92400e; }
.ai-score-badge .icon { width: 12px; height: 12px; }
