/* MobiVAN — Passageiro (PWA mobile-first). Consome apenas tokens de ../compartilhado/tokens.css */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--surface-page); }
body { color: var(--text-primary); font-size: var(--text-body); line-height: 1.4; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.icon { width: 1.4em; height: 1.4em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Moldura do app (mesma regra do protótipo aprovado: 430 px, 100dvh, 844 px no desktop) ---------- */
.demo-strip { display: none; }
.pv-app { position: relative; display: flex; flex-direction: column; width: min(100%, var(--phone-max-width)); height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--surface-card); box-shadow: var(--shadow-phone); }
.screen { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; animation: entra .22s ease-out; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.screen-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--gradient-sheen); }
.screen-pad { padding: var(--space-5) var(--space-4) var(--space-6); }
@media (min-width: 640px) {
  body { padding: var(--space-6); }
  .pv-app { height: min(var(--phone-max-height), calc(100dvh - 3rem)); border-radius: var(--radius-2xl); }
  .demo-strip { display: flex; justify-content: center; gap: var(--space-4); align-items: center; margin: calc(var(--space-2) * -1) auto var(--space-3); font-size: var(--text-helper); color: var(--text-muted); }
  .demo-strip a { color: var(--text-link); font-weight: var(--weight-semibold); }
}
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } }

/* ---------- Barra superior das telas internas ---------- */
.appbar { flex: none; display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-3) var(--space-2); background: var(--surface-card); }
.appbar h1 { flex: 1; margin: 0; font-size: var(--text-card-title); font-weight: var(--weight-bold); color: var(--text-strong); letter-spacing: -0.01em; }
.icon-btn { display: grid; place-items: center; width: var(--touch-min); height: var(--touch-min); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--brand-primary); }
.icon-btn:hover { background: var(--surface-subtle); }
.icon-btn .icon { width: 1.5rem; height: 1.5rem; }
.demo-tag { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-2); border-radius: var(--radius-pill); background: var(--state-warning-bg); color: var(--state-warning); font-size: var(--text-caption); font-weight: var(--weight-bold); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Home (Tela 1 preservada) ---------- */
.home-stage { position: relative; flex: 1 1 auto; min-height: 0; background: var(--gradient-hero); }
.hero-photo { position: absolute; inset: 0 0 14%; background: url("../compartilhado/imagens/home-foto.webp") center calc(67% - 75px) / cover no-repeat; }
.hero-tint { position: absolute; inset: 0; background: var(--gradient-hero-tint); }
.home-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) var(--space-4) 0; color: var(--text-on-primary); }
.home-top .icon-btn { color: var(--text-on-primary); }
.home-top .icon-btn:hover { background: var(--surface-overlay); }
.brand-lockup { position: relative; z-index: 2; margin-top: clamp(0.75rem, 4.5dvh, 2.6rem); text-align: center; color: var(--text-on-primary); text-shadow: 0 3px 12px var(--ink-shadow); }
.wordmark { position: relative; display: inline-block; margin: 0; font-size: var(--text-wordmark-fluid); font-weight: var(--weight-black); line-height: 1.05; letter-spacing: -0.06em; }
.wordmark::after { content: ""; position: absolute; left: 50%; bottom: -0.1em; width: 34%; height: 0.24em; border-bottom: 0.13em solid var(--brand-accent-bright); border-radius: 50%; transform: rotate(-7deg); }
.brand-lockup p { margin: var(--space-4) 0 0; font-size: var(--text-card-title); font-weight: var(--weight-medium); line-height: 1.22; }
.booking { position: absolute; z-index: 3; left: var(--space-3); right: var(--space-3); bottom: clamp(0.75rem, 2.5dvh, 1.4rem); padding: var(--space-3); border-radius: var(--radius-2xl); background: var(--surface-card); box-shadow: var(--shadow-raised); }
.field { display: flex; align-items: center; gap: var(--space-4); width: 100%; min-height: clamp(3rem, 7.6dvh, 3.9rem); padding: 0 var(--space-4); border: 0; border-radius: var(--radius-lg); background: var(--gradient-sheen); color: var(--text-muted); font-size: var(--text-label); text-align: left; }
.field + .field { margin-top: var(--space-1); }
.field .icon { color: var(--brand-primary); width: 1.5rem; height: 1.5rem; }
.field.filled { color: var(--text-strong); font-weight: var(--weight-semibold); }
.field small { display: block; color: var(--text-subtle); font-size: var(--text-caption); font-weight: var(--weight-medium); }
.swap-btn { position: absolute; right: var(--space-6); top: calc(var(--space-3) + clamp(3rem, 7.6dvh, 3.9rem) - 1.1rem); z-index: 1; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--border-default); border-radius: var(--radius-pill); background: var(--surface-card); color: var(--brand-action); box-shadow: var(--shadow-card); }
.cta { display: flex; align-items: center; justify-content: center; gap: var(--space-2); position: relative; width: 100%; height: var(--cta-height); border: 0; border-radius: var(--radius-lg); background: var(--gradient-action); color: var(--text-on-primary); font-size: var(--text-cta); font-weight: var(--weight-bold); box-shadow: var(--shadow-button); }
.cta:hover { filter: brightness(1.05); }
.cta:disabled { background: var(--gray-300); box-shadow: none; cursor: not-allowed; }
.cta .icon-end { position: absolute; right: var(--space-4); width: 1.6rem; height: 1.6rem; }
.cta.secondary { background: var(--surface-card); color: var(--brand-action); border: 1px solid var(--blue-200); box-shadow: none; }
.booking .cta { margin-top: var(--space-2); height: clamp(3rem, 7.4dvh, 3.8rem); }
.bottom-nav { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: var(--bottom-nav-height); padding: var(--space-1) var(--space-1) max(var(--space-2), env(safe-area-inset-bottom)); border-top: 1px solid var(--border-subtle); background: var(--surface-card); }
.bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1); border: 0; background: none; color: var(--brand-primary); font-size: var(--text-helper); font-weight: var(--weight-medium); white-space: nowrap; }
.bottom-nav button .icon { width: 1.7rem; height: 1.7rem; }
.bottom-nav button[aria-current="page"] { color: var(--brand-action); font-weight: var(--weight-bold); }
.bottom-nav button[aria-current="page"] .icon { stroke-width: 2.2; }

/* ---------- Cartões e textos genéricos ---------- */
.card { margin: 0 0 var(--space-3); padding: var(--space-4); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); background: var(--surface-card); box-shadow: var(--shadow-card); }
.title { margin: var(--space-2) 0 var(--space-1); font-size: var(--text-screen-title); font-weight: var(--weight-black); letter-spacing: -0.02em; line-height: 1.12; color: var(--text-strong); }
.lead { margin: 0 0 var(--space-5); color: var(--text-muted); font-size: var(--text-label); line-height: 1.45; }
.section-label { margin: var(--space-5) 0 var(--space-2); font-size: var(--text-label); font-weight: var(--weight-bold); color: var(--text-strong); }
.muted { color: var(--text-muted); }
.note { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3); border-radius: var(--radius-lg); background: var(--state-info-bg); color: var(--state-info); font-size: var(--text-helper); line-height: 1.45; }
.note .icon { width: 1.25rem; height: 1.25rem; margin-top: 1px; }
.note.warn { background: var(--state-warning-bg); color: var(--state-warning); }
.note strong { color: inherit; }
.footer-bar { flex: none; padding: var(--space-3) var(--space-4) max(var(--space-4), env(safe-area-inset-bottom)); border-top: 1px solid var(--border-subtle); background: var(--surface-card); }
.footer-bar .sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-2); font-size: var(--text-label); color: var(--text-muted); }
.footer-bar .sum strong { font-size: var(--text-price); color: var(--text-strong); }
.chip { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-2); border-radius: var(--radius-pill); background: var(--surface-subtle); color: var(--text-secondary); font-size: var(--text-helper); font-weight: var(--weight-semibold); }
.chip .icon { width: 1rem; height: 1rem; }
.chip.success { background: var(--state-success-bg); color: var(--state-success); }
.chip.warn { background: var(--state-warning-bg); color: var(--state-warning); }
.chip.danger { background: var(--state-danger-bg); color: var(--state-danger); }
.chip.pending { background: var(--state-pending-bg); color: var(--state-pending); }
.monogram { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: var(--radius-md); background: var(--gradient-brand-panel); color: var(--text-on-primary); font-size: var(--text-label); font-weight: var(--weight-black); letter-spacing: -0.02em; }

/* ---------- Resultados (Tela 2) ---------- */
.results-head { flex: none; padding: 0 var(--space-4) var(--space-3); background: var(--surface-card); box-shadow: var(--shadow-card); position: relative; z-index: 1; }
.recap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--surface-subtle); }
.recap strong { display: block; color: var(--text-strong); font-size: var(--text-label); }
.recap span { font-size: var(--text-helper); color: var(--text-muted); }
.recap button { border: 0; background: none; color: var(--brand-action); font-size: var(--text-helper); font-weight: var(--weight-bold); display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--touch-min); }
.days { display: flex; gap: var(--space-2); margin: var(--space-3) calc(var(--space-4) * -1) 0; padding: 0 var(--space-4); overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; min-width: 4.4rem; padding: var(--space-2); border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-card); text-align: center; font-size: var(--text-helper); color: var(--text-secondary); }
.day b { display: block; font-size: var(--text-label); color: var(--text-strong); }
.day small { display: block; color: var(--text-subtle); font-size: var(--text-caption); }
.day[aria-pressed="true"] { border-color: var(--brand-action); background: var(--brand-action); color: var(--text-on-primary); }
.day[aria-pressed="true"] b, .day[aria-pressed="true"] small { color: var(--text-on-primary); }
.filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin-top: var(--space-3); }
.filter { min-height: 2.5rem; border: 1px solid var(--border-default); border-radius: var(--radius-pill); background: var(--surface-card); color: var(--text-secondary); font-size: var(--text-helper); font-weight: var(--weight-semibold); }
.filter[aria-pressed="true"] { background: var(--brand-primary-strong); border-color: var(--brand-primary-strong); color: var(--text-on-primary); }
.result-meta { display: flex; justify-content: space-between; align-items: center; margin: 0 0 var(--space-3); font-size: var(--text-helper); color: var(--text-muted); }
.trip { padding: var(--space-4); }
.trip-top { display: flex; align-items: center; gap: var(--space-3); }
.trip-top h2 { margin: 0; font-size: var(--text-label); color: var(--text-strong); }
.trip-top .rating { display: inline-flex; align-items: center; gap: 2px; font-size: var(--text-helper); color: var(--text-muted); }
.trip-top .rating .icon { width: 0.9rem; height: 0.9rem; color: var(--brand-accent); fill: var(--brand-accent); }
.trip-top .price { margin-left: auto; text-align: right; }
.trip-top .price strong { display: block; font-size: var(--text-price); color: var(--text-strong); letter-spacing: -0.02em; }
.trip-top .price small { font-size: var(--text-caption); color: var(--text-subtle); }
.timeline-h { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); margin: var(--space-4) 0 var(--space-1); }
.timeline-h b { font-size: var(--text-section-title); color: var(--text-strong); letter-spacing: -0.02em; }
.timeline-h .line { position: relative; height: 2px; background: var(--blue-200); }
.timeline-h .line::before, .timeline-h .line::after { content: ""; position: absolute; top: -4px; width: 10px; height: 10px; border-radius: var(--radius-pill); background: var(--surface-card); border: 2px solid var(--brand-action); }
.timeline-h .line::before { left: 0; } .timeline-h .line::after { right: 0; background: var(--brand-action); }
.timeline-h .line span { position: absolute; left: 50%; top: -0.75rem; transform: translateX(-50%); padding: 0 var(--space-2); background: var(--surface-card); font-size: var(--text-caption); color: var(--text-muted); white-space: nowrap; }
.cities { display: flex; justify-content: space-between; font-size: var(--text-helper); color: var(--text-muted); }
.boarding { display: flex; gap: var(--space-2); align-items: center; margin-top: var(--space-3); font-size: var(--text-helper); color: var(--text-secondary); }
.boarding .icon { width: 1.05rem; height: 1.05rem; color: var(--brand-action); }
.trip-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px dashed var(--border-default); }
.trip-foot .chips { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.select-btn { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--touch-min); padding: 0 var(--space-4); border: 0; border-radius: var(--radius-md); background: var(--brand-action); color: var(--text-on-primary); font-size: var(--text-button); font-weight: var(--weight-bold); }
.select-btn .icon { width: 1.1rem; height: 1.1rem; }
.trip.soldout { opacity: 0.62; }
.trip.soldout .select-btn { background: var(--gray-300); cursor: not-allowed; }
.empty { padding: var(--space-6) var(--space-4); text-align: center; }
.empty img { width: min(14rem, 70%); height: auto; }
.empty h2 { margin: var(--space-3) 0 var(--space-1); font-size: var(--text-card-title); color: var(--text-strong); }
.empty p { margin: 0 0 var(--space-4); font-size: var(--text-label); color: var(--text-muted); }
.suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }

/* ---------- Detalhes (Tela 3) ---------- */
.detail-hero { position: relative; flex: none; height: clamp(9rem, 24dvh, 13rem); background: var(--brand-primary) url("../compartilhado/imagens/home-foto.webp") center 80% / cover no-repeat; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: var(--gradient-photo-shade); }
.detail-hero .bar { position: relative; z-index: 1; display: flex; justify-content: space-between; padding: var(--space-3); }
.detail-hero .icon-btn { background: var(--surface-card); color: var(--brand-action); box-shadow: var(--shadow-card); }
.detail-hero .icon-btn.on { color: var(--state-danger-mark); }
.detail-hero .icon-btn.on .icon { fill: currentColor; }
.detail-panel { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin-top: calc(var(--space-5) * -1); border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; background: var(--surface-card); overflow: hidden; }
.detail-panel .screen-body { background: var(--surface-card); }
.op-line { display: flex; align-items: center; gap: var(--space-3); }
.op-line h1 { margin: 0; font-size: var(--text-screen-title); font-weight: var(--weight-black); color: var(--text-strong); letter-spacing: -0.02em; }
.op-line p { margin: 0; font-size: var(--text-helper); color: var(--text-muted); }
.vtimeline { position: relative; margin: var(--space-5) 0 var(--space-4); padding-left: var(--space-6); }
.vtimeline::before { content: ""; position: absolute; left: 0.45rem; top: 0.6rem; bottom: 0.6rem; border-left: 2px dashed var(--blue-300); }
.vstop { position: relative; display: grid; grid-template-columns: 3.4rem 1fr; gap: var(--space-2); }
.vstop + .vstop { margin-top: var(--space-5); }
.vstop::before { content: ""; position: absolute; left: calc(var(--space-6) * -1); top: 0.3rem; width: 0.95rem; height: 0.95rem; border-radius: var(--radius-pill); border: 3px solid var(--brand-action); background: var(--surface-card); }
.vstop.end::before { background: var(--brand-accent); border-color: var(--brand-accent); }
.vstop b { font-size: var(--text-card-title); color: var(--text-strong); }
.vstop strong { display: block; font-size: var(--text-label); color: var(--text-strong); }
.vstop span { font-size: var(--text-helper); color: var(--text-muted); }
.vstop .dur { display: block; margin-top: var(--space-1); color: var(--text-subtle); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-bottom: var(--space-3); }
.info { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3); border-radius: var(--radius-lg); background: var(--surface-muted); font-size: var(--text-helper); color: var(--text-muted); }
.info .icon { width: 1.25rem; height: 1.25rem; color: var(--brand-primary); }
.info strong { display: block; color: var(--text-strong); font-size: var(--text-label); }
.capacity { margin: var(--space-1) 0 var(--space-4); }
.capacity-bar { height: 0.5rem; border-radius: var(--radius-pill); background: var(--gray-100); overflow: hidden; }
.capacity-bar i { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--brand-action); }
.capacity-bar.high i { background: var(--brand-accent); }
.capacity p { display: flex; justify-content: space-between; margin: var(--space-2) 0 0; font-size: var(--text-helper); color: var(--text-muted); }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-4); border: 1px solid var(--border-default); border-radius: var(--radius-lg); }
.stepper strong { display: block; font-size: var(--text-label); color: var(--text-strong); }
.stepper span { font-size: var(--text-helper); color: var(--text-muted); }
.stepper-ctrl { display: flex; align-items: center; gap: var(--space-3); }
.stepper-ctrl output { min-width: 1.5rem; text-align: center; font-weight: var(--weight-bold); font-size: var(--text-card-title); color: var(--text-strong); }
.round-btn { display: grid; place-items: center; width: var(--touch-min); height: var(--touch-min); border: 1px solid var(--blue-200); border-radius: var(--radius-pill); background: var(--surface-subtle); color: var(--brand-action); }
.round-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Entrar / cadastro (Tela 4) ---------- */
.auth { display: flex; flex-direction: column; min-height: 100%; padding: var(--space-6) var(--space-4) var(--space-4); }
.logo-sm { position: relative; display: block; margin: var(--space-2) auto 0; width: max-content; font-size: var(--text-kpi); font-weight: var(--weight-black); letter-spacing: -0.06em; color: var(--brand-primary); }
.logo-sm::after { content: ""; position: absolute; left: 52%; bottom: -0.12em; width: 36%; height: 0.24em; border-bottom: 0.14em solid var(--brand-accent-bright); border-radius: 50%; transform: rotate(-6deg); }
.auth h1 { margin: var(--space-5) 0 var(--space-1); text-align: center; font-size: var(--text-screen-title); color: var(--text-strong); }
.auth .lead { text-align: center; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); padding: var(--space-1); margin-bottom: var(--space-4); border-radius: var(--radius-lg); background: var(--surface-subtle); }
.tab { min-height: var(--touch-min); border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text-secondary); font-size: var(--text-label); font-weight: var(--weight-bold); }
.tab[aria-selected="true"] { background: var(--surface-card); color: var(--brand-action); box-shadow: var(--shadow-card); }
.input { display: flex; align-items: center; gap: var(--space-3); min-height: 3.25rem; margin-bottom: var(--space-2); padding: 0 var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-field); }
.input:focus-within { border-color: var(--brand-action); background: var(--surface-card); }
.input .icon { color: var(--brand-primary); width: 1.3rem; height: 1.3rem; }
.input input, .input select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: var(--text-label); color: var(--text-strong); min-height: 3rem; }
.input.invalid { border-color: var(--state-danger-mark); }
.link-btn { border: 0; background: none; padding: var(--space-2) 0; color: var(--text-link); font-size: var(--text-helper); font-weight: var(--weight-semibold); }
.or { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-4) 0; color: var(--text-subtle); font-size: var(--text-helper); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border-default); }
.social { display: flex; align-items: center; justify-content: center; gap: var(--space-3); width: 100%; min-height: 3rem; margin-bottom: var(--space-2); border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-card); color: var(--text-strong); font-size: var(--text-label); font-weight: var(--weight-semibold); }
.social .icon { color: var(--state-success-mark); }
.terms { margin: auto 0 0; padding-top: var(--space-4); text-align: center; font-size: var(--text-caption); color: var(--text-subtle); }
.terms button { border: 0; background: none; padding: 0; color: var(--text-link); text-decoration: underline; font-size: inherit; }

/* ---------- Pagamento (Tela 5) ---------- */
.review-head { display: flex; gap: var(--space-3); align-items: center; }
.review-head h2 { margin: 0; font-size: var(--text-label); color: var(--text-strong); }
.review-head p { margin: 2px 0 0; font-size: var(--text-helper); color: var(--text-muted); }
.kv { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0; font-size: var(--text-label); color: var(--text-secondary); }
.kv b { color: var(--text-strong); font-weight: var(--weight-semibold); text-align: right; }
.kv.total { margin-top: var(--space-2); padding-top: var(--space-3); border-top: 1px dashed var(--border-default); }
.kv.total b { font-size: var(--text-price); font-weight: var(--weight-black); }
.kv small { display: block; color: var(--text-subtle); font-size: var(--text-caption); }
.pay-option { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 3.6rem; margin-bottom: var(--space-2); padding: var(--space-2) var(--space-3); border: 1.5px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-card); text-align: left; }
.pay-option .ic { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: var(--radius-md); background: var(--surface-subtle); color: var(--brand-primary); }
.pay-option strong { display: block; font-size: var(--text-label); color: var(--text-strong); }
.pay-option small { font-size: var(--text-helper); color: var(--text-muted); }
.pay-option .radio { margin-left: auto; width: 1.3rem; height: 1.3rem; border: 2px solid var(--border-strong); border-radius: var(--radius-pill); }
.pay-option[aria-checked="true"] { border-color: var(--brand-action); background: var(--surface-subtle); }
.pay-option[aria-checked="true"] .radio { border: 6px solid var(--brand-action); }
.pax-field { margin-bottom: var(--space-2); }
.pax-field label { display: block; margin-bottom: var(--space-1); font-size: var(--text-helper); color: var(--text-muted); font-weight: var(--weight-semibold); }
.secure { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-3); font-size: var(--text-helper); color: var(--text-muted); }
.secure .icon { width: 1rem; height: 1rem; }
.processing { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; align-content: center; gap: var(--space-4); background: var(--surface-card); text-align: center; color: var(--text-strong); }
.spinner { width: 3rem; height: 3rem; border: 4px solid var(--blue-100); border-top-color: var(--brand-action); border-radius: var(--radius-pill); animation: gira 0.8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- Confirmação (Tela 6) e passagens (Tela 7) ---------- */
.success { text-align: center; }
.success img { width: min(13rem, 62%); height: auto; margin-top: var(--space-2); }
.success h1 { margin: var(--space-2) 0 var(--space-1); font-size: var(--text-screen-title); color: var(--text-strong); }
.ticket { position: relative; margin: var(--space-4) 0; border-radius: var(--radius-xl); background: var(--surface-card); box-shadow: var(--shadow-card); border: 1px solid var(--border-subtle); text-align: left; overflow: hidden; }
.ticket-top { padding: var(--space-4); background: var(--gradient-brand-panel); color: var(--text-on-primary); }
.ticket-top small { color: var(--text-on-dark-muted); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.08em; }
.ticket-top .code { display: block; font-size: var(--text-section-title); font-weight: var(--weight-black); letter-spacing: 0.06em; }
.ticket-top .route { display: flex; justify-content: space-between; align-items: end; margin-top: var(--space-3); }
.ticket-top .route b { display: block; font-size: var(--text-section-title); }
.ticket-top .route span { font-size: var(--text-helper); color: var(--text-on-dark-muted); }
.ticket-top .route .icon { color: var(--brand-accent-bright); }
.ticket-body { padding: var(--space-4); }
.ticket-cut { position: relative; border-top: 2px dashed var(--border-default); margin: 0 var(--space-4); }
.ticket-cut::before, .ticket-cut::after { content: ""; position: absolute; top: -0.75rem; width: 1.5rem; height: 1.5rem; border-radius: var(--radius-pill); background: var(--surface-page); }
.ticket-cut::before { left: calc(var(--space-4) * -1 - 0.75rem); } .ticket-cut::after { right: calc(var(--space-4) * -1 - 0.75rem); }
.ticket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); font-size: var(--text-helper); color: var(--text-muted); }
.ticket-grid strong { display: block; font-size: var(--text-label); color: var(--text-strong); }
.vehicle { display: flex; gap: var(--space-3); align-items: center; margin-top: var(--space-3); padding: var(--space-3); border-radius: var(--radius-lg); background: var(--state-pending-bg); color: var(--state-pending); font-size: var(--text-helper); }
.vehicle.done { background: var(--state-success-bg); color: var(--state-success); }
.vehicle.info { background: var(--state-info-bg); color: var(--state-info); }
.vehicle .icon { width: 1.6rem; height: 1.6rem; }
.vehicle strong { display: block; font-size: var(--text-label); }
.qr { display: grid; place-items: center; padding: var(--space-4); }
.qr svg { width: 8.5rem; height: 8.5rem; }
.res-card { display: block; width: 100%; text-align: left; padding: 0; overflow: hidden; }
.res-card .top { display: flex; justify-content: space-between; align-items: center; padding: var(--space-3) var(--space-4); background: var(--surface-subtle); font-size: var(--text-helper); color: var(--text-muted); }
.res-card .mid { padding: var(--space-3) var(--space-4) var(--space-4); }
.res-card h3 { margin: 0 0 var(--space-1); font-size: var(--text-card-title); color: var(--text-strong); }
.res-card .mid p { margin: 0; font-size: var(--text-helper); color: var(--text-muted); }
.res-card .vehicle { margin-top: var(--space-3); }

/* ---------- Como funciona / perfil / menu ---------- */
.steps { counter-reset: passo; display: grid; gap: var(--space-3); }
.step { display: grid; grid-template-columns: 2.6rem 1fr; gap: var(--space-3); align-items: start; }
.step::before { counter-increment: passo; content: counter(passo); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: var(--radius-pill); background: var(--brand-action); color: var(--text-on-primary); font-weight: var(--weight-black); }
.step h3 { margin: var(--space-1) 0; font-size: var(--text-label); color: var(--text-strong); }
.step p { margin: 0; font-size: var(--text-helper); color: var(--text-muted); }
.illus { display: block; width: 100%; height: auto; border-radius: var(--radius-xl); margin-bottom: var(--space-4); }
.list-btn { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 3.4rem; padding: 0 var(--space-2); border: 0; border-bottom: 1px solid var(--border-subtle); background: none; color: var(--text-strong); font-size: var(--text-label); text-align: left; }
.list-btn .icon { color: var(--brand-primary); }
.list-btn .icon:last-child { margin-left: auto; color: var(--text-subtle); width: 1.1rem; }
.avatar { display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto var(--space-2); border-radius: var(--radius-pill); background: var(--gradient-brand-panel); color: var(--text-on-primary); font-size: var(--text-section-title); font-weight: var(--weight-black); }
.drawer-backdrop, .sheet-backdrop { position: absolute; inset: 0; z-index: 30; background: var(--surface-overlay); animation: fade .18s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: absolute; z-index: 31; top: 0; bottom: 0; left: 0; width: min(80%, 20rem); display: flex; flex-direction: column; padding: var(--space-5) var(--space-4); background: var(--surface-card); box-shadow: var(--shadow-pop); animation: desliza .2s ease-out; }
@keyframes desliza { from { transform: translateX(-100%); } }
.drawer .logo-sm { margin: 0 0 var(--space-5); }
.drawer .foot { margin-top: auto; font-size: var(--text-caption); color: var(--text-subtle); }
.sheet { position: absolute; z-index: 31; left: 0; right: 0; bottom: 0; max-height: 82%; display: flex; flex-direction: column; border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; background: var(--surface-card); box-shadow: var(--shadow-pop); animation: sobe .22s ease-out; }
@keyframes sobe { from { transform: translateY(100%); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-4) var(--space-2); }
.sheet-head h2 { margin: 0; font-size: var(--text-card-title); color: var(--text-strong); }
.sheet-body { overflow-y: auto; padding: 0 var(--space-4) var(--space-5); }
.opt { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 3.2rem; margin-bottom: var(--space-1); padding: 0 var(--space-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-field); color: var(--text-strong); font-size: var(--text-label); text-align: left; }
.opt .icon { color: var(--brand-primary); width: 1.2rem; height: 1.2rem; }
.opt small { margin-left: auto; color: var(--text-subtle); font-size: var(--text-helper); }
.opt[aria-selected="true"] { border-color: var(--brand-action); background: var(--surface-subtle); }
.date-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin-bottom: var(--space-3); }
.date-grid button { min-height: 3.6rem; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-card); font-size: var(--text-helper); color: var(--text-muted); }
.date-grid button b { display: block; font-size: var(--text-card-title); color: var(--text-strong); }
.date-grid button[aria-selected="true"] { background: var(--brand-action); border-color: var(--brand-action); color: var(--text-on-primary); }
.date-grid button[aria-selected="true"] b { color: var(--text-on-primary); }
.install { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-3) 0; padding: var(--space-3); border-radius: var(--radius-lg); background: var(--surface-inverse); color: var(--text-on-primary); font-size: var(--text-helper); }
.install .icon { width: 1.8rem; height: 1.8rem; color: var(--brand-accent-bright); }
.install button { margin-left: auto; min-height: 2.4rem; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-md); background: var(--brand-accent-bright); color: var(--text-on-accent); font-weight: var(--weight-bold); font-size: var(--text-helper); }
.toast { position: absolute; left: 50%; bottom: 6.2rem; z-index: 40; width: max-content; max-width: calc(100% - 2rem); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-inverse); color: var(--text-on-primary); font-size: var(--text-helper); text-align: center; box-shadow: var(--shadow-toast); opacity: 0; transform: translate(-50%, 0.6rem); pointer-events: none; transition: 0.18s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Telas baixas (herdado do ajuste de viewport do protótipo) */
@media (max-width: 639px) and (max-height: 740px) {
  .brand-lockup p { font-size: var(--text-label); margin-top: var(--space-3); }
  .booking { padding: var(--space-2) var(--space-3) var(--space-3); }
  :root { --bottom-nav-height: 4.4rem; }
}
@media (max-height: 600px) and (max-width: 639px) {
  .pv-app { height: auto; min-height: 100dvh; }
  .home-stage { min-height: 36rem; }
}
