@font-face {
  font-family: Montserrat;
  src: url("./assets/fonts/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
}

@font-face {
  font-family: Montserrat;
  src: url("./assets/fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

@font-face {
  font-family: Montserrat;
  src: url("./assets/fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --primary: #264d66;
  --secondary: #eaae48;
  --secondary-soft: #ffeed2;
  --black: #333333;
  --white: #ffffff;
  --gray: #949494;
  --light-gray: #d4d4d4;
  --body: #f8fafc;
  --green: #189915;
  --dark-green: #0f6d0c;
  --red: #d24036;
  --text-strong: #0f172a;
  --text-medium: #475569;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border: #e5e7eb;
  --border-soft: #eef2f6;
  --surface: #ffffff;
  --surface-alt: #f6f7f9;
  --success-soft: #ecfdf5;
  --danger-soft: #fdecec;
  --warning-soft: #fff4d6;
  --shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  --radius: 10px;
  --phone-width: 430px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: #dfe7ed;
  color: var(--black);
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 500;
}

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

button {
  border: 0;
  cursor: pointer;
}

.svg-icon {
  width: 1.25em;
  height: 1.25em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background: #dfe7ed;
}

.phone {
  width: min(100%, var(--phone-width));
  min-height: 100dvh;
  background: var(--body);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05), 0 20px 60px rgba(15, 23, 42, 0.22);
}

.screen {
  min-height: 100dvh;
  background: var(--body);
  display: flex;
  flex-direction: column;
}

.status-bar {
  height: env(safe-area-inset-top, 0px);
  min-height: 8px;
  background: var(--body);
}

.scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 96px;
}

.screen-pad {
  padding: 20px;
}

.header {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 0 0 100vmax var(--white);
  clip-path: inset(0 -100vmax);
  flex-shrink: 0;
}

.header-title {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  text-align: left;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 19px;
  background: var(--white);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow);
}

.icon-btn .svg-icon {
  width: 20px;
  height: 20px;
}

.notification-menu {
  position: relative;
  z-index: 220;
}

.notification-trigger {
  background: transparent !important;
  box-shadow: none !important;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(280px, calc(100vw - 40px));
  padding: 8px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  display: none;
  z-index: 240;
}

.notification-menu.open .notification-dropdown {
  display: grid;
  gap: 4px;
}

.desktop-user-dropdown button {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: var(--text-medium);
  background: transparent;
  text-align: left;
}

.notification-item {
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  display: grid;
  gap: 4px;
  color: var(--text-medium);
  background: transparent;
  text-align: left;
  border-radius: 6px;
}

.notification-item:hover {
  background: #f8fafc;
}

.notification-item.unread .notification-item-top strong {
  color: var(--primary);
}

.notification-empty {
  margin: 0;
  padding: 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.notification-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.notification-item-top strong {
  min-width: 0;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item-top time {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.notification-message {
  min-width: 0;
  color: var(--text-subtle);
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-label {
  flex: 1;
  min-width: 0;
}

.dropdown-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
}

.dropdown-chevron .svg-icon {
  width: 18px;
  height: 18px;
}

.ghost-icon {
  width: 38px;
  height: 38px;
}

.primary-btn,
.danger-btn,
.outline-btn,
.light-btn {
  min-height: 50px;
  border-radius: var(--radius);
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  width: 100%;
}

.primary-btn {
  color: var(--white);
  background: var(--primary);
}

.danger-btn {
  color: var(--white);
  background: var(--red);
}

.outline-btn {
  color: var(--primary);
  background: transparent;
  border: 1px solid rgba(38, 77, 102, 0.2);
}

.light-btn {
  color: var(--primary);
  background: var(--white);
  box-shadow: var(--shadow);
}

.text-btn {
  background: transparent;
  color: var(--primary);
  font-weight: 600;
}

.muted {
  color: var(--gray);
}

.small {
  font-size: 12px;
}

.center {
  text-align: center;
}

.card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-title {
  margin: 22px 20px 12px;
  color: var(--black);
  font-size: 17px;
  font-weight: 600;
}

.field {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  padding: 0 16px;
  outline: none;
  font-weight: 600;
}

.field::placeholder,
textarea::placeholder {
  color: var(--gray);
}

textarea.field {
  padding: 14px 16px;
  resize: vertical;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.support-form {
  justify-items: start;
}

.support-form textarea {
  width: 100%;
}

.support-send-btn {
  width: auto;
  min-width: 116px;
  justify-self: start;
  padding-left: 22px;
  padding-right: 22px;
}

.payment-methods-screen,
.add-money-screen {
  display: grid;
  gap: 16px;
}

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

.payment-tabs button {
  min-width: 0;
  padding: 0 8px;
  font-size: 12px;
  white-space: nowrap;
}

.payment-method-panel,
.add-money-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.payment-method-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.payment-method-title > span,
.payment-coming-soon > span,
.add-money-hero > span {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.payment-method-title .svg-icon,
.payment-coming-soon .svg-icon,
.add-money-hero .svg-icon {
  width: 22px;
  height: 22px;
}

.payment-method-title h2,
.payment-coming-soon h2,
.add-money-title h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 20px;
  font-weight: 800;
}

.payment-method-title p,
.payment-coming-soon p,
.add-money-title p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.money-provider-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.money-provider-grid button,
.money-provider-row span {
  min-height: 46px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 800;
}

.payment-coming-soon {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.add-money-hero {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  background: linear-gradient(135deg, #2b5a7c 0%, #1e435d 100%);
  box-shadow: 0 18px 42px rgba(30, 67, 93, 0.22);
}

.add-money-hero > span {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.add-money-hero small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.add-money-hero strong {
  display: block;
  margin-top: 2px;
  color: var(--white);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.add-money-card {
  display: grid;
  gap: 14px;
}

.add-money-card .field {
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}

.add-money-amount {
  font-size: 18px;
  font-weight: 900;
}

.money-provider-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.money-provider-row span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.legal-card,
.delete-account-card {
  padding: 20px;
}

.legal-card h2,
.delete-account-card h2 {
  margin: 0 0 12px;
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 700;
}

.legal-card h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.legal-copy,
.faq-list .booking-card p {
  display: grid;
  gap: 12px;
  color: var(--text-medium);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  white-space: normal;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.legal-copy p,
.faq-list .booking-card p {
  margin: 0;
  width: 100%;
}

.faq-list .booking-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
}

.delete-account-card {
  display: grid;
  gap: 14px;
}

.field-label {
  display: grid;
  gap: 7px;
}

.field-label span {
  color: var(--text-medium);
  font-size: 12px;
  font-weight: 800;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 16px;
  background: rgba(15, 23, 42, 0.32);
}

.confirm-panel {
  width: min(420px, 100%);
  padding: 18px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
}

.confirm-panel h2 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 800;
}

.confirm-panel p {
  margin: 0;
  color: var(--text-medium);
  font-size: 13px;
  line-height: 1.5;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.auth-art {
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 26px 0;
}

.auth-art img {
  width: 100%;
  height: 72%;
  object-fit: contain;
}

.success-art img {
  width: 130px;
  height: 130px;
  max-width: 130px;
}

.auth-copy {
  text-align: center;
  padding: 0;
}

.auth-copy h1 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.auth-copy p {
  margin: 2px 0;
  color: var(--gray);
  font-size: 15px;
}

.phone-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px 15px;
  padding-left: 14px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-layout {
  padding-bottom: 36px;
}

.auth-panel {
  display: grid;
  gap: 14px;
  padding: 0 20px 20px;
}

.auth-panel .phone-input {
  margin: 0;
}

.auth-panel .field {
  min-height: 56px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-panel .center {
  margin: 0;
}

.auth-back .header {
  margin-bottom: 4px;
}

.phone-input span {
  font-size: 20px;
}

.phone-input input {
  border: 0;
  min-height: 56px;
  flex: 1;
  outline: none;
  font-weight: 600;
  background: transparent;
}

.onboarding-stage {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.onboarding-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  border-radius: 50px 50px 0 0;
  background: var(--primary);
}

.skip {
  position: absolute;
  right: 20px;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  z-index: 3;
  color: var(--gray);
  background: transparent;
  font-size: 16px;
  font-weight: 600;
}

.onboarding-slide {
  min-height: 100dvh;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.onboarding-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 12px;
}

.onboarding-image img {
  width: 100%;
  max-height: 34dvh;
  object-fit: contain;
}

.onboarding-copy {
  min-height: 330px;
  padding: 42px 20px 0;
  color: var(--white);
  text-align: center;
}

.onboarding-copy h1 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 600;
}

.onboarding-copy p {
  margin: 0 auto;
  max-width: 350px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

.onboarding-actions {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 34px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.dot.active {
  width: 18px;
  border-radius: 10px;
  background: var(--white);
}

.home-hero {
  margin: 0 20px 16px;
  background: #5f86a0;
  color: var(--white);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.home-map-shell {
  position: relative;
  isolation: isolate;
  background: #f8fafc;
}

.home-live-map-bg {
  position: absolute;
  top: 78px;
  left: 0;
  right: 0;
  height: 330px;
  z-index: 0;
  overflow: hidden;
}

.home-live-map-bg .live-map {
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  box-shadow: none;
  opacity: 0.82;
}

.home-live-map-bg .live-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.06), rgba(248, 250, 252, 0.9));
  pointer-events: none;
}

.home-map-shell::before {
  content: "";
  position: absolute;
  top: 78px;
  right: 0;
  left: 0;
  height: 330px;
  z-index: 0;
  background:
    linear-gradient(115deg, transparent 0 17%, rgba(43, 90, 124, 0.2) 17.2% 18%, transparent 18.2% 52%, rgba(16, 185, 129, 0.22) 52.2% 53%, transparent 53.2%),
    linear-gradient(25deg, transparent 0 34%, rgba(43, 90, 124, 0.18) 34.2% 35%, transparent 35.2%),
    linear-gradient(to right, rgba(43, 90, 124, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 90, 124, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
}

.home-map-shell::after {
  content: "";
  position: absolute;
  top: 156px;
  left: 12%;
  width: 74%;
  height: 96px;
  z-index: 0;
  border-top: 3px dashed rgba(43, 90, 124, 0.38);
  border-radius: 50%;
  transform: rotate(-6deg);
  animation: routePulse 2.8s ease-in-out infinite;
}

.home-map-shell::before,
.home-map-shell::after {
  display: none;
}

.home-map-spacer {
  height: 92px;
  margin: 0 20px 16px;
}

.home-map-shell > * {
  position: relative;
  z-index: 1;
}

.home-map-shell > .home-live-map-bg {
  position: absolute;
  z-index: 0;
}

@keyframes routePulse {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 0.88;
  }
}

.home-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
  position: relative;
  z-index: 210;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--secondary-soft);
}

.home-greeting {
  flex: 1;
}

.home-greeting p {
  margin: 0;
  color: var(--gray);
  font-size: 12px;
}

.home-greeting h2 {
  margin: 4px 0 0;
  color: var(--black);
  font-size: 18px;
  font-weight: 600;
}

.tab-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 20px 14px;
  background: transparent;
  border-radius: 8px;
  padding: 0;
  box-shadow: none;
  overflow: hidden;
  border: 1px solid rgba(38, 77, 102, 0.16);
}

.tab-switch button {
  min-height: 40px;
  border-radius: 0;
  background: var(--white);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.tab-switch button.active {
  background: var(--primary);
  color: var(--white);
}

.search-card {
  margin: 0 20px 18px;
  padding: 16px;
}

.desktop-home-ride-cards {
  display: none;
}

.empty-message {
  width: calc(100% - 40px);
  margin: 6px auto 18px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 600;
}

.location-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
}

.pin-stack {
  width: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #dbeafe;
  background: #2b5a7c;
}

.pin.end {
  border-color: #d1fae5;
  background: #10b981;
}

.pin-line {
  width: 1px;
  height: 28px;
  margin: 3px 0;
  background: repeating-linear-gradient(to bottom, var(--light-gray), var(--light-gray) 4px, transparent 4px, transparent 8px);
}

.location-copy {
  min-width: 0;
  flex: 1;
}

.location-copy label {
  display: block;
  color: var(--gray);
  font-size: 12px;
  margin-bottom: 4px;
}

.location-copy .date-label {
  display: block;
  color: var(--gray);
  font-size: 12px;
  margin-bottom: 4px;
}

.location-copy strong {
  display: block;
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-date-row {
  cursor: pointer;
}

.home-date-input {
  width: 100%;
  min-height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.home-date-input:invalid {
  color: var(--gray);
}

.location-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.route-fields {
  display: grid;
  grid-template-columns: 18px 1fr;
  grid-template-rows: 54px 54px;
  column-gap: 12px;
  align-items: stretch;
}

.route-rail {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 19px 0;
}

.route-fields > .route-rail {
  padding: 10px 0 31px;
}

.route-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #dbeafe;
  background: #2b5a7c;
  flex-shrink: 0;
}

.route-dot.start {
  border-color: #dbeafe;
  background: #2b5a7c;
}

.route-dot.end {
  border-color: #d1fae5;
  background: #10b981;
}

.route-line {
  width: 1px;
  flex: 1;
  margin: 4px 0;
  background: repeating-linear-gradient(to bottom, var(--light-gray), var(--light-gray) 4px, transparent 4px, transparent 8px);
}

.route-field {
  min-width: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.route-location-field {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  gap: 10px;
}

.route-location-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  outline: none;
}

.route-location-input::placeholder {
  color: var(--muted);
  font-weight: 700;
}

.route-map-pick {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.route-map-pick .svg-icon {
  width: 17px;
  height: 17px;
}

.driver-location-field {
  display: flex;
  align-items: center;
  min-width: 0;
}

.route-field + .route-field {
  border-top: 1px solid var(--border-soft);
}

.divider {
  height: 1px;
  background: var(--border-soft);
  margin: 6px 0 6px 30px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 20px;
}

.quick-item {
  min-height: 84px;
  padding: 14px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-item span {
  color: var(--primary);
  font-size: 22px;
}

.quick-item .svg-icon {
  width: 24px;
  height: 24px;
}

.quick-item strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.quick-item small {
  display: block;
  margin-top: 3px;
  color: var(--gray);
}

.desktop-top-nav,
.desktop-ride-actions {
  display: none;
}

.tabs {
  height: 76px;
  padding: 5px 10px 8px;
  background: var(--white);
  border-top: 1px solid var(--body);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  width: min(100%, var(--phone-width));
  transform: translateX(-50%);
  z-index: 80;
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
}

.tabs button {
  background: transparent;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
}

.tabs button.active {
  color: var(--primary);
}

.tab-icon {
  font-size: 22px;
  line-height: 1;
  color: currentColor;
}

.tab-icon .svg-icon {
  width: 24px;
  height: 24px;
}

.list {
  display: grid;
  gap: 12px;
  padding: 0 20px 20px;
}

.ride-card,
.booking-card,
.vehicle-card,
.message-card,
.notification-card,
.payment-card {
  padding: 14px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: left;
}

.ride-card-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.ride-card-actions .primary-btn,
.ride-card-actions .outline-btn {
  pointer-events: auto;
}

.ride-head,
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.driver {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.driver strong,
.message-card strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver small,
.message-card small {
  color: var(--gray);
}

.phone.chat-shell .screen {
  background: #f8fafc;
}

.chat-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 64px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.chat-header h1 {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-back-btn,
.chat-add-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #4b5563;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.chat-back-btn:hover,
.chat-add-btn:hover {
  color: #1f2937;
  background: #f3f4f6;
}

.chat-back-btn .svg-icon,
.chat-add-btn .svg-icon {
  width: 24px;
  height: 24px;
}

.chat-header-spacer {
  width: 40px;
  height: 40px;
}

.chat-message-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  scroll-behavior: smooth;
}

.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.chat-row.sent {
  justify-content: flex-end;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.chat-bubble {
  max-width: 70%;
  padding: 16px;
  border-radius: 18px;
}

.chat-bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.chat-bubble.received {
  background: #ffffff;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-top-left-radius: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.chat-bubble.received span {
  display: block;
  margin-top: 4px;
  color: #9ca3af;
  font-size: 10px;
}

.chat-bubble.sent {
  background: #2563eb;
  color: #ffffff;
  border-top-right-radius: 0;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.chat-meta {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #dbeafe;
}

.chat-meta span {
  font-size: 10px;
  color: #dbeafe;
}

.chat-meta .svg-icon {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.chat-input-footer {
  position: sticky;
  bottom: 0;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.chat-input-form {
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-input-form input {
  min-width: 0;
  flex: 1;
  min-height: 48px;
  padding: 0 20px;
  color: #111827;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.chat-input-form input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px #3b82f6;
}

.chat-send-btn {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  background: #1e3a8a;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.chat-send-btn:hover {
  background: #1e40af;
}

.chat-send-btn .svg-icon {
  width: 16px;
  height: 16px;
}

.price-pill,
.status-pill {
  border-radius: 20px;
  padding: 6px 10px;
  background: var(--secondary-soft);
  color: #7a4c00;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.success {
  color: #1b6b37;
  background: #eaf7ee;
}

.status-pill.danger {
  color: #8a1f16;
  background: var(--danger-soft);
}

.confirm-booking-screen {
  display: grid;
  gap: 18px;
}

.confirm-booking-card {
  padding: 22px;
  text-align: center;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.confirm-booking-card > img {
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.confirm-booking-card h2 {
  margin: 10px 0 6px;
  color: var(--text-strong);
}

.confirm-booking-route,
.booking-seat-panel,
.booking-total-panel {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #f8fafc;
  text-align: left;
}

.confirm-booking-route {
  display: grid;
  gap: 12px;
}

.confirm-booking-route small,
.booking-seat-panel small,
.booking-total-panel small {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.confirm-booking-route strong,
.booking-seat-panel strong,
.booking-total-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--text-strong);
  font-size: 14px;
}

.booking-seat-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.booking-seat-panel span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.booking-seat-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-seat-controls button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e2e8f0;
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 700;
}

.booking-seat-controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.booking-seat-controls > span {
  width: 38px;
  height: 38px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
}

.booking-total-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.booking-total-panel div:last-child {
  text-align: right;
}

.booking-total-panel div:last-child strong {
  color: var(--green);
  font-size: 18px;
}

.route {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 10px 1fr;
  column-gap: 3px;
  align-items: start;
}

.route .pin-stack {
  width: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.route .pin-line {
  height: 34px;
}

.route-text {
  display: grid;
  gap: 18px;
  justify-items: start;
  text-align: left;
}

.route-text div {
  width: 100%;
  min-width: 0;
  color: var(--text-medium);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.meta {
  background: var(--surface-alt);
  color: var(--text-medium);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
}

.wallet-card {
  margin: 8px 20px 18px;
  color: var(--white);
  border-radius: 8px;
  padding: 22px;
  min-height: 150px;
  background: var(--primary) url("./assets/images/card_bg.png") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.wallet-screen .wallet-card {
  width: calc(100% - 40px);
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
}

.wallet-card small {
  color: rgba(255, 255, 255, 0.75);
}

.wallet-card h1 {
  margin: 8px 0 0;
  color: var(--secondary);
  font-size: 30px;
  font-weight: 600;
}

.profile-head {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-head img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-head h2 {
  margin: 0 0 5px;
  font-size: 20px;
  font-weight: 600;
}

.menu-list {
  padding: 0 20px 20px;
  display: grid;
  gap: 10px;
}

.menu-item {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--black);
  text-align: left;
}

.menu-item span:first-child {
  width: 28px;
  color: var(--primary);
  font-size: 20px;
}

.menu-item span:last-child {
  color: var(--text-muted);
}

.menu-item .svg-icon {
  width: 21px;
  height: 21px;
}

.menu-item strong {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.map-block {
  min-height: 260px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d7e8e3, #f5f8f7);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(38, 77, 102, 0.08);
}

.map-block::before,
.map-block::after {
  content: "";
  position: absolute;
  background: rgba(38, 77, 102, 0.12);
  transform: rotate(-25deg);
}

.map-block::before {
  width: 140%;
  height: 18px;
  top: 45%;
  left: -20%;
}

.map-block::after {
  width: 18px;
  height: 140%;
  top: -20%;
  left: 52%;
}

.map-label {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 9px 12px;
  border-radius: 20px;
  color: var(--primary);
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.live-map {
  position: relative;
  min-height: 300px;
  border-radius: 8px;
  overflow: hidden;
  background: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(38, 77, 102, 0.1), var(--shadow);
  touch-action: manipulation;
}

.live-map.compact {
  min-height: 260px;
}

.live-map.selectable {
  cursor: crosshair;
}

.live-map-tiles,
.live-map-route {
  position: absolute;
  inset: 0;
}

.live-map-tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  user-select: none;
  pointer-events: none;
}

.live-map-route {
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.live-map-route line {
  stroke: #2b5a7c;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
  filter: drop-shadow(0 3px 6px rgba(15, 23, 42, 0.24));
}

.live-map-marker {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -100%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}

.live-map-marker i {
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28);
}

.live-map-marker.destination i {
  background: var(--green);
}

.live-map-marker.current i {
  width: 18px;
  height: 18px;
  background: #2563eb;
}

.live-map-marker.selected i {
  width: 18px;
  height: 18px;
  background: #0f172a;
}

.live-map-marker strong {
  max-width: 120px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.live-map-credit {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 5;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: #475569;
  font-size: 9px;
  font-weight: 700;
}

.location-picker-screen .live-map,
.active-trip-screen .live-map {
  min-height: 390px;
}

.location-picker-card {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: 18px;
}

.location-picker-card small,
.progress-card small {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-picker-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}

.progress-card {
  margin: 14px 0;
  padding: 16px;
}

.progress-card strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.progress-track {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--green));
  transition: width 240ms ease;
}

.success-screen {
  min-height: calc(100dvh - 66px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.success-screen img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 20px;
}

.success-screen h1 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--primary);
}

.toast {
  position: fixed;
  left: 50%;
  top: calc(16px + env(safe-area-inset-top, 0px));
  z-index: 300;
  transform: translateX(-50%) translateY(-140%);
  width: min(360px, calc(100% - 32px));
  border-radius: 18px;
  background: var(--black);
  color: var(--white);
  padding: 12px 16px;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.install-banner {
  margin: 0 20px 14px;
  padding: 12px;
  border-radius: 8px;
  background: var(--secondary-soft);
  color: #7a4c00;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.install-toast {
  position: fixed;
  left: 50%;
  top: calc(16px + env(safe-area-inset-top, 0px));
  z-index: 260;
  width: min(390px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
}

.install-toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #2b5a7c;
}

.install-toast-icon .svg-icon {
  width: 20px;
  height: 20px;
}

.install-toast strong,
.install-toast span {
  display: block;
}

.install-toast strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.install-toast span {
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.install-toast .text-btn {
  padding: 9px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}

.hidden {
  display: none !important;
}

.container {
  width: min(1068px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.phone.offer-ride-shell {
  background: #f8fafc;
}

.offer-ride-shell .screen {
  min-height: 100dvh;
  background: #f8fafc;
}

.offer-portal {
  min-height: auto;
  display: flex;
  flex-direction: column;
  color: #1e293b;
  background: #f8fafc;
  position: relative;
  overflow: visible;
}

.offer-topbar {
  min-height: 76px;
  padding: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  z-index: 30;
}

.offer-topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.offer-user strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.offer-user small {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-top: 2px;
}

.offer-user {
  display: none;
  align-items: center;
  gap: 12px;
  text-align: right;
}

.offer-user small {
  color: #059669;
  font-weight: 700;
}

.offer-user small span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 5px;
  background: #10b981;
}

.offer-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f1f5f9;
}

.offer-workspace {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.offer-workspace.container {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.offer-topbar .desktop-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

.offer-topbar .desktop-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: hue-rotate(178deg) saturate(1.25);
}

.offer-panel {
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: visible;
  z-index: 10;
}

.offer-subhead {
  padding: 18px 24px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #f8fafc;
}

.offer-subhead button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.offer-subhead button span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #475569;
}

.offer-subhead > span {
  padding: 5px 11px;
  border-radius: 999px;
  background: #f0f5fa;
  color: #2b5a7c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.offer-form-wrap {
  padding: 18px 16px 96px;
}

.offer-title {
  margin-bottom: 28px;
}

.offer-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
}

.offer-title p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.offer-form {
  display: grid;
  gap: 22px;
}

.offer-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: -6px;
}

.offer-section-title span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.offer-section-title i {
  height: 1px;
  flex: 1;
  background: #f1f5f9;
}

.offer-route-fields {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  column-gap: 10px;
  overflow: visible;
}

.offer-route-line {
  position: absolute;
  left: 10px;
  top: 30px;
  bottom: 30px;
  border-left: 1px dashed #cbd5e1;
  z-index: 0;
}

.offer-location-field {
  position: relative;
  grid-column: 2;
  z-index: 1;
}

.offer-location-dot {
  position: absolute;
  left: -26px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateY(-50%);
  border: 2px solid #dbeafe;
  background: #2b5a7c;
  z-index: 2;
}

.offer-location-field.destination .offer-location-dot {
  border-color: #d1fae5;
  background: #10b981;
}

.offer-location-field input,
.offer-control input,
.offer-control select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #f8fafc;
  color: #1e293b;
  padding: 0 14px;
  outline: none;
  font-weight: 700;
}

.offer-location-field input {
  border: 0;
  border-bottom: 1px solid #dbe3ea;
  border-radius: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 42px;
}

.offer-driver-location {
  min-height: 52px;
  display: grid;
  align-content: center;
  border-bottom: 1px solid #dbe3ea;
}

.offer-driver-location small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.offer-driver-location strong {
  min-width: 0;
  color: #1e293b;
  font-size: 14px;
  font-weight: 800;
}

.offer-location-select {
  width: 100%;
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 2px;
  border-bottom: 1px solid #dbe3ea;
  background: transparent;
  text-align: left;
}

.offer-location-select small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.offer-location-select strong {
  min-width: 0;
  color: #1e293b;
  font-size: 14px;
  font-weight: 800;
}

.offer-control input:focus,
.offer-control select:focus {
  border-color: #2b5a7c;
  background: #fff;
  box-shadow: 0 0 0 4px #e1ecf5;
}

.offer-flat-control input {
  border: 0;
  border-bottom: 1px solid #dbe3ea;
  border-radius: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

.offer-flat-control input:focus {
  border-color: #2b5a7c;
  background: transparent;
  box-shadow: none;
}

.offer-location-field input:focus {
  border-color: #2b5a7c;
  background: transparent;
  box-shadow: none;
}

.offer-location-field.destination input:focus {
  border-color: #10b981;
  box-shadow: none;
}

.offer-clear-location,
.offer-map-pick {
  position: absolute;
  top: 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #64748b;
  font-weight: 800;
  z-index: 4;
}

.offer-clear-location {
  right: 44px;
}

.offer-map-pick {
  right: 10px;
  background: #e1ecf5;
  color: #2b5a7c;
}

.offer-map-pick .svg-icon {
  width: 15px;
  height: 15px;
}

.location-autocomplete,
.offer-autocomplete {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  z-index: 60;
}

.location-autocomplete button,
.offer-autocomplete button {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #334155;
  border-bottom: 1px solid #f8fafc;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.location-autocomplete button span,
.offer-autocomplete button span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.location-autocomplete button small,
.offer-autocomplete button small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.location-autocomplete p,
.offer-autocomplete p {
  margin: 0;
  padding: 14px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.location-search-box {
  position: relative;
}

.location-search-box input {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  background: #f8fafc;
  border-radius: 8px 8px 0 0;
  padding: 0 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  outline: none;
}

.offer-two-col,
.offer-seat-price {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.offer-control {
  display: grid;
  gap: 7px;
}

.offer-control > span,
.offer-control-row span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.offer-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.offer-control-row strong {
  color: #059669;
  font-size: 14px;
}

.offer-stepper {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 8px;
}

.offer-stepper button,
.offer-stepper strong {
  min-height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.offer-stepper button {
  background: #f1f5f9;
  color: #334155;
  font-size: 18px;
  font-weight: 900;
}

.offer-stepper strong {
  gap: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #1e293b;
}

.offer-stepper .svg-icon {
  width: 16px;
  height: 16px;
  color: #2b5a7c;
}

#offerPriceRange {
  min-height: auto;
  padding: 0;
  accent-color: #2b5a7c;
}

.offer-range-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
}

.offer-prefs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.offer-pref {
  min-height: 92px;
  padding: 12px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  display: grid;
  place-items: center;
  text-align: center;
}

.offer-pref span {
  min-width: 40px;
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  font-size: 11px;
  font-weight: 800;
  color: #2b5a7c;
}

.offer-pref strong {
  font-size: 11px;
  font-weight: 800;
}

.offer-pref.active {
  border-color: #2b5a7c;
  background: #f0f5fa;
  color: #1e435d;
  box-shadow: 0 0 0 2px #e1ecf5;
}

.offer-submit {
  min-height: 56px;
  border-radius: 12px;
  background: #2b5a7c;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 16px 28px rgba(43, 90, 124, 0.22);
}

.offer-rides-panel {
  width: 100%;
  min-height: 360px;
  background: #fff;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.offer-rides-panel-head {
  padding: 22px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.offer-rides-panel-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
}

.offer-rides-panel-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
}

.offer-rides-panel-head strong {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  font-size: 12px;
  font-weight: 900;
}

.offer-rides-list {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.offer-ride-item {
  padding: 18px;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.offer-ride-top,
.offer-ride-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.offer-ride-top span,
.offer-ride-bottom span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.offer-ride-top strong {
  padding: 5px 9px;
  border-radius: 9px;
  background: #ecfdf5;
  color: #059669;
  font-size: 13px;
}

.offer-ride-route {
  position: relative;
  margin: 14px 0;
  padding-left: 24px;
  display: grid;
  gap: 12px;
}

.offer-ride-route i {
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 25px;
  border-left: 1px dashed #cbd5e1;
}

.offer-ride-route div {
  position: relative;
}

.offer-ride-route div::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #dbeafe;
  background: #2b5a7c;
}

.offer-ride-route div:last-child::before {
  border-color: #d1fae5;
  background: #10b981;
}

.offer-ride-route small {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.offer-ride-route strong {
  display: block;
  color: #1e293b;
  font-size: 13px;
}

.offer-ride-bottom {
  padding-top: 14px;
  border-top: 1px solid #f8fafc;
}

.offer-ride-bottom button {
  background: transparent;
  color: #e11d48;
  font-size: 12px;
  font-weight: 900;
}

.offer-empty {
  padding: 42px 20px;
  text-align: center;
}

.offer-empty strong {
  display: block;
  color: #334155;
  font-size: 14px;
}

.offer-empty p {
  color: #94a3b8;
  font-size: 12px;
}

.ride-detail-premium {
  width: min(1068px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 32px;
  display: grid;
  gap: 18px;
}

.ride-detail-main,
.ride-detail-side {
  min-width: 0;
}

.ride-detail-side {
  display: none;
}

.ride-detail-main {
  display: grid;
  gap: 16px;
}

.ride-detail-title,
.ride-driver-panel,
.ride-itinerary-panel,
.ride-preferences-panel,
.ride-booking-summary {
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.05);
}

.ride-detail-title {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ride-detail-title span,
.ride-section-label span,
.ride-detail-route small,
.ride-stat span,
.ride-booking-summary span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ride-detail-title h1 {
  margin: 5px 0 0;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 900;
}

.ride-detail-title p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.ride-detail-title > strong {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f0f5fa;
  color: #1e435d;
  font-size: 14px;
  font-weight: 900;
}

.ride-driver-panel {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.ride-driver-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ride-driver-profile img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f1f5f9;
}

.ride-driver-profile strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.ride-driver-profile span {
  display: block;
  margin-top: 3px;
  color: #059669;
  font-size: 12px;
  font-weight: 800;
}

.ride-driver-badges,
.ride-pref-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ride-driver-badges span,
.ride-pref-list span {
  padding: 8px 10px;
  border: 1px solid #f1f5f9;
  border-radius: 9px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.ride-itinerary-panel,
.ride-preferences-panel {
  padding: 18px;
}

.ride-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ride-section-label i {
  height: 1px;
  flex: 1;
  background: #f1f5f9;
}

.ride-detail-route {
  position: relative;
  display: grid;
  gap: 20px;
  padding-left: 30px;
}

.ride-detail-route > i {
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 34px;
  border-left: 1px dashed #cbd5e1;
}

.ride-detail-route div {
  position: relative;
}

.ride-detail-route div > span {
  position: absolute;
  left: -30px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #dbeafe;
  background: #2b5a7c;
}

.ride-detail-route div > span.end {
  border-color: #d1fae5;
  background: #10b981;
}

.ride-detail-route strong {
  display: block;
  margin-top: 3px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.ride-detail-route p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

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

.ride-stat {
  padding: 14px;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  background: #fff;
}

.ride-stat strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.ride-detail-actions {
  display: grid;
  gap: 10px;
}

.ride-map-panel {
  min-height: 420px;
  border-radius: 18px;
  background:
    linear-gradient(to right, rgba(30, 41, 59, 0.52) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 41, 59, 0.52) 1px, transparent 1px),
    radial-gradient(circle at center, #1e293b, #020617 72%);
  background-size: 4rem 4rem, 4rem 4rem, auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.ride-map-panel svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ride-map-hud {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 2;
  padding: 14px;
  border: 1px solid #1e293b;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.ride-map-hud small {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ride-map-hud strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 14px;
}

.ride-map-hud p {
  margin: 4px 0 0;
  color: #34d399;
  font-size: 12px;
  font-weight: 800;
}

.ride-map-line,
.ride-map-dash,
.ride-map-glow {
  fill: none;
  stroke-linecap: round;
}

.ride-map-line {
  stroke: url(#rideDetailLine);
  stroke-width: 4;
}

.ride-map-dash {
  stroke: #38bdf8;
  stroke-width: 4;
  stroke-dasharray: 12 16;
  animation: rideDetailDash 18s linear infinite;
}

.ride-map-glow {
  stroke: #22d3ee;
  stroke-width: 14;
  opacity: 0.15;
}

.ride-map-node circle:first-child {
  fill: #1e293b;
  stroke: #334155;
  stroke-width: 2;
}

.ride-map-node circle:nth-child(2) {
  fill: #64748b;
}

.ride-map-node text {
  fill: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.ride-map-pin circle:first-child,
.ride-map-car circle {
  opacity: 0.2;
}

.ride-map-pin.pickup circle {
  fill: #2b5a7c;
}

.ride-map-pin.destination circle {
  fill: #10b981;
}

.ride-map-pin circle:nth-child(2) {
  stroke: #fff;
  stroke-width: 2.5;
}

.ride-map-pin circle:nth-child(3) {
  fill: #fff;
}

.ride-map-car circle {
  fill: #38bdf8;
}

.ride-map-car rect {
  fill: #38bdf8;
  stroke: #fff;
  stroke-width: 2;
}

.ride-map-footer {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.ride-map-footer strong {
  color: #34d399;
  font-size: 18px;
}

.ride-booking-summary {
  margin-top: 14px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ride-booking-summary strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.vehicles-premium {
  width: min(1068px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 44px;
  display: grid;
  gap: 18px;
}

.vehicles-head {
  padding-bottom: 18px;
  border-bottom: 1px solid #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vehicles-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 900;
}

.vehicles-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.vehicles-add-btn {
  width: max-content;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  background: #2b5a7c;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(43, 90, 124, 0.16);
}

.vehicles-add-btn .svg-icon {
  width: 17px;
  height: 17px;
}

.vehicles-notice {
  padding: 16px;
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  background: #f8fafc;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.vehicles-notice > span {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fff;
  color: #2b5a7c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.vehicles-notice strong {
  color: #1e293b;
  font-size: 13px;
  font-weight: 900;
}

.vehicles-notice p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.vehicles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.vehicles-bottom-action {
  position: sticky;
  bottom: 18px;
  z-index: 12;
  display: flex;
  justify-content: center;
  padding-top: 4px;
  pointer-events: none;
}

.vehicles-bottom-action .vehicles-add-btn {
  width: min(100%, 280px);
  pointer-events: auto;
}

.vehicle-fleet-card {
  min-height: 240px;
  padding: 18px;
  border-radius: 22px;
  background-color: #0f172a;
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.vehicle-fleet-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.34) 48%, rgba(15, 23, 42, 0.86) 100%);
  z-index: 0;
}

.vehicle-status {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.vehicle-status.active {
  background: #ecfdf5;
  color: #059669;
}

.vehicle-status.pending {
  background: #fff7ed;
  color: #c2410c;
}

.vehicle-name-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
}

.vehicle-name-row h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.45);
}

.vehicle-info-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.vehicle-info-btn .svg-icon {
  width: 16px;
  height: 16px;
}

.vehicle-fleet-main p {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.vehicle-info-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vehicle-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
}

.vehicle-info-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
}

.vehicle-info-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vehicle-info-close .svg-icon {
  width: 17px;
  height: 17px;
  transform: rotate(45deg);
}

.vehicle-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f0f5fa;
  color: #2b5a7c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.vehicle-info-icon .svg-icon {
  width: 22px;
  height: 22px;
}

.vehicle-info-dialog h2 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.vehicle-info-dialog p {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.booking-history-premium {
  width: min(1068px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 44px;
  display: grid;
  gap: 20px;
}

.booking-history-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-history-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 900;
}

.booking-history-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.history-filter-tabs {
  width: max-content;
  padding: 4px;
  border-radius: 13px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 3px;
}

.history-filter-tabs button {
  min-height: 32px;
  padding: 0 13px;
  border-radius: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.history-filter-tabs button.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.booking-timeline {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.booking-timeline > span {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booking-timeline-scroll {
  margin: 0 -20px;
  padding: 2px 20px 8px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.booking-timeline-scroll::-webkit-scrollbar {
  display: none;
}

.timeline-chip {
  min-width: 255px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  direction: ltr;
}

.timeline-chip.featured {
  border-color: rgba(43, 90, 124, 0.16);
  background: #f0f5fa;
}

.timeline-chip > span {
  font-size: 21px;
}

.timeline-chip small {
  display: block;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-chip strong {
  display: block;
  margin-top: 2px;
  color: #1e293b;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.booking-history-stats {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 20px;
  background: #0f172a;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.booking-history-stats::after {
  content: "";
  position: absolute;
  right: -56px;
  bottom: -72px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(43, 90, 124, 0.28);
  pointer-events: none;
}

.booking-history-stats div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.booking-history-stats span {
  display: block;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-history-stats strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 950;
  white-space: nowrap;
}

.booking-history-stats div:nth-child(n+2) strong {
  color: #34d399;
}

.booking-history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 28px;
}

.booking-history-card {
  padding: 18px;
  border: 1px solid #f1f5f9;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 16px;
  animation: historySlideIn 0.35s ease both;
}

.booking-history-card:nth-child(2) {
  animation-delay: 0.04s;
}

.booking-history-card:nth-child(3) {
  animation-delay: 0.08s;
}

.booking-history-card:nth-child(4) {
  animation-delay: 0.12s;
}

.booking-history-card-head,
.booking-history-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.booking-history-card-head span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.booking-history-card-head span.hosted {
  background: #ecfdf5;
  color: #059669;
}

.booking-history-card-head span.passenger {
  background: #eef2ff;
  color: #4f46e5;
}

.booking-history-card-head strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.booking-history-route {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
}

.booking-history-line {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0 22px;
}

.booking-history-line i {
  width: 1px;
  flex: 1;
  min-height: 0;
  border-left: 1px dashed #cbd5e1;
}

.booking-history-line span {
  width: 12px;
  height: 12px;
  border: 2px solid #dbeafe;
  border-radius: 999px;
  background: #2b5a7c;
}

.booking-history-line span:last-child {
  border-color: #d1fae5;
  background: #10b981;
}

.booking-history-route small {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.booking-history-route strong {
  display: block;
  margin: 3px 0 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.booking-history-route strong:last-child {
  margin-bottom: 0;
}

.booking-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.booking-history-meta span {
  padding: 6px 9px;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
}

.booking-history-foot {
  padding-top: 14px;
  border-top: 1px solid #f8fafc;
}

.booking-history-foot span {
  color: #10b981;
  font-size: 11px;
  font-weight: 950;
}

.booking-history-foot button {
  color: #2b5a7c;
  font-size: 12px;
  font-weight: 950;
}

@keyframes historySlideIn {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.add-vehicle-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.add-vehicle-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
}

.add-vehicle-dialog,
.add-vehicle-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(760px, calc(100dvh - 32px));
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
}

.add-vehicle-panel {
  margin: 18px auto 40px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.vehicle-registration-page {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 0 20px;
}

.add-vehicle-header {
  position: relative;
  padding: 24px;
  background: #2b5a7c;
  color: #fff;
  flex-shrink: 0;
}

.add-vehicle-header > span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.add-vehicle-header h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.18;
  font-weight: 950;
}

.add-vehicle-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.add-vehicle-close .svg-icon {
  width: 17px;
  height: 17px;
  transform: rotate(45deg);
}

.vehicle-stepper {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr;
  align-items: center;
  gap: 8px;
}

.vehicle-stepper-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.58);
}

.vehicle-stepper-item span {
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 900;
}

.vehicle-stepper-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  color: currentColor;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.vehicle-stepper-item.active,
.vehicle-stepper-item.done {
  color: #fff;
}

.vehicle-stepper-item.active span {
  background: #fff;
  color: #2b5a7c;
}

.vehicle-stepper-item.done span {
  background: #34d399;
  color: #064e3b;
}

.vehicle-stepper-line {
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.vehicle-stepper-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #34d399;
  transition: width 0.25s ease;
}

.vehicle-wizard-form {
  padding: 24px;
  overflow-y: auto;
}

.vehicle-wizard-title {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.vehicle-wizard-title h4 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.vehicle-wizard-title p {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.45;
}

.vehicle-wizard-step {
  display: grid;
  gap: 16px;
}

.vehicle-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.vehicle-form-field {
  display: grid;
  gap: 7px;
}

.vehicle-form-field span,
.vehicle-upload-group > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.vehicle-form-field input,
.vehicle-form-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.vehicle-form-field input.uppercase {
  text-transform: uppercase;
}

.vehicle-form-field input:focus,
.vehicle-form-field select:focus {
  border-color: #2b5a7c;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(43, 90, 124, 0.12);
}

.vehicle-upload-group {
  display: grid;
  gap: 7px;
}

.vehicle-upload-tile {
  min-height: 104px;
  padding: 18px;
  border: 2px dashed #e2e8f0;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.vehicle-upload-tile:hover {
  border-color: #2b5a7c;
  background: #f8fafc;
}

.vehicle-upload-tile.uploaded {
  border-color: #34d399;
  background: #ecfdf5;
}

.vehicle-upload-tile input {
  display: none;
}

.vehicle-upload-tile strong {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.vehicle-upload-tile small {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
}

.vehicle-upload-tile.uploaded strong {
  color: #047857;
}

.vehicle-wizard-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 12px;
}

.vehicle-wizard-actions button {
  flex: 1;
  min-height: 48px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 900;
}

.vehicle-wizard-prev {
  background: #f1f5f9;
  color: #334155;
}

.vehicle-wizard-next {
  background: #2b5a7c;
  color: #fff;
  box-shadow: 0 12px 24px rgba(43, 90, 124, 0.14);
}

.vehicle-wizard-submit {
  background: #10b981;
  color: #fff;
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.14);
}

@keyframes rideDetailDash {
  to {
    stroke-dashoffset: -40;
  }
}

@media (min-width: 700px) {
  .offer-user {
    display: flex;
  }

  .offer-two-col,
  .offer-seat-price {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-prefs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .container {
    width: min(1068px, calc(100% - 64px));
  }

  .ride-detail-premium {
    width: min(1068px, calc(100% - 64px));
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
    align-items: start;
    gap: 20px;
  }

  .ride-detail-side {
    display: block;
  }

  .ride-detail-title h1 {
    font-size: 28px;
  }

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

  .vehicles-premium {
    width: min(1068px, calc(100% - 64px));
  }

  .booking-history-premium {
    width: min(1068px, calc(100% - 64px));
  }

  .booking-history-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .booking-timeline-scroll {
    margin: 0;
    padding-inline: 0;
  }

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

  .vehicles-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

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

  .vehicle-form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-form-grid.plate {
    grid-template-columns: 2fr 1fr;
  }
}

@media (min-width: 1024px) {
  .phone.offer-ride-shell {
    min-height: 100dvh;
  }

  .offer-panel {
    width: 48%;
    max-width: none;
    border-right: 1px solid #f1f5f9;
  }

  .offer-workspace {
    flex-direction: row;
  }

  .offer-rides-panel {
    display: flex;
    flex: 1;
    border-left: 1px solid #f1f5f9;
  }

  .offer-subhead {
    border-bottom: 0;
  }

  .offer-form-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 900px) {
  body {
    background: #dfe7ed;
  }

  .app-shell {
    align-items: stretch;
    justify-content: center;
    background: #dfe7ed;
  }

  .phone {
    width: min(100%, 1140px);
    max-width: 1140px;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05), 0 20px 60px rgba(15, 23, 42, 0.12);
    overflow: visible;
  }

  .screen {
    min-height: 100dvh;
  }

  .status-bar {
    display: none;
  }

  .phone.has-tabs .scroll {
    padding-bottom: 32px;
  }

  .tabs {
    display: none;
  }

  .desktop-top-nav {
    width: min(1068px, calc(100% - 64px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--white);
    border-bottom: 1px solid rgba(38, 77, 102, 0.12);
    box-shadow: 0 0 0 100vmax var(--white);
    clip-path: inset(0 -100vmax);
  }

  .desktop-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: transparent;
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
  }

  .desktop-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: hue-rotate(178deg) saturate(1.25);
  }

  .desktop-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .desktop-nav-links button {
    min-height: 42px;
    border-radius: 8px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--gray);
    background: transparent;
    font-size: 13px;
    font-weight: 600;
  }

  .desktop-nav-links button.active {
    color: var(--primary);
    background: rgba(38, 77, 102, 0.08);
  }

  .desktop-nav-links .svg-icon {
    width: 19px;
    height: 19px;
  }

  .desktop-notification {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--primary) !important;
    background: transparent !important;
    box-shadow: none;
  }

  .desktop-notification .svg-icon {
    width: 20px;
    height: 20px;
  }

  .desktop-nav-links .notification-dropdown {
    width: 340px;
    max-width: calc(100vw - 48px);
    overflow: hidden;
  }

  .desktop-nav-links .notification-dropdown .notification-item {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 58px;
    padding: 9px 10px;
    display: grid;
    gap: 4px;
    align-items: start;
    color: var(--text-medium);
    background: transparent;
    text-align: left;
    border-radius: 6px;
  }

  .desktop-nav-links .notification-dropdown .notification-item-top,
  .desktop-nav-links .notification-dropdown .notification-message {
    min-width: 0;
    max-width: 100%;
  }

  .desktop-nav-links .notification-dropdown .notification-item-top strong {
    display: block;
    flex: 1;
  }

  .desktop-nav-links .notification-dropdown .notification-message {
    display: block;
  }

  .desktop-user-menu {
    position: relative;
  }

  .desktop-user-trigger {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border-radius: 21px !important;
    overflow: hidden;
    background: var(--secondary-soft) !important;
    box-shadow: var(--shadow);
  }

  .desktop-user-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .desktop-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 210px;
    padding: 8px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    display: none;
    z-index: 40;
  }

  .desktop-user-menu.open .desktop-user-dropdown {
    display: grid;
    gap: 4px;
  }

  .desktop-user-dropdown button.active {
    color: var(--primary);
    background: rgba(38, 77, 102, 0.08);
  }

  .phone.has-tabs .home-top,
  .phone.has-tabs .header,
  .phone.has-tabs .home-hero,
  .phone.has-tabs .home-map-spacer,
  .phone.has-tabs .tab-switch,
  .phone.has-tabs .search-card,
  .phone.has-tabs .quick-grid,
  .phone.has-tabs .list,
  .phone.has-tabs .wallet-card,
  .phone.has-tabs .profile-head,
  .phone.has-tabs .menu-list,
  .phone.has-tabs .install-banner {
    width: min(1180px, calc(100% - 64px));
    margin-left: auto;
    margin-right: auto;
  }

  .phone.has-tabs .home-top {
    padding: 24px 0 18px;
  }

  .phone.has-tabs .header {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(38, 77, 102, 0.12);
  }

  .phone.has-tabs .mobile-home-top {
    display: none;
  }

  .phone.has-tabs .home-greeting h2 {
    font-size: 24px;
  }

  .phone.has-tabs .home-hero {
    min-height: 142px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #5f86a0;
  }

  .phone.has-tabs .home-hero::before {
    content: none;
  }

  .phone.has-tabs .home-hero small,
  .phone.has-tabs .home-hero h2 {
    position: relative;
    z-index: 1;
  }

  .phone.has-tabs .home-hero h2 {
    font-size: 28px;
    max-width: 680px;
  }

  .phone.has-tabs .home-map-spacer {
    height: 142px;
    margin-bottom: 18px;
  }

  .phone.has-tabs .home-live-map-bg {
    top: 0;
  }

  .phone.has-tabs .home-map-shell::before {
    top: 0;
  }

  .phone.has-tabs .home-map-shell::after {
    top: 94px;
  }

  .phone.has-tabs .tab-switch:not(.home-mode-tabs) {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    max-width: 560px;
    margin-left: calc((100% - min(1180px, calc(100% - 64px))) / 2);
  }

  .phone.has-tabs .home-mode-tabs {
    display: none;
  }

  .mobile-home-ride-card {
    display: none;
  }

  .desktop-home-ride-cards {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .desktop-home-ride-cards .home-ride-card {
    width: 100%;
    margin: 0;
    min-height: 244px;
  }

  .desktop-ride-actions {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .install-toast {
    left: auto;
    right: 28px;
    top: 28px;
    transform: none;
  }

  .ride-form-card {
    min-height: 320px;
    padding: 20px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
    color: var(--black);
    text-align: left;
  }

  .ride-form-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

  .ride-form-head > span {
    width: 42px;
    height: 42px;
    border-radius: 21px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(38, 77, 102, 0.08);
  }

  .ride-form-head .svg-icon {
    width: 23px;
    height: 23px;
  }

  .ride-form-head strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
  }

  .ride-form-head small {
    display: block;
    margin-top: 6px;
    color: var(--gray);
    line-height: 1.45;
  }

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

  .ride-form-body > .field,
  .ride-inline-fields {
    width: calc(100% - 30px);
    margin-left: 30px;
  }

  .route-input-fields {
    display: grid;
    grid-template-columns: 18px 1fr;
    grid-template-rows: 54px 54px;
    column-gap: 12px;
    align-items: stretch;
  }

  .route-input-fields .route-rail {
    grid-row: 1 / 3;
  }

  .route-input {
    min-width: 0;
    width: 100%;
  }

  .route-input + .route-input {
    margin-top: 10px;
  }

  .ride-inline-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .phone.has-tabs .search-card {
    padding: 22px;
  }

  .phone.has-tabs .quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .phone.has-tabs .quick-item {
    min-height: 116px;
    padding: 18px;
  }

  .phone.has-tabs .section-title {
    width: min(1180px, calc(100% - 64px));
    margin: 28px auto 14px;
  }

  .phone.has-tabs .list {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    padding-left: 0;
    padding-right: 0;
  }

  .phone.has-tabs .list > :only-child,
  .phone.has-tabs .booking-history-grid > :only-child,
  .phone.has-tabs .vehicles-grid > :only-child {
    grid-column: 1 / -1;
  }

  .phone.has-tabs .rides-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phone.has-tabs .rides-list > :only-child {
    grid-column: auto;
  }

  .phone.has-tabs .wallet-card {
    min-height: 210px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .phone.has-tabs .wallet-card h1 {
    margin-top: 10px;
    font-size: 42px;
  }

  .phone.has-tabs .profile-head {
    padding: 34px 0 22px;
  }

  .phone.has-tabs .profile-head img {
    width: 92px;
    height: 92px;
  }

  .phone.has-tabs .profile-head h2 {
    font-size: 26px;
  }

  .phone.has-tabs .menu-list {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    padding-left: 0;
    padding-right: 0;
  }

  .phone.has-tabs .ride-card,
  .phone.has-tabs .booking-card,
  .phone.has-tabs .vehicle-card,
  .phone.has-tabs .message-card,
  .phone.has-tabs .notification-card,
  .phone.has-tabs .payment-card {
    text-align: left;
  }

  .phone.auth-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f6 100%);
  }

  .phone.auth-shell .screen {
    width: min(980px, calc(100% - 64px));
    min-height: auto;
    max-height: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }

  .phone.auth-shell .auth-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 430px);
    align-items: center;
    gap: 20px;
    padding: 34px;
    background: var(--white);
  }

  .phone.auth-shell .auth-art {
    height: auto;
    min-height: 430px;
    padding: 0;
    border-radius: 14px;
    background: var(--body);
  }

  .phone.auth-shell .auth-art img {
    width: 78%;
    height: 78%;
    max-width: 360px;
    object-fit: contain;
  }

  .phone.auth-shell .success-art img {
    width: 150px;
    height: 150px;
    max-width: 150px;
  }

  .phone.auth-shell .auth-copy {
    padding: 0;
    text-align: left;
  }

  .phone.auth-shell .auth-copy h1 {
    font-size: 28px;
  }

  .phone.auth-shell .phone-input {
    margin: 0;
  }

  .phone.auth-shell .auth-panel {
    padding: 0;
  }

  .phone.auth-shell .auth-back {
    background: var(--white);
  }

  .phone.auth-shell .auth-back .header {
    width: auto;
    margin: 0;
    padding: 16px 34px 0;
  }

  .phone.onboarding-shell {
    background: var(--body);
  }

  .phone.onboarding-shell .onboarding-stage {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(420px, 0.82fr);
    min-height: 100dvh;
  }

  .phone.onboarding-shell .onboarding-bg {
    left: auto;
    top: 0;
    width: 44%;
    height: 100%;
    border-radius: 56px 0 0 56px;
  }

  .phone.onboarding-shell .onboarding-slide {
    display: contents;
  }

  .phone.onboarding-shell .onboarding-image {
    min-height: 100dvh;
    padding: 72px;
  }

  .phone.onboarding-shell .onboarding-image img {
    max-height: 62dvh;
  }

  .phone.onboarding-shell .onboarding-copy {
    min-height: 100dvh;
    padding: 0 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    text-align: left;
  }

  .phone.onboarding-shell .onboarding-copy h1 {
    font-size: 34px;
  }

  .phone.onboarding-shell .onboarding-copy p {
    margin-left: 0;
    max-width: 460px;
    font-size: 16px;
  }

  .phone.onboarding-shell .onboarding-actions {
    left: auto;
    right: 72px;
    width: min(420px, calc(44% - 144px));
  }

  .phone.onboarding-shell .skip {
    color: var(--white);
    right: 72px;
    top: 32px;
  }

  .phone:not(.has-tabs):not(.auth-shell):not(.onboarding-shell) .header,
  .phone:not(.has-tabs):not(.auth-shell):not(.onboarding-shell) .screen-pad,
  .phone:not(.has-tabs):not(.auth-shell):not(.onboarding-shell) .list {
    width: min(980px, calc(100% - 64px));
    margin-left: auto;
    margin-right: auto;
  }

  .phone:not(.has-tabs):not(.auth-shell):not(.onboarding-shell) .header {
    padding-left: 0;
    padding-right: 0;
  }

  .phone:not(.has-tabs):not(.auth-shell):not(.onboarding-shell) .screen-pad {
    padding-left: 0;
    padding-right: 0;
  }

  .phone:not(.has-tabs):not(.auth-shell):not(.onboarding-shell) .list {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    padding-left: 0;
    padding-right: 0;
  }

  .phone:not(.has-tabs):not(.auth-shell):not(.onboarding-shell) .list > :only-child,
  .phone:not(.has-tabs):not(.auth-shell):not(.onboarding-shell) .booking-history-grid > :only-child,
  .phone:not(.has-tabs):not(.auth-shell):not(.onboarding-shell) .vehicles-grid > :only-child {
    grid-column: 1 / -1;
  }

  .phone:not(.has-tabs):not(.auth-shell):not(.onboarding-shell) .map-block {
    min-height: 420px;
  }
}

/* Shared visual system: align legacy screens to the Booking History hierarchy. */
.phone .screen {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #334155;
}

.phone .screen :where(button, input, textarea, select) {
  font-family: inherit;
  letter-spacing: 0;
}

.phone .screen :where(.screen-pad, .list, .home-hero, .home-map-spacer, .tab-switch, .search-card, .quick-grid, .wallet-card, .profile-head, .menu-list, .install-banner) {
  width: calc(100% - 32px);
  margin-left: auto;
  margin-right: auto;
}

.phone .screen :where(.screen-pad, .list) {
  padding-left: 0;
  padding-right: 0;
}

.phone .screen :where(.card, .ride-card, .booking-card, .vehicle-card, .message-card, .notification-card, .payment-card, .quick-item, .search-card, .menu-item, .wallet-card, .confirm-booking-card) {
  width: 100%;
  min-width: 0;
  text-align: left;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.phone .screen .search-card {
  width: calc(100% - 32px);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 899px) {
  .phone .screen .wallet-screen .wallet-card {
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
  }

  .phone .screen .quick-item strong,
  .phone .screen .quick-item small {
    white-space: nowrap;
  }

  .phone .screen .quick-item strong {
    font-size: 13px;
  }

  .phone .screen .quick-item small {
    font-size: 11px;
  }

  .phone.has-tabs .profile-head,
  .phone.has-tabs .menu-list {
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
  }

  .phone.has-tabs .profile-head {
    padding: 20px 0;
  }

  .phone.has-tabs .menu-list {
    padding: 0 0 20px;
  }
}

.phone .screen :where(.ride-card, .booking-card, .vehicle-card, .message-card, .notification-card, .payment-card, .quick-item) {
  padding: 16px;
}

.phone .screen :where(.section-title, .ride-section-label span, .offer-section-heading span, .booking-timeline > span, .vehicles-notice strong) {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phone .screen :where(.home-greeting h2, .profile-head h2, .auth-copy h1, .offer-title h2, .vehicles-head h1, .booking-history-head h1) {
  color: #0f172a;
  font-weight: 900;
  line-height: 1.15;
}

.phone .screen :where(.booking-history-head h1, .vehicles-head h1) {
  font-size: 26px;
}

.phone .screen :where(.auth-copy h1, .offer-title h2) {
  font-size: 24px;
}

.phone .screen :where(.home-greeting h2, .profile-head h2) {
  font-size: 20px;
}

.phone .screen .home-hero small {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phone .screen .home-hero h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.phone .screen :where(.muted, .auth-copy p, .vehicles-head p, .booking-history-head p, .quick-item small, .driver small, .location-copy label, .offer-control > span, .offer-control-row span) {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.phone .screen :where(.location-copy label, .booking-history-route small, .confirm-booking-route small, .booking-seat-panel small, .booking-total-panel small) {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.phone .screen :where(.driver strong, .quick-item strong, .location-copy strong, .route-text div, .booking-history-route strong, .confirm-booking-route strong, .menu-item strong, .ride-booking-summary strong) {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.phone .screen :where(.field, input, textarea, select) {
  min-width: 0;
  max-width: 100%;
  text-align: left;
}

.phone .screen :where(.field, .phone-input, .route-input, .ride-inline-fields, .ride-form-body > .field) {
  width: 100%;
}

.phone .screen :where(.ride-form-body > .field, .ride-inline-fields) {
  margin-left: 0;
}

.phone .screen :where(.primary-btn, .danger-btn, .outline-btn, .light-btn, .text-btn) {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.phone .screen :where(.location-copy strong, .route-text div, .driver strong, .message-card strong, .timeline-chip strong, .booking-history-route strong, .ride-detail-route strong, .offer-ride-route strong, .vehicle-card h2, .vehicles-notice p) {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: break-word;
}

.phone .screen :where(.meta-row, .booking-history-meta, .ride-driver-badges, .ride-pref-list) {
  min-width: 0;
}

.phone .screen .ride-card.offer-ride-item {
  padding: 18px;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.phone .screen .ride-card.offer-ride-item .offer-ride-top span,
.phone .screen .ride-card.offer-ride-item .offer-ride-bottom span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.phone .screen .ride-card.offer-ride-item .offer-ride-top strong {
  flex-shrink: 0;
  padding: 5px 9px;
  border-radius: 9px;
  background: #ecfdf5;
  color: #059669;
  font-size: 13px;
  font-weight: 900;
}

.phone .screen .ride-card.offer-ride-item .offer-ride-route {
  margin: 14px 0;
  padding-left: 24px;
}

.phone .screen .ride-card.offer-ride-item .offer-ride-route i {
  left: 5px;
  top: 8px;
  bottom: 25px;
  border-left: 1px dashed #cbd5e1;
}

.phone .screen .ride-card.offer-ride-item .offer-ride-route div::before {
  left: -24px;
  top: 2px;
  width: 12px !important;
  height: 12px !important;
  border: 2px solid #dbeafe !important;
  background: #2b5a7c !important;
}

.phone .screen .ride-card.offer-ride-item .offer-ride-route div:last-child::before {
  border-color: #d1fae5 !important;
  background: #10b981 !important;
}

.phone .screen .ride-card.offer-ride-item .offer-ride-route strong {
  color: #1e293b;
  font-size: 13px;
}

.phone .screen .ride-card.offer-ride-item .ride-card-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f8fafc;
}

.phone .screen :where(.pin, .route-dot, .booking-history-line span, .ride-detail-route div > span, .offer-location-dot),
.phone .screen .offer-ride-route div::before {
  width: 12px !important;
  height: 12px !important;
  border: 2px solid #dbeafe !important;
  border-radius: 999px;
  background: #2b5a7c !important;
}

.phone .screen :where(.pin.end, .route-dot.end, .booking-history-line span:last-child, .ride-detail-route div > span.end, .offer-location-field.destination .offer-location-dot),
.phone .screen .offer-ride-route div:last-child::before {
  border-color: #d1fae5 !important;
  background: #10b981 !important;
}

@media (min-width: 900px) {
  .phone .screen :where(.screen-pad, .list, .home-hero, .home-map-spacer, .tab-switch, .search-card, .quick-grid, .wallet-card, .profile-head, .menu-list, .install-banner) {
    width: min(1180px, calc(100% - 64px));
  }

  .phone .screen .search-card {
    width: min(1180px, calc(100% - 64px));
  }

  .phone:not(.has-tabs):not(.auth-shell):not(.onboarding-shell) .screen-pad,
  .phone:not(.has-tabs):not(.auth-shell):not(.onboarding-shell) .list {
    width: min(1068px, calc(100% - 64px));
  }

  .phone.has-tabs .desktop-home-ride-cards {
    width: min(1180px, calc(100% - 64px));
  }

  .phone.has-tabs .desktop-home-ride-cards .home-ride-card {
    width: 100%;
    margin: 0;
  }
}
