:root {
  color-scheme: light;
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #ecf4ef;
  --ink: #17201c;
  --muted: #66746d;
  --line: #dce5df;
  --teal: #087b73;
  --teal-dark: #075850;
  --saffron: #f2a83a;
  --coral: #d85b47;
  --shadow: 0 18px 50px rgba(14, 31, 27, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(8, 123, 115, 0.07), transparent 280px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  background: rgba(244, 246, 243, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 12px rgba(23, 32, 28, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: clamp(16px, 3vw, 34px);
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  padding-right: clamp(16px, 3vw, 34px);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  padding: clamp(20px, 4vw, 40px) 0;
}

.composer-panel,
.board-panel {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.composer-panel {
  align-self: start;
  position: sticky;
  top: 82px;
}

.visual-strip {
  position: relative;
  overflow: hidden;
  min-height: 158px;
  background:
    linear-gradient(90deg, rgba(8, 88, 80, 0.72), rgba(8, 88, 80, 0.12)),
    url("assets/airport-carpool-banner.png") center / cover;
}

.panel-inner,
.board-panel {
  padding: clamp(22px, 3.5vw, 32px) 0;
}

.section-heading {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 2px;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: 0;
}

.ride-form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: rgba(251, 253, 251, 0.9);
  color: var(--ink);
  outline: none;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  transition: background 150ms, box-shadow 150ms;
  box-shadow: inset 0 1px 3px rgba(23, 32, 28, 0.04);
}

textarea {
  resize: vertical;
  min-height: 86px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 123, 115, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  gap: 12px;
}

.primary-button,
.ghost-button,
.join-button,
.chip,
.icon-button {
  border: 0;
  border-radius: 8px;
  min-height: 40px;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.primary-button {
  background: var(--teal);
  color: #fff;
  padding: 13px 16px;
  font-weight: 800;
}

.primary-button:hover,
.join-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--surface-2);
  color: var(--teal-dark);
  font-weight: 900;
}

.board-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 0 clamp(22px, 3.5vw, 32px);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: #fbfdfb;
}

.filters {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.search-field,
.locality-field {
  position: relative;
  display: block;
}

.search-field span {
  display: none;
}

.locality-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  display: grid;
  width: 100%;
  max-height: 240px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid rgba(113, 213, 255, 0.36);
  border-radius: 8px;
  background: #211d43;
  box-shadow: 0 18px 32px rgba(5, 7, 26, 0.34);
}

.locality-suggestions[hidden] {
  display: none;
}

.locality-suggestions button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.locality-suggestions button:hover,
.locality-suggestions button:focus-visible {
  background: rgba(113, 213, 255, 0.14);
  outline: none;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chip {
  flex: 0 0 auto;
  background: #fbfdfb;
  color: var(--muted);
  box-shadow: 0 1px 3px rgba(23, 32, 28, 0.06);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 800;
}

.chip.is-active {
  border-color: rgba(8, 123, 115, 0.25);
  background: var(--surface-2);
  color: var(--teal-dark);
}

.ride-list {
  display: grid;
  gap: 16px;
  padding: 0 clamp(22px, 3.5vw, 32px);
}

.ride-card {
  display: grid;
  gap: 0;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fbfdfb;
  box-shadow: 0 2px 8px rgba(23, 32, 28, 0.05);
}

.ride-main {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
}

.destination-sign {
  position: relative;
  width: 32px;
  height: auto;
}

.destination-sign::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 11px;
  width: 12px;
  height: 12px;
  border: 4px solid var(--teal);
  border-radius: 50%;
  background: #fff;
}

.destination-sign::after {
  content: "";
  position: absolute;
  top: 23px;
  bottom: 0;
  left: 16px;
  width: 2px;
  background: linear-gradient(var(--teal), var(--saffron));
}

.ride-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ride-title-row h3 {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.seat-badge {
  flex: 0 0 auto;
  min-width: 52px;
  border-radius: 8px;
  background: rgba(242, 168, 58, 0.2);
  color: #8a5305;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.ride-meta,
.ride-message,
.contact-line {
  color: var(--muted);
  line-height: 1.45;
}

.ride-meta {
  margin-bottom: 0;
  font-size: 11px;
  display: inline;
}

.ride-message {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.contact-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 13px;
}

.contact-pill {
  border-radius: 8px;
  background: #eef1ea;
  padding: 5px 8px;
  color: #48544f;
  font-weight: 800;
}

.ride-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

.fare-share {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  flex: 1 1 420px;
  min-width: min(100%, 360px);
  border: 1px solid rgba(8, 123, 115, 0.14);
  border-radius: 8px;
  background: rgba(232, 245, 239, 0.78);
  padding: 10px;
  color: var(--teal-dark);
}

.fare-share-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.fare-share-controls {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 74px auto;
  align-items: end;
  gap: 8px;
}

.fare-share-controls label {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: #48544f;
  font-size: 10px;
  font-weight: 900;
}

.fare-share-controls select,
.fare-share-controls input {
  width: 100%;
  min-height: 34px;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 900;
}

.fare-share-button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--teal-dark);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.fare-share-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.fare-share-result {
  display: grid;
  gap: 2px;
}

.fare-share-result strong {
  color: #073f39;
  font-size: 21px;
  line-height: 1;
}

.fare-share-result span,
.fare-share-result small {
  color: #48544f;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .fare-share-controls {
    grid-template-columns: 1fr;
  }
}
.join-button {
  background: var(--teal-dark);
  color: #fff;
  padding: 10px 14px;
  font-weight: 900;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.95);
  color: var(--teal-dark);
  box-shadow: 0 1px 4px rgba(23, 32, 28, 0.08);
  padding: 10px 14px;
  font-weight: 800;
}

.comments {
  display: grid;
  gap: 7px;
}

.comment {
  border-left: 3px solid rgba(8, 123, 115, 0.28);
  padding-left: 9px;
  color: #42504a;
  font-size: 12px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.comment strong {
  color: var(--ink);
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
}

.empty-state {
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: inset 0 1px 3px rgba(23, 32, 28, 0.04);
  background: #fbfdfb;
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 6px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  max-width: min(360px, calc(100vw - 40px));
  border-radius: 8px;
  background: #17201c;
  color: #fff;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .composer-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  .topbar {
    align-items: flex-start;
    margin: 0 !important;
    padding: 10px 0 !important;
    gap: 0 !important;
  }

  .brand {
    padding-left: 6px !important;
  }

  .topbar-actions {
    padding-right: 6px !important;
  }

  .app-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .workspace {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    gap: 6px !important;
  }

  .board-panel,
  .composer-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 6px !important;
  }

  .panel-inner {
    padding: 8px 6px !important;
    margin: 0 !important;
  }

  .board-header {
    padding: 8px 6px !important;
  }

  .ride-list {
    padding: 0 6px !important;
  }

  .board-header,
  .ride-title-row {
    display: grid;
  }

  .stats {
    justify-content: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .ride-card {
    padding: 14px;
  }
}

.connection-pill,
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.connection-pill {
  background: #fbfdfb;
  color: var(--muted);
  box-shadow: 0 1px 3px rgba(23, 32, 28, 0.06);
}

.connection-pill[data-state="live"] {
  border-color: rgba(8, 123, 115, 0.28);
  background: #e8f5ef;
  color: var(--teal-dark);
}

.connection-pill[data-state="syncing"] {
  border-color: rgba(242, 168, 58, 0.45);
  background: #fff7e8;
  color: #875304;
}

.connection-pill[data-state="offline"] {
  border-color: rgba(216, 91, 71, 0.35);
  background: #fff0ed;
  color: #a33c2c;
}

.nav-button {
  background: var(--teal-dark);
  color: #fff;
}

.floating-action {
  display: none;
}

@media (max-width: 760px) {
  body {
    background: var(--bg);
  }

  .topbar {
    align-items: center;
    padding: 10px 12px;
  }

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

  .brand strong {
    font-size: 12px;
  }

  .brand small {
    font-size: 11px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .nav-button,
  .topbar-actions .icon-button {
    display: none;
  }

  .connection-pill {
    min-height: 34px;
    padding-inline: 9px;
  }

  .workspace {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 10px 84px;
  }

  .board-panel {
    order: 1;
  }

  .composer-panel {
    order: 2;
  }

  .composer-panel,
  .board-panel {
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(14, 31, 27, 0.08);
  }

  .visual-strip {
    min-height: 108px;
  }

  h1 {
    font-size: 26px;
    line-height: 1.08;
  }

  h2 {
    font-size: 22px;
  }

  input,
  select,
  textarea,
  .primary-button,
  .ghost-button,
  .join-button,
  .chip,
  .icon-button {
    min-height: 46px;
  }

  .chips {
    margin-inline: -16px;
    padding-inline: 16px;
    scrollbar-width: none;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .ride-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .destination-sign {
    display: none;
  }

  .ride-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .join-button,
  .ghost-button {
    width: 100%;
  }

  .comment-form {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .floating-action {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 8px;
    background: var(--teal-dark);
    color: #fff;
    padding: 0 16px;
    box-shadow: 0 14px 34px rgba(7, 88, 80, 0.28);
    font-weight: 900;
    text-decoration: none;
  }

  .toast {
    right: 12px;
    bottom: 74px;
    left: 12px;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .panel-inner,
  .board-panel {
    padding: 14px;
  }

  .stats span {
    flex: 1 1 auto;
    justify-content: center;
  }

  .ride-actions {
    grid-template-columns: 1fr;
  }
}

.destination-sign {
  position: relative;
  display: grid;
  align-content: start;
  width: 72px;
  height: auto;
  min-height: 88px;
  padding-top: 8px;
}

.destination-sign::before {
  content: "";
  position: static;
  inset: auto;
  width: 58px;
  height: 34px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(8, 88, 80, 0.1);
}

.destination-sign::after {
  content: "";
  position: static;
  inset: auto;
  width: 3px;
  height: 34px;
  margin-left: 28px;
  background: linear-gradient(var(--teal), var(--saffron));
}

.destination-sign span {
  position: absolute;
  top: 15px;
  left: 6px;
  right: 20px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.05;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ride-main {
  grid-template-columns: 72px minmax(0, 1fr);
}

.request-button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.thread-lock {
  margin: 0;
  border: 1px dashed #bdcbc4;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.request-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--saffron);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.request-card.is-approved {
  border-left-color: var(--teal);
}

.request-card.is-disapproved {
  border-left-color: var(--coral);
  opacity: 0.78;
}

.request-title,
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.request-title span {
  border-radius: 8px;
  background: #eef1ea;
  color: #48544f;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.request-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 0;
}

.request-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.request-details dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.request-note {
  margin: 0;
  color: #42504a;
  font-size: 13px;
  line-height: 1.42;
}

.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}

.request-dialog {
  width: min(720px, calc(100vw - 24px));
  border: none;
  border-radius: 16px;
  padding: 0;
  background: var(--surface);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.request-dialog::backdrop {
  background: rgba(23, 32, 28, 0.48);
}

.request-form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 32px);
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.wide-field {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .destination-sign {
    display: none;
  }

  .request-grid,
  .request-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ride-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

.destination-sign {
  display: grid;
  place-items: start center;
  width: 72px;
  min-height: 88px;
  padding-top: 0;
}

.destination-sign::before,
.destination-sign::after {
  content: none;
}

.destination-sign img {
  display: block;
  width: 54px;
  height: 68px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .destination-sign {
    display: none;
  }
}

@media (max-width: 760px) {
  .ride-main {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .destination-sign {
    display: grid;
    width: 44px;
    min-height: 58px;
  }

  .destination-sign img {
    width: 36px;
    height: 48px;
  }
}

.conversation-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f7fbf8;
}

.conversation-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.conversation-title span {
  border-radius: 8px;
  background: #e8f5ef;
  color: var(--teal-dark);
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.conversation-messages {
  display: grid;
  gap: 7px;
}

.conversation-comment {
  margin: 0;
  border-left: 3px solid rgba(8, 123, 115, 0.28);
  padding-left: 9px;
  color: #42504a;
  font-size: 12px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.conversation-comment strong {
  color: var(--ink);
}

.brand > span:last-child {
  min-width: 0;
}

.brand strong {
  max-width: min(420px, 58vw);
  overflow-wrap: anywhere;
}

.brand-kannada {
  margin: 8px 0 0;
  color: var(--teal-dark);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .brand strong {
    max-width: 210px;
    font-size: 10px;
    line-height: 1.12;
  }

  .brand small {
    max-width: 210px;
    line-height: 1.2;
  }

  .brand-kannada {
    font-size: 13px;
  }
}

.stat-card {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: #fbfdfb;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat-card strong {
  color: var(--ink);
}

.ride-main {
  cursor: pointer;
}

.ride-main:focus-visible {
  outline: 3px solid rgba(8, 123, 115, 0.2);
  outline-offset: 3px;
  border-radius: 8px;
}

.ride-card.is-collapsed .ride-message,
.ride-card.is-collapsed .contact-line,
.ride-card.is-collapsed .ride-actions,
.ride-card.is-collapsed .comments,
.ride-card.is-collapsed .impact-row {
  display: none;
}

.ride-card.is-collapsed {
  gap: 0;
}

.ride-card.is-collapsed .ride-meta {
  margin-bottom: 0;
}

.ride-card.is-expanded .ride-main {
  padding-bottom: 2px;
}

@media (max-width: 420px) {
  .stat-card {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.feedback-button {
  max-width: 260px;
  padding-inline: 10px;
  text-align: center;
  white-space: normal;
  line-height: 1.15;
}

.terms-box {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(216, 91, 71, 0.28);
  border-radius: 8px;
  background: #fff7f4;
  color: #5c332d;
  padding: 11px 12px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.42;
}

.terms-box input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.terms-copy {
  display: grid;
  gap: 6px;
}

.terms-copy label {
  display: inline;
  color: #5c332d;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.terms-copy details {
  color: #5c332d;
}

.terms-copy summary {
  width: max-content;
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-copy p {
  margin: 6px 0 0;
  color: #5c332d;
}

.request-terms {
  margin-top: 2px;
}

@media (max-width: 760px) {
  .feedback-button {
    display: none;
  }
}

.auth-user {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--muted);
  padding: 0 10px;
  font-size: 10px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-button {
  border: 0;
  white-space: nowrap;
}

.ride-form.auth-locked {
  position: relative;
}

.ride-form.auth-locked::before {
  content: "Login with Google before creating a cab-share squad.";
  display: block;
  border: none;
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.95);
  box-shadow: inset 0 1px 3px rgba(23, 32, 28, 0.04);
  color: #875304;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .auth-user,
  .auth-button {
    display: none;
  }
}

@media (max-width: 760px) {
  .auth-user,
  .auth-button {
    display: inline-flex;
  }

  .auth-user {
    max-width: 132px;
    min-height: 34px;
    padding-inline: 8px;
  }

  .auth-button {
    min-height: 34px;
    padding-inline: 9px;
    font-size: 11px;
  }
}
.banner-bug {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.brand,
.topbar-actions {
  position: relative;
  z-index: 1;
}

.cockroach {
  position: absolute;
  top: 14px;
  left: -110px;
  width: 86px;
  height: 38px;
  transform-origin: 50% 50%;
  opacity: 0;
  filter: drop-shadow(0 5px 5px rgba(23, 32, 28, 0.2));
  animation: roach-route 16s linear infinite, roach-body-bob 0.52s ease-in-out infinite;
}

.hero-roach {
  top: auto;
  bottom: 18px;
  scale: 1.08;
  filter: drop-shadow(0 8px 8px rgba(23, 32, 28, 0.34));
  animation-duration: 11s, 0.52s;
  animation-delay: -2s, 0s;
}

.roach-shadow,
.roach-antenna,
.roach-leg,
.roach-shell,
.roach-thorax,
.roach-head {
  position: absolute;
  display: block;
}

.roach-shadow {
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 7px;
  border-radius: 999px;
  background: rgba(23, 32, 28, 0.16);
  filter: blur(2px);
  animation: roach-shadow-pulse 0.52s ease-in-out infinite;
}

.roach-shell {
  left: 21px;
  top: 8px;
  width: 42px;
  height: 22px;
  border-radius: 58% 48% 50% 54%;
  background:
    radial-gradient(circle at 23% 31%, rgba(255, 219, 145, 0.35), transparent 22%),
    linear-gradient(90deg, rgba(255, 205, 118, 0.22), transparent 35%),
    linear-gradient(180deg, #8b451d 0%, #4f2512 50%, #271009 100%);
  border: 1px solid rgba(33, 14, 6, 0.7);
  box-shadow: inset 0 2px 2px rgba(255, 219, 145, 0.17), inset -5px 0 5px rgba(27, 11, 5, 0.38);
}

.roach-shell::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 49%;
  width: 1px;
  background: rgba(255, 217, 144, 0.45);
  box-shadow: -9px 0 0 rgba(255, 217, 144, 0.18), 9px 0 0 rgba(20, 8, 3, 0.28);
}

.roach-shell::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 8px;
  top: 7px;
  height: 7px;
  border-top: 1px solid rgba(255, 214, 139, 0.28);
  border-bottom: 1px solid rgba(24, 10, 4, 0.26);
  border-radius: 50%;
}

.roach-thorax {
  right: 18px;
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50% 45% 45% 50%;
  background: linear-gradient(180deg, #5f2a12, #2d1309);
  border: 1px solid rgba(28, 11, 5, 0.72);
}

.roach-head {
  right: 5px;
  top: 13px;
  width: 15px;
  height: 13px;
  border-radius: 52% 48% 48% 52%;
  background: linear-gradient(180deg, #2e150a, #130804);
}

.roach-head::before,
.roach-head::after {
  content: "";
  position: absolute;
  right: 3px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #f4d17d;
}

.roach-head::before {
  top: 3px;
}

.roach-head::after {
  bottom: 3px;
}

.roach-antenna {
  right: -19px;
  top: 15px;
  width: 31px;
  height: 1px;
  background: #1d0b05;
  transform-origin: 0 50%;
  animation: antenna-sweep 0.85s ease-in-out infinite;
}

.antenna-top {
  transform: rotate(-32deg);
}

.antenna-bottom {
  top: 22px;
  animation-delay: -0.25s;
  transform: rotate(28deg);
}

.roach-antenna::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -1px;
  width: 5px;
  height: 1px;
  border-radius: 999px;
  background: #1d0b05;
  transform: rotate(18deg);
}

.roach-leg {
  width: 31px;
  height: 2px;
  background: #241007;
  border-radius: 999px;
  transform-origin: 100% 50%;
  animation: roach-step 0.38s ease-in-out infinite;
}

.roach-leg::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: #241007;
  transform-origin: 100% 50%;
  transform: rotate(18deg);
}

.leg-1,
.leg-3,
.leg-5 {
  animation-name: roach-step-a;
}

.leg-2,
.leg-4,
.leg-6 {
  animation-name: roach-step-b;
}

.leg-1 {
  right: 24px;
  top: 9px;
  transform: rotate(-35deg);
}

.leg-2 {
  right: 24px;
  top: 27px;
  transform: rotate(35deg);
}

.leg-3 {
  right: 36px;
  top: 12px;
  transform: rotate(-16deg);
  animation-delay: -0.12s;
}

.leg-4 {
  right: 36px;
  top: 25px;
  transform: rotate(16deg);
  animation-delay: -0.12s;
}

.leg-5 {
  right: 50px;
  top: 15px;
  transform: rotate(8deg);
  animation-delay: -0.24s;
}

.leg-6 {
  right: 50px;
  top: 22px;
  transform: rotate(-8deg);
  animation-delay: -0.24s;
}

@keyframes roach-route {
  0%, 5% {
    opacity: 0;
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  8% {
    opacity: 1;
  }
  16% {
    transform: translateX(25vw) translateY(3px) rotate(-3deg);
  }
  21% {
    transform: translateX(41vw) translateY(-2px) rotate(5deg);
  }
  25% {
    transform: translateX(55vw) translateY(3px) rotate(-2deg);
  }
  30% {
    opacity: 1;
    transform: translateX(77vw) translateY(-1px) rotate(3deg);
  }
  36% {
    opacity: 0;
    transform: translateX(calc(100vw + 140px)) translateY(1px) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateX(calc(100vw + 140px)) translateY(1px) rotate(0deg);
  }
}

@keyframes roach-body-bob {
  0%, 100% {
    margin-top: 0;
  }
  50% {
    margin-top: 2px;
  }
}

@keyframes roach-shadow-pulse {
  0%, 100% {
    opacity: 0.55;
    transform: scaleX(0.92);
  }
  50% {
    opacity: 0.35;
    transform: scaleX(1.04);
  }
}

@keyframes roach-step-a {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: -5px 1px;
  }
}

@keyframes roach-step-b {
  0%, 100% {
    translate: -5px 1px;
  }
  50% {
    translate: 0 0;
  }
}

@keyframes antenna-sweep {
  0%, 100% {
    rotate: 0deg;
  }
  50% {
    rotate: 13deg;
  }
}

@media (max-width: 760px) {
  .cockroach {
    top: 10px;
    scale: 0.8;
  }

  .hero-roach {
    top: auto;
    bottom: 14px;
    scale: 0.88;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cockroach {
    animation: none;
    display: none;
  }
}
/* Interactive walking cockroach overlay. */
.cockroach-overlay {
  position: fixed;
  left: 24px;
  top: 24px;
  z-index: 9999;
  width: 96px;
  height: 46px;
  pointer-events: none;
  border: 0;
  background: transparent;
  opacity: 0.94;
  transform: translate3d(0, 0, 0) rotate(0deg);
  transform-origin: 50% 50%;
  will-change: transform, left, top, opacity;
  filter: drop-shadow(0 7px 7px rgba(23, 32, 28, 0.28));
  animation: roach-life 60s linear forwards, roach-body-bob 0.42s ease-in-out infinite;
}

.cockroach-overlay .roach-shadow,
.cockroach-overlay .roach-antenna,
.cockroach-overlay .roach-leg,
.cockroach-overlay .roach-shell,
.cockroach-overlay .roach-thorax,
.cockroach-overlay .roach-head {
  position: absolute;
  display: block;
}

.cockroach-overlay .roach-shadow {
  left: 13px;
  right: 14px;
  bottom: 2px;
  height: 8px;
  border-radius: 999px;
  background: rgba(23, 32, 28, 0.17);
  filter: blur(2px);
  animation: roach-shadow-pulse 0.42s ease-in-out infinite;
}

.cockroach-overlay .roach-shell {
  left: 25px;
  top: 9px;
  width: 48px;
  height: 25px;
  border: 1px solid rgba(33, 14, 6, 0.72);
  border-radius: 58% 48% 50% 54%;
  background:
    radial-gradient(circle at 24% 30%, rgba(255, 219, 145, 0.36), transparent 22%),
    linear-gradient(90deg, rgba(255, 205, 118, 0.2), transparent 38%),
    linear-gradient(180deg, #8b451d 0%, #4f2512 52%, #241008 100%);
  box-shadow: inset 0 2px 2px rgba(255, 219, 145, 0.17), inset -5px 0 5px rgba(27, 11, 5, 0.38);
}

.cockroach-overlay .roach-shell::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 49%;
  width: 1px;
  background: rgba(255, 217, 144, 0.45);
  box-shadow: -10px 0 0 rgba(255, 217, 144, 0.18), 10px 0 0 rgba(20, 8, 3, 0.28);
}

.cockroach-overlay .roach-shell::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 9px;
  top: 8px;
  height: 8px;
  border-top: 1px solid rgba(255, 214, 139, 0.28);
  border-bottom: 1px solid rgba(24, 10, 4, 0.26);
  border-radius: 50%;
}

.cockroach-overlay .roach-thorax {
  right: 20px;
  top: 11px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(28, 11, 5, 0.72);
  border-radius: 50% 45% 45% 50%;
  background: linear-gradient(180deg, #5f2a12, #2d1309);
}

.cockroach-overlay .roach-head {
  right: 5px;
  top: 14px;
  width: 17px;
  height: 15px;
  border-radius: 52% 48% 48% 52%;
  background: linear-gradient(180deg, #2e150a, #130804);
}

.cockroach-overlay .roach-head::before,
.cockroach-overlay .roach-head::after {
  content: "";
  position: absolute;
  right: 3px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #f4d17d;
}

.cockroach-overlay .roach-head::before {
  top: 4px;
}

.cockroach-overlay .roach-head::after {
  bottom: 4px;
}

.cockroach-overlay .roach-antenna {
  right: -22px;
  top: 17px;
  width: 36px;
  height: 1px;
  background: #1d0b05;
  transform-origin: 0 50%;
  animation: antenna-sweep 0.7s ease-in-out infinite;
}

.cockroach-overlay .antenna-top {
  transform: rotate(-32deg);
}

.cockroach-overlay .antenna-bottom {
  top: 24px;
  transform: rotate(28deg);
  animation-delay: -0.22s;
}

.cockroach-overlay .roach-leg {
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: #241007;
  transform-origin: 100% 50%;
  animation: roach-step-a 0.32s ease-in-out infinite;
}

.cockroach-overlay .roach-leg::after {
  content: "";
  position: absolute;
  left: -13px;
  top: 0;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #241007;
  transform-origin: 100% 50%;
  transform: rotate(18deg);
}

.cockroach-overlay .leg-2,
.cockroach-overlay .leg-4,
.cockroach-overlay .leg-6 {
  animation-name: roach-step-b;
}

.cockroach-overlay .leg-1 { right: 26px; top: 10px; transform: rotate(-35deg); }
.cockroach-overlay .leg-2 { right: 26px; top: 30px; transform: rotate(35deg); }
.cockroach-overlay .leg-3 { right: 40px; top: 14px; transform: rotate(-16deg); animation-delay: -0.1s; }
.cockroach-overlay .leg-4 { right: 40px; top: 27px; transform: rotate(16deg); animation-delay: -0.1s; }
.cockroach-overlay .leg-5 { right: 56px; top: 17px; transform: rotate(8deg); animation-delay: -0.2s; }
.cockroach-overlay .leg-6 { right: 56px; top: 24px; transform: rotate(-8deg); animation-delay: -0.2s; }

@keyframes roach-life {
  0% { opacity: 0; }
  5%, 88% { opacity: 0.94; }
  100% { opacity: 0; }
}

@media (max-width: 760px) {
  .cockroach-overlay {
    width: 78px;
    height: 38px;
    scale: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cockroach-overlay {
    display: none;
  }
}
.impact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
}

.impact-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 6px;
  background: #e8f5ef;
  color: var(--teal-dark);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
}

.impact-row span:nth-child(2) {
  background: #eef1ea;
  color: #48544f;
}

.impact-row span:nth-child(3) {
  background: rgba(242, 168, 58, 0.18);
  color: #8a5305;
}

.impact-stat strong {
  color: var(--teal-dark);
}
/* CabRoach redesign layer */
:root {
  --bg: #090b24;
  --surface: rgba(255, 255, 255, 0.1);
  --surface-2: rgba(255, 255, 255, 0.16);
  --ink: #f8fbff;
  --muted: #b9c2d9;
  --line: rgba(255, 255, 255, 0.18);
  --teal: #b6ff4d;
  --teal-dark: #dcff7a;
  --saffron: #ff9f43;
  --coral: #ff5f7e;
  --purple: #8d5cff;
  --night: #090b24;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(141, 92, 255, 0.36), transparent 34vw),
    radial-gradient(circle at 80% 16%, rgba(255, 159, 67, 0.22), transparent 30vw),
    linear-gradient(145deg, #07091f 0%, #15103a 48%, #211447 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 9, 31, 0.72);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.brand-mark {
  border: 1px solid rgba(182, 255, 77, 0.5);
  background: linear-gradient(135deg, #b6ff4d, #29ffc6);
  color: #111827;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 10px;
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
}

.brand small,
.auth-user,
.connection-pill {
  color: var(--muted);
}

.connection-pill,
.auth-user,
.stat-card,
.chip,
input,
select,
textarea,
.ghost-button,
.icon-button {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.connection-pill[data-state="live"] {
  border-color: rgba(182, 255, 77, 0.4);
  background: rgba(182, 255, 77, 0.16);
  color: #eaffb9;
}

.nav-button,
.primary-button,
.join-button,
.floating-action {
  border: 0;
  background: linear-gradient(135deg, #ff9f43, #ff5f7e);
  color: #111827;
  box-shadow: 0 14px 32px rgba(255, 95, 126, 0.22);
}

.primary-button,
.nav-button,
.join-button,
.floating-action {
  font-weight: 950;
}

.ghost-button,
.hero-secondary {
  color: var(--ink);
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  gap: clamp(18px, 4vw, 42px);
  min-height: min(620px, calc(100vh - 84px));
  margin: 0;
  padding: clamp(36px, 8vw, 92px) 0;
  overflow: hidden;
  border: none;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(18, 22, 65, 0.78), rgba(76, 34, 118, 0.54)),
    radial-gradient(circle at 56% 75%, rgba(255, 159, 67, 0.44), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
  align-self: center;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.95;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: #dce4ff;
  font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions a {
  min-height: 48px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hero-card {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  padding: 18px;
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.hero-card strong {
  font-size: 20px;
}

.hero-card span {
  color: var(--muted);
}

.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.plane-line {
  display: none;
}

.plane-shape {
  position: absolute;
  top: -2%;
  left: 66%;
  width: 66px;
  height: 44px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 150'%3E%3Cpath fill='%23bfc6d3' d='M214 20c17 15 4 45-28 72l-18 15 61 24-16 10-84-14-56 42-23-4 41-54-91 3-6-11 111-22 49-42c25-22 46-30 60-19Z'/%3E%3Cpath fill='%23bfc6d3' d='M55 120 98 112 73 143 39 145Z'/%3E%3Ccircle fill='%23bfc6d3' cx='96' cy='91' r='20'/%3E%3Ccircle fill='%23141235' cx='96' cy='91' r='12'/%3E%3Ccircle fill='%23bfc6d3' cx='177' cy='101' r='18'/%3E%3Ccircle fill='%23141235' cx='177' cy='101' r='11'/%3E%3Cpath fill='%23141235' opacity='.72' d='M134 47c18-19 39-31 52-26-18 4-35 18-54 38l-30 32-9-2 41-42Z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.82;
  filter: drop-shadow(0 0 10px rgba(185, 194, 217, 0.16));
  animation: plane-drift 9s ease-in-out infinite alternate;
}

.runway-glow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 14%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 18px, transparent 18px 34px);
  box-shadow: 0 0 36px 16px rgba(255, 159, 67, 0.28);
  transform: perspective(220px) rotateX(62deg);
}

.city-line {
  position: absolute;
  right: 8%;
  bottom: 20%;
  width: 36%;
  height: 70px;
  background: linear-gradient(180deg, transparent 20%, rgba(255, 255, 255, 0.14) 20% 100%);
  clip-path: polygon(0 80%, 0 55%, 9% 55%, 9% 34%, 18% 34%, 18% 62%, 27% 62%, 27% 20%, 39% 20%, 39% 70%, 50% 70%, 50% 42%, 62% 42%, 62% 60%, 73% 60%, 73% 28%, 85% 28%, 85% 68%, 100% 68%, 100% 100%, 0 100%);
}

.cab {
  position: absolute;
  bottom: 17%;
  width: 38px;
  height: 18px;
  border-radius: 7px 8px 4px 4px;
  background: #ffcf4a;
  box-shadow: 7px 13px 0 -6px #111827, 28px 13px 0 -6px #111827;
}

.cab-one {
  left: 18%;
  animation: cab-move 10s linear infinite;
}

.cab-two {
  left: 55%;
  animation: cab-move 13s linear infinite reverse;
}

.value-strip,
.info-sections,
.site-footer {
  margin: clamp(14px, 3vw, 26px) 0 0;
}

.value-strip,
.info-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.value-strip article,
.how-card,
.safety-card,
.site-footer,
.composer-panel,
.board-panel,
.ride-card,
.request-dialog,
.empty-state,
.conversation-panel,
.request-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.value-strip article,
.how-card,
.safety-card,
.site-footer {
  border-radius: 8px;
  padding: clamp(16px, 2.5vw, 24px);
  box-shadow: var(--shadow);
}

.value-strip strong,
.flow-step strong,
.site-footer strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 17px;
}

.value-strip span,
.flow-step small,
.safety-card p,
.site-footer p {
  color: #cfd8f3;
  line-height: 1.5;
}

.info-sections {
  grid-template-columns: 2fr 1fr;
}

.flow-chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.flow-step {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(182, 255, 77, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(70, 92, 145, 0.48), rgba(55, 45, 90, 0.62));
  padding: 16px 14px 14px;
}

.flow-node {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #b6ff4d;
  color: #10171f;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(182, 255, 77, 0.22);
}

.flow-step strong {
  margin: 0;
}

.flow-step small {
  font-size: 12px;
}

.flow-arrow {
  align-self: center;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(182, 255, 77, 0.2), rgba(182, 255, 77, 0.92));
}

.flow-arrow::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin-left: auto;
  border-top: 2px solid #b6ff4d;
  border-right: 2px solid #b6ff4d;
  transform: translateY(-4px) rotate(45deg);
}

.workspace {
  grid-template-columns: minmax(310px, 420px) minmax(0, 1fr);
}

.composer-panel {
  top: 84px;
}

.visual-strip {
  background:
    linear-gradient(135deg, rgba(9, 11, 36, 0.18), rgba(141, 92, 255, 0.2)),
    url("assets/airport-carpool-banner.png") center / cover;
}

.panel-inner,
.board-panel {
  padding: clamp(22px, 3.5vw, 32px) 0;
}

.eyebrow {
  color: #b6ff4d;
}

.brand-kannada {
  color: #cfd8f3;
}

input,
select,
textarea {
  background: rgba(8, 11, 35, 0.42);
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: rgba(248, 251, 255, 0.58);
}

.ride-card {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.ride-card:hover {
  transform: translateY(-2px);
  border-color: rgba(182, 255, 77, 0.34);
  box-shadow: 0 18px 42px rgba(182, 255, 77, 0.08);
}

.seat-badge,
.impact-row span,
.contact-pill,
.request-title span,
.conversation-title span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(182, 255, 77, 0.16);
  color: #eaffb9;
}

.ride-meta,
.ride-message,
.contact-line,
.request-note,
.request-details dd,
.comment,
.conversation-comment,
.thread-lock {
  color: #cfd8f3;
}

.request-details dt,
label {
  color: #aeb8d5;
}

.destination-sign img {
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.24));
}

.terms-box {
  border-color: rgba(255, 207, 74, 0.3);
  background: rgba(255, 207, 74, 0.12);
  color: #fff2c5;
}

.terms-copy label,
.terms-copy details,
.terms-copy p,
.terms-copy summary {
  color: #fff2c5;
}

.cockroach-overlay {
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.36));
}

.cockroach-overlay::after {
  content: "CabRoach says split smart";
  position: absolute;
  left: 18px;
  bottom: 38px;
  width: max-content;
  max-width: 170px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(9, 11, 36, 0.78);
  color: #f8fbff;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.9;
}

.site-footer {
  margin-bottom: 96px;
}

@keyframes plane-drift {
  from { transform: translateX(22px) translateY(-24px) rotate(180deg); }
  to { transform: translateX(-60px) translateY(30px) rotate(180deg); }
}

@keyframes cab-move {
  from { translate: -80px 0; }
  to { translate: 80px 0; }
}

@media (max-width: 920px) {
  .hero-section,
  .value-strip,
  .info-sections,
  .flow-chart,
  .workspace {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-bottom: 42px;
  }

  .hero-card {
    align-self: start;
  }
}

@media (max-width: 760px) {
  .topbar {
    background: rgba(7, 9, 31, 0.86);
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    max-width: 180px;
  }

  .hero-section,
  .value-strip,
  .info-sections,
  .site-footer {
    margin-inline: 0;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-actions {
    display: grid;
  }

  .workspace {
    padding: 10px 10px 84px;
  }

  .board-panel {
    order: 1;
  }

  .composer-panel {
    order: 2;
  }

  .stats {
    justify-content: flex-start;
  }

  .stat-card {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    text-align: center;
  }

  .floating-action {
    background: linear-gradient(135deg, #b6ff4d, #29ffc6);
  }
}
/* Feed-first layout refinement */
@media (min-width: 921px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  }

  .board-panel {
    order: 1;
  }

  .composer-panel {
    order: 2;
  }
}
.advanced-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.advanced-filters label {
  display: block;
}

.advanced-filters select {
  min-height: 40px;
  padding: 9px 10px;
  font-size: 10px;
  font-weight: 850;
}

@media (max-width: 760px) {
  .advanced-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .advanced-filters {
    grid-template-columns: 1fr;
  }
}
.primary-button,
.ghost-button,
.nav-button,
.join-button,
.floating-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
/* Header cleanup: logo, account button, and hidden status */
.connection-pill[hidden],
.auth-user[hidden],
#loginButton[hidden],
#logoutButton[hidden] {
  display: none !important;
}

.brand-mark {
  overflow: hidden;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  padding: 0;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.account-button {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-user {
  max-width: 120px;
  border: 1px solid rgba(141, 92, 255, 0.38);
  background: rgba(141, 92, 255, 0.2);
  color: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#logoutButton {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff9f43, #ff5f7e);
  color: #07091f;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

#logoutButton:hover,
#logoutButton:focus-visible {
  filter: brightness(1.06);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 159, 67, 0.24);
}

@media (max-width: 760px) {
  .topbar {
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .topbar-actions .nav-button,
  .account-button {
    display: inline-flex;
    min-height: 34px;
    padding-inline: 9px;
    font-size: 11px;
  }

  .feedback-button {
    display: none !important;
  }

  .account-button {
    max-width: 120px;
  }
}
/* Cute CabRoach mascot refresh */
.cockroach-overlay {
  width: 128px;
  height: 86px;
  overflow: visible;
  opacity: 0.96;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.36));
  animation: roach-life 60s linear forwards;
}

.cockroach-overlay::after {
  content: none;
}

.mascot-body {
  position: absolute;
  left: 14px;
  bottom: 0;
  width: 98px;
  height: 56px;
  display: block;
  animation: roach-body-bob 0.54s ease-in-out infinite;
  transform-origin: 50% 56%;
}

.mascot-bubble {
  position: absolute;
  left: 4px;
  bottom: 64px;
  width: max-content;
  max-width: min(235px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(9, 11, 36, 0.88);
  color: #f8fbff;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.25;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.mascot-bubble::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: rgba(9, 11, 36, 0.88);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transform: rotate(45deg);
}

.cockroach-overlay .roach-shadow {
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 10px;
  background: rgba(0, 0, 0, 0.2);
  filter: blur(3px);
}

.cockroach-overlay .roach-shell {
  left: 24px;
  top: 13px;
  width: 52px;
  height: 30px;
  border: 2px solid rgba(48, 22, 10, 0.62);
  border-radius: 999px;
  background:
    radial-gradient(circle at 26% 28%, rgba(255, 231, 170, 0.58), transparent 19%),
    linear-gradient(135deg, #a85a25 0%, #6f3518 52%, #3a180b 100%);
  box-shadow: inset 0 3px 3px rgba(255, 231, 170, 0.22), inset -7px 0 8px rgba(33, 12, 4, 0.34);
}

.cockroach-overlay .roach-shell::before {
  top: 5px;
  bottom: 5px;
  left: 50%;
  background: rgba(255, 231, 170, 0.42);
  box-shadow: -11px 0 0 rgba(255, 231, 170, 0.16), 11px 0 0 rgba(28, 10, 3, 0.22);
}

.cockroach-overlay .roach-shell::after {
  left: 10px;
  right: 8px;
  top: 9px;
  height: 9px;
  border-color: rgba(255, 231, 170, 0.22);
}

.cockroach-overlay .roach-thorax {
  right: 23px;
  top: 17px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7b3d1a, #3c1709);
}

.cockroach-overlay .roach-head {
  right: 5px;
  top: 18px;
  width: 22px;
  height: 19px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4d2410, #1d0b05);
}

.cockroach-overlay .roach-head::before,
.cockroach-overlay .roach-head::after {
  display: none;
}

.roach-sunglasses,
.roach-headphones,
.roach-arm,
.roach-phone,
.roach-suitcase {
  position: absolute;
  display: block;
  z-index: 3;
}

.roach-sunglasses {
  right: 6px;
  top: 22px;
  width: 19px;
  height: 7px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 5px 50%, #07091f 0 4px, transparent 4px),
    radial-gradient(circle at 14px 50%, #07091f 0 4px, transparent 4px),
    linear-gradient(#07091f, #07091f) center / 100% 2px no-repeat;
}

.roach-headphones {
  right: 4px;
  top: 13px;
  width: 25px;
  height: 18px;
  border: 2px solid #b6ff4d;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.roach-headphones::before,
.roach-headphones::after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 5px;
  height: 9px;
  border-radius: 4px;
  background: #b6ff4d;
}

.roach-headphones::before { left: -3px; }
.roach-headphones::after { right: -3px; }

.roach-arm {
  right: 14px;
  top: 38px;
  width: 23px;
  height: 3px;
  border-radius: 999px;
  background: #2a1007;
  transform-origin: 0 50%;
  transform: rotate(28deg);
}

.roach-phone {
  right: -2px;
  top: 41px;
  width: 12px;
  height: 17px;
  border: 1px solid #111827;
  border-radius: 3px;
  background: linear-gradient(180deg, #29ffc6, #8d5cff);
  transform: rotate(12deg);
}

.roach-phone::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.roach-suitcase {
  left: 2px;
  top: 32px;
  width: 19px;
  height: 18px;
  border: 2px solid #30160a;
  border-radius: 5px;
  background: linear-gradient(180deg, #ff9f43, #ff5f7e);
  animation: suitcase-swing 0.72s ease-in-out infinite;
}

.roach-suitcase::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -7px;
  width: 7px;
  height: 7px;
  border: 2px solid #30160a;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.cockroach-overlay .roach-antenna {
  right: -24px;
  top: 21px;
  width: 36px;
  background: #2a1007;
}

.cockroach-overlay .antenna-bottom {
  top: 29px;
}

.cockroach-overlay .roach-leg {
  width: 34px;
  height: 3px;
  background: #2a1007;
}

.cockroach-overlay .roach-leg::after {
  height: 3px;
  background: #2a1007;
}

.cockroach-overlay .leg-1 { right: 27px; top: 14px; transform: rotate(-36deg); }
.cockroach-overlay .leg-2 { right: 27px; top: 39px; transform: rotate(36deg); }
.cockroach-overlay .leg-3 { right: 43px; top: 18px; transform: rotate(-17deg); animation-delay: -0.1s; }
.cockroach-overlay .leg-4 { right: 43px; top: 35px; transform: rotate(17deg); animation-delay: -0.1s; }
.cockroach-overlay .leg-5 { right: 60px; top: 22px; transform: rotate(8deg); animation-delay: -0.2s; }
.cockroach-overlay .leg-6 { right: 60px; top: 31px; transform: rotate(-8deg); animation-delay: -0.2s; }

.cockroach-overlay.is-waving .roach-arm {
  animation: mascot-wave 0.28s ease-in-out 8;
}

.cockroach-overlay.is-dashing .mascot-body {
  animation-duration: 0.28s;
}

.cockroach-overlay.is-popping .mascot-body {
  animation: mascot-pop 1.2s ease-out 1, roach-body-bob 0.54s ease-in-out 1.2s infinite;
}

@keyframes mascot-wave {
  0%, 100% { transform: rotate(18deg); }
  50% { transform: rotate(-34deg); }
}

@keyframes mascot-pop {
  0% { translate: 0 58px; scale: 0.82; }
  70% { translate: 0 -5px; scale: 1.03; }
  100% { translate: 0 0; scale: 1; }
}

@keyframes suitcase-swing {
  0%, 100% { rotate: -5deg; }
  50% { rotate: 8deg; }
}

@media (max-width: 760px) {
  .cockroach-overlay {
    width: 104px;
    height: 76px;
    scale: 0.88;
  }

  .mascot-bubble {
    max-width: 190px;
    font-size: 11px;
  }
}
.roach-phone::before {
  content: "CAB";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 3px;
  color: #fff;
  font-size: 4px;
  font-weight: 950;
  text-align: center;
  line-height: 1;
}
/* Locality-heavy filters and hourly multi-select. */
.chips {
  scroll-snap-type: x proximity;
}

.chip {
  scroll-snap-align: start;
}

.advanced-filters > label,
.time-range-filter {
  min-width: 0;
}

.time-range-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.form-time-picker {
  grid-template-columns: minmax(0, 1fr);
}

.time-range-filter fieldset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 14px 8px 7px;
  background: rgba(8, 11, 35, 0.42);
}

.time-range-filter legend {
  padding: 0 4px;
  color: rgba(248, 251, 255, 0.58);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.time-picker {
  position: relative;
  min-width: 0;
}

.time-picker-toggle {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}

.time-picker-toggle[aria-expanded="true"] {
  background: rgba(113, 213, 255, 0.22);
  box-shadow: 0 0 0 2px rgba(54, 162, 255, 0.7);
}

.time-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  width: min(282px, calc(100vw - 38px));
  height: min(282px, calc(100vw - 38px));
  border: 1px solid rgba(113, 213, 255, 0.36);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(182, 255, 77, 0.22) 0 4px, transparent 5px),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0 38px, transparent 39px),
    radial-gradient(circle at center, rgba(113, 213, 255, 0.12), rgba(8, 11, 35, 0.98) 68%);
  padding: 0;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.time-picker-menu[hidden] {
  display: none;
}

.time-picker-menu::before,
.time-picker-menu::after {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px dashed rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  pointer-events: none;
}

.time-picker-menu.is-hour-clock::after {
  inset: 60px;
}

.time-picker-menu button {
  position: absolute;
  top: calc(50% + var(--clock-y) - 17px);
  left: calc(50% + var(--clock-x) - 17px);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.time-picker-menu.is-minute-clock button:not(.is-major) {
  top: calc(50% + var(--clock-y) - 5px);
  left: calc(50% + var(--clock-x) - 5px);
  width: 10px;
  height: 10px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.2);
  color: transparent;
  font-size: 0;
}

.time-picker-menu button:hover,
.time-picker-menu button:focus-visible,
.time-picker-menu button.is-selected {
  background: #b6ff4d;
  color: #10171f;
  outline: none;
  box-shadow: 0 0 0 4px rgba(182, 255, 77, 0.18);
}

.time-picker-menu.is-minute-clock button:not(.is-major):hover,
.time-picker-menu.is-minute-clock button:not(.is-major):focus-visible,
.time-picker-menu.is-minute-clock button:not(.is-major).is-selected {
  width: 16px;
  height: 16px;
  top: calc(50% + var(--clock-y) - 8px);
  left: calc(50% + var(--clock-x) - 8px);
  background: #b6ff4d;
}

select option {
  background: #050614;
  color: var(--ink);
}

@media (max-width: 760px) {
  .time-range-filter fieldset {
    min-height: 46px;
  }

  .time-picker-toggle,
  .time-picker-menu button {
    font-size: 13px;
  }
}
@media (max-width: 760px) {
  .flow-chart {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    width: 2px;
    height: 22px;
    justify-self: center;
    background: linear-gradient(180deg, rgba(182, 255, 77, 0.2), rgba(182, 255, 77, 0.92));
  }

  .flow-arrow::after {
    margin: 12px 0 0 -4px;
    transform: rotate(135deg);
  }
}
/* Submit button should look available only when the form is actually submittable. */
.ride-form .primary-button:disabled,
.ride-form .primary-button[aria-disabled="true"] {
  cursor: not-allowed;
  background: linear-gradient(135deg, rgba(255, 159, 67, 0.28), rgba(255, 95, 126, 0.24));
  color: rgba(248, 251, 255, 0.52);
  box-shadow: none;
  filter: grayscale(0.28) saturate(0.62);
  opacity: 0.62;
  transform: none;
}

.ride-form .primary-button:disabled:hover,
.ride-form .primary-button[aria-disabled="true"]:hover {
  transform: none;
}

.ride-form .primary-button:not(:disabled) {
  opacity: 1;
  filter: none;
}

/* Real in-form login callout with an actionable sign-in button. */
.ride-form.auth-locked::before {
  content: none;
  display: none;
}

.auth-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(242, 168, 58, 0.45);
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.92);
  color: #875304;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.auth-callout[hidden] {
  display: none !important;
}

.auth-callout-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding-inline: 12px;
  background: linear-gradient(135deg, #ff9f43, #ff5f7e);
  color: #111827;
}

.field-hint {
  display: block;
  color: #cfd8f3;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .auth-callout {
    display: grid;
  }

  .auth-callout-button {
    width: 100%;
  }
}

/* Review pass: clearer filter recovery, form status, and mobile overlays. */
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #cfd8f3;
  font-size: 10px;
  font-weight: 850;
}

.clear-filter-button,
.time-clear-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #eaffb9;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 950;
}

.clear-filter-button[hidden] {
  display: none !important;
}

.time-clear-button {
  width: 100%;
  min-height: 34px;
  margin-bottom: 4px;
  text-align: left;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: #fff2c5;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.35;
}

.form-status.is-ready {
  color: #dcff7a;
}

.field-hint.is-warning {
  color: #fff2c5;
}

.floating-action.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.request-dialog {
  max-height: min(86vh, 780px);
  overflow: auto;
}

@media (max-width: 760px) {
  .filter-head {
    align-items: flex-start;
  }

  .clear-filter-button {
    flex: 0 0 auto;
  }

  .request-dialog {
    width: min(680px, calc(100vw - 20px));
    max-height: calc(100dvh - 24px);
  }

  .floating-action {
    max-width: calc(100vw - 28px);
    transition: opacity 160ms ease, transform 160ms ease;
  }
}

.contact-pill {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hero-copy h1 .fare-swap {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(10px, 1.8vw, 20px);
  white-space: nowrap;
}

.hero-copy h1 .old-fare {
  position: relative;
  display: inline-block;
  color: rgba(248, 251, 255, 0.62);
}

.hero-copy h1 .old-fare::after {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  top: 54%;
  height: 0.1em;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5f2e, #ffb02e);
  box-shadow: 0 0 0.14em rgba(255, 120, 46, 0.45);
  transform: rotate(-7deg);
  transform-origin: center;
  pointer-events: none;
}

.hero-copy h1 .new-fare {
  display: inline-block;
  color: #b6ff4d;
  text-shadow: 0 0 0.16em rgba(182, 255, 77, 0.3);
}

@media (max-width: 760px) {
  .hero-copy h1 .fare-swap {
    gap: 10px;
  }
}

.filters > .clear-filter-button {
  justify-self: end;
  width: fit-content;
}

.ride-card .impact-row span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 18px rgba(5, 7, 26, 0.22);
}

.ride-card .impact-row span:nth-child(1) {
  background: #d9ff8a;
  color: #203212;
}

.ride-card .impact-row span:nth-child(2) {
  background: #f7fff2;
  color: #26352e;
}

.ride-card .impact-row span:nth-child(3) {
  background: #ffc857;
  color: #3d2600;
  border-color: rgba(255, 232, 174, 0.9);
}

.app-notification {
  position: fixed;
  right: 18px;
  top: 86px;
  z-index: 10020;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: min(420px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid rgba(182, 255, 77, 0.42);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(20, 26, 55, 0.98), rgba(68, 49, 96, 0.98));
  color: #f8fbff;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  animation: notification-pop 240ms ease-out;
}

.app-notification-copy {
  display: grid;
  gap: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.app-notification-copy strong {
  color: #b6ff4d;
  font-size: 12px;
  font-weight: 950;
}

.app-notification-copy span {
  color: #e3e8ff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.app-notification-close {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

@keyframes notification-pop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .app-notification {
    top: auto;
    right: 12px;
    bottom: 92px;
    width: calc(100vw - 24px);
  }
}

.stat-tooltip {
  position: fixed;
  z-index: 10030;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid rgba(182, 255, 77, 0.42);
  border-radius: 10px;
  background: rgba(9, 12, 34, 0.96);
  color: #f8fbff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.35;
  pointer-events: none;
}

.stat-tooltip[hidden] {
  display: none !important;
}

.about-feedback-button {
  width: fit-content;
  margin-top: 14px;
  padding-inline: 18px;
}

.ride-card .destination-sign {
  align-self: start;
  min-height: 58px;
  width: 58px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(64, 54, 101, 0.96), rgba(42, 35, 75, 0.96));
  box-shadow: 0 12px 24px rgba(5, 7, 26, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ride-card .destination-sign img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: saturate(1.15) contrast(1.04) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}

@media (max-width: 760px) {
  .ride-card .destination-sign {
    width: 44px;
    min-height: 44px;
    padding: 5px;
  }

  .ride-card .destination-sign img {
    width: 32px;
    height: 32px;
  }
}

/* Premium visual polish */
:root {
  --premium-bg: #07091a;
  --premium-panel: rgba(22, 24, 49, 0.88);
  --premium-panel-soft: rgba(255, 255, 255, 0.075);
  --premium-panel-lift: rgba(255, 255, 255, 0.115);
  --premium-line: rgba(223, 230, 255, 0.16);
  --premium-line-strong: rgba(223, 230, 255, 0.24);
  --premium-text: #fbfcff;
  --premium-muted: #bfc7dd;
  --premium-cream: #fff3d7;
  --premium-gold: #ffc95d;
  --premium-lime: #c9ff64;
  --premium-mint: #37e9bd;
  --premium-coral: #ff6d75;
  --premium-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --premium-shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.24);
}

body {
  background:
    linear-gradient(180deg, rgba(7, 9, 26, 0.72), rgba(7, 9, 26, 0.94)),
    linear-gradient(120deg, #060817 0%, #15142f 42%, #2a183a 100%);
  letter-spacing: 0;
}

body::before {
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
}

.app-shell {
  max-width: none;
  margin: 0;
}

.topbar {
  padding: 14px clamp(16px, 3vw, 40px);
  background: rgba(6, 8, 25, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 28px rgba(0, 0, 0, 0.28);
}

.brand strong {
  font-size: 20px;
  line-height: 1;
}

.brand small {
  color: #d6dcf0;
  font-size: 13px;
}

.topbar-actions {
  gap: 10px;
}

.nav-button,
.primary-button,
.join-button,
.auth-callout-button,
#logoutButton {
  min-height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffae54 0%, #ff6577 100%);
  color: #101426;
  box-shadow: 0 12px 28px rgba(255, 101, 119, 0.2);
}

.nav-button:hover,
.primary-button:hover,
.join-button:hover,
#logoutButton:hover {
  transform: translateY(-1px);
  filter: saturate(1.06) brightness(1.03);
}

.ghost-button,
.icon-button,
.auth-user,
.connection-pill {
  border: 1px solid var(--premium-line);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-user {
  color: var(--premium-cream);
  background: rgba(255, 201, 93, 0.14);
  border-color: rgba(255, 201, 93, 0.26);
}

.hero-section {
  margin-top: 20px;
  min-height: min(650px, calc(100vh - 96px));
  border: none;
  background:
    linear-gradient(135deg, rgba(17, 21, 49, 0.92), rgba(41, 25, 68, 0.86)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: var(--premium-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.036) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.5), transparent 64%);
}

.hero-copy h1 {
  max-width: 860px;
  color: var(--premium-text);
  text-wrap: balance;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: #dce3f8;
}

.eyebrow {
  color: var(--premium-lime);
  letter-spacing: 0;
}

.hero-copy h1 .old-fare {
  color: rgba(221, 226, 243, 0.55);
}

.hero-copy h1 .new-fare {
  color: var(--premium-lime);
  text-shadow: 0 0 24px rgba(201, 255, 100, 0.22);
}

.hero-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--premium-text);
}

.hero-card {
  align-self: end;
  max-width: 420px;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.065));
  box-shadow: var(--premium-shadow-soft);
}

.runway-glow,
.cab {
  opacity: 0.68;
}

.city-line {
  opacity: 0.65;
}

.workspace {
  gap: clamp(16px, 2.2vw, 28px);
  padding: clamp(16px, 3vw, 34px);
}

.composer-panel,
.board-panel,
.how-card,
.safety-card,
.value-strip article,
.site-footer,
.request-dialog,
.empty-state,
.conversation-panel,
.request-card {
  border-color: var(--premium-line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.055));
  box-shadow: var(--premium-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

.board-panel,
.composer-panel {
  border-radius: 8px;
}

.panel-inner,
.board-panel {
  padding: clamp(20px, 2.7vw, 34px);
}

.visual-strip {
  min-height: 164px;
  filter: saturate(0.95) contrast(1.05);
}

.section-heading h1,
.board-header h2 {
  letter-spacing: 0;
}

.board-header {
  align-items: start;
  gap: 18px;
}

.stats {
  gap: 10px;
}

.stat-card {
  min-height: 42px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.105);
  color: #eef2ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-card strong,
.impact-stat strong {
  color: var(--premium-lime);
}

.filters {
  gap: 14px;
}

input,
select,
textarea {
  min-height: 48px;
  border: 1px solid rgba(224, 230, 255, 0.15);
  border-radius: 8px;
  background: rgba(8, 10, 30, 0.62);
  color: var(--premium-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(224, 230, 255, 0.25);
}

input:focus,
select:focus,
textarea:focus,
.time-range-filter input:focus {
  outline: none;
  border-color: rgba(201, 255, 100, 0.7);
  box-shadow: 0 0 0 3px rgba(201, 255, 100, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

input::placeholder,
textarea::placeholder {
  color: rgba(226, 232, 250, 0.56);
}

input[type="time"] {
  color-scheme: dark;
}

.time-range-filter {
  align-items: stretch;
}

.time-range-filter label {
  position: relative;
}

.time-range-filter label > span {
  position: absolute;
  top: 7px;
  left: 12px;
  z-index: 1;
  color: rgba(226, 232, 250, 0.64);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.time-range-filter input {
  width: 100%;
  padding: 18px 12px 7px;
}

.locality-suggestions {
  border-color: rgba(201, 255, 100, 0.26);
  background: rgba(7, 9, 26, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.locality-suggestions button {
  color: var(--premium-text);
}

.advanced-filters {
  grid-template-columns: minmax(210px, 1.28fr) minmax(130px, 0.72fr) minmax(130px, 0.72fr);
  gap: 10px;
}

.advanced-filters select {
  min-height: 50px;
  padding-inline: 14px;
  font-size: 12px;
}

.clear-filter-button {
  min-height: 38px;
  border-color: rgba(201, 255, 100, 0.25);
  background: rgba(201, 255, 100, 0.11);
  color: #f2ffd2;
}

.ride-list {
  gap: 14px;
}

.ride-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.07)),
    rgba(20, 22, 48, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.ride-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--premium-lime), var(--premium-mint));
  opacity: 0.72;
}

.ride-card:hover {
  border-color: rgba(201, 255, 100, 0.32);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 255, 100, 0.08) inset;
}

.ride-main {
  gap: 18px;
}

.ride-title-row h3 {
  color: var(--premium-text);
}

.ride-meta,
.ride-message,
.contact-line,
.field-hint,
.flow-step small,
.safety-card p,
.value-strip span,
.site-footer p {
  color: var(--premium-muted);
}

.seat-badge {
  background: rgba(201, 255, 100, 0.14);
  color: #efffc7;
  border-color: rgba(201, 255, 100, 0.18);
}

.ride-card .impact-row span {
  border: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.ride-card .impact-row span:nth-child(1) {
  background: linear-gradient(135deg, #dfff8d, #bdfc5d);
}

.ride-card .impact-row span:nth-child(2) {
  background: linear-gradient(135deg, #f7fff4, #dff4ea);
}

.ride-card .impact-row span:nth-child(3) {
  background: linear-gradient(135deg, #ffd978, #ffbe4f);
}

.ride-card .destination-sign {
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(35, 32, 69, 0.98), rgba(25, 24, 52, 0.98));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.flow-chart {
  gap: 12px;
}

.flow-step {
  border-color: rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(135deg, rgba(64, 83, 125, 0.44), rgba(53, 43, 86, 0.58)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.flow-node {
  background: linear-gradient(135deg, var(--premium-lime), var(--premium-mint));
  box-shadow: 0 10px 24px rgba(55, 233, 189, 0.18);
}

.flow-arrow {
  background: linear-gradient(90deg, rgba(201, 255, 100, 0.12), rgba(201, 255, 100, 0.82));
}

.flow-arrow::after {
  border-color: var(--premium-lime);
}

.terms-box,
.auth-callout {
  border-color: rgba(255, 201, 93, 0.32);
  background: linear-gradient(135deg, rgba(255, 243, 215, 0.96), rgba(255, 229, 183, 0.9));
  color: #6e4708;
}

.terms-copy label,
.terms-copy details,
.terms-copy p,
.terms-copy summary,
.auth-callout span {
  color: #6e4708;
}

.request-dialog {
  background: linear-gradient(145deg, rgba(26, 28, 58, 0.98), rgba(24, 22, 48, 0.98));
}

.floating-action {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--premium-lime), var(--premium-mint));
  color: #101426;
  box-shadow: 0 18px 40px rgba(55, 233, 189, 0.28);
}

@media (min-width: 921px) {
  .board-panel {
    min-width: 0;
  }

  .composer-panel {
    align-self: start;
  }
}

@media (max-width: 920px) {
  .advanced-filters {
    grid-template-columns: minmax(0, 1fr) minmax(130px, 0.7fr) minmax(130px, 0.7fr);
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 10px 12px;
  }

  .hero-section {
    margin-top: 10px;
    padding: 42px 0 30px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 12vw, 54px);
    line-height: 0.98;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 17px;
  }

  .workspace {
    padding: 10px 10px 88px;
  }

  .panel-inner,
  .board-panel {
    padding: 18px;
  }

  .board-header {
    gap: 14px;
  }

  .advanced-filters {
    grid-template-columns: 1fr 1fr;
  }

  .time-range-filter {
    grid-column: 1 / -1;
  }

  .filters > .clear-filter-button {
    justify-self: stretch;
    width: 100%;
  }

  .ride-main {
    gap: 14px;
  }

  .ride-card {
    padding: 16px;
  }

  .hero-card {
    max-width: none;
  }
}

@media (max-width: 430px) {
  .advanced-filters {
    grid-template-columns: 1fr;
  }

  .time-range-filter {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    flex-basis: 100%;
  }
}

/* Native Google sign-in treatment */
#loginButton,
#formLoginButton {
  gap: 10px;
  min-height: 42px;
  border: 1px solid #dadce0;
  background: #ffffff;
  color: #3c4043;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.14), 0 1px 3px rgba(60, 64, 67, 0.08);
  font-family: Roboto, Arial, sans-serif;
  font-weight: 600;
}

#loginButton::before,
#formLoginButton::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.72 1.22 9.22 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24s.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3Cpath fill='none' d='M0 0h48v48H0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

#loginButton:hover,
#formLoginButton:hover {
  background: #ffffff;
  color: #202124;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.22), 0 2px 6px rgba(60, 64, 67, 0.16);
  transform: translateY(-1px);
  filter: none;
}

#loginButton:focus-visible,
#formLoginButton:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.24), 0 1px 2px rgba(60, 64, 67, 0.18);
}

#loginButton.account-button {
  max-width: none;
  padding-inline: 14px 16px;
}

@media (max-width: 760px) {
  #loginButton.account-button {
    max-width: none;
    min-height: 38px;
    padding-inline: 11px 12px;
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  #loginButton.account-button {
    width: 100%;
    justify-content: center;
  }
}

/* Responsive refinement: mobile web + laptop */
@media (min-width: 1100px) {
  .app-shell {
    width: 100%;
  }

  .info-sections,
  .value-strip,
  .site-footer {
    margin-inline: clamp(24px, 4vw, 56px);
  }

  .hero-section {
    margin-inline: 0;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    padding: clamp(56px, 6vw, 96px) 0;
  }

  .hero-copy h1 {
    font-size: clamp(64px, 6.3vw, 92px);
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    align-items: start;
    padding-inline: clamp(24px, 4vw, 56px);
  }

  .composer-panel {
    max-height: calc(100vh - 108px);
    overflow: auto;
  }

  .board-header {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1fr);
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .stat-card {
    width: 100%;
  }

  .ride-card {
    padding: 22px;
  }
}

@media (min-width: 761px) and (max-width: 1099px) {
  .topbar {
    align-items: center;
    gap: 14px;
  }

  .topbar-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .hero-section {
    margin-inline: 0;
    padding-inline: 0;
  }

  .hero-copy h1 {
    font-size: clamp(52px, 8vw, 74px);
  }

  .workspace {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }

  .composer-panel {
    position: static;
  }

  .board-panel {
    order: 1;
  }

  .composer-panel {
    order: 2;
  }

  .board-header {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  }
}

@media (max-width: 640px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand small {
    max-width: none;
    font-size: 10px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .topbar-actions .nav-button,
  .topbar-actions .ghost-button,
  .topbar-actions .account-button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding-inline: 10px;
    white-space: normal;
    line-height: 1.12;
  }

  #loginButton.account-button,
  #logoutButton {
    grid-column: 1 / -1;
  }

  .auth-user {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
    max-width: none;
  }

  .hero-section {
    margin-inline: 0;
    padding: 34px 0 28px;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 10.8vw, 48px);
    line-height: 1;
  }

  .hero-copy h1 .fare-swap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    white-space: normal;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions a,
  .ride-form .primary-button {
    width: 100%;
  }

  .info-sections,
  .value-strip,
  .site-footer {
    margin-inline: 10px;
  }

  .workspace {
    padding-inline: 10px;
  }

  .board-panel,
  .panel-inner {
    padding: 16px;
  }

  .board-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .board-header h2,
  .section-heading h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .stat-card {
    min-width: 0;
    width: 100%;
    padding-inline: 8px;
  }

  .advanced-filters {
    grid-template-columns: 1fr;
  }

  .time-range-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row,
  .request-grid {
    grid-template-columns: 1fr;
  }

  .ride-card {
    padding: 15px;
  }

  .ride-main {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .ride-title-row {
    align-items: start;
    gap: 8px;
  }

  .ride-title-row h3 {
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .impact-row {
    gap: 7px;
  }

  .impact-row span {
    max-width: 100%;
    white-space: normal;
  }

  .floating-action {
    left: 10px;
    right: 10px;
    width: auto;
  }
}

@media (max-width: 380px) {
  .topbar-actions {
    grid-template-columns: 1fr;
  }

  .stats,
  .time-range-filter {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 35px;
  }

  .ride-main {
    grid-template-columns: 1fr;
  }

  .ride-card .destination-sign {
    display: none;
  }
}

/* Intentional hero headline wrapping */
.hero-title-main,
.hero-title-fare {
  display: inline;
}

.hero-title-main {
  white-space: nowrap;
}

.hero-title-fare {
  white-space: nowrap;
}

@media (min-width: 1100px) {
  .hero-copy h1 {
    max-width: 1120px;
    font-size: clamp(58px, 5.55vw, 82px);
  }
}

@media (min-width: 641px) and (max-width: 1099px) {
  .hero-section {
    padding-inline: clamp(24px, 4vw, 40px);
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(45px, 7.05vw, 58px);
    line-height: 1.04;
  }

  .hero-title-main,
  .hero-title-fare {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero-title-main,
  .hero-title-fare {
    display: block;
  }

  .hero-title-main,
  .hero-title-fare,
  .hero-copy h1 .fare-swap {
    white-space: normal;
  }

  .hero-copy h1 .fare-swap {
    display: inline-flex;
  }
}

@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: clamp(34px, 10vw, 41px);
  }
}

/* Tablet headline fit refinement */
@media (min-width: 641px) and (max-width: 760px) {
  .hero-copy h1 {
    font-size: clamp(37px, 5.65vw, 42px);
    line-height: 1.08;
  }

  .hero-title-main,
  .hero-title-fare {
    width: 100%;
    max-width: 100%;
  }
}

/* Plane loop: left to right, fade on exit */
.plane-shape {
  top: 4%;
  left: -90px;
  opacity: 0;
  animation: plane-left-to-right 8.5s linear infinite;
  will-change: transform, opacity;
}

@keyframes plane-left-to-right {
  0% {
    opacity: 0;
    transform: translateX(-20px) translateY(18px) rotate(0deg);
  }

  10% {
    opacity: 0.78;
  }

  72% {
    opacity: 0.78;
    transform: translateX(calc(100vw + 70px)) translateY(-18px) rotate(0deg);
  }

  82%,
  100% {
    opacity: 0;
    transform: translateX(calc(100vw + 150px)) translateY(-24px) rotate(0deg);
  }
}

@media (max-width: 640px) {
  .plane-shape {
    top: 2%;
    animation-duration: 7.5s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plane-shape {
    opacity: 0.42;
    animation: none;
    transform: translateX(72vw) translateY(0) rotate(0deg);
  }
}

/* Plane direction + slower travel */
.plane-shape {
  animation-duration: 18s;
  transform-origin: center;
}

@keyframes plane-left-to-right {
  0% {
    opacity: 0;
    transform: translateX(-30px) translateY(18px) scaleX(-1) rotate(0deg);
  }

  10% {
    opacity: 0.78;
  }

  74% {
    opacity: 0.78;
    transform: translateX(calc(100vw + 70px)) translateY(-18px) scaleX(-1) rotate(0deg);
  }

  86%,
  100% {
    opacity: 0;
    transform: translateX(calc(100vw + 150px)) translateY(-24px) scaleX(-1) rotate(0deg);
  }
}

@media (max-width: 640px) {
  .plane-shape {
    animation-duration: 16s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plane-shape {
    transform: translateX(72vw) translateY(0) scaleX(-1) rotate(0deg);
  }
}

/* Correct plane nose direction: pointed side leads left to right */
@keyframes plane-left-to-right {
  0% {
    opacity: 0;
    transform: translateX(-30px) translateY(18px) rotate(0deg);
  }

  10% {
    opacity: 0.78;
  }

  74% {
    opacity: 0.78;
    transform: translateX(calc(100vw + 70px)) translateY(-18px) rotate(0deg);
  }

  86%,
  100% {
    opacity: 0;
    transform: translateX(calc(100vw + 150px)) translateY(-24px) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .plane-shape {
    transform: translateX(72vw) translateY(0) rotate(0deg);
  }
}

/* Plane landing path: top-right toward BLR */
.plane-shape {
  top: 2%;
  left: auto;
  right: -86px;
  opacity: 0;
  animation: plane-top-right-to-blr 12s ease-in-out infinite;
  transform-origin: center;
}

@keyframes plane-top-right-to-blr {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(-8px) rotate(158deg);
  }

  12% {
    opacity: 0.78;
  }

  68% {
    opacity: 0.78;
    transform: translateX(clamp(-760px, -58vw, -340px)) translateY(clamp(92px, 15vw, 154px)) rotate(158deg);
  }

  82%,
  100% {
    opacity: 0;
    transform: translateX(clamp(-760px, -58vw, -340px)) translateY(clamp(92px, 15vw, 154px)) rotate(158deg) scale(0.96);
  }
}

@media (max-width: 640px) {
  .plane-shape {
    top: 1%;
    right: -76px;
    animation-duration: 11s;
  }

  @keyframes plane-top-right-to-blr {
    0% {
      opacity: 0;
      transform: translateX(0) translateY(-8px) rotate(158deg);
    }

    12% {
      opacity: 0.76;
    }

    68% {
      opacity: 0.76;
      transform: translateX(-48vw) translateY(106px) rotate(158deg);
    }

    82%,
    100% {
      opacity: 0;
      transform: translateX(-48vw) translateY(106px) rotate(158deg) scale(0.96);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .plane-shape {
    opacity: 0.42;
    animation: none;
    transform: translateX(clamp(-760px, -58vw, -340px)) translateY(clamp(92px, 15vw, 154px)) rotate(158deg);
  }
}

/* Create form required fields + clickable CTA state */
.ride-form label:has([required]) > span::after,
.ride-form .terms-copy > label::after {
  content: " *";
  color: var(--premium-gold, #ffc95d);
  font-weight: 950;
}

.ride-form .primary-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(135, 142, 166, 0.28), rgba(86, 91, 116, 0.34));
  color: rgba(248, 251, 255, 0.5);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
  filter: saturate(0.7);
}

.ride-form .primary-button:disabled,
.ride-form .primary-button[aria-disabled="true"] {
  background: linear-gradient(135deg, rgba(135, 142, 166, 0.24), rgba(86, 91, 116, 0.3));
  color: rgba(248, 251, 255, 0.48);
  box-shadow: none;
}

.ride-form .primary-button:not(:disabled),
.ride-form .primary-button[aria-disabled="false"] {
  border-color: rgba(201, 255, 100, 0.38);
  background: linear-gradient(135deg, #c9ff64 0%, #37e9bd 100%);
  color: #101426;
  box-shadow: 0 18px 40px rgba(55, 233, 189, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  cursor: pointer;
  opacity: 1;
  filter: none;
}

.ride-form .primary-button:not(:disabled):hover,
.ride-form .primary-button[aria-disabled="false"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(55, 233, 189, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* Ride card essentials: prioritize host/travel details over secondary impact chips. */
.ride-brief {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 6px;
  margin: 0;
}

.ride-brief span {
  min-width: 0;
  border: none;
  border-radius: 6px;
  padding: 6px 8px;
  background: rgba(8, 123, 115, 0.08);
  color: var(--ink);
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ride-brief small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ride-title-row h3 {
  font-weight: 560;
}

.seat-badge,
.ride-card .impact-row span {
  font-weight: 500;
}

.ride-card .impact-row span,
.ride-card .impact-row span:nth-child(1),
.ride-card .impact-row span:nth-child(2),
.ride-card .impact-row span:nth-child(3) {
  border: 1px solid rgba(255, 255, 255, 0.105);
  background: rgba(255, 255, 255, 0.065);
  color: rgba(248, 251, 255, 0.76);
  box-shadow: none;
}

@media (max-width: 760px) {
  .ride-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Premium itinerary card pass */
.ride-card {
  border: 1px solid rgba(184, 132, 104, 0.34);
  background:
    radial-gradient(circle at 88% 12%, rgba(232, 216, 170, 0.06), transparent 28%),
    repeating-radial-gradient(ellipse at 86% 8%, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 12px),
    linear-gradient(145deg, rgba(34, 37, 62, 0.98), rgba(26, 29, 50, 0.98));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.ride-card::before {
  width: 2px;
  background: linear-gradient(180deg, rgba(183, 255, 126, 0.8), rgba(67, 224, 189, 0.74));
}

.ride-card::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 34px;
  width: 28px;
  height: 28px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42) 0 16%, transparent 17% 100%);
  opacity: 0.4;
  transform: rotate(45deg);
  pointer-events: none;
}

.ride-card:hover {
  border-color: rgba(232, 216, 170, 0.42);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(232, 216, 170, 0.08) inset;
}

.ride-main {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
}

.ride-card .destination-sign {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.ride-card .destination-sign img {
  width: 30px;
  height: 30px;
  margin: 13px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.38));
}

.ride-title-row {
  align-items: center;
  margin-bottom: 12px;
}

.ride-title-row h3 {
  color: rgba(255, 243, 211, 0.96);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.58), 0 0 22px rgba(232, 216, 170, 0.12);
}

.seat-badge {
  position: relative;
  min-width: 116px;
  border: 0;
  background: transparent;
  color: rgba(205, 255, 196, 0.9);
  padding: 0 0 12px;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  text-shadow: 0 0 12px rgba(111, 255, 160, 0.34);
}

.seat-badge::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4fe27f, #d1cc69 55%, #ff596f);
  box-shadow: 0 0 12px rgba(79, 226, 127, 0.36);
}

.ride-brief {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.ride-brief .brief-tile {
  position: relative;
  min-height: 70px;
  border: 1px solid rgba(232, 216, 170, 0.2);
  border-radius: 8px;
  padding: 14px 54px 12px 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.028)),
    rgba(18, 21, 39, 0.48);
  color: rgba(255, 249, 231, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 28px rgba(0, 0, 0, 0.13);
}

.ride-brief .brief-tile small {
  margin: 0 0 8px;
  color: rgba(238, 230, 203, 0.66);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
}

.ride-brief .brief-tile b {
  display: block;
  color: rgba(255, 248, 231, 0.94);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.08;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.ride-brief .brief-tile::after {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(232, 235, 248, 0.72);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}

.ride-brief .brief-terminal::after { content: "T"; }
.ride-brief .brief-landing::after { content: ">"; transform: rotate(-12deg); }
.ride-brief .brief-trolley::after { content: "[]"; letter-spacing: -3px; }

.ride-brief .brief-host em {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.065);
  color: rgba(248, 251, 255, 0.72);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  white-space: nowrap;
}

.ride-meta {
  color: rgba(248, 251, 255, 0.78);
  font-size: 16px;
  font-weight: 400;
}

.ride-card .impact-row {
  gap: 10px;
}

.ride-card .impact-row span,
.ride-card .impact-row span:nth-child(1),
.ride-card .impact-row span:nth-child(2),
.ride-card .impact-row span:nth-child(3) {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 251, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px rgba(0, 0, 0, 0.16);
  font-size: 12px;
  font-weight: 400;
}

.ride-card .impact-row span:nth-child(1) {
  border-color: rgba(255, 214, 133, 0.45);
  color: rgba(255, 228, 166, 0.94);
}

.ride-card .impact-row span:nth-child(2) {
  border-color: rgba(112, 232, 139, 0.4);
  color: rgba(188, 255, 200, 0.92);
}

@media (max-width: 760px) {
  .ride-main {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .ride-title-row {
    display: grid;
    gap: 8px;
  }

  .ride-title-row h3 {
    font-size: 29px;
  }

  .seat-badge {
    justify-self: start;
  }

  .ride-brief .brief-tile {
    min-height: 64px;
    padding: 12px 42px 11px 14px;
  }

  .ride-brief .brief-tile b {
    font-size: 19px;
  }

  .ride-brief .brief-host em {
    display: none;
  }
}

/* Ride card type scale: 2px reduced pass */
.ride-card .ride-title-row h3 { font-size: clamp(24px, 5vw, 38px); }
.ride-card .seat-badge { font-size: 13px; }
.ride-card .brief-tile small { font-size: 10px; }
.ride-card .brief-tile b { font-size: 22px; }
.ride-card .brief-tile::after { font-size: 26px; }
.ride-card .brief-host em { font-size: 10px; }
.ride-card .ride-meta { font-size: 16px; }
.ride-card .impact-row span { font-size: 12px; }

@media (max-width: 760px) {
  .ride-card .ride-title-row h3 { font-size: 24px; }
  .ride-card .brief-tile b { font-size: 19px; }
}

/* Cohesive premium travel theme */
:root {
  color-scheme: dark;
  --bg: #090b16;
  --surface: rgba(28, 31, 52, 0.92);
  --surface-2: rgba(35, 39, 63, 0.86);
  --ink: rgba(255, 248, 231, 0.94);
  --muted: rgba(222, 226, 242, 0.66);
  --line: rgba(232, 216, 170, 0.16);
  --teal: #43e0bd;
  --teal-dark: #95f2dd;
  --saffron: #e8d8aa;
  --coral: #c78377;
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
  --theme-bg: #090b16;
  --theme-panel: rgba(28, 31, 52, 0.92);
  --theme-panel-soft: rgba(35, 39, 63, 0.78);
  --theme-panel-deep: rgba(18, 21, 39, 0.72);
  --theme-text: rgba(255, 248, 231, 0.94);
  --theme-muted: rgba(222, 226, 242, 0.66);
  --theme-faint: rgba(222, 226, 242, 0.46);
  --theme-line: rgba(232, 216, 170, 0.16);
  --theme-line-strong: rgba(232, 216, 170, 0.28);
  --theme-gold: #e8d8aa;
  --theme-mint: #43e0bd;
  --theme-lime: #b7ff7e;
  --theme-coral: #c78377;
}

body {
  background:
    linear-gradient(180deg, rgba(18, 21, 39, 0.9), rgba(9, 11, 22, 1) 420px),
    var(--theme-bg);
  color: var(--theme-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  background:
    repeating-radial-gradient(ellipse at 82% 12%, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, rgba(232, 216, 170, 0.045), transparent 340px);
  opacity: 0.78;
}

.app-shell {
  background: transparent;
}

.topbar {
  border-bottom: 1px solid rgba(232, 216, 170, 0.14);
  background: rgba(9, 11, 22, 0.88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--theme-text);
}

.brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.brand strong {
  color: var(--theme-text);
  font-weight: 650;
}

.brand small,
.auth-user,
.connection-pill {
  color: var(--theme-muted);
}

.nav-button,
.ghost-button,
.primary-button,
.join-button,
.icon-button,
.floating-action,
.clear-filter-button,
.account-button,
.auth-callout-button {
  border-radius: 8px;
  letter-spacing: 0;
  box-shadow: none;
}

.nav-button,
.ghost-button,
.topbar-actions .nav-button,
.topbar-actions .ghost-button {
  border: 1px solid rgba(232, 216, 170, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 248, 231, 0.9);
}

.nav-button:hover,
.ghost-button:hover,
.topbar-actions .nav-button:hover,
.topbar-actions .ghost-button:hover {
  border-color: rgba(232, 216, 170, 0.34);
  background: rgba(255, 255, 255, 0.085);
  color: var(--theme-text);
  transform: translateY(-1px);
}

.primary-button,
.join-button,
.floating-action,
.ride-form .primary-button:not(:disabled),
.ride-form .primary-button[aria-disabled="false"] {
  border: 1px solid rgba(183, 255, 126, 0.26);
  background: linear-gradient(135deg, rgba(183, 255, 126, 0.94), rgba(67, 224, 189, 0.92));
  color: #101426;
  font-weight: 650;
  box-shadow: 0 16px 36px rgba(67, 224, 189, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.join-button:hover,
.floating-action:hover,
.ride-form .primary-button:not(:disabled):hover,
.ride-form .primary-button[aria-disabled="false"]:hover {
  box-shadow: 0 18px 40px rgba(67, 224, 189, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.ride-form .primary-button:disabled,
.ride-form .primary-button[aria-disabled="true"] {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(222, 226, 242, 0.42);
  box-shadow: none;
}

#loginButton,
#formLoginButton {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.96);
  color: #2f3440;
}

#logoutButton {
  border: 1px solid rgba(232, 216, 170, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 248, 231, 0.9);
}

.hero-section,
.info-sections,
.value-strip,
.board-panel,
.safety-card,
.composer-panel,
.request-dialog,
.site-footer,
.how-card,
.search-card,
.form-card,
.empty-state,
.terms-box,
.auth-callout {
  border: 1px solid var(--theme-line);
  background:
    radial-gradient(circle at 88% 10%, rgba(232, 216, 170, 0.055), transparent 30%),
    linear-gradient(145deg, rgba(35, 39, 63, 0.92), rgba(22, 25, 45, 0.94));
  color: var(--theme-text);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-section {
  overflow: hidden;
  border-color: rgba(184, 132, 104, 0.28);
}

.hero-section::before,
.hero-sky {
  opacity: 0.52;
}

.hero-copy .eyebrow,
.eyebrow {
  color: rgba(232, 216, 170, 0.72);
  font-weight: 500;
  text-transform: uppercase;
}

.hero-copy h1,
h1,
h2,
.section-heading h1,
.section-heading h2 {
  color: rgba(255, 243, 211, 0.96);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42), 0 0 22px rgba(232, 216, 170, 0.1);
}

.hero-copy > p:not(.eyebrow),
.section-heading p,
.ride-meta,
.ride-message,
.contact-line,
.safety-card p,
.value-strip span,
.site-footer p,
.flow-step small,
.field-hint,
.form-status,
.empty-state p {
  color: var(--theme-muted);
  font-weight: 400;
}

.hero-copy h1 .new-fare {
  color: rgba(183, 255, 126, 0.95);
  text-shadow: 0 0 18px rgba(183, 255, 126, 0.18);
}

.hero-copy h1 .old-fare {
  color: rgba(222, 226, 242, 0.46);
}

.hero-card {
  border: 1px solid rgba(232, 216, 170, 0.18);
  background: rgba(18, 21, 39, 0.64);
  color: var(--theme-text);
}

.hero-card strong,
.value-strip strong,
.safety-card strong,
.how-card strong,
.flow-step strong {
  color: rgba(255, 243, 211, 0.94);
  font-weight: 560;
}

.workspace,
.board-layout,
.main-content {
  color: var(--theme-text);
}

.filters,
.advanced-filters,
.search-shell,
.filter-panel {
  border-color: rgba(232, 216, 170, 0.14);
  background: rgba(18, 21, 39, 0.46);
}

input,
select,
textarea,
.time-picker-button,
.filters input,
.filters select,
.advanced-filters select,
.advanced-filters input {
  border: 1px solid rgba(232, 216, 170, 0.16);
  background: rgba(9, 11, 22, 0.46);
  color: var(--theme-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

input::placeholder,
textarea::placeholder {
  color: rgba(222, 226, 242, 0.38);
}

input:focus,
select:focus,
textarea:focus,
.time-picker-button:focus-visible {
  border-color: rgba(232, 216, 170, 0.42);
  box-shadow: 0 0 0 3px rgba(232, 216, 170, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

label,
.request-details dt,
.terms-copy label,
.terms-copy summary {
  color: rgba(238, 230, 203, 0.68);
  font-weight: 500;
}

.locality-suggestions,
.time-picker-menu {
  border: 1px solid rgba(232, 216, 170, 0.16);
  background: rgba(16, 19, 35, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.locality-suggestions button,
.time-picker-menu button {
  color: var(--theme-text);
}

.locality-suggestions button:hover,
.time-picker-menu button:hover,
.time-picker-menu button.is-selected {
  background: rgba(232, 216, 170, 0.1);
}

.stat-card,
.chip,
.clear-filter-button,
.request-card,
.conversation-section,
.conversation-message,
.notification-popup,
.stat-tooltip {
  border: 1px solid rgba(232, 216, 170, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: var(--theme-text);
  box-shadow: none;
}

.stat-card strong,
.impact-stat strong {
  color: rgba(255, 243, 211, 0.94);
  font-weight: 560;
}

.info-sections,
.value-strip {
  gap: 12px;
}

.value-strip article,
.info-sections article,
.safety-card,
.how-card {
  border: 1px solid rgba(232, 216, 170, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.flow-node {
  border: 1px solid rgba(183, 255, 126, 0.28);
  background: rgba(183, 255, 126, 0.12);
  color: rgba(213, 255, 184, 0.92);
}

.request-dialog::backdrop {
  background: rgba(3, 5, 14, 0.74);
  backdrop-filter: blur(8px);
}

.request-card.is-approved {
  border-color: rgba(67, 224, 189, 0.34);
}

.request-card.is-pending {
  border-color: rgba(232, 216, 170, 0.22);
}

.request-card.is-disapproved {
  border-color: rgba(199, 131, 119, 0.3);
}

::-webkit-scrollbar-thumb {
  background: rgba(232, 216, 170, 0.28);
}

@media (max-width: 760px) {
  .topbar {
    background: rgba(9, 11, 22, 0.94);
  }

  .hero-section,
  .info-sections,
  .value-strip,
  .board-panel,
  .safety-card,
  .composer-panel,
  .request-dialog,
  .site-footer {
    border-color: rgba(232, 216, 170, 0.14);
  }

  .floating-action {
    border: 1px solid rgba(183, 255, 126, 0.28);
    background: linear-gradient(135deg, rgba(183, 255, 126, 0.96), rgba(67, 224, 189, 0.94));
    color: #101426;
  }
}

/* Premium hero flight */
.hero-sky {
  opacity: 0.64;
}

.plane-line {
  display: block;
  position: absolute;
  top: 13%;
  right: 8%;
  width: min(42vw, 420px);
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(232, 216, 170, 0.32), rgba(67, 224, 189, 0.16), transparent);
  filter: blur(0.2px);
  opacity: 0.52;
  transform: rotate(-9deg);
  transform-origin: right center;
}

.plane-shape {
  top: 4%;
  right: -96px;
  width: 92px;
  height: 58px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 150'%3E%3Cdefs%3E%3ClinearGradient id='body' x1='28' y1='24' x2='222' y2='126' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23fff6df'/%3E%3Cstop offset='.42' stop-color='%23d9ddea'/%3E%3Cstop offset='1' stop-color='%238f98ad'/%3E%3C/linearGradient%3E%3ClinearGradient id='gold' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23f3dfaa'/%3E%3Cstop offset='1' stop-color='%23b88468'/%3E%3C/linearGradient%3E%3Cfilter id='soft' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeDropShadow dx='0' dy='8' stdDeviation='8' flood-color='%23050a16' flood-opacity='.45'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23soft)'%3E%3Cpath fill='url(%23body)' d='M232 55c16 9 16 27 0 37l-31 19-3 24-18 8-9-24-56 18-18-8 38-37-78 3-43 27-14-5 26-35-25-26 13-6 42 18 78-4-41-34 18-9 58 27 31-13c12-5 23-4 32 2Z'/%3E%3Cpath fill='url(%23gold)' opacity='.78' d='M140 65c34-16 63-23 87-10-28 0-55 9-86 25l-34 18-10-5 43-28Z'/%3E%3Cpath fill='%23ffffff' opacity='.5' d='M58 72 137 68l-23 12-60 3z'/%3E%3Ccircle cx='161' cy='71' r='4' fill='%23151a2b' opacity='.72'/%3E%3Ccircle cx='178' cy='68' r='4' fill='%23151a2b' opacity='.7'/%3E%3Ccircle cx='195' cy='66' r='4' fill='%23151a2b' opacity='.62'/%3E%3Ccircle cx='224' cy='76' r='3' fill='%2343e0bd' opacity='.95'/%3E%3Cpath fill='%23f7ecd2' opacity='.54' d='M216 50c7 4 11 9 12 14-10-5-22-7-37-6 10-7 18-10 25-8Z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  filter: drop-shadow(0 0 14px rgba(232, 216, 170, 0.16)) drop-shadow(0 12px 20px rgba(0, 0, 0, 0.34));
  animation: premium-flight-path 14s cubic-bezier(0.42, 0, 0.18, 1) infinite;
  transform-origin: center;
}

@keyframes premium-flight-path {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(-18px) rotate(154deg) scale(0.9);
  }

  14% {
    opacity: 0.82;
  }

  56% {
    opacity: 0.88;
    transform: translateX(clamp(-720px, -54vw, -330px)) translateY(clamp(72px, 12vw, 128px)) rotate(154deg) scale(1);
  }

  76% {
    opacity: 0.46;
    transform: translateX(clamp(-760px, -58vw, -350px)) translateY(clamp(96px, 15vw, 154px)) rotate(154deg) scale(0.96);
  }

  100% {
    opacity: 0;
    transform: translateX(clamp(-760px, -58vw, -350px)) translateY(clamp(96px, 15vw, 154px)) rotate(154deg) scale(0.92);
  }
}

@media (max-width: 640px) {
  .plane-line {
    top: 10%;
    right: 2%;
    width: 58vw;
  }

  .plane-shape {
    top: 3%;
    right: -88px;
    width: 78px;
    height: 50px;
    animation-duration: 13s;
  }

  @keyframes premium-flight-path {
    0% {
      opacity: 0;
      transform: translateX(0) translateY(-14px) rotate(154deg) scale(0.9);
    }

    14% {
      opacity: 0.8;
    }

    58% {
      opacity: 0.84;
      transform: translateX(-49vw) translateY(96px) rotate(154deg) scale(1);
    }

    78%,
    100% {
      opacity: 0;
      transform: translateX(-52vw) translateY(116px) rotate(154deg) scale(0.94);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .plane-shape {
    opacity: 0.62;
    animation: none;
    transform: translateX(clamp(-620px, -48vw, -300px)) translateY(clamp(76px, 12vw, 126px)) rotate(154deg) scale(0.96);
  }
}

/* Ride card expand affordance */
.ride-card::after {
  content: "?";
  position: absolute;
  right: 24px;
  bottom: 26px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(232, 216, 170, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 248, 231, 0.86);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.9;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.ride-card.is-expanded::after {
  content: "^";
}

.ride-card:hover::after {
  border-color: rgba(232, 216, 170, 0.36);
  background: rgba(255, 255, 255, 0.105);
  color: rgba(255, 248, 231, 0.96);
}

@media (max-width: 760px) {
  .ride-card::after {
    right: 18px;
    bottom: 22px;
    width: 28px;
    height: 28px;
    font-size: 20px;
  }
}

/* Final card/header cleanup from review comments */
.hero-actions .hero-secondary {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

.ride-card .ride-title-row h3 {
  font-size: 28px;
}

.ride-card .brief-tile b {
  font-size: 20px;
}

.ride-brief .brief-terminal::after,
.ride-brief .brief-landing::after,
.ride-brief .brief-trolley::after,
.ride-card .brief-tile::after {
  content: none;
  display: none;
}

.ride-brief .brief-tile {
  padding-right: 18px;
}

.ride-brief .brief-host em {
  display: none;
}

@media (max-width: 760px) {
  .ride-card .ride-title-row h3 {
    font-size: 24px;
  }

  .ride-card .brief-tile b {
    font-size: 18px;
  }
}

/* Expand affordance: diagonal expand icon */
.ride-card::after {
  content: "?";
  border-color: rgba(67, 224, 189, 0.26);
  background: rgba(67, 224, 189, 0.105);
  color: rgba(190, 255, 235, 0.95);
  font-size: 21px;
  text-shadow: none;
}

.ride-card.is-expanded::after {
  content: "?";
}

.ride-card:hover::after {
  border-color: rgba(67, 224, 189, 0.42);
  background: rgba(67, 224, 189, 0.16);
  color: rgba(232, 255, 247, 0.98);
}

@media (max-width: 760px) {
  .ride-card::after {
    font-size: 20px;
  }
}

/* Reliable SVG expand affordance, avoids glyph encoding issues */
.ride-card::after {
  content: "";
  border-color: rgba(67, 224, 189, 0.3);
  background-color: rgba(67, 224, 189, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bef5eb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H3v5'/%3E%3Cpath d='M3 3l7 7'/%3E%3Cpath d='M16 21h5v-5'/%3E%3Cpath d='M21 21l-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  font-size: 0;
}

.ride-card.is-expanded::after {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bef5eb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3v7H3'/%3E%3Cpath d='M3 10l7-7'/%3E%3Cpath d='M14 21v-7h7'/%3E%3Cpath d='M21 14l-7 7'/%3E%3C/svg%3E");
}

.ride-card:hover::after {
  border-color: rgba(67, 224, 189, 0.5);
  background-color: rgba(67, 224, 189, 0.18);
}

/* Expand affordance: simple V mark from reference */
.ride-card::after {
  content: "";
  right: 24px;
  bottom: 26px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(232, 216, 170, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 43%, rgba(232, 255, 247, 0.94) 44% 55%, transparent 56%) 8px 9px / 13px 13px no-repeat,
    linear-gradient(-45deg, transparent 43%, rgba(232, 255, 247, 0.94) 44% 55%, transparent 56%) 9px 9px / 13px 13px no-repeat,
    rgba(67, 224, 189, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.ride-card.is-expanded::after {
  background:
    linear-gradient(-45deg, transparent 43%, rgba(232, 255, 247, 0.94) 44% 55%, transparent 56%) 8px 7px / 13px 13px no-repeat,
    linear-gradient(45deg, transparent 43%, rgba(232, 255, 247, 0.94) 44% 55%, transparent 56%) 9px 7px / 13px 13px no-repeat,
    rgba(67, 224, 189, 0.12);
}

.ride-card:hover::after {
  border-color: rgba(67, 224, 189, 0.46);
  background-color: rgba(67, 224, 189, 0.18);
}

@media (max-width: 760px) {
  .ride-card::after {
    right: 18px;
    bottom: 22px;
    width: 28px;
    height: 28px;
    background-position: 7px 8px, 8px 8px, 0 0;
  }

  .ride-card.is-expanded::after {
    background-position: 7px 6px, 8px 6px, 0 0;
  }
}

/* Expand affordance: clean chevron button */
.ride-card::after {
  content: "";
  right: 24px;
  bottom: 26px;
  display: block;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(232, 216, 170, 0.24);
  border-radius: 999px;
  background-color: rgba(67, 224, 189, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23e8fff7' stroke-width='2.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.18);
  opacity: 0.95;
  transform: none;
  pointer-events: none;
}

.ride-card.is-expanded::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 15l6-6 6 6' stroke='%23e8fff7' stroke-width='2.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
}

.ride-card:hover::after {
  border-color: rgba(67, 224, 189, 0.48);
  background-color: rgba(67, 224, 189, 0.18);
}

@media (max-width: 760px) {
  .ride-card::after {
    right: 18px;
    bottom: 22px;
    width: 28px;
    height: 28px;
    background-size: 17px 17px;
  }
}

/* Floating card-edge expand control */
.ride-card {
  overflow: visible;
}

.ride-card::after {
  content: "";
  top: 50%;
  right: -14px;
  bottom: auto;
  display: block;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(232, 216, 170, 0.28);
  border-radius: 999px;
  background-color: rgba(10, 13, 25, 0.92);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23e8fff7' stroke-width='2.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0.96;
  transform: translateY(-50%);
  pointer-events: none;
}

.ride-card.is-expanded::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 15l6-6 6 6' stroke='%23e8fff7' stroke-width='2.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
}

.ride-card:hover::after {
  border-color: rgba(67, 224, 189, 0.5);
  background-color: rgba(12, 26, 32, 0.96);
}

@media (max-width: 760px) {
  .ride-card {
    overflow: hidden;
  }

  .ride-card::after {
    top: auto;
    right: 14px;
    bottom: 16px;
    width: 30px;
    height: 30px;
    background-size: 17px 17px;
    transform: none;
  }
}

/* Real expand/collapse button, outside card content */
.ride-card::after {
  content: none !important;
  display: none !important;
}

.ride-card {
  overflow: visible;
}

.ride-toggle {
  position: absolute;
  top: 50%;
  right: -16px;
  z-index: 3;
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(232, 216, 170, 0.3);
  border-radius: 999px;
  padding: 0;
  background-color: rgba(10, 13, 25, 0.96);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23e8fff7' stroke-width='2.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-50%);
}

.ride-toggle[aria-expanded="true"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 15l6-6 6 6' stroke='%23e8fff7' stroke-width='2.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
}

.ride-toggle:hover,
.ride-toggle:focus-visible {
  border-color: rgba(67, 224, 189, 0.52);
  background-color: rgba(12, 26, 32, 0.98);
  outline: none;
}

@media (max-width: 760px) {
  .ride-card {
    overflow: visible;
  }

  .ride-toggle {
    right: -13px;
    width: 30px;
    height: 30px;
    background-size: 16px 16px;
  }
}

/* Let the top guide flow fill laptop/desktop width without changing mobile. */
@media (min-width: 761px) {
  .info-sections.guide-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-top .how-card {
    width: 100%;
  }

  .guide-top .flow-chart {
    grid-template-columns:
      minmax(220px, 1fr)
      clamp(34px, 4vw, 70px)
      minmax(220px, 1fr)
      clamp(34px, 4vw, 70px)
      minmax(220px, 1fr);
    width: 100%;
  }

  .guide-top .flow-step {
    width: 100%;
  }
}

/* Slightly narrower top guide block on laptop/desktop. */
@media (min-width: 761px) {
  .info-sections.guide-top {
    width: min(calc(100% - clamp(24px, 6vw, 68px)), 1260px);
    margin-left: auto;
    margin-right: auto;
  }
}

/* User-provided hero flight animation. */
.hero-flight-video {
  position: absolute;
  right: clamp(16px, 5vw, 72px);
  bottom: clamp(70px, 12vw, 150px);
  z-index: 0;
  width: min(42vw, 520px);
  max-height: min(46vh, 340px);
  object-fit: contain;
  border-radius: 8px;
  opacity: 0.72;
  filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.34)) saturate(1.08) contrast(1.04);
  mix-blend-mode: screen;
}

.hero-sky .plane-line,
.hero-sky .plane-shape {
  display: none !important;
}

@media (max-width: 760px) {
  .hero-flight-video {
    right: 50%;
    bottom: 108px;
    width: min(78vw, 360px);
    max-height: 220px;
    opacity: 0.48;
    transform: translateX(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-flight-video {
    display: none;
  }
}

/* Crop the supplied MP4 to use it as flight motion only; the live hero heading stays canonical. */
.hero-flight-video {
  right: clamp(18px, 7vw, 96px);
  bottom: clamp(178px, 24vw, 300px);
  width: min(30vw, 360px);
  height: min(18vw, 210px);
  max-height: none;
  object-fit: cover;
  object-position: 78% 34%;
  border-radius: 999px;
  opacity: 0.58;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.28)) saturate(1.08) contrast(1.1);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 48%, rgba(0, 0, 0, 0.72) 64%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, #000 48%, rgba(0, 0, 0, 0.72) 64%, transparent 76%);
}

@media (max-width: 760px) {
  .hero-flight-video {
    right: clamp(18px, 8vw, 34px);
    bottom: 190px;
    width: min(46vw, 210px);
    height: 130px;
    object-position: 78% 34%;
    opacity: 0.36;
    transform: none;
  }
}

/* Hero video animation removed. */
.hero-flight-video {
  display: none !important;
}

/* Heading-aligned flight animation: lands near the word Bangalore. */
.hero-copy {
  isolation: isolate;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy > p:not(.eyebrow),
.hero-actions {
  position: relative;
  z-index: 2;
}

.hero-heading-flight {
  position: absolute;
  top: clamp(18px, 3.6vw, 54px);
  left: clamp(190px, 29vw, 430px);
  z-index: 1;
  width: min(30vw, 390px);
  height: min(15vw, 190px);
  border: 0;
  border-radius: 999px;
  object-fit: cover;
  object-position: 72% 42%;
  opacity: 0.68;
  pointer-events: none;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.28)) saturate(1.08) contrast(1.08);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse at 62% 46%, #000 0 48%, rgba(0, 0, 0, 0.7) 62%, transparent 76%);
  mask-image: radial-gradient(ellipse at 62% 46%, #000 0 48%, rgba(0, 0, 0, 0.7) 62%, transparent 76%);
}

@media (max-width: 760px) {
  .hero-heading-flight {
    top: 34px;
    left: min(46vw, 210px);
    width: min(48vw, 230px);
    height: 118px;
    opacity: 0.46;
    object-position: 72% 42%;
  }
}

@media (max-width: 430px) {
  .hero-heading-flight {
    top: 42px;
    left: 44vw;
    width: 48vw;
    height: 96px;
    opacity: 0.38;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-heading-flight {
    display: none;
  }
}

/* Make the heading flight arrive at Bangalore instead of starting there. */
.hero-heading-flight {
  animation: heading-flight-land 5.8s cubic-bezier(0.34, 0.02, 0.18, 1) infinite;
  transform-origin: 64% 50%;
}

@keyframes heading-flight-land {
  0% {
    opacity: 0;
    transform: translateX(clamp(220px, 28vw, 430px)) translateY(-34px) scale(0.92);
  }

  18% {
    opacity: 0.62;
  }

  68% {
    opacity: 0.7;
    transform: translateX(0) translateY(0) scale(1);
  }

  82% {
    opacity: 0.66;
    transform: translateX(0) translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateX(0) translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .hero-heading-flight {
    animation-name: heading-flight-land-mobile;
  }

  @keyframes heading-flight-land-mobile {
    0% {
      opacity: 0;
      transform: translateX(32vw) translateY(-24px) scale(0.92);
    }

    18% {
      opacity: 0.42;
    }

    68% {
      opacity: 0.46;
      transform: translateX(0) translateY(0) scale(1);
    }

    82% {
      opacity: 0.42;
      transform: translateX(0) translateY(0) scale(1);
    }

    100% {
      opacity: 0;
      transform: translateX(0) translateY(0) scale(1);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-heading-flight {
    animation: none;
  }
}

/* Anchor the flight animation to the Bangalore word and keep it stationary. */
.bangalore-word {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.bangalore-word .hero-heading-flight {
  position: absolute;
  top: auto;
  right: auto;
  bottom: 72%;
  left: 50%;
  z-index: 3;
  width: min(26vw, 330px);
  height: min(13vw, 160px);
  max-height: none;
  border: 0;
  border-radius: 999px;
  object-fit: cover;
  object-position: 72% 42%;
  opacity: 0.64;
  pointer-events: none;
  transform: translateX(-50%);
  animation: none !important;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.28)) saturate(1.08) contrast(1.08);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse at 62% 46%, #000 0 48%, rgba(0, 0, 0, 0.7) 62%, transparent 76%);
  mask-image: radial-gradient(ellipse at 62% 46%, #000 0 48%, rgba(0, 0, 0, 0.7) 62%, transparent 76%);
}

@media (max-width: 760px) {
  .bangalore-word .hero-heading-flight {
    bottom: 78%;
    width: min(50vw, 220px);
    height: 110px;
    opacity: 0.46;
    transform: translateX(-50%);
    animation: none !important;
  }
}

@media (max-width: 430px) {
  .bangalore-word .hero-heading-flight {
    bottom: 82%;
    width: 54vw;
    height: 92px;
    opacity: 0.4;
  }
}

/* Final responsive hardening: mobile web + desktop web. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
}

.app-shell {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.topbar {
  width: 100%;
}

.topbar-actions {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-actions .nav-button,
.topbar-actions .ghost-button,
.topbar-actions .account-button {
  min-width: 0;
  text-align: center;
}

.hero-section,
.info-sections,
.value-strip,
.workspace,
.site-footer {
  width: auto;
  max-width: 100%;
}

.hero-section {
  min-height: auto;
}

.hero-copy,
.hero-copy h1,
.hero-title-main,
.hero-title-fare {
  min-width: 0;
  overflow-wrap: normal;
}

.hero-title-main,
.hero-title-fare {
  display: block;
}

.bangalore-word {
  line-height: 1;
}

@media (min-width: 1100px) {
  .topbar {
    gap: 18px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .topbar-actions {
    flex: 1 1 auto;
  }

  .hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    align-items: end;
    margin-inline: clamp(24px, 4vw, 56px);
    padding: clamp(56px, 6vw, 88px) clamp(44px, 6vw, 84px);
  }

  .hero-copy h1 {
    max-width: 920px;
    font-size: clamp(58px, 5.4vw, 78px);
    line-height: 0.98;
  }

  .hero-copy > p:not(.eyebrow) {
    max-width: 720px;
  }

  .workspace {
    display: grid;
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(22px, 3vw, 36px);
    padding-inline: clamp(24px, 4vw, 56px);
  }

  .composer-panel {
    order: 1;
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 116px);
    overflow: auto;
  }

  .board-panel {
    order: 2;
    min-width: 0;
  }

  .board-header {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1fr);
    gap: 18px;
    align-items: start;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-top .flow-chart {
    grid-template-columns: minmax(190px, 1fr) clamp(28px, 3vw, 54px) minmax(190px, 1fr) clamp(28px, 3vw, 54px) minmax(190px, 1fr);
  }
}

@media (min-width: 761px) and (max-width: 1099px) {
  .app-shell {
    max-width: 100%;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    flex: 1 1 420px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    margin-inline: 14px;
    padding: 48px clamp(24px, 5vw, 48px) 36px;
  }

  .hero-card {
    max-width: 560px;
  }

  .hero-copy h1 {
    max-width: 780px;
    font-size: clamp(46px, 7vw, 64px);
  }

  .workspace {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }

  .composer-panel,
  .board-panel {
    position: static;
    order: initial;
  }

  .board-header {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    max-width: 100%;
  }

  .topbar {
    position: sticky;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 12px;
  }

  .brand-mark {
    flex: 0 0 auto;
  }

  .brand strong {
    font-size: 22px;
  }

  .brand small {
    font-size: 12px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .topbar-actions .nav-button,
  .topbar-actions .ghost-button,
  .topbar-actions .account-button {
    width: 100%;
    min-height: 44px;
    padding: 10px 8px;
    white-space: normal;
    line-height: 1.12;
  }

  #loginButton,
  #logoutButton,
  .auth-user,
  .connection-pill {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .hero-section {
    display: block;
    margin-inline: 10px;
    padding: 34px 18px 28px;
    border-radius: 8px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(34px, 10.2vw, 46px);
    line-height: 1.02;
  }

  .hero-copy > p:not(.eyebrow) {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.45;
  }

  .bangalore-word .hero-heading-flight {
    bottom: 84%;
    width: min(44vw, 190px);
    height: 86px;
    opacity: 0.34;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-card {
    margin-top: 28px;
  }

  .info-sections,
  .value-strip,
  .site-footer {
    margin-inline: 10px;
  }

  .info-sections,
  .guide-top,
  .value-strip {
    grid-template-columns: 1fr !important;
  }

  .guide-top .flow-chart {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guide-top .flow-arrow {
    width: 2px;
    height: 22px;
    justify-self: center;
    transform: rotate(90deg);
  }

  .workspace {
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px 10px 88px;
  }

  .composer-panel,
  .board-panel {
    position: static;
    min-width: 0;
  }

  .panel-inner,
  .board-panel {
    padding: 16px;
  }

  .board-header,
  .advanced-filters,
  .form-row,
  .request-grid {
    grid-template-columns: 1fr !important;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .stat-card {
    width: 100%;
    min-width: 0;
  }

  .filters input,
  .filters select,
  input,
  select,
  textarea {
    width: 100%;
    min-width: 0;
  }

  .ride-card {
    padding: 14px;
    overflow: visible;
  }

  .ride-main {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 10px;
  }

  .ride-card .destination-sign {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }

  .ride-card .destination-sign img {
    width: 24px;
    height: 24px;
    margin: 10px;
  }

  .ride-title-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }

  .ride-card .ride-title-row h3 {
    font-size: clamp(23px, 7.2vw, 28px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .seat-badge {
    justify-self: start;
    min-width: 106px;
  }

  .ride-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ride-brief .brief-tile {
    min-height: 58px;
    padding: 10px 12px;
  }

  .ride-brief .brief-tile b {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .ride-brief .brief-tile::after,
  .ride-brief .brief-host em {
    display: none;
  }

  .ride-meta {
    font-size: 14px;
    line-height: 1.35;
  }

  .impact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-right: 36px;
  }

  .ride-card .impact-row span {
    max-width: 100%;
    white-space: normal;
    font-size: 11px;
  }

  .ride-toggle {
    right: -10px;
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .floating-action {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    min-height: 54px;
  }
}

@media (max-width: 430px) {
  .topbar-actions,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(31px, 10.8vw, 40px);
  }

  .bangalore-word .hero-heading-flight {
    bottom: 88%;
    width: 46vw;
    height: 72px;
    opacity: 0.3;
  }

  .ride-main {
    grid-template-columns: 38px minmax(0, 1fr) !important;
  }

  .ride-card .destination-sign {
    width: 38px;
    height: 38px;
  }

  .ride-card .destination-sign img {
    width: 22px;
    height: 22px;
    margin: 8px;
  }

  .ride-brief {
    grid-template-columns: 1fr;
  }
}

/* Final premium/elegant UI pass. */
:root {
  --premium-bg: #070914;
  --premium-panel: rgba(23, 26, 44, 0.88);
  --premium-panel-soft: rgba(255, 255, 255, 0.055);
  --premium-line: rgba(232, 216, 170, 0.16);
  --premium-line-strong: rgba(232, 216, 170, 0.28);
  --premium-cream: rgba(255, 246, 222, 0.96);
  --premium-muted: rgba(220, 225, 239, 0.72);
  --premium-gold: #e8d8aa;
  --premium-mint: #43e0bd;
  --premium-lime: #b7ff7e;
  --premium-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
  --premium-inner: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

body {
  background:
    radial-gradient(circle at 20% -8%, rgba(232, 216, 170, 0.1), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(67, 224, 189, 0.09), transparent 26%),
    linear-gradient(180deg, #080a15 0%, #0b0e1b 45%, #070914 100%);
  color: var(--premium-cream);
  text-rendering: optimizeLegibility;
}

.app-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 360px);
}

.topbar {
  border-bottom: 1px solid rgba(232, 216, 170, 0.12);
  background: rgba(8, 10, 21, 0.78);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px) saturate(1.12);
}

.brand-mark {
  border: 1px solid rgba(232, 216, 170, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), var(--premium-inner);
}

.brand strong {
  color: var(--premium-cream);
  font-weight: 650;
  letter-spacing: 0;
}

.brand small,
.auth-user,
.connection-pill {
  color: var(--premium-muted);
  font-weight: 400;
}

.topbar-actions .nav-button,
.topbar-actions .ghost-button,
.topbar-actions .account-button,
.hero-secondary,
.clear-filter-button,
.stat-card,
.time-picker-button {
  border: 1px solid rgba(232, 216, 170, 0.16);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 246, 222, 0.92);
  box-shadow: var(--premium-inner);
  font-weight: 540;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.topbar-actions .nav-button:hover,
.topbar-actions .ghost-button:hover,
.topbar-actions .account-button:hover,
.hero-secondary:hover,
.clear-filter-button:hover,
.stat-card:hover {
  border-color: rgba(232, 216, 170, 0.34);
  background: rgba(255, 255, 255, 0.085);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24), var(--premium-inner);
}

.primary-button,
.floating-action,
.ride-form .primary-button:not(:disabled),
.auth-callout-button {
  border: 0;
  background: linear-gradient(135deg, rgba(183, 255, 126, 0.96), rgba(67, 224, 189, 0.95));
  color: #09101a;
  box-shadow: 0 18px 42px rgba(67, 224, 189, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  font-weight: 700;
}

.primary-button:hover,
.floating-action:hover,
.ride-form .primary-button:not(:disabled):hover,
.auth-callout-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 52px rgba(67, 224, 189, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.hero-section,
.composer-panel,
.board-panel,
.info-sections article,
.value-strip article,
.safety-card,
.site-footer,
.request-dialog,
.empty-state,
.conversation-panel,
.request-card,
.terms-box,
.auth-callout {
  border: 1px solid var(--premium-line);
  background:
    radial-gradient(circle at 86% 8%, rgba(232, 216, 170, 0.055), transparent 30%),
    linear-gradient(145deg, rgba(29, 32, 53, 0.9), rgba(16, 19, 35, 0.94));
  box-shadow: var(--premium-shadow), var(--premium-inner);
}

.hero-section {
  border-color: rgba(184, 132, 104, 0.3);
  background:
    radial-gradient(circle at 75% 22%, rgba(232, 216, 170, 0.08), transparent 31%),
    radial-gradient(circle at 20% 78%, rgba(67, 224, 189, 0.07), transparent 30%),
    linear-gradient(145deg, rgba(30, 33, 55, 0.95), rgba(15, 18, 34, 0.97));
}

.hero-copy .eyebrow,
.eyebrow {
  color: rgba(232, 216, 170, 0.7);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.section-heading h1,
.board-header h2,
.ride-title-row h3 {
  color: var(--premium-cream);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42), 0 0 28px rgba(232, 216, 170, 0.08);
}

.hero-copy > p:not(.eyebrow),
.section-heading p,
.ride-meta,
.ride-message,
.contact-line,
.safety-card p,
.value-strip span,
.site-footer p,
.flow-step small,
.field-hint,
.empty-state p {
  color: var(--premium-muted);
}

.hero-card {
  border-color: rgba(232, 216, 170, 0.18);
  background: rgba(9, 12, 25, 0.56);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26), var(--premium-inner);
}

input,
select,
textarea,
.filters input,
.filters select,
.advanced-filters select,
.advanced-filters input {
  border: 1px solid rgba(232, 216, 170, 0.14);
  background: rgba(7, 9, 20, 0.56);
  color: var(--premium-cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

input:hover,
select:hover,
textarea:hover,
.filters input:hover,
.filters select:hover {
  border-color: rgba(232, 216, 170, 0.24);
}

input:focus,
select:focus,
textarea:focus,
.time-picker-button:focus-visible {
  border-color: rgba(67, 224, 189, 0.44);
  box-shadow: 0 0 0 3px rgba(67, 224, 189, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

label,
.request-details dt,
.terms-copy label,
.terms-copy summary {
  color: rgba(232, 216, 170, 0.68);
  font-weight: 520;
}

.filters,
.advanced-filters,
.search-shell,
.filter-panel {
  border-color: rgba(232, 216, 170, 0.12);
  background: rgba(8, 10, 22, 0.36);
}

.flow-step {
  border-color: rgba(232, 216, 170, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.028));
  box-shadow: var(--premium-inner);
}

.flow-node {
  border: 1px solid rgba(183, 255, 126, 0.32);
  background: rgba(183, 255, 126, 0.13);
  color: rgba(218, 255, 190, 0.94);
  box-shadow: 0 10px 24px rgba(183, 255, 126, 0.12), var(--premium-inner);
}

.ride-card {
  border-color: rgba(232, 216, 170, 0.2);
  background:
    radial-gradient(circle at 90% 10%, rgba(232, 216, 170, 0.065), transparent 28%),
    repeating-radial-gradient(ellipse at 86% 8%, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 12px),
    linear-gradient(145deg, rgba(30, 33, 55, 0.98), rgba(19, 22, 39, 0.98));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.31), var(--premium-inner);
}

.ride-card:hover {
  border-color: rgba(232, 216, 170, 0.34);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(232, 216, 170, 0.06) inset;
}

.ride-brief .brief-tile {
  border-color: rgba(232, 216, 170, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.022));
  box-shadow: var(--premium-inner);
}

.ride-brief .brief-tile small {
  color: rgba(232, 216, 170, 0.58);
}

.ride-brief .brief-tile b {
  color: rgba(255, 248, 231, 0.95);
}

.seat-badge {
  color: rgba(205, 255, 196, 0.92);
}

.ride-card .impact-row span,
.chip,
.stat-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.065);
}

.ride-toggle {
  border-color: rgba(232, 216, 170, 0.32);
  background-color: rgba(8, 10, 21, 0.96);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34), var(--premium-inner);
}

.ride-toggle:hover,
.ride-toggle:focus-visible {
  border-color: rgba(67, 224, 189, 0.58);
  background-color: rgba(10, 24, 31, 0.98);
}

::-webkit-scrollbar-thumb {
  background: rgba(232, 216, 170, 0.26);
  border-radius: 999px;
}

@media (max-width: 760px) {
  .hero-section,
  .composer-panel,
  .board-panel,
  .info-sections article,
  .value-strip article,
  .ride-card {
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3), var(--premium-inner);
  }

  .topbar {
    background: rgba(8, 10, 21, 0.9);
  }

  .hero-copy h1,
  .section-heading h1,
  .board-header h2 {
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42);
  }
}

/* Header one-line actions + occupancy-aware seat badge. */
.topbar-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.topbar-actions::-webkit-scrollbar {
  display: none;
}

.topbar-actions .nav-button,
.topbar-actions .ghost-button,
.topbar-actions .account-button {
  flex: 0 0 auto;
  width: auto !important;
  min-width: max-content;
  white-space: nowrap !important;
}

.auth-user,
.connection-pill {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 2px;
  }

  .topbar-actions .nav-button,
  .topbar-actions .ghost-button,
  .topbar-actions .account-button,
  #loginButton,
  #logoutButton {
    grid-column: auto !important;
    width: auto !important;
    min-height: 42px;
    min-width: max-content;
    padding-inline: 16px;
  }
}

.seat-badge {
  --seat-fill: 0%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(96, 242, 159, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 82, 102, 0.9) 0 var(--seat-fill), rgba(92, 231, 147, 0.24) var(--seat-fill) 100%),
    rgba(14, 25, 26, 0.78) !important;
  color: rgba(226, 255, 228, 0.96) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px rgba(0, 0, 0, 0.16);
}

.seat-badge::after {
  background: none !important;
  box-shadow: none !important;
}

.seat-badge.is-full {
  border-color: rgba(255, 82, 102, 0.62);
  color: rgba(255, 239, 241, 0.98) !important;
}

/* Mobile-first polish: treat phones as the primary CabRoach surface. */
@media (max-width: 760px) {
  html {
    scroll-padding-top: 92px;
  }

  body {
    -webkit-text-size-adjust: 100%;
  }

  .app-shell {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .topbar {
    gap: 7px;
    padding: calc(8px + env(safe-area-inset-top)) 10px 8px;
  }

  .brand {
    gap: 9px;
    min-width: 0;
  }

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

  .brand strong {
    font-size: 19px;
    line-height: 1;
  }

  .brand small {
    max-width: 220px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-actions {
    gap: 7px;
    margin-inline: -10px;
    padding: 0 10px 2px;
    scroll-padding-inline: 10px;
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 26px), transparent 100%);
  }

  .topbar-actions .nav-button,
  .topbar-actions .ghost-button,
  .topbar-actions .account-button,
  #loginButton,
  #logoutButton {
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 12px;
  }

  .auth-user,
  .connection-pill {
    min-height: 34px;
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 12px;
  }

  .hero-section {
    min-height: calc(100svh - 132px);
    margin: 8px 8px 0;
    padding: 22px 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero-copy .eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 9.3vw, 38px);
    line-height: 1.03;
    margin-bottom: 12px;
  }

  .hero-copy h1 .fare-swap {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
  }

  .hero-copy h1 .old-fare {
    font-size: 0.72em;
  }

  .hero-copy h1 .new-fare {
    font-size: 0.94em;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.38;
    margin-bottom: 14px;
  }

  .hero-actions {
    gap: 9px;
  }

  .hero-actions a,
  .primary-button,
  .ride-form .primary-button {
    min-height: 48px;
    padding-block: 13px;
    border-radius: 10px;
  }

  .hero-card {
    margin-top: 16px;
    padding: 12px 13px;
    gap: 2px;
  }

  .hero-card strong {
    font-size: 16px;
  }

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

  .hero-sky {
    opacity: 0.64;
  }

  .bangalore-word .hero-heading-flight {
    bottom: 92%;
    width: min(38vw, 142px);
    height: 58px;
    opacity: 0.24;
  }

  .info-sections {
    margin: 10px 8px 0;
    gap: 10px;
  }

  .how-card,
  .safety-card,
  .value-strip article {
    padding: 14px;
  }

  .guide-top .flow-chart {
    gap: 8px;
  }

  .flow-step {
    min-height: 0;
    padding: 11px;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
  }

  .flow-node {
    width: 32px;
    height: 32px;
  }

  .flow-step strong {
    font-size: 14px;
  }

  .flow-step small {
    font-size: 12px;
    line-height: 1.3;
  }

  .workspace {
    gap: 10px;
    padding: 10px 8px 78px;
  }

  .board-panel {
    order: 1;
  }

  .composer-panel {
    order: 2;
  }

  .panel-inner,
  .board-panel {
    padding: 14px;
    border-radius: 8px;
  }

  .section-heading h1,
  .board-header h2 {
    font-size: clamp(26px, 7.6vw, 34px);
    line-height: 1.04;
  }

  .stats {
    gap: 8px;
  }

  .stat-card {
    min-height: 64px;
    padding: 10px;
    font-size: 12px;
    line-height: 1.2;
  }

  .stat-card strong {
    font-size: 20px;
    line-height: 1.05;
  }

  .filters {
    gap: 9px;
    padding: 10px;
    border-radius: 8px;
  }

  .advanced-filters {
    gap: 8px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .time-range-filter {
    padding: 10px;
    border-radius: 8px;
  }

  .time-range-filter fieldset {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .filters input,
  .filters select,
  .advanced-filters select,
  .advanced-filters input,
  .time-picker-toggle,
  input,
  select,
  textarea {
    min-height: 46px;
    font-size: 16px;
    border-radius: 8px;
  }

  textarea {
    min-height: 92px;
  }

  .clear-filter-button {
    min-height: 44px;
    border-radius: 8px;
  }

  .ride-form {
    gap: 12px;
  }

  .ride-form label {
    gap: 6px;
  }

  .terms-box {
    padding: 11px;
    align-items: start;
  }

  .terms-box input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-height: 22px;
    margin-top: 1px;
  }

  .ride-list {
    gap: 12px;
  }

  .ride-card {
    padding: 13px 12px 56px;
    border-radius: 8px;
  }

  .ride-main {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 9px;
  }

  .ride-card .destination-sign {
    width: 40px;
    height: 40px;
  }

  .ride-card .destination-sign img {
    width: 22px;
    height: 22px;
    margin: 9px;
  }

  .ride-card .ride-title-row h3 {
    font-size: clamp(22px, 6.6vw, 26px);
    line-height: 1.05;
  }

  .seat-badge {
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    padding: 7px 10px;
    font-size: 12px;
  }

  .ride-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .ride-brief .brief-tile {
    min-height: 54px;
    padding: 9px 10px;
  }

  .ride-brief .brief-tile small {
    font-size: 9px;
  }

  .ride-brief .brief-tile b {
    font-size: 17px;
    line-height: 1.05;
  }

  .ride-message,
  .contact-line {
    font-size: 13px;
    line-height: 1.4;
  }

  .ride-actions {
    margin-top: 12px;
  }

  .join-button,
  .request-button {
    min-height: 46px;
    border-radius: 8px;
  }

  .comment-form {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .ride-toggle {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
  }

  .empty-state {
    padding: 18px 14px;
  }

  .floating-action {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    min-height: 52px;
    border-radius: 12px;
    font-size: 15px;
    z-index: 70;
  }

  .request-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100svh - 20px);
    padding: 14px;
    border-radius: 10px;
  }
}

@media (max-width: 430px) {
  .hero-section {
    min-height: calc(100svh - 122px);
  }

  .hero-copy h1 {
    font-size: clamp(29px, 9.1vw, 34px);
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 13px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ride-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .stats,
  .ride-brief,
  .time-range-filter fieldset {
    grid-template-columns: 1fr;
  }

  .brand small {
    max-width: 180px;
  }
}

/* Mobile journey fix: get riders to the board faster. */
@media (max-width: 760px) {
  .hero-section {
    min-height: min(560px, calc(100svh - 190px));
  }

  .guide-top {
    display: none;
  }

  .workspace {
    padding-top: 8px;
  }

  .board-panel {
    scroll-margin-top: 104px;
  }
}

@media (max-width: 430px) {
  .hero-section {
    min-height: min(520px, calc(100svh - 176px));
  }
}

/* Seat occupancy: keep the elegant underline, fill only the underline by capacity used. */
.seat-badge {
  --seat-fill: 0%;
  position: relative;
  overflow: visible;
  min-width: 116px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: rgba(205, 255, 196, 0.92) !important;
  padding: 0 0 12px;
  font-weight: 400;
  text-align: center;
  text-shadow: 0 0 12px rgba(111, 255, 160, 0.34);
  box-shadow: none !important;
}

.seat-badge::before,
.seat-badge::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  pointer-events: none;
}

.seat-badge::before {
  right: 4px;
  background: rgba(205, 255, 196, 0.16);
}

.seat-badge::after {
  width: max(10px, calc((100% - 8px) * var(--seat-fill) / 100%));
  max-width: calc(100% - 8px);
  background: linear-gradient(90deg, #4fe27f 0%, #d1cc69 58%, #ff596f 100%) !important;
  box-shadow: 0 0 12px rgba(79, 226, 127, 0.36) !important;
}

.seat-badge.is-full {
  color: rgba(255, 239, 241, 0.98) !important;
  text-shadow: 0 0 12px rgba(255, 89, 111, 0.28);
}

.seat-badge.is-full::after {
  box-shadow: 0 0 12px rgba(255, 89, 111, 0.34) !important;
}

@media (max-width: 760px) {
  .seat-badge {
    min-width: 90px;
    width: fit-content;
    padding: 0 0 11px;
    font-size: 13px;
  }
}

/* Seat underline refinement: empty stays green; filled percentage gets the gradient overlay. */
.seat-badge::before {
  right: 4px;
  background: linear-gradient(90deg, rgba(79, 226, 127, 0.9), rgba(79, 226, 127, 0.48)) !important;
  box-shadow: 0 0 12px rgba(79, 226, 127, 0.28) !important;
}

.seat-badge::after {
  width: var(--seat-fill) !important;
  max-width: calc(100% - 8px);
  min-width: 0;
  background: linear-gradient(90deg, #4fe27f 0%, #d1cc69 58%, #ff596f 100%) !important;
  box-shadow: 0 0 12px rgba(255, 190, 112, 0.3) !important;
}

.seat-badge[style*="--seat-fill: 0%"]::after {
  width: 0 !important;
  box-shadow: none !important;
}

/* Seat underline uses scale for exact percentage of the rail. */
.seat-badge::after {
  left: 4px;
  right: 4px;
  width: auto !important;
  max-width: none;
  min-width: 0;
  transform: scaleX(var(--seat-fill-ratio, 0));
  transform-origin: left center;
}

/* Premium light website branch. Scoped to light.html only. */
body.light-theme {
  --light-bg: #f5f7f1;
  --light-ink: #172026;
  --light-muted: #61706e;
  --light-panel: rgba(255, 255, 250, 0.88);
  --light-panel-solid: #fffffb;
  --light-line: rgba(24, 48, 46, 0.12);
  --light-line-strong: rgba(24, 48, 46, 0.2);
  --light-gold: #b98735;
  --light-jade: #0c9f82;
  --light-jade-soft: rgba(12, 159, 130, 0.12);
  --light-coral: #d76754;
  --light-shadow: 0 24px 70px rgba(31, 45, 41, 0.12);
  --light-inner: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 16% -8%, rgba(185, 135, 53, 0.14), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(12, 159, 130, 0.12), transparent 26%),
    linear-gradient(180deg, #fbfbf4 0%, #f3f6ed 45%, #edf3ef 100%);
  color: var(--light-ink);
}

body.light-theme::before {
  background:
    linear-gradient(rgba(23, 32, 38, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 38, 0.028) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.55;
}

body.light-theme .app-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 420px);
}

body.light-theme .topbar {
  border-bottom: 1px solid rgba(24, 48, 46, 0.1);
  background: rgba(255, 255, 250, 0.76);
  box-shadow: 0 16px 48px rgba(31, 45, 41, 0.1);
  backdrop-filter: blur(22px) saturate(1.08);
}

body.light-theme .brand-mark {
  border-color: rgba(24, 48, 46, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(31, 45, 41, 0.1), var(--light-inner);
}

body.light-theme .brand strong,
body.light-theme .hero-copy h1,
body.light-theme .section-heading h1,
body.light-theme .board-header h2,
body.light-theme .ride-title-row h3 {
  color: var(--light-ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.light-theme .brand small,
body.light-theme .auth-user,
body.light-theme .connection-pill,
body.light-theme .hero-copy > p:not(.eyebrow),
body.light-theme .section-heading p,
body.light-theme .ride-meta,
body.light-theme .ride-message,
body.light-theme .contact-line,
body.light-theme .safety-card p,
body.light-theme .value-strip span,
body.light-theme .site-footer p,
body.light-theme .flow-step small,
body.light-theme .field-hint,
body.light-theme .empty-state p {
  color: var(--light-muted);
}

body.light-theme .eyebrow,
body.light-theme .hero-copy .eyebrow,
body.light-theme label,
body.light-theme .request-details dt,
body.light-theme .terms-copy label,
body.light-theme .terms-copy summary {
  color: rgba(126, 92, 35, 0.78);
}

body.light-theme .hero-section,
body.light-theme .composer-panel,
body.light-theme .board-panel,
body.light-theme .info-sections article,
body.light-theme .value-strip article,
body.light-theme .safety-card,
body.light-theme .site-footer,
body.light-theme .request-dialog,
body.light-theme .empty-state,
body.light-theme .conversation-panel,
body.light-theme .request-card,
body.light-theme .terms-box,
body.light-theme .auth-callout {
  border: 1px solid var(--light-line);
  background:
    radial-gradient(circle at 92% 8%, rgba(185, 135, 53, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 251, 0.94), rgba(246, 249, 242, 0.9));
  box-shadow: var(--light-shadow), var(--light-inner);
}

body.light-theme .hero-section {
  border-color: rgba(185, 135, 53, 0.22);
  background:
    radial-gradient(circle at 78% 18%, rgba(185, 135, 53, 0.16), transparent 31%),
    radial-gradient(circle at 18% 76%, rgba(12, 159, 130, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 251, 0.96), rgba(239, 246, 240, 0.94));
}

body.light-theme .hero-sky {
  opacity: 0.46;
  filter: saturate(0.9) contrast(0.92);
}

body.light-theme .hero-card {
  border-color: rgba(24, 48, 46, 0.12);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 42px rgba(31, 45, 41, 0.1), var(--light-inner);
}

body.light-theme .hero-copy h1 .old-fare {
  color: rgba(92, 104, 103, 0.62);
}

body.light-theme .hero-copy h1 .old-fare::after {
  background: linear-gradient(90deg, #f15a24, #ff9f1c);
  box-shadow: 0 0 0.12em rgba(241, 90, 36, 0.28);
}

body.light-theme .hero-copy h1 .new-fare,
body.light-theme .stat-card strong,
body.light-theme .flow-node {
  color: var(--light-jade);
}

body.light-theme .topbar-actions .nav-button,
body.light-theme .topbar-actions .ghost-button,
body.light-theme .topbar-actions .account-button,
body.light-theme .hero-secondary,
body.light-theme .clear-filter-button,
body.light-theme .stat-card,
body.light-theme .time-picker-button {
  border: 1px solid rgba(24, 48, 46, 0.13);
  background: rgba(255, 255, 255, 0.74);
  color: #233230;
  box-shadow: var(--light-inner), 0 10px 28px rgba(31, 45, 41, 0.07);
}

body.light-theme .topbar-actions .nav-button:hover,
body.light-theme .topbar-actions .ghost-button:hover,
body.light-theme .topbar-actions .account-button:hover,
body.light-theme .hero-secondary:hover,
body.light-theme .clear-filter-button:hover,
body.light-theme .stat-card:hover {
  border-color: rgba(12, 159, 130, 0.34);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(31, 45, 41, 0.12), var(--light-inner);
}

body.light-theme .primary-button,
body.light-theme .floating-action,
body.light-theme .ride-form .primary-button:not(:disabled),
body.light-theme .auth-callout-button {
  background: linear-gradient(135deg, #b5f082 0%, #35d4b6 52%, #12a789 100%);
  color: #09211d;
  box-shadow: 0 20px 48px rgba(12, 159, 130, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

body.light-theme input,
body.light-theme select,
body.light-theme textarea,
body.light-theme .filters input,
body.light-theme .filters select,
body.light-theme .advanced-filters select,
body.light-theme .advanced-filters input {
  border: 1px solid rgba(24, 48, 46, 0.13);
  background: rgba(255, 255, 255, 0.76);
  color: var(--light-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.light-theme input::placeholder,
body.light-theme textarea::placeholder {
  color: rgba(97, 112, 110, 0.68);
}

body.light-theme input:hover,
body.light-theme select:hover,
body.light-theme textarea:hover,
body.light-theme .filters input:hover,
body.light-theme .filters select:hover {
  border-color: rgba(12, 159, 130, 0.26);
}

body.light-theme input:focus,
body.light-theme select:focus,
body.light-theme textarea:focus,
body.light-theme .time-picker-button:focus-visible {
  border-color: rgba(12, 159, 130, 0.46);
  box-shadow: 0 0 0 3px rgba(12, 159, 130, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.light-theme .filters,
body.light-theme .advanced-filters,
body.light-theme .search-shell,
body.light-theme .filter-panel {
  border-color: rgba(24, 48, 46, 0.09);
  background: rgba(255, 255, 255, 0.46);
}

body.light-theme .flow-step,
body.light-theme .ride-brief .brief-tile {
  border-color: rgba(24, 48, 46, 0.11);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(246, 249, 242, 0.64));
  box-shadow: var(--light-inner);
}

body.light-theme .flow-node {
  border-color: rgba(12, 159, 130, 0.24);
  background: rgba(12, 159, 130, 0.1);
  box-shadow: 0 10px 24px rgba(12, 159, 130, 0.1), var(--light-inner);
}

body.light-theme .ride-card {
  border-color: rgba(24, 48, 46, 0.14);
  background:
    radial-gradient(circle at 88% 8%, rgba(185, 135, 53, 0.1), transparent 28%),
    repeating-radial-gradient(ellipse at 86% 8%, rgba(23, 32, 38, 0.035) 0 1px, transparent 1px 12px),
    linear-gradient(145deg, rgba(255, 255, 252, 0.98), rgba(242, 247, 241, 0.96));
  box-shadow: 0 22px 58px rgba(31, 45, 41, 0.12), var(--light-inner);
}

body.light-theme .ride-card:hover {
  border-color: rgba(12, 159, 130, 0.26);
  box-shadow: 0 28px 70px rgba(31, 45, 41, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.76) inset;
}

body.light-theme .ride-card .destination-sign {
  border-color: rgba(24, 48, 46, 0.12);
  background: rgba(255, 255, 255, 0.68);
}

body.light-theme .ride-brief .brief-tile small {
  color: rgba(126, 92, 35, 0.66);
}

body.light-theme .ride-brief .brief-tile b {
  color: #27312f;
}

body.light-theme .ride-card .impact-row span,
body.light-theme .chip,
body.light-theme .stat-card {
  border-color: rgba(24, 48, 46, 0.12);
  background: rgba(255, 255, 255, 0.62);
  color: #2a3937;
}

body.light-theme .seat-badge {
  color: #176d58 !important;
  text-shadow: none;
}

body.light-theme .seat-badge::before {
  background: linear-gradient(90deg, rgba(12, 159, 130, 0.8), rgba(12, 159, 130, 0.36)) !important;
  box-shadow: 0 0 12px rgba(12, 159, 130, 0.2) !important;
}

body.light-theme .seat-badge::after {
  background: linear-gradient(90deg, #0c9f82 0%, #c5ad52 58%, #d76754 100%) !important;
}

body.light-theme .seat-badge.is-full {
  color: #a23f35 !important;
}

body.light-theme .ride-toggle {
  border-color: rgba(24, 48, 46, 0.16);
  background-color: rgba(255, 255, 252, 0.94);
  box-shadow: 0 14px 32px rgba(31, 45, 41, 0.14), var(--light-inner);
}

body.light-theme .ride-toggle:hover,
body.light-theme .ride-toggle:focus-visible {
  border-color: rgba(12, 159, 130, 0.42);
  background-color: #ffffff;
}

body.light-theme .request-dialog::backdrop {
  background: rgba(28, 38, 36, 0.32);
  backdrop-filter: blur(12px);
}

body.light-theme .locality-suggestions,
body.light-theme .time-picker-menu {
  border-color: rgba(24, 48, 46, 0.14);
  background: rgba(255, 255, 252, 0.98);
  box-shadow: 0 22px 52px rgba(31, 45, 41, 0.16);
}

body.light-theme .locality-suggestions button,
body.light-theme .time-picker-menu button {
  color: var(--light-ink);
}

body.light-theme .time-picker-menu button:hover,
body.light-theme .time-picker-menu button.is-selected {
  background: rgba(12, 159, 130, 0.12);
  color: #075f50;
}

body.light-theme ::-webkit-scrollbar-thumb {
  background: rgba(24, 48, 46, 0.22);
}

@media (max-width: 760px) {
  body.light-theme .topbar {
    background: rgba(255, 255, 250, 0.9);
  }

  body.light-theme .hero-section,
  body.light-theme .composer-panel,
  body.light-theme .board-panel,
  body.light-theme .info-sections article,
  body.light-theme .value-strip article,
  body.light-theme .ride-card {
    box-shadow: 0 16px 44px rgba(31, 45, 41, 0.12), var(--light-inner);
  }
}

/* Dark-only mobile hardening: compact cards, larger taps, no visible light switch. */
@media (max-width: 760px) {
  body:not(.light-theme) .topbar {
    min-height: 0;
    padding: calc(7px + env(safe-area-inset-top)) 10px 7px;
  }

  body:not(.light-theme) .brand {
    min-height: 42px;
  }

  body:not(.light-theme) .topbar-actions {
    min-height: 44px;
  }

  body:not(.light-theme) .topbar-actions .nav-button,
  body:not(.light-theme) .topbar-actions .ghost-button,
  body:not(.light-theme) .topbar-actions .account-button,
  body:not(.light-theme) #loginButton,
  body:not(.light-theme) #logoutButton {
    min-height: 44px;
    padding: 11px 14px;
    font-size: 13px;
  }

  body:not(.light-theme) .hero-section {
    min-height: min(500px, calc(100svh - 176px));
  }

  body:not(.light-theme) .board-panel {
    padding: 12px;
  }

  body:not(.light-theme) .board-header {
    gap: 12px;
  }

  body:not(.light-theme) .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.light-theme) .stat-card {
    min-height: 68px;
  }

  body:not(.light-theme) .ride-list {
    gap: 10px;
  }

  body:not(.light-theme) .ride-card {
    padding: 12px 12px 54px;
    overflow: hidden;
  }

  body:not(.light-theme) .ride-card.is-collapsed {
    min-height: 0;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-main {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 8px;
  }

  body:not(.light-theme) .ride-card.is-collapsed .destination-sign {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  body:not(.light-theme) .ride-card.is-collapsed .destination-sign img {
    width: 19px;
    height: 19px;
    margin: 7px;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-title-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    margin-bottom: 8px;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-title-row h3 {
    font-size: clamp(20px, 6vw, 24px);
    line-height: 1.04;
  }

  body:not(.light-theme) .ride-card.is-collapsed .seat-badge {
    justify-self: start;
    min-width: 82px;
    padding-bottom: 9px;
    font-size: 12px;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-brief .brief-tile {
    min-height: 48px;
    padding: 8px 9px;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-brief .brief-tile small {
    font-size: 8px;
    line-height: 1;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-brief .brief-tile b {
    font-size: 15px;
    line-height: 1.05;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-meta {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: 13px;
  }

  body:not(.light-theme) .ride-card.is-collapsed .impact-row {
    display: none;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-message,
  body:not(.light-theme) .ride-card.is-collapsed .contact-line,
  body:not(.light-theme) .ride-card.is-collapsed .ride-actions,
  body:not(.light-theme) .ride-card.is-collapsed .comments {
    display: none !important;
  }

  body:not(.light-theme) .ride-card.is-expanded .impact-row {
    display: flex;
  }

  body:not(.light-theme) .ride-toggle {
    width: 44px;
    height: 44px;
    right: 10px;
    bottom: 10px;
  }

  body:not(.light-theme) .terms-box {
    gap: 10px;
  }

  body:not(.light-theme) .terms-box input[type="checkbox"] {
    width: 24px;
    height: 24px;
    min-height: 24px;
  }

  body:not(.light-theme) .terms-copy summary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-right: 12px;
  }
}

@media (max-width: 380px) {
  body:not(.light-theme) .hero-section {
    min-height: min(470px, calc(100svh - 160px));
  }

  body:not(.light-theme) .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Fix collapsed mobile ride-card grid: keep content column wide. */
@media (max-width: 760px) {
  body:not(.light-theme) .ride-card.is-collapsed .ride-main {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: start;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-copy {
    min-width: 0;
    width: auto;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-brief {
    width: 100%;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-meta {
    width: 100%;
  }
}

/* Keep the mobile summary icon visible so ride text stays in the wide grid column. */
@media (max-width: 760px) {
  body:not(.light-theme) .ride-card.is-collapsed .destination-sign {
    display: block !important;
    grid-column: 1;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-copy {
    grid-column: 2;
  }
}

/* Final mobile touch target polish for terms controls. */
@media (max-width: 760px) {
  body:not(.light-theme) .terms-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  body:not(.light-theme) .terms-box input[type="checkbox"] {
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
    accent-color: #b6ff4d !important;
  }

  body:not(.light-theme) .terms-copy {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  body:not(.light-theme) .terms-copy label {
    display: inline-block !important;
    margin-bottom: 2px !important;
    line-height: 1.3 !important;
  }

  body:not(.light-theme) .terms-copy summary {
    display: inline-block !important;
    padding: 2px 0 !important;
  }
}

/* Mobile web final pass: dark theme is the product surface. */
@media (max-width: 760px) {
  body:not(.light-theme) .app-shell {
    padding-bottom: 24px;
  }

  body:not(.light-theme) .topbar {
    gap: 6px;
    padding: calc(6px + env(safe-area-inset-top)) 10px 7px;
  }

  body:not(.light-theme) .brand {
    min-height: 38px;
  }

  body:not(.light-theme) .brand-mark {
    width: 36px;
    height: 36px;
  }

  body:not(.light-theme) .brand strong {
    font-size: 18px;
  }

  body:not(.light-theme) .brand small {
    font-size: 10px;
  }

  body:not(.light-theme) .topbar-actions {
    min-height: 42px;
    gap: 7px;
  }

  body:not(.light-theme) .topbar-actions .nav-button[href="#newRideTitle"] {
    display: none;
  }

  body:not(.light-theme) .topbar-actions .nav-button,
  body:not(.light-theme) .topbar-actions .ghost-button,
  body:not(.light-theme) .topbar-actions .account-button,
  body:not(.light-theme) #loginButton,
  body:not(.light-theme) #logoutButton {
    min-height: 42px;
    padding: 10px 13px;
  }

  body:not(.light-theme) .hero-section {
    min-height: auto;
    margin: 8px 8px 0;
    padding: 20px 14px 16px;
  }

  body:not(.light-theme) .hero-copy h1 {
    font-size: clamp(30px, 9vw, 37px);
    line-height: 1.03;
    margin-bottom: 10px;
  }

  body:not(.light-theme) .hero-copy > p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  body:not(.light-theme) .hero-actions a {
    min-height: 46px;
  }

  body:not(.light-theme) .hero-card {
    margin-top: 12px;
    padding: 10px 12px;
  }

  body:not(.light-theme) .hero-card strong {
    font-size: 15px;
  }

  body:not(.light-theme) .hero-card span {
    font-size: 12px;
  }

  body:not(.light-theme) .workspace {
    padding: 8px 8px 28px;
  }

  body:not(.light-theme) .board-panel,
  body:not(.light-theme) .panel-inner {
    padding: 12px;
  }

  body:not(.light-theme) .board-header h2,
  body:not(.light-theme) .section-heading h1 {
    font-size: clamp(24px, 7vw, 30px);
  }

  body:not(.light-theme) .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body:not(.light-theme) .stat-card {
    min-height: 58px;
    padding: 8px;
    font-size: 11px;
  }

  body:not(.light-theme) .stat-card strong {
    font-size: 18px;
  }

  body:not(.light-theme) .filters {
    padding: 8px;
    gap: 8px;
  }

  body:not(.light-theme) .ride-list {
    gap: 9px;
  }

  body:not(.light-theme) .ride-card.is-collapsed {
    padding: 11px 11px 52px;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-main {
    grid-template-columns: 32px minmax(0, 1fr) !important;
    gap: 8px;
  }

  body:not(.light-theme) .ride-card.is-collapsed .destination-sign {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }

  body:not(.light-theme) .ride-card.is-collapsed .destination-sign img {
    width: 18px;
    height: 18px;
    margin: 7px;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-title-row h3 {
    font-size: clamp(21px, 6.2vw, 25px);
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-brief {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-brief .brief-tile {
    min-height: 42px;
    padding: 7px 8px;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-brief .brief-tile small {
    font-size: 8px;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-brief .brief-tile b {
    font-size: 14px;
  }

  body:not(.light-theme) .ride-card.is-collapsed .ride-meta {
    font-size: 12px;
    line-height: 1.3;
  }

  body:not(.light-theme) .ride-toggle {
    width: 44px;
    height: 44px;
    right: 8px;
    bottom: 8px;
  }

  body:not(.light-theme) .floating-action {
    display: none !important;
  }
}

@media (max-width: 380px) {
  body:not(.light-theme) .hero-copy h1 {
    font-size: clamp(28px, 8.8vw, 33px);
  }

  body:not(.light-theme) .hero-card {
    display: none;
  }
}

/* Mobile expanded-card fix: never let ride content collapse into the icon column. */
@media (max-width: 760px) {
  body:not(.light-theme) .ride-card .ride-main,
  body:not(.light-theme) .ride-card.is-expanded .ride-main,
  body:not(.light-theme) .ride-card.is-collapsed .ride-main {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    column-gap: 10px;
    align-items: start;
  }

  body:not(.light-theme) .ride-card .destination-sign,
  body:not(.light-theme) .ride-card.is-expanded .destination-sign,
  body:not(.light-theme) .ride-card.is-collapsed .destination-sign {
    display: block !important;
    grid-column: 1;
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  body:not(.light-theme) .ride-card .destination-sign img,
  body:not(.light-theme) .ride-card.is-expanded .destination-sign img,
  body:not(.light-theme) .ride-card.is-collapsed .destination-sign img {
    width: 22px;
    height: 22px;
    margin: 8px;
  }

  body:not(.light-theme) .ride-card .ride-copy,
  body:not(.light-theme) .ride-card.is-expanded .ride-copy,
  body:not(.light-theme) .ride-card.is-collapsed .ride-copy {
    grid-column: 2;
    min-width: 0;
    width: auto !important;
    max-width: 100%;
  }

  body:not(.light-theme) .ride-card .ride-title-row,
  body:not(.light-theme) .ride-card.is-expanded .ride-title-row,
  body:not(.light-theme) .ride-card.is-collapsed .ride-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  body:not(.light-theme) .ride-card .ride-title-row h3,
  body:not(.light-theme) .ride-card.is-expanded .ride-title-row h3,
  body:not(.light-theme) .ride-card.is-collapsed .ride-title-row h3 {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  body:not(.light-theme) .ride-card .ride-brief,
  body:not(.light-theme) .ride-card.is-expanded .ride-brief,
  body:not(.light-theme) .ride-card.is-collapsed .ride-brief {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px;
    width: 100%;
  }

  body:not(.light-theme) .ride-card .brief-tile,
  body:not(.light-theme) .ride-card.is-expanded .brief-tile,
  body:not(.light-theme) .ride-card.is-collapsed .brief-tile {
    min-width: 0;
    min-height: 50px;
    padding: 8px 10px;
  }

  body:not(.light-theme) .ride-card .brief-tile small,
  body:not(.light-theme) .ride-card.is-expanded .brief-tile small,
  body:not(.light-theme) .ride-card.is-collapsed .brief-tile small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 9px;
  }

  body:not(.light-theme) .ride-card .brief-tile b,
  body:not(.light-theme) .ride-card.is-expanded .brief-tile b,
  body:not(.light-theme) .ride-card.is-collapsed .brief-tile b {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.08;
  }
}

@media (max-width: 360px) {
  body:not(.light-theme) .ride-card .ride-main,
  body:not(.light-theme) .ride-card.is-expanded .ride-main,
  body:not(.light-theme) .ride-card.is-collapsed .ride-main {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    column-gap: 8px;
  }

  body:not(.light-theme) .ride-card .destination-sign,
  body:not(.light-theme) .ride-card.is-expanded .destination-sign,
  body:not(.light-theme) .ride-card.is-collapsed .destination-sign {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  body:not(.light-theme) .ride-card .ride-brief,
  body:not(.light-theme) .ride-card.is-expanded .ride-brief,
  body:not(.light-theme) .ride-card.is-collapsed .ride-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Reference-style landing flight mark: silhouette + wheel + runway line. */
.bangalore-word .hero-heading-flight.landing-flight,
.hero-heading-flight.landing-flight {
  position: absolute;
  left: 50%;
  bottom: 78%;
  z-index: 4;
  display: block;
  width: clamp(92px, 18vw, 190px);
  height: clamp(70px, 11vw, 122px);
  opacity: 0.9;
  pointer-events: none;
  transform: translateX(-50%);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none !important;
  object-fit: initial;
  object-position: initial;
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.34));
  animation: landing-mark-fade 4.8s ease-in-out infinite;
}

.hero-heading-flight.landing-flight .landing-plane {
  position: absolute;
  left: 19%;
  top: 8%;
  width: 62%;
  aspect-ratio: 1.35;
  background: #fff6df;
  clip-path: path("M73.6 23.6c7.1 2.8 15.3 8.7 24.5 17.7 7.3 7.1 13.4 14 18.2 20.7 1.7 2.4.7 5.7-2 6.7-5.2 2-13.3.6-24.4-4.3L61.5 52.1 29.7 78.9c-2 1.7-4.7 2.2-7.1 1.4l-9.6-3.2 22.7-33.5L2.8 27.9 6 19.6l43.9 9.2 14.2-24.7 10.1 3.6-3.1 21.4 2.5-5.5Z");
  transform-origin: 66% 64%;
  animation: landing-plane-approach 4.8s cubic-bezier(0.34, 0.02, 0.2, 1) infinite;
}

.hero-heading-flight.landing-flight .landing-wheel {
  position: absolute;
  left: 55%;
  top: 58%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff6df;
  transform: translateY(-8px) scale(0.55);
  opacity: 0;
  animation: landing-wheel-touch 4.8s ease-in-out infinite;
}

.hero-heading-flight.landing-flight .landing-runway {
  position: absolute;
  left: 16%;
  right: 12%;
  bottom: 12%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(183, 255, 126, 0.94), rgba(67, 224, 189, 0.88));
  box-shadow: 0 0 15px rgba(67, 224, 189, 0.34);
  transform: scaleX(0.12);
  transform-origin: left center;
  opacity: 0.38;
  animation: landing-runway-draw 4.8s ease-in-out infinite;
}

@keyframes landing-plane-approach {
  0% {
    opacity: 0;
    transform: translateX(52%) translateY(-28%) rotate(18deg) scale(0.76);
  }

  18% {
    opacity: 0.96;
  }

  48% {
    transform: translateX(8%) translateY(2%) rotate(7deg) scale(0.94);
  }

  68% {
    opacity: 1;
    transform: translateX(0) translateY(9%) rotate(0deg) scale(1);
  }

  82% {
    opacity: 1;
    transform: translateX(0) translateY(9%) rotate(0deg) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateX(-8%) translateY(12%) rotate(-2deg) scale(0.98);
  }
}

@keyframes landing-wheel-touch {
  0%, 34% {
    opacity: 0;
    transform: translateY(-10px) scale(0.45);
  }

  52% {
    opacity: 0.75;
    transform: translateY(-2px) scale(0.8);
  }

  68%, 84% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(0) scale(0.9);
  }
}

@keyframes landing-runway-draw {
  0% {
    opacity: 0;
    transform: scaleX(0.08);
  }

  28% {
    opacity: 0.42;
  }

  62%, 86% {
    opacity: 1;
    transform: scaleX(1);
  }

  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes landing-mark-fade {
  0%, 100% { opacity: 0; }
  16%, 84% { opacity: 0.9; }
}

@media (max-width: 760px) {
  .bangalore-word .hero-heading-flight.landing-flight,
  .hero-heading-flight.landing-flight {
    bottom: 88%;
    width: clamp(78px, 28vw, 128px);
    height: 76px;
    opacity: 0.82;
  }

  .hero-heading-flight.landing-flight .landing-runway {
    height: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-heading-flight.landing-flight,
  .hero-heading-flight.landing-flight .landing-plane,
  .hero-heading-flight.landing-flight .landing-wheel,
  .hero-heading-flight.landing-flight .landing-runway {
    animation: none !important;
  }
}

/* Landing mark placement polish: keep it clear of the headline on mobile. */
.bangalore-word .hero-heading-flight.landing-flight,
.hero-heading-flight.landing-flight {
  left: 78%;
  bottom: 104%;
  width: clamp(78px, 12vw, 150px);
  height: clamp(58px, 8vw, 96px);
}

@media (max-width: 760px) {
  .bangalore-word .hero-heading-flight.landing-flight,
  .hero-heading-flight.landing-flight {
    left: 82%;
    bottom: 106%;
    width: clamp(68px, 20vw, 86px);
    height: 58px;
    opacity: 0.78;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.34));
  }

  .hero-heading-flight.landing-flight .landing-wheel {
    width: 7px;
    height: 7px;
  }
}

@media (max-width: 380px) {
  .bangalore-word .hero-heading-flight.landing-flight,
  .hero-heading-flight.landing-flight {
    left: 84%;
    bottom: 108%;
    width: 66px;
    height: 54px;
  }
}

/* Use an SVG plane silhouette instead of clip-path so the full icon survives mobile scaling. */
.hero-heading-flight.landing-flight .landing-plane {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90'%3E%3Cpath fill='%23fff6df' d='M28 10c10 5 18 12 27 24l39 19c8 4 15 10 18 17 1 3-1 6-5 6-8 0-19-4-34-10L38 83c-3 1-6 1-9 0l-11-5 27-30L4 31l4-10 47 9-11-26 12 4 20 37 8 3-9-13c-7-10-9-18-5-22 2-3 7-4 12-2Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
  clip-path: none !important;
}

/* Render the supplied landing animation video with its own original background. */
.bangalore-word .hero-heading-flight.landing-flight-video,
.hero-heading-flight.landing-flight-video {
  position: absolute;
  left: 82%;
  bottom: 104%;
  z-index: 4;
  display: block;
  width: clamp(86px, 14vw, 168px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  border: 0;
  border-radius: 0;
  background: #fff;
  pointer-events: none;
  transform: translateX(-50%);
  overflow: hidden;
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
  animation: none !important;
}

@media (max-width: 760px) {
  .bangalore-word .hero-heading-flight.landing-flight-video,
  .hero-heading-flight.landing-flight-video {
    left: 84%;
    bottom: 106%;
    width: clamp(70px, 21vw, 92px);
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.34));
  }
}

@media (max-width: 380px) {
  .bangalore-word .hero-heading-flight.landing-flight-video,
  .hero-heading-flight.landing-flight-video {
    left: 86%;
    bottom: 108%;
    width: 68px;
  }
}

/* Keep the rendered animation in its native 16:9 video shape and clear of text. */
.bangalore-word .hero-heading-flight.landing-flight-video,
.hero-heading-flight.landing-flight-video {
  left: 82%;
  bottom: 122%;
  width: clamp(116px, 16vw, 210px);
  aspect-ratio: 16 / 9;
  height: auto;
}

@media (max-width: 760px) {
  .bangalore-word .hero-heading-flight.landing-flight-video,
  .hero-heading-flight.landing-flight-video {
    left: 84%;
    bottom: 124%;
    width: clamp(104px, 31vw, 122px);
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 380px) {
  .bangalore-word .hero-heading-flight.landing-flight-video,
  .hero-heading-flight.landing-flight-video {
    left: 84%;
    bottom: 126%;
    width: 104px;
  }
}

/* Lift the video animation above the headline so it does not occlude text. */
.bangalore-word .hero-heading-flight.landing-flight-video,
.hero-heading-flight.landing-flight-video {
  bottom: 148%;
}

@media (max-width: 760px) {
  .bangalore-word .hero-heading-flight.landing-flight-video,
  .hero-heading-flight.landing-flight-video {
    bottom: 168%;
  }
}

@media (max-width: 380px) {
  .bangalore-word .hero-heading-flight.landing-flight-video,
  .hero-heading-flight.landing-flight-video {
    bottom: 172%;
  }
}

/* Position the video animation in the hero's open right-side space on mobile. */
@media (max-width: 760px) {
  .bangalore-word .hero-heading-flight.landing-flight-video,
  .hero-heading-flight.landing-flight-video {
    left: 118%;
    bottom: 166%;
  }
}

@media (max-width: 380px) {
  .bangalore-word .hero-heading-flight.landing-flight-video,
  .hero-heading-flight.landing-flight-video {
    left: 112%;
    bottom: 170%;
    width: 96px;
  }
}

/* Visually key out the light video background over the dark hero. */
.bangalore-word .hero-heading-flight.landing-flight-video,
.hero-heading-flight.landing-flight-video {
  background: transparent !important;
  mix-blend-mode: multiply;
  filter: contrast(1.08) saturate(0.95) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}

@media (max-width: 760px) {
  .bangalore-word .hero-heading-flight.landing-flight-video,
  .hero-heading-flight.landing-flight-video {
    mix-blend-mode: multiply;
    filter: contrast(1.08) saturate(0.95) drop-shadow(0 7px 12px rgba(0, 0, 0, 0.28));
  }
}

/* Transparent hero flight: no video frame, only the animated mark over the dark hero. */
.bangalore-word .hero-heading-flight.transparent-flight,
.hero-heading-flight.transparent-flight {
  left: 82%;
  bottom: 148%;
  width: clamp(116px, 16vw, 210px);
  height: clamp(70px, 9vw, 118px);
  background: transparent !important;
  mix-blend-mode: normal !important;
  isolation: isolate;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.34));
}

.hero-heading-flight.transparent-flight .landing-plane,
.hero-heading-flight.transparent-flight .landing-wheel {
  background-color: #fff8e7;
}

.hero-heading-flight.transparent-flight .landing-runway {
  background: linear-gradient(90deg, rgba(183, 255, 126, 0.96), rgba(67, 224, 189, 0.92));
}

@media (max-width: 760px) {
  .bangalore-word .hero-heading-flight.transparent-flight,
  .hero-heading-flight.transparent-flight {
    left: 118%;
    bottom: 166%;
    width: clamp(104px, 31vw, 122px);
    height: 76px;
  }
}

@media (max-width: 380px) {
  .bangalore-word .hero-heading-flight.transparent-flight,
  .hero-heading-flight.transparent-flight {
    left: 112%;
    bottom: 170%;
    width: 96px;
    height: 68px;
  }
}


/* CabRoach flight animation embed: background canvas only. */
.hero-section[data-flight-variant] {
  isolation: isolate;
}

.hero-section[data-flight-variant] .hero-copy,
.hero-section[data-flight-variant] .hero-card,
.hero-section[data-flight-variant] .hero-sky {
  position: relative;
  z-index: 1;
}

.hero-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-kicker-row .eyebrow {
  margin: 0;
}


.hero-flight-stage {
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

.hero-flight-stage video {
  display: none;
}

.hero-flight-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  opacity: 0;
  transition: opacity 600ms ease;
  filter: saturate(1.08) contrast(1.02);
}

.hero-flight-stage canvas.is-ready {
  opacity: var(--flight-canvas-opacity, 0.9);
}

.hero-section.hero-flight-background .hero-flight-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  --flight-canvas-opacity: 0.9;
}

.hero-section.hero-flight-background .hero-copy,
.hero-section.hero-flight-background .hero-card {
  z-index: 2;
}

.hero-section.hero-flight-background .hero-flight-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 12, 28, 0.72), rgba(10, 12, 28, 0.12) 48%, rgba(10, 12, 28, 0.58)),
    linear-gradient(180deg, rgba(12, 16, 40, 0.34), rgba(12, 16, 40, 0.62));
  pointer-events: none;
}




/* Full-site responsive polish: mobile-first base with tablet/desktop scale-up. */
:root {
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --section-py-mobile: 60px;
  --section-py-desktop: 100px;
  --content-max-width: 1200px;
  --content-px-mobile: 20px;
  --content-px-tablet: 48px;
  --content-px-desktop: 80px;
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  overflow-x: clip;
  font-size: var(--text-base);
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(200, 241, 53, 0.92);
  outline-offset: 3px;
}

.app-shell {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.topbar,
.hero-section,
.workspace,
.info-sections,
.value-strip,
.site-footer {
  width: 100%;
  margin-inline: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  backdrop-filter: blur(8px);
}

.brand {
  min-width: 0;
}

.brand > span:last-child {
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-menu-toggle {
  display: inline-grid;
  place-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.topbar-actions {
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding-top: 4px;
  overflow: visible;
}

.topbar.is-menu-open .topbar-actions {
  display: grid;
}

.topbar-actions .nav-button,
.topbar-actions .ghost-button,
.topbar-actions .account-button,
.nav-button,
.primary-button,
.ghost-button,
.join-button,
.request-button,
.clear-filter-button,
.floating-action {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.topbar-actions .nav-button,
.topbar-actions .ghost-button,
.topbar-actions .account-button {
  width: 100%;
  justify-content: center;
}

.hero-section {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 22px;
  min-height: auto;
  margin-top: 16px;
  padding: clamp(34px, 10vw, 58px) clamp(18px, 6vw, 28px);
  background-color: #1b1e31;
}

.hero-copy,
.hero-card,
.hero-title-main,
.hero-title-fare,
.hero-copy h1,
.hero-copy p {
  min-width: 0;
}

.hero-copy h1 {
  max-width: 100%;
  font-size: var(--text-3xl) !important;
  line-height: 1.15 !important;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 30rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem) !important;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hero-actions .primary-button,
.hero-actions .ghost-button {
  width: 100%;
  min-height: 52px;
  padding: 16px 24px;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

.hero-copy h1 .old-fare,
.old-fare {
  color: rgba(222, 226, 242, 0.68) !important;
  text-decoration: none;
}

.hero-copy h1 .new-fare,
.new-fare {
  color: #c8f135 !important;
  font-weight: 800;
}

.hero-section.hero-flight-background .hero-flight-stage {
  --flight-canvas-opacity: 0.6;
}



.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.composer-panel,
.board-panel,
.info-sections article,
.value-strip article,
.site-footer,
.ride-card {
  max-width: 100%;
  min-width: 0;
  border-radius: var(--radius-sm) !important;
}

.composer-panel,
.board-panel {
  padding: clamp(18px, 5vw, 28px) !important;
}

.info-sections,
.value-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding-block: 20px;
}

.flow-chart,
.value-strip,
.stats,
.filters,
.advanced-filters,
.ride-brief,
.request-grid,
.form-row {
  min-width: 0;
}

.flow-chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px;
}

.flow-arrow {
  transform: rotate(90deg);
  justify-self: center;
}

.stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.stat-card {
  min-width: 0;
  width: 100%;
  min-height: 58px;
  overflow-wrap: anywhere;
}

.filters,
.advanced-filters,
.time-range-filter {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px;
}

.search-field,
.filters label,
.time-range-filter label,
.ride-form label,
.request-form label {
  min-width: 0;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  font-size: 1rem;
}

.ride-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.ride-card {
  overflow: hidden !important;
  padding: clamp(16px, 4.5vw, 22px) !important;
}

.ride-card .ride-main,
.ride-card.is-expanded .ride-main,
.ride-card.is-collapsed .ride-main {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  align-items: start;
  gap: 14px !important;
}

.ride-card .destination-sign,
.ride-card.is-expanded .destination-sign,
.ride-card.is-collapsed .destination-sign {
  display: block !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 54px !important;
  min-height: 54px !important;
}

.ride-card .ride-copy,
.ride-card.is-expanded .ride-copy,
.ride-card.is-collapsed .ride-copy {
  grid-column: 2;
  min-width: 0 !important;
  width: 100% !important;
}

.ride-title-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.ride-title-row h3 {
  min-width: 0;
  font-size: clamp(1.55rem, 8vw, 2.25rem) !important;
  line-height: 1.05 !important;
  overflow-wrap: anywhere;
}

.seat-badge {
  justify-self: start;
  width: fit-content !important;
  max-width: 100%;
  min-height: 30px;
  white-space: normal;
}

.ride-brief,
body:not(.light-theme) .ride-card .ride-brief,
body:not(.light-theme) .ride-card.is-expanded .ride-brief,
body:not(.light-theme) .ride-card.is-collapsed .ride-brief {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.brief-tile {
  min-width: 0;
  overflow: hidden;
}

.brief-tile small,
.brief-tile b,
.ride-meta,
.ride-message,
.contact-line,
.impact-row span {
  overflow-wrap: anywhere;
  word-break: normal;
}

.impact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ride-toggle {
  width: 44px;
  height: 44px;
}

.request-dialog {
  width: min(calc(100vw - 24px), 760px) !important;
  max-height: min(88dvh, 760px);
  padding: clamp(16px, 4vw, 26px) !important;
  overflow: auto;
}

.request-grid,
.ride-form .form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px;
}

.terms-box {
  align-items: start;
}

.site-footer {
  display: grid;
  gap: 10px;
  margin-bottom: calc(92px + env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--text-sm);
  text-align: center;
}

.floating-action {
  left: max(10px, env(safe-area-inset-left));
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  width: auto;
  min-height: 56px;
  border-radius: var(--radius-md);
  z-index: 80;
}

@media (min-width: 768px) {
  :root {
    --content-px-mobile: var(--content-px-tablet);
  }

  .topbar,
  .hero-section,
  .workspace,
  .info-sections,
  .value-strip,
  .site-footer {
    width: 100%;
  }

  .topbar {
    grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
    padding: 12px 16px;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .topbar-actions,
  .topbar.is-menu-open .topbar-actions {
    grid-column: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    padding-top: 0;
  }

  .topbar-actions .nav-button,
  .topbar-actions .ghost-button,
  .topbar-actions .account-button {
    width: auto;
    min-height: 44px;
    font-size: 0.9375rem;
    text-decoration: none;
  }

  .topbar-actions .nav-button:hover,
  .topbar-actions .ghost-button:hover,
  .topbar-actions .account-button:hover {
    opacity: 0.7;
  }

  .hero-section {
    min-height: min(760px, calc(100svh - 96px));
    align-items: center;
    padding: clamp(64px, 9vw, 92px) clamp(42px, 6vw, 72px);
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
    max-width: 640px;
  }

  .hero-actions {
    display: flex;
    gap: 16px;
  }

  .hero-actions .primary-button,
  .hero-actions .ghost-button {
    width: auto;
    min-width: 200px;
    padding-inline: 36px;
  }

  .flow-chart,
  .value-strip,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .flow-arrow {
    display: none;
  }

  .advanced-filters,
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .request-grid,
  .ride-form .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ride-title-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center;
  }

  .site-footer {
    text-align: left;
    margin-bottom: 34px;
  }
}

@media (min-width: 1024px) {
  :root {
    --text-2xl: 2rem;
    --text-3xl: 2.75rem;
    --text-4xl: 3.75rem;
  }

  .topbar,
  .hero-section,
  .workspace,
  .info-sections,
  .value-strip,
  .site-footer {
    width: 100%;
  }

  .topbar-actions {
    gap: 32px;
  }

  .hero-section.hero-flight-background {
    min-height: min(100vh, 860px);
  }

  .hero-section.hero-flight-background .hero-flight-stage {
    --flight-canvas-opacity: 0.85;
  }

  .workspace {
    grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: 28px;
  }

  .composer-panel {
    position: sticky;
    top: 92px;
  }

  .flow-chart,
  .value-strip,
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  }

  .filters {
    grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.4fr) auto !important;
    align-items: end;
  }

  .advanced-filters {
    grid-template-columns: minmax(180px, 1.2fr) repeat(2, minmax(120px, 0.8fr)) !important;
  }

  .ride-card .ride-main,
  .ride-card.is-expanded .ride-main,
  .ride-card.is-collapsed .ride-main {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  .ride-card .destination-sign,
  .ride-card.is-expanded .destination-sign,
  .ride-card.is-collapsed .destination-sign {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
  }

  .ride-brief,
  body:not(.light-theme) .ride-card .ride-brief,
  body:not(.light-theme) .ride-card.is-expanded .ride-brief,
  body:not(.light-theme) .ride-card.is-collapsed .ride-brief {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .request-dialog {
    width: min(900px, calc(100vw - 80px)) !important;
  }

  .floating-action {
    left: auto;
    width: auto;
    min-width: 240px;
  }
}

@media (min-width: 1440px) {
  .hero-section,
  .workspace,
  .info-sections,
  .value-strip,
  .site-footer,
  .topbar {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #flightCanvas {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive safety: preserve hidden state despite component display overrides. */
[hidden] {
  display: none !important;
}


/* Final nav state override: mobile drawer closed by default, desktop nav visible. */
@media (max-width: 767px) {
  body:not(.light-theme) .topbar .topbar-actions,
  .topbar .topbar-actions {
    display: none !important;
  }

  body:not(.light-theme) .topbar.is-menu-open .topbar-actions,
  .topbar.is-menu-open .topbar-actions {
    display: grid !important;
  }
}

@media (min-width: 768px) {
  body:not(.light-theme) .topbar .topbar-actions,
  .topbar .topbar-actions {
    display: flex !important;
  }
}

/* Equal-width main containers and scrollable trip board. */
.hero-section,
.info-sections.guide-top,
.workspace,
.workspace > .composer-panel,
.workspace > .board-panel {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

.workspace {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 22px !important;
}

.workspace > .composer-panel,
.workspace > .board-panel {
  position: relative !important;
  top: auto !important;
  align-self: stretch;
}

.board-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.board-panel .ride-list {
  max-height: clamp(660px, 78dvh, 820px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  scroll-padding-block: 12px;
}

.board-panel .ride-list::-webkit-scrollbar {
  width: 10px;
}

.board-panel .ride-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.board-panel .ride-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(200, 241, 53, 0.9), rgba(67, 224, 189, 0.78));
  border: 2px solid rgba(20, 23, 42, 0.88);
  border-radius: 999px;
}

@media (min-width: 768px) {
  .hero-section,
  .info-sections.guide-top,
  .workspace,
  .workspace > .composer-panel,
  .workspace > .board-panel {
    width: 100% !important;
  }
}

@media (min-width: 1024px) {
  .hero-section,
  .info-sections.guide-top,
  .workspace,
  .workspace > .composer-panel,
  .workspace > .board-panel {
    width: 100% !important;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .composer-panel {
    position: relative !important;
    top: auto !important;
  }

  .board-panel .ride-list {
    max-height: clamp(700px, 76dvh, 860px);
  }
}

@media (max-width: 767px) {
  .board-panel .ride-list {
    max-height: min(78dvh, 760px);
    padding-right: 4px;
  }
}

/* Final equal-width correction: panels fill the shared workspace width. */
.workspace > .composer-panel,
.workspace > .board-panel {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.board-panel .ride-list {
  overflow-y: auto;
  min-height: 0;
}

/* Align workspace children flush with the same outer rail as hero/how-it-works. */
.workspace {
  padding-inline: 0 !important;
}

/* Restore normal trip-card appearance inside the scrollable board. */
.board-panel .ride-list .ride-card,
.board-panel .ride-list .ride-card.is-collapsed {
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

.board-panel .ride-list .ride-card.is-collapsed .ride-main,
body:not(.light-theme) .board-panel .ride-list .ride-card.is-collapsed .ride-main {
  min-height: 0 !important;
  height: auto !important;
  align-items: start !important;
}

.board-panel .ride-list .ride-card.is-collapsed .destination-sign,
body:not(.light-theme) .board-panel .ride-list .ride-card.is-collapsed .destination-sign {
  display: block !important;
  height: 54px !important;
  min-height: 54px !important;
}

.board-panel .ride-list .ride-card.is-collapsed .ride-title-row,
body:not(.light-theme) .board-panel .ride-list .ride-card.is-collapsed .ride-title-row {
  align-items: start !important;
}

.board-panel .ride-list .ride-card.is-collapsed .ride-title-row h3,
body:not(.light-theme) .board-panel .ride-list .ride-card.is-collapsed .ride-title-row h3 {
  line-height: 1.05 !important;
  max-height: none !important;
  overflow: visible !important;
}

.board-panel .ride-list .ride-card.is-collapsed .ride-brief,
body:not(.light-theme) .board-panel .ride-list .ride-card.is-collapsed .ride-brief {
  display: grid !important;
  max-height: none !important;
  overflow: visible !important;
}

.board-panel .ride-list .ride-card.is-collapsed .ride-meta,
.board-panel .ride-list .ride-card.is-collapsed .impact-row,
body:not(.light-theme) .board-panel .ride-list .ride-card.is-collapsed .ride-meta,
body:not(.light-theme) .board-panel .ride-list .ride-card.is-collapsed .impact-row {
  display: flex !important;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
}

/* Keep the scrollable board showing full premium cards, not collapsed strips. */
.board-panel .ride-list {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.board-panel .ride-list .ride-card,
.board-panel .ride-list .ride-card.is-collapsed {
  display: block !important;
  grid-template-rows: none !important;
  min-height: 220px !important;
  height: auto !important;
  overflow: hidden !important;
}

.board-panel .ride-list .ride-card .ride-main,
.board-panel .ride-list .ride-card.is-collapsed .ride-main,
body:not(.light-theme) .board-panel .ride-list .ride-card.is-collapsed .ride-main {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  height: auto !important;
  min-height: 0 !important;
}

@media (max-width: 767px) {
  .board-panel .ride-list .ride-card,
  .board-panel .ride-list .ride-card.is-collapsed {
    min-height: 250px !important;
  }

  .board-panel .ride-list .ride-card .ride-main,
  .board-panel .ride-list .ride-card.is-collapsed .ride-main,
  body:not(.light-theme) .board-panel .ride-list .ride-card.is-collapsed .ride-main {
    grid-template-columns: 40px minmax(0, 1fr) !important;
  }
}

/* Let board cards size from their own content; only the list viewport scrolls. */
.board-panel .ride-list .ride-card,
.board-panel .ride-list .ride-card.is-collapsed {
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

/* Dynamic card heights from JS should win over older mobile strip rules. */
.board-panel .ride-list .ride-card,
.board-panel .ride-list .ride-card.is-collapsed {
  height: auto !important;
  overflow: visible !important;
}

/* Filter bar polish: keep controls aligned in one row on wider screens. */
.board-panel .filters {
  display: grid !important;
  grid-template-columns: minmax(190px, 1.15fr) minmax(500px, 2fr) auto !important;
  align-items: stretch !important;
  gap: 12px !important;
}

.board-panel .filters > .search-field,
.board-panel .filters > .advanced-filters,
.board-panel .filters > .clear-filter-button {
  min-width: 0 !important;
  align-self: stretch !important;
}

.board-panel .advanced-filters {
  display: grid !important;
  grid-template-columns: minmax(190px, 1.08fr) minmax(130px, 0.68fr) minmax(130px, 0.68fr) !important;
  align-items: stretch !important;
  gap: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.board-panel .time-range-filter {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.board-panel .filters input,
.board-panel .filters select,
.board-panel .clear-filter-button {
  width: 100% !important;
  min-height: 58px !important;
}

.board-panel .clear-filter-button {
  min-width: 150px !important;
  border-color: rgba(245, 182, 86, 0.58) !important;
  background: linear-gradient(135deg, rgba(245, 182, 86, 0.24), rgba(191, 107, 71, 0.18)) !important;
  color: #ffe9bc !important;
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, 0.16), 0 14px 30px rgba(191, 107, 71, 0.18) !important;
}

.board-panel .clear-filter-button:hover,
.board-panel .clear-filter-button:focus-visible {
  border-color: rgba(255, 210, 125, 0.82) !important;
  background: linear-gradient(135deg, rgba(255, 202, 112, 0.34), rgba(211, 126, 80, 0.26)) !important;
  color: #fff6df !important;
}

@media (max-width: 980px) {
  .board-panel .filters {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .board-panel .advanced-filters {
    grid-template-columns: minmax(0, 1fr) minmax(130px, 0.7fr) minmax(130px, 0.7fr) !important;
  }

  .board-panel .clear-filter-button {
    justify-self: start !important;
    width: auto !important;
  }
}

@media (max-width: 640px) {
  .board-panel .advanced-filters {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .board-panel .time-range-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .board-panel .clear-filter-button {
    width: 100% !important;
  }
}

/* Mobile How-it-works: keep each step readable and stacked. */
@media (max-width: 1023px) {
  .info-sections.guide-top {
    padding-inline: 0 !important;
  }

  .guide-top .flow-chart {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .guide-top .flow-arrow {
    display: none !important;
  }

  .guide-top .flow-step {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    row-gap: 4px !important;
    align-items: start !important;
    min-height: 0 !important;
    padding: 16px !important;
  }

  .guide-top .flow-node {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 40px !important;
    height: 40px !important;
  }

  .guide-top .flow-step strong,
  .guide-top .flow-step small {
    grid-column: 2 !important;
    min-width: 0 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  .guide-top .flow-step strong {
    grid-row: 1 !important;
    font-size: clamp(18px, 5vw, 22px) !important;
    line-height: 1.15 !important;
  }

  .guide-top .flow-step small {
    grid-row: 2 !important;
    font-size: clamp(13px, 3.6vw, 15px) !important;
    line-height: 1.35 !important;
  }
}

/* Dedicated approved chat dialog: wider, calmer, and easier to navigate. */
.chat-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(82vh, 760px);
  border: 1px solid rgba(232, 216, 170, 0.18);
  border-radius: 10px;
  padding: 0;
  background: linear-gradient(145deg, rgba(25, 28, 50, 0.98), rgba(14, 17, 34, 0.98));
  color: var(--theme-text, #fff3d7);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.chat-dialog::backdrop {
  background: rgba(4, 7, 18, 0.72);
  backdrop-filter: blur(10px);
}

.chat-dialog-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(82vh, 760px);
}

.chat-dialog-head {
  padding: 22px clamp(18px, 4vw, 30px);
  border-bottom: 1px solid rgba(232, 216, 170, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
}

.chat-dialog-head h2 {
  margin: 2px 0 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.chat-dialog-subtitle {
  margin: 8px 0 0;
  color: rgba(238, 230, 203, 0.72);
  font-size: 0.95rem;
}

.chat-dialog-body {
  min-height: 0;
  padding: clamp(16px, 3vw, 26px);
  overflow: auto;
}

.chat-dialog .conversation-panel {
  min-height: min(56vh, 520px);
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.chat-dialog .conversation-title {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(232, 216, 170, 0.12);
}

.chat-dialog .conversation-title span {
  background: rgba(183, 255, 126, 0.13);
  color: rgba(205, 255, 196, 0.94);
}

.chat-dialog .conversation-messages {
  align-content: start;
  min-height: min(42vh, 390px);
  max-height: min(48vh, 430px);
  overflow: auto;
  padding: 16px 4px;
  gap: 12px;
}

.chat-dialog .conversation-comment {
  width: fit-content;
  max-width: min(680px, 100%);
  border: 1px solid rgba(232, 216, 170, 0.14);
  border-left: 3px solid rgba(67, 224, 189, 0.74);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 248, 231, 0.92);
  font-size: 0.96rem;
  line-height: 1.45;
}

.chat-dialog .conversation-comment strong {
  color: rgba(205, 255, 196, 0.96);
}

.chat-dialog .comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(232, 216, 170, 0.12);
}

.chat-dialog .comment-form input {
  min-height: 52px;
  border-color: rgba(232, 216, 170, 0.18);
  background: rgba(8, 10, 22, 0.7);
}

.chat-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(67, 224, 189, 0.28);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(67, 224, 189, 0.12), rgba(232, 216, 170, 0.06));
}

.chat-launcher div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.chat-launcher strong {
  color: rgba(255, 248, 231, 0.95);
}

.chat-launcher span {
  color: rgba(238, 230, 203, 0.68);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .chat-dialog {
    width: calc(100vw - 18px);
    max-height: 88vh;
  }

  .chat-dialog-shell {
    max-height: 88vh;
  }

  .chat-dialog .comment-form {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .chat-launcher {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Facebook-style floating approved chat box. */
.chat-dialog[hidden] {
  display: none !important;
}

.chat-dialog {
  position: fixed;
  right: clamp(12px, 2.4vw, 28px);
  bottom: 16px;
  z-index: 80;
  width: min(420px, calc(100vw - 24px));
  height: min(620px, calc(100dvh - 92px));
  max-height: 620px;
  border: 1px solid rgba(232, 216, 170, 0.2);
  border-radius: 10px 10px 0 0;
  padding: 0;
  background: linear-gradient(145deg, rgba(25, 28, 50, 0.98), rgba(12, 15, 31, 0.98));
  color: var(--theme-text, #fff3d7);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.chat-dialog-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  max-height: none;
}

.chat-dialog-head {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(232, 216, 170, 0.14);
  background: linear-gradient(135deg, rgba(67, 224, 189, 0.12), rgba(232, 216, 170, 0.06));
}

.chat-dialog-head h2 {
  margin: 2px 0 0;
  font-size: 1.08rem;
  line-height: 1.15;
}

.chat-dialog-subtitle {
  margin: 5px 0 0;
  color: rgba(238, 230, 203, 0.72);
  font-size: 0.78rem;
  line-height: 1.3;
}

.chat-dialog-body {
  min-height: 0;
  padding: 12px;
  overflow: hidden;
}

.chat-dialog .conversation-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.chat-dialog .conversation-title {
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(232, 216, 170, 0.12);
}

.chat-dialog .conversation-title span {
  background: rgba(183, 255, 126, 0.13);
  color: rgba(205, 255, 196, 0.94);
}

.chat-dialog .conversation-messages {
  align-content: start;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 12px 2px;
  gap: 10px;
}

.chat-dialog .conversation-comment {
  width: fit-content;
  max-width: 94%;
  border: 1px solid rgba(232, 216, 170, 0.14);
  border-left: 3px solid rgba(67, 224, 189, 0.74);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 248, 231, 0.92);
  font-size: 0.9rem;
  line-height: 1.42;
}

.chat-dialog .conversation-comment strong {
  color: rgba(205, 255, 196, 0.96);
}

.chat-dialog .comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(232, 216, 170, 0.12);
}

.chat-dialog .comment-form input {
  min-height: 46px;
  border-color: rgba(232, 216, 170, 0.18);
  background: rgba(8, 10, 22, 0.72);
}

@media (max-width: 640px) {
  .chat-dialog {
    right: 8px;
    bottom: 0;
    width: calc(100vw - 16px);
    height: min(72dvh, 560px);
  }
}

/* Collapsible host request cards. */
details.request-card {
  display: block;
  padding: 0;
  overflow: hidden;
  border-color: rgba(232, 216, 170, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.request-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.request-summary::-webkit-details-marker {
  display: none;
}

.request-summary::after {
  content: "";
  width: 10px;
  height: 10px;
  justify-self: center;
  border-right: 2px solid rgba(232, 216, 170, 0.9);
  border-bottom: 2px solid rgba(232, 216, 170, 0.9);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

details.request-card[open] > .request-summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.request-summary-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.request-summary-copy strong {
  color: rgba(255, 248, 231, 0.96);
  font-family: var(--display-font, serif);
  font-size: clamp(1rem, 2.6vw, 1.16rem);
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-summary-copy span {
  color: rgba(238, 230, 203, 0.66);
  font-size: 0.84rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-status {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(232, 216, 170, 0.1);
  color: rgba(255, 248, 231, 0.86);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.request-card.is-approved .request-status {
  background: rgba(67, 224, 189, 0.14);
  color: rgba(190, 255, 237, 0.96);
}

.request-card.is-disapproved .request-status {
  background: rgba(255, 125, 116, 0.14);
  color: rgba(255, 204, 198, 0.96);
}

details.request-card > .request-details,
details.request-card > .request-note,
details.request-card > .moderation-actions {
  margin-right: 14px;
  margin-left: 14px;
}

details.request-card > .request-details {
  padding-top: 10px;
  border-top: 1px solid rgba(232, 216, 170, 0.12);
}

details.request-card > .request-note,
details.request-card > .moderation-actions {
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .request-summary {
    grid-template-columns: minmax(0, 1fr) auto 22px;
    min-height: 54px;
    padding: 11px 12px;
  }

  .request-status {
    padding: 4px 7px;
    font-size: 0.62rem;
  }

  details.request-card > .request-details {
    grid-template-columns: 1fr;
  }
}

/* Fare calculator/action layout: keep the request CTA from covering calculator controls. */
.ride-card .ride-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
}

.ride-card .fare-share {
  min-width: 0;
}

.ride-card .request-button {
  align-self: stretch;
  min-width: 132px;
}

@media (max-width: 760px) {
  .ride-card .ride-actions {
    grid-template-columns: 1fr;
  }

  .ride-card .request-button {
    width: 100%;
  }
}
/* Premium fare-share panel polish. */
.ride-card .fare-share {
  border: 1px solid rgba(232, 216, 170, 0.18);
  background:
    radial-gradient(circle at 92% 0%, rgba(67, 224, 189, 0.11), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.026));
  box-shadow: var(--premium-inner, inset 0 1px 0 rgba(255, 255, 255, 0.07));
  color: rgba(255, 248, 231, 0.94);
}

.ride-card .fare-share-label {
  color: rgba(232, 216, 170, 0.68);
}

.ride-card .fare-share-controls label {
  color: rgba(232, 216, 170, 0.64);
}

.ride-card .fare-share-controls input {
  border-color: rgba(232, 216, 170, 0.18);
  background: rgba(8, 10, 22, 0.62);
  color: rgba(255, 248, 231, 0.94);
}

.ride-card .fare-share-button {
  background: linear-gradient(135deg, rgba(183, 255, 126, 0.96), rgba(67, 224, 189, 0.95));
  color: #09101a;
  box-shadow: 0 12px 26px rgba(67, 224, 189, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.ride-card .fare-share-result strong {
  color: rgba(205, 255, 196, 0.98);
  text-shadow: 0 0 18px rgba(67, 224, 189, 0.12);
}

.ride-card .fare-share-result span,
.ride-card .fare-share-result small {
  color: rgba(238, 230, 203, 0.72);
}
/* Request-dialog fare estimate, shown only after requester details are entered. */
.request-fare-estimate {
  display: grid;
  gap: 10px;
  margin: 4px 0 14px;
  border: 1px solid rgba(232, 216, 170, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 0%, rgba(67, 224, 189, 0.11), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.026));
  box-shadow: var(--premium-inner, inset 0 1px 0 rgba(255, 255, 255, 0.07));
  padding: 12px;
}

.request-fare-estimate > div:first-child {
  display: grid;
  gap: 4px;
}

.request-fare-estimate > div:first-child > span,
.request-fare-values small {
  color: rgba(232, 216, 170, 0.66);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.request-fare-estimate > div:first-child > strong {
  color: rgba(255, 248, 231, 0.95);
  font-size: 1rem;
  line-height: 1.1;
}

.request-fare-estimate p,
.request-fare-estimate small {
  margin: 0;
  color: rgba(238, 230, 203, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}

.request-fare-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.request-fare-values span {
  display: grid;
  gap: 5px;
  min-height: 70px;
  border: 1px solid rgba(232, 216, 170, 0.14);
  border-radius: 8px;
  background: rgba(8, 10, 22, 0.46);
  padding: 10px;
}

.request-fare-values strong {
  color: rgba(205, 255, 196, 0.98);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1;
  text-shadow: 0 0 18px rgba(67, 224, 189, 0.12);
}

.request-fare-estimate[data-state="loading"] {
  border-color: rgba(67, 224, 189, 0.28);
}

.request-fare-estimate[data-state="error"] {
  border-color: rgba(255, 125, 116, 0.34);
}

@media (max-width: 520px) {
  .request-fare-values {
    grid-template-columns: 1fr;
  }
}
/* Ride cards now show fare only inside the request dialog. */
.ride-card .ride-actions {
  grid-template-columns: 1fr !important;
}

.ride-card .request-button {
  width: 100%;
  min-height: 54px;
}
/* Fare split inside host/requester request cards. */
details.request-card > .request-fare-split {
  display: grid;
  gap: 8px;
  margin: 12px 14px;
  border: 1px solid rgba(232, 216, 170, 0.14);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(67, 224, 189, 0.09), rgba(255, 255, 255, 0.032));
  padding: 11px 12px;
}

.request-fare-split .request-fare-values {
  gap: 8px;
}

.request-fare-split .request-fare-values span {
  min-height: 58px;
  background: rgba(8, 10, 22, 0.38);
  padding: 9px 10px;
}

.request-fare-split .request-fare-values strong {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
}

.request-fare-split > div:first-child {
  display: grid;
  gap: 3px;
}

.request-fare-split > div:first-child > span,
.request-fare-split small {
  color: rgba(232, 216, 170, 0.66);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.request-fare-split > div:first-child > strong {
  color: rgba(255, 248, 231, 0.94);
  font-size: 1rem;
  line-height: 1.1;
}

.request-fare-split p {
  margin: 0;
  color: rgba(238, 230, 203, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}

.request-fare-split[data-state="error"] {
  border-color: rgba(255, 125, 116, 0.34);
}
/* Clear cab split fare CTA inside the request modal grid. */
.request-grid > .request-fare-estimate {
  align-self: end;
  min-height: 82px;
  margin: 0;
  border-color: rgba(67, 224, 189, 0.36);
  background:
    radial-gradient(circle at 100% 0%, rgba(183, 255, 126, 0.2), transparent 40%),
    linear-gradient(135deg, rgba(38, 58, 92, 0.88), rgba(20, 32, 58, 0.92));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
}

.request-grid > .request-fare-estimate > div:first-child,
.request-fare-estimate .fare-result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.request-grid > .request-fare-estimate > div:first-child > span,
.request-fare-estimate .fare-result-heading span {
  color: rgba(190, 255, 237, 0.96);
  font-size: 0.76rem;
}

.request-grid > .request-fare-estimate > div:first-child > strong,
.request-fare-estimate .fare-result-heading strong {
  border-radius: 999px;
  background: linear-gradient(135deg, #9df57f, #43e0bd);
  color: #07111c;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.request-grid > .request-fare-estimate p {
  color: rgba(238, 230, 203, 0.8);
}

.request-grid > .request-fare-estimate[data-state="loading"] {
  border-color: rgba(183, 255, 126, 0.5);
}

.request-grid > .request-fare-estimate[data-state="error"] {
  border-color: rgba(255, 125, 116, 0.44);
  background: linear-gradient(135deg, rgba(75, 36, 48, 0.86), rgba(30, 23, 42, 0.92));
}

@media (max-width: 760px) {
  .request-grid > .request-fare-estimate {
    min-height: 0;
  }
}
/* Primary request CTA duplicated beside the open-seat counter. */
.ride-title-row {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 12px !important;
}

.ride-title-row .seat-badge {
  justify-self: end;
}

.top-request-button {
  justify-self: end;
  min-width: 148px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  line-height: 1.05;
  white-space: nowrap;
}

.top-request-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

@media (max-width: 760px) {
  .ride-title-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .ride-title-row h3 {
    grid-column: 1 / -1;
  }

  .ride-title-row .seat-badge {
    justify-self: start;
  }

  .top-request-button {
    min-width: min(168px, 48vw);
  }
}

@media (max-width: 430px) {
  .ride-title-row {
    grid-template-columns: 1fr !important;
  }

  .ride-title-row .seat-badge,
  .top-request-button {
    justify-self: stretch;
    width: 100%;
  }
}
/* Map-powered destination suggestions in the request dialog. */
.place-field {
  position: relative;
}

.place-suggestions {
  z-index: 70;
}

.place-suggestions button {
  display: grid;
  gap: 3px;
}

.place-suggestions button strong {
  color: rgba(255, 248, 231, 0.96);
  font-size: 0.92rem;
  line-height: 1.15;
}

.place-suggestions button small {
  color: rgba(238, 230, 203, 0.66);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Animated fare lookup state. */
.request-fare-estimate[data-state="loading"] {
  overflow: hidden;
  position: relative;
}

.fare-loading-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.fare-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid rgba(190, 255, 237, 0.28);
  border-top-color: rgba(157, 245, 127, 0.98);
  border-radius: 999px;
  animation: fare-spin 800ms linear infinite;
}

.fare-loading-bar {
  position: relative;
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(8, 10, 22, 0.42);
}

.fare-loading-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 46%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(157, 245, 127, 0.1), rgba(67, 224, 189, 0.95), rgba(157, 245, 127, 0.1));
  animation: fare-scan 1.1s ease-in-out infinite;
}

@keyframes fare-spin {
  to { transform: rotate(360deg); }
}

@keyframes fare-scan {
  0% { transform: translateX(-105%); }
  100% { transform: translateX(220%); }
}
/* Map-like suggestions for create-ride locality. */
#rideDestinationSuggestions button {
  display: grid;
  gap: 3px;
}

#rideDestinationSuggestions button strong {
  color: rgba(255, 248, 231, 0.96);
  font-size: 0.92rem;
  line-height: 1.15;
}

#rideDestinationSuggestions button small {
  color: rgba(238, 230, 203, 0.66);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Mobile-first responsive pass for the public app and request flows. */
html {
  scroll-padding-top: 78px;
}

body {
  min-width: 0;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.app-shell {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

.topbar {
  width: 100% !important;
  min-height: 70px;
  margin: 0 !important;
  padding: 9px 10px !important;
  border-radius: 0 !important;
  gap: 10px !important;
}

.brand {
  min-width: 0;
  max-width: calc(100% - 58px);
}

.brand-mark {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px;
  border-radius: 8px !important;
}

.brand strong {
  font-size: 1.18rem !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
}

.brand small {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem !important;
}

.mobile-menu-toggle {
  width: 48px !important;
  height: 48px !important;
  border-radius: 8px !important;
  flex: 0 0 48px;
}

.topbar-actions {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 80;
  display: none !important;
  grid-template-columns: 1fr;
  gap: 8px !important;
  max-height: min(70dvh, 520px);
  overflow-y: auto;
  padding: 10px !important;
  border: 1px solid rgba(255, 248, 231, 0.13);
  border-radius: 8px !important;
  background: rgba(10, 13, 27, 0.98);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.42);
}

.topbar.is-menu-open .topbar-actions {
  display: grid !important;
}

.topbar-actions > *,
.topbar-actions .nav-button,
.topbar-actions button {
  width: 100% !important;
  min-height: 46px;
  justify-content: center;
}

.hero-section {
  width: 100% !important;
  min-height: auto !important;
  margin: 20px 0 0 !important;
  padding: 92px 16px 28px !important;
  border-radius: 0 !important;
  overflow: hidden;
}

.hero-copy {
  width: 100%;
  max-width: 42rem;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: 2.35rem !important;
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
}

.hero-title-fare,
.fare-swap,
.old-fare,
.new-fare {
  white-space: nowrap;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 34rem;
  font-size: 1rem !important;
  line-height: 1.48 !important;
}

.hero-actions,
.cta-row {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 10px !important;
  width: 100%;
  max-width: 34rem;
}

.primary-button,
.secondary-button,
.ghost-button,
.join-button,
.request-button,
button[type="submit"] {
  min-height: 48px;
  border-radius: 8px !important;
}

.hero-actions .primary-button,
.hero-actions .ghost-button,
.cta-row .primary-button,
.cta-row .ghost-button {
  width: 100%;
  min-height: 54px;
}

.hero-card,
.value-strip,
.info-sections,
.workspace,
.site-footer {
  width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.hero-card,
.value-strip,
.info-card,
.composer-panel,
.board-panel,
.ride-card,
.request-card,
.request-fare-estimate,
.request-fare-split {
  border-radius: 8px !important;
}

.visual-strip {
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
}

.workspace {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
  padding: 12px 0 18px !important;
  overflow: visible !important;
}

.workspace > .composer-panel,
.workspace > .board-panel {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.composer-panel {
  position: static !important;
  top: auto !important;
}

.panel-inner,
.board-panel {
  padding: 16px !important;
}

.form-row,
.request-grid,
.advanced-filters,
.filter-grid,
.time-range-filter,
.stats-grid,
.request-fare-values,
.ride-brief,
.ride-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
}

label,
.locality-field,
.place-field,
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
}

input,
select,
textarea {
  min-height: 48px;
  font-size: 16px !important;
  border-radius: 8px !important;
}

textarea {
  min-height: 108px;
}

.locality-suggestions,
.place-suggestions {
  left: 0;
  right: 0;
  max-height: min(44dvh, 320px);
  border-radius: 8px !important;
}

.board-panel .ride-list {
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0 !important;
}

.ride-card,
.board-panel .ride-list .ride-card,
.board-panel .ride-list .ride-card.is-collapsed {
  padding: 14px !important;
  overflow: hidden;
}

.ride-main,
.board-panel .ride-list .ride-card .ride-main,
.board-panel .ride-list .ride-card.is-collapsed .ride-main {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
}

.destination-sign,
.board-panel .ride-list .ride-card.is-collapsed .destination-sign {
  width: 48px !important;
  height: 48px !important;
  aspect-ratio: 1;
  border-radius: 8px !important;
}

.ride-copy,
.ride-title-row,
.ride-title-row h3,
.ride-meta,
.impact-row,
.comments,
.request-card {
  min-width: 0;
}

.ride-title-row,
.board-panel .ride-list .ride-card.is-collapsed .ride-title-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 9px !important;
  align-items: start !important;
}

.ride-title-row h3 {
  font-size: 2.05rem !important;
  line-height: 1.08 !important;
  overflow-wrap: anywhere;
}

.ride-title-row .seat-badge,
.top-request-button {
  justify-self: stretch !important;
  width: 100% !important;
}

.top-request-button {
  min-width: 0 !important;
  min-height: 46px;
}

.ride-meta,
.impact-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
}

.ride-card .ride-actions,
.ride-actions {
  align-items: stretch !important;
}

.ride-card .fare-share,
.ride-card .request-button {
  width: 100% !important;
}

.request-card {
  padding: 14px !important;
}

.request-dialog {
  width: calc(100vw - 16px) !important;
  max-width: 960px !important;
  max-height: calc(100dvh - 16px) !important;
  margin: auto !important;
  padding: 18px !important;
  border-radius: 8px !important;
  overflow: auto !important;
}

.request-dialog h2,
.modal-title,
.panel-title,
.board-title {
  font-size: 2rem !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}

.close-button,
.modal-close {
  width: 48px !important;
  height: 48px !important;
  border-radius: 8px !important;
}

.request-grid > .request-fare-estimate {
  min-height: 0 !important;
  align-self: stretch !important;
}

.request-fare-values {
  gap: 10px !important;
}

.fare-value-card {
  min-width: 0;
}

.fare-value-card strong {
  font-size: 1.72rem !important;
  line-height: 1.05 !important;
}

@media (min-width: 768px) {
  html {
    scroll-padding-top: 96px;
  }

  .topbar {
    width: 100% !important;
    min-height: 80px;
    padding: 12px 18px !important;
  }

  .brand {
    max-width: none;
  }

  .brand-mark {
    width: 54px !important;
    height: 54px !important;
    flex-basis: 54px;
  }

  .brand strong {
    font-size: 1.5rem !important;
  }

  .brand small {
    max-width: none;
    font-size: 0.9rem !important;
  }

  .mobile-menu-toggle {
    display: none !important;
  }

  .topbar-actions {
    position: static !important;
    display: flex !important;
    width: auto !important;
    max-height: none;
    overflow: visible;
    padding: 0 !important;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .topbar-actions > *,
  .topbar-actions .nav-button,
  .topbar-actions button {
    width: auto !important;
  }

  .hero-section {
    width: 100% !important;
    min-height: 720px !important;
    padding: 132px 60px 44px !important;
  }

  .hero-copy h1 {
    max-width: 14ch;
    font-size: 3.35rem !important;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 1.18rem !important;
  }

  .hero-actions,
  .cta-row {
    display: flex !important;
    flex-wrap: wrap;
    max-width: none;
  }

  .hero-actions .primary-button,
  .hero-actions .ghost-button,
  .cta-row .primary-button,
  .cta-row .ghost-button {
    width: auto;
    min-width: 220px;
  }

  .hero-card,
  .value-strip,
  .info-sections,
  .workspace,
  .site-footer {
    width: 100% !important;
  }

  .visual-strip {
    aspect-ratio: 16 / 7;
  }

  .workspace {
    gap: 20px !important;
    padding: 24px 0 28px !important;
  }

  .panel-inner,
  .board-panel {
    padding: 22px !important;
  }

  .form-row,
  .request-grid,
  .advanced-filters,
  .filter-grid,
  .time-range-filter,
  .stats-grid,
  .request-fare-values,
  .ride-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ride-title-row,
  .board-panel .ride-list .ride-card.is-collapsed .ride-title-row {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
  }

  .ride-title-row h3 {
    font-size: 2.75rem !important;
  }

  .ride-title-row .seat-badge,
  .top-request-button {
    width: auto !important;
    justify-self: end !important;
  }

  .top-request-button {
    min-width: 148px !important;
  }

  .ride-actions {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .ride-card .request-button {
    width: auto !important;
    min-width: 180px;
  }

  .request-dialog {
    width: min(960px, calc(100vw - 48px)) !important;
    max-height: calc(100dvh - 48px) !important;
    padding: 34px !important;
  }

  .request-dialog h2,
  .modal-title,
  .panel-title,
  .board-title {
    font-size: 2.35rem !important;
  }
}

@media (min-width: 1024px) {
  .topbar,
  .hero-section,
  .hero-card,
  .value-strip,
  .info-sections,
  .workspace,
  .site-footer {
    width: 100% !important;
  }

  .hero-section {
    min-height: min(820px, calc(100svh - 112px)) !important;
    padding: 150px 62px 52px !important;
  }

  .hero-copy h1 {
    font-size: 4.25rem !important;
  }

  .workspace {
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr) !important;
    align-items: start !important;
  }

  .composer-panel {
    position: sticky !important;
    top: 96px !important;
  }

  .board-panel .ride-list {
    max-height: min(76vh, 920px) !important;
    overflow-y: auto !important;
    padding-right: 10px !important;
  }
}

@media (min-width: 1360px) {
  .hero-copy h1 {
    font-size: 4.85rem !important;
  }

  .workspace {
    grid-template-columns: minmax(360px, 460px) minmax(0, 1fr) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fare-spinner,
  .fare-loading-bar::after {
    animation: none !important;
  }
}
/* Desktop hero headline fit: keep the promise visible at wide sizes. */
.hero-title-main,
.hero-title-fare,
.hero-title-line {
  display: block;
  max-width: 100%;
}

.hero-copy h1 {
  max-width: min(100%, 13.5em) !important;
  overflow-wrap: normal;
}

.hero-title-main {
  white-space: normal !important;
}

.hero-title-line {
  white-space: normal;
}

.hero-title-fare {
  white-space: normal !important;
}

.hero-title-fare .fare-swap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .hero-copy {
    max-width: min(100%, 980px) !important;
  }

  .hero-copy h1 {
    max-width: min(100%, 980px) !important;
    font-size: 4rem !important;
    line-height: 1.04 !important;
  }
}

@media (min-width: 1360px) {
  .hero-copy h1 {
    max-width: min(100%, 1120px) !important;
    font-size: 4.35rem !important;
  }
}

@media (min-width: 1600px) {
  .hero-copy h1 {
    max-width: min(100%, 1240px) !important;
    font-size: 4.75rem !important;
  }
}

@media (max-width: 767px) {
  .hero-title-line {
    display: inline;
  }
}

/* Expanded ride-card spacing and bottom-edge toggle placement. */
.ride-card,
.board-panel .ride-list .ride-card,
.board-panel .ride-list .ride-card.is-collapsed {
  position: relative;
  overflow: visible !important;
}

.board-panel .ride-list .ride-card.is-expanded,
.ride-card.is-expanded {
  gap: 22px !important;
  padding-bottom: 42px !important;
}

.board-panel .ride-list .ride-card.is-expanded .ride-copy,
.ride-card.is-expanded .ride-copy {
  display: grid;
  gap: 18px !important;
}

.board-panel .ride-list .ride-card.is-expanded .ride-meta,
.board-panel .ride-list .ride-card.is-expanded .ride-message,
.ride-card.is-expanded .ride-meta,
.ride-card.is-expanded .ride-message {
  margin: 0;
}

.board-panel .ride-list .ride-card.is-expanded .impact-row,
.board-panel .ride-list .ride-card.is-expanded .contact-line,
.ride-card.is-expanded .impact-row,
.ride-card.is-expanded .contact-line {
  margin-top: 2px;
}

.board-panel .ride-list .ride-card.is-expanded > .ride-actions,
.ride-card.is-expanded > .ride-actions {
  margin-top: 8px !important;
  margin-bottom: 16px !important;
}

.board-panel .ride-list .ride-card.is-expanded .comments,
.ride-card.is-expanded .comments {
  margin-top: 4px !important;
}

.board-panel .ride-list .ride-card.is-expanded .thread-lock,
.ride-card.is-expanded .thread-lock {
  margin-top: 0 !important;
}

.ride-toggle {
  top: auto !important;
  right: 28px !important;
  bottom: -22px !important;
  width: 48px;
  height: 48px;
  transform: none !important;
}

@media (max-width: 760px) {
  .board-panel .ride-list .ride-card.is-expanded,
  .ride-card.is-expanded {
    gap: 24px !important;
    padding-bottom: 40px !important;
  }

  .board-panel .ride-list .ride-card.is-expanded .ride-copy,
  .ride-card.is-expanded .ride-copy {
    gap: 20px !important;
  }

  .ride-toggle {
    right: 22px !important;
    bottom: -20px !important;
    width: 44px;
    height: 44px;
  }
}

/* Seamless visual pass: lightweight motion, stable media ratios, and softer depth. */
.hero-flight-orbit {
  position: absolute;
  top: clamp(76px, 14%, 120px);
  right: -140px;
  width: clamp(92px, 9vw, 132px);
  aspect-ratio: 13 / 7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 140'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23fff8e8'/%3E%3Cstop offset='.58' stop-color='%23dfe6ee'/%3E%3Cstop offset='1' stop-color='%239daabd'/%3E%3C/linearGradient%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='170%25'%3E%3CfeDropShadow dx='0' dy='10' stdDeviation='9' flood-color='%23060a16' flood-opacity='.55'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url(%23s)' fill='url(%23p)' d='M236 53c18 10 18 28 0 38l-36 20-4 23-18 6-11-22-57 16-18-8 39-35-78 1-39 26-14-6 25-32L2 55l13-6 40 17 78-6-39-31 18-8 57 25 34-12c12-4 23-3 33 3Z'/%3E%3Cpath fill='%23c7ee76' opacity='.78' d='M135 61c36-17 67-22 94-8-30 0-58 8-90 23l-33 15-10-5 39-25Z'/%3E%3Ccircle cx='218' cy='70' r='3' fill='%2343e0bd'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  filter: drop-shadow(0 0 22px rgba(67, 224, 189, 0.12));
  will-change: transform, opacity;
  animation: hero-flight-glide 13s cubic-bezier(.42, 0, .2, 1) infinite;
}

@keyframes hero-flight-glide {
  0% { opacity: 0; transform: translate3d(0, -26px, 0) rotate(156deg) scale(.9); }
  12% { opacity: .78; }
  62% { opacity: .84; transform: translate3d(clamp(-960px, -72vw, -440px), clamp(92px, 13vw, 158px), 0) rotate(156deg) scale(1); }
  78%, 100% { opacity: 0; transform: translate3d(clamp(-1000px, -76vw, -470px), clamp(116px, 16vw, 190px), 0) rotate(156deg) scale(.96); }
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 2;
}

.hero-section,
.composer-panel,
.board-panel,
.how-card,
.safety-card,
.site-footer {
  contain: layout paint;
}

.brand-mark img,
.destination-sign img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}

.visual-strip {
  background-position: center 46%;
}

.primary-button,
.nav-button,
.ghost-button,
button {
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

@media (hover: hover) {
  .primary-button:hover,
  .hero-actions .ghost-button:hover,
  .topbar-actions .nav-button:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding-top: clamp(82px, 22vw, 98px) !important;
  }

  .hero-flight-orbit {
    top: 72px;
    width: 88px;
    animation-duration: 11s;
  }

  @keyframes hero-flight-glide {
    0% { opacity: 0; transform: translate3d(0, -16px, 0) rotate(156deg) scale(.88); }
    14% { opacity: .68; }
    64% { opacity: .72; transform: translate3d(-72vw, 76px, 0) rotate(156deg) scale(1); }
    82%, 100% { opacity: 0; transform: translate3d(-82vw, 96px, 0) rotate(156deg) scale(.94); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-flight-orbit { display: none; }
}
/* Keep the compact navigation until there is genuinely enough horizontal room. */
@media (max-width: 979px) {
  .topbar {
    min-height: 70px;
    padding: 9px 12px !important;
  }

  .brand {
    max-width: calc(100% - 60px);
  }

  .brand-mark {
    width: 46px !important;
    height: 46px !important;
    flex-basis: 46px;
  }

  .mobile-menu-toggle {
    display: inline-grid !important;
    place-items: center;
  }

  .topbar-actions {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: 0 !important;
    display: none !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px !important;
    max-height: min(70dvh, 520px);
    overflow-y: auto;
    padding: 10px !important;
    border: 1px solid rgba(255, 248, 231, 0.13);
    background: rgba(10, 13, 27, 0.98);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.42);
  }

  .topbar.is-menu-open .topbar-actions {
    display: grid !important;
  }

  .topbar-actions > *,
  .topbar-actions .nav-button,
  .topbar-actions button {
    width: 100% !important;
    min-height: 46px;
    justify-content: center;
  }
}

@media (max-width: 979px) {
  body .topbar #topbarActions {
    display: none !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  body .topbar.is-menu-open #topbarActions {
    display: grid !important;
  }
}
/* Screenshot-led layout corrections: balanced rails, contained filters, and breathable ride cards. */
.hero-flight-orbit {
  display: none !important;
}

.hero-flight-video-direct {
  position: absolute;
  top: clamp(30px, 4.5vw, 72px);
  right: clamp(-56px, -2vw, -20px);
  display: block;
  width: min(58vw, 760px);
  height: min(33vw, 420px);
  border: 0;
  object-fit: cover;
  object-position: 64% 42%;
  opacity: 0.62;
  mix-blend-mode: screen;
  filter: contrast(1.38) brightness(0.68) saturate(1.08);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 55% 48% at 56% 46%, #000 0 54%, rgba(0, 0, 0, 0.78) 64%, transparent 82%);
  mask-image: radial-gradient(ellipse 55% 48% at 56% 46%, #000 0 54%, rgba(0, 0, 0, 0.78) 64%, transparent 82%);
}

.app-shell > .workspace {
  width: 100% !important;
  max-width: none !important;
  margin: 24px 0 32px !important;
  padding-inline: clamp(16px, 3vw, 34px) !important;
  column-gap: 32px !important;
  row-gap: 32px !important;
}

.app-shell > .workspace > .composer-panel,
.app-shell > .workspace > .board-panel {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  min-width: 0 !important;
}

.board-panel {
  overflow: hidden;
}

.filters {
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(160px, 0.9fr) minmax(0, 2.1fr) !important;
  gap: 12px !important;
  align-items: end;
  overflow: visible;
}

.advanced-filters {
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1.5fr) minmax(88px, 0.75fr) minmax(88px, 0.75fr) !important;
  gap: 10px !important;
}

.time-range-filter {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.filters > *,
.advanced-filters > *,
.time-range-filter > *,
.filters input,
.filters select {
  min-width: 0 !important;
  max-width: 100% !important;
}

.clear-filter-button {
  grid-column: 1 / -1;
  justify-self: end;
  min-height: 38px;
  margin-top: 2px;
}

.board-panel .ride-list {
  gap: 30px !important;
  padding: 8px 14px 30px 2px !important;
  scroll-padding-block: 20px !important;
}

.board-panel .ride-list .ride-card,
.board-panel .ride-list .ride-card.is-collapsed,
.board-panel .ride-list .ride-card.is-expanded {
  position: relative;
  min-height: 0 !important;
  height: auto !important;
  padding: 24px 24px 64px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.board-panel .ride-list .ride-card .ride-main,
.board-panel .ride-list .ride-card.is-collapsed .ride-main,
.board-panel .ride-list .ride-card.is-expanded .ride-main {
  grid-template-columns: 64px minmax(0, 1fr) !important;
  gap: 20px !important;
}

.board-panel .ride-list .ride-card .destination-sign,
.board-panel .ride-list .ride-card.is-collapsed .destination-sign,
.board-panel .ride-list .ride-card.is-expanded .destination-sign {
  width: 64px !important;
  min-width: 64px !important;
  height: 64px !important;
  min-height: 64px !important;
  border-radius: 9px !important;
}

.ride-copy,
.ride-card.is-collapsed .ride-copy,
.ride-card.is-expanded .ride-copy {
  display: grid !important;
  gap: 16px !important;
}

.ride-title-row,
.board-panel .ride-list .ride-card.is-collapsed .ride-title-row {
  grid-template-columns: minmax(0, 1fr) minmax(124px, auto) auto !important;
  gap: 16px !important;
  align-items: center !important;
}

.ride-card .ride-title-row h3,
.board-panel .ride-list .ride-card .ride-title-row h3,
.board-panel .ride-list .ride-card.is-collapsed .ride-title-row h3,
.board-panel .ride-list .ride-card.is-expanded .ride-title-row h3 {
  margin: 0 !important;
  font-size: clamp(1.45rem, 2.2vw, 2.05rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
}

.seat-badge {
  position: relative;
  display: block;
  width: 138px !important;
  min-width: 124px;
  padding: 0 4px 14px !important;
  color: rgba(210, 255, 208, 0.96) !important;
  font-size: 0.78rem !important;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap !important;
}

.seat-badge::after {
  left: 0 !important;
  right: 0 !important;
  bottom: 3px !important;
  height: 4px !important;
  background: linear-gradient(
    90deg,
    #ff5d6c 0,
    #ff5d6c var(--seat-fill),
    #55d78f var(--seat-fill),
    #55d78f 100%
  ) !important;
  box-shadow: 0 0 10px rgba(85, 215, 143, 0.22) !important;
}

.seat-badge.is-full::after {
  background: #ff5d6c !important;
}

.top-request-button {
  min-width: 148px !important;
  min-height: 48px !important;
  padding: 12px 16px !important;
  border-radius: 9px !important;
}

.ride-brief,
body:not(.light-theme) .ride-card .ride-brief,
body:not(.light-theme) .ride-card.is-expanded .ride-brief,
body:not(.light-theme) .ride-card.is-collapsed .ride-brief {
  gap: 12px !important;
  margin: 2px 0 0 !important;
}

.ride-brief .brief-tile {
  min-height: 48px !important;
  padding: 8px 12px !important;
  border-radius: 9px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.ride-brief .brief-tile small {
  margin-bottom: 3px !important;
  font-size: 8.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  opacity: 0.7 !important;
  text-align: center !important;
}

.ride-brief .brief-tile b {
  font-size: 13px !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.ride-meta,
.ride-message,
.contact-line,
.impact-row {
  margin: 0 !important;
}

.ride-meta {
  padding-top: 2px;
  font-size: 0.98rem;
  line-height: 1.45;
}

.impact-row {
  gap: 10px !important;
}

.ride-message,
.contact-line,
.comments {
  margin-top: 2px !important;
}

.ride-toggle,
.board-panel .ride-list .ride-card .ride-toggle {
  top: auto !important;
  right: 18px !important;
  bottom: 16px !important;
  width: 40px !important;
  height: 40px !important;
  transform: none !important;
}

@media (min-width: 1180px) {
  .app-shell > .workspace {
    grid-template-columns: minmax(330px, 400px) minmax(0, 1fr) !important;
    align-items: start !important;
  }

  .app-shell > .workspace > .composer-panel {
    position: sticky !important;
    top: 96px !important;
  }
}

@media (max-width: 1179px) {
  .app-shell > .workspace {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .filters {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .clear-filter-button {
    justify-self: stretch;
  }
}

@media (max-width: 767px) {
  .hero-flight-video-direct {
    top: 48px;
    right: -76px;
    width: min(118vw, 520px);
    height: 260px;
    opacity: 0.42;
  }

  .app-shell > .workspace {
    width: 100% !important;
    margin-block: 14px 24px !important;
  }

  .advanced-filters,
  .time-range-filter {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .board-panel .ride-list {
    gap: 24px !important;
    padding: 8px 6px 28px 2px !important;
  }

  .board-panel .ride-list .ride-card,
  .board-panel .ride-list .ride-card.is-collapsed,
  .board-panel .ride-list .ride-card.is-expanded {
    padding: 18px 16px 60px !important;
  }

  .board-panel .ride-list .ride-card .ride-main,
  .board-panel .ride-list .ride-card.is-collapsed .ride-main,
  .board-panel .ride-list .ride-card.is-expanded .ride-main {
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .board-panel .ride-list .ride-card .destination-sign,
  .board-panel .ride-list .ride-card.is-collapsed .destination-sign,
  .board-panel .ride-list .ride-card.is-expanded .destination-sign {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
  }

  .ride-title-row,
  .board-panel .ride-list .ride-card.is-collapsed .ride-title-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .ride-title-row h3,
  .board-panel .ride-list .ride-card.is-collapsed .ride-title-row h3 {
    font-size: clamp(1.85rem, 10vw, 2.65rem) !important;
  }

  .seat-badge,
  .top-request-button {
    width: 100% !important;
    justify-self: stretch !important;
  }

  .ride-brief,
  body:not(.light-theme) .ride-card .ride-brief,
  body:not(.light-theme) .ride-card.is-expanded .ride-brief,
  body:not(.light-theme) .ride-card.is-collapsed .ride-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-flight-video-direct {
    display: none !important;
  }
}
/* Compact filter reset keeps the control inside the board rail. */
.filters .clear-filter-button {
  width: auto !important;
  min-width: 0 !important;
  min-height: 36px !important;
  padding: 8px 12px !important;
  border-color: rgba(232, 216, 170, 0.16) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: rgba(238, 230, 203, 0.72) !important;
  font-size: 0.78rem !important;
}
/* Final section flow: composer and ride board stack on every viewport. */
@media (min-width: 1180px) {
  .app-shell > .workspace {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 32px !important;
  }

  .app-shell > .workspace > .composer-panel,
  .app-shell > .workspace > .board-panel {
    position: relative !important;
    top: auto !important;
    align-self: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
/* Board-first flow: keep CSS order aligned with the document order. */
.app-shell > .workspace > .board-panel {
  order: 1 !important;
}

.app-shell > .workspace > .composer-panel {
  order: 2 !important;
}
/* Ride destination headings: 5px smaller at the compact card breakpoint. */
@media (max-width: 767px) {
  .ride-card .ride-title-row h3,
  .board-panel .ride-list .ride-card .ride-title-row h3,
  .board-panel .ride-list .ride-card.is-collapsed .ride-title-row h3,
  .board-panel .ride-list .ride-card.is-expanded .ride-title-row h3 {
    font-size: clamp(1.25rem, 5vw, 1.65rem) !important;
  }
}

/* Hero actions: align all 3 boxes in the same horizontal line */
.hero-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 16px !important;
  max-width: 100% !important;
  margin-top: 24px !important;
}

.hero-actions .hero-card {
  width: auto !important;
  max-width: fit-content !important;
  margin: 0 !important;
  align-self: center !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  padding: 12px 18px !important;
  border-radius: 8px !important;
}

/* How it works section: reduce width & strip redundant outer nested rectangle borders */
.info-sections.guide-top {
  width: min(100% - 32px, 880px) !important;
  max-width: 880px !important;
  margin-inline: auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.guide-top .how-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.guide-top .eyebrow {
  margin-bottom: 12px !important;
}
/* Seat occupancy: one clean rail, with filled seats red and remaining seats green. */
.seat-badge {
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.seat-badge::before {
  content: none !important;
  display: none !important;
}

.seat-badge::after {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  right: 4px !important;
  bottom: 3px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 3px !important;
  transform: none !important;
  border-radius: 999px !important;
  background: linear-gradient(
    90deg,
    #ff5d6c 0,
    #ff5d6c var(--seat-fill),
    #55d78f var(--seat-fill),
    #55d78f 100%
  ) !important;
  box-shadow: none !important;
}

.seat-badge.is-full::after {
  background: #ff5d6c !important;
}
/* Desktop workspace: live squad board on the left (60%), create on the right (40%). */
.app-shell > .workspace > .board-panel {
  order: 1 !important;
}

.app-shell > .workspace > .composer-panel {
  order: 2 !important;
}

.app-shell > .workspace > .composer-panel,
.app-shell > .workspace > .board-panel {
  max-height: none !important;
}

.app-shell > .workspace > .composer-panel {
  overflow: hidden !important;
}

.board-panel .ride-list {
  max-height: none !important;
  overflow: visible !important;
  overscroll-behavior: auto !important;
  scrollbar-width: none !important;
  padding-right: 0 !important;
}

.board-panel .ride-list::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

@media (min-width: 1180px) {
  .app-shell > .workspace {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) !important;
    column-gap: clamp(28px, 3vw, 44px) !important;
    row-gap: 0 !important;
    align-items: start !important;
  }

  .app-shell > .workspace > .composer-panel,
  .app-shell > .workspace > .board-panel {
    position: relative !important;
    top: auto !important;
    align-self: start !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
/* Smooth page scrolling: keep animated/fixed layers compositor-only. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  overflow-anchor: auto;
}

.topbar,
body::before {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.cockroach-overlay {
  left: 0 !important;
  top: 0 !important;
  will-change: transform, opacity !important;
  contain: none !important;
  overflow: visible !important;
}

.ride-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}

.info-sections,
.value-strip,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

@media (max-width: 767px) {
  body {
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   Mobile scroll performance
   backdrop-filter blur() re-rasterizes the area behind an element
   on every paint. On sticky/fixed elements that stay on screen
   while the page moves, that means a full re-blur every scroll
   frame -- the single biggest cause of stutter on phones. Replace
   those blurs with opaque backgrounds on small screens, and drop
   the fixed full-screen grid overlay that repaints on scroll.
   ============================================================ */
@media (max-width: 760px) {
  /* Sticky header: solid background, no per-frame backdrop blur. */
  .topbar {
    background: rgba(9, 11, 36, 0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* Fixed floating "Create squad" button. */
  .floating-action {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* Fixed full-screen grid overlay -- imperceptible, but it forces a
     repaint of a viewport-sized layer as the page scrolls. */
  body::before {
    display: none;
  }
}

/* Users who ask for less motion get no flight animation at all (the JS also
   bails out for them). The animation itself stays on for everyone else,
   including mobile, where it now renders at a lower internal resolution. */
@media (prefers-reduced-motion: reduce) {
  .hero-flight-stage {
    display: none !important;
  }
}

/* Single page scrollbar on the extreme right: Remove all container scrollbars and max-height limits */
html,
body,
.app-shell,
.workspace,
.board-panel,
.composer-panel,
.panel-inner,
.ride-list,
.board-panel .ride-list,
.topbar-actions {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  overflow-y: visible !important;
  overflow-x: visible !important;
  padding-right: 0 !important;
}

.board-panel::-webkit-scrollbar,
.ride-list::-webkit-scrollbar,
.board-panel .ride-list::-webkit-scrollbar,
.composer-panel::-webkit-scrollbar,
.topbar-actions::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Panel order swap: Find your cab squad on the LEFT, Create cab squad on the RIGHT */
@media (min-width: 980px) {
  .board-panel {
    order: 1 !important;
  }
  .composer-panel {
    order: 2 !important;
  }
}

/* Mobile mascot cockroach banner fix: text not squeezed, fully readable */
.mascot-bubble {
  white-space: nowrap !important;
  width: auto !important;
  max-width: none !important;
  font-size: 12px !important;
  padding: 6px 12px !important;
  z-index: 9999 !important;
  background: rgba(9, 11, 36, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

@media (max-width: 760px) {
  .cockroach-overlay {
    z-index: 9999 !important;
  }
  .mascot-bubble {
    font-size: 11px !important;
    padding: 5px 10px !important;
    left: 0 !important;
    bottom: 60px !important;
  }
}

/* Integrated How It Works inside Hero Container */
.hero-how-card {
  margin-top: 28px !important;
  background: rgba(14, 18, 44, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 16px !important;
  padding: 20px 24px !important;
  backdrop-filter: blur(12px) !important;
}

body.light-theme .hero-how-card {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Full-bleed main workspace containers */
.app-shell {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.workspace,
.app-shell > .workspace {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  padding-left: clamp(16px, 3vw, 36px) !important;
  padding-right: clamp(16px, 3vw, 36px) !important;
}

@media (min-width: 980px) {
  .workspace,
  .app-shell > .workspace {
    display: grid !important;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important;
    gap: clamp(24px, 3vw, 40px) !important;
    align-items: start !important;
  }

  .board-panel {
    order: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .composer-panel {
    order: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* UNCLUTTERED FILTER BAR: Spacious search field, no text truncation */
.board-panel .filters,
.filters {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.filters .search-field,
.board-panel .filters > .search-field {
  width: 100% !important;
  min-width: 0 !important;
}

.filters .search-field input,
#searchInput {
  width: 100% !important;
  min-height: 48px !important;
  font-size: 14px !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.filters .advanced-filters,
.board-panel .advanced-filters {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.filters .clear-filter-button,
.board-panel .clear-filter-button,
#clearFiltersButton {
  align-self: center !important;
  margin-top: 4px !important;
}

/* CONTAINERS & CARDS: Symmetrical padding, no clipping */
.panel-inner,
.board-panel,
.composer-panel {
  box-sizing: border-box !important;
  padding: clamp(16px, 2.5vw, 28px) !important;
  overflow: visible !important;
}

.ride-card,
.board-panel .ride-list .ride-card {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: clamp(16px, 2vw, 24px) !important;
  overflow: visible !important;
}

/* ELEGANT & PREMIUM UNIFORM FILTER STYLING ACROSS ALL FILTER CONTROLS */
.filters,
.board-panel .filters {
  background: rgba(12, 15, 34, 0.65) !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.light-theme .filters,
body.light-theme .board-panel .filters {
  background: rgba(255, 255, 255, 0.9) !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

/* TIME RANGE FILTER: Clean stacked flex layout (label on top, time input value below - ZERO overlap) */
.time-range-filter label {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  background-color: rgba(18, 22, 50, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 10px !important;
  padding: 6px 14px !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.time-range-filter label > span {
  position: static !important;
  display: block !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: rgba(248, 251, 255, 0.65) !important;
  -webkit-text-fill-color: rgba(248, 251, 255, 0.65) !important;
  margin-bottom: 2px !important;
  line-height: 1.2 !important;
  opacity: 1 !important;
}

.time-range-filter input,
#timeFilterFrom,
#timeFilterTo {
  position: static !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: auto !important;
  height: 22px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
  width: 100% !important;
}

/* UNIFORM TYPOGRAPHY & COLORS ACROSS ALL INPUTS, LABELS, PLACEHOLDERS & BUTTONS */
.filters,
.filters *,
.filters input,
.filters select,
.filters option,
.filters label,
.filters button,
.filters .clear-filter-button,
.search-field input,
#searchInput,
#terminalFilter,
#genderFilter,
#clearFiltersButton {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  opacity: 1 !important;
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
}

/* FILTER ROW 1: 5 EQUAL LENGTH BOXES SPREAD OUT EVENLY ACROSS 100% CONTAINER WIDTH IN ONE LINE */
.board-panel .filters,
.filters {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

/* SEARCH FIELD & LOCALITY SUGGESTIONS: High z-index layer, never clipped or hidden */
.filters,
.board-panel .filters {
  position: relative !important;
  z-index: 100 !important;
}

.board-panel .filters > .search-field,
.filters > .search-field,
.search-field {
  position: relative !important;
  z-index: 120 !important;
  grid-column: 1 / 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.locality-suggestions,
#searchSuggestions,
.filters .locality-suggestions {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: 220px !important;
  max-height: 280px !important;
  overflow-y: auto !important;
  z-index: 99999 !important;
  background: #0c0f24 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  padding: 6px !important;
}

.locality-suggestions button,
#searchSuggestions button,
.filters .locality-suggestions button {
  width: 100% !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  background: transparent !important;
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.locality-suggestions button:hover,
.locality-suggestions button:focus-visible,
#searchSuggestions button:hover {
  background: rgba(182, 255, 77, 0.18) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.board-panel .filters > .advanced-filters,
.board-panel .advanced-filters,
.filters .advanced-filters {
  grid-column: 2 / 6 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: center !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.time-range-filter,
.board-panel .time-range-filter {
  display: contents !important;
}

@media (max-width: 1024px) {
  .board-panel .filters,
  .filters {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .filters > .search-field {
    grid-column: 1 / -1 !important;
  }

  .filters .advanced-filters,
  .board-panel .advanced-filters {
    grid-column: 1 / -1 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* TIME RANGE FILTER LABEL: Centered inside 52px box with ZERO text overflow */
.time-range-filter label {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  padding: 4px 6px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  position: relative !important;
  background-color: rgba(18, 22, 50, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 10px !important;
}

.time-range-filter label > span {
  position: static !important;
  display: block !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  text-transform: capitalize !important;
  letter-spacing: 0.04em !important;
  color: rgba(248, 251, 255, 0.45) !important;
  -webkit-text-fill-color: rgba(248, 251, 255, 0.45) !important;
  margin-bottom: 1px !important;
  line-height: 1.1 !important;
  text-align: center !important;
  width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.time-range-filter input,
#timeFilterFrom,
#timeFilterTo {
  position: static !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: auto !important;
  height: 20px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: rgba(248, 251, 255, 0.45) !important;
  -webkit-text-fill-color: rgba(248, 251, 255, 0.45) !important;
  text-align: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.filters select,
.board-panel .filters select,
.filters input:not(#timeFilterFrom):not(#timeFilterTo),
.time-picker-button,
#searchInput,
#terminalFilter,
#genderFilter {
  width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  box-sizing: border-box !important;
}

.filters input:not(#timeFilterFrom):not(#timeFilterTo),
.filters select,
.time-picker-button,
#searchInput,
#terminalFilter,
#genderFilter {
  background-color: rgba(18, 22, 50, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  transition: all 0.2s ease-in-out !important;
}

.filters input:focus,
.filters select:focus,
#searchInput:focus,
#terminalFilter:focus,
#genderFilter:focus {
  border-color: #b6ff4d !important;
  box-shadow: 0 0 0 3px rgba(182, 255, 77, 0.22) !important;
  outline: none !important;
}

/* UNSELECTED / DEFAULT STATE: EXACT SAME MUTED GREYED OUT TONE ACROSS ALL 4 FILTERS */
.filters input::placeholder,
.search-field input::placeholder,
#searchInput::placeholder,
.time-range-filter label > span,
.time-range-filter input,
#timeFilterFrom,
#timeFilterTo,
.filters select,
.board-panel .filters select,
#terminalFilter,
#genderFilter,
.filters select option[value="all"],
.filters select option[value=""] {
  color: rgba(248, 251, 255, 0.45) !important;
  -webkit-text-fill-color: rgba(248, 251, 255, 0.45) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  opacity: 1 !important;
}

/* Active typed/selected values pop in bright white */
#searchInput:not(:placeholder-shown),
.filters select.is-active,
#terminalFilter.is-active,
#genderFilter.is-active {
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
  font-weight: 500 !important;
}

select option {
  background-color: #0c0f22 !important;
  color: #f8fbff !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

body.light-theme .filters input,
body.light-theme .filters select,
body.light-theme #searchInput,
body.light-theme #terminalFilter,
body.light-theme #genderFilter {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.16) !important;
  color: #1e293b !important;
  -webkit-text-fill-color: #1e293b !important;
}

body.light-theme .filters input::placeholder,
body.light-theme #searchInput::placeholder {
  color: rgba(30, 41, 59, 0.75) !important;
  -webkit-text-fill-color: rgba(30, 41, 59, 0.75) !important;
}

/* FILTER ROW 2: CLEAR ALL FILTERS - Long button on the next line with a very light red shade gradient */
.filters > .clear-filter-button,
.filters .advanced-filters > .clear-filter-button,
.board-panel .clear-filter-button,
#clearFiltersButton {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  margin: 10px auto 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 480px !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 24px !important;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(185, 28, 28, 0.1) 100%) !important;
  border: 1px solid rgba(248, 113, 113, 0.38) !important;
  border-radius: 12px !important;
  color: #fca5a5 !important;
  -webkit-text-fill-color: #fca5a5 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  cursor: pointer !important;
  transition: all 0.2s ease-in-out !important;
}

.filters > .clear-filter-button:hover,
.filters .advanced-filters > .clear-filter-button:hover,
#clearFiltersButton:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.26) 0%, rgba(185, 28, 28, 0.2) 100%) !important;
  border-color: rgba(248, 113, 113, 0.6) !important;
  color: #fecaca !important;
  -webkit-text-fill-color: #fecaca !important;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-1px) !important;
}

.filters > .clear-filter-button:active,
#clearFiltersButton:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.18) !important;
}

/* HERO TITLE FARE PRICE (₹1,400 ₹500): EXACTLY 2PX BIGGER THAN THE REST OF THE HEADING */
.hero-title-fare,
.hero-copy h1 .hero-title-fare,
.hero-copy h1 .fare-swap,
.hero-copy h1 .old-fare,
.hero-copy h1 .new-fare,
#heroTitle .hero-title-fare,
#heroTitle .fare-swap,
#heroTitle .old-fare,
#heroTitle .new-fare {
  font-size: calc(1em + 2px) !important;
  line-height: 1.15 !important;
}

/* HOW IT WORKS / FLOW CHART: MOBILE WEB SENTENCE ALIGNMENT FIX */
@media (max-width: 768px) {
  .flow-chart,
  .hero-how-card .flow-chart,
  .how-card .flow-chart {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .flow-step,
  .flow-chart .flow-step,
  .hero-how-card .flow-step,
  .how-card .flow-step {
    display: grid !important;
    grid-template-columns: 36px 1fr !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px !important;
    row-gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  .flow-step .flow-node {
    grid-column: 1 / 2 !important;
    grid-row: 1 / 2 !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .flow-step strong {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 2 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .flow-step small,
  .flow-step p {
    grid-column: 1 / 3 !important;
    grid-row: 2 / 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    margin: 0 !important;
  }

  /* FLOW ARROW: POINTING FROM LEFT TO RIGHT (→) */
  .flow-arrow,
  .flow-chart .flow-arrow,
  .hero-how-card .flow-arrow,
  .how-card .flow-arrow {
    display: block !important;
    position: relative !important;
    width: 36px !important;
    height: 2px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 2px !important;
    max-height: 2px !important;
    margin: 10px auto !important;
    align-self: center !important;
    justify-self: center !important;
    background: linear-gradient(90deg, rgba(182, 255, 77, 0.2), rgba(182, 255, 77, 0.95)) !important;
    transform: none !important;
  }

  .flow-arrow::after,
  .flow-chart .flow-arrow::after,
  .hero-how-card .flow-arrow::after,
  .how-card .flow-arrow::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 !important;
    border-top: 2px solid #b6ff4d !important;
    border-right: 2px solid #b6ff4d !important;
    border-bottom: none !important;
    border-left: none !important;
    transform: translateY(-50%) rotate(45deg) !important;
    background: transparent !important;
  }
}

/* ==========================================================================
   ELEGANT & PREMIUM MOBILE-FRIENDLY FILTER BAR (RESPONSIVE ALIGNMENT FIX)
   ========================================================================== */

/* 1. DESKTOP SCREENS (> 768px): 5 EQUAL COLUMNS ON ONE SINGLE ROW */
@media (min-width: 769px) {
  .board-panel .filters,
  .filters {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .board-panel .filters > .search-field,
  .filters > .search-field {
    grid-column: 1 / 2 !important;
    width: 100% !important;
  }

  .board-panel .filters > .advanced-filters,
  .filters .advanced-filters {
    grid-column: 2 / 6 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .filters > .clear-filter-button,
  .filters .advanced-filters > .clear-filter-button,
  #clearFiltersButton {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    margin: 12px auto 0 auto !important;
    width: 100% !important;
    max-width: 480px !important;
  }
}

/* 2. MOBILE WEB SCREENS (<= 768px): ELEGANT 3-ROW SPACIOUS LAYOUT */
@media (max-width: 768px) {
  .board-panel .filters,
  .filters {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 14px !important;
    box-sizing: border-box !important;
    background: rgba(14, 18, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
  }

  /* Row 1: Locality Search Input (100% width) */
  .board-panel .filters > .search-field,
  .filters > .search-field,
  .search-field {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .search-field input,
  #searchInput {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    background-color: rgba(22, 28, 62, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
    box-sizing: border-box !important;
  }

  /* Row 2: 2x2 Grid for From, To, Terminal, Gender */
  .board-panel .filters > .advanced-filters,
  .filters .advanced-filters {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  .time-range-filter,
  .board-panel .time-range-filter {
    display: contents !important;
  }

  .time-range-filter label,
  .filters select,
  .board-panel .filters select,
  #terminalFilter,
  #genderFilter {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
    box-sizing: border-box !important;
    background-color: rgba(22, 28, 62, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
  }

  .time-range-filter label {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .time-range-filter label > span {
    font-size: 10.5px !important;
    text-transform: capitalize !important;
    color: rgba(248, 251, 255, 0.6) !important;
    -webkit-text-fill-color: rgba(248, 251, 255, 0.6) !important;
    margin-bottom: 2px !important;
  }

  .time-range-filter input[type="time"] {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  /* Row 3: Full-width Clear Filters button */
  .filters > .clear-filter-button,
  .filters .advanced-filters > .clear-filter-button,
  .board-panel .clear-filter-button,
  #clearFiltersButton {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    margin-top: 6px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(185, 28, 28, 0.1) 100%) !important;
    border: 1px solid rgba(248, 113, 113, 0.38) !important;
    color: #fca5a5 !important;
    -webkit-text-fill-color: #fca5a5 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* ==========================================================================
   UNIFORM FILTER VALUES: SAME FONT, SAME FONT SIZE, SAME GREY COLOR
   ========================================================================== */

/* 1. DARK THEME UNIFORM FILTER VALUES */
.filters input,
.filters select,
.filters textarea,
.filters input[type="search"],
.filters input[type="time"],
.filters label,
.filters span,
.filters option,
#searchInput,
#terminalFilter,
#genderFilter,
#timeFilterFrom,
#timeFilterTo,
.time-range-filter input {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: rgba(248, 251, 255, 0.55) !important;
  -webkit-text-fill-color: rgba(248, 251, 255, 0.55) !important;
}

/* Chrome / WebKit native time picker & input pseudo-elements */
.filters input::-webkit-input-placeholder,
.filters input::placeholder,
#searchInput::placeholder,
.filters input::-webkit-datetime-edit,
.filters input::-webkit-datetime-edit-fields-wrapper,
.filters input::-webkit-datetime-edit-text,
.filters input::-webkit-datetime-edit-hour-field,
.filters input::-webkit-datetime-edit-minute-field,
.filters input::-webkit-datetime-edit-ampm-field {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: rgba(248, 251, 255, 0.55) !important;
  -webkit-text-fill-color: rgba(248, 251, 255, 0.55) !important;
}

/* 2. LIGHT THEME UNIFORM FILTER VALUES */
body.light-theme .filters input,
body.light-theme .filters select,
body.light-theme .filters textarea,
body.light-theme .filters input[type="search"],
body.light-theme .filters input[type="time"],
body.light-theme .filters label,
body.light-theme .filters span,
body.light-theme .filters option,
body.light-theme #searchInput,
body.light-theme #terminalFilter,
body.light-theme #genderFilter,
body.light-theme #timeFilterFrom,
body.light-theme #timeFilterTo,
body.light-theme .time-range-filter input {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: rgba(30, 41, 59, 0.65) !important;
  -webkit-text-fill-color: rgba(30, 41, 59, 0.65) !important;
}

body.light-theme .filters input::-webkit-input-placeholder,
body.light-theme .filters input::placeholder,
body.light-theme #searchInput::placeholder,
body.light-theme .filters input::-webkit-datetime-edit,
body.light-theme .filters input::-webkit-datetime-edit-fields-wrapper,
body.light-theme .filters input::-webkit-datetime-edit-text,
body.light-theme .filters input::-webkit-datetime-edit-hour-field,
body.light-theme .filters input::-webkit-datetime-edit-minute-field,
body.light-theme .filters input::-webkit-datetime-edit-ampm-field {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: rgba(30, 41, 59, 0.65) !important;
  -webkit-text-fill-color: rgba(30, 41, 59, 0.65) !important;
}

/* 3. MOBILE WEB OVERRIDE (UNIFORM 14px ON MOBILE FOR ALL 5 FILTERS) */
@media (max-width: 768px) {
  .filters input,
  .filters select,
  .filters input[type="search"],
  .filters input[type="time"],
  #searchInput,
  #terminalFilter,
  #genderFilter,
  #timeFilterFrom,
  #timeFilterTo,
  .filters input::-webkit-datetime-edit {
    font-size: 14px !important;
  }

  /* HORIZONTAL RIDE DETAILS STRIP: NO VERTICAL CONTAINERS, NO VERTICAL BOX LINES */
  .ride-brief,
  .board-panel .ride-list .ride-card .ride-brief,
  body:not(.light-theme) .ride-card .ride-brief,
  body:not(.light-theme) .ride-card.is-expanded .ride-brief,
  body:not(.light-theme) .ride-card.is-collapsed .ride-brief {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 18px !important;
    width: 100% !important;
    margin: 10px 0 8px 0 !important;
    padding: 10px 14px !important;
    background: rgba(22, 28, 62, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  .brief-tile,
  .ride-brief .brief-tile {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
  }

  .brief-tile small {
    font-size: 11.5px !important;
    font-weight: 400 !important;
    text-transform: capitalize !important;
    letter-spacing: normal !important;
    color: rgba(248, 251, 255, 0.55) !important;
    -webkit-text-fill-color: rgba(248, 251, 255, 0.55) !important;
    margin: 0 !important;
  }

  .brief-tile small::after {
    content: ":" !important;
  }

  .brief-tile b {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }

  /* Remove green side border accent from cards on mobile */
  .ride-card,
  .board-panel .ride-list .ride-card {
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    outline: none !important;
  }

  .ride-card::before,
  .board-panel .ride-list .ride-card::before {
    display: none !important;
  }

  /* Cockroach Mascot & Speech Banner: 100% UNCLIPPED, NO CONTAINMENT CLIPPING */
  .cockroach-overlay,
  body .cockroach-overlay {
    z-index: 99999 !important;
    pointer-events: none !important;
    opacity: 0.95 !important;
    contain: none !important;
    overflow: visible !important;
    clip-path: none !important;
  }

  .mascot-bubble,
  .cockroach-overlay .mascot-bubble {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    bottom: calc(100% + 10px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
    width: max-content !important;
    max-width: none !important;
    padding: 7px 16px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: linear-gradient(135deg, rgba(14, 18, 44, 0.98) 0%, rgba(8, 12, 30, 0.96) 100%) !important;
    border: 1.5px solid #b6ff4d !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.75), 0 0 16px rgba(182, 255, 77, 0.35) !important;
    z-index: 999999 !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    contain: none !important;
    clip-path: none !important;
  }
}

/* ==========================================================================
   ULTRA-CLEAN MOBILE RIDE CARD LAYOUT, SANS-SERIF FONT & ZERO TRUNCATION
   ========================================================================== */

/* 1. ENFORCE CLEAN SANS-SERIF FONT FAMILY ON ALL CARD ELEMENTS */
.ride-card,
.ride-card *,
.brief-tile,
.brief-tile *,
.destination-sign,
.destination-sign *,
.ride-main,
.ride-main *,
.ride-title,
.ride-meta,
.impact-row,
.impact-row * {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* 2. MOBILE WEB RIDE CARD ALIGNMENT & SPACING */
@media (max-width: 768px) {
  /* MOBILE RIDE CARD: LEFT-ALIGNED & COMPACT TYPOGRAPHY */
  .ride-card,
  .board-panel .ride-list .ride-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 14px 12px !important;
    gap: 10px !important;
    border-radius: 14px !important;
    background: rgba(14, 18, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
    box-sizing: border-box !important;
  }

  /* Destination & Top Header Row: LEFT ALIGNED */
  .ride-main,
  .board-panel .ride-list .ride-card .ride-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .destination-sign {
    display: none !important;
  }

  .ride-copy,
  .board-panel .ride-list .ride-card .ride-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ride-title-row,
  .board-panel .ride-list .ride-card .ride-title-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    text-align: left !important;
  }

  .ride-title,
  .board-panel .ride-list .ride-card .ride-title,
  .board-panel .ride-list .ride-card h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    margin: 0 !important;
    text-align: left !important;
  }

  /* 4-COLUMN HORIZONTAL DETAILS STRIP (HOST, TERMINAL, LANDING, TROLLEY) */
  .ride-brief,
  .board-panel .ride-list .ride-card .ride-brief,
  body:not(.light-theme) .ride-card .ride-brief {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 2px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }

  .brief-tile,
  .ride-brief .brief-tile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 1px !important;
    background: rgba(22, 28, 62, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    padding: 4px 6px !important;
    margin: 0 !important;
    min-height: 38px !important;
    max-height: none !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .brief-tile small {
    font-size: 6.5px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    color: rgba(248, 251, 255, 0.45) !important;
    -webkit-text-fill-color: rgba(248, 251, 255, 0.45) !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    padding-left: 0 !important;
  }

  .brief-tile small::after {
    content: "" !important;
  }

  .brief-tile b {
    font-size: 8.5px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
    padding-left: 0 !important;
  }

  /* Host Meta Line (lokiii (Male) lands at 22:19...) */
  .ride-meta {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
    color: rgba(248, 251, 255, 0.7) !important;
    -webkit-text-fill-color: rgba(248, 251, 255, 0.7) !important;
    margin: 2px 0 !important;
    text-align: left !important;
  }

  /* Action Buttons & Request Seat */
  .top-request-button,
  .request-button,
  .ride-actions .primary-button {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border-radius: 9px !important;
    pointer-events: auto !important;
    z-index: 999 !important;
    position: relative !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(182, 255, 77, 0.4) !important;
  }

  /* Impact Pills Strip (₹933 saved each, 19 kg CO2, 52 km) */
  .impact-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    width: 100% !important;
    margin-top: 2px !important;
    text-align: left !important;
  }

  .impact-row span {
    font-size: 9.5px !important;
    padding: 2px 7px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(248, 251, 255, 0.75) !important;
    -webkit-text-fill-color: rgba(248, 251, 255, 0.75) !important;
    white-space: nowrap !important;
    text-align: left !important;
  }
}

/* Login button pulse highlight when user attempts action without auth */
@keyframes auth-pulse-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(182, 255, 77, 0);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(182, 255, 77, 0.9), 0 0 40px rgba(182, 255, 77, 0.6);
  }
}

.auth-pulse {
  animation: auth-pulse-glow 0.8s ease-in-out 3 !important;
  border-color: #b6ff4d !important;
  outline: 2px solid #b6ff4d !important;
  outline-offset: 2px !important;
}

/* MOBILE WEB FRIENDLY IMPROVEMENTS */
@media (max-width: 640px) {
  /* Increase touch targets */
  input, select, textarea, button {
    min-height: 44px !important;
  }

  .join-button, .primary-button, .ghost-button {
    min-height: 44px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
  }

  /* Ride card full width with minimal padding */
  .ride-card {
    padding: 8px !important;
    margin: 0 !important;
    width: 100% !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
  }

  .ride-list {
    gap: 4px !important;
    padding: 6px !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .ride-brief {
    margin-top: 6px !important;
    gap: 4px !important;
  }

  .ride-brief span {
    padding: 4px 6px !important;
    font-size: 11px !important;
  }

  .impact-row {
    margin-top: 4px !important;
    gap: 4px !important;
  }

  .impact-row span {
    min-height: 22px !important;
    padding: 3px 6px !important;
    font-size: 9px !important;
  }

  /* Filter improvements - full width */
  .filters {
    flex-direction: column !important;
    gap: 6px !important;
    padding: 6px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .search-field {
    width: 100% !important;
    margin: 0 !important;
  }

  .search-field span {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
  }

  .advanced-filters {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .time-range-filter {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .clear-filter-button {
    width: 100% !important;
    margin-top: 8px !important;
  }

  /* Better text readability */
  .ride-title-row h3 {
    font-size: 15px !important;
  }

  .ride-meta {
    font-size: 10px !important;
  }

  /* Request dialog better for mobile */
  .request-dialog {
    width: calc(100vw - 20px) !important;
    border-radius: 12px !important;
  }

  .request-form {
    padding: clamp(16px, 3vw, 24px) !important;
    gap: 14px !important;
  }

  .request-grid {
    gap: 12px !important;
  }

  label span {
    font-size: 12px !important;
  }

  /* Topbar improvements */
  .topbar {
    padding: 10px clamp(12px, 2vw, 16px) !important;
    gap: 8px !important;
  }

  .brand strong {
    font-size: 16px !important;
  }

  .brand small {
    display: none !important;
  }

  /* Better button accessibility */
  .icon-button {
    min-height: 40px !important;
    width: 40px !important;
  }

  /* Improve form field touch targets */
  .ride-form label {
    gap: 6px !important;
  }

  /* Better section spacing */
  .section-heading {
    margin-bottom: 16px !important;
  }

  /* Reduce font sizes for mobile */
  h1 {
    font-size: clamp(24px, 5vw, 32px) !important;
  }

  h2 {
    font-size: 18px !important;
  }

  h3 {
    font-size: 15px !important;
  }
}