
:root {
  --maroon: #77152b;
  --maroon-dark: #4e0c1c;
  --maroon-soft: #a5485d;
  --rose: #f4e7e9;
  --rose-2: #fbf2f3;
  --gold: #b88a36;
  --gold-soft: #f2e6cb;
  --ivory: #faf8f4;
  --paper: #ffffff;
  --ink: #1d1a1b;
  --muted: #716b6d;
  --line: #e7e1df;
  --line-dark: #d6cdca;
  --success: #23684e;
  --danger: #b83b42;
  --shadow: 0 18px 55px rgba(54, 20, 29, .08);
  --shadow-soft: 0 8px 25px rgba(54, 20, 29, .055);
  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
img { max-width: 100%; }
.hidden { display: none !important; }

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 72px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(1260px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  min-width: 176px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-align: left;
}
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font: 800 20px/1 "Manrope"; letter-spacing: -.045em; }
.brand-copy small { margin-top: 6px; color: var(--maroon); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  min-height: 39px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: #5e585a;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}
.nav-link:hover, .nav-link.active { color: var(--maroon); background: var(--rose-2); }
.nav-badge {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  margin-left: 4px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--maroon);
  font-size: 8px;
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.notification-btn, .avatar-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.notification-btn { border: 1px solid var(--line); color: var(--maroon); background: #fff; }
.notification-btn svg { width: 18px; }
.notification-btn span {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--maroon);
  font-size: 8px;
  font-weight: 800;
}
.auth-btn {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--maroon);
  font-size: 11px;
  font-weight: 800;
}
.auth-btn:hover { background: var(--maroon-dark); }
.avatar-btn { border: 0; color: #fff; background: var(--maroon); font-size: 11px; font-weight: 800; }
.setup-banner { position: relative; z-index: 55; padding: 10px 20px; text-align: center; color: #6f4e0e; background: #fff1ce; border-bottom: 1px solid #ead8aa; font-size: 11px; }
.setup-banner strong { margin-right: 6px; }

/* Global layout */
.app-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow-shell { width: min(980px, calc(100% - 40px)); }
.view { min-height: 68vh; }
.eyebrow, .section-label, .sidebar-label, .search-eyebrow {
  display: block;
  margin: 0 0 8px;
  color: var(--maroon);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}
.primary-btn, .secondary-outline-btn {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  transition: .18s ease;
}
.primary-btn { border: 0; color: #fff; background: var(--maroon); box-shadow: 0 9px 22px rgba(119, 21, 43, .16); }
.primary-btn:hover { transform: translateY(-1px); background: var(--maroon-dark); }
.secondary-outline-btn { border: 1px solid var(--line-dark); color: var(--maroon); background: #fff; }
.secondary-outline-btn:hover { border-color: var(--maroon); background: var(--rose-2); }
.full-btn { width: 100%; }

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 12%, rgba(184,138,54,.20), transparent 28%),
    linear-gradient(132deg, var(--maroon-dark), var(--maroon) 58%, #8c253d);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: url("assets/route-pattern.svg");
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.hero-grid { position: relative; min-height: 440px; display: grid; grid-template-columns: minmax(0, 1.15fr) 430px; gap: 70px; align-items: center; padding: 64px 0 72px; }
.hero-copy { max-width: 690px; }
.brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #f7e4bd;
  background: rgba(255,255,255,.07);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}
.brand-kicker svg { width: 14px; }
.hero-copy h1 { margin: 21px 0 18px; font: 800 clamp(48px, 6vw, 76px)/.96 "Manrope"; letter-spacing: -.065em; }
.hero-copy h1 span { color: #f0c878; }
.hero-copy > p { max-width: 640px; margin: 0; color: rgba(255,255,255,.73); font-size: 16px; line-height: 1.7; }
.hero-assurance { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 18px 28px; }
.hero-assurance span { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.72); font-size: 10px; }
.hero-assurance b { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #f0c878; font-size: 8px; }
.brand-route-panel {
  padding: 26px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(30, 5, 12, .28);
  box-shadow: 0 25px 80px rgba(22, 2, 8, .25);
  backdrop-filter: blur(12px);
}
.route-panel-head { display: flex; align-items: center; justify-content: space-between; color: #f0c878; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.route-panel-head img { width: 35px; height: 35px; opacity: .9; }
.route-journey { margin: 24px 0; }
.route-station { display: grid; grid-template-columns: 14px 1fr; gap: 13px; align-items: start; }
.route-station i { width: 11px; height: 11px; margin-top: 5px; border: 3px solid #f0c878; border-radius: 50%; }
.route-station.destination i { background: #f0c878; }
.route-station small, .route-station strong, .route-station span { display: block; }
.route-station small { color: rgba(255,255,255,.5); font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.route-station strong { margin-top: 5px; font: 700 20px "Manrope"; }
.route-station span { margin-top: 3px; color: rgba(255,255,255,.55); font-size: 9px; }
.route-stem { position: relative; height: 62px; margin-left: 5px; border-left: 1px dashed rgba(240,200,120,.65); }
.route-stem span { position: absolute; left: 15px; top: 21px; color: rgba(255,255,255,.45); font-size: 8px; letter-spacing: .08em; }
.driver-shortcut {
  width: 100%;
  min-height: 67px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 11px;
  color: #fff;
  background: rgba(255,255,255,.09);
  text-align: left;
}
.driver-shortcut strong, .driver-shortcut small { display: block; }
.driver-shortcut strong { font-size: 11px; }
.driver-shortcut small { margin-top: 3px; color: rgba(255,255,255,.56); font-size: 9px; }
.driver-shortcut b { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #f0c878; font-size: 9px; }
.driver-shortcut svg { width: 15px; }

/* Search */
.home-shell { padding: 0 0 90px; }
.search-panel {
  position: relative;
  z-index: 5;
  margin-top: -34px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}
.search-panel-top { margin-bottom: 17px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.search-panel-top strong { display: block; font: 700 18px "Manrope"; }
.search-offer-link { min-height: 36px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 8px; color: var(--maroon); background: var(--rose-2); font-size: 9px; font-weight: 800; }
.search-offer-link svg { width: 15px; }
.route-search-row { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 10px; align-items: center; }
.location-field { position: relative; min-height: 70px; padding: 12px 14px 11px 44px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.field-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.location-field input { width: 100%; height: 30px; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 17px; font-weight: 700; }
.location-field:focus-within { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(119,21,43,.08); }
.location-dot { position: absolute; left: 17px; top: 35px; width: 11px; height: 11px; border: 3px solid var(--maroon); border-radius: 50%; }
.location-dot.end { background: var(--maroon); }
.swap-route { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--maroon); background: var(--ivory); }
.swap-route:hover { border-color: var(--maroon); background: var(--rose-2); }
.swap-route svg { width: 18px; }
.search-bottom-row { margin-top: 13px; display: grid; grid-template-columns: 1fr auto auto; gap: 17px; align-items: end; }
.date-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.date-chip { min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 700; }
.date-chip small { display: block; margin-top: 1px; font-size: 8px; }
.date-chip.active { color: #fff; background: var(--maroon); border-color: var(--maroon); }
.picker-chip { position: relative; display: inline-flex; align-items: center; }
.picker-chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seat-stepper { height: 42px; display: grid; grid-template-columns: 37px 38px 37px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.seat-stepper button { border: 0; color: var(--maroon); background: transparent; font-size: 18px; }
.seat-stepper strong { display: grid; place-items: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 12px; }
.search-btn { height: 44px; min-width: 144px; }
.search-btn svg { width: 16px; }
.popular-row { margin-top: 14px; display: flex; align-items: center; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.popular-row > span { color: var(--muted); font-size: 8px; font-weight: 800; white-space: nowrap; }
.popular-row button { white-space: nowrap; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: #5f5759; background: var(--ivory); font-size: 8px; font-weight: 700; }
.popular-row button:hover { color: var(--maroon); border-color: #d7b9c0; background: var(--rose-2); }

/* Product principles */
.trust-summary { margin: 26px 0 55px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-summary article { min-height: 94px; padding: 19px 22px; display: grid; grid-template-columns: 31px 1fr; gap: 12px; align-items: center; border-right: 1px solid var(--line); }
.trust-summary article:last-child { border-right: 0; }
.trust-index { color: var(--gold); font: 700 11px "Manrope"; }
.trust-summary strong, .trust-summary div span { display: block; }
.trust-summary strong { font-size: 11px; }
.trust-summary div span { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.5; }

/* Result list */
.result-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.route-summary { margin: 0 0 5px; color: var(--maroon); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.result-heading h2 { margin: 0; font: 750 31px "Manrope"; letter-spacing: -.04em; }
.result-tools { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 9px; }
.result-tools label { display: flex; align-items: center; gap: 7px; }
.result-tools select { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: 9px; font-weight: 700; }
.filter-row { margin: 16px 0; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.filter-chip { white-space: nowrap; min-height: 35px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: 9px; font-weight: 700; }
.filter-chip.active, .filter-chip:hover { color: #fff; background: var(--maroon); border-color: var(--maroon); }
.results-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 22px; align-items: start; }
.ride-list { display: grid; gap: 11px; }
.ride-card { display: grid; grid-template-columns: minmax(0, 1fr) 220px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; transition: .18s ease; }
.ride-card:hover { border-color: #d4c5c8; box-shadow: var(--shadow-soft); transform: translateY(-1px); }
.ride-card-main { padding: 18px 19px; }
.ride-card-top { display: flex; justify-content: space-between; gap: 12px; }
.departure-tag { color: var(--maroon); font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.ride-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.ride-tags span { padding: 5px 7px; border-radius: 999px; color: var(--maroon); background: var(--rose-2); font-size: 7px; font-weight: 800; }
.route-block { margin: 18px 0 15px; display: grid; grid-template-columns: 20px 1fr auto; gap: 11px; }
.route-track { display: flex; flex-direction: column; align-items: center; }
.track-dot { width: 10px; height: 10px; border: 2px solid var(--maroon); border-radius: 50%; background: #fff; }
.track-dot.end { background: var(--maroon); }
.track-line { width: 1px; min-height: 42px; background: repeating-linear-gradient(to bottom, var(--maroon) 0 4px, transparent 4px 8px); }
.route-names { display: flex; flex-direction: column; justify-content: space-between; gap: 13px; }
.route-names strong, .route-names span { display: block; }
.route-names strong { font: 700 16px "Manrope"; letter-spacing: -.02em; }
.route-names span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.route-duration { min-width: 86px; text-align: right; }
.route-duration span, .route-duration strong { display: block; }
.route-duration span { color: var(--muted); font-size: 7px; font-weight: 800; }
.route-duration strong { margin-top: 5px; font-size: 10px; }
.ride-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 8px; }
.ride-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ride-meta svg { width: 13px; color: var(--maroon); }
.ride-side { padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border-left: 1px solid var(--line); background: #fcfaf8; }
.driver-mini, .driver-row, .chat-person { display: flex; align-items: center; gap: 9px; }
.driver-avatar, .review-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e4d6d9;
  border-radius: 50%;
  color: var(--maroon);
  background: var(--rose);
  font-size: 9px;
  font-weight: 800;
}
.driver-avatar.has-photo, .review-avatar.has-photo, .profile-avatar.has-photo { padding: 0; }
.driver-avatar img, .review-avatar img, .profile-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.driver-mini strong, .driver-mini span { display: block; }
.driver-mini strong { font-size: 10px; }
.driver-mini span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.price-block { margin: 20px 0 13px; }
.price-block span, .price-block strong { display: block; }
.price-block span { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.price-block strong { margin-top: 4px; color: var(--maroon); font: 800 21px "Manrope"; }
.ride-actions { display: flex; gap: 7px; }
.save-btn { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; color: var(--maroon); background: #fff; }
.save-btn svg { width: 16px; }
.save-btn.saved { color: #fff; background: var(--maroon); border-color: var(--maroon); }
.save-btn.saved svg { fill: currentColor; }
.view-ride-btn { flex: 1; border: 0; border-radius: 9px; color: #fff; background: var(--maroon); font-size: 9px; font-weight: 800; }
.help-column { position: sticky; top: 92px; display: grid; gap: 12px; }
.safety-card, .pilot-card, .content-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.safety-card h3 { margin: 3px 0 7px; font: 700 20px/1.18 "Manrope"; letter-spacing: -.035em; }
.safety-card > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.assurance-list { margin: 17px 0; display: grid; gap: 9px; }
.assurance-list span { display: flex; align-items: center; gap: 8px; color: #4f494b; font-size: 9px; }
.assurance-list i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--success); font-style: normal; font-size: 8px; }
.text-btn, .danger-text-btn { padding: 0; border: 0; color: var(--maroon); background: transparent; font-size: 9px; font-weight: 800; }
.text-btn span { margin-left: 4px; }
.pilot-card { position: relative; overflow: hidden; color: #fff; background: var(--maroon); border-color: var(--maroon); }
.pilot-card::after { content: ""; position: absolute; inset: 0; opacity: .18; background-image: url("assets/route-pattern.svg"); background-size: cover; }
.pilot-card > * { position: relative; z-index: 1; }
.pilot-card img { width: 39px; height: 39px; margin-bottom: 20px; }
.pilot-card > span { display: block; color: #f0c878; font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.pilot-card h3 { margin: 9px 0 7px; font: 700 20px/1.2 "Manrope"; letter-spacing: -.035em; }
.pilot-card p { margin: 0 0 17px; color: rgba(255,255,255,.62); font-size: 9px; line-height: 1.55; }
.text-btn.light { color: #f0c878; }
.empty-state, .loading-state { padding: 40px 20px; text-align: center; border: 1px dashed var(--line-dark); border-radius: 13px; color: var(--muted); background: rgba(255,255,255,.6); font-size: 10px; line-height: 1.6; }
.empty-state strong, .loading-state strong { display: block; margin-bottom: 5px; color: var(--ink); font: 700 14px "Manrope"; }
.loading-spinner { width: 25px; height: 25px; margin: 0 auto 12px; border: 3px solid var(--rose); border-top-color: var(--maroon); border-radius: 50%; animation: sangai-spin .8s linear infinite; }
@keyframes sangai-spin { to { transform: rotate(360deg); } }

/* Internal pages */
.page-view { min-height: 75vh; padding: 60px 0 90px; }
.page-heading { margin-bottom: 27px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.page-heading h1 { margin: 0; font: 800 clamp(37px, 5vw, 58px)/1 "Manrope"; letter-spacing: -.055em; }
.page-heading > div > p:last-child { max-width: 650px; margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.plain-note { max-width: 335px; padding: 14px 16px; border-left: 3px solid var(--maroon); background: #fff; }
.plain-note strong, .plain-note span { display: block; }
.plain-note strong { font-size: 10px; }
.plain-note span { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.form-progress { margin: 0 auto 13px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 8px; font-weight: 800; }
.form-progress span.active { color: var(--maroon); }
.form-progress i { width: 43px; height: 1px; background: var(--line); }
.offer-form { display: grid; gap: 12px; }
.form-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.form-card-title { padding: 20px 22px 9px; display: flex; gap: 11px; }
.form-card-title > span { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--maroon); font-size: 9px; font-weight: 800; }
.form-card-title h2 { margin: 0; font: 700 18px "Manrope"; }
.form-card-title p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.form-grid { padding: 12px 22px 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid label, .auth-form label { color: #4e4548; font-size: 9px; font-weight: 800; }
.form-grid label small { color: var(--muted); font-weight: 500; }
.form-grid input, .form-grid select, .form-grid textarea, .auth-form input, .auth-form select, .auth-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: #fff;
}
.form-grid textarea, .auth-form textarea { min-height: 110px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(119,21,43,.08); }
.form-grid .full { grid-column: 1 / -1; }
.preference-grid { padding: 0 22px 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.preference-grid label { padding: 10px; border: 1px solid var(--line); border-radius: 9px; color: #554d4f; background: var(--ivory); font-size: 8px; font-weight: 700; }
.publish-bar { padding: 18px 21px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 13px; color: #fff; background: var(--maroon-dark); }
.publish-bar strong, .publish-bar span { display: block; }
.publish-bar strong { font-size: 10px; }
.publish-bar span { margin-top: 3px; color: rgba(255,255,255,.56); font-size: 8px; }

/* Journeys */
.compact-heading { align-items: center; }
.journey-tabs { width: fit-content; padding: 4px; display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.journey-tabs button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 800; }
.journey-tabs button.active { color: #fff; background: var(--maroon); }
.journey-tabs span { margin-left: 4px; padding: 2px 5px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 7px; }
.journey-panel { margin-top: 15px; display: grid; gap: 12px; }
.journey-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.journey-card-head { display: flex; justify-content: space-between; gap: 15px; }
.journey-card-head h3 { margin: 0; font: 700 20px "Manrope"; }
.journey-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.status-badge { min-height: 25px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 999px; color: #775a00; background: #fff0bd; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.status-badge.accepted, .status-badge.completed { color: #15583f; background: #def2e7; }
.status-badge.cancelled, .status-badge.declined { color: #8c2e35; background: #f7e3e5; }
.status-badge.in-progress { color: #fff; background: var(--maroon); }
.journey-details { margin: 16px 0; display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.journey-details div { padding: 12px; border-right: 1px solid var(--line); }
.journey-details div:last-child { border-right: 0; }
.journey-details span, .journey-details strong { display: block; }
.journey-details span { color: var(--muted); font-size: 7px; font-weight: 800; }
.journey-details strong { margin-top: 4px; font-size: 9px; }
.journey-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.small-action { min-height: 35px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--maroon); background: #fff; font-size: 8px; font-weight: 800; }
.small-action.primary { color: #fff; border-color: var(--maroon); background: var(--maroon); }
.small-action.danger { color: var(--danger); }
.request-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.request-section > h4 { margin: 0 0 9px; font: 700 12px "Manrope"; }
.request-card { padding: 13px; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--ivory); }
.request-card strong, .request-card span { display: block; }
.request-card strong { font-size: 9px; }
.request-card span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.request-actions { display: flex; gap: 5px; }
.request-actions button { min-height: 31px; padding: 0 8px; border: 0; border-radius: 7px; font-size: 7px; font-weight: 800; }
.request-actions .accept { color: #fff; background: var(--success); }
.request-actions .decline { color: var(--danger); background: #fff; }
.request-actions .message { color: #fff; background: var(--maroon); }

/* Inbox */
.inbox-layout { min-height: 580px; display: grid; grid-template-columns: 315px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); }
.conversation-list { border-right: 1px solid var(--line); background: #fcfaf8; }
.conversation-item { width: 100%; padding: 15px; display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; border: 0; border-bottom: 1px solid var(--line); color: inherit; background: transparent; text-align: left; }
.conversation-item.active { background: var(--rose-2); }
.conversation-item strong, .conversation-item span { display: block; }
.conversation-item strong { font-size: 9px; }
.conversation-item span { margin-top: 3px; color: var(--muted); font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-item time { color: var(--muted); font-size: 7px; }
.unread-dot { width: 7px; height: 7px; margin: 6px auto 0; border-radius: 50%; background: var(--maroon); }
.chat-panel { min-width: 0; display: flex; flex-direction: column; }
.chat-header { padding: 14px 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.chat-person strong, .chat-person span { display: block; }
.chat-person strong { font-size: 10px; }
.chat-person span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.chat-ride { color: var(--maroon); font-size: 8px; font-weight: 800; }
.message-stream { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; background: #fbf9f6; }
.message { max-width: 72%; padding: 10px 12px; border-radius: 12px 12px 12px 3px; background: var(--rose); font-size: 9px; line-height: 1.5; }
.message.mine { align-self: flex-end; border-radius: 12px 12px 3px 12px; color: #fff; background: var(--maroon); }
.message small { display: block; margin-top: 4px; opacity: .64; font-size: 7px; }
.chat-compose { padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; border-top: 1px solid var(--line); }
.chat-compose input { padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; }
.chat-compose button { width: 41px; height: 41px; border: 0; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--maroon); }
.chat-compose svg { width: 17px; }
.conversation-empty { min-height: 350px; padding: 30px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 9px; }
.conversation-empty strong { display: block; margin-bottom: 5px; color: var(--ink); font: 700 17px "Manrope"; }

/* Profile + safety */
.profile-shell { display: grid; gap: 18px; }
.profile-overview-card { position: relative; overflow: hidden; padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 15px; color: #fff; background: linear-gradient(125deg, var(--maroon-dark), var(--maroon)); }
.profile-overview-card::after { content: ""; position: absolute; inset: 0; opacity: .18; background-image: url("assets/route-pattern.svg"); background-size: cover; }
.profile-overview-card > * { position: relative; z-index: 1; }
.profile-main { min-width: 0; display: flex; align-items: center; gap: 16px; }
.profile-main > div { min-width: 0; }
.profile-avatar { width: 76px; height: 76px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 3px solid rgba(255,255,255,.26); border-radius: 50%; color: var(--maroon); background: #fff; font: 800 19px "Manrope"; }
.profile-name-row { display: flex; align-items: center; gap: 9px; }
.profile-name-row h1 { margin: 0; font: 700 29px "Manrope"; letter-spacing: -.045em; }
.verified-label { padding: 5px 7px; border-radius: 999px; color: #13563e; background: #dff2e7; font-size: 7px; font-weight: 800; }
.profile-main p { margin: 5px 0; color: rgba(255,255,255,.63); font-size: 8px; }
.profile-bio { max-width: 610px; line-height: 1.55; }
.profile-rating { display: flex; align-items: center; gap: 7px; }
.profile-rating strong { color: #f0c878; font: 800 17px "Manrope"; }
.profile-rating span { color: rgba(255,255,255,.65); font-size: 8px; }
.profile-overview-card .secondary-outline-btn { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.08); }
.profile-overview-card .secondary-outline-btn:hover { background: rgba(255,255,255,.15); }
.profile-grid, .safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.wide-card { grid-column: 1 / -1; }
.content-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.content-card-head h2 { margin: 0; font: 700 18px "Manrope"; }
.content-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.content-card-head > strong { color: var(--maroon); font: 800 18px "Manrope"; }
.verification-progress { height: 7px; margin: 15px 0; border-radius: 999px; background: var(--rose); }
.verification-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--maroon); }
.verification-list { margin: 8px 0 16px; display: grid; gap: 7px; }
.verification-item { padding: 10px; display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; border: 1px solid var(--line); border-radius: 9px; }
.check-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--success); font-size: 9px; }
.verification-item.pending .check-icon { color: var(--maroon); background: var(--rose); }
.verification-item strong, .verification-item span { display: block; }
.verification-item strong { font-size: 9px; }
.verification-item span { margin-top: 2px; color: var(--muted); font-size: 7px; }
.preference-list { margin: 17px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.preference-list span { padding: 8px 9px; border: 1px solid #ead4da; border-radius: 999px; color: var(--maroon); background: var(--rose-2); font-size: 8px; font-weight: 700; }
.review-list { margin-top: 14px; display: grid; gap: 9px; }
.review-list article { padding: 12px; display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; border: 1px solid var(--line); border-radius: 10px; }
.review-list strong, .review-list small { display: block; }
.review-list strong { font-size: 9px; }
.review-list small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.review-list p { margin: 7px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.review-list b { color: var(--maroon); font-size: 9px; }
.verification-list.large .verification-item { padding: 13px; }
.contact-card { margin: 15px 0; padding: 12px; display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory); }
.contact-card strong, .contact-card small { display: block; }
.contact-card strong { font-size: 9px; }
.contact-card small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.danger-text-btn { display: block; margin: 12px auto 0; color: var(--danger); }
.principle-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.principle-grid article { padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.principle-grid b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--maroon); font-size: 8px; }
.principle-grid strong, .principle-grid span { display: block; }
.principle-grid strong { margin-top: 12px; font-size: 9px; }
.principle-grid span { margin-top: 4px; color: var(--muted); font-size: 7px; line-height: 1.5; }

/* Modals */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 22px; display: grid; place-items: center; background: rgba(33, 8, 16, .74); backdrop-filter: blur(8px); }
.ride-modal { position: relative; width: min(880px, 100%); max-height: calc(100vh - 44px); overflow-y: auto; border-radius: 16px; background: #fff; box-shadow: 0 35px 110px rgba(0,0,0,.35); }
.small-modal, .success-modal { position: relative; width: min(440px, 100%); padding: 27px; border-radius: 15px; background: #fff; box-shadow: 0 35px 110px rgba(0,0,0,.35); }
.modal-close { position: sticky; z-index: 5; top: 12px; float: right; width: 38px; height: 38px; margin: 12px 12px -50px 0; border: 1px solid var(--line); border-radius: 9px; color: var(--maroon); background: rgba(255,255,255,.96); font-size: 20px; }
.modal-content { padding: 28px; }
.modal-date { color: var(--maroon); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.modal-route { margin: 19px 0; display: grid; grid-template-columns: 62px 20px 1fr; gap: 10px; }
.modal-route .track-line { min-height: 62px; }
.modal-route .route-names strong { font-size: 20px; }
.modal-summary { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.modal-summary div { padding: 13px; border-right: 1px solid var(--line); }
.modal-summary div:last-child { border-right: 0; }
.modal-summary span, .modal-summary strong { display: block; }
.modal-summary span { color: var(--muted); font-size: 7px; font-weight: 800; }
.modal-summary strong { margin-top: 4px; font-size: 9px; }
.modal-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr 285px; gap: 18px; }
.driver-card { padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--ivory); }
.driver-row { margin-bottom: 11px; }
.driver-row strong, .driver-row span { display: block; }
.driver-row strong { font-size: 10px; }
.driver-row span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.detail-row { padding: 9px 0; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.detail-row span { color: var(--muted); font-size: 8px; }
.detail-row strong { font-size: 8px; text-align: right; }
.safety-inline { margin-top: 11px; padding: 10px; border-left: 3px solid var(--success); color: #15583f; background: #eef7f2; font-size: 8px; line-height: 1.5; }
.request-box { padding: 18px; border-radius: 11px; color: #fff; background: var(--maroon-dark); }
.request-box h3 { margin: 0; font: 700 19px "Manrope"; }
.request-box p { color: rgba(255,255,255,.58); font-size: 8px; line-height: 1.5; }
.request-box label { display: block; margin-top: 9px; color: rgba(255,255,255,.72); font-size: 8px; font-weight: 700; }
.request-box select, .request-box textarea { width: 100%; margin-top: 5px; padding: 10px; border: 0; border-radius: 8px; }
.request-box textarea { min-height: 74px; resize: vertical; }
.request-box .primary-btn { width: 100%; margin-top: 9px; color: var(--maroon-dark); background: #f0c878; }
.success-modal { text-align: center; }
.success-icon { width: 52px; height: 52px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--success); font-size: 22px; }
.success-modal h2 { margin: 16px 0 7px; font: 700 26px "Manrope"; }
.success-modal p { color: var(--muted); font-size: 9px; line-height: 1.55; }
.success-actions { margin-top: 16px; display: flex; justify-content: center; gap: 8px; }
.passenger-profile { text-align: center; }
.passenger-profile .profile-avatar { margin: 0 auto; }
.passenger-profile h2 { margin: 12px 0 4px; font: 700 23px "Manrope"; }
.passenger-profile p { color: var(--muted); font-size: 8px; }
.passenger-stats { margin: 15px 0; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.passenger-stats div { padding: 10px; border-right: 1px solid var(--line); }
.passenger-stats div:last-child { border-right: 0; }
.passenger-stats strong, .passenger-stats span { display: block; }
.passenger-stats strong { font-size: 11px; }
.passenger-stats span { margin-top: 3px; color: var(--muted); font-size: 7px; }
.generic-modal-content h2 { margin: 0; font: 700 23px "Manrope"; }
.generic-modal-content p { color: var(--muted); font-size: 9px; line-height: 1.6; }
.generic-modal-actions { margin-top: 15px; display: flex; gap: 8px; }
.auth-modal { padding: 28px; }
.auth-logo { margin-bottom: 21px; display: flex; align-items: center; gap: 11px; }
.auth-logo img { width: 42px; height: 42px; }
.auth-logo strong, .auth-logo span { display: block; }
.auth-logo strong { font: 800 18px "Manrope"; }
.auth-logo span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.auth-tabs { margin-bottom: 22px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 9px; background: var(--rose-2); }
.auth-tabs button { min-height: 37px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; }
.auth-tabs button.active { color: #fff; background: var(--maroon); }
.auth-modal h2 { margin: 0; font: 700 27px "Manrope"; letter-spacing: -.04em; }
.auth-modal > p { color: var(--muted); font-size: 10px; line-height: 1.5; }
.auth-form { margin-top: 18px; display: grid; gap: 11px; }
.field-help { display: block; margin-top: 5px; color: var(--muted); font-size: 7px; font-weight: 500; }
.forgot-btn { width: 100%; margin-top: 11px; border: 0; color: var(--maroon); background: transparent; font-size: 9px; font-weight: 800; }
.auth-message { min-height: 17px; margin: 11px 0 0 !important; text-align: center; color: var(--danger) !important; font-size: 9px !important; }
.auth-privacy { margin: 14px 0 0 !important; padding-top: 13px; border-top: 1px solid var(--line); text-align: center; font-size: 8px !important; }
.detail-list { margin-top: 14px; display: grid; gap: 8px; }
.detail-list article { padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.detail-list strong, .detail-list span { display: block; }
.detail-list strong { font-size: 8px; }
.detail-list span { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }

/* Toast + footer */
.toast-area { position: fixed; right: 18px; bottom: 20px; z-index: 200; display: grid; gap: 7px; }
.toast { min-width: 250px; max-width: 340px; padding: 13px 15px; border-radius: 10px; color: #fff; background: var(--maroon-dark); box-shadow: var(--shadow); font-size: 9px; animation: toastin .22s ease; }
@keyframes toastin { from { opacity: 0; transform: translateY(7px); } }
.product-footer { padding: 30px 20px; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 220px 1fr auto; gap: 30px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { font: 800 17px "Manrope"; }
.footer-brand span { margin-top: 3px; color: var(--maroon); font-size: 8px; font-weight: 700; }
.footer-copy p { margin: 0 0 5px; font-size: 9px; }
.footer-copy small { color: var(--muted); font-size: 8px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.footer-links button { padding: 8px 9px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 8px; font-weight: 700; }
.footer-links button:hover { color: var(--maroon); background: var(--rose-2); }
.mobile-nav { display: none; }
.profile-actions { display: flex; align-items: center; gap: 8px; }
.signout-btn { min-height: 39px; padding: 0 13px; border: 1px solid rgba(184,59,66,.24); border-radius: 9px; color: var(--danger); background: #fff; font-size: 9px; font-weight: 800; }
.real-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; color: #15583f; background: #def2e7; font-size: 8px; font-weight: 800; }
.real-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.form-error { padding: 9px 11px; border-radius: 8px; color: #8d2e35; background: #f8e5e7; font-size: 9px; }
.ride-live-note { margin-top: 9px; padding: 8px 10px; border-radius: 8px; color: #15583f; background: #e9f5ef; font-size: 8px; font-weight: 700; }
.pending-verification-note { padding: 10px; border-radius: 8px; color: #71550b; background: #fff0c5; font-size: 8px; line-height: 1.5; }
.notification-btn span.hidden { display: none; }

@media (max-width: 1030px) {
  .desktop-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr 365px; gap: 40px; }
  .results-layout { grid-template-columns: 1fr; }
  .help-column { position: static; grid-template-columns: 1fr 1fr; }
  .inbox-layout { grid-template-columns: 280px 1fr; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: 67px; }
  .app-header { height: 64px; }
  .header-inner { width: calc(100% - 28px); }
  .brand { min-width: 0; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 7px; }
  .notification-btn { display: none; }
  .auth-btn { min-height: 36px; padding: 0 11px; font-size: 9px; }
  .app-shell, .narrow-shell { width: calc(100% - 28px); }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 28px; padding: 44px 0 65px; }
  .hero-copy h1 { font-size: 46px; }
  .hero-copy > p { font-size: 13px; }
  .hero-assurance { display: grid; gap: 10px; }
  .brand-route-panel { padding: 19px; }
  .search-panel { margin-top: -28px; padding: 15px; }
  .search-panel-top { align-items: flex-start; }
  .search-offer-link { display: none; }
  .route-search-row { grid-template-columns: 1fr; }
  .swap-route { margin: -4px auto; transform: rotate(90deg); }
  .search-bottom-row { grid-template-columns: 1fr auto; }
  .date-choice { grid-column: 1 / -1; }
  .date-chips { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .date-chip { padding: 0 8px; }
  .passenger-choice { grid-column: 1; }
  .search-btn { grid-column: 2; min-width: 130px; }
  .trust-summary { grid-template-columns: 1fr; }
  .trust-summary article { min-height: 77px; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-summary article:last-child { border-bottom: 0; }
  .result-heading, .page-heading { display: block; }
  .result-tools, .plain-note { margin-top: 14px; }
  .ride-card { grid-template-columns: 1fr; }
  .ride-side { border-left: 0; border-top: 1px solid var(--line); }
  .route-duration { min-width: 68px; }
  .help-column { grid-template-columns: 1fr; }
  .page-view { padding: 44px 0 70px; }
  .page-heading h1 { font-size: 38px; }
  .form-progress { display: none; }
  .form-grid { grid-template-columns: 1fr; padding: 10px 16px 18px; }
  .form-grid .full { grid-column: auto; }
  .form-card-title { padding: 18px 16px 8px; }
  .preference-grid { grid-template-columns: 1fr 1fr; padding: 0 16px 18px; }
  .publish-bar { display: block; padding: 17px; }
  .publish-bar .primary-btn { width: 100%; margin-top: 12px; }
  .journey-tabs { width: 100%; overflow-x: auto; }
  .journey-tabs button { flex: 1; white-space: nowrap; }
  .journey-details { grid-template-columns: 1fr 1fr; }
  .journey-details div:nth-child(2) { border-right: 0; }
  .journey-details div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .request-card { grid-template-columns: 40px 1fr; }
  .request-actions { grid-column: 1 / -1; }
  .inbox-layout { min-height: 610px; grid-template-columns: 1fr; }
  .conversation-list { max-height: 210px; overflow-y: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .chat-panel { min-height: 400px; }
  .profile-overview-card { display: block; }
  .profile-main { align-items: flex-start; }
  .profile-overview-card > .secondary-outline-btn { width: 100%; margin-top: 16px; }
  .profile-name-row { display: block; }
  .verified-label { display: inline-block; margin-top: 6px; }
  .profile-grid, .safety-grid { grid-template-columns: 1fr; }
  .wide-card { grid-column: auto; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .modal-backdrop { padding: 0; align-items: end; }
  .ride-modal { width: 100%; max-height: 94vh; border-radius: 16px 16px 0 0; }
  .modal-content { padding: 21px 16px; }
  .modal-summary { grid-template-columns: 1fr 1fr; }
  .modal-summary div:nth-child(2) { border-right: 0; }
  .modal-summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .modal-grid { grid-template-columns: 1fr; }
  .small-modal, .success-modal { width: 100%; border-radius: 16px 16px 0 0; }
  .success-actions { flex-direction: column; }
  .success-actions button { width: 100%; }
  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 80;
    height: 67px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(18px);
  }
  .mobile-nav button { border: 0; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--muted); background: transparent; font-size: 7px; font-weight: 800; }
  .mobile-nav svg { width: 18px; }
  .mobile-nav button.active { color: var(--maroon); }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .footer-links { justify-content: flex-start; }
  .product-footer { padding: 25px 15px; }
  .profile-actions { width: 100%; margin-top: 14px; }
  .profile-actions button { flex: 1; }
}


/* ==========================================================================
   Free matchmaking communication flow
   ========================================================================== */
.field-help{display:block;margin-top:6px;color:var(--muted);font-size:10px;font-weight:500;line-height:1.45}
.modal-kicker{display:block;margin-bottom:9px;color:var(--maroon,#77152b);font-size:9px;font-weight:900;letter-spacing:.13em}
.phone-required-modal p{max-width:38rem}
.privacy-note{margin:3px 0 4px;padding:12px 13px;display:grid;gap:3px;border:1px solid rgba(119,21,43,.13);border-radius:10px;background:#fbf4f5}
.privacy-note strong{color:var(--maroon,#77152b);font-size:10px}
.privacy-note span{color:var(--muted);font-size:9px;line-height:1.5}
.request-inline-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}
.journey-help{margin:13px 0 0;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:9px;line-height:1.5}
.request-actions .call,.call-action{border-color:rgba(119,21,43,.18)!important;color:#fff!important;background:var(--maroon,#77152b)!important}
.confirmed-contact{margin:17px 0;padding:15px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid rgba(119,21,43,.14);border-radius:12px;background:#fbf5f6}
.confirmed-contact span,.confirmed-contact strong,.confirmed-contact small{display:block}
.confirmed-contact span{color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.1em}
.confirmed-contact strong{margin-top:4px;font-size:14px}
.confirmed-contact small{margin-top:3px;color:var(--muted);font-size:10px}
.call-link,.chat-call-btn{min-height:40px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:9px;color:#fff;background:var(--maroon,#77152b);text-decoration:none;font-size:10px;font-weight:900}
.call-link svg,.chat-call-btn svg{width:16px}
.chat-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.chat-call-btn{min-height:34px;padding:0 11px}
.auth-form input[type="tel"]{letter-spacing:.02em}
@media(max-width:760px){
  .request-inline-actions{grid-template-columns:1fr}
  .confirmed-contact{align-items:flex-start;flex-direction:column}
  .call-link{width:100%}
  .chat-header{align-items:flex-start}
  .chat-header-actions{align-items:flex-end;flex-direction:column}
  .chat-call-btn{min-height:36px}
}


/* ==========================================================================
   Desktop readability upgrade
   Added to eliminate the need for browser zoom on laptops and desktops.
   ========================================================================== */

body {
  font-size: 16px;
}

/* Comfortable content width for the larger type scale */
@media (min-width: 900px) {
  .header-inner {
    width: min(1320px, calc(100% - 56px));
  }

  .app-shell {
    width: min(1240px, calc(100% - 56px));
  }

  .narrow-shell {
    width: min(1040px, calc(100% - 56px));
  }

  /* Header */
  .app-header {
    height: 78px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand {
    min-width: 190px;
  }

  .brand-copy strong {
    font-size: 23px;
  }

  .brand-copy small {
    font-size: 10px;
  }

  .nav-link {
    min-height: 43px;
    padding: 0 15px;
    font-size: 14px;
  }

  .auth-btn,
  .avatar-btn {
    font-size: 13px;
  }

  .auth-btn {
    min-height: 43px;
    padding: 0 18px;
  }

  .nav-badge,
  .notification-btn span {
    font-size: 10px;
  }

  .setup-banner {
    font-size: 13px;
  }

  /* Shared labels and controls */
  .eyebrow,
  .section-label,
  .sidebar-label,
  .search-eyebrow,
  .modal-kicker {
    font-size: 11px;
  }

  .primary-btn,
  .secondary-outline-btn {
    min-height: 48px;
    padding: 0 20px;
    font-size: 13px;
  }

  /* Hero */
  .hero-grid {
    min-height: 480px;
    grid-template-columns: minmax(0, 1.15fr) 450px;
    gap: 76px;
    padding: 70px 0 78px;
  }

  .brand-kicker {
    padding: 8px 12px;
    font-size: 11px;
  }

  .hero-copy > p {
    max-width: 680px;
    font-size: 18px;
    line-height: 1.7;
  }

  .hero-assurance span {
    font-size: 13px;
  }

  .hero-assurance b {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }

  .brand-route-panel {
    padding: 29px;
  }

  .route-panel-head {
    font-size: 11px;
  }

  .route-station small {
    font-size: 10px;
  }

  .route-station strong {
    font-size: 23px;
  }

  .route-station span {
    font-size: 12px;
  }

  .route-stem span {
    font-size: 10px;
  }

  .driver-shortcut strong {
    font-size: 14px;
  }

  .driver-shortcut small {
    font-size: 12px;
  }

  .driver-shortcut b {
    font-size: 12px;
  }

  /* Search */
  .search-panel {
    padding: 25px;
  }

  .search-panel-top strong {
    font-size: 20px;
  }

  .search-offer-link {
    min-height: 40px;
    padding: 0 13px;
    font-size: 12px;
  }

  .field-label {
    font-size: 11px;
  }

  .location-field input {
    height: 34px;
    font-size: 19px;
  }

  .date-chip {
    min-height: 46px;
    padding: 0 15px;
    font-size: 13px;
  }

  .date-chip small {
    font-size: 10px;
  }

  .seat-stepper {
    height: 46px;
  }

  .seat-stepper strong {
    font-size: 14px;
  }

  .popular-row > span {
    font-size: 11px;
  }

  .popular-row button {
    padding: 9px 12px;
    font-size: 11px;
  }

  /* Trust row and results */
  .trust-summary strong {
    font-size: 14px;
  }

  .trust-summary div span {
    font-size: 12px;
  }

  .route-summary {
    font-size: 11px;
  }

  .result-heading h2 {
    font-size: 35px;
  }

  .result-tools,
  .result-tools select {
    font-size: 12px;
  }

  .filter-chip {
    min-height: 39px;
    padding: 0 14px;
    font-size: 12px;
  }

  /* Ride cards */
  .ride-card {
    padding: 24px;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 26px;
  }

  .departure-tag {
    font-size: 11px;
  }

  .ride-tags span {
    padding: 6px 9px;
    font-size: 10px;
  }

  .route-names strong {
    font-size: 19px;
  }

  .route-names span {
    font-size: 12px;
  }

  .route-duration span {
    font-size: 10px;
  }

  .route-duration strong {
    font-size: 13px;
  }

  .ride-meta {
    font-size: 11px;
  }

  .driver-mini strong {
    font-size: 13px;
  }

  .driver-mini span {
    font-size: 11px;
  }

  .price-block span {
    font-size: 10px;
  }

  .price-block strong {
    font-size: 24px;
  }

  .view-ride-btn {
    min-height: 42px;
    font-size: 12px;
  }

  /* Sidebar */
  .safety-card h3,
  .pilot-card h3 {
    font-size: 22px;
  }

  .safety-card > p,
  .pilot-card p,
  .assurance-list span {
    font-size: 12px;
  }

  .assurance-list i {
    font-size: 10px;
  }

  .text-btn,
  .danger-text-btn {
    font-size: 12px;
  }

  .pilot-card > span {
    font-size: 10px;
  }

  .empty-state,
  .loading-state {
    font-size: 13px;
  }

  .empty-state strong,
  .loading-state strong {
    font-size: 16px;
  }

  /* Page headings and forms */
  .page-heading > div > p:last-child {
    font-size: 14px;
  }

  .plain-note strong {
    font-size: 13px;
  }

  .plain-note span {
    font-size: 11px;
  }

  .form-progress {
    font-size: 11px;
  }

  .form-card-title > span {
    width: 33px;
    height: 33px;
    font-size: 12px;
  }

  .form-card-title h2 {
    font-size: 21px;
  }

  .form-card-title p {
    font-size: 12px;
  }

  .form-grid label,
  .auth-form label {
    font-size: 12px;
  }

  .form-grid input,
  .form-grid select,
  .form-grid textarea,
  .auth-form input,
  .auth-form select,
  .auth-form textarea {
    min-height: 47px;
    font-size: 14px;
  }

  .preference-grid label {
    padding: 13px;
    font-size: 11px;
  }

  .publish-bar strong {
    font-size: 14px;
  }

  .publish-bar span {
    font-size: 11px;
  }

  /* Journey management */
  .journey-tabs button {
    min-height: 42px;
    font-size: 12px;
  }

  .journey-tabs span {
    font-size: 10px;
  }

  .journey-card-head h3 {
    font-size: 22px;
  }

  .journey-card-head p {
    font-size: 11px;
  }

  .status-badge {
    min-height: 28px;
    font-size: 10px;
  }

  .journey-details span {
    font-size: 10px;
  }

  .journey-details strong {
    font-size: 12px;
  }

  .small-action {
    min-height: 39px;
    padding: 0 13px;
    font-size: 11px;
  }

  .request-section > h4 {
    font-size: 15px;
  }

  .request-card strong {
    font-size: 12px;
  }

  .request-card span {
    font-size: 11px;
  }

  .request-actions button {
    min-height: 35px;
    padding: 0 10px;
    font-size: 10px;
  }

  .journey-help {
    font-size: 11px;
  }

  /* Messaging */
  .conversation-item {
    padding: 18px;
  }

  .conversation-item strong {
    font-size: 12px;
  }

  .conversation-item span {
    font-size: 11px;
  }

  .conversation-item time {
    font-size: 10px;
  }

  .chat-person strong {
    font-size: 13px;
  }

  .chat-person span,
  .chat-ride {
    font-size: 11px;
  }

  .message {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.55;
  }

  .message small {
    font-size: 10px;
  }

  .chat-compose input {
    min-height: 47px;
    font-size: 14px;
  }

  .conversation-empty {
    font-size: 12px;
  }

  .conversation-empty strong {
    font-size: 19px;
  }

  /* Profile and safety */
  .profile-name-row h1 {
    font-size: 33px;
  }

  .verified-label {
    font-size: 10px;
  }

  .profile-main p,
  .profile-rating span {
    font-size: 11px;
  }

  .content-card-head h2 {
    font-size: 21px;
  }

  .content-card-head p {
    font-size: 11px;
  }

  .content-card-head > strong {
    font-size: 21px;
  }

  .verification-item strong,
  .review-list strong,
  .contact-card strong {
    font-size: 12px;
  }

  .verification-item span,
  .review-list small,
  .contact-card small {
    font-size: 10px;
  }

  .preference-list span {
    font-size: 11px;
  }

  .review-list p {
    font-size: 11px;
  }

  .review-list b {
    font-size: 12px;
  }

  .principle-grid strong {
    font-size: 12px;
  }

  .principle-grid span {
    font-size: 10px;
  }

  /* Modals and authentication */
  .modal-date {
    font-size: 11px;
  }

  .modal-summary span {
    font-size: 10px;
  }

  .modal-summary strong {
    font-size: 12px;
  }

  .driver-row strong {
    font-size: 13px;
  }

  .driver-row span,
  .detail-row span,
  .detail-row strong,
  .safety-inline,
  .request-box p,
  .request-box label {
    font-size: 11px;
  }

  .generic-modal-content p,
  .success-modal p,
  .passenger-profile p {
    font-size: 12px;
  }

  .auth-logo span,
  .auth-modal > p,
  .field-help,
  .privacy-note span {
    font-size: 11px;
  }

  .auth-tabs button {
    font-size: 12px;
  }

  .forgot-btn,
  .auth-message,
  .auth-privacy {
    font-size: 11px !important;
  }

  .detail-list strong,
  .detail-list span {
    font-size: 11px;
  }

  .toast {
    font-size: 12px;
  }

  .confirmed-contact span {
    font-size: 10px;
  }

  .confirmed-contact strong {
    font-size: 16px;
  }

  .confirmed-contact small,
  .call-link,
  .chat-call-btn {
    font-size: 12px;
  }

  /* Footer */
  .footer-brand span,
  .footer-copy small,
  .footer-links button,
  .real-status {
    font-size: 10px;
  }

  .footer-copy p,
  .signout-btn,
  .form-error,
  .ride-live-note,
  .pending-verification-note {
    font-size: 11px;
  }
}

/* Slightly larger desktop type for high-resolution laptop screens */
@media (min-width: 1440px) {
  body {
    font-size: 17px;
  }

  .app-shell {
    width: min(1280px, calc(100% - 72px));
  }

  .header-inner {
    width: min(1360px, calc(100% - 72px));
  }
}
