/* Passageiro Web — design system
   Referência visual: mapa em tela cheia + folha inferior branca, botões
   redondos flutuantes, busca em pílula cinza, lista de lugares com ícone em
   círculo. A cor da marca vem do /pwa-config.json (--brand). */

@font-face {
  font-family: 'Nunito Sans';
  src: url('/fonts/nunito-sans.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #1E6FF2;
  --brand-ink: #ffffff;
  --brand-soft: #E9F1FE;
  --brand-line: #A9C8FA;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #F1F2F4;
  --surface-3: #E8EAEE;
  --line: #E6E8EC;
  --text: #1C2024;
  --text-2: #5F6670;
  --text-3: #6B7280;
  --danger: #D93036;
  --danger-soft: #FDECEC;
  --success: #12924A;
  --success-soft: #E7F6EE;
  --warning: #B7791F;
  --warning-soft: #FDF4E3;

  --radius-sheet: 24px;
  --radius-card: 16px;
  --radius-field: 14px;
  --shadow-float: 0 2px 10px rgba(16, 24, 40, 0.14);
  --shadow-sheet: 0 -6px 30px rgba(16, 24, 40, 0.10);
  --shadow-card: 0 1px 3px rgba(16, 24, 40, 0.08);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
  --panel-w: 420px;

  color-scheme: light;
}

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body { overflow: hidden; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--brand-line); outline-offset: 2px; }

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

.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 28px; height: 28px; }

/* ------------------------------------------------------------------ */
/* Views                                                                */
/* ------------------------------------------------------------------ */

.view { position: fixed; inset: 0; }

/* Splash */
.splash {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 24px; text-align: center; background: var(--bg);
}
.splash-logo {
  width: 76px; height: 76px; border-radius: 22px; background: var(--brand);
  display: grid; place-items: center; color: var(--brand-ink); overflow: hidden;
}
.splash-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.splash-name { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.splash-msg { color: var(--text-2); font-size: 15px; max-width: 320px; }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--surface-3); border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ */
/* Botões                                                               */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px;
  font-weight: 800; font-size: 16px; letter-spacing: 0.005em; text-decoration: none;
  transition: transform 0.08s ease, background-color 0.15s ease, opacity 0.15s ease;
  user-select: none;
}
.btn:active { transform: scale(0.985); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(0.94); }
.btn-dark { background: var(--text); color: #fff; }
.btn-soft { background: var(--surface-2); color: var(--text); }
.btn-soft:hover { background: var(--surface-3); }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn-ghost { background: transparent; color: var(--brand); min-height: 44px; padding: 0 12px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn .spinner { width: 20px; height: 20px; border-width: 2.5px; border-color: rgba(255,255,255,0.4); border-top-color: currentColor; }
.btn-soft .spinner { border-color: var(--surface-3); border-top-color: var(--text); }

.fab {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--text);
  display: grid; place-items: center; box-shadow: var(--shadow-float);
}
.fab:active { transform: scale(0.96); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-2);
  display: grid; place-items: center; color: var(--text); flex: none;
}
.icon-btn:hover { background: var(--surface-3); }

.link-btn {
  background: none; border: 0; padding: 4px 0; color: var(--brand); font-weight: 700; font-size: 15px;
}

/* ------------------------------------------------------------------ */
/* Campos                                                               */
/* ------------------------------------------------------------------ */

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 14px; font-weight: 700; color: var(--text-2); }
.field-label .req { color: var(--danger); margin-left: 2px; }
.input-wrap {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 16px;
  background: var(--surface-2); border: 1.5px solid transparent; border-radius: var(--radius-field);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.input-wrap:focus-within { background: #fff; border-color: var(--brand); }
.input-wrap.invalid { border-color: var(--danger); background: #fff; }
.input-wrap input, .input-wrap select, .input-wrap textarea {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 14px 0;
}
.input-wrap textarea { resize: none; min-height: 80px; }
.input-prefix { font-weight: 800; color: var(--text); padding-right: 10px; border-right: 1.5px solid var(--surface-3); }
.input-wrap .icon-btn { width: 36px; height: 36px; background: transparent; margin-right: -8px; color: var(--text-2); }
.field-error { color: var(--danger); font-size: 13px; font-weight: 600; min-height: 0; }
.field-hint { color: var(--text-3); font-size: 13px; }

.check {
  display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.check .link-btn { font-size: 14px; padding: 0; }

.options { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px;
  border-radius: 999px; background: var(--surface-2); border: 1.5px solid transparent;
  font-size: 14px; font-weight: 700; color: var(--text-2); cursor: pointer;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.on, .chip:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

/* ------------------------------------------------------------------ */
/* Auth                                                                 */
/* ------------------------------------------------------------------ */

.auth { overflow-y: auto; background: var(--bg); }
.auth-hero {
  position: relative; padding: calc(var(--safe-top) + 40px) 24px 64px;
  background: var(--brand); color: var(--brand-ink); overflow: hidden;
}
.auth-hero::after {
  content: ''; position: absolute; right: -60px; top: -40px; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,0.10);
}
.auth-hero::before {
  content: ''; position: absolute; left: -40px; bottom: -70px; width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.auth-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-logo {
  width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center;
  color: var(--brand); overflow: hidden; flex: none;
}
.auth-logo img { width: 100%; height: 100%; object-fit: contain; }
.auth-brand-name { font-size: 20px; font-weight: 800; }
.auth-title { position: relative; z-index: 1; margin: 28px 0 6px; font-size: 30px; line-height: 1.12; font-weight: 900; letter-spacing: -0.02em; }
.auth-sub { position: relative; z-index: 1; margin: 0; font-size: 16px; opacity: 0.9; max-width: 360px; }

.auth-card {
  position: relative; margin: -36px 16px 32px; padding: 22px 20px 24px; background: #fff;
  border-radius: 24px; box-shadow: 0 8px 30px rgba(16,24,40,0.10);
  max-width: 480px;
}
@media (min-width: 540px) { .auth-card { margin-left: auto; margin-right: auto; } }

.segmented {
  display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--surface-2); border-radius: 999px; margin-bottom: 20px;
}
.segmented button {
  min-height: 42px; border: 0; border-radius: 999px; background: transparent; font-weight: 800; color: var(--text-2);
}
.segmented button[aria-selected='true'] { background: #fff; color: var(--text); box-shadow: var(--shadow-card); }

.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: 13px; color: var(--text-3); text-align: center; margin: 0; }
.form-alert {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  background: var(--danger-soft); color: var(--danger); font-size: 14px; font-weight: 600;
}
.form-alert.info { background: var(--brand-soft); color: var(--text); }
.form-section-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); margin: 6px 0 -4px; }


/* ------------------------------------------------------------------ */
/* Main: mapa + painel                                                  */
/* ------------------------------------------------------------------ */

.main { overflow: hidden; }
#map { position: absolute; inset: 0; background: #F2EFE9; z-index: 0; }
.leaflet-container { font-family: inherit; background: #F2EFE9; }
.leaflet-top.leaflet-right { top: calc(var(--safe-top) + 72px); }
.leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,0.8) !important; border-radius: 6px 0 0 6px; }

.map-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 500; pointer-events: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: calc(var(--safe-top) + 14px) 16px 0;
}
.map-top > * { pointer-events: auto; }
.map-top .fab-back { margin-right: auto; }

/* Pino central do modo "escolher no mapa" */
.center-pin {
  position: absolute; left: var(--pin-x, 50%); top: var(--pin-y, 40%); z-index: 450; pointer-events: none;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
}
.center-pin .pin-head {
  width: 34px; height: 34px; border-radius: 50%; background: var(--text); border: 4px solid #fff; box-shadow: var(--shadow-float);
  transition: transform 0.15s ease;
}
.center-pin .pin-stick { width: 3px; height: 16px; background: var(--text); border-radius: 2px; }
.center-pin .pin-shadow { width: 12px; height: 5px; border-radius: 50%; background: rgba(0,0,0,0.25); margin-top: -2px; }
.center-pin.moving .pin-head { transform: translateY(-8px); }
.center-pin.dest .pin-head { border-radius: 8px; }

/* Painel (folha inferior no celular, coluna lateral no desktop) */
.panel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 600;
  display: flex; flex-direction: column; max-height: 82vh; max-height: 82dvh;
  background: var(--surface); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; box-shadow: var(--shadow-sheet);
  transition: max-height 0.25s ease;
}
.panel.full { top: 0; max-height: none; border-radius: 0; }
/* Alça: faixa inteira arrastável (sheet-drag.js). touch-action: none evita que
   o navegador role a página ou recarregue ao puxar para baixo. */
.panel-grip {
  flex: none; display: grid; place-items: center; width: 100%; height: 26px; padding: 0; margin: 0;
  border: 0; background: none; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent;
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
}
.panel-grip::before { content: ''; width: 44px; height: 5px; border-radius: 3px; background: var(--surface-3); transition: background 0.15s ease, width 0.15s ease; }
.panel-grip:hover::before { background: var(--text-3); }
.panel-grip:focus-visible { outline: 2px solid var(--brand); outline-offset: -3px; }
.panel.dragging { transition: none; user-select: none; -webkit-user-select: none; }
.panel.dragging .panel-grip { cursor: grabbing; }
.panel.dragging .panel-grip::before { width: 56px; background: var(--text-3); }
.panel.snapping { transition: height 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.panel.no-drag .panel-grip { pointer-events: none; }
.panel.no-drag .panel-grip::before { visibility: hidden; }
.panel.full .panel-grip { display: none; }
.panel-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 20px; -webkit-overflow-scrolling: touch; }
.panel.full .panel-scroll { padding-top: calc(var(--safe-top) + 16px); }
.panel.with-tabbar .panel-scroll { padding-bottom: 12px; }

.tabbar {
  flex: none; display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  border-top: 1px solid var(--line); background: #fff;
}
.tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: none; color: var(--text-2); font-size: 13px; font-weight: 700;
}
.tabbar .tab-icon { display: grid; place-items: center; width: 60px; height: 30px; border-radius: 999px; }
.tabbar button[aria-selected='true'] { color: var(--brand); }
.tabbar button[aria-selected='true'] .tab-icon { background: var(--brand-soft); }

@media (min-width: 900px) {
  .panel {
    left: 16px; right: auto; top: 16px; bottom: 16px; width: var(--panel-w); max-height: none;
    border-radius: 22px; box-shadow: 0 10px 40px rgba(16,24,40,0.16);
  }
  .panel.full { top: 16px; border-radius: 22px; }
  .panel-grip { display: none; }
  .panel-scroll, .panel.full .panel-scroll { padding-top: 22px; }
  .tabbar { border-radius: 0 0 22px 22px; height: var(--tabbar-h); padding-bottom: 0; }
  .map-top { left: calc(var(--panel-w) + 32px); }

}

/* ------------------------------------------------------------------ */
/* Home                                                                 */
/* ------------------------------------------------------------------ */

.greet { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 16px; }
.greet-small { color: var(--text-2); font-size: 16px; font-weight: 600; }
.greet-name { font-size: 24px; font-weight: 900; letter-spacing: -0.015em; line-height: 1.15; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 900; font-size: 18px; overflow: hidden; flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; font-size: 24px; }

.search-pill {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 20px;
  border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text); text-align: left;
  font-size: 18px; font-weight: 700;
}
.search-pill:hover { background: var(--surface-3); }
.search-pill .muted { color: var(--text-2); }


.section-title { font-size: 15px; font-weight: 700; color: var(--text-2); margin: 14px 0 4px; }

.list { list-style: none; margin: 0; padding: 0; }
.list-item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 2px; border: 0; background: none;
  text-align: left; border-bottom: 1px solid var(--line); cursor: pointer;
}
.list li:last-child .list-item { border-bottom: 0; }
.list-item:hover .list-title { color: var(--brand); }
.list-icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); color: var(--text-2);
  display: grid; place-items: center; flex: none;
}
.list-text { flex: 1; min-width: 0; }
.list-title { font-weight: 800; font-size: 16px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-sub { font-size: 13.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-meta { color: var(--text-3); flex: none; }

.empty { padding: 18px 4px; color: var(--text-3); font-size: 14px; text-align: center; }

.banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin: 10px 0 4px;
  background: var(--warning-soft); color: #7A5310; font-size: 14px; font-weight: 600;
}
.banner.info { background: var(--brand-soft); color: var(--text); }
.banner.danger { background: var(--danger-soft); color: var(--danger); }
.banner .icon { margin-top: 1px; }
.banner-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }


/* ------------------------------------------------------------------ */
/* Busca (tela cheia)                                                   */
/* ------------------------------------------------------------------ */

.overlay { position: fixed; inset: 0; z-index: 900; background: var(--bg); display: flex; flex-direction: column; }
.overlay-head { display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-top) + 12px) 16px 8px; }
.overlay-title { font-size: 19px; font-weight: 900; }
.overlay-body { flex: 1; overflow-y: auto; padding: 0 16px 24px; }
@media (min-width: 900px) {
  .overlay { left: 16px; top: 16px; bottom: 16px; right: auto; width: var(--panel-w); border-radius: 22px; box-shadow: 0 10px 40px rgba(16,24,40,0.16); }
  .overlay-head { padding-top: 16px; }
}

.route-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; margin: 4px 0 12px;
  border-radius: 18px; background: #fff; box-shadow: 0 2px 14px rgba(16,24,40,0.08); border: 1px solid var(--line);
}
.route-card::before {
  content: ''; position: absolute; left: 29px; top: 38px; bottom: 38px; width: 2px; background: var(--surface-3);
}
.route-field { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 12px; background: var(--surface-2); border: 1.5px solid transparent; }
.route-field:focus-within { background: #fff; border-color: var(--brand); }
.route-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; font-weight: 600; padding: 12px 0; }
.route-field .icon-btn { width: 32px; height: 32px; background: transparent; margin-right: -6px; }
.mark-pickup { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); flex: none; position: relative; z-index: 1; }
.mark-dest { width: 12px; height: 12px; border-radius: 3px; background: var(--text); flex: none; position: relative; z-index: 1; }

.skeleton { display: flex; flex-direction: column; gap: 14px; padding: 12px 2px; }
.skeleton div { height: 44px; border-radius: 12px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ */
/* Tarifa / categorias                                                  */
/* ------------------------------------------------------------------ */

.sheet-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 12px; }
.sheet-title { font-size: 20px; font-weight: 900; letter-spacing: -0.01em; flex: 1; }
.sheet-sub { font-size: 14px; color: var(--text-2); }

.trip-route { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); margin-bottom: 12px; }
.trip-route-row { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; min-width: 0; }
.trip-route-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cats { display: flex; flex-direction: column; gap: 10px; }
.cat {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: var(--radius-card);
  border: 2px solid var(--line); background: #fff; text-align: left;
}
.cat.on { border-color: var(--brand); background: var(--brand-soft); }
.cat-img { width: 64px; height: 44px; flex: none; display: grid; place-items: center; color: var(--text-2); }
.cat-img img { width: 100%; height: 100%; object-fit: contain; }
.cat-info { flex: 1; min-width: 0; }
.cat-name { font-size: 17px; font-weight: 900; }
.cat-meta { font-size: 13.5px; color: var(--text-2); }
.cat-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 12px; font-weight: 800; vertical-align: 2px; }
.cat-price { text-align: right; flex: none; }
.cat-price strong { display: block; font-size: 17px; font-weight: 900; }
.cat-price s { font-size: 13px; color: var(--text-3); }

.row-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 4px; border: 0; background: none; text-align: left;
  border-bottom: 1px solid var(--line); font-weight: 700;
}
.row-btn .grow { flex: 1; min-width: 0; }
.row-btn .muted { color: var(--text-2); font-weight: 600; font-size: 14px; }
.row-static { cursor: default; }

.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); transition: background 0.15s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-card); transition: transform 0.15s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }

/* Cobre até a borda do painel: no padding de baixo aparecia texto por trás do botão. */
/* z-index: os marcadores da rota (z-index 1) passavam por cima do botão ao rolar. */
.sticky-cta { position: sticky; bottom: -20px; z-index: 2; padding: 12px 0 20px; margin-top: 8px; background: linear-gradient(rgba(255,255,255,0), #fff 18px); }

/* ------------------------------------------------------------------ */
/* Corrida                                                              */
/* ------------------------------------------------------------------ */

.status-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.status-title { font-size: 21px; font-weight: 900; letter-spacing: -0.01em; }
.status-sub { color: var(--text-2); font-size: 15px; }
.eta-badge { margin-left: auto; padding: 8px 12px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); text-align: center; line-height: 1.1; flex: none; }
.eta-badge strong { display: block; font-size: 20px; font-weight: 900; }
.eta-badge small { font-size: 12px; font-weight: 700; opacity: 0.9; }

.radar { position: relative; width: 96px; height: 96px; margin: 8px auto 14px; }
.radar span { position: absolute; inset: 0; border-radius: 50%; background: var(--brand); opacity: 0; animation: radar 2.4s ease-out infinite; }
.radar span:nth-child(2) { animation-delay: 0.8s; }
.radar span:nth-child(3) { animation-delay: 1.6s; }
.radar i { position: absolute; inset: 34px; border-radius: 50%; background: var(--brand); border: 4px solid #fff; box-shadow: var(--shadow-float); }
@keyframes radar { 0% { transform: scale(0.3); opacity: 0.45; } 100% { transform: scale(1); opacity: 0; } }
.searching-text { text-align: center; }
.searching-text .status-title { margin-bottom: 4px; }
.elapsed { font-variant-numeric: tabular-nums; }
.progress { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; margin: 16px 0; }
.progress i { display: block; height: 100%; width: 40%; background: var(--brand); border-radius: 2px; animation: indeterminate 1.4s ease-in-out infinite; }
@keyframes indeterminate { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

.driver-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-card); background: var(--surface-2); }
.driver-info { flex: 1; min-width: 0; }
.driver-name { font-size: 17px; font-weight: 900; }
.driver-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 800; color: var(--text-2); }
.driver-rating .icon { width: 15px; height: 15px; color: #F5A524; fill: #F5A524; }
.vehicle-line { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.plate {
  display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 8px; background: #fff; border: 2px solid var(--text);
  font-weight: 900; font-size: 16px; letter-spacing: 0.12em; font-variant-numeric: tabular-nums;
}
.pin-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 16px;
  border-radius: 14px; border: 2px dashed var(--brand-line); background: #fff;
}
.pin-box strong { font-size: 26px; letter-spacing: 0.3em; font-weight: 900; color: var(--brand); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.actions.single { grid-template-columns: 1fr; }

.receipt-total { text-align: center; padding: 8px 0 14px; }
.receipt-total .label { color: var(--text-2); font-weight: 700; }
.receipt-total .value { font-size: 38px; font-weight: 900; letter-spacing: -0.02em; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv span:first-child { color: var(--text-2); }
.kv span:last-child { font-weight: 800; text-align: right; }

.stars { display: flex; justify-content: center; gap: 8px; margin: 10px 0 6px; }
.stars button { border: 0; background: none; padding: 4px; color: var(--surface-3); }
.stars button .icon { width: 40px; height: 40px; }
.stars button.on { color: #F5A524; }
.stars button.on .icon { fill: #F5A524; }
.stars-label { text-align: center; font-weight: 800; color: var(--text-2); min-height: 22px; }

.status-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--text-2); }
.status-chip.completed { background: var(--success-soft); color: var(--success); }
.status-chip.cancelled { background: var(--danger-soft); color: var(--danger); }
.status-chip.active { background: var(--brand-soft); color: var(--brand); }

/* ------------------------------------------------------------------ */
/* Páginas (Histórico, Perfil)                                          */
/* ------------------------------------------------------------------ */

.page-title { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; margin: 4px 0 16px; }
.trip-item { display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 14px 2px; border: 0; background: none; text-align: left; border-bottom: 1px solid var(--line); cursor: pointer; }
.trip-item .list-icon { margin-top: 2px; }
.trip-item-top { display: flex; justify-content: space-between; gap: 10px; }
.trip-item-dest { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-item-price { font-weight: 900; flex: none; }
.trip-item-sub { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }

.profile { display: flex; align-items: center; gap: 16px; padding: 4px 0 18px; }
.profile-name { font-size: 20px; font-weight: 900; }
.profile-sub { color: var(--text-2); font-size: 14px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat { padding: 14px; border-radius: 14px; background: var(--surface-2); }
.stat small { display: block; color: var(--text-2); font-weight: 700; font-size: 13px; }
.stat strong { font-size: 19px; font-weight: 900; }
.menu { list-style: none; padding: 0; margin: 0; }
.menu .row-btn { min-height: 58px; }
.menu .danger { color: var(--danger); }
.app-version { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 18px; }

/* ------------------------------------------------------------------ */
/* Diálogos e toasts                                                    */
/* ------------------------------------------------------------------ */

.dialog-backdrop {
  position: fixed; inset: 0; z-index: 1000; background: rgba(16, 20, 26, 0.45);
  display: flex; align-items: flex-end; justify-content: center; animation: fade 0.15s ease;
}
.dialog {
  width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; background: #fff;
  border-radius: 24px 24px 0 0; padding: 22px 20px calc(20px + var(--safe-bottom));
  animation: up 0.2s ease;
}
@media (min-width: 600px) {
  .dialog-backdrop { align-items: center; }
  .dialog { border-radius: 24px; padding-bottom: 22px; }
}
.dialog-title { font-size: 20px; font-weight: 900; margin: 0 0 8px; }
.dialog-text { color: var(--text-2); margin: 0 0 16px; }
.dialog-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.dialog .rich p { margin: 0 0 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }

.reason { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.reason input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }

.toasts {
  position: fixed; left: 0; right: 0; top: calc(var(--safe-top) + 12px); z-index: 1100;
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px;
}
.toast {
  display: flex; align-items: center; gap: 10px; max-width: 460px; padding: 12px 16px; border-radius: 14px;
  background: var(--text); color: #fff; font-size: 14.5px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: drop 0.2s ease; pointer-events: auto;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
.toast.leaving { opacity: 0; transform: translateY(-8px); transition: all 0.2s ease; }
@keyframes drop { from { transform: translateY(-10px); opacity: 0; } }

.offline-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; padding: 8px 16px calc(8px + var(--safe-bottom));
  background: var(--text); color: #fff; text-align: center; font-size: 14px; font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Marcadores do mapa                                                   */
/* ------------------------------------------------------------------ */

.mk { background: none; border: 0; }
.mk-pickup { position: relative; width: 22px; height: 22px; }
.mk-pickup i { position: absolute; inset: 0; border-radius: 50%; background: var(--brand); border: 4px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,0.35); }
.mk-pickup b { position: absolute; inset: -14px; border-radius: 50%; background: var(--brand); opacity: 0.18; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.4); opacity: 0.35; } 100% { transform: scale(1.3); opacity: 0; } }
.mk-dest { width: 20px; height: 20px; border-radius: 5px; background: var(--text); border: 4px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,0.35); }
.mk-car { width: 40px; height: 40px; display: grid; place-items: center; transition: transform 0.6s linear; }
.mk-car svg { width: 40px; height: 40px; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3)); }
.mk-car.small svg { width: 30px; height: 30px; }
.leaflet-marker-icon.mk-anim { transition: transform 1s linear; }
.leaflet-zoom-anim .mk-anim { transition: none; }

.otp-single { text-align: center; font-size: 24px !important; font-weight: 900; letter-spacing: 0.45em; }
.trip-route { width: 100%; border: 0; text-align: left; font: inherit; color: inherit; }
button.trip-route { cursor: pointer; }
.empty .icon-lg { margin: 0 auto 6px; color: var(--surface-3); width: 40px; height: 40px; }
.list-text { min-width: 0; }
.status-sub.list-sub { white-space: normal; }
#btn-locate { margin-left: auto; }

@media (min-width: 540px) {
  .auth-hero { padding-bottom: 80px; }
  .auth-brand, .auth-title, .auth-sub { max-width: 480px; margin-left: auto; margin-right: auto; }
  .auth-title { margin-top: 28px; margin-bottom: 6px; }
}

/* ------------------------------------------------------------------ */
/* Chat com o motorista                                                 */
/* ------------------------------------------------------------------ */

.chat { z-index: 950; }
.chat-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.chat-head .list-text { flex: 1; }
.avatar-sm { width: 40px; height: 40px; font-size: 15px; }
.chat-list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #F7F8FA; }
.chat-empty { margin: auto; text-align: center; color: var(--text-3); max-width: 260px; font-size: 14px; }
.chat-empty .icon-lg { margin: 0 auto 8px; width: 40px; height: 40px; color: var(--surface-3); }
.bubble-row { display: flex; }
.bubble-row.mine { justify-content: flex-end; }
.bubble {
  max-width: 78%; padding: 10px 14px 6px; border-radius: 18px 18px 18px 6px; background: #fff; color: var(--text);
  box-shadow: var(--shadow-card); font-size: 15.5px; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere;
}
.bubble-row.mine .bubble { background: var(--brand); color: var(--brand-ink); border-radius: 18px 18px 6px 18px; }
.bubble time { display: block; text-align: right; font-size: 11px; opacity: 0.7; margin-top: 2px; }
.chat-quick { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 0; scrollbar-width: none; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick .chip { flex: none; background: #fff; border-color: var(--line); color: var(--text); }
.chat-form { display: flex; align-items: flex-end; gap: 10px; padding: 10px 16px calc(12px + var(--safe-bottom)); background: #fff; }
.chat-form textarea {
  flex: 1; resize: none; border: 1.5px solid transparent; outline: 0; border-radius: 22px; background: var(--surface-2);
  padding: 12px 16px; font-size: 16px; line-height: 1.3; max-height: 120px;
}
.chat-form textarea:focus { border-color: var(--brand); background: #fff; }
.chat-send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.chat-send[disabled] { opacity: 0.45; cursor: default; }

.btn-badge { position: relative; }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 12px; font-weight: 900; display: inline-grid; place-items: center; line-height: 1;
}
.btn-text-danger { background: none; color: var(--danger); min-height: 44px; width: 100%; margin-top: 4px; }

/* Pedido/corrida no celular: o mapa precisa aparecer (painel até ~60%; o resto rola). */
@media (max-width: 899px) {
  .panel.flow { max-height: 60vh; max-height: 60dvh; }
}

/* ------------------------------------------------------------------ */
/* E2 — Tela inicial (selo da marca, "Você está em", banners, popups)   */
/* ------------------------------------------------------------------ */

/* Selo compacto só com o logo (substitui a pílula com o nome). */
.brand-badge {
  width: 48px; height: 48px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-float);
  display: grid; place-items: center; overflow: hidden; color: var(--brand); flex: none;
}
.brand-badge img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.brand-badge .brand-initials { font-weight: 900; font-size: 16px; letter-spacing: -0.02em; }
@media (min-width: 900px) { .map-top .brand-badge { display: none; } }

/* "Você está em" */
.here {
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 14px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 16px; background: #fff; text-align: left; cursor: pointer;
}
.here:hover { border-color: var(--brand-line); }
.here-icon {
  width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; flex: none;
}
.here-icon .spinner { width: 18px; height: 18px; border-width: 2.5px; }
.here-text { flex: 1; min-width: 0; }
.here-label { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.here-main { font-size: 16px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.here-sub { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.here-action { font-size: 14px; font-weight: 800; color: var(--brand); flex: none; }
.here.warn { border-color: #F3D9A4; background: var(--warning-soft); }
.here.warn .here-icon { background: #fff; color: var(--warning); }

/* Banners do painel: moldura padrão de 2,5:1 (proporção do banner do painel,
   1100x440) na largura toda e centralizada. Qualquer imagem, de qualquer
   tamanho, aparece INTEIRA e centralizada dentro dela (contain): sem corte,
   sem esticar, e todos os cartões com a mesma altura. */
.banners { margin: 18px 0 0; }
.banner-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 18px;
}
.banner-track::-webkit-scrollbar { display: none; }
.promo {
  position: relative; flex: 0 0 100%; aspect-ratio: 2.5 / 1; display: flex; align-items: center; justify-content: center;
  scroll-snap-align: center; border-radius: 18px; overflow: hidden; border: 0; padding: 0; margin: 0;
  background: var(--surface-2); color: #fff; text-align: left;
}
.promo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.promo[disabled] { cursor: default; opacity: 1; }
.promo-text {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 16px 18px;
  background: linear-gradient(135deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.35));
}
.promo-fallback { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); }
.promo-title { font-size: 19px; font-weight: 900; line-height: 1.15; text-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.promo-desc { font-size: 13.5px; font-weight: 600; opacity: 0.95; }
.banner-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--surface-3); transition: width 0.2s ease, background 0.2s ease; }
.banner-dots i.on { width: 18px; background: var(--brand); }

/* Popups (notificações / instalar) */
.popup { text-align: center; }
.popup-art {
  width: 72px; height: 72px; margin: 4px auto 14px; border-radius: 22px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; overflow: hidden;
}
.popup-art img { width: 100%; height: 100%; object-fit: cover; }
.popup-art .icon { width: 34px; height: 34px; }
.popup .dialog-title { margin-bottom: 6px; }
.popup-points { list-style: none; padding: 0; margin: 4px 0 0; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.popup-points li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--text-2); }
.popup-points .icon { color: var(--brand); flex: none; }
.ios-steps { text-align: left; margin: 10px 0 0; padding-left: 20px; color: var(--text-2); display: flex; flex-direction: column; gap: 8px; }
.ios-steps b { color: var(--text); }

/* ------------------------------------------------------------------ */
/* E3 — Abas como o app, Notificações e Perfil                          */
/* ------------------------------------------------------------------ */

.tabbar { grid-template-columns: repeat(4, 1fr); }
.tabbar button { font-size: 12px; }
.tabbar .tab-icon { position: relative; width: 56px; }
.tab-badge {
  position: absolute; top: -2px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 900; display: grid; place-items: center; border: 2px solid #fff;
}

.page-head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.page-head .page-title { margin: 0; font-size: 22px; }
.menu-group { margin: 18px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.menu .row-btn .icon-sm { color: var(--text-2); }
.menu .state { font-size: 13px; font-weight: 800; color: var(--text-3); flex: none; }
.menu .state.on { color: var(--success); }
.menu .state.off { color: var(--danger); }

.profile-card { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 18px; background: var(--surface-2); margin-bottom: 14px; }
.stat-row.three { grid-template-columns: repeat(3, 1fr); }

.wallet-card {
  padding: 20px; border-radius: 20px; color: #fff; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #000));
}
.wallet-card small { font-size: 13px; font-weight: 700; opacity: 0.9; }
.wallet-card strong { display: block; font-size: 34px; font-weight: 900; letter-spacing: -0.02em; margin: 2px 0 6px; }
.wallet-card p { margin: 0; font-size: 13px; opacity: 0.9; }
.trx { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.trx .list-icon.in { background: var(--success-soft); color: var(--success); }
.trx .list-icon.out { background: var(--danger-soft); color: var(--danger); }
.trx-amount { font-weight: 900; flex: none; }
.trx-amount.in { color: var(--success); }

.coupon { border: 1.5px dashed var(--brand-line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.coupon.on { border-style: solid; border-color: var(--success); background: var(--success-soft); }
.coupon-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.coupon-title { font-size: 16px; font-weight: 900; }
.coupon-value { font-size: 15px; font-weight: 900; color: var(--brand); flex: none; }
.coupon-desc { font-size: 14px; color: var(--text-2); margin: 4px 0 8px; }
.coupon-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--text-3); margin-bottom: 10px; }
.code-chip { font-family: ui-monospace, Consolas, monospace; font-weight: 800; letter-spacing: 0.08em; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text); }

.notif { display: flex; gap: 12px; width: 100%; padding: 14px 2px; border: 0; background: none; text-align: left; border-bottom: 1px solid var(--line); cursor: pointer; }
.notif .list-icon { position: relative; }
.notif.unread .list-icon::after { content: ''; position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.notif-title { font-weight: 700; color: var(--text); }
.notif.unread .notif-title { font-weight: 900; }
.notif-desc { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.notif-time { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.contact-actions { display: flex; flex-direction: column; gap: 10px; }
.contact-actions .btn { justify-content: flex-start; }
.danger-zone { margin-top: 10px; }

/* ------------------------------------------------------------------ */
/* E6 — Agendamento                                                     */
/* ------------------------------------------------------------------ */

/* Pílula de busca com o "quando" ao lado (a pílula de fora é o fundo). */
.search-bar { display: flex; align-items: stretch; gap: 6px; min-height: 56px; border-radius: 999px; background: var(--surface-2); padding-right: 6px; }
.search-bar .search-pill { flex: 1; min-width: 0; background: transparent; }
.search-bar .search-pill:hover { background: transparent; }
.search-bar .search-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.when-chip {
  align-self: center; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 10px 0 12px; flex: none;
  border: 0; border-radius: 999px; background: #fff; color: var(--text); font-size: 14px; font-weight: 800; box-shadow: 0 1px 3px rgba(16,24,40,0.10);
}
.when-chip .icon-sm { width: 16px; height: 16px; }
.when-chip.on { background: var(--brand); color: var(--brand-ink); }

/* Seletor "Quando você quer ir?" */
.when { display: flex; flex-direction: column; gap: 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--surface-2); border-radius: 999px; }
.seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 0; border-radius: 999px; background: transparent; font-weight: 800; color: var(--text-2); }
.seg-btn[aria-pressed='true'] { background: #fff; color: var(--text); box-shadow: var(--shadow-card); }
.when-later { display: flex; flex-direction: column; gap: 12px; }
.day-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.day-chips::-webkit-scrollbar { display: none; }
.chip[aria-pressed='true'] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.time-select { appearance: auto; cursor: pointer; }
.when-hint { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }

/* Chip "Quando" no título da tela de preço (fundo branco: chip cinza). */
.sheet-head .when-chip:not(.on) { background: var(--surface-2); box-shadow: none; }

/* Próximas corridas (agendadas) na tela inicial */
.upcoming { margin-top: 6px; }
.upcoming-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 6px 0 4px; border-radius: 16px; background: var(--brand-soft); }
.upcoming-icon { width: 38px; height: 38px; border-radius: 12px; background: #fff; color: var(--brand); display: grid; place-items: center; flex: none; }
.upcoming-when { font-weight: 900; font-size: 15.5px; color: var(--text); }
.upcoming-status { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-top: 2px; }
.upcoming-status.ok { color: var(--success); }
.upcoming-card .btn { flex: none; background: #fff; }
.status-chip.scheduled { background: var(--brand-soft); color: var(--brand); }

/* ------------------------------------------------------------------ */
/* E7 — Foto de perfil                                                  */
/* ------------------------------------------------------------------ */

.avatar-xl { width: 88px; height: 88px; font-size: 28px; }
.photo-edit { display: flex; align-items: center; gap: 16px; }
.photo-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.photo-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.photo-edit input[type='file']:focus-visible + .photo-btn,
.photo-btn:focus-within { outline: 3px solid var(--brand-line); outline-offset: 2px; }
.photo-status { font-size: 13px; color: var(--text-2); min-height: 18px; }
.photo-edit.busy .avatar { opacity: 0.55; }
.photo-edit.busy .photo-btn { pointer-events: none; opacity: 0.6; }
.profile-avatar-btn { border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; flex: none; }

/* Acessibilidade: quem pede menos movimento no sistema não vê radar, pulso nem deslizes. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
