/* App do motorista · Já Carregou. Cores, tamanhos e cantos vêm de /comum/jc/tokens.css. Telas inteiras, sem rolagem da página. */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { background: var(--jc-bg); -webkit-tap-highlight-color: transparent; }
#app { position: fixed; inset: 0; max-width: 480px; margin: 0 auto; background: var(--jc-bg); overflow: hidden; box-shadow: 0 0 0 1px var(--jc-borda); }
#tela { position: absolute; inset: 0; overflow: hidden; }
.tela { position: absolute; inset: 0; background: var(--jc-bg); }
.rolagem { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(env(safe-area-inset-top) + 16px) var(--jc-margem) calc(var(--jc-alt-abas) + env(safe-area-inset-bottom) + 24px); }
.rolagem.sem-abas { padding-bottom: calc(env(safe-area-inset-bottom) + 130px); }
.topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }

/* Barra de abas */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--jc-alt-abas) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--jc-bg); border-top: 1px solid var(--jc-borda); display: flex; justify-content: space-around; }
.tabbar button { flex: 1; background: none; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding-top: 4px; font-size: 11px; font-weight: 500; color: var(--jc-texto-2); position: relative; }
.tabbar button.on { color: var(--jc-link); font-weight: 600; }
.tabbar i { position: absolute; top: 10px; left: calc(50% + 6px); width: 9px; height: 9px; border-radius: 9px; background: var(--jc-fora); box-shadow: 0 0 0 2px var(--jc-bg); }
.faixa { position: absolute; left: 14px; right: 14px; z-index: 29; bottom: calc(var(--jc-alt-abas) + env(safe-area-inset-bottom) + 10px); display: flex; align-items: center; gap: 10px; border: 0; text-align: left; border-radius: var(--jc-raio-md); padding: 11px 14px; background: var(--jc-texto); color: var(--jc-bg); box-shadow: var(--jc-sombra-flutuante); font-weight: 600; }
.faixa small { font-weight: 500; opacity: .8; display: block; }

/* Mapa */
.mapa-wrap { position: absolute; left: 0; right: 0; top: 0; bottom: calc(var(--jc-alt-abas) + env(safe-area-inset-bottom) + 34%); background: var(--jc-mapa-fundo); overflow: hidden; touch-action: none; }
.mapa-wrap .camada { position: absolute; inset: 0; }
.mapa-wrap .tile, .mapa-cheio .tile { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; user-select: none; }
[data-theme="dark"] .mapa-wrap .tile, [data-theme="dark"] .mapa-cheio .tile { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mapa-wrap .tile, :root:not([data-theme="light"]) .mapa-cheio .tile { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92); } }
.pino { position: absolute; transform: translate(-50%, -100%); width: 30px; height: 40px; padding: 0; border: 0; background: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.pino svg { display: block; overflow: visible; }
.pino.sel { z-index: 5; }
.voce { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #2f80ed; border: 3px solid #fff; box-shadow: 0 0 0 5px rgba(47, 128, 237, .28); }
.atrib { position: absolute; left: 8px; bottom: 6px; font-size: 10px; background: rgba(255, 255, 255, .78); color: #333; padding: 1px 6px; border-radius: 4px; }
.busca-flut { position: absolute; z-index: 10; top: calc(env(safe-area-inset-top) + 12px); left: 14px; right: 14px; display: flex; align-items: center; gap: 8px; height: var(--jc-alt-campo); padding: 0 14px; border-radius: var(--jc-raio-md); background: var(--jc-superficie-elevada); box-shadow: var(--jc-sombra-flutuante); color: var(--jc-texto-2); }
.busca-flut input { flex: 1; border: 0; background: none; outline: 0; font-size: 15px; color: var(--jc-texto); min-width: 0; }
.chips { position: absolute; z-index: 10; top: calc(env(safe-area-inset-top) + 64px); left: 14px; right: 14px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.fab { width: 40px; height: 40px; border-radius: var(--jc-raio-pill); border: 0; background: var(--jc-superficie-elevada); color: var(--jc-texto); box-shadow: var(--jc-sombra-flutuante); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fab.chato { box-shadow: none; background: var(--jc-superficie); }
.fabs { position: absolute; z-index: 10; right: 14px; display: flex; flex-direction: column; gap: 8px; bottom: calc(var(--jc-alt-abas) + env(safe-area-inset-bottom) + 34% + 12px); }
.folha { position: absolute; z-index: 20; left: 0; right: 0; bottom: calc(var(--jc-alt-abas) + env(safe-area-inset-bottom)); height: 34%; background: var(--jc-bg); border-radius: var(--jc-raio-folha) var(--jc-raio-folha) 0 0; box-shadow: var(--jc-sombra-folha); padding: 10px var(--jc-margem) 0; display: flex; flex-direction: column; }
.folha .alca { width: 36px; height: 4px; border-radius: 9px; background: var(--jc-borda-forte); margin: 0 auto 12px; flex-shrink: 0; }
.folha .lista { overflow-y: auto; flex: 1; min-height: 0; }
.folha.cheia { top: 120px; height: auto; bottom: 0; z-index: 25; }

/* Estação */
.est-mapa { position: absolute; left: 0; right: 0; top: 0; height: 160px; background: var(--jc-mapa-fundo); overflow: hidden; }
.est-voltar { position: absolute; z-index: 12; top: calc(env(safe-area-inset-top) + 12px); left: 14px; }
.conn { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--jc-borda); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.conn:last-child { border-bottom: 0; }
.conn.sel .ic-caixa { background: var(--jc-info-fundo); color: var(--jc-info-texto); }
.conn[disabled] { opacity: .6; cursor: default; }
.grade3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grade3 .box { padding: 9px 10px; }
.grade3 .box b { display: block; font-size: 15px; font-weight: 600; }
.acao { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 18px); z-index: 28; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.acao > * { pointer-events: auto; }
.acao b { font-size: 15px; font-weight: 600; margin-top: 4px; }
.acao-fundo { position: absolute; left: 0; right: 0; bottom: 0; height: calc(env(safe-area-inset-bottom) + 132px); background: linear-gradient(to top, var(--jc-bg) 60%, transparent); z-index: 27; pointer-events: none; }

/* Recarga ao vivo */
.vivo-num { font-size: 56px; font-weight: 600; letter-spacing: var(--jc-tracking-display); line-height: 1; font-variant-numeric: tabular-nums; }

/* Carteira */
.saldo-card { background: var(--jc-primaria); color: #fff; border-radius: var(--jc-raio-lg); padding: 18px; }
.saldo-card .v { font-size: 40px; font-weight: 600; letter-spacing: var(--jc-tracking-display); line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pix-codigo { word-break: break-all; font-size: 12px; background: var(--jc-superficie); border-radius: var(--jc-raio-md); padding: 10px 12px; max-height: 84px; overflow: auto; }
.qr-caixa { background: #fff; border-radius: var(--jc-raio-md); padding: 10px; width: 188px; margin: 0 auto; }
.qr-caixa svg { width: 100%; height: auto; display: block; }

/* Primeiro acesso */
.abertura { position: absolute; inset: 0; background: var(--jc-primaria); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; }
.abertura b { font-size: 28px; font-weight: 600; letter-spacing: -.035em; }
.entrar-mapa { position: absolute; left: 0; right: 0; top: 0; height: 300px; background: var(--jc-mapa-fundo); overflow: hidden; }
.marca-chip { position: absolute; z-index: 5; top: calc(env(safe-area-inset-top) + 12px); left: 14px; display: flex; align-items: center; gap: 8px; border-radius: var(--jc-raio-pill); padding: 6px 13px 6px 10px; background: var(--jc-superficie-elevada); box-shadow: var(--jc-sombra-flutuante); font-weight: 600; font-size: 13.5px; letter-spacing: -.02em; }
.otp { display: flex; gap: 8px; margin-top: 22px; position: relative; }
.otp div { flex: 1; height: 54px; border-radius: var(--jc-raio-md); background: var(--jc-superficie); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.otp div.at { background: var(--jc-bg); box-shadow: inset 0 0 0 1.5px var(--jc-primaria); }
.otp input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; font-size: 22px; }
.ou { display: flex; align-items: center; gap: 10px; color: var(--jc-texto-2); margin: 14px 0; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--jc-borda); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; position: relative; }
.check input { position: absolute; opacity: 0; }
.check i { width: 22px; height: 22px; border-radius: 7px; background: var(--jc-superficie); box-shadow: inset 0 0 0 1.5px var(--jc-borda-forte); flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.check input:checked + i { background: var(--jc-primaria); box-shadow: none; }
.check input:checked + i::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.rodape-fixo { position: absolute; left: var(--jc-margem); right: var(--jc-margem); bottom: calc(env(safe-area-inset-bottom) + 24px); }
.segmentos { display: flex; gap: 6px; }
.segmentos button { flex: 1; height: 36px; border: 0; border-radius: var(--jc-raio-pill); background: var(--jc-superficie); font-weight: 500; font-size: 13.5px; }
.segmentos button.on { background: var(--jc-primaria); color: #fff; font-weight: 600; }
.leitor { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.leitor video { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: var(--jc-raio-lg); }
.vazio { text-align: center; padding: 36px 12px; color: var(--jc-texto-2); }
.vazio .ic { color: var(--jc-borda-forte); margin-bottom: 8px; }
.secao-titulo { margin: 22px 0 4px; }
.linha-conta { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--jc-borda); background: none; border-top: 0; border-left: 0; border-right: 0; width: 100%; text-align: left; font-weight: 500; }
.linha-conta:last-child { border-bottom: 0; }
.linha-conta .ic { color: var(--jc-texto-2); }
.contador { background: var(--jc-fora); color: #fff; border-radius: 9px; min-width: 20px; height: 20px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
/* Marcadores dentro do Google Maps: o próprio mapa posiciona a ponta do pino, então sem o deslocamento do mapa de blocos */
.pino.gm { position: static; transform: none; cursor: pointer; }
.voce.gm { position: static; margin: 0; }
/* ===== Jornada de referência (19/11/2026): abas com botão central, mapa limpo, janelas e telas novas ===== */
.tabbar button.central { overflow: visible; color: var(--jc-texto-2); }
.tabbar button.central b { position: absolute; top: -22px; width: 58px; height: 58px; border-radius: 50%; background: var(--jc-primaria); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px var(--jc-bg), 0 4px 12px rgba(36, 85, 244, .35); }
.tabbar button.central span { margin-top: 34px; font-weight: 600; color: var(--jc-texto); }
.tabbar button.central.on span { color: var(--jc-link); }
.mapa-cheio { position: absolute; left: 0; right: 0; top: 0; bottom: calc(var(--jc-alt-abas) + env(safe-area-inset-bottom)); background: var(--jc-mapa-fundo); overflow: hidden; touch-action: none; }
.mapa-cheio .camada { position: absolute; inset: 0; }
.cab-mapa { position: absolute; z-index: 10; left: 0; right: 0; top: 0; padding: calc(env(safe-area-inset-top) + 8px) 14px 8px; background: linear-gradient(var(--jc-bg) 62%, transparent); pointer-events: none; }
.cab-mapa > * { pointer-events: auto; }
.logo-topo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; letter-spacing: -.03em; color: var(--jc-primaria); height: 30px; }
.linha-busca { display: flex; gap: 8px; margin-top: 6px; }
.linha-busca label { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--jc-superficie); color: var(--jc-texto-2); min-width: 0; }
.linha-busca input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; color: var(--jc-texto); font-size: 14.5px; }
.linha-busca button { display: flex; align-items: center; gap: 6px; height: 40px; border: 0; background: none; color: var(--jc-texto); font-weight: 500; padding: 0 4px; }
.chips2 { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 8px; padding-bottom: 2px; }
.chips2::-webkit-scrollbar { display: none; }
.fabs2 { position: absolute; z-index: 10; right: 14px; bottom: calc(var(--jc-alt-abas) + env(safe-area-inset-bottom) + 14px); display: flex; flex-direction: column; gap: 8px; }
.fabs2.alto { bottom: calc(var(--jc-alt-abas) + env(safe-area-inset-bottom) + 102px); }
/* mini-cartão de recarga em andamento (acima da barra) */
.mini-carga { position: absolute; left: 12px; right: 12px; z-index: 29; bottom: calc(var(--jc-alt-abas) + env(safe-area-inset-bottom) + 28px); display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 12px; border: 0; border-radius: 14px; background: var(--jc-bg); color: var(--jc-texto); box-shadow: 0 2px 14px rgba(0, 0, 0, .18); text-align: left; }
.mini-carga .pct { width: 42px; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.2; }
.mini-carga .meio { flex: 1; min-width: 0; font-weight: 600; }
.mini-carga .meio small { display: block; font-weight: 500; color: var(--jc-texto-2); font-size: 12.5px; }
.mini-carga .ver { height: 34px; padding: 0 14px; border-radius: 99px; background: var(--jc-primaria); color: #fff; font-weight: 600; font-size: 13px; display: flex; align-items: center; }
.bat { display: inline-block; width: 26px; height: 13px; border: 2px solid currentColor; border-radius: 3px; position: relative; opacity: .95; }
.bat::after { content: ''; position: absolute; right: -5px; top: 2px; width: 3px; height: 5px; background: currentColor; border-radius: 0 2px 2px 0; }
.bat i { position: absolute; inset: 1px; background: var(--jc-livre); border-radius: 1px; width: var(--n, 40%); }
/* janelas (folha de baixo e janela central) */
.modal { position: absolute; inset: 0; z-index: 60; background: rgba(15, 16, 18, .55); display: flex; align-items: flex-end; justify-content: center; }
.modal.centro { align-items: center; padding: 18px; }
.janela { width: 100%; max-width: 448px; background: var(--jc-bg); border-radius: 22px 22px 0 0; padding: 18px 18px calc(env(safe-area-inset-bottom) + 18px); max-height: 92%; overflow-y: auto; }
.modal.centro .janela { border-radius: 20px; padding: 16px; }
.janela .fechar { float: right; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--jc-superficie); color: var(--jc-texto); display: flex; align-items: center; justify-content: center; }
.janela h2 { font-size: 17px; font-weight: 600; margin: 0 0 12px; }
.cab-carga { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; }
.cab-carga .ico { width: 52px; height: 40px; border-radius: 10px; background: var(--jc-sucesso-fundo); color: var(--jc-sucesso-texto); display: flex; align-items: center; justify-content: center; }
.dados-carga .lin { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.dados-carga .lin .ic { color: var(--jc-texto-2); }
.dados-carga .lin span { flex: 1; }
.dados-carga .lin b { font-weight: 600; font-variant-numeric: tabular-nums; }
.btn.contorno { background: none; color: var(--jc-primaria); box-shadow: inset 0 0 0 1.5px var(--jc-primaria); }
.rodape-est { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--jc-borda); font-size: 13.5px; }
.rodape-est small { display: block; color: var(--jc-texto-2); }
.ilustra { display: flex; justify-content: center; padding: 8px 0 4px; }
.pulso { animation: pulso 1.6s ease-in-out infinite; }
@keyframes pulso { 50% { opacity: .55; transform: scale(.97); } }
.linha-radio { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--jc-borda); background: none; text-align: left; color: var(--jc-texto); }
.linha-radio .bola { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--jc-borda-forte); flex-shrink: 0; }
.linha-radio.on .bola { box-shadow: inset 0 0 0 7px var(--jc-primaria); }
.linha-radio:disabled { opacity: .45; }
/* leitor de QR dentro da aba */
.qr-tela { position: absolute; inset: 0 0 calc(var(--jc-alt-abas) + env(safe-area-inset-bottom)) 0; background: var(--jc-bg); display: flex; flex-direction: column; }
.qr-tela .topo-qr { padding: calc(env(safe-area-inset-top) + 14px) 18px 12px; }
.qr-tela .topo-qr h1 { font-size: 20px; font-weight: 600; margin: 0 0 4px; }
.cam { position: relative; flex: 1; background: #17181b; overflow: hidden; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam .moldura { position: absolute; left: 50%; top: 46%; width: min(62vw, 260px); aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid rgba(255, 255, 255, .9); border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .28); }
.cam .acima { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; }
.cam .acima button, .cam .pilula { border: 0; border-radius: 99px; background: rgba(255, 255, 255, .88); color: #111; font-weight: 600; font-size: 13px; padding: 8px 14px; display: flex; align-items: center; gap: 6px; }
.cam .pilula { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 14px; padding: 11px 20px; background: rgba(255, 255, 255, .9); }
.cam .msg { position: absolute; left: 24px; right: 24px; top: 40%; color: #fff; text-align: center; font-size: 14.5px; }
/* detalhes da estação */
.det { position: absolute; inset: 0; background: var(--jc-bg); overflow-y: auto; padding: calc(env(safe-area-inset-top) + 10px) 18px 230px; }
.det .barra-top { display: flex; align-items: center; justify-content: space-between; height: 44px; font-weight: 600; }
.det .barra-top button { width: 40px; height: 40px; border: 0; background: none; color: var(--jc-texto); display: flex; align-items: center; justify-content: center; }
.chips-i { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chips-i span.t { border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--jc-borda-forte); }
.cartao-info { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 14px; border: 0; border-radius: 12px; background: var(--jc-superficie); color: var(--jc-texto); text-align: left; }
.cartao-info > span { flex: 1; }
.cartao-info small { display: block; color: var(--jc-texto-2); font-size: 12.5px; margin-top: 2px; }
.cartao-info b.v { color: var(--jc-link); font-weight: 600; }
.base-det { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--jc-bg); box-shadow: 0 -6px 20px rgba(0, 0, 0, .1); border-radius: 18px 18px 0 0; padding: 12px 18px calc(env(safe-area-inset-bottom) + 14px); }
.base-det .carteira-l { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.base-det .carteira-l a { margin-left: auto; }
.aviso-azul { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 12px; padding: 12px; border-radius: 12px; background: var(--jc-info-fundo); color: var(--jc-info-texto); font-size: 14px; box-shadow: inset 0 0 0 1px var(--jc-primaria); }
/* perfil, veículos, dicas, ajuda */
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--jc-primaria); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 22px; flex-shrink: 0; }
.estat { display: flex; gap: 10px; margin-top: 14px; }
.estat > div { flex: 1; border-radius: 12px; padding: 12px; background: var(--jc-superficie); text-align: center; }
.estat b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.estat small { color: var(--jc-texto-2); font-size: 12px; }
.atalhos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.atalhos button { border: 0; border-radius: 12px; background: var(--jc-superficie); padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--jc-texto); font-weight: 500; font-size: 13.5px; }
.cartao-tipo { flex: 1; border: 0; border-radius: 14px; background: var(--jc-superficie); padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--jc-texto); font-weight: 600; }
.cartao-tipo.on { box-shadow: inset 0 0 0 2px var(--jc-primaria); background: var(--jc-info-fundo); color: var(--jc-info-texto); }
.dica { border-radius: 14px; background: var(--jc-superficie); padding: 14px; margin-top: 10px; }
.dica h3 { font-size: 15px; margin: 0 0 4px; }
.faq { border-bottom: 1px solid var(--jc-borda); }
.faq summary { padding: 14px 2px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { padding: 0 2px 14px; color: var(--jc-texto-2); }
