/* Moto App — Interface passager */
@import url("../../shared/css/moto-theme.css");

:root {
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  overflow: hidden;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  color: var(--ink);
  background: var(--gray-bg);
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.app {
  position: relative;
  max-width: 430px;
  height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  margin: 0 auto;
  background: var(--white);
  overflow: hidden;
}

/* Screens */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--moto-dur-med, 0.22s) var(--moto-ease-out, ease),
    opacity var(--moto-dur-med, 0.22s) ease,
    visibility var(--moto-dur-med, 0.22s);
  z-index: 1;
}

.screen.screen-active,
.screen.screen-stack {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.screen.screen-stack {
  z-index: 10;
}

.screen-uber {
  padding-bottom: 0;
}

/* Carte plein écran */
.uber-map-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  min-height: min(52dvh, calc(100dvh - 220px));
  background: var(--gray-bg);
}

.uber-map-wrap--fill {
  flex: 1;
}

.uber-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 240px;
  z-index: 1;
  touch-action: none;
}

#screen-book.screen-active {
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#screen-book .uber-map-wrap--fill {
  position: relative;
  flex: 1;
  min-height: 0;
  z-index: 0;
}

#screen-book .uber-sheet--home {
  position: relative;
  flex-shrink: 0;
  z-index: 10;
  max-height: min(68dvh, calc(100dvh - 100px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 0.5rem 1.25rem calc(1.125rem + var(--safe-bottom));
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  box-shadow:
    0 -14px 52px rgba(45, 27, 78, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.map-float-btn {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--black);
}

.map-float-menu,
.map-float-back {
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 12px;
}

#screen-book .uber-sheet-handle {
  width: 44px;
  height: 5px;
  margin: 0.35rem auto 0.95rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 95, 77, 0.55), rgba(123, 57, 183, 0.55));
  opacity: 0.7;
}

.uber-sheet {
  flex-shrink: 0;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(42, 24, 16, 0.1);
  padding: 0.5rem 1rem calc(1rem + var(--safe-bottom));
}

.uber-sheet-handle {
  width: 32px;
  height: 4px;
  margin: 0.25rem auto 0.65rem;
  background: #e2e8e0;
  border-radius: 999px;
}

.map-float-locate {
  right: 12px;
  bottom: 34%;
  font-size: 1.35rem;
}


/* Accueil — carte réservation moderne */
.home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  margin-bottom: 1.125rem;
  padding: 0 0.15rem;
}

.home-greeting {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--moto-forest, #2d1b4e);
}

.where-go {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.875rem 1rem;
  margin-bottom: 0.5rem;
  border: none;
  border-radius: 999px;
  background: var(--gray-bg);
  box-shadow: inset 0 0 0 1px var(--gray-border);
  text-align: left;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.where-go.is-active {
  box-shadow: inset 0 0 0 2px var(--moto-olive);
  background: var(--white);
}

.where-go-text {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
}

.from-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.5rem 0.25rem;
  margin-bottom: 0.375rem;
  border: none;
  background: transparent;
  text-align: left;
}

.from-row.is-active .from-text {
  color: var(--black);
}

.from-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--black);
  flex-shrink: 0;
}

.from-text {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-shortcut {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.25rem;
  margin-bottom: 0.5rem;
  border: none;
  background: transparent;
  text-align: left;
}

.home-shortcut-icon {
  font-size: 0.875rem;
  color: #e11d48;
}

.home-shortcut-body {
  flex: 1;
  min-width: 0;
}

.home-shortcut-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--black);
}

.home-shortcut-addr {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delivery-sheet {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.delivery-sheet-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.delivery-sheet-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  font-size: 0.875rem;
}

.delivery-sheet-input:focus {
  outline: none;
  border-color: var(--moto-olive);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin: 0.625rem 0 0.875rem;
}

.service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 5.5rem;
  padding: 0.75rem 0.875rem;
  border: none;
  border-radius: 14px;
  text-align: left;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.service-tile:active {
  transform: scale(0.98);
}

.service-tile--ride {
  background: var(--white);
  color: var(--black);
  box-shadow: inset 0 0 0 1px var(--gray-border), 0 2px 8px rgba(42, 24, 16, 0.06);
}

.service-tile--delivery {
  background: #e11900;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(225, 25, 0, 0.25);
}

.service-tile--active.service-tile--ride {
  box-shadow: inset 0 0 0 2px var(--black), 0 2px 10px rgba(42, 24, 16, 0.1);
}

.service-tile--active.service-tile--delivery {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px #e11900;
}

.service-tile-icon {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  width: 2.75rem;
  height: 2.75rem;
  transform: translateX(-50%);
  pointer-events: none;
}

.service-tile-label {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-uber-black--home {
  min-height: 52px;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--moto-gradient, linear-gradient(90deg, #ff5f4d 0%, #7b39b7 100%));
  box-shadow:
    0 8px 28px rgba(255, 95, 77, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-uber-black--home:not(:disabled):active {
  box-shadow:
    0 4px 16px rgba(255, 95, 77, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.route-text--placeholder {
  color: var(--gray-text);
  font-weight: 500;
}

/* Legacy / autres écrans */
.home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-pills {
  display: inline-flex;
  padding: 3px;
  background: var(--gray-bg);
  border-radius: 999px;
  border: 1px solid var(--gray-border);
}

.service-pill {
  padding: 0.4rem 0.875rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-text);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.service-pill--active {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 4px rgba(42, 24, 16, 0.1);
}

.service-pill[data-service="delivery"].service-pill--active {
  color: #b91c1c;
}

.home-live {
  flex-shrink: 1;
  min-width: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #166534;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-live--empty {
  color: var(--gray-text);
}

.route-card {
  border: 1px solid var(--gray-border);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
  margin-bottom: 0.625rem;
}

.route-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: none;
  background: var(--white);
  text-align: left;
  transition: background 0.15s ease;
}

.route-line--active {
  background: var(--gray-bg);
}

.route-line--main {
  padding-top: 0.625rem;
  padding-bottom: 0.875rem;
}

.route-divider {
  height: 1px;
  margin: 0 0.875rem 0 2.125rem;
  background: var(--gray-border);
}

.route-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.route-dot--a {
  background: var(--black);
}

.route-dot--b {
  background: var(--moto-olive);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.2);
}

.route-text {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-text--main {
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.route-text--placeholder {
  color: var(--gray-text);
  font-weight: 500;
}

.delivery-compact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.delivery-compact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.delivery-compact-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  background: var(--gray-bg);
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
}

.delivery-compact-input:focus {
  outline: none;
  border-color: var(--moto-olive);
  background: var(--white);
}

.delivery-compact-input::placeholder {
  color: #94a3a8;
}

.quick-dest {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.375rem;
  overflow-x: auto;
  margin: 0 0 0.625rem;
  padding-bottom: 0.125rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.quick-dest[hidden] {
  display: none;
}

.quick-dest::-webkit-scrollbar {
  display: none;
}

.quick-dest-chip {
  flex-shrink: 0;
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: 999px;
  background: var(--gray-bg);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-text);
  white-space: nowrap;
}

.quick-dest-chip:active {
  background: var(--gray-border);
}

.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9375rem 1rem;
  border: none;
  border-radius: 12px;
  background: var(--black);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: opacity 0.15s ease, transform 0.12s ease;
}

.home-cta:active:not(:disabled) {
  transform: scale(0.99);
}

.home-cta:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.home-cta-meta {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.92;
}

.confirm-delivery-summary {
  margin: 0 0 0.625rem;
  padding: 0.625rem 0.75rem;
  background: #fafafa;
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--gray-text);
}

.confirm-delivery-summary strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--black);
}

.confirm-meta-wrap {
  margin-bottom: 0.5rem;
}

.confirm-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-text);
}

.confirm-meta--warn {
  color: #9a3412;
}

.confirm-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moto-success, #16a34a);
  flex-shrink: 0;
  animation: nearby-pulse 1.6s ease-out infinite;
}

.ride-progress {
  height: 3px;
  margin: 0 0 0.875rem;
  background: var(--gray-border);
  border-radius: 999px;
  overflow: hidden;
}

.ride-progress-fill {
  display: block;
  height: 100%;
  width: 12%;
  background: linear-gradient(90deg, var(--moto-olive), var(--moto-lime));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.ride-progress-fill--pickup {
  width: 38%;
}

.ride-progress-fill--trip {
  width: 72%;
}

.ride-progress-fill--done {
  width: 100%;
}

/* Legacy field classes (search overlay, etc.) */
.uber-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.uber-sheet-label {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.uber-badge-live {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--moto-success-dark, #15803d);
  background: var(--moto-success-soft, rgba(22, 163, 74, 0.12));
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.08);
}

.uber-badge-live--empty {
  color: #c2410c;
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.24);
  box-shadow: 0 2px 10px rgba(251, 146, 60, 0.08);
}

.uber-route-fields {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 16px rgba(45, 27, 78, 0.05);
}

.uber-field {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  min-height: 56px;
  padding: 0.875rem 1rem;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.uber-field--active {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 95, 77, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 95, 77, 0.08);
}

.uber-field-pin {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uber-field-pin__core {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(135deg, #ff5f4d 0%, #e8327a 50%, #7b39b7 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 2px solid transparent;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.95),
    0 4px 12px rgba(45, 27, 78, 0.1);
}

.uber-field-pin--pickup .uber-field-pin__core {
  background-image:
    linear-gradient(#fff, #fff),
    var(--moto-pin-pickup, linear-gradient(135deg, #ff7a6a 0%, #ff5f4d 42%, #e8327a 100%));
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.95),
    0 4px 14px rgba(255, 95, 77, 0.18);
}

.uber-field-pin--dropoff .uber-field-pin__core {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.95),
    0 4px 14px rgba(232, 50, 122, 0.16);
}

.uber-field-pin__letter {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--moto-forest, #2d1b4e);
}

.uber-field-content {
  flex: 1;
  min-width: 0;
}

.uber-field-title {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-text);
  margin-bottom: 0.2rem;
}

.uber-field-value-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  min-width: 0;
}

.uber-field-locate-icon {
  flex-shrink: 0;
  color: var(--moto-coral, #ff5f4d);
  opacity: 0.85;
}

.uber-field-value-row:not(:has(.uber-field-value--placeholder)):not(.uber-field-value-row--gps)
  .uber-field-locate-icon {
  display: none;
}

.uber-field-value-row--gps .uber-field-locate-icon {
  display: block;
  flex-shrink: 0;
}

.uber-field-value {
  display: block;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--moto-forest, #2d1b4e);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uber-field-value-row .uber-field-value {
  display: inline;
}

.uber-field-value--placeholder {
  color: var(--gray-text);
  font-weight: 550;
}

.uber-field-chevron {
  flex-shrink: 0;
  align-self: center;
  color: rgba(122, 107, 138, 0.7);
  font-size: 1.375rem;
  font-weight: 300;
  line-height: 1;
}

.btn-uber-black {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  transition: opacity 0.15s;
}

.btn-uber-black:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-uber-black--wide {
  margin-top: 1.5rem;
}

/* Confirmation — panneau interactif */
#screen-confirm.screen-confirm--ready .uber-sheet--confirm {
  transform: translateY(0);
  opacity: 1;
}

#screen-confirm .uber-map-wrap {
  min-height: 48vh;
}

#screen-confirm .uber-sheet--confirm {
  padding: 0.35rem 0.85rem calc(0.65rem + var(--safe-bottom));
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  max-height: min(72dvh, calc(100dvh - 28vh));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

#screen-confirm .uber-sheet-handle {
  margin-bottom: 0.45rem;
}

.nearby-wrap {
  margin-bottom: 0.45rem;
}

.nearby-bar {
  display: block;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  background: var(--white);
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.nearby-bar:active {
  transform: scale(0.99);
}

.nearby-bar--open {
  border-color: var(--moto-olive);
  box-shadow: 0 0 0 2px var(--red-soft);
}

.nearby-bar-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nearby-live {
  position: relative;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.nearby-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--moto-success, #16a34a);
  animation: nearby-pulse 1.6s ease-out infinite;
}

.nearby-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--moto-success, #16a34a);
}

.nearby-text {
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--black);
}

.nearby-text strong {
  font-weight: 800;
  color: var(--moto-olive);
  transition: transform 0.2s ease;
}

.nearby-count-bump {
  display: inline-block;
  animation: count-bump 0.35s ease;
}

.nearby-chevron {
  color: var(--gray-text);
  font-size: 1.1rem;
  font-weight: 300;
  transition: transform 0.2s ease;
}

.nearby-bar--open .nearby-chevron {
  transform: rotate(90deg);
}

.nearby-panel {
  display: block;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--gray-border);
}

.nearby-dots {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.nearby-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moto-olive);
  opacity: 0.35;
  animation: dot-wave 1.2s ease-in-out infinite;
}

.nearby-hint {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--gray-text);
  line-height: 1.35;
}

.ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--black);
}

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

.ui-icon--cash {
  color: var(--moto-olive);
}

@keyframes nearby-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(2.2);
    opacity: 0;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes count-bump {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes dot-wave {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.uber-secondary-btn--compact {
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
  gap: 0.55rem;
}

.uber-payment-row--compact {
  padding: 0.55rem 0;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  gap: 0.55rem;
  cursor: default;
}

.uber-payment-row--compact .uber-payment-meta {
  font-size: 0.6875rem;
}

.uber-payment-arrow {
  display: none;
}

.uber-actions--compact {
  gap: 0.35rem;
  align-items: stretch;
}

/* Barre CTA confirmation — effet 3D incitatif */
#screen-confirm .confirm-cta-bar {
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding: 0.55rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f4f8e8 0%, #eef3dc 100%);
  border: 1px solid rgba(232, 93, 4, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 4px 18px rgba(42, 24, 16, 0.08);
}

#screen-confirm.screen-confirm--ready .confirm-cta-bar {
  animation: confirm-cta-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes confirm-cta-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-uber-confirm {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--moto-olive);
  border-radius: 10px;
  background: var(--white);
  color: var(--moto-forest);
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-uber-confirm.btn-uber-confirm--compact {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.4rem;
  padding: 0.5rem 0.6rem;
  min-height: 38px;
  border-width: 1.5px;
  border-radius: 7px;
  font-size: 0.8125rem;
}

/* CTA principal — gradient marque (voir moto-modern.css pour styles finaux) */
.btn-uber-confirm.btn-uber-confirm--cta {
  position: relative;
  flex: 1;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--moto-radius-pill, 999px);
  background: var(--moto-gradient);
  color: #fff;
  box-shadow: var(--moto-shadow-glow);
  transform: translateY(0);
  transition:
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.16s ease,
    filter 0.16s ease;
  overflow: hidden;
}

.btn-uber-confirm.btn-uber-confirm--cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

#screen-confirm.screen-confirm--ready .btn-uber-confirm.btn-uber-confirm--cta:not(:disabled)::before {
  animation: confirm-cta-shine 2.8s ease-in-out 0.6s infinite;
}

@keyframes confirm-cta-shine {
  0%,
  72%,
  100% {
    transform: translateX(-120%);
  }
  38% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  #screen-confirm.screen-confirm--ready .confirm-cta-bar,
  #screen-confirm.screen-confirm--ready .btn-uber-confirm.btn-uber-confirm--cta:not(:disabled)::before {
    animation: none;
  }

  .btn-uber-confirm.btn-uber-confirm--cta::before {
    display: none;
  }
}

.btn-uber-confirm.btn-uber-confirm--cta .btn-uber-confirm-label {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.btn-uber-confirm.btn-uber-confirm--cta .btn-uber-confirm-price {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  opacity: 1;
  color: #fff;
  background: rgba(45, 27, 78, 0.35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-uber-confirm.btn-uber-confirm--cta:hover:not(:disabled) {
  filter: brightness(1.04);
}

.btn-uber-confirm.btn-uber-confirm--cta:active:not(:disabled) {
  transform: scale(0.98);
  filter: brightness(1.06);
  box-shadow: var(--moto-shadow-glow);
}

.btn-uber-confirm.btn-uber-confirm--cta:disabled {
  opacity: 0.5;
  box-shadow: none;
  transform: none;
  filter: grayscale(0.2);
}

.btn-uber-confirm.btn-uber-confirm--compact .btn-uber-confirm-label {
  font-size: 0.8125rem;
  font-weight: 700;
}

.btn-uber-confirm.btn-uber-confirm--compact .btn-uber-confirm-price {
  font-size: 0.6875rem;
  font-weight: 700;
  opacity: 0.85;
}

.btn-schedule {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1.5px solid rgba(211, 84, 0, 0.2);
  border-radius: 10px;
  background: linear-gradient(145deg, #f7faf2 0%, var(--red-soft) 100%);
  box-shadow: 0 2px 10px var(--route-glow);
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn-schedule.btn-schedule--cta {
  width: 52px;
  min-height: 52px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #eef3dc 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 3px 0 #c5cfb0,
    0 6px 16px rgba(42, 24, 16, 0.12);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.btn-schedule.btn-schedule--cta .btn-schedule-icon {
  width: 22px;
  height: 22px;
  color: var(--moto-olive);
}

.btn-schedule.btn-schedule--cta:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 1px 0 #c5cfb0,
    0 3px 8px rgba(42, 24, 16, 0.1);
}

.btn-schedule-icon {
  width: 20px;
  height: 20px;
  color: var(--moto-teal);
}

.btn-schedule:active {
  transform: scale(0.94);
  box-shadow: 0 1px 4px var(--route-glow);
  border-color: var(--moto-olive);
}

.uber-secondary-btn--compact:active,
.uber-payment-row--compact:active {
  transform: scale(0.98);
}

.uber-payment-meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-text);
}

.uber-secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem;
  margin-bottom: 0.5rem;
  border: none;
  border-radius: 8px;
  background: var(--gray-bg);
  font-size: 0.9375rem;
  font-weight: 600;
}

.uber-payment-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0;
  margin-bottom: 0.75rem;
  border: none;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
}

.uber-payment-label {
  flex: 1;
  text-align: left;
}

.uber-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-uber-confirm:active:not(:disabled):not(.btn-uber-confirm--cta) {
  transform: scale(0.98);
  background: var(--moto-teal);
  border-color: var(--moto-teal);
  color: var(--white);
}

.btn-uber-confirm:disabled {
  opacity: 0.55;
}

.btn-uber-confirm-label {
  line-height: 1.2;
}

.btn-uber-confirm-price {
  font-size: 0.8125rem;
  font-weight: 800;
  opacity: 0.9;
}

.btn-uber-confirm:active:not(:disabled) .btn-uber-confirm-price {
  color: var(--white);
}

/* Course en cours — carte aérée, panneau compact */
#screen-ride.screen-active {
  display: flex;
  flex-direction: column;
}

#screen-ride .uber-map-wrap {
  flex: 1 1 auto;
  min-height: min(58dvh, calc(100dvh - 200px));
}

#screen-ride .map-float-locate {
  bottom: 26%;
}

.uber-sheet--ride {
  flex-shrink: 0;
  max-height: min(40dvh, 340px);
  padding: 0.2rem 0.75rem calc(0.5rem + var(--safe-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(42, 24, 16, 0.08);
}

.uber-sheet--ride.uber-sheet--ride-compact {
  max-height: min(30dvh, 248px);
}

#screen-ride .uber-sheet-handle {
  width: 28px;
  height: 3px;
  margin: 0.15rem auto 0.35rem;
}

#screen-ride .moto-eta-bar {
  display: none;
}

#screen-ride .ride-steps {
  gap: 0.2rem;
  margin-bottom: 0.4rem;
}

#screen-ride .ride-step {
  padding: 0.22rem 0.12rem;
  font-size: 0.5625rem;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

#screen-ride .ride-status-card {
  padding: 0.4rem 0.55rem;
  margin-bottom: 0.35rem;
  border-radius: 8px;
  gap: 0.4rem;
}

#screen-ride .ride-status-title {
  font-size: 0.75rem;
}

#screen-ride .ride-status-sub {
  font-size: 0.6875rem;
}

#screen-ride .driver-card--uber {
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.35rem;
  gap: 0.45rem;
  border-radius: 8px;
}

#screen-ride .driver-avatar,
#screen-ride .moto-person-card__avatar {
  width: 32px;
  height: 32px;
  font-size: 0.9375rem;
}

#screen-ride .driver-name,
#screen-ride .moto-person-card__name {
  font-size: 0.8125rem;
}

#screen-ride .driver-meta,
#screen-ride .driver-rating,
#screen-ride .moto-person-card__rating,
#screen-ride .moto-person-card__vehicle,
#screen-ride .moto-person-card__plate {
  font-size: 0.6875rem;
}

#screen-ride .moto-person-card {
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.35rem;
  gap: 0.45rem;
  border-radius: 8px;
}

#screen-ride .moto-contact-row {
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

#screen-ride .moto-contact-row--solo {
  margin-bottom: 0.15rem;
}

#screen-ride .moto-contact-btn {
  min-height: 36px;
  padding: 0.4rem 0.35rem;
  font-size: 0.75rem;
  border-radius: 10px;
  box-shadow: none;
}

#screen-ride .moto-contact-btn__icon,
#screen-ride .moto-contact-btn__icon svg {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
}

#screen-ride .ride-route-text {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--gray-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#screen-ride .ride-route-text br {
  display: none;
}

#screen-ride .btn-cancel-ride {
  padding: 0.55rem;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
}

/* Historique & écrans scrollables */
#screen-history {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#screen-history .uber-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.ride-steps {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.ride-step {
  flex: 1;
  padding: 0.35rem 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-align: center;
  color: var(--gray-text);
  background: var(--gray-bg);
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ride-step--active {
  background: var(--black);
  color: var(--white);
}

.ride-step--done {
  background: #e8e8e8;
  color: var(--black);
}

.btn-cancel-ride {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-cancel-ride[hidden] {
  display: none;
}

.ride-status-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  background: var(--gray-bg);
}

.ride-status-card--search {
  background: #f4f4f5;
}

.ride-status-card--en_route {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.ride-status-card--arrived {
  background: var(--moto-gradient, linear-gradient(90deg, #ff5f4d 0%, #7b39b7 100%));
  color: var(--white);
  box-shadow: 0 2px 10px rgba(123, 57, 183, 0.22);
}

.ride-status-card--trip {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.ride-status-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}

.ride-status-title {
  font-size: 0.8125rem;
  font-weight: 700;
}

.ride-status-sub {
  font-size: 0.6875rem;
  opacity: 0.82;
}

.ride-status-card--en_route .ride-status-sub,
.ride-status-card--trip .ride-status-sub {
  color: var(--gray-text);
  opacity: 1;
}

.ride-status-card--arrived .ride-status-sub {
  opacity: 0.9;
}

.ride-status-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.22);
  animation: arrived-pulse 1.8s ease-in-out infinite;
}

@keyframes arrived-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.22);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.1);
  }
}

.status-spinner {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid var(--gray-border);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.status-spinner[hidden] {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.driver-card--uber {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5625rem 0.625rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--gray-border);
  border-radius: 10px;
}

.driver-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  background: var(--gray-bg);
  border-radius: 50%;
}

.driver-name {
  margin: 0;
  font-weight: 700;
  font-size: 0.875rem;
}

.driver-meta,
.driver-rating {
  margin: 0.1rem 0 0;
  font-size: 0.6875rem;
  color: var(--gray-text);
}

.driver-info {
  flex: 1;
}

.btn-call-uber {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-bg);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1rem;
  flex-shrink: 0;
}

.ride-route-text {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gray-text);
}

.ride-actions-uber {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.uber-link-danger {
  padding: 0.5rem;
  border: none;
  background: none;
  color: var(--moto-teal);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Fin de course — styles dans shared/css/moto-modern.css */

/* Historique — Activité */
.screen-sub--modern {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--moto-gradient-soft);
}

.sub-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 1rem 0.75rem;
  background: transparent;
  color: var(--moto-forest);
}

.sub-topbar-back {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--moto-violet);
  font-size: 1.125rem;
  font-weight: 600;
  box-shadow: var(--moto-shadow-card);
  transition: transform 0.14s ease;
}

.sub-topbar-back:active {
  transform: scale(0.96);
}

.sub-topbar-title {
  flex: 1;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--moto-forest);
}

.sub-topbar-spacer {
  width: 42px;
  flex-shrink: 0;
}

.sub-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 0.35rem 1.15rem calc(1.75rem + var(--safe-bottom));
}

.sub-scroll--airy {
  padding-top: 0.15rem;
}

.history-hero {
  position: relative;
  overflow: hidden;
  height: 4px;
  margin: 0 0 1rem;
  border-radius: var(--moto-radius-pill);
  background: var(--moto-gradient);
  box-shadow: var(--moto-shadow-glow);
}

.history-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 100% at 0% 50%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 100% at 100% 50%, rgba(255, 255, 255, 0.2), transparent 55%);
  pointer-events: none;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.history-item {
  padding: 1rem 1.05rem;
  border-radius: var(--moto-radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(123, 57, 183, 0.08);
  box-shadow: var(--moto-shadow-card);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.history-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.history-price {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--moto-violet);
}

.history-badge {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0.125rem 0.375rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
  border-radius: 4px;
}

.history-badge--delivery {
  color: #991b1b;
  background: #fee2e2;
}

.ride-route-package {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--gray-text);
}

.history-date {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gray-text);
  white-space: nowrap;
}

.history-route-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  background: var(--moto-gradient-soft);
  border: 1px solid rgba(123, 57, 183, 0.06);
}

.history-route-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
}

.history-pin {
  width: 9px;
  height: 9px;
  margin-top: 0.35rem;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.history-pin--a {
  background: var(--moto-coral, var(--moto-olive));
}

.history-pin--b {
  background: var(--moto-violet);
}

.history-route-addr {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--moto-forest);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-passenger {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-text);
}

.history-route {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-text);
}

.empty-state {
  text-align: center;
  padding: 3rem 1.25rem;
  color: var(--gray-text);
}

.empty-state--modern .empty-state-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: var(--moto-gradient-soft);
  border: 1px solid rgba(123, 57, 183, 0.1);
  box-shadow: var(--moto-shadow-card);
}

.empty-state--modern .empty-state-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--moto-violet);
}

.empty-state-icon {
  display: block;
  font-size: 2.75rem;
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 4px 12px rgba(123, 57, 183, 0.15));
}

.empty-state p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.btn-uber-black--inline {
  margin-top: 1rem;
  width: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.screen-intro {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--gray-text);
}

.history-route--meta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
}

/* Courses programmées */
.schedule-panel--modern {
  background: #ffffff;
}

.schedule-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem;
  border-bottom: none;
  background: transparent;
}

.schedule-header h2 {
  flex: 1;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--moto-forest);
}

.schedule-header::after {
  content: "";
  display: block;
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 0;
  height: 3px;
  border-radius: var(--moto-radius-pill);
  background: var(--moto-gradient);
  opacity: 0.85;
}

.schedule-panel--modern .schedule-header {
  position: relative;
  padding-bottom: 1.15rem;
  margin-bottom: 0.15rem;
}

.schedule-panel {
  padding-bottom: calc(1rem + var(--safe-bottom));
}

.schedule-picker,
.schedule-list-wrap {
  padding: 0.35rem 1.15rem 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-picker-lead {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-text);
  line-height: 1.45;
}

.schedule-route-summary {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--moto-radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(123, 57, 183, 0.08);
  box-shadow: var(--moto-shadow-card);
  font-size: 0.875rem;
  line-height: 1.45;
}

.schedule-route-summary strong {
  display: block;
  font-weight: 700;
  color: var(--moto-forest);
}

.schedule-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.schedule-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.schedule-field-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-text);
}

.schedule-input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(123, 57, 183, 0.1);
  border-radius: 14px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--moto-shadow-card);
}

.schedule-price-line {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--gray-text);
}

.schedule-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  margin-bottom: 0.55rem;
  border-radius: var(--moto-radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(123, 57, 183, 0.08);
  box-shadow: var(--moto-shadow-card);
  border-bottom: none;
}

.schedule-item-main {
  flex: 1;
  min-width: 0;
}

.schedule-item-when {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--moto-olive);
}

.schedule-item-route {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.35;
}

.schedule-item-meta {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--gray-text);
}

.schedule-item-cancel {
  flex-shrink: 0;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  color: #991b1b;
}

.schedule-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem 1.75rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.schedule-empty-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  border-radius: 24px;
  background: var(--moto-gradient-soft);
  border: 1px solid rgba(123, 57, 183, 0.1);
  box-shadow: var(--moto-shadow-card);
}

.schedule-empty-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--moto-violet);
}

.schedule-empty-text {
  margin: 0;
  max-width: 16rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--gray-text);
}

.schedule-empty {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--gray-text);
  text-align: center;
}

/* Overlays */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.1s ease, visibility 0.1s;
}

.overlay--open {
  opacity: 1;
  visibility: visible;
}

.overlay[hidden]:not(.overlay--open) {
  display: none;
}

.overlay--sheet {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.overlay--sheet .profile-sheet {
  width: 100%;
  transform: translateY(100%);
  transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1);
}

.overlay--sheet.overlay--open .profile-sheet {
  transform: translateY(0);
}

.search-panel,
.help-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(92dvh, 92vh);
  background: var(--white);
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform 0.1s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.overlay--open .search-panel,
.overlay--open .help-panel,
.overlay--open .schedule-panel {
  transform: translateY(0);
}

.search-header,
.help-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-border);
}

.search-back {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--gray-bg);
  font-size: 1.125rem;
}

.search-input-wrap {
  flex: 1;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.search-section {
  padding: 0.75rem 1rem 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-text);
}

.search-result {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  border: none;
  border-bottom: 1px solid var(--gray-border);
  background: var(--white);
  text-align: left;
}

.search-result:active {
  background: var(--gray-bg);
}

.search-result-icon {
  font-size: 1.125rem;
}

.search-result-title {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
}

.search-result-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--gray-text);
}

.search-loading,
.search-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--gray-text);
  font-size: 0.875rem;
}

.search-map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: calc(100% - 2rem);
  margin: 0.75rem 1rem calc(1rem + var(--safe-bottom));
  padding: 0.875rem;
  border: none;
  border-radius: 8px;
  background: var(--gray-bg);
  font-weight: 600;
}

.help-content {
  padding: 1rem;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.help-item {
  margin-bottom: 0.5rem;
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  overflow: hidden;
}

.help-item summary {
  padding: 0.875rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.help-item p {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  color: var(--gray-text);
  line-height: 1.5;
}

.help-header h2 {
  margin: 0;
  font-size: 1.125rem;
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.drawer--open {
  pointer-events: auto;
}

.drawer[hidden]:not(.drawer--open) {
  display: none;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(45, 27, 78, 0.4);
  opacity: 0;
  transition: opacity 0.1s;
}

.drawer--open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  transform: translateX(-100%);
  transition: transform 0.1s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 40px rgba(45, 27, 78, 0.14);
}

.drawer--open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
}

.drawer-logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--white);
  background: var(--black);
  border-radius: 10px;
}

.drawer-brand {
  margin: 0;
  font-weight: 800;
  font-size: 1.25rem;
}

.drawer-tagline {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--gray-text);
}

.drawer-profile {
  padding: 1rem;
  margin: 0 1rem;
  background: var(--gray-bg);
  border-radius: 12px;
}

.drawer-profile-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-text);
}

.drawer-profile-value {
  margin: 0.25rem 0;
  font-weight: 700;
}

.drawer-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--black);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: underline;
}

.drawer-nav {
  flex: 1;
  padding: 0;
}

.drawer-nav-item {
  font-family: inherit;
  cursor: pointer;
}

.drawer-footer {
  padding: 1rem 1.25rem calc(1rem + var(--safe-bottom));
  border-top: 1px solid var(--gray-border);
  font-size: 0.75rem;
}

.drawer-footer-muted {
  margin: 0.25rem 0 0;
  color: var(--gray-text);
}

/* Loader styles → shared/css/moto-loader.css */

.toast-root {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(360px, calc(100% - 2rem));
  pointer-events: none;
}

.toast {
  padding: 0.75rem 1rem;
  background: var(--black);
  color: var(--white);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--error {
  background: var(--moto-teal);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body.is-loading {
  touch-action: none;
}

body.drawer-open,
body.overlay-open {
  overflow: hidden;
}

/* Bandeau connexion passager ↔ chauffeur */
.connect-banner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  width: min(430px, 100%);
  padding: 0.4rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: center;
}

.connect-banner--ok {
  background: var(--moto-olive);
  color: var(--white);
}

.connect-banner--relay {
  background: var(--moto-teal);
  color: var(--white);
}

.connect-banner--warn {
  background: var(--moto-lime);
  color: var(--moto-forest);
}

/* Erreur carte */
.map-error {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 7;
  padding: 1rem;
  background: #fef2f2;
  border-radius: 12px;
  font-size: 0.875rem;
  color: #991b1b;
}

.map-error--float {
  top: 20%;
  transform: none;
}

/* Bulles Google Maps */
.gmap-bubble-wrap {
  position: absolute;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
  transform: translate(-50%, -100%);
  margin-top: -14px;
}

.gmap-bubble-badge {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--moto-olive);
  border-radius: 6px;
  white-space: nowrap;
}

.gmap-bubble {
  max-width: 200px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 431px) {
  body {
    background: #e5e5e5;
  }
}

/* Interactivité — passager */
.map-float-btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.map-float-btn:active {
  transform: scale(0.94);
}

.btn-uber-black:not(:disabled) {
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.btn-uber-black:not(:disabled):active {
  transform: scale(0.985);
}

.uber-field {
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.uber-field:active {
  transform: scale(0.996);
}

.uber-secondary-btn,
.btn-cancel-ride {
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.uber-secondary-btn:active,
.btn-cancel-ride:active {
  transform: scale(0.98);
}

.history-item {
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.history-item:active {
  transform: scale(0.985);
  box-shadow: 0 1px 8px rgba(45, 27, 78, 0.05);
}

.stars button {
  transition: transform 0.12s ease, color 0.15s ease;
}

/* —— Course · panneau ultra moderne (priorité sur compact) —— */
#screen-ride .uber-sheet--ride {
  max-height: min(50dvh, 430px);
  padding: 0.4rem 1.15rem calc(1.15rem + var(--safe-bottom));
}

#screen-ride .uber-sheet-handle {
  width: 44px;
  height: 5px;
  margin: 0.2rem auto 0.65rem;
  border-radius: 999px;
  background: var(--moto-gradient);
  opacity: 0.45;
}

#screen-ride .ride-steps {
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

#screen-ride .ride-step {
  padding: 0.48rem 0.15rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(26, 10, 46, 0.05);
  color: var(--gray-text);
  border: 1px solid transparent;
}

#screen-ride .ride-step--active {
  background: var(--moto-gradient);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 51, 102, 0.32);
}

#screen-ride .ride-step--done {
  background: rgba(26, 10, 46, 0.08);
  color: var(--moto-forest);
}

#screen-ride .ride-status-card {
  padding: 1rem 1.05rem;
  margin-bottom: 0.85rem;
  border-radius: var(--moto-radius-lg);
  background: var(--moto-glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--moto-shadow-card);
}

#screen-ride .ride-status-card--search {
  background: linear-gradient(135deg, rgba(255, 249, 245, 0.95) 0%, rgba(243, 235, 255, 0.92) 100%);
}

#screen-ride .ride-status-card--en_route {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 238, 245, 0.94) 100%);
  border-color: rgba(255, 51, 102, 0.12);
}

#screen-ride .ride-status-card--arrived {
  background: var(--moto-gradient, linear-gradient(90deg, #ff5f4d 0%, #7b39b7 100%));
  color: #fff;
  box-shadow: 0 8px 28px rgba(123, 57, 183, 0.22);
}

#screen-ride .ride-status-card--trip {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.12) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-color: rgba(0, 212, 170, 0.25);
}

#screen-ride .ride-status-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

#screen-ride .ride-status-sub {
  font-size: 0.8125rem;
  opacity: 0.88;
  margin-top: 0.15rem;
}

#screen-ride .btn-cancel-ride {
  padding: 0.7rem 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.8125rem;
  color: var(--gray-text);
  background: rgba(26, 10, 46, 0.04);
  border: none;
  border-radius: 999px;
}

#screen-ride .moto-ride-driver {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  margin: 0 0 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--moto-radius-xl);
  background: var(--moto-glass-strong);
  box-shadow: var(--moto-shadow-soft);
}

#screen-ride .moto-ride-driver__left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

#screen-ride .moto-ride-driver__avatar {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--moto-gradient-soft);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 0 4px rgba(255, 51, 102, 0.22);
}

#screen-ride .moto-ride-driver__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

#screen-ride .moto-ride-driver__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#screen-ride .moto-ride-driver__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

#screen-ride .moto-ride-driver__vehicle {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-text);
}

#screen-ride .moto-ride-driver__rating {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--moto-lime);
  filter: saturate(1.2);
}

#screen-ride .moto-ride-driver__plate {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--gray-text);
  opacity: 0.75;
}

#screen-ride .moto-call-box {
  margin: 0 0 0.5rem;
  padding: 3px;
  border-radius: calc(var(--moto-radius-xl) + 2px);
  background: linear-gradient(135deg, rgba(255, 85, 51, 0.45) 0%, rgba(255, 51, 102, 0.35) 50%, rgba(107, 47, 214, 0.4) 100%);
  box-shadow: 0 8px 32px rgba(255, 51, 102, 0.18);
}

#screen-ride .moto-call-box[hidden] {
  display: none;
}

#screen-ride .moto-call-box__btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 0.9rem;
  border-radius: var(--moto-radius-xl);
  background: var(--moto-glass-strong, #ffffff);
  color: var(--moto-forest);
  text-decoration: none;
  transition: transform 0.16s cubic-bezier(0.34, 1.2, 0.64, 1), background 0.2s ease;
}

#screen-ride .moto-call-box__btn:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.98);
}

#screen-ride .moto-call-box__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--moto-gradient);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 51, 102, 0.35);
}

#screen-ride .moto-call-box__icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

#screen-ride .moto-call-box__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

#screen-ride .moto-call-box__title {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: var(--moto-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#screen-ride .moto-call-box__hint {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-text);
  letter-spacing: 0.01em;
}

#screen-ride .moto-call-box__chev {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 10, 46, 0.06);
  color: var(--moto-teal);
}

#screen-ride .moto-call-box__chev svg {
  width: 16px;
  height: 16px;
  display: block;
}

#screen-ride .status-spinner {
  width: 22px;
  height: 22px;
  border-width: 2.5px;
  border-color: rgba(255, 51, 102, 0.2);
  border-top-color: var(--moto-teal);
}

/* —— Confirmation · thème corail → violet —— */
#screen-confirm .uber-map-wrap {
  min-height: 52vh;
}

#screen-confirm .confirm-sheet {
  overflow: hidden;
  max-height: none;
  padding: 0.35rem 1rem calc(0.75rem + var(--safe-bottom));
  background: var(--moto-gradient-soft);
  border-top: 1px solid rgba(123, 57, 183, 0.12);
  box-shadow: 0 -10px 40px rgba(123, 57, 183, 0.1);
}

#screen-confirm .uber-sheet-handle {
  width: 40px;
  height: 4px;
  margin-bottom: 0.65rem;
  background: var(--moto-gradient);
  opacity: 0.45;
  border-radius: 999px;
}

#screen-confirm .confirm-sheet__head {
  margin-bottom: 0.65rem;
}

#screen-confirm .confirm-pay {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 0.75rem;
}

#screen-confirm .confirm-pay__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  max-width: none;
  min-height: 36px;
  padding: 0.45rem 0.85rem;
  border-radius: var(--moto-radius-pill, 999px);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--moto-violet, #7b39b7);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(123, 57, 183, 0.2);
  box-shadow: 0 2px 12px rgba(123, 57, 183, 0.08);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

#screen-confirm .confirm-pay__icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  position: relative;
  z-index: 1;
}

#screen-confirm .confirm-pay__badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--moto-gradient, linear-gradient(90deg, #ff5f4d 0%, #7b39b7 100%));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}

#screen-confirm .confirm-meta-wrap {
  margin-bottom: 0;
}

#screen-confirm .confirm-meta {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-text);
}

#screen-confirm .confirm-meta strong {
  font-weight: 800;
  color: var(--moto-violet);
}

#screen-confirm .confirm-live {
  background: var(--moto-coral, var(--moto-olive));
  box-shadow: 0 0 0 3px rgba(255, 95, 77, 0.25);
  animation: confirm-live-pulse 2s ease-out infinite;
}

@keyframes confirm-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 95, 77, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 95, 77, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 95, 77, 0);
  }
}

#screen-confirm .confirm-order-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: var(--moto-radius-pill, 999px);
  background: var(--moto-gradient);
  color: #fff;
  font-family: inherit;
  box-shadow: var(--moto-shadow-glow);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

#screen-confirm .confirm-order-btn:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: 0 4px 14px rgba(255, 95, 77, 0.28);
}

#screen-confirm .confirm-order-btn:disabled {
  opacity: 0.45;
  box-shadow: none;
}

#screen-confirm .confirm-order-btn__label {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

#screen-confirm .confirm-order-btn__price {
  font-size: 0.875rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  white-space: nowrap;
}

#screen-confirm .confirm-sheet__foot {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

#screen-confirm .confirm-sheet__actions {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

#screen-confirm .confirm-schedule-btn {
  flex-shrink: 0;
  width: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(123, 57, 183, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--moto-violet);
  box-shadow: var(--moto-shadow-card);
  transition: transform 0.14s ease;
}

#screen-confirm .confirm-schedule-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

#screen-confirm .confirm-schedule-btn:active {
  transform: scale(0.96);
}

#screen-confirm.screen-confirm--ready .confirm-sheet {
  transform: translateY(0);
  opacity: 1;
}

/* —— Annulation chauffeur · consentement passager —— */
.driver-cancel-panel {
  max-width: 420px;
  margin: 0 auto;
}

.driver-cancel-body {
  padding: 0 1rem 1.25rem;
}

.driver-cancel-lead {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.driver-cancel-reason {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 95, 77, 0.1);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--moto-violet);
  line-height: 1.35;
}

.driver-cancel-route {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-text);
  line-height: 1.4;
}

.driver-cancel-hint {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--gray-text);
  line-height: 1.4;
}

.driver-cancel-dismiss {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.65rem;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Fin de course — styles dans shared/css/moto-modern.css (#screen-done) */
