/*
 * BharatFleet Marketplace — production UI kit v3 (mature theme).
 *
 * Design principles:
 *   • Restrained — 700 default, 800 only for page h1 and brand names.
 *   • Neutral-first palette; primary + accent used as seasoning, not sauce.
 *   • Soft shadows (Tailwind-like), subtle gradients, quiet surfaces.
 *   • Mobile-first, native-app msite (bottom-sheet modals, bottom nav, safe areas).
 *   • One responsive scale — same tokens for msite / tablet / desktop.
 */

/* ═══════════════════════════════════════════════════════════════
 * DESIGN TOKENS
 * ═══════════════════════════════════════════════════════════════ */
:root {
  --mp-primary: #2b59d4;
  --mp-primary-dark: #1e40af;
  --mp-primary-soft: #eef3ff;
  --mp-primary-ink: #1e3a8a;
  --mp-accent: #e8a73b;
  --mp-accent-dark: #b87b19;
  --mp-accent-soft: #fff4e0;
  --mp-ink: #0f172a;
  --mp-ink2: #1e293b;
  --mp-ink3: #475569;
  --mp-ink4: #64748b;
  --mp-mist: #94a3b8;
  --mp-line: #e5e7eb;
  --mp-line2: #d1d5db;
  --mp-bg: #fafbfc;
  --mp-surf: #f5f7fa;
  --mp-surf2: #eef2f6;
  --mp-white: #ffffff;
  --mp-green: #10b981;
  --mp-green-ink: #047857;
  --mp-green-soft: #ecfdf5;
  --mp-amber: #e8a73b;
  --mp-red: #dc2626;
  --mp-red-soft: #fef2f2;
  --mp-wa: #25d366;

  --mp-shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --mp-shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --mp-shadow: 0 4px 14px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --mp-shadow-md: 0 10px 24px rgba(15,23,42,.08), 0 4px 8px rgba(15,23,42,.04);
  --mp-shadow-lg: 0 24px 52px rgba(15,23,42,.12), 0 8px 16px rgba(15,23,42,.04);

  --mp-radius-xs: 6px;
  --mp-radius-sm: 8px;
  --mp-radius: 12px;
  --mp-radius-lg: 18px;

  --mp-header-h: 58px;
  --mp-bottom-h: 60px;
  --mp-ease: cubic-bezier(.2, .8, .2, 1);
  --mp-ease-quart: cubic-bezier(.4, 0, .2, 1);
}

/* ═══════════════════════════════════════════════════════════════
 * RESET + BASE
 * ═══════════════════════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--mp-bg);
  color: var(--mp-ink2);
  font-size: 15px;
  line-height: 1.5;
  margin: 0; padding: 0;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.has-bottom-nav { padding-bottom: calc(var(--mp-bottom-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 860px) { body.has-bottom-nav { padding-bottom: 0; } }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
input, button, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: transparent; }

/* Zero-gap between header ↔ first section on every page.
 * `display: flow-root` establishes a new block formatting context so no
 * margin collapses through <main>. Combined with explicit 0 margins on
 * every candidate first-child this guarantees the top banner hugs the
 * sticky header — home, profile, search, CMS, dashboard, all of them. */
main#mpMain { min-height: calc(100vh - var(--mp-header-h)); margin: 0; padding: 0; display: flow-root; }
#mpRoot { margin: 0; padding: 0; display: flow-root; }
#mpRoot > *:first-child { margin-top: 0 !important; }
.mp-hero, .mp-profile-cover, .mp-me-hero, .mp-trust-strip { margin-top: 0 !important; }

.mp-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .mp-container { padding: 0 24px; } }
@media (min-width: 1024px) { .mp-container { padding: 0 32px; } }

/* Page enter */
#mpRoot > section:first-child, #mpRoot > div:first-child {
  animation: pageIn .24s var(--mp-ease-quart);
}
@keyframes pageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ═══════════════════════════════════════════════════════════════
 * BUTTONS (mature, restrained)
 * ═══════════════════════════════════════════════════════════════ */
.mp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--mp-radius-sm); border: 1px solid transparent;
  font-size: 13px; font-weight: 600; letter-spacing: -0.005em;
  transition: transform .12s var(--mp-ease), box-shadow .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
  white-space: nowrap; min-height: 38px; -webkit-tap-highlight-color: transparent;
}
.mp-btn:hover { transform: translateY(-1px); }
.mp-btn:active { transform: translateY(0); }
.mp-btn-primary { background: var(--mp-primary); color: #fff; box-shadow: var(--mp-shadow-xs); }
.mp-btn-primary:hover { background: var(--mp-primary-dark); box-shadow: var(--mp-shadow-sm); }
.mp-btn-accent { background: var(--mp-accent); color: #fff; box-shadow: var(--mp-shadow-xs); }
.mp-btn-accent:hover { background: var(--mp-accent-dark); box-shadow: var(--mp-shadow-sm); }
.mp-btn-ghost { background: #fff; border-color: var(--mp-line); color: var(--mp-ink2); box-shadow: var(--mp-shadow-xs); }
.mp-btn-ghost:hover { background: var(--mp-surf); border-color: var(--mp-line2); color: var(--mp-ink); }
/* Hero-overlay outline variant — sits on the dark hero background,
 * transparent fill + white border + white text + subtle hover. Used on
 * /page/for-transporters and /page/about secondary hero CTAs. */
.mp-btn-hero-outline { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.4); color: #fff; box-shadow: none; }
.mp-btn-hero-outline:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); color: #fff; }
.mp-btn-hero-outline i { color: #fff; }
.mp-btn-outline { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.mp-btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.mp-btn-dark { background: var(--mp-ink); color: #fff; }
.mp-btn-dark:hover { background: #020617; }
.mp-btn-whatsapp { background: var(--mp-wa); color: #fff; }
.mp-btn-whatsapp:hover { background: #1ebe57; }
.mp-btn-subtle { background: var(--mp-primary-soft); color: var(--mp-primary); }
.mp-btn-subtle:hover { background: #dde6ff; }
.mp-btn-sm { padding: 6px 12px; font-size: 12px; min-height: 32px; border-radius: 7px; }
.mp-btn-lg { padding: 11px 20px; font-size: 14px; min-height: 44px; border-radius: 10px; }
.mp-btn-block { display: flex; width: 100%; }
.mp-btn[disabled] { opacity: .55; pointer-events: none; }
.mp-btn i { font-size: 1em; }

.mp-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; background: var(--mp-surf); color: var(--mp-ink3);
  font-size: 11px; font-weight: 600; border-radius: 999px; letter-spacing: 0;
}
.mp-tag.verified { background: var(--mp-green-soft); color: var(--mp-green-ink); }
.mp-tag.match { background: var(--mp-accent-soft); color: #8a5b15; }
.mp-tag.primary { background: var(--mp-primary-soft); color: var(--mp-primary); }
.mp-tag.outline { background: #fff; border: 1px solid var(--mp-line); }
.mp-tag.dark { background: var(--mp-ink); color: #fff; }

/* ═══════════════════════════════════════════════════════════════
 * TOP BAR — slimmer, quieter
 * ═══════════════════════════════════════════════════════════════ */
.mp-topbar {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--mp-line);
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(1.35) blur(14px);
  -webkit-backdrop-filter: saturate(1.35) blur(14px);
  transition: box-shadow .18s, background .18s;
}
.mp-topbar.scrolled { box-shadow: 0 8px 24px -16px rgba(11, 18, 32, .25); background: rgba(255,255,255,.96); }
.mp-topbar .mp-container { display: flex; align-items: center; gap: 12px; height: var(--mp-header-h); }
.mp-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mp-brand-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--mp-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.mp-brand-name { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--mp-ink); }
.mp-brand-tag { font-size: 9px; font-weight: 700; color: var(--mp-primary); letter-spacing: 1.2px; text-transform: uppercase; margin-top: 1px; }
.mp-nav { display: none; gap: 4px; margin-left: 14px; }
.mp-nav a { position: relative; padding: 8px 13px; color: var(--mp-ink3); font-size: 13px; font-weight: 600; border-radius: 8px; transition: color .14s, background .14s; }
.mp-nav a:hover { color: var(--mp-ink); background: var(--mp-surf); }
.mp-nav a.active { color: var(--mp-primary); background: var(--mp-primary-soft); }
.mp-nav a.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--mp-primary); }
.mp-auth { margin-left: auto; display: none; gap: 8px; align-items: center; position: relative; }
.mp-hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px; font-size: 20px;
  color: var(--mp-ink2); margin-left: auto; -webkit-tap-highlight-color: transparent;
}
.mp-hamburger:hover { background: var(--mp-surf); }

/* Logged-in user chip */
.mp-user-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 12px 3px 3px; border: 1px solid var(--mp-line);
  border-radius: 999px; color: var(--mp-ink2); font-size: 13px; font-weight: 600;
  min-height: 36px; background: #fff;
}
.mp-user-chip:hover { border-color: var(--mp-line2); }
.mp-user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--mp-primary);
  color: #fff; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}

.mp-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  width: 270px; background: #fff; border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius); box-shadow: var(--mp-shadow-lg);
  padding: 4px; z-index: 70; display: none;
  animation: menuIn .16s var(--mp-ease-quart);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.mp-menu.open { display: block; }
.mp-menu-hd { padding: 12px 12px 10px; border-bottom: 1px solid var(--mp-line); margin-bottom: 4px; }
.mp-menu-hd .n { font-size: 14px; font-weight: 700; color: var(--mp-ink); }
.mp-menu-hd .p { font-size: 12px; color: var(--mp-ink4); margin-top: 2px; }
.mp-menu a, .mp-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 12px; border-radius: 7px;
  color: var(--mp-ink2); font-size: 13px; font-weight: 500; text-align: left;
}
.mp-menu a:hover, .mp-menu button:hover { background: var(--mp-surf); color: var(--mp-primary); }
.mp-menu a i, .mp-menu button i { color: var(--mp-mist); font-size: 15px; width: 18px; }
.mp-menu a:hover i, .mp-menu button:hover i { color: var(--mp-primary); }
.mp-menu .divide { height: 1px; background: var(--mp-line); margin: 4px 4px; }

/* Mobile drawer */
.mp-drawer {
  position: fixed; top: 0; right: -100%; bottom: 0; width: min(320px, 86%);
  background: #fff; box-shadow: var(--mp-shadow-lg); padding: 16px;
  transition: right .26s var(--mp-ease); z-index: 80; overflow-y: auto;
}
.mp-drawer.open { right: 0; }
.mp-drawer-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: none; z-index: 75; animation: fadeIn .18s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.mp-drawer-backdrop.open { display: block; }
.mp-drawer-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--mp-line); }
.mp-drawer-close { font-size: 18px; color: var(--mp-ink2); width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.mp-drawer-close:hover { background: var(--mp-surf); }
.mp-drawer-links a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px; color: var(--mp-ink2); font-weight: 600; font-size: 14px; -webkit-tap-highlight-color: transparent; }
.mp-drawer-links a:hover, .mp-drawer-links a.active { background: var(--mp-primary-soft); color: var(--mp-primary); }
.mp-drawer-links a.active { box-shadow: inset 3px 0 0 var(--mp-primary); padding-left: 14px; }
.mp-drawer-links a i { color: var(--mp-mist); font-size: 16px; width: 22px; }
.mp-drawer-links a.active i { color: var(--mp-primary); }
.mp-drawer-section-lbl { font-size: 10.5px; font-weight: 800; color: var(--mp-ink4); text-transform: uppercase; letter-spacing: 1.1px; margin-bottom: 8px; padding-left: 4px; }

/* Bottom nav (mobile) */
.mp-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--mp-line);
  display: flex; justify-content: space-around;
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
  z-index: 55; backdrop-filter: blur(10px);
}
@media (min-width: 860px) { .mp-bottom-nav { display: none; } }
.mp-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 2px; color: var(--mp-mist); font-size: 10px; font-weight: 600;
  position: relative; -webkit-tap-highlight-color: transparent;
}
.mp-bottom-nav a i { font-size: 19px; }
.mp-bottom-nav a.active { color: var(--mp-primary); }
.mp-bottom-nav a.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 2px; background: var(--mp-primary); border-radius: 0 0 2px 2px;
}
/* CTA "Post" button — lifted pill with gradient ring so it reads as
   the primary app action even against a busy bottom bar. */
.mp-bottom-nav a.cta {
  color: #fff; font-weight: 800; padding-bottom: 0;
  justify-content: flex-end; min-width: 72px;
}
.mp-bottom-nav a.cta i {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--mp-primary) 0%, #3b82f6 60%, var(--mp-accent) 140%);
  color: #fff; padding: 0; border-radius: 18px;
  box-shadow: 0 10px 24px rgba(37,99,235,.36), 0 4px 10px rgba(0,0,0,.14);
  transform: translateY(-18px);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1;
  transition: transform .14s ease, box-shadow .14s ease;
}
.mp-bottom-nav a.cta:active i { transform: translateY(-16px) scale(.96); }
.mp-bottom-nav a.cta span,
.mp-bottom-nav a.cta { color: var(--mp-primary); }
.mp-bottom-nav a.cta::before { display: none; }

/* ═══════════════════════════════════════════════════════════════
 * HERO — calm, tight, no double-radial noise
 * ═══════════════════════════════════════════════════════════════ */
.mp-hero {
  position: relative; overflow: hidden;
  background: #0f172a;
  background-image:
    radial-gradient(ellipse 900px 400px at 85% 0%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(ellipse 700px 400px at 10% 100%, rgba(232,167,59,.08), transparent 60%),
    linear-gradient(135deg, #0b1220 0%, #0f172a 50%, #131f3d 100%);
  color: #fff;
  padding: 44px 0 56px;
}
@media (min-width: 768px) { .mp-hero { padding: 60px 0 72px; } }
@media (min-width: 960px) { .mp-hero { padding: 80px 0 96px; } }
/* Compact sub-hero on non-home pages keeps its own smaller padding */
.mp-hero.mp-hero-slim { padding: 24px 0 32px; }
@media (min-width: 768px) { .mp-hero.mp-hero-slim { padding: 32px 0 40px; } }

.mp-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center;
}
@media (min-width: 960px) { .mp-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; } }

.mp-hero-copy { text-align: center; }
@media (min-width: 960px) { .mp-hero-copy { text-align: left; } }

.mp-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; background: rgba(232,167,59,.12); border: 1px solid rgba(232,167,59,.24);
  color: #fbbf24; font-size: 11px; font-weight: 600; letter-spacing: .4px;
  border-radius: 999px; margin-bottom: 14px;
}
.mp-hero h1 {
  font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.022em;
  margin-bottom: 12px; color: #fff;
}
.mp-hero h1 .accent { color: var(--mp-accent); }
@media (min-width: 640px) { .mp-hero h1 { font-size: 32px; } }
@media (min-width: 960px) { .mp-hero h1 { font-size: 38px; } }
@media (min-width: 1200px) { .mp-hero h1 { font-size: 42px; } }
.mp-hero p.lead { font-size: 14px; color: rgba(255,255,255,.76); max-width: 540px; margin: 0 auto 16px; line-height: 1.6; }
@media (min-width: 768px) { .mp-hero p.lead { font-size: 15px; } }
@media (min-width: 960px) { .mp-hero p.lead { margin: 0 0 16px; } }

.mp-hero-facts { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
@media (min-width: 960px) { .mp-hero-facts { justify-content: flex-start; } }
.mp-hero-fact { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 500; }
.mp-hero-fact i { color: var(--mp-accent); font-size: 14px; }

/* In-hero trust badges — replaces the separate dark trust strip that
 * used to render as its own section. Keeps the hero self-contained
 * and cuts one scroll-stop on the home page. */
.mp-hero-trust { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
@media (min-width: 960px) { .mp-hero-trust { justify-content: flex-start; } }
.mp-hero-trust span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); border-radius: 999px; color: rgba(255,255,255,.82); font-size: 11.5px; font-weight: 600; letter-spacing: .15px; }
.mp-hero-trust span i { color: var(--mp-accent); font-size: 13px; }

/* Offer-eyebrow variant of the hero badge — calls out the \u20B9500 cashback
 * launch offer in the first fold so new shippers see the carrot. */
.mp-hero-badge-offer { background: linear-gradient(135deg, rgba(245,158,11,.22), rgba(232,167,59,.35)); border-color: rgba(251,191,36,.45); color: #fde68a; }
.mp-hero-badge-offer i { color: #fbbf24; }

.mp-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.mp-hero-stats > div { text-align: center; }
@media (min-width: 960px) { .mp-hero-stats > div { text-align: left; } }
.mp-hero-stats b { display: block; font-size: 20px; font-weight: 800; color: #fff; line-height: 1.05; letter-spacing: -.01em; }
.mp-hero-stats span { display: block; font-size: 10px; color: rgba(255,255,255,.55); font-weight: 600; text-transform: uppercase; letter-spacing: .7px; margin-top: 3px; }
@media (min-width: 768px) { .mp-hero-stats b { font-size: 24px; } .mp-hero-stats span { font-size: 10px; } }

/* Hero form card */
.mp-hero-form-card {
  background: #fff; color: var(--mp-ink);
  border-radius: var(--mp-radius-lg); padding: 18px;
  box-shadow: var(--mp-shadow-lg);
}
@media (min-width: 768px) { .mp-hero-form-card { padding: 22px; } }
.mp-hero-form-card h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 2px; color: var(--mp-ink); }
.mp-hero-form-card .sub { font-size: 12px; color: var(--mp-ink4); margin-bottom: 14px; }
.mp-hero-form-card form { display: grid; gap: 10px; }
.mp-hero-form-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ═══════════════════════════════════════════════════════════════
 * ROUTE CONNECTOR — premium pickup → delivery widget
 * ═══════════════════════════════════════════════════════════════ */
.mp-route { position: relative; background: var(--mp-surf); border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 4px; }
.mp-route::before {
  /* vertical dashed connector line */
  content: ''; position: absolute; top: 24px; bottom: 24px; left: 20px; width: 0;
  border-left: 2px dashed var(--mp-line2); z-index: 1;
}
.mp-route-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 10px; }
.mp-route-row + .mp-route-row { border-top: 1px solid var(--mp-line); }
.mp-route-row > .dot {
  position: relative; z-index: 2; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--mp-primary);
  box-shadow: 0 0 0 3px rgba(43,89,212,.12);
  flex-shrink: 0;
}
.mp-route-row.to > .dot { border-color: var(--mp-accent); box-shadow: 0 0 0 3px rgba(232,167,59,.16); border-radius: 3px; }
.mp-route-row > .rbody { flex: 1; min-width: 0; }
.mp-route-row > .rbody label { display: block; font-size: 10px; font-weight: 700; color: var(--mp-ink4); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.mp-route-row > .rbody input {
  width: 100%; padding: 2px 0; border: none; outline: none; font-size: 14px; font-weight: 600; color: var(--mp-ink);
  background: transparent;
}
.mp-route-row > .rbody input::placeholder { color: var(--mp-mist); font-weight: 500; }
.mp-route-swap {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; background: #fff;
  border: 1px solid var(--mp-line); color: var(--mp-ink3);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
  box-shadow: var(--mp-shadow-sm); z-index: 3;
}
.mp-route-swap:hover { color: var(--mp-primary); border-color: var(--mp-primary); }

/* Form fields */
.mp-field { display: flex; flex-direction: column; gap: 5px; }
.mp-field label { font-size: 10px; font-weight: 700; color: var(--mp-ink4); text-transform: uppercase; letter-spacing: .5px; }
.mp-fi, .mp-field input, .mp-field select, .mp-field textarea {
  padding: 10px 12px; border: 1px solid var(--mp-line); border-radius: var(--mp-radius-sm);
  font-size: 14px; color: var(--mp-ink); outline: none; background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
  min-height: 40px; font-weight: 500;
}
.mp-fi:hover, .mp-field input:hover, .mp-field select:hover, .mp-field textarea:hover { border-color: var(--mp-line2); }
.mp-fi:focus, .mp-field input:focus, .mp-field select:focus, .mp-field textarea:focus {
  border-color: var(--mp-primary); box-shadow: 0 0 0 3px rgba(43,89,212,.12);
}
.mp-field textarea { resize: vertical; min-height: 70px; }
.mp-field.required label::after { content: ' *'; color: var(--mp-red); }
.mp-field .hint { font-size: 11px; color: var(--mp-mist); }
.mp-field .err { font-size: 12px; color: var(--mp-red); font-weight: 500; }
/* Inline error state for required inputs (e.g. hero search) — red
   border + soft focus ring so the field that failed validation is
   visually obvious without a full form re-render. */
.mp-fi.mp-fi-err, .mp-field input.mp-fi-err, .mp-field select.mp-fi-err {
  border-color: #e11d48; box-shadow: 0 0 0 3px rgba(225,29,72,.12);
}

/* Autocomplete */
.mp-ac-field { position: relative; }
.mp-ac-list {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow-lg); max-height: 260px; overflow-y: auto; z-index: 40;
}
.mp-ac-item { padding: 9px 12px; font-size: 13px; color: var(--mp-ink2); cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.mp-ac-item:hover { background: var(--mp-surf); }
.mp-ac-item b { color: var(--mp-ink); font-weight: 600; }
.mp-ac-item .mp-ac-meta { color: var(--mp-mist); font-size: 11px; margin-left: auto; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════
 * SECTIONS
 * ═══════════════════════════════════════════════════════════════ */
.mp-section { padding: 36px 0; background: #fff; }
@media (min-width: 768px) { .mp-section { padding: 56px 0; } }
.mp-section-alt { background: var(--mp-bg); }
.mp-section-sm { padding: 24px 0; }

.mp-sec-hd { text-align: center; margin-bottom: 26px; }
.mp-sec-hd .eyebrow { display: inline-block; font-size: 11px; font-weight: 700; color: var(--mp-primary); text-transform: uppercase; letter-spacing: 1.3px; margin-bottom: 8px; }
.mp-sec-hd h2 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; color: var(--mp-ink); }
.mp-sec-hd p { color: var(--mp-ink4); font-size: 13px; max-width: 600px; margin: 6px auto 0; line-height: 1.55; }
@media (min-width: 768px) { .mp-sec-hd h2 { font-size: 28px; } .mp-sec-hd p { font-size: 14px; } }

/* Trust strip + KPI */
.mp-trust-strip { background: #fff; border-bottom: 1px solid var(--mp-line); padding: 12px 0; overflow-x: auto; }
.mp-trust-strip .mp-container { display: flex; gap: 20px; flex-wrap: nowrap; justify-content: center; min-width: min-content; }
.mp-trust-strip span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; color: var(--mp-ink3); font-weight: 500; }
.mp-trust-strip i { color: var(--mp-primary); }
@media (max-width: 640px) { .mp-trust-strip .mp-container { justify-content: flex-start; } }

.mp-kpi-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .mp-kpi-row { grid-template-columns: repeat(4, 1fr); } }
.mp-kpi {
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius);
  padding: 16px 14px; text-align: center;
}
.mp-kpi b { display: block; font-size: 22px; font-weight: 700; color: var(--mp-ink); line-height: 1; letter-spacing: -.015em; }
.mp-kpi span { display: block; font-size: 11px; font-weight: 600; color: var(--mp-ink4); text-transform: uppercase; letter-spacing: .5px; margin-top: 6px; }

/* Service tiles */
.mp-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 600px) { .mp-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .mp-cat-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
.mp-cat-card {
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius);
  padding: 18px 14px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: all .16s var(--mp-ease-quart);
}
.mp-cat-card:hover { transform: translateY(-2px); box-shadow: var(--mp-shadow-sm); border-color: var(--mp-line2); }
.mp-cat-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: var(--mp-primary-soft); color: var(--mp-primary);
}
.mp-cat-card:nth-child(4n+2) .mp-cat-icon { background: var(--mp-green-soft); color: var(--mp-green-ink); }
.mp-cat-card:nth-child(4n+3) .mp-cat-icon { background: var(--mp-accent-soft); color: var(--mp-accent-dark); }
.mp-cat-card:nth-child(4n+4) .mp-cat-icon { background: #f3e8ff; color: #7c3aed; }
.mp-cat-card h3 { font-size: 13px; font-weight: 700; color: var(--mp-ink); letter-spacing: -.005em; }
.mp-cat-card p { font-size: 11px; color: var(--mp-ink4); line-height: 1.4; min-height: 30px; }
.mp-cat-cta { font-size: 10px; font-weight: 700; color: var(--mp-primary); letter-spacing: .3px; text-transform: uppercase; }

/* City cards */
.mp-city-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 600px) { .mp-city-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .mp-city-grid { grid-template-columns: repeat(6, 1fr); } }
.mp-city-card {
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius-sm);
  padding: 11px 14px; display: flex; align-items: center; gap: 10px;
  transition: all .12s var(--mp-ease-quart);
}
.mp-city-card:hover { background: var(--mp-primary-soft); border-color: var(--mp-primary); }
.mp-city-card:hover .name, .mp-city-card:hover i { color: var(--mp-primary); }
.mp-city-card i { font-size: 15px; color: var(--mp-mist); }
.mp-city-card .name { font-size: 13px; font-weight: 600; color: var(--mp-ink); flex: 1; }
.mp-city-card .sub { font-size: 10px; color: var(--mp-mist); font-weight: 500; }

/* Trending routes */
.mp-routes-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px) { .mp-routes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .mp-routes-grid { grid-template-columns: repeat(4, 1fr); } }
.mp-route-card {
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius);
  padding: 14px 16px; transition: all .14s var(--mp-ease-quart);
}
.mp-route-card:hover { border-color: var(--mp-primary); box-shadow: var(--mp-shadow-sm); transform: translateY(-1px); }
.mp-route-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--mp-ink); }
.mp-route-head i { color: var(--mp-primary); font-size: 14px; }
.mp-route-from, .mp-route-to { flex: 1; }
.mp-route-to { text-align: right; }
.mp-route-meta { font-size: 11px; color: var(--mp-ink4); margin-top: 6px; font-weight: 500; }
.mp-route-meta i { color: var(--mp-mist); margin-right: 4px; }

/* ═══════════════════════════════════════════════════════════════
 * MERCHANT CARD
 * ═══════════════════════════════════════════════════════════════ */
.mp-merchants { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .mp-merchants { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mp-merchants { grid-template-columns: repeat(3, 1fr); } }
.mp-merchant {
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: all .18s var(--mp-ease-quart);
}
.mp-merchant:hover { transform: translateY(-2px); box-shadow: var(--mp-shadow-md); border-color: var(--mp-line2); }
.mp-merchant-cover { aspect-ratio: 5 / 2; background: #0f172a; position: relative; overflow: hidden; }
.mp-merchant-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-merchant-cover .featured-chip {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; background: rgba(255,255,255,.95); color: var(--mp-accent-dark);
  border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .4px;
}
.mp-merchant-cover .featured-chip i { color: var(--mp-accent); font-size: 10px; }
.mp-merchant-cover .bookmark {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; background: rgba(255,255,255,.92); color: var(--mp-ink3);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.mp-merchant-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mp-merchant-head { display: flex; gap: 12px; align-items: center; margin-top: -28px; position: relative; z-index: 1; }
.mp-merchant-logo {
  width: 48px; height: 48px; border-radius: 11px;
  background: linear-gradient(135deg, #eef3ff 0%, #dbe4fe 100%);
  border: 2px solid #fff; box-shadow: var(--mp-shadow-sm);
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
  font-size: 14px; font-weight: 700; color: var(--mp-primary);
  letter-spacing: .3px;
}
/* Rotate colored gradients per card so the row of cards feels vibrant */
.mp-merchant:nth-child(6n+1) .mp-merchant-logo { background: linear-gradient(135deg, #eef3ff, #dbe4fe); color: #2b59d4; }
.mp-merchant:nth-child(6n+2) .mp-merchant-logo { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #047857; }
.mp-merchant:nth-child(6n+3) .mp-merchant-logo { background: linear-gradient(135deg, #fff4e0, #fde68a); color: #b45309; }
.mp-merchant:nth-child(6n+4) .mp-merchant-logo { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #be185d; }
.mp-merchant:nth-child(6n+5) .mp-merchant-logo { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #6d28d9; }
.mp-merchant:nth-child(6n+6) .mp-merchant-logo { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #b91c1c; }
.mp-merchant-logo img { width: 100%; height: 100%; object-fit: cover; }
.mp-merchant-title { padding-top: 30px; min-width: 0; flex: 1; }
.mp-merchant-name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--mp-ink); line-height: 1.25; }
.mp-merchant-loc { font-size: 11px; color: var(--mp-ink4); display: flex; align-items: center; gap: 4px; margin-top: 2px; font-weight: 500; }
.mp-merchant-loc i { font-size: 12px; }
.mp-merchant-tagline { font-size: 13px; color: var(--mp-ink3); line-height: 1.5; }
.mp-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.mp-merchant-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--mp-surf); font-size: 12px; color: var(--mp-ink4); font-weight: 500; }
.mp-rating { color: var(--mp-ink2); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.mp-rating i { color: var(--mp-accent); font-size: 13px; }

.mp-score-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(255,255,255,.95); color: var(--mp-accent-dark);
  font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .3px;
  display: inline-flex; align-items: center; gap: 4px;
}
.mp-score-badge i { color: var(--mp-accent); font-size: 11px; }
.mp-score-badge.score-good { color: var(--mp-green-ink); }
.mp-score-badge.score-good i { color: var(--mp-green); }

/* Steps */
.mp-steps { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .mp-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mp-steps { grid-template-columns: repeat(4, 1fr); } }
.mp-step {
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius);
  padding: 22px 20px; position: relative;
}
.mp-step-num {
  width: 40px; height: 40px; border-radius: var(--mp-radius-sm);
  background: var(--mp-primary-soft); color: var(--mp-primary);
  font-size: 18px; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.mp-step h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--mp-ink); }
.mp-step p { font-size: 13px; color: var(--mp-ink4); line-height: 1.55; }
.mp-step-pill { position: absolute; top: 14px; right: 14px; background: var(--mp-surf); color: var(--mp-ink4); font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; }

/* Industry */
.mp-ind-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .mp-ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mp-ind-grid { grid-template-columns: repeat(3, 1fr); } }
.mp-ind-card {
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius);
  padding: 20px; transition: all .14s var(--mp-ease-quart);
}
.mp-ind-card:hover { transform: translateY(-2px); box-shadow: var(--mp-shadow-sm); border-color: var(--mp-line2); }
.mp-ind-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--mp-primary-soft); color: var(--mp-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 10px;
}
.mp-ind-card:nth-child(2n) .mp-ind-icon { background: var(--mp-green-soft); color: var(--mp-green-ink); }
.mp-ind-card:nth-child(3n) .mp-ind-icon { background: var(--mp-accent-soft); color: var(--mp-accent-dark); }
.mp-ind-card:nth-child(5n) .mp-ind-icon { background: #f3e8ff; color: #7c3aed; }
.mp-ind-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 5px; color: var(--mp-ink); }
.mp-ind-card p { font-size: 12px; color: var(--mp-ink4); line-height: 1.55; }

/* Testimonials */
.mp-testimonials { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .mp-testimonials { grid-template-columns: repeat(3, 1fr); } }
.mp-testimonial {
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius);
  padding: 20px;
}
.mp-testimonial-stars { color: var(--mp-accent); font-size: 12px; margin-bottom: 10px; letter-spacing: 1.5px; }
.mp-testimonial-q { font-size: 13px; color: var(--mp-ink2); line-height: 1.65; margin-bottom: 14px; }
.mp-testimonial-who { display: flex; align-items: center; gap: 10px; }
.mp-testimonial-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--mp-primary-soft); color: var(--mp-primary); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.mp-testimonial-n { font-size: 13px; font-weight: 700; color: var(--mp-ink); }
.mp-testimonial-r { font-size: 11px; color: var(--mp-ink4); }

/* FAQ */
.mp-faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.mp-faq { background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius-sm); overflow: hidden; }
.mp-faq[open] { border-color: var(--mp-primary); }
.mp-faq summary { padding: 14px 18px; font-weight: 600; color: var(--mp-ink); cursor: pointer; display: flex; align-items: center; gap: 12px; list-style: none; font-size: 13px; }
.mp-faq summary::-webkit-details-marker { display: none; }
.mp-faq summary i { margin-left: auto; color: var(--mp-primary); transition: transform .15s; font-size: 13px; }
.mp-faq[open] summary i { transform: rotate(180deg); }
.mp-faq p { padding: 0 18px 16px; color: var(--mp-ink4); font-size: 13px; line-height: 1.7; }

/* For transporters */
.mp-ft {
  position: relative; overflow: hidden;
  background: #0f172a;
  background-image:
    radial-gradient(ellipse 600px 300px at 90% 0%, rgba(59,130,246,.25), transparent 60%),
    linear-gradient(135deg, #0b1220 0%, #101b3a 100%);
  color: #fff; border-radius: var(--mp-radius-lg);
  padding: 30px 22px;
}
@media (min-width: 768px) { .mp-ft { padding: 44px; } }
.mp-ft-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; }
@media (min-width: 900px) { .mp-ft-grid { grid-template-columns: 1.1fr 1fr; gap: 36px; } }
.mp-ft-copy h2 { font-size: 22px; font-weight: 700; margin: 12px 0 12px; letter-spacing: -.015em; line-height: 1.2; }
@media (min-width: 768px) { .mp-ft-copy h2 { font-size: 30px; } }
.mp-ft-copy p { font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.6; margin-bottom: 18px; max-width: 520px; }
.mp-ft-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.mp-ft-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--mp-radius); padding: 13px 10px; text-align: center; }
.mp-ft-stat b { display: block; font-size: 20px; font-weight: 700; color: var(--mp-accent); line-height: 1; letter-spacing: -.015em; }
.mp-ft-stat span { display: block; font-size: 10px; color: rgba(255,255,255,.6); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; margin-top: 4px; }
.mp-ft-benefits { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .mp-ft-benefits { grid-template-columns: repeat(2, 1fr); } }
.mp-ft-benefit {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--mp-radius-sm);
  padding: 14px; display: flex; gap: 10px; align-items: flex-start;
}
.mp-ft-benefit i { width: 30px; height: 30px; border-radius: 8px; background: rgba(232,167,59,.12); color: var(--mp-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.mp-ft-benefit b { display: block; font-size: 13px; color: #fff; font-weight: 600; margin-bottom: 2px; }
.mp-ft-benefit span { display: block; font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.5; }

/* Final CTA */
.mp-cta-rich {
  background: var(--mp-primary);
  background-image: linear-gradient(135deg, #1e40af 0%, #2b59d4 55%, #3b82f6 100%);
  color: #fff; border-radius: var(--mp-radius-lg); overflow: hidden; position: relative;
  padding: 32px 22px;
}
@media (min-width: 768px) { .mp-cta-rich { padding: 44px; } }
.mp-cta-rich::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.1), transparent 70%); top: -150px; right: -100px; pointer-events: none; }
.mp-cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
@media (min-width: 900px) { .mp-cta-grid { grid-template-columns: 1.15fr 1fr; gap: 36px; } }
.mp-cta-rich h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.015em; line-height: 1.2; }
@media (min-width: 768px) { .mp-cta-rich h2 { font-size: 30px; } }
.mp-cta-rich p { color: rgba(255,255,255,.85); font-size: 14px; margin-bottom: 16px; line-height: 1.6; max-width: 520px; }
.mp-cta-reasons { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
@media (min-width: 640px) { .mp-cta-reasons { grid-template-columns: repeat(3, 1fr); } }
.mp-cta-reason { background: rgba(255,255,255,.1); border-radius: var(--mp-radius-sm); padding: 12px 14px; }
.mp-cta-reason i { color: var(--mp-accent); font-size: 18px; margin-bottom: 6px; display: block; }
.mp-cta-reason b { display: block; font-size: 13px; color: #fff; font-weight: 600; }
.mp-cta-reason span { display: block; font-size: 11px; color: rgba(255,255,255,.7); margin-top: 2px; }
.mp-cta-testimonial {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: var(--mp-radius); padding: 20px;
}
.mp-cta-testimonial .stars { color: var(--mp-accent); letter-spacing: 1.5px; font-size: 12px; margin-bottom: 6px; }
.mp-cta-testimonial .q { font-size: 14px; line-height: 1.6; color: #fff; margin-bottom: 14px; }
.mp-cta-testimonial .who { display: flex; align-items: center; gap: 10px; }
.mp-cta-testimonial .av { width: 36px; height: 36px; border-radius: 50%; background: rgba(232,167,59,.22); color: var(--mp-accent); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.mp-cta-testimonial .n { font-size: 13px; font-weight: 600; color: #fff; }
.mp-cta-testimonial .r { font-size: 11px; color: rgba(255,255,255,.7); }

/* ═══════════════════════════════════════════════════════════════
 * MODAL — bottom sheet on mobile
 * ═══════════════════════════════════════════════════════════════ */
.mp-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.5);
  display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(4px); z-index: 1000;
  animation: fadeIn .18s var(--mp-ease-quart);
}
@media (min-width: 640px) { .mp-modal-backdrop { align-items: center; padding: 16px; } }
.mp-modal {
  background: #fff; max-width: 480px; width: 100%; max-height: 92vh; overflow-y: auto;
  padding: 22px; box-shadow: var(--mp-shadow-lg);
  border-radius: 18px 18px 0 0;
  animation: sheetUp .28s var(--mp-ease-quart);
}
@media (min-width: 640px) { .mp-modal { border-radius: var(--mp-radius-lg); animation: modalIn .22s var(--mp-ease-quart); } }
@keyframes sheetUp { from { transform: translateY(16%); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes modalIn { from { transform: translateY(12px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.mp-modal h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; color: var(--mp-ink); }
.mp-modal .sub { color: var(--mp-ink4); font-size: 13px; margin-bottom: 16px; line-height: 1.5; }
.mp-modal-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--mp-surf); color: var(--mp-ink3); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; z-index: 2; }
.mp-modal-close:hover { background: var(--mp-surf2); color: var(--mp-ink); }
.mp-modal-wrap { position: relative; width: 100%; max-width: 480px; }
@media (max-width: 639px) {
  .mp-modal-wrap { max-width: 100%; }
  .mp-modal::before {
    content: ''; display: block; width: 36px; height: 4px; background: var(--mp-line2);
    border-radius: 999px; margin: -6px auto 12px;
  }
}
.mp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--mp-line); margin-bottom: 16px; }
.mp-tab { padding: 9px 12px; font-size: 12px; font-weight: 600; color: var(--mp-ink4); border-bottom: 2px solid transparent; background: transparent; display: inline-flex; align-items: center; gap: 5px; }
.mp-tab.active { color: var(--mp-primary); border-color: var(--mp-primary); }

#mpToast { position: fixed; top: 68px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.mp-toast { pointer-events: auto; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--mp-ink); color: #fff; box-shadow: var(--mp-shadow-lg); display: inline-flex; align-items: center; gap: 8px; animation: toastIn .22s var(--mp-ease-quart); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.mp-toast.success { background: #059669; }
.mp-toast.warn { background: #b45309; }
.mp-toast.error { background: #b91c1c; }
.mp-toast i { font-size: 15px; }

/* ═══════════════════════════════════════════════════════════════
 * PROFILE PAGE
 * ═══════════════════════════════════════════════════════════════ */
.mp-profile-cover {
  position: relative; height: 160px; overflow: hidden; background: #0f172a;
}
@media (min-width: 768px) { .mp-profile-cover { height: 240px; } }
.mp-profile-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.mp-profile-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,.1) 0%, rgba(15,23,42,.65) 100%); }

.mp-profile-hero { position: relative; margin-top: -76px; z-index: 2; }
@media (min-width: 768px) { .mp-profile-hero { margin-top: -90px; } }
.mp-profile-hero-card {
  background: #fff; border-radius: var(--mp-radius-lg); box-shadow: var(--mp-shadow-md);
  padding: 18px; display: grid; grid-template-columns: 1fr; gap: 16px;
  border: 1px solid var(--mp-line);
}
@media (min-width: 768px) { .mp-profile-hero-card { padding: 24px; grid-template-columns: auto 1fr auto; align-items: center; } }
.mp-profile-logo {
  width: 72px; height: 72px; border-radius: 14px;
  background: var(--mp-surf);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: var(--mp-primary);
  overflow: hidden; flex-shrink: 0;
  border: 2px solid #fff; box-shadow: var(--mp-shadow-sm);
}
@media (min-width: 768px) { .mp-profile-logo { width: 96px; height: 96px; border-radius: 18px; font-size: 28px; } }
.mp-profile-logo img { width: 100%; height: 100%; object-fit: cover; }
.mp-profile-info .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.mp-profile-info h1 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--mp-ink); line-height: 1.2; }
@media (min-width: 768px) { .mp-profile-info h1 { font-size: 26px; } }
.mp-profile-tagline { font-size: 13px; color: var(--mp-ink3); margin: 4px 0 10px; line-height: 1.55; }
.mp-profile-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--mp-ink4); }
.mp-profile-meta b { color: var(--mp-ink); }
.mp-profile-meta-i { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.mp-profile-meta-i i { color: var(--mp-primary); font-size: 13px; }
.mp-profile-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 768px) { .mp-profile-hero-actions { grid-template-columns: 1fr; min-width: 180px; } }

.mp-profile-stickybar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--mp-line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 6px; z-index: 50;
  backdrop-filter: blur(8px);
}
.mp-profile-stickybar .mp-btn { flex: 1; padding: 9px 6px; font-size: 12px; min-height: 40px; }
/* Float the action bar clearly ABOVE the bottom nav as a rounded card. The nav's
   lifted "Post" CTA (translateY(-18px)) + the nav's z-index:55 (over the bar's
   z-index:50) previously made the Call/WhatsApp/Enquire buttons overlap the menu;
   the +20px clearance clears the lifted CTA and the side margins make it read as
   an intentional floating bar. */
body.has-bottom-nav .mp-profile-stickybar {
  bottom: calc(var(--mp-bottom-h) + env(safe-area-inset-bottom, 0px) + 20px);
  left: 10px; right: 10px;
  border: 1px solid var(--mp-line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15,23,42,.16);
}
@media (min-width: 768px) { .mp-profile-stickybar { display: none; } }
/* …and reserve room so the last profile sections clear the floating action bar
   (it's position:fixed, so without this the About/reviews tail hides under it). */
body.has-bottom-nav #mpRoot:has(.mp-profile-stickybar) { padding-bottom: 96px; }

/* Quick stat band */
.mp-profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
@media (min-width: 640px) { .mp-profile-stats { grid-template-columns: repeat(4, 1fr); } }
.mp-profile-stat {
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius-sm);
  padding: 12px; text-align: center;
}
.mp-profile-stat b { display: block; font-size: 16px; font-weight: 700; color: var(--mp-ink); letter-spacing: -.01em; }
.mp-profile-stat span { display: block; font-size: 10px; font-weight: 600; color: var(--mp-ink4); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

/* Body two-col */
.mp-profile-layout { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 24px 0 160px; }
@media (min-width: 900px) { .mp-profile-layout { grid-template-columns: 1.75fr 1fr; gap: 26px; padding: 32px 0 44px; } }
/* On msite the sticky action bar (Call/WhatsApp/Enquire) + bottom nav together
 * eat ~110px of screen real estate. Keep generous bottom padding so users
 * never see content clipped behind those bars. */

.mp-profile-main { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .mp-profile-main { gap: 16px; } }
.mp-profile-card { background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 16px; }
@media (min-width: 768px) { .mp-profile-card { padding: 20px; } }
.mp-profile-card h2 { font-size: 14px; font-weight: 700; margin-bottom: 12px; letter-spacing: -.005em; color: var(--mp-ink); display: flex; align-items: center; gap: 8px; }
@media (min-width: 768px) { .mp-profile-card h2 { font-size: 15px; } }
.mp-profile-card h2 i { color: var(--mp-primary); font-size: 16px; }
@media (min-width: 768px) { .mp-profile-card h2 i { font-size: 17px; } }
.mp-profile-card p { color: var(--mp-ink2); line-height: 1.75; font-size: 14px; }
.mp-profile-card .desc { color: var(--mp-ink2); font-size: 14px; line-height: 1.75; }
.mp-profile-card .section-sub { font-size: 10px; font-weight: 700; color: var(--mp-ink4); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .6px; }

.mp-service-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 700px) { .mp-service-tiles { grid-template-columns: repeat(3, 1fr); } }
.mp-service-tile { background: var(--mp-surf); border-radius: var(--mp-radius-sm); padding: 12px; display: flex; gap: 10px; align-items: center; border: 1px solid transparent; transition: all .12s; }
.mp-service-tile:hover { background: #fff; border-color: var(--mp-line); }
.mp-service-tile i { font-size: 18px; color: var(--mp-primary); flex-shrink: 0; }
.mp-service-tile h4 { font-size: 13px; font-weight: 600; color: var(--mp-ink); }
.mp-service-tile p { font-size: 11px; color: var(--mp-ink4); line-height: 1.35; }

.mp-chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.mp-chip { padding: 4px 10px; background: var(--mp-surf); border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--mp-ink2); }
.mp-chip i { margin-right: 4px; }

.mp-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 700px) { .mp-gallery { grid-template-columns: repeat(3, 1fr); } }
.mp-gallery a { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--mp-radius-sm); background: var(--mp-surf); }
.mp-gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--mp-ease); }
.mp-gallery a:hover img { transform: scale(1.04); }

.mp-fleet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .mp-fleet-grid { grid-template-columns: repeat(4, 1fr); } }
.mp-fleet-item { background: var(--mp-surf); border-radius: var(--mp-radius-sm); overflow: hidden; }
.mp-fleet-item .imgwrap { aspect-ratio: 4/3; overflow: hidden; }
.mp-fleet-item img { width: 100%; height: 100%; object-fit: cover; }
.mp-fleet-item .label { padding: 7px 10px; font-size: 11px; font-weight: 600; color: var(--mp-ink2); }

.mp-routes-list { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 600px) { .mp-routes-list { grid-template-columns: repeat(2, 1fr); } }
.mp-route-line { background: var(--mp-surf); border-radius: var(--mp-radius-sm); padding: 10px 12px; font-size: 13px; color: var(--mp-ink2); font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mp-route-line i { color: var(--mp-primary); font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════
 * ACTIVE ROUTES (new) — each route shows next departure + return + rate
 * ═══════════════════════════════════════════════════════════════ */
.mp-active-routes { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .mp-active-routes { grid-template-columns: repeat(2, 1fr); } }
.mp-active-route {
  background: var(--mp-surf);
  border: 1px solid var(--mp-line); border-radius: var(--mp-radius);
  padding: 12px 14px;
  transition: background .12s ease, border-color .12s ease;
}
.mp-active-route:hover { background: #fff; border-color: var(--mp-primary); }
.mp-ar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mp-ar-route { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--mp-ink); flex: 1; min-width: 0; }
.mp-ar-route i { color: var(--mp-mist); font-size: 12px; }
.mp-ar-city { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mp-ar-city .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mp-primary); flex-shrink: 0; }
.mp-ar-city .dot.to { background: var(--mp-accent); border-radius: 2px; }
.mp-ar-status {
  font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  letter-spacing: .3px; white-space: nowrap;
}
.mp-ar-status.status-available { background: var(--mp-green-soft); color: var(--mp-green-ink); }
.mp-ar-status.status-empty-return { background: var(--mp-accent-soft); color: var(--mp-accent-dark); }
.mp-ar-status.status-en-route { background: var(--mp-primary-soft); color: var(--mp-primary); }
.mp-ar-status.status-returning { background: #f3e8ff; color: #6d28d9; }
.mp-ar-status.status-full { background: var(--mp-surf2); color: var(--mp-ink4); }
.mp-ar-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 12px; color: var(--mp-ink3); font-weight: 500; }
.mp-ar-meta span { display: inline-flex; align-items: center; gap: 4px; }
.mp-ar-meta i { color: var(--mp-mist); font-size: 13px; }
.mp-ar-meta b { color: var(--mp-ink2); font-weight: 700; margin-right: 2px; }

.mp-awards { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 600px) { .mp-awards { grid-template-columns: repeat(2, 1fr); } }
.mp-award {
  background: var(--mp-accent-soft);
  border: 1px solid rgba(232,167,59,.18); border-radius: var(--mp-radius-sm);
  padding: 11px 14px; display: flex; gap: 10px; align-items: center;
}
.mp-award i { color: var(--mp-accent); font-size: 18px; }
.mp-award span { font-size: 13px; font-weight: 600; color: #8a5b15; }

.mp-reviews { display: flex; flex-direction: column; gap: 14px; }
.mp-review { border-bottom: 1px solid var(--mp-line); padding-bottom: 14px; }
.mp-review:last-child { border-bottom: 0; padding-bottom: 0; }
.mp-review-hd { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.mp-review-av { width: 32px; height: 32px; border-radius: 50%; background: var(--mp-primary-soft); color: var(--mp-primary); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.mp-review-hd > div { min-width: 0; flex: 1; }
.mp-review-n { font-size: 13px; font-weight: 700; color: var(--mp-ink); }
.mp-review-date { font-size: 11px; color: var(--mp-ink4); }
.mp-review-stars { color: var(--mp-accent); letter-spacing: 1.5px; font-size: 12px; flex-shrink: 0; }
@media (max-width: 420px) {
  .mp-review-stars { width: 100%; margin-left: 42px; margin-top: -4px; }
}
.mp-review p { font-size: 13px; color: var(--mp-ink3); line-height: 1.6; }
.mp-review-avg { display: flex; gap: 16px; align-items: center; padding: 12px; background: var(--mp-surf); border-radius: var(--mp-radius-sm); margin-bottom: 14px; }
.mp-review-avg .num { font-size: 28px; font-weight: 700; color: var(--mp-ink); line-height: 1; letter-spacing: -.015em; }
.mp-review-avg .s { color: var(--mp-accent); letter-spacing: 2px; font-size: 13px; }
.mp-review-avg .c { font-size: 11px; color: var(--mp-ink4); margin-top: 3px; font-weight: 500; }

/* Profile sidebar */
.mp-profile-side { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) { .mp-profile-side { position: sticky; top: calc(var(--mp-header-h) + 14px); align-self: start; max-height: calc(100vh - var(--mp-header-h) - 28px); overflow-y: auto; } }

/* Premium Contact Card */
.mp-contact-card {
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 18px;
}
.mp-contact-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--mp-ink); display: flex; align-items: center; gap: 6px; }
.mp-contact-card h3 i { color: var(--mp-primary); font-size: 16px; }
.mp-contact-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--mp-line);
}
.mp-contact-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.mp-contact-row:first-of-type { padding-top: 4px; }
.mp-contact-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--mp-primary-soft); color: var(--mp-primary);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
}
.mp-contact-row:nth-child(2) .mp-contact-icon { background: var(--mp-green-soft); color: var(--mp-green-ink); }
.mp-contact-row:nth-child(3) .mp-contact-icon { background: var(--mp-accent-soft); color: var(--mp-accent-dark); }
.mp-contact-row:nth-child(4) .mp-contact-icon { background: #f3e8ff; color: #7c3aed; }
.mp-contact-row:nth-child(5) .mp-contact-icon { background: var(--mp-red-soft); color: var(--mp-red); }
.mp-contact-body { flex: 1; min-width: 0; }
.mp-contact-body .l { font-size: 10px; font-weight: 700; color: var(--mp-ink4); text-transform: uppercase; letter-spacing: .5px; }
.mp-contact-body .v { font-size: 13px; font-weight: 500; color: var(--mp-ink); margin-top: 1px; word-break: break-word; line-height: 1.4; }
.mp-contact-body a.v { color: var(--mp-primary); font-weight: 600; }
.mp-contact-body a.v:hover { text-decoration: underline; }
.mp-contact-row .act {
  width: 32px; height: 32px; border-radius: 8px; background: var(--mp-surf);
  color: var(--mp-ink3); display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
  flex-shrink: 0;
}
.mp-contact-row .act:hover { background: var(--mp-primary-soft); color: var(--mp-primary); }

/* Inline enquiry form */
.mp-profile-enq {
  background: #fff;
  border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 18px;
  box-shadow: var(--mp-shadow-sm);
}
.mp-profile-enq h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--mp-ink); display: flex; align-items: center; gap: 6px; }
.mp-profile-enq h3 i { color: var(--mp-primary); font-size: 16px; }
.mp-profile-enq .sub { font-size: 12px; color: var(--mp-ink4); margin-bottom: 14px; line-height: 1.5; }
.mp-profile-enq form { display: grid; gap: 10px; }
.mp-profile-enq .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp-profile-enq .mp-fi { padding: 9px 11px; font-size: 13px; min-height: 38px; }
.mp-profile-enq textarea { min-height: 60px; }
.mp-profile-enq .mp-btn { margin-top: 4px; }
.mp-profile-enq .assure { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--mp-line); font-size: 11px; color: var(--mp-ink4); display: flex; align-items: center; gap: 6px; }
.mp-profile-enq .assure i { color: var(--mp-green); }

/* ═══════════════════════════════════════════════════════════════
 * LOAD REQUEST FORM
 * ═══════════════════════════════════════════════════════════════ */
.mp-lr-form { display: grid; gap: 12px; }
.mp-lr-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 540px) { .mp-lr-form .row2 { grid-template-columns: 1fr; } }

/* ─── Post-Load page (compact 2-col card) ─────────────────── */
.mp-pl-card {
  max-width: 860px; margin: 0 auto;
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius-lg);
  box-shadow: var(--mp-shadow-sm); padding: 20px;
}
@media (min-width: 768px) { .mp-pl-card { padding: 28px; } }
.mp-pl-card-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--mp-line);
}
.mp-pl-card-hd h2 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--mp-ink); }
.mp-pl-card-hd p { font-size: 12px; color: var(--mp-ink4); margin-top: 2px; }
@media (min-width: 768px) { .mp-pl-card-hd h2 { font-size: 19px; } .mp-pl-card-hd p { font-size: 13px; } }
.mp-pl-form { display: flex; flex-direction: column; gap: 18px; }
.mp-pl-section { }
.mp-pl-section-hd { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--mp-ink2); margin-bottom: 10px; letter-spacing: .1px; }
.mp-pl-section-hd .num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--mp-primary); color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.mp-pl-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px 12px;
}
@media (min-width: 640px) { .mp-pl-grid { grid-template-columns: 1fr 1fr; } }
.mp-pl-grid .mp-pl-full { grid-column: 1 / -1; }
.mp-pl-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--mp-line);
  flex-wrap: wrap;
}
.mp-pl-assure { font-size: 12px; color: var(--mp-ink4); line-height: 1.5; display: inline-flex; align-items: flex-start; gap: 6px; flex: 1; min-width: 240px; }
.mp-pl-assure i { color: var(--mp-green); margin-top: 2px; flex-shrink: 0; }
.mp-pl-actions .mp-btn { min-width: 220px; }
@media (max-width: 540px) { .mp-pl-actions .mp-btn { width: 100%; min-width: 0; } }

/* ─── Post-Load layout — form + side rails ──────────────── */
.mp-pl-layout { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 1080px) { .mp-pl-layout { grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(240px, 280px); gap: 22px; } }
.mp-pl-layout .mp-pl-card { max-width: none; margin: 0; }
.mp-pl-rail { min-width: 0; }
@media (max-width: 1079px) { .mp-pl-rail-right { order: 3; } .mp-pl-card { order: 2; } .mp-pl-rail-left { order: 1; } }
.mp-pl-rail-card { background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius-lg); padding: 18px; box-shadow: var(--mp-shadow-sm); position: sticky; top: 84px; }
.mp-pl-rail-card h3 { font-size: 14px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; color: var(--mp-ink); }
.mp-pl-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.mp-pl-steps li { display: flex; gap: 10px; align-items: flex-start; }
.mp-pl-steps .n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--mp-primary), #1d4ed8); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(37,99,235,.25); }
.mp-pl-steps b { font-size: 13px; color: var(--mp-ink); display: block; margin-bottom: 2px; }
.mp-pl-steps p { font-size: 12px; color: var(--mp-ink4); line-height: 1.55; margin: 0; }
.mp-pl-rail-note { margin-top: 16px; padding: 10px 12px; background: linear-gradient(180deg, #ecfdf5, #fff); border: 1px solid #a7f3d0; border-radius: 10px; font-size: 12px; color: #065f46; line-height: 1.5; }

/* Wallet / cashback panel in the post-load left rail. Appears only
 * when the shipper is signed in + has any cashback ledger activity,
 * and gives them a clear "here's your balance, you can spend it on
 * the insurance below" thread from ledger to redemption. */
.mp-pl-rail-wallet { margin-top: 14px; padding: 14px; border-radius: 12px; border: 1px solid #bae6fd; background: linear-gradient(180deg, #f0f9ff, #fff); }
.mp-pl-rail-wallet .mp-pl-wallet-hd { font-size: 12px; font-weight: 800; color: #0c4a6e; display: flex; align-items: center; gap: 6px; letter-spacing: .3px; text-transform: uppercase; }
.mp-pl-rail-wallet .mp-pl-wallet-hd i { font-size: 14px; color: #0284c7; }
.mp-pl-rail-wallet .mp-pl-wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.mp-pl-rail-wallet .mp-pl-wallet-grid > div { background: #fff; border: 1px solid #e0f2fe; border-radius: 8px; padding: 8px 10px; }
.mp-pl-rail-wallet .mp-pl-wallet-grid .k { font-size: 10px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .6px; display: block; }
.mp-pl-rail-wallet .mp-pl-wallet-grid b { font-size: 16px; font-weight: 800; color: #0c4a6e; display: block; margin-top: 2px; }
.mp-pl-rail-wallet .mp-pl-wallet-use { font-size: 11.5px; color: #0369a1; line-height: 1.5; margin: 0; }
.mp-pl-rail-wallet p { margin-top: 8px; }
.mp-pl-why { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.mp-pl-why li { display: flex; gap: 10px; align-items: flex-start; }
.mp-pl-why i { font-size: 18px; margin-top: 1px; flex-shrink: 0; }
.mp-pl-why b { font-size: 13px; color: var(--mp-ink); display: block; margin-bottom: 1px; }
.mp-pl-why span { font-size: 11.5px; color: var(--mp-ink4); line-height: 1.45; }
.mp-pl-rail-testimonial { margin-top: 18px; padding: 14px; border-top: 1px dashed var(--mp-line); }
.mp-pl-rail-testimonial .q { font-size: 12.5px; font-style: italic; color: var(--mp-ink2); line-height: 1.55; }
.mp-pl-rail-testimonial .a { font-size: 11px; color: var(--mp-ink4); margin-top: 6px; font-weight: 600; }

/* ─── Multi-select chip row (for-transporters + post-load service) ─── */
.mp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mp-chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--mp-line); background: #fff; font-size: 12px; font-weight: 600; color: var(--mp-ink2); cursor: pointer; transition: .15s; user-select: none; }
.mp-chip:hover { border-color: var(--mp-primary); color: var(--mp-primary); }
.mp-chip.active { background: var(--mp-primary); color: #fff; border-color: var(--mp-primary); box-shadow: 0 2px 8px rgba(37,99,235,.25); }
.mp-chip:focus { outline: 2px solid rgba(37,99,235,.35); outline-offset: 2px; }

/* ─── For Transporters page (CMS + form bolt-on) ─── */
/* Shipper cashback band — homepage ribbon promoting the first-3-loads
 * ₹500 bonus. Sits just under the hero so the offer is the first thing
 * a shipper sees below the fold. Mobile stacks vertically; desktop is
 * a 3-col grid: icon · body · CTA. */
.mp-cb-band { padding: 22px 0 8px; }
.mp-cb-card {
  display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center;
  padding: 22px; border-radius: 18px;
  background: linear-gradient(135deg, #fff7e6 0%, #fde4c4 55%, #ffd699 100%);
  border: 1px solid rgba(232, 167, 59, .35);
  box-shadow: 0 6px 22px -14px rgba(148, 97, 12, .35);
}
@media (min-width: 760px) {
  .mp-cb-card { grid-template-columns: 72px 1fr auto; gap: 24px; padding: 26px 28px; }
}
.mp-cb-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.mp-cb-icon i { font-size: 30px; color: #b45309; }
.mp-cb-eyebrow { font-size: 11px; font-weight: 800; color: #b45309; text-transform: uppercase; letter-spacing: 1.1px; margin-bottom: 6px; }
.mp-cb-body h3 { font-size: 20px; font-weight: 800; color: #3a2202; margin-bottom: 6px; letter-spacing: -.015em; line-height: 1.3; }
@media (min-width: 760px) { .mp-cb-body h3 { font-size: 23px; } }
.mp-cb-body p { font-size: 13.5px; color: #6b4a11; line-height: 1.6; margin-bottom: 10px; max-width: 640px; }
.mp-cb-steps { display: flex; gap: 14px; flex-wrap: wrap; }
.mp-cb-step { font-size: 12.5px; font-weight: 700; color: #7a4e05; display: inline-flex; align-items: center; gap: 6px; }
.mp-cb-step i { color: #b45309; }
.mp-cb-cta { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
@media (min-width: 760px) { .mp-cb-cta { align-items: flex-end; } }
.mp-cb-fine { font-size: 11px; color: #7a4e05; font-weight: 600; line-height: 1.4; }
@media (min-width: 760px) { .mp-cb-fine { max-width: 180px; text-align: right; } }

.mp-ft-ref-in { padding: 20px 0 0; }
.mp-ft-ref-in-compact { padding: 14px 0 0; }

/* Form-first layout on /page/for-transporters — lifts the form into
 * the first/second fold. Tightens top padding + shrinks the left rail
 * so the form card starts closer to the hero on mobile. */
.mp-ft-form-top { padding: 28px 0 40px; }
@media (min-width: 640px) { .mp-ft-form-top { padding: 36px 0 52px; } }
@media (max-width: 639px) {
  .mp-ft-form-grid { gap: 18px; }
  .mp-ft-form-left h2 { font-size: 22px; margin: 6px 0 10px; }
  .mp-ft-form-assure { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .mp-ft-form-assure li { font-size: 12.5px; }
  .mp-ft-form-card .mp-pl-grid { grid-template-columns: 1fr; }
  .mp-ft-form-card .mp-pl-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .mp-ft-form-card .mp-pl-actions .mp-btn { width: 100%; justify-content: center; }
  .mp-ft-form-card .mp-pl-assure { text-align: left; font-size: 12px; }
}
.mp-ft-ref-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(180deg, #ecfdf5, #fff); border: 1.5px solid #a7f3d0; border-radius: 14px; padding: 16px 20px; max-width: 840px; margin: 0 auto; }
.mp-ft-ref-ic { width: 44px; height: 44px; border-radius: 12px; background: #059669; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.mp-ft-ref-card .t { font-size: 14px; font-weight: 700; color: #065f46; }
.mp-ft-ref-card .s { font-size: 12.5px; color: #047857; margin-top: 3px; line-height: 1.5; }

.mp-ft-refer { padding: 36px 0; }
.mp-ft-refer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; max-width: 1080px; margin: 0 auto; }
@media (min-width: 960px) { .mp-ft-refer-grid { grid-template-columns: 1fr 1.1fr; gap: 40px; } }
.mp-ft-refer-hd .mp-ft-refer-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 14px; }
.mp-ft-refer-hd h2 { font-size: 26px; font-weight: 900; line-height: 1.25; letter-spacing: -.015em; color: var(--mp-ink); margin: 0 0 10px; }
.mp-ft-refer-hd h2 b { color: #059669; }
.mp-ft-refer-hd p { font-size: 14px; color: var(--mp-ink3); line-height: 1.65; margin: 0; }
.mp-ft-refer-hd code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11.5px; color: var(--mp-primary); font-weight: 700; }
.mp-ft-refer-steps { display: flex; flex-direction: column; gap: 10px; }
.mp-ft-refer-step { display: flex; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--mp-line); border-radius: 14px; box-shadow: var(--mp-shadow-sm); }
.mp-ft-refer-step .n { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(16,185,129,.3); }
.mp-ft-refer-step b { font-size: 14px; color: var(--mp-ink); display: block; margin-bottom: 3px; }
.mp-ft-refer-step p { font-size: 12.5px; color: var(--mp-ink3); line-height: 1.6; margin: 0; }

/* Apply-to-list form — left copy rail + right form card */
.mp-ft-form-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; max-width: 1080px; margin: 0 auto; }
@media (min-width: 960px) { .mp-ft-form-grid { grid-template-columns: 0.9fr 1.1fr; gap: 40px; } }
.mp-ft-form-left h2 { font-size: 28px; font-weight: 900; line-height: 1.25; letter-spacing: -.015em; color: var(--mp-ink); margin: 16px 0 16px; }
.mp-ft-form-assure { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.mp-ft-form-assure li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--mp-ink2); line-height: 1.55; }
.mp-ft-form-assure i { color: #059669; font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.mp-ft-form-card { max-width: none; margin: 0; }

/* ═══════════════════════════════════════════════════════════════
 * /page/about — mission, numbers, timeline, team, press, contact
 * ═══════════════════════════════════════════════════════════════ */
.mp-about-mission { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; max-width: 1120px; margin: 0 auto; }
@media (min-width: 900px) { .mp-about-mission { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
.mp-about-mission-copy h2 { font-size: 26px; font-weight: 900; line-height: 1.2; letter-spacing: -.02em; color: var(--mp-ink); margin: 12px 0 14px; }
@media (min-width: 768px) { .mp-about-mission-copy h2 { font-size: 34px; } }
.mp-about-mission-copy p { font-size: 14.5px; color: var(--mp-ink3); line-height: 1.7; margin-bottom: 12px; }
.mp-about-mission-card { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 22px; border-radius: 18px; background: linear-gradient(135deg, #eef4ff, #fff); border: 1px solid rgba(43,89,212,.18); }
.mp-about-mission-stat { background: #fff; border-radius: 12px; padding: 14px 16px; border: 1px solid var(--mp-line); }
.mp-about-mission-stat b { display: block; font-size: 22px; font-weight: 900; color: var(--mp-primary); letter-spacing: -.01em; }
.mp-about-mission-stat span { display: block; font-size: 11.5px; font-weight: 600; color: var(--mp-ink4); margin-top: 4px; line-height: 1.35; }

.mp-about-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 1100px; margin: 0 auto; }
@media (min-width: 900px) { .mp-about-kpis { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.mp-about-kpi { padding: 18px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--mp-line); text-align: center; box-shadow: var(--mp-shadow-sm); }
.mp-about-kpi i { font-size: 24px; color: var(--mp-primary); }
.mp-about-kpi b { display: block; font-size: 24px; font-weight: 900; color: var(--mp-ink); margin-top: 8px; letter-spacing: -.01em; }
.mp-about-kpi .l { display: block; font-size: 12.5px; font-weight: 700; color: var(--mp-ink3); margin-top: 4px; }
.mp-about-kpi .s { display: block; font-size: 11px; color: var(--mp-ink4); margin-top: 4px; line-height: 1.4; }

.mp-about-timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; position: relative; }
.mp-about-timeline::before { content: ""; position: absolute; left: 16px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--mp-primary), rgba(43,89,212,.12)); }
@media (min-width: 720px) { .mp-about-timeline::before { left: 120px; } }
.mp-about-timeline li { position: relative; display: grid; grid-template-columns: 1fr; gap: 6px; padding: 0 0 22px 42px; }
@media (min-width: 720px) { .mp-about-timeline li { grid-template-columns: 120px 1fr; gap: 18px; padding-left: 0; } }
.mp-about-timeline li::before { content: ""; position: absolute; left: 11px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--mp-primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--mp-primary); }
@media (min-width: 720px) { .mp-about-timeline li::before { left: 115px; } }
.mp-about-timeline .y { font-size: 12px; font-weight: 800; color: var(--mp-primary); letter-spacing: .5px; text-transform: uppercase; }
@media (min-width: 720px) { .mp-about-timeline .y { text-align: right; padding-right: 28px; } }
.mp-about-timeline h3 { font-size: 16px; font-weight: 800; color: var(--mp-ink); margin-bottom: 4px; letter-spacing: -.01em; }
.mp-about-timeline p { font-size: 13px; color: var(--mp-ink4); line-height: 1.6; }


.mp-about-press { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 1000px; margin: 0 auto; }
@media (min-width: 640px) { .mp-about-press { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .mp-about-press { grid-template-columns: repeat(6, 1fr); } }
.mp-about-press-logo { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--mp-line); color: var(--mp-ink3); font-size: 13px; font-weight: 700; }
.mp-about-press-logo i { font-size: 18px; color: var(--mp-primary); }

.mp-about-contact { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 1080px; margin: 0 auto; align-items: center; }
@media (min-width: 900px) { .mp-about-contact { grid-template-columns: 0.9fr 1.1fr; gap: 40px; } }
.mp-about-contact h2 { font-size: 24px; font-weight: 900; color: var(--mp-ink); letter-spacing: -.015em; margin-bottom: 8px; }
.mp-about-contact p { font-size: 14px; color: var(--mp-ink4); line-height: 1.6; }
.mp-about-contact-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 520px) { .mp-about-contact-grid { grid-template-columns: repeat(3, 1fr); } }
.mp-about-contact-grid a { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; background: #fff; border: 1px solid var(--mp-line); border-radius: 14px; color: var(--mp-ink); transition: border-color .14s, box-shadow .14s; }
.mp-about-contact-grid a:hover { border-color: var(--mp-primary); box-shadow: 0 6px 16px -10px rgba(43,89,212,.4); }
.mp-about-contact-grid i { font-size: 22px; color: var(--mp-primary); margin-bottom: 4px; }
.mp-about-contact-grid b { font-size: 14px; font-weight: 800; color: var(--mp-ink); letter-spacing: -.005em; }
.mp-about-contact-grid span { font-size: 11.5px; color: var(--mp-ink4); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
 * FOOTER
 * ═══════════════════════════════════════════════════════════════ */
.mp-footer { background: #0b1220; color: rgba(255,255,255,.55); padding: 40px 0 22px; margin-top: 18px; }
.mp-footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; margin-bottom: 26px; }
@media (min-width: 640px) { .mp-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 30px; } }
.mp-footer h4 { color: #fff; font-size: 11px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1.1px; }
.mp-footer a { display: block; padding: 4px 0; font-size: 13px; color: rgba(255,255,255,.55); }
.mp-footer a:hover { color: #fff; }
.mp-footer-about p { font-size: 13px; color: rgba(255,255,255,.55); max-width: 340px; margin-top: 10px; line-height: 1.65; }
.mp-footer-social { margin-top: 14px; display: flex; gap: 8px; }
.mp-footer-social a { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.06); display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.65); padding: 0; transition: .12s; }
.mp-footer-social a:hover { background: var(--mp-primary); color: #fff; }
.mp-footer-bottom { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 640px) { .mp-footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.mp-footer-bottom a { display: inline; color: rgba(255,255,255,.55); margin: 0 4px; }

/* ═══════════════════════════════════════════════════════════════
 * CMS BLOCKS
 * ═══════════════════════════════════════════════════════════════ */
.mp-cms-hero { text-align: center; max-width: 780px; margin: 0 auto; }
.mp-cms-hero h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.015em; color: var(--mp-ink); }
@media (min-width: 768px) { .mp-cms-hero h2 { font-size: 28px; } }
.mp-cms-hero p { font-size: 14px; color: var(--mp-ink4); line-height: 1.7; margin-bottom: 14px; }
.mp-cms-hero-icon { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, rgba(43,89,212,.12), rgba(232,167,59,.16)); display: inline-flex; align-items: center; justify-content: center; color: var(--mp-primary); margin-bottom: 14px; }
.mp-cms-hero-icon i { font-size: 26px; }

/* CALLOUT — a one-line highlight card, used for launch-offer / promo
 * copy. Mobile: vertical stack; desktop: icon + body side-by-side. */
.mp-cms-callout { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 920px; margin: 0 auto; padding: 22px 24px; border-radius: 16px; background: linear-gradient(135deg, rgba(43,89,212,.08), rgba(232,167,59,.1)); border: 1px solid rgba(43,89,212,.16); }
@media (min-width: 640px) { .mp-cms-callout { grid-template-columns: 64px 1fr; align-items: center; } }
.mp-cms-callout-icon { width: 56px; height: 56px; border-radius: 14px; background: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.mp-cms-callout-icon i { font-size: 26px; color: var(--mp-primary); }
.mp-cms-callout h3 { font-size: 18px; font-weight: 800; color: var(--mp-ink); margin-bottom: 6px; letter-spacing: -.01em; }
.mp-cms-callout p, .mp-cms-callout .mp-cms-body { font-size: 13.5px; color: var(--mp-ink4); line-height: 1.65; }
.mp-cms-text { max-width: 820px; margin: 0 auto; padding: 0 4px; }
/* ⚠ TITLES CENTRED, BODY COPY LEFT (founder, 2026-08-18: "align card and paragraph titles in
   center"). `.mp-cms-hero` was already centred while `.mp-cms-text` was not, so the About page
   alternated between centred and left-aligned section headings as you scrolled — that mismatch
   is what read as broken.
   ⚠ The BODY deliberately stays left-aligned. Centring multi-line prose ragged-edges both sides
   and measurably hurts readability at this 820px measure; the request was about titles, and
   centring the paragraphs too would have been a different — worse — change. */
.mp-cms-text > h2, .mp-cms-text > h3, .mp-cms-text > .mp-cms-sub { text-align: center; }
/* Card titles + their sub-lines, so a grid of cards reads as one row rather than a ragged stack. */
.mp-cms-feature h3, .mp-cms-feature h4, .mp-cms-feature > p { text-align: center; }
.mp-cms-feature { text-align: center; }
.mp-cms-feature-icon { margin-left: auto; margin-right: auto; }
.mp-cms-text h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; letter-spacing: -.015em; color: var(--mp-ink); }
@media (min-width: 768px) { .mp-cms-text h2 { font-size: 24px; } }
.mp-cms-sub { font-size: 14px; color: var(--mp-ink4); margin-bottom: 16px; }
.mp-cms-body { font-size: 14px; color: var(--mp-ink2); line-height: 1.8; }
.mp-cms-body p { margin: 0 0 12px; }
.mp-cms-body ul { margin: 0 0 12px 22px; }
.mp-cms-body ul li { margin: 5px 0; }
.mp-cms-body strong { color: var(--mp-ink); font-weight: 700; }

.mp-cms-feature-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .mp-cms-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mp-cms-feature-grid { grid-template-columns: repeat(3, 1fr); } }
.mp-cms-feature { background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 20px; transition: all .12s; }
.mp-cms-feature:hover { border-color: var(--mp-line2); box-shadow: var(--mp-shadow-sm); }
.mp-cms-feature-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--mp-primary-soft); color: var(--mp-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 10px; }
.mp-cms-feature:nth-child(2n) .mp-cms-feature-icon { background: var(--mp-green-soft); color: var(--mp-green-ink); }
.mp-cms-feature:nth-child(3n) .mp-cms-feature-icon { background: var(--mp-accent-soft); color: var(--mp-accent-dark); }
.mp-cms-feature:nth-child(4n) .mp-cms-feature-icon { background: #f3e8ff; color: #7c3aed; }
.mp-cms-feature h3 { font-size: 14px; font-weight: 700; margin-bottom: 5px; color: var(--mp-ink); }
.mp-cms-feature p { font-size: 12px; color: var(--mp-ink4); line-height: 1.6; }

.mp-cms-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .mp-cms-stats { grid-template-columns: repeat(4, 1fr); } }
.mp-cms-stat { background: var(--mp-primary); color: #fff; border-radius: var(--mp-radius); padding: 20px 14px; text-align: center; }
.mp-cms-stat b { display: block; font-size: 22px; font-weight: 700; line-height: 1.05; letter-spacing: -.015em; }
.mp-cms-stat span { display: block; font-size: 10px; font-weight: 600; margin-top: 5px; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.8); }

.mp-cms-contact-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .mp-cms-contact-grid { grid-template-columns: repeat(3, 1fr); } }
.mp-cms-contact { background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 18px; display: flex; gap: 12px; align-items: flex-start; }
.mp-cms-contact-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--mp-primary-soft); color: var(--mp-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.mp-cms-contact h3 { font-size: 13px; font-weight: 700; margin-bottom: 3px; color: var(--mp-ink); }
.mp-cms-contact p { font-size: 12px; color: var(--mp-ink4); line-height: 1.5; }

.mp-cms-team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .mp-cms-team-grid { grid-template-columns: repeat(4, 1fr); } }
.mp-cms-team { background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 16px; text-align: center; }
.mp-cms-team-avatar { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 10px; background: var(--mp-primary-soft); color: var(--mp-primary); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mp-cms-team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mp-cms-team h3 { font-size: 13px; font-weight: 700; margin-bottom: 3px; color: var(--mp-ink); }
.mp-cms-team .role { font-size: 11px; color: var(--mp-ink4); }

/* ═══════════════════════════════════════════════════════════════
 * DASHBOARD
 * ═══════════════════════════════════════════════════════════════ */
.mp-me-hero {
  padding: 22px 0 50px; color: #fff;
  background: #0f172a;
  background-image:
    radial-gradient(ellipse 700px 260px at 90% 0%, rgba(59,130,246,.22), transparent 60%),
    linear-gradient(135deg, #0b1220 0%, #131f3d 100%);
  position: relative; overflow: hidden;
}
.mp-me-hero .eyebrow { font-size: 11px; font-weight: 600; color: var(--mp-accent); letter-spacing: 1.2px; text-transform: uppercase; }
.mp-me-hero h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
@media (min-width: 768px) { .mp-me-hero { padding: 32px 0 72px; } .mp-me-hero h1 { font-size: 28px; } }
.mp-me-hero p { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 4px; line-height: 1.5; }
.mp-me-hero-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.mp-me-layout { display: grid; grid-template-columns: 1fr; gap: 18px; padding-bottom: 36px; margin-top: -28px; position: relative; z-index: 2; }
@media (min-width: 900px) { .mp-me-layout { grid-template-columns: 220px 1fr; gap: 22px; margin-top: -36px; } }
.mp-me-nav {
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius);
  padding: 6px; display: flex; gap: 4px; overflow-x: auto;
  box-shadow: var(--mp-shadow-sm); scrollbar-width: none;
}
.mp-me-nav::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .mp-me-nav { flex-direction: column; padding: 10px; position: sticky; top: calc(var(--mp-header-h) + 14px); align-self: start; overflow-x: visible; } }
.mp-me-nav a { padding: 8px 12px; font-size: 13px; font-weight: 500; color: var(--mp-ink2); border-radius: var(--mp-radius-sm); white-space: nowrap; display: flex; align-items: center; gap: 8px; transition: all .12s; }
@media (min-width: 900px) { .mp-me-nav a { padding: 9px 14px; gap: 10px; } }
.mp-me-nav a:hover { background: var(--mp-surf); color: var(--mp-primary); }
.mp-me-nav a.active { background: var(--mp-primary); color: #fff; }
.mp-me-nav a.active i { color: #fff; }
.mp-me-nav a i { font-size: 15px; width: 18px; color: var(--mp-mist); }
.mp-me-nav .divide { height: 1px; background: var(--mp-line); margin: 4px 6px; }

/* Dashboard metrics */
.mp-dash-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 700px) { .mp-dash-metrics { grid-template-columns: repeat(4, 1fr); } }
.mp-dash-metric {
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius);
  padding: 14px; display: flex; flex-direction: column; gap: 5px; position: relative;
}
@media (min-width: 700px) { .mp-dash-metric { padding: 16px; gap: 6px; } }
.mp-dash-metric .lbl { font-size: 10px; font-weight: 700; color: var(--mp-ink4); text-transform: uppercase; letter-spacing: .5px; padding-right: 40px; }
.mp-dash-metric .val { font-size: 22px; font-weight: 700; color: var(--mp-ink); line-height: 1; letter-spacing: -.02em; }
@media (min-width: 700px) { .mp-dash-metric .val { font-size: 24px; } }
.mp-dash-metric .trend { font-size: 11px; font-weight: 500; color: var(--mp-green-ink); display: inline-flex; align-items: center; gap: 3px; }
.mp-dash-metric .trend.down { color: var(--mp-red); }
.mp-dash-metric .icon {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--mp-primary-soft); color: var(--mp-primary);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.mp-dash-metric:nth-child(2) .icon { background: var(--mp-accent-soft); color: var(--mp-accent-dark); }
.mp-dash-metric:nth-child(3) .icon { background: var(--mp-green-soft); color: var(--mp-green-ink); }
.mp-dash-metric:nth-child(4) .icon { background: #f3e8ff; color: #7c3aed; }

.mp-dash-panel { background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 18px; }
.mp-dash-panel-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.mp-dash-panel-hd h3 { font-size: 14px; font-weight: 700; letter-spacing: -.005em; color: var(--mp-ink); }
.mp-dash-panel-hd .hint { font-size: 12px; color: var(--mp-ink4); font-weight: 500; }

.mp-dash-quick { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
@media (min-width: 600px) { .mp-dash-quick { grid-template-columns: repeat(3, 1fr); } }
.mp-dash-qa {
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius);
  padding: 14px; display: flex; gap: 11px; align-items: flex-start; transition: all .14s var(--mp-ease-quart);
}
.mp-dash-qa:hover { border-color: var(--mp-primary); box-shadow: var(--mp-shadow-sm); transform: translateY(-2px); }
.mp-dash-qa i { width: 36px; height: 36px; border-radius: 9px; background: var(--mp-primary-soft); color: var(--mp-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.mp-dash-qa:nth-child(2) i { background: var(--mp-accent-soft); color: var(--mp-accent-dark); }
.mp-dash-qa:nth-child(3) i { background: var(--mp-green-soft); color: var(--mp-green-ink); }
.mp-dash-qa b { display: block; font-size: 13px; font-weight: 600; color: var(--mp-ink); margin-bottom: 2px; }
.mp-dash-qa span { display: block; font-size: 12px; color: var(--mp-ink4); line-height: 1.45; }

/* Load request cards */
.mp-lr-list { display: flex; flex-direction: column; gap: 8px; }
.mp-lr-card { border: 1px solid var(--mp-line); border-radius: var(--mp-radius-sm); background: #fff; transition: all .12s; overflow: hidden; }
.mp-lr-card:hover { border-color: var(--mp-line2); box-shadow: var(--mp-shadow-xs); }
/* The top portion of the card is a link to the detail page. Keep it display:block so the
   link surface covers header + route + meta — the Quotes block sits outside. */
.mp-lr-card-link { display: block; padding: 14px 16px; text-decoration: none; color: inherit; }
.mp-lr-card-link:hover { color: inherit; }
.mp-lr-card-link:hover .mp-lr-open { opacity: 1; transform: translateX(0); }
.mp-lr-card-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.mp-lr-card-hd .num { font-size: 11px; font-weight: 600; color: var(--mp-ink4); letter-spacing: .3px; }
.mp-lr-status { padding: 2px 8px; font-size: 10px; font-weight: 700; border-radius: 999px; letter-spacing: .4px; text-transform: uppercase; }
.mp-lr-status.open { background: var(--mp-primary-soft); color: var(--mp-primary); }
.mp-lr-status.matched { background: var(--mp-green-soft); color: var(--mp-green-ink); }
.mp-lr-status.closed { background: var(--mp-surf); color: var(--mp-ink4); }
.mp-lr-status.won { background: var(--mp-green-soft); color: var(--mp-green-ink); }
.mp-lr-open { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--mp-primary); letter-spacing: .2px; display: inline-flex; align-items: center; gap: 4px; opacity: .6; transform: translateX(-4px); transition: all .15s var(--mp-ease, ease); }
.mp-lr-route { font-size: 14px; font-weight: 700; color: var(--mp-ink); display: flex; gap: 8px; align-items: center; }
.mp-lr-route i { color: var(--mp-primary); }
.mp-lr-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--mp-ink4); margin-top: 6px; font-weight: 500; }
/* Inline quotes block kept edge-to-edge with the link region — padding comes from
   the card padding so the quotes line up visually. */
.mp-lr-card > .mp-lr-quotes { margin: 0 16px 14px; padding-top: 14px; border-top: 1px dashed var(--mp-line); }

/* ─── Load Request detail page (/account/loads/:id) ─── */
.mp-lrd-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) { .mp-lrd-grid { grid-template-columns: 1fr; } }
.mp-lrd-summary { background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 18px; align-self: start; position: sticky; top: 80px; }
.mp-lrd-summary h3 { font-size: 13px; font-weight: 700; color: var(--mp-ink); margin: 0 0 12px; display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--mp-line); }
.mp-lrd-summary h3 i { color: var(--mp-primary); }
.mp-lrd-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 7px 0; font-size: 12.5px; border-bottom: 1px dashed var(--mp-line); }
.mp-lrd-row:last-child { border-bottom: 0; }
.mp-lrd-row .k { color: var(--mp-ink4); font-weight: 600; text-transform: uppercase; font-size: 10px; letter-spacing: .4px; padding-top: 2px; }
.mp-lrd-row .v { color: var(--mp-ink); font-weight: 500; word-break: break-word; }
.mp-lrd-row .muted { color: var(--mp-ink4); }
.mp-lrd-main { background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 18px; }
.mp-lrd-quotes-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 12px; padding-top: 4px; }
.mp-lrd-quotes-hd h3 { font-size: 14px; font-weight: 700; color: var(--mp-ink); margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.mp-lrd-quotes-hd h3 i { color: var(--mp-primary); }
.mp-lrd-won { display: flex; gap: 14px; align-items: flex-start; background: var(--mp-green-soft); border: 1px solid var(--mp-green-soft); color: var(--mp-green-ink); border-radius: var(--mp-radius); padding: 14px 16px; margin-bottom: 14px; }
.mp-lrd-won i { font-size: 22px; color: var(--mp-green-ink); margin-top: 2px; }
.mp-lrd-won h4 { margin: 0 0 4px; font-size: 13px; font-weight: 800; color: var(--mp-green-ink); }
.mp-lrd-won p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--mp-green-ink); }

[data-theme="dark"] .mp-dash-panel,
[data-theme="dark"] .mp-lr-card,
[data-theme="dark"] .mp-lrd-summary,
[data-theme="dark"] .mp-lrd-main { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .mp-lr-card-link { color: inherit; }

/* Profile completeness ring */
.mp-completeness {
  display: flex; gap: 18px; align-items: center; padding: 14px 16px;
  background: var(--mp-surf); border-radius: var(--mp-radius); margin-bottom: 16px;
}
.mp-ring { width: 64px; height: 64px; flex-shrink: 0; position: relative; }
.mp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mp-ring circle { fill: none; stroke-width: 6; }
.mp-ring .track { stroke: var(--mp-line); }
.mp-ring .fill { stroke: var(--mp-primary); stroke-linecap: round; transition: stroke-dashoffset .5s var(--mp-ease); }
.mp-ring .pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--mp-ink); }
.mp-completeness-copy b { display: block; font-size: 14px; font-weight: 700; color: var(--mp-ink); }
.mp-completeness-copy span { display: block; font-size: 12px; color: var(--mp-ink4); margin-top: 2px; }

/* Fieldset group */
.mp-fieldset {
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 18px;
  margin-bottom: 14px;
}
.mp-fieldset legend { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--mp-ink); margin-bottom: 14px; padding: 0; }
.mp-fieldset legend i { color: var(--mp-primary); font-size: 15px; }

/* ═══════════════════════════════════════════════════════════════
 * LOADING + EMPTY
 * ═══════════════════════════════════════════════════════════════ */
.mp-loading { padding: 50px 20px; text-align: center; color: var(--mp-mist); font-size: 13px; }
.mp-loading i { display: block; font-size: 28px; margin-bottom: 10px; animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* Boot loader is now fully self-contained (inline styles + inline keyframes)
 * inside #mpRoot in index.html, so it can't be broken by a stale SW CSS cache
 * and its centering can't leak onto the rendered route. No .mp-boot* CSS here. */
.mp-empty { text-align: center; padding: 40px 20px; color: var(--mp-ink4); font-size: 13px; }
.mp-empty i { display: block; font-size: 38px; color: var(--mp-mist); margin-bottom: 12px; }
.mp-empty a { color: var(--mp-primary); font-weight: 600; }

/* Install prompt */
.mp-install-prompt {
  position: fixed; bottom: calc(var(--mp-bottom-h) + 12px); left: 12px; right: 12px; max-width: 440px; margin: 0 auto;
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius);
  padding: 12px 14px; box-shadow: var(--mp-shadow-lg); z-index: 55;
  display: flex; align-items: center; gap: 10px;
  animation: installIn .28s var(--mp-ease-quart);
}
@keyframes installIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body:not(.has-bottom-nav) .mp-install-prompt { bottom: 12px; }
@media (min-width: 860px) { .mp-install-prompt { bottom: 12px; } }
.mp-install-prompt .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--mp-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.mp-install-prompt .t { flex: 1; min-width: 0; }
.mp-install-prompt .t b { display: block; font-size: 13px; font-weight: 700; color: var(--mp-ink); }
.mp-install-prompt .t span { display: block; font-size: 11px; color: var(--mp-ink4); }

/* ═══════════════════════════════════════════════════════════════
 * DESKTOP BREAKPOINT
 * ═══════════════════════════════════════════════════════════════ */
@media (min-width: 860px) {
  .mp-nav { display: flex; }
  .mp-auth { display: flex; }
  .mp-hamburger { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
 * Partner-detail extra bottom padding — the last action bar was
 * getting covered by the bottom nav on iOS + Android. Give pages
 * 110px of room above the bottom-nav so the sticky-action card
 * never sits under a button.
 * ═══════════════════════════════════════════════════════════════ */
body.has-bottom-nav main { padding-bottom: 24px; }
body.has-bottom-nav .mp-profile-side,
body.has-bottom-nav .mp-profile-hero-actions,
body.has-bottom-nav .mp-section:last-child { padding-bottom: env(safe-area-inset-bottom, 0px); }
body.has-bottom-nav main > section:last-child { margin-bottom: 16px; }

/* ═══════════════════════════════════════════════════════════════
 * Post-load "Thanks" screen — bold green tick with a draw-in
 * animation + short intro copy + two primary actions.
 * ═══════════════════════════════════════════════════════════════ */
.mp-postload-thanks { padding: 32px 0 48px; background: linear-gradient(180deg, #ecfdf5 0%, #fff 60%); min-height: 60vh; }
.mp-thanks-card { background: #fff; border: 1px solid #d1fae5; border-radius: 22px; padding: 36px 24px; max-width: 540px; margin: 0 auto; text-align: center; box-shadow: 0 16px 40px rgba(16,185,129,.16); }
.mp-thanks-tick { width: 84px; height: 84px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #d1fae5; animation: mpThanksPop .45s cubic-bezier(.2,1.2,.3,1); }
.mp-thanks-tick svg { overflow: visible; }
.mp-thanks-tick-ring { stroke-dasharray: 202; stroke-dashoffset: 202; animation: mpTickRing .7s ease-out forwards; }
.mp-thanks-tick-check { stroke-dasharray: 80; stroke-dashoffset: 80; animation: mpTickCheck .4s .5s ease-out forwards; }
@keyframes mpThanksPop { 0% { transform: scale(.6); opacity: 0 } 60% { transform: scale(1.08); opacity: 1 } 100% { transform: scale(1); } }
@keyframes mpTickRing { to { stroke-dashoffset: 0; } }
@keyframes mpTickCheck { to { stroke-dashoffset: 0; } }
.mp-thanks-card h1 { font-size: 22px; font-weight: 900; margin: 8px 0 6px; color: var(--mp-ink); letter-spacing: -.01em; }
.mp-thanks-card p { font-size: 14px; line-height: 1.55; color: var(--mp-slate); max-width: 440px; margin: 0 auto 22px; }
.mp-thanks-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.mp-thanks-tips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding-top: 18px; border-top: 1px dashed var(--mp-line); font-size: 12px; color: var(--mp-slate); }
.mp-thanks-tips > div { display: inline-flex; gap: 5px; align-items: center; }
.mp-thanks-tips i { color: var(--mp-primary); }

@keyframes mpSpin { to { transform: rotate(360deg); } }
.mp-spin { display: inline-block; animation: mpSpin .8s linear infinite; }

/* ═══════════════════════════════════════════════════════════════
 * "Your recent loads" strip on the home page — quick tap to see
 * the status of what you've already posted, without digging into
 * the account area.
 * ═══════════════════════════════════════════════════════════════ */
.mp-recent-loads-section { padding: 18px 0 4px; }
.mp-recent-loads-section .mp-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.mp-recent-loads-section .mp-section-head h2 { font-size: 15px; font-weight: 800; margin: 0; color: var(--mp-ink); letter-spacing: -.005em; }
.mp-recent-loads-section .mp-section-head h2 i { color: var(--mp-primary); margin-right: 6px; }
.mp-section-link { font-size: 12px; font-weight: 700; color: var(--mp-primary); text-decoration: none; }
.mp-recent-loads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.mp-rl-card { background: #fff; border: 1px solid var(--mp-line); border-radius: 14px; padding: 14px 14px 10px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.mp-rl-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,.08); border-color: #bfdbfe; }
.mp-rl-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mp-rl-route { font-size: 14px; color: var(--mp-ink); }
.mp-rl-route i { color: var(--mp-mist); margin: 0 4px; }
.mp-rl-badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .3px; white-space: nowrap; }
.mp-rl-badge.matched { background: #dbeafe; color: #1e40af; }
.mp-rl-badge.open { background: #fef3c7; color: #92400e; }
.mp-rl-badge.expired { background: #e5e7eb; color: #374151; }
.mp-rl-badge.won { background: #d1fae5; color: #065f46; }
.mp-rl-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--mp-slate); }
.mp-rl-meta i { color: var(--mp-mist); }
.mp-rl-ref { margin-left: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--mp-mist); }
.mp-rl-foot { font-size: 11px; color: var(--mp-primary); font-weight: 600; display: flex; justify-content: space-between; align-items: center; padding-top: 6px; border-top: 1px dashed var(--mp-line); }

/* ═══════════════════════════════════════════════════════════════
 * Shimmer loading state — fast native-app-like perceived perf.
 * Any page rendering data can set innerHTML to
 *   `<div class="mp-shimmer"></div>` (repeat for bars).
 * ═══════════════════════════════════════════════════════════════ */
.mp-shimmer { background: linear-gradient(90deg, #eef2f7 25%, #f7f9fc 50%, #eef2f7 75%); background-size: 200% 100%; animation: mpShimmer 1.3s linear infinite; border-radius: 10px; min-height: 14px; }
@keyframes mpShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ═══════════════════════════════════════════════════════════════
 * Quotes panel inside "My Load Requests" — renders carriers' quotes
 * under each load card so the shipper can compare + book the best.
 * ═══════════════════════════════════════════════════════════════ */
.mp-lr-quotes { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--mp-line); }
.mp-lr-quotes-loading { font-size: 12px; color: var(--mp-slate); display: inline-flex; align-items: center; gap: 6px; }
.mp-lr-quotes-empty { font-size: 12.5px; color: var(--mp-slate); background: var(--mp-surf); padding: 10px 12px; border-radius: 10px; display: flex; align-items: center; gap: 8px; }
.mp-lr-quotes-empty i { color: var(--mp-mist); }
.mp-lr-quotes-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 10px; flex-wrap: wrap; }
.mp-lr-quotes-hd h4 { font-size: 13px; font-weight: 800; margin: 0; color: var(--mp-ink); }
.mp-lr-quotes-sub { font-size: 11px; color: var(--mp-slate); }
.mp-lr-status.won { background: #d1fae5; color: #065f46; }
.mp-quote { background: #fff; border: 1px solid var(--mp-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; transition: border-color .15s, box-shadow .15s; }
.mp-quote.best { border-color: #bfdbfe; box-shadow: 0 4px 14px rgba(37,99,235,.08); }
.mp-quote.selected { border-color: #10b981; background: linear-gradient(180deg, #ecfdf5, #fff); }
.mp-quote-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mp-quote-biz { font-size: 14px; font-weight: 700; color: var(--mp-ink); }
.mp-quote-amt { font-size: 18px; font-weight: 900; color: var(--mp-ink); letter-spacing: -.01em; }
.mp-quote-notes { font-size: 12px; color: var(--mp-slate); margin-top: 6px; }
.mp-quote-actions { margin-top: 10px; display: flex; gap: 6px; }
.mp-badge-won { display: inline-block; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #d1fae5; color: #065f46; letter-spacing: .3px; margin-left: 6px; }
.mp-badge-best { display: inline-block; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #dbeafe; color: #1e40af; letter-spacing: .3px; margin-left: 6px; }

/* ═══════════════════════════════════════════════════════════════
 * Mobile polish — Phase 3 (feature/marketplace-revamp 2026-04-21)
 *
 * Fixes the overlap between the partner-detail sticky action bar
 * (Call / WhatsApp / Enquire) and the bottom nav on iOS + Android,
 * adds generous safe-area padding on long pages, and tightens up
 * cramped layouts on small phones (<380px).
 * ═══════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  /* Stacking — sticky CTAs sit above the bottom nav, never under. */
  .mp-bottom-nav { z-index: 45; }
  .mp-profile-stickybar { z-index: 60; }

  /* Any sticky CTA bar on any page should clear the bottom nav + safe-area. */
  .mp-profile-stickybar,
  .mp-sticky-cta,
  .mp-float-bar {
    bottom: calc(var(--mp-bottom-h) + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Long pages need: bottom-nav (60) + sticky-bar (~56) + buffer = clear space. */
  body.has-bottom-nav main {
    padding-bottom: calc(var(--mp-bottom-h) + 76px + env(safe-area-inset-bottom, 0px));
  }

  /* Profile detail page needs EXTRA room so reviews/awards aren't clipped. */
  body.has-bottom-nav .mp-profile-layout {
    padding: 24px 0 calc(var(--mp-bottom-h) + 90px + env(safe-area-inset-bottom, 0px));
  }

  /* Account / loads / enquiries trailing sections. */
  body.has-bottom-nav .mp-section:last-child,
  body.has-bottom-nav .mp-account-main:last-child {
    padding-bottom: 24px;
  }

  /* Touch targets — 44px minimum so Call/WhatsApp/Enquire never miss-taps. */
  .mp-profile-stickybar .mp-btn { min-height: 44px; }

  /* Enquiry inline card CTA fills width on mobile. */
  .mp-profile-side .mp-btn { width: 100%; }

  /* Search bar + filters stack tidily on phones. */
  .mp-search-filters { flex-wrap: wrap; gap: 6px; }
  .mp-search-filters select,
  .mp-search-filters input { font-size: 13px; min-height: 40px; }

  /* Pricing cards breathe a bit more. */
  .mp-plan { min-height: auto; }
}

/* Very small phones (<380px) — tighten hero typography + padding. */
@media (max-width: 380px) {
  .mp-hero h1 { font-size: 20px; line-height: 1.25; }
  .mp-hero-form, .mp-hero-form-wrap { padding: 14px !important; }
  .mp-profile-stickybar .mp-btn { padding: 9px 4px; font-size: 11.5px; }
  .mp-profile-stickybar .mp-btn i { font-size: 14px; }
  /* Tighter card padding */
  .mp-profile-card { padding: 14px; }
  .mp-service-tile { padding: 10px; }
}

/* ═══════════════════════════════════════════════════════════════
 * iOS safe-area root — pads the bottom nav itself so it doesn't
 * sit under the home-indicator on newer iPhones.
 * ═══════════════════════════════════════════════════════════════ */
.mp-bottom-nav { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* ═══════════════════════════════════════════════════════════════
 * Shipper discovery (marketplace v2)
 * Home strip · /trips search · /trip/:id detail
 * ═══════════════════════════════════════════════════════════════ */

/* Home "Available trips" strip — sits right under the hero. */
.mp-trip-strip { padding: 30px 0 10px; }
.mp-trip-strip-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.mp-trip-strip-hd .eyebrow { display: inline-block; font-size: 11px; font-weight: 800; color: var(--mp-primary); letter-spacing: 1.1px; text-transform: uppercase; margin-bottom: 4px; }
.mp-trip-strip-hd h2 { font-size: 22px; font-weight: 900; letter-spacing: -.015em; color: var(--mp-ink); margin-bottom: 6px; }
@media (min-width: 768px) { .mp-trip-strip-hd h2 { font-size: 26px; } }
.mp-trip-strip-hd p { font-size: 13.5px; color: var(--mp-ink4); max-width: 680px; line-height: 1.55; }
.mp-trip-strip-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.mp-trip-strip-tabs .mp-chip { cursor: pointer; }
.mp-trip-strip-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .mp-trip-strip-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .mp-trip-strip-grid { grid-template-columns: repeat(3, 1fr); } }

/* Shipper-facing trip card — reused on home strip + /trips grid. */
.mp-trip-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .mp-trip-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .mp-trip-grid { grid-template-columns: repeat(3, 1fr); } }

.mp-trip-ship-card { display: block; padding: 16px 18px; background: #fff; border: 1px solid var(--mp-line); border-radius: 14px; color: var(--mp-ink); transition: border-color .14s, box-shadow .14s, transform .14s; }
.mp-trip-ship-card:hover { border-color: var(--mp-primary); box-shadow: 0 10px 24px -16px rgba(43,89,212,.3); transform: translateY(-1px); }
.mp-trip-ship-hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.mp-trip-ship-partner { font-size: 13.5px; font-weight: 800; letter-spacing: -.005em; }
.mp-trip-ship-rating { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #b45309; font-weight: 700; }
.mp-trip-ship-rating i { color: #f59e0b; font-size: 12px; }
.mp-trip-ship-route { font-size: 17px; font-weight: 900; letter-spacing: -.01em; color: var(--mp-ink); margin-bottom: 6px; }
.mp-trip-ship-route i { color: var(--mp-primary); margin: 0 6px; font-size: 14px; }
.mp-trip-ship-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--mp-ink4); margin-bottom: 10px; }
.mp-trip-ship-meta span { display: inline-flex; align-items: center; gap: 4px; }
.mp-trip-ship-meta i { color: var(--mp-mist); }
.mp-trip-ship-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--mp-line); }
.mp-trip-ship-price { font-size: 15px; font-weight: 900; color: var(--mp-ink); letter-spacing: -.01em; }
.mp-trip-ship-cta { font-size: 12px; font-weight: 700; color: var(--mp-primary); display: inline-flex; align-items: center; gap: 4px; }
.mp-trip-ship-cta i { transition: transform .14s; }
.mp-trip-ship-card:hover .mp-trip-ship-cta i { transform: translateX(2px); }

/* /trips search filter row */
.mp-trip-filter { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 18px; background: #fff; border: 1px solid var(--mp-line); border-radius: 12px; align-items: end; }
@media (min-width: 768px) { .mp-trip-filter { grid-template-columns: repeat(4, 1fr) auto; } }
.mp-trip-filter .mp-field-check { grid-column: 1 / -1; }
@media (min-width: 768px) { .mp-trip-filter .mp-field-check { grid-column: auto; } }
.mp-trip-filter button[type=submit] { height: 42px; white-space: nowrap; }

/* /trips: sidebar-filter layout — narrow rail on the left, result
 * grid on the right. Mobile collapses to stacked, filter card first. */
.mp-trip-layout { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) { .mp-trip-layout { grid-template-columns: 280px 1fr; gap: 24px; } }
.mp-trip-side-card { background: #fff; border: 1px solid var(--mp-line); border-radius: 14px; padding: 16px; box-shadow: var(--mp-shadow-sm); }
@media (min-width: 900px) { .mp-trip-side-card { position: sticky; top: 84px; } }
.mp-trip-side-hd { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--mp-ink); letter-spacing: .2px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--mp-line); }
.mp-trip-side-hd i { color: var(--mp-primary); font-size: 14px; }
.mp-trip-side-reset { margin-left: auto; background: transparent; border: 0; color: var(--mp-primary); font-size: 11px; font-weight: 700; cursor: pointer; }
.mp-trip-side-reset:hover { text-decoration: underline; }
.mp-trip-side-form { display: grid; gap: 12px; }
.mp-trip-side-group { display: grid; gap: 6px; padding: 6px 0; border-top: 1px dashed var(--mp-line); border-bottom: 1px dashed var(--mp-line); margin: 2px 0; }
.mp-trip-side-lbl { font-size: 11px; font-weight: 800; color: var(--mp-ink3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.mp-trip-side-radio { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mp-ink2); cursor: pointer; padding: 3px 0; }
.mp-trip-side-radio input { accent-color: var(--mp-primary); }
.mp-trip-side-check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--mp-ink2); cursor: pointer; padding: 6px 0; }
.mp-trip-side-check input { accent-color: var(--mp-primary); }
.mp-trip-side-note { margin-top: 14px; padding: 12px; background: linear-gradient(135deg,#eef2ff,#fff); border-radius: 10px; font-size: 12px; color: var(--mp-ink3); line-height: 1.55; text-align: center; }

.mp-trip-main { min-width: 0; }
.mp-trip-results-hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; padding: 10px 0; flex-wrap: wrap; }
.mp-trip-results-hd > div:first-child { font-size: 14px; color: var(--mp-ink3); }
.mp-trip-results-hd b { color: var(--mp-ink); font-weight: 800; }
.mp-trip-sort { display: inline-flex; align-items: center; gap: 6px; }
.mp-trip-sort label { font-size: 12px; color: var(--mp-ink4); font-weight: 600; }
.mp-trip-sort select { border: 1px solid var(--mp-line); border-radius: 8px; padding: 6px 10px; background: #fff; font-size: 13px; font-weight: 600; color: var(--mp-ink); cursor: pointer; }

/* Fallback partner section on /trips when live trips are thin on the
 * lane. Keeps the shipper actionable — enquire directly, view profile,
 * or post a targeted load — instead of bouncing on an empty state. */
.mp-trip-fallback { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--mp-line); }
.mp-trip-fallback-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.mp-trip-fallback-hd h3 { font-size: 16px; font-weight: 800; color: var(--mp-ink); letter-spacing: -.01em; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.mp-trip-fallback-hd h3 i { color: var(--mp-primary); }
.mp-trip-fallback-hd p { font-size: 12.5px; color: var(--mp-ink4); max-width: 580px; line-height: 1.55; margin: 0; }
.mp-trip-fallback-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .mp-trip-fallback-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .mp-trip-fallback-grid { grid-template-columns: 1fr 1fr 1fr; } }

.mp-trip-empty { background: #fff; border: 1px solid var(--mp-line); border-radius: 12px; }

/* When used inside the sidebar layout, the grid goes 1-col on mobile,
 * 2-col from ≥640px (there\'s already a sidebar taking 280px of width
 * so 3-col is too cramped at typical widths). */
.mp-trip-grid-rail { grid-template-columns: 1fr; }
@media (min-width: 640px) { .mp-trip-grid-rail { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1300px) { .mp-trip-grid-rail { grid-template-columns: 1fr 1fr 1fr; } }

/* /trip/:id detail page — two-column, form sticky on desktop. */
.mp-trip-detail-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 960px) { .mp-trip-detail-grid { grid-template-columns: 1.3fr 1fr; gap: 28px; } }
.mp-trip-detail-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .mp-trip-detail-stats { grid-template-columns: repeat(3, 1fr); } }
.mp-trip-detail-stats > div { padding: 10px 12px; background: var(--mp-surf); border-radius: 10px; }
.mp-trip-detail-stats span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--mp-ink4); font-weight: 700; }
.mp-trip-detail-stats b { display: block; font-size: 15px; font-weight: 800; color: var(--mp-ink); margin-top: 4px; letter-spacing: -.005em; }

/* Dedicated /sign-in + /sign-up page — split marketing + form layout.
 * Mobile collapses to single column with the form first. */
.mp-auth-page { padding: 40px 0 60px; background: linear-gradient(180deg, #f0f4ff 0%, #f8fafc 40%, #fff 100%); min-height: calc(100vh - var(--mp-header-h)); }
.mp-auth-grid { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 1120px; margin: 0 auto; align-items: start; }
@media (min-width: 900px) { .mp-auth-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; } }

.mp-auth-copy { order: 2; }
@media (min-width: 900px) { .mp-auth-copy { order: 0; } }
.mp-auth-copy .mp-hero-badge { background: rgba(37,99,235,.1); color: #1e3a8a; border-color: rgba(37,99,235,.22); }
.mp-auth-copy .mp-hero-badge i { color: var(--mp-primary); }
.mp-auth-copy h1 { font-size: 26px; font-weight: 900; line-height: 1.18; letter-spacing: -.02em; color: var(--mp-ink); margin: 14px 0 12px; }
@media (min-width: 768px) { .mp-auth-copy h1 { font-size: 34px; } }
.mp-auth-lead { font-size: 14.5px; color: var(--mp-ink3); line-height: 1.65; max-width: 540px; margin-bottom: 22px; }
.mp-auth-benefits { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.mp-auth-benefits li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.mp-auth-benefits li i { font-size: 20px; padding-top: 2px; }
.mp-auth-benefits li b { display: block; font-size: 14px; font-weight: 800; color: var(--mp-ink); margin-bottom: 2px; }
.mp-auth-benefits li span { display: block; font-size: 12.5px; color: var(--mp-ink4); line-height: 1.5; }
.mp-auth-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--mp-line); border-radius: 12px; }
.mp-auth-stats b { display: block; font-size: 18px; font-weight: 900; color: var(--mp-primary); letter-spacing: -.01em; }
.mp-auth-stats span { display: block; font-size: 10.5px; font-weight: 700; color: var(--mp-ink4); text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; }

.mp-auth-card { order: 1; background: #fff; border: 1px solid var(--mp-line); border-radius: 18px; padding: 26px; box-shadow: 0 14px 36px -20px rgba(15,23,42,.2); }
@media (min-width: 900px) { .mp-auth-card { order: 0; padding: 32px; position: sticky; top: 84px; } }
.mp-auth-card-hd { margin-bottom: 14px; }
.mp-auth-card-hd h2 { font-size: 20px; font-weight: 900; color: var(--mp-ink); margin-bottom: 4px; letter-spacing: -.01em; }
.mp-auth-card-hd p { font-size: 13px; color: var(--mp-ink4); line-height: 1.5; }
.mp-auth-card .mp-tabs { border-bottom: 1px solid var(--mp-line); margin-bottom: 16px; display: flex; gap: 4px; }
.mp-auth-card .mp-tab { flex: 1; }
.mp-auth-switch { margin-top: 16px; font-size: 13px; color: var(--mp-ink3); text-align: center; }
.mp-auth-switch a { color: var(--mp-primary); font-weight: 700; }
.mp-auth-terms { margin-top: 10px; text-align: center; font-size: 11.5px; color: var(--mp-ink4); }
.mp-auth-terms a { color: var(--mp-primary); font-weight: 600; }

/* Shipper inbox: trip-enquiry list + booking list reuse mp-lead-card
 * from the partner inbox for visual parity. */
.mp-trip-enq-list { display: grid; gap: 10px; }

/* Trip template quick-publish row on /account/trips/new. */
.mp-tpl-row { padding: 14px 16px; background: linear-gradient(135deg,#eef2ff,#fff); border: 1px solid #c7d2fe; border-radius: 12px; margin-bottom: 16px; }
.mp-tpl-row-hd { font-size: 12px; font-weight: 800; color: #3730a3; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.mp-tpl-row-hd i { color: #6366f1; font-size: 14px; }
.mp-tpl-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-tpl-chip { background: #fff; border: 1px solid #c7d2fe; border-radius: 10px; padding: 10px 14px; text-align: left; cursor: pointer; transition: all .14s; min-width: 180px; }
.mp-tpl-chip:hover { border-color: #6366f1; box-shadow: 0 6px 16px -10px rgba(99,102,241,.4); transform: translateY(-1px); }
.mp-tpl-chip b { display: block; font-size: 13px; font-weight: 800; color: var(--mp-ink); letter-spacing: -.01em; }
.mp-tpl-chip span { display: block; font-size: 11.5px; color: var(--mp-ink4); margin-top: 2px; }

/* Rating modal — 5-star picker + optional note. */
.mp-rate-stars { display: flex; gap: 6px; justify-content: center; margin: 18px 0 14px; }
.mp-rate-star { width: 44px; height: 44px; border-radius: 12px; background: var(--mp-surf); border: 1px solid var(--mp-line); color: #cbd5e1; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; transition: all .14s; padding: 0; }
.mp-rate-star:hover, .mp-rate-star.picked { background: #fef3c7; border-color: #f59e0b; color: #f59e0b; transform: scale(1.05); }

/* Trust pills — compact row above the price/CTA on trip cards.
 * Shipper-facing only; partner console has its own metrics elsewhere. */
.mp-trust-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.mp-trust-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; background: #ecfdf5; color: #065f46; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .1px; }
.mp-trust-pill i { color: #059669; font-size: 11px; }

/* Profile trust strip on /p/:slug — bigger, four-tile grid. */
.mp-trust-strip { max-width: 1120px; margin: 0 auto 18px; padding: 18px 20px; background: linear-gradient(135deg, #ecfdf5, #fff); border: 1px solid #a7f3d0; border-radius: 14px; }
.mp-trust-strip-hd { font-size: 12px; font-weight: 800; color: #065f46; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.mp-trust-strip-hd span { font-size: 10.5px; color: #059669; font-weight: 600; letter-spacing: .3px; text-transform: none; margin-left: auto; }
.mp-trust-strip-hd i { color: #059669; font-size: 14px; }
.mp-trust-strip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .mp-trust-strip-grid { grid-template-columns: repeat(4, 1fr); } }
.mp-trust-tile { background: #fff; border: 1px solid rgba(5,150,105,.22); border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.mp-trust-tile i { font-size: 18px; color: #059669; flex-shrink: 0; }
.mp-trust-tile b { font-size: 16px; font-weight: 800; color: #065f46; letter-spacing: -.01em; display: block; }
.mp-trust-tile span { font-size: 11px; color: #047857; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; display: block; margin-top: 2px; }

/* Small-phone polish. */
@media (max-width: 480px) {
  .mp-trip-ship-card { padding: 14px; }
  .mp-trip-ship-route { font-size: 15px; }
  .mp-trip-strip-hd h2 { font-size: 20px; }
  .mp-trip-filter { padding: 14px; grid-template-columns: 1fr; }
  .mp-trip-detail-stats { grid-template-columns: 1fr 1fr; }
  /* Partner publish form — stack route + vehicle grids to one col. */
  #tripPublishForm .mp-pl-grid { grid-template-columns: 1fr; }
  /* Lead card action row goes full width so Accept / Reject are tappable. */
  .mp-lead-actions { width: 100%; }
  .mp-lead-actions .mp-btn { flex: 1; justify-content: center; }
  .mp-trust-pills { gap: 4px; }
  .mp-trust-pill { font-size: 10.5px; padding: 3px 7px; }
}

/* ═══════════════════════════════════════════════════════════════
 * Partner console (marketplace v2) — trips / routes / vehicles /
 * leads / bookings / calendar surfaces. Reuses .mp-me-* from the
 * shipper dashboard for the outer shell; classes below are specific
 * to the partner-side cards + lists.
 * ═══════════════════════════════════════════════════════════════ */

/* pill badge next to a nav label (Leads count). */
.mp-me-nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 10px; background: #dc2626; color: #fff; font-size: 10.5px; font-weight: 700; margin-left: 4px; }

/* Plan-quota strip on /account/trips. Free/Starter partners see a
 * progress bar + upgrade CTA; Growth+ see an unlimited confirmation. */
.mp-quota-strip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.mp-quota-strip > div { flex: 1; min-width: 0; }
.mp-quota-strip b { font-size: 13px; display: block; color: var(--mp-ink); }
.mp-quota-strip span { display: block; font-size: 12px; color: var(--mp-ink4); margin-top: 2px; }
.mp-quota-strip.mp-quota-ok { background: linear-gradient(135deg,#ecfdf5,#fff); border: 1px solid #a7f3d0; }
.mp-quota-strip.mp-quota-warn { background: linear-gradient(135deg,#fef3c7,#fff); border: 1px solid #fcd34d; }
.mp-quota-strip.mp-quota-danger { background: linear-gradient(135deg,#fef2f2,#fff); border: 1px solid #fca5a5; }
.mp-quota-bar { width: 160px; height: 6px; background: rgba(0,0,0,.06); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.mp-quota-bar span { display: block; height: 100%; background: var(--mp-primary); transition: width .3s; }
.mp-quota-danger .mp-quota-bar span { background: #dc2626; }
.mp-quota-warn .mp-quota-bar span { background: #f59e0b; }
@media (max-width: 560px) {
  .mp-quota-strip { padding: 12px; }
  .mp-quota-bar { width: 100%; }
}

/* Inline SaaS cross-sell card — used on marketplace partner console
 * to promote yamafleet-app / FASTag / Driver-app to marketplace-only
 * partners. Subtle purple accent so it doesn\u2019t fight primary actions. */
.mp-saas-upsell { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; margin-top: 14px; border-radius: 14px; background: linear-gradient(135deg,#f5f3ff,#fff); border: 1px solid #ddd6fe; }
@media (max-width: 560px) { .mp-saas-upsell { grid-template-columns: 1fr; text-align: center; } }
.mp-saas-upsell-ic { width: 52px; height: 52px; border-radius: 12px; background: #ede9fe; color: #7c3aed; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.mp-saas-upsell-tag { font-size: 10.5px; font-weight: 800; color: #7c3aed; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 4px; }
.mp-saas-upsell h3 { font-size: 14.5px; font-weight: 800; color: var(--mp-ink); margin-bottom: 3px; letter-spacing: -.01em; }
.mp-saas-upsell p { font-size: 12.5px; color: var(--mp-ink4); line-height: 1.5; margin: 0; }

/* Shared tag colours used across trip / route / vehicle / booking cards. */
.mp-tag.primary { background: rgba(37,99,235,.12); color: #1e3a8a; }
.mp-tag.success { background: rgba(5,150,105,.12); color: #065f46; }
.mp-tag.warn    { background: rgba(245,158,11,.15); color: #92400e; }
.mp-tag.error   { background: rgba(220,38,38,.12); color: #991b1b; }
.mp-tag.muted   { background: rgba(100,116,139,.12); color: #475569; }

/* Filter chip row above lists. */
.mp-filter-row { margin-bottom: 4px; }
.mp-filter-row .mp-chip em { font-style: normal; opacity: .7; margin-left: 2px; }

/* Gold "GST-verified shipper" chip on lead cards. */
.mp-chip-gold { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #7a4e05; border: 0; font-weight: 700; }
.mp-chip-gold i { color: #b45309; }
.mp-chip-accent { background: rgba(232,167,59,.2); color: #92400e; }

/* ─── Trip cards (list + detail) ─────────────────────────────── */
.mp-trip-list { display: grid; gap: 10px; }
.mp-trip-card { display: block; padding: 14px 16px; border: 1px solid var(--mp-line); border-radius: 12px; background: #fff; color: var(--mp-ink); transition: border-color .14s, box-shadow .14s; }
.mp-trip-card:hover { border-color: var(--mp-primary); box-shadow: 0 6px 16px -10px rgba(43,89,212,.3); }
.mp-trip-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.mp-trip-route { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.mp-trip-route i { color: var(--mp-primary); margin: 0 4px; }
.mp-trip-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 12.5px; color: var(--mp-ink4); }
.mp-trip-meta span { display: inline-flex; align-items: center; gap: 4px; }
.mp-trip-meta i { color: var(--mp-mist); }
.mp-trip-meta em { font-style: normal; color: #059669; font-weight: 700; }

/* Calendar 14-day grid — 2 cols on phones, 7 on desktop. */
.mp-trip-cal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 760px) { .mp-trip-cal { grid-template-columns: repeat(7, 1fr); } }
.mp-trip-cal-day { background: #fff; border: 1px solid var(--mp-line); border-radius: 10px; padding: 10px; min-height: 120px; display: flex; flex-direction: column; gap: 4px; }
.mp-trip-cal-day.today { border-color: var(--mp-primary); box-shadow: 0 0 0 2px rgba(43,89,212,.1); }
.mp-trip-cal-day-hd { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; color: var(--mp-ink3); font-weight: 600; margin-bottom: 4px; }
.mp-trip-cal-add { width: 22px; height: 22px; border-radius: 6px; background: var(--mp-primary-soft); color: var(--mp-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.mp-trip-cal-item { display: block; padding: 6px 8px; font-size: 11.5px; background: var(--mp-surf); border-radius: 6px; color: var(--mp-ink); line-height: 1.3; }
.mp-trip-cal-item i { color: var(--mp-primary); margin-right: 4px; }
.mp-trip-cal-item span { display: block; color: var(--mp-ink4); font-size: 10px; margin-top: 2px; }
.mp-trip-cal-item:hover { background: var(--mp-primary-soft); }
.mp-trip-cal-empty { font-size: 11px; color: var(--mp-mist); padding: 4px; }

/* ─── Route cards ────────────────────────────────────────────── */
.mp-route-list, .mp-veh-list, .mp-leads-list, .mp-book-list { display: grid; gap: 10px; }
.mp-route-card, .mp-veh-card, .mp-book-card {
  background: #fff; border: 1px solid var(--mp-line); border-radius: 12px;
  padding: 14px 16px;
}
.mp-route-head, .mp-veh-head, .mp-book-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px;
}
.mp-route-meta, .mp-veh-meta, .mp-book-meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  font-size: 12.5px; color: var(--mp-ink4); margin-bottom: 8px;
}
.mp-route-meta span, .mp-veh-meta span, .mp-book-meta span { display: inline-flex; align-items: center; gap: 4px; }
.mp-route-meta i, .mp-veh-meta i, .mp-book-meta i { color: var(--mp-mist); }
.mp-route-actions, .mp-veh-actions, .mp-book-actions {
  display: flex; gap: 6px; flex-wrap: wrap;
}

/* ─── Lead cards (partner inbox) ─────────────────────────────── */
.mp-lead-card { background: #fff; border: 1px solid var(--mp-line); border-radius: 12px; padding: 14px 16px; transition: border-color .14s; }
.mp-lead-card:hover { border-color: var(--mp-line2); }
.mp-lead-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.mp-lead-hd b { font-size: 14px; }
.mp-lead-trip { font-size: 12.5px; color: var(--mp-primary); font-weight: 700; margin-bottom: 8px; padding: 4px 8px; background: var(--mp-primary-soft); display: inline-block; border-radius: 6px; }
.mp-lead-body { display: grid; gap: 4px; font-size: 13px; color: var(--mp-ink3); margin-bottom: 10px; }
.mp-lead-body b { color: var(--mp-ink); font-weight: 700; }
.mp-lead-contact { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: #ecfdf5; color: #065f46; font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.mp-lead-contact.masked { background: #f1f5f9; color: var(--mp-ink4); font-weight: 500; }
.mp-lead-contact.masked i { color: var(--mp-mist); }
.mp-lead-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid var(--mp-line); font-size: 11.5px; color: var(--mp-ink4); flex-wrap: wrap; }
.mp-lead-actions { display: flex; gap: 6px; }

/* ─── Booking cards ──────────────────────────────────────────── */
.mp-book-trip { font-size: 13px; color: var(--mp-ink2); margin-bottom: 6px; font-weight: 600; }

/* Small-phone pass for the new surfaces. */
@media (max-width: 480px) {
  .mp-trip-card, .mp-route-card, .mp-veh-card, .mp-book-card, .mp-lead-card { padding: 12px 14px; }
  .mp-trip-meta, .mp-route-meta, .mp-veh-meta, .mp-book-meta { font-size: 12px; gap: 6px 10px; }
  .mp-trip-route { font-size: 14px; }
  .mp-trip-cal-day { min-height: 100px; padding: 8px; }
}

/* ═══════════════════════════════════════════════════════════════
 * Small-phone pass (≤480px, with an extra squeeze at ≤380px)
 * Covers: hero tightness, KPI row, merchant cards, post-load form,
 * account dashboard, cashback band, About mission card. Goal: every
 * major surface renders without horizontal scroll on 360–420px
 * devices while staying legible at arm\u2019s length.
 * ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* Hero */
  .mp-hero { padding: 26px 0 30px; }
  .mp-hero h1 { font-size: 24px; line-height: 1.18; }
  .mp-hero p.lead { font-size: 13.5px; }
  .mp-hero-badge { padding: 4px 10px; font-size: 10.5px; }
  .mp-hero-trust { gap: 6px; margin-top: 12px; }
  .mp-hero-trust span { padding: 4px 8px; font-size: 11px; }
  .mp-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 6px; row-gap: 12px; margin-top: 18px; padding-top: 14px; }
  .mp-hero-stats b { font-size: 18px; }
  .mp-hero-form-card { padding: 18px; }
  .mp-hero-form-card h3 { font-size: 16px; }

  /* Homepage cashback band */
  .mp-cb-card { padding: 18px; }
  .mp-cb-body h3 { font-size: 17px; }
  .mp-cb-body p { font-size: 12.5px; }
  .mp-cb-steps { gap: 10px; }
  .mp-cb-step { font-size: 11.5px; }

  /* KPI row */
  .mp-kpi { padding: 12px 10px; }
  .mp-kpi b { font-size: 18px; }
  .mp-kpi span { font-size: 10px; }

  /* Merchants list */
  .mp-merchants { gap: 10px; }
  .mp-section { padding: 28px 0; }
  .mp-sec-hd { margin-bottom: 18px; }
  .mp-sec-hd h2 { font-size: 20px; }
  .mp-sec-hd p { font-size: 12.5px; }

  /* Post-load form */
  .mp-pl-layout { gap: 14px; }
  .mp-pl-card { padding: 16px; }
  .mp-pl-card-hd h2 { font-size: 18px; }
  .mp-pl-section-hd { font-size: 13px; }
  .mp-pl-rail-card { padding: 14px; }
  .mp-pl-rail-card h3 { font-size: 13px; }
  .mp-pl-actions .mp-btn { width: 100%; justify-content: center; }

  /* Account dashboard */
  .mp-dash-panel { padding: 14px; }
  .mp-dash-panel-hd h3 { font-size: 14px; }

  /* About */
  .mp-about-mission-card { padding: 16px; gap: 10px; }
  .mp-about-mission-stat { padding: 12px 14px; }
  .mp-about-mission-stat b { font-size: 20px; }
  .mp-about-kpi { padding: 14px 10px; }
  .mp-about-kpi b { font-size: 20px; }
  .mp-about-timeline li { padding-bottom: 18px; }
  .mp-about-timeline h3 { font-size: 15px; }

  /* Top bar — drop the brand tag line on phones, shorten brand name */
  .mp-brand-tag { display: none; }
  .mp-topbar .mp-container { gap: 8px; }
}

@media (max-width: 380px) {
  .mp-hero h1 { font-size: 22px; }
  .mp-hero-stats b { font-size: 16px; }
  .mp-kpi b { font-size: 16px; }
  .mp-pl-card { padding: 14px; }
  .mp-cb-card { padding: 14px; }
  .mp-cb-body h3 { font-size: 15.5px; }
  .mp-about-mission-copy h2 { font-size: 22px; }
}

/* ── /account/bookings — unified inbox (merged Load Requests + Requests & Bookings) ─────────────── */

.mp-bk-hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mp-bk-tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.mp-bk-tab { padding: 8px 14px; border-radius: 999px; background: var(--mp-bg-alt, #f5f7fa); color: var(--mp-ink2, #475569); font-size: 12.5px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all .15s ease; border: 1px solid transparent; }
.mp-bk-tab:hover { background: var(--mp-bg-alt2, #eef2f7); color: var(--mp-ink, #0f172a); }
.mp-bk-tab.active { background: var(--mp-primary, #2b59d4); color: #fff; }
.mp-bk-tab-count { background: rgba(255,255,255,.25); color: inherit; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.mp-bk-tab:not(.active) .mp-bk-tab-count { background: rgba(0,0,0,.08); color: var(--mp-ink3, #64748b); }
.mp-bk-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.mp-bk-list { display: flex; flex-direction: column; gap: 10px; }
.mp-bk-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--mp-line, #e2e8f0); border-radius: 14px; padding: 14px 16px; transition: all .15s ease; }
.mp-bk-card:hover { border-color: var(--mp-primary, #2b59d4); box-shadow: 0 6px 20px -10px rgba(43,89,212,.25); transform: translateY(-1px); color: inherit; }
.mp-bk-card-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.mp-bk-type { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .2px; text-transform: uppercase; }
.mp-bk-type-blue  { background: #dbeafe; color: #1e40af; }
.mp-bk-type-amber { background: #fef3c7; color: #92400e; }
.mp-bk-type-green { background: #d1fae5; color: #065f46; }
.mp-bk-type-slate { background: #e2e8f0; color: #475569; }
.mp-bk-status { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .3px; }
.mp-bk-status-active    { background: #fef3c7; color: #92400e; }
.mp-bk-status-confirmed { background: #dbeafe; color: #1e40af; }
.mp-bk-status-live      { background: #fce7f3; color: #9f1239; }
.mp-bk-status-completed { background: #d1fae5; color: #065f46; }
.mp-bk-status-cancelled { background: #f1f5f9; color: #475569; }
.mp-bk-ref { margin-left: auto; font-size: 11px; color: var(--mp-ink3, #64748b); font-family: 'JetBrains Mono', 'Courier New', monospace; font-weight: 600; }
.mp-bk-card-route { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--mp-ink, #0f172a); margin-bottom: 6px; }
.mp-bk-card-meta { display: flex; flex-wrap: wrap; gap: 4px 0; align-items: center; font-size: 12.5px; color: var(--mp-ink2, #475569); }
.mp-bk-card-meta i { margin-right: 4px; }
.mp-bk-dot { display: inline-block; margin: 0 7px; color: var(--mp-ink3, #64748b); font-weight: 700; }
.mp-bk-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--mp-line, #e2e8f0); }
.mp-bk-arrow { color: var(--mp-primary, #2b59d4); font-weight: 700; font-size: 16px; transition: transform .15s ease; }
.mp-bk-card:hover .mp-bk-arrow { transform: translateX(3px); }

.mp-bk-empty { padding: 40px 20px; text-align: center; background: var(--mp-bg-alt, #f5f7fa); border-radius: 14px; border: 1px dashed var(--mp-line, #e2e8f0); }

/* Detail page */
.mp-bk-detail-hd { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mp-bk-rule-band { margin-top: 12px; padding: 8px 14px; border-radius: 10px; background: #f0f9ff; border: 1px solid #bae6fd; color: #075985; font-size: 12.5px; font-weight: 600; }
.mp-bk-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; padding: 16px; background: #fff; border: 1px solid var(--mp-line, #e2e8f0); border-radius: 12px; }
.mp-bk-kv-k { font-size: 10.5px; font-weight: 800; color: var(--mp-ink3, #64748b); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.mp-bk-kv-v { font-size: 13.5px; font-weight: 600; color: var(--mp-ink, #0f172a); }
.mp-bk-detail-acts { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }

.mp-bk-quote-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.mp-bk-quote { padding: 14px 16px; background: #fff; border: 1px solid var(--mp-line, #e2e8f0); border-radius: 12px; }
.mp-bk-quote-hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mp-bk-quote-price { font-size: 20px; font-weight: 800; color: var(--mp-primary, #2b59d4); letter-spacing: -.01em; }
.mp-bk-quote-rule { margin-top: 8px; padding: 6px 10px; background: #f8fafc; border-radius: 8px; font-size: 12px; color: var(--mp-ink2, #475569); }
.mp-bk-quote-acts { margin-top: 10px; display: flex; gap: 8px; }
.mp-bk-quote-foot { margin-top: 8px; font-size: 11px; color: var(--mp-ink3, #64748b); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }

[data-theme="dark"] .mp-bk-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .mp-bk-card:hover { border-color: #60a5fa; }
[data-theme="dark"] .mp-bk-detail-grid { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .mp-bk-quote { background: #1e293b; border-color: #334155; }
