:root {
  color-scheme: light;
  --ink: #17171a;
  --ink-soft: #5e5e66;
  --paper: #f6f5f2;
  --surface: #ffffff;
  --surface-strong: #101014;
  --line: #deddd8;
  --line-dark: #303037;
  --gold: #b48a45;
  --gold-soft: #eee4d1;
  --success: #2d6a4f;
  --success-soft: #e3f0e9;
  --danger: #a43c3c;
  --danger-soft: #f6e5e5;
  --shadow: 0 16px 50px rgba(22, 22, 25, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(180, 138, 69, 0.35);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

h1 {
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
}

h3 {
  font-size: 1rem;
  font-weight: 650;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.auth-screen {
  min-height: 100vh;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 18% 12%, rgba(180, 138, 69, 0.2), transparent 32%),
    var(--surface-strong);
  color: white;
}

.auth-screen:not([hidden]) {
  display: grid;
  place-items: center;
}

.auth-card {
  display: grid;
  width: min(100%, 520px);
  gap: 30px;
  padding: 38px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: #18181d;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.36);
}

.auth-brand,
.auth-copy {
  display: grid;
  gap: 8px;
}

.auth-brand span {
  font-weight: 750;
  letter-spacing: 0.22em;
}

.auth-brand small {
  color: #aaaab1;
  letter-spacing: 0.14em;
}

.auth-copy h1 {
  font-size: clamp(2.2rem, 9vw, 4rem);
}

.auth-copy p:not(.eyebrow) {
  color: #c9c9ce;
  line-height: 1.6;
}

.auth-card .field {
  color: #d0d0d4;
}

.auth-card .field input,
.auth-card .field select {
  border-color: var(--line-dark);
  background: #222228;
  color: white;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: #1b1b21;
}

.auth-tab {
  flex: 1;
  padding: 11px 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #c9c9ce;
  font-weight: 650;
  cursor: pointer;
}

.auth-tab[aria-pressed="true"] {
  background: var(--gold);
  color: #17171a;
}

.account-type {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.type-option {
  padding: 12px 8px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: #222228;
  color: #d0d0d4;
  font-weight: 650;
  font-size: 0.85rem;
  cursor: pointer;
}

.type-option[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: #17171a;
}

.auth-card .legal-note {
  color: #a9a9af;
}

.form-error {
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 650;
}

.app {
  width: min(100%, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 24px 112px;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  border-bottom: 1px solid rgba(222, 221, 216, 0.78);
  background: rgba(246, 245, 242, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.brand-mark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.brand-product {
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.topbar-actions,
.header-actions,
.inline-actions,
.inline-meta,
.status-line,
.section-heading,
.route-meta,
.member-line,
.mission-heading,
.driver-line,
.metric-line,
.summary-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.server-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 750;
}

.icon-button,
.avatar {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}

.avatar {
  border-color: var(--surface-strong);
  background: var(--surface-strong);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--gold);
}

.demo-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
  margin: 18px auto 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.demo-switcher button {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 650;
}

.demo-switcher button[aria-pressed="true"] {
  background: var(--surface-strong);
  color: white;
}

.main-view {
  min-height: 540px;
  padding: 34px 0 44px;
}

.view-stack,
.content-stack,
.form-stack,
.card-stack,
.timeline,
.notification-list,
.benefit-list,
.option-list {
  display: grid;
  gap: 16px;
}

.view-stack {
  gap: 30px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 42px;
  align-items: end;
  padding: 44px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  color: white;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 570px;
  color: #c9c9cd;
  line-height: 1.65;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.17em;
}

.booking-panel,
.surface-card,
.membership-card,
.mission-card,
.metric-card,
.empty-state,
.profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(22, 22, 25, 0.045);
}

.booking-panel {
  padding: 22px;
  color: var(--ink);
}

.surface-card,
.membership-card,
.mission-card,
.profile-card {
  padding: 24px;
}

.metric-card {
  padding: 20px;
}

.service-tabs,
.vehicle-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.service-tab,
.vehicle-option,
.nav-button,
.ghost-button,
.secondary-button,
.primary-button,
.danger-button,
.text-button {
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 650;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.service-tab,
.vehicle-option,
.ghost-button,
.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.service-tab {
  padding: 10px 6px;
  font-size: 0.76rem;
}

.service-tab[aria-pressed="true"],
.vehicle-option[aria-pressed="true"] {
  border-color: var(--surface-strong);
  background: var(--surface-strong);
  color: white;
}

.vehicle-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vehicle-option {
  display: grid;
  min-height: 78px;
  gap: 4px;
  align-content: center;
  padding: 12px;
  text-align: left;
}

.vehicle-option small {
  color: inherit;
  opacity: 0.72;
}

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

.field {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.options-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px 14px;
  margin: 0;
}

.options-fieldset legend {
  padding: 0 6px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.option-check,
.option-number {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.option-check {
  cursor: pointer;
}

.option-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex: none;
}

.option-check span,
.option-number span {
  flex: 1;
}

.option-check small,
.option-number small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
}

.option-number {
  flex-wrap: wrap;
}

.option-number input {
  width: 64px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

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

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
}

.primary-button {
  border: 1px solid var(--surface-strong);
  background: var(--surface-strong);
  color: white;
}

.primary-button.gold {
  border-color: var(--gold);
  background: var(--gold);
  color: #17120a;
}

.secondary-button {
  background: transparent;
}

.ghost-button,
.text-button {
  border-color: transparent;
  background: transparent;
}

.danger-button {
  border: 1px solid var(--danger-soft);
  background: var(--danger-soft);
  color: var(--danger);
}

.text-button {
  min-height: 36px;
  padding: 6px 2px;
  color: var(--ink);
}

.full-width {
  width: 100%;
}

.section-heading {
  justify-content: space-between;
  align-items: end;
}

.section-heading > div {
  display: grid;
  gap: 7px;
}

.section-heading p:not(.eyebrow),
.muted,
.legal-note,
.supporting-text,
.timeline-item span,
.route-stop span,
.notification-item time {
  color: var(--ink-soft);
}

.section-heading p:not(.eyebrow),
.supporting-text,
.legal-note {
  line-height: 1.55;
}

.card-grid,
.metric-grid,
.dashboard-grid,
.profile-grid,
.service-market-grid {
  display: grid;
  gap: 16px;
}

.service-market-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-category-list,
.service-category-section,
.service-category-head {
  display: grid;
  gap: 18px;
}

.service-category-list {
  gap: 38px;
}

.service-category-head {
  gap: 6px;
}

.service-market-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 134px;
  gap: 14px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 30px rgba(22, 22, 25, 0.045);
}

.service-market-card:hover {
  border-color: var(--gold);
}

.service-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #654c25;
}

.service-card-copy,
.service-request-summary > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.service-card-copy small {
  color: var(--ink-soft);
  line-height: 1.45;
}

.service-request-summary {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

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

.dashboard-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  align-items: start;
  gap: 24px;
}

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

.status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #654c25;
  font-size: 0.74rem;
  font-weight: 750;
}

.status-badge.success {
  background: var(--success-soft);
  color: var(--success);
}

.status-badge.neutral {
  background: #ececef;
  color: #55555d;
}

.member-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--gold-soft);
}

.member-banner > div {
  display: grid;
  gap: 7px;
}

.route {
  display: grid;
  gap: 0;
}

.route-stop {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 20px;
}

.route-stop:last-child {
  padding-bottom: 0;
}

.route-stop:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 2px;
  left: 7px;
  width: 1px;
  background: var(--line);
}

.route-dot {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.route-stop:last-child .route-dot {
  background: var(--surface-strong);
  box-shadow: 0 0 0 1px var(--surface-strong);
}

.route-stop div:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.route-stop strong,
.mission-heading strong {
  overflow-wrap: anywhere;
}

.route-meta,
.mission-heading,
.member-line,
.summary-line,
.status-line,
.driver-line {
  justify-content: space-between;
}

.route-meta {
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.quote-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.price-breakdown {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.price-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink-soft);
}

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

.price-breakdown .price-total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 750;
}

.price-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.price-split > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.price-split span {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.pricing-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.pricing-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.pricing-table thead th {
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-table input {
  width: 100%;
  min-width: 100px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
}

.quote-price strong,
.metric-value,
.price strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  font-weight: 400;
}

.metric-card {
  display: grid;
  gap: 8px;
}

.metric-value {
  font-size: 2rem;
}

.metric-card > span,
.metric-card > small {
  color: var(--ink-soft);
}

.mission-card,
.profile-card {
  display: grid;
  gap: 20px;
}

.mission-heading {
  align-items: flex-start;
}

.mission-heading > div,
.driver-line > div,
.member-line > div,
.profile-copy {
  display: grid;
  gap: 5px;
}

.driver-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  min-height: 50px;
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: -2px;
  left: 8px;
  width: 1px;
  background: var(--line);
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-dot {
  z-index: 1;
  width: 17px;
  height: 17px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.timeline-item.complete .timeline-dot,
.timeline-item.active .timeline-dot {
  border-color: var(--gold);
  background: var(--gold);
}

.timeline-item > div:last-child {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
}

.online-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
}

.online-toggle input {
  width: 42px;
  height: 24px;
  margin: 0;
  accent-color: var(--success);
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
}

.empty-state svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
}

.empty-state p {
  max-width: 420px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.membership-card {
  display: grid;
  min-height: 290px;
  gap: 20px;
  align-content: space-between;
  background: var(--surface-strong);
  color: white;
}

.membership-card .muted {
  color: #c8c8cd;
}

.membership-card .status-badge {
  align-self: start;
}

.bottom-nav {
  position: fixed;
  z-index: 25;
  bottom: 14px;
  left: 50%;
  display: grid;
  width: min(calc(100% - 28px), 620px);
  min-height: 68px;
  padding: 7px;
  transform: translateX(-50%);
  grid-template-columns: repeat(var(--nav-count, 4), minmax(0, 1fr));
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  background: rgba(16, 16, 20, 0.96);
  box-shadow: 0 16px 40px rgba(15, 15, 18, 0.24);
  backdrop-filter: blur(18px);
  padding-bottom: calc(7px + var(--safe-bottom));
}

.nav-button {
  display: grid;
  min-width: 0;
  min-height: 52px;
  place-items: center;
  gap: 2px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: #a8a8ae;
  font-size: 0.68rem;
}

.nav-button svg {
  width: 19px;
  height: 19px;
}

.nav-button[aria-current="page"] {
  border-radius: 16px;
  background: #29292f;
  color: white;
}

.modal {
  width: min(calc(100% - 28px), 520px);
  max-height: calc(100vh - 40px);
  padding: 28px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

.modal::backdrop {
  background: rgba(9, 9, 12, 0.65);
  backdrop-filter: blur(5px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.modal-head > div {
  display: grid;
  gap: 7px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 24px;
}

.benefit-list {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.benefit-list svg {
  color: var(--success);
}

.legal-note {
  margin-top: 12px;
  font-size: 0.76rem;
  text-align: center;
}

.notification-list {
  max-height: 58vh;
  margin-top: 22px;
  overflow: auto;
}

.notification-item {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item.unread strong::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 104px;
  max-width: min(360px, calc(100% - 48px));
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--surface-strong);
  color: white;
  box-shadow: var(--shadow);
  font-weight: 650;
}

.separator {
  height: 1px;
  border: 0;
  background: var(--line);
}

.profile-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-strong);
  color: white;
  font-size: 1.15rem;
  font-weight: 750;
}

.kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.only-mobile {
  display: none;
}

@media (hover: hover) {
  .primary-button:hover,
  .secondary-button:hover,
  .ghost-button:hover,
  .service-tab:hover,
  .vehicle-option:hover,
  .demo-switcher button:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 820px) {
  .app {
    padding-inline: 18px;
  }

  .hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 30px;
  }

  .card-grid,
  .metric-grid,
  .service-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid > :last-child,
  .metric-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .app {
    padding-inline: 14px;
  }

  .topbar {
    min-height: 64px;
  }

  .auth-card {
    gap: 24px;
    padding: 26px 20px;
  }

  .server-badge {
    display: none;
  }

  .demo-switcher {
    margin-top: 12px;
  }

  .demo-switcher button {
    padding-inline: 6px;
    font-size: 0.76rem;
  }

  .main-view {
    padding-top: 22px;
  }

  .hero {
    gap: 28px;
    padding: 24px 18px 18px;
    border-radius: 20px;
  }

  .booking-panel,
  .surface-card,
  .membership-card,
  .mission-card,
  .profile-card,
  .modal {
    padding: 18px;
  }

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

  .vehicle-options,
  .field-grid,
  .card-grid,
  .metric-grid,
  .service-market-grid,
  .profile-grid,
  .driver-select-row,
  .price-split {
    grid-template-columns: 1fr;
  }

  .card-grid > :last-child,
  .metric-grid > :last-child {
    grid-column: auto;
  }

  .section-heading,
  .member-banner,
  .mission-heading,
  .member-line,
  .driver-line,
  .status-line,
  .summary-line {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .section-heading,
  .mission-heading,
  .member-line,
  .driver-line,
  .status-line,
  .summary-line {
    flex-direction: column;
  }

  .member-banner {
    display: grid;
  }

  .inline-actions {
    flex-wrap: wrap;
  }

  .inline-actions > button {
    flex: 1 1 auto;
  }

  .bottom-nav {
    bottom: 8px;
  }

  .toast {
    right: 14px;
    bottom: 94px;
    max-width: calc(100% - 28px);
  }

  .only-mobile {
    display: initial;
  }
}

/* --- Finance (registre, reversements, audit) --- */
.finance-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.finance-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.finance-split > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.finance-split span {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.finance-split strong {
  font-size: 1rem;
}

.finance-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.finance-actions .primary-button,
.finance-actions .secondary-button,
.finance-actions .ghost-button {
  min-height: 42px;
  padding: 10px 16px;
}

.refund-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.refund-row input {
  width: 92px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.finance-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .finance-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .finance-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .finance-split {
    grid-template-columns: 1fr;
  }
}

/* --- Onboarding chauffeur (dossier de conformité) --- */
.doc-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px 14px;
  margin: 0;
  display: grid;
  gap: 10px;
}

.doc-fieldset legend {
  padding: 0 6px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Abonnements (3 tiers) --- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.plan-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.plan-card.plan-current {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow);
}

.plan-card .price {
  margin: 0;
}

.plan-card .benefit-list {
  gap: 10px;
  font-size: 0.86rem;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
