/* Letra da marca Bazza: Outfit (licença SIL OFL, ficheiros locais: abre sem internet) */
@font-face { font-family: "Outfit"; src: url("vendor/fontes/outfit-400.woff") format("woff"); font-weight: 300 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("vendor/fontes/outfit-600.woff") format("woff"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("vendor/fontes/outfit-800.woff") format("woff"); font-weight: 800 900; font-display: swap; }

/* BAZZA – estilos. Cores principais: */
:root {
  color-scheme: only light;   /* o Chrome não escurece o Bazza à força (como no iFood) */
  --vermelho: #D91E26;
  --verde: #0E5A3A;
  --ambar: #8A5A00;
  --fundo: #FFFFFF;
  --texto: #1B1410;
  --suave: #717171;
  --borda: #EBEBEB;
  --branco: #FFFFFF;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fundo); color: var(--texto); font-family: "Outfit", system-ui, sans-serif; }
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
a { color: var(--vermelho); }
button, input, textarea { font: inherit; color: inherit; }
.app { max-width: 520px; margin: 0 auto; padding: 16px 16px 96px; }

/* Tipografia */
.logo, .h1, .titulo, .banner h2, .nome-rest { font-family: "Outfit", system-ui, sans-serif; }
.logo { font-weight: 800; font-size: 32px; letter-spacing: -1px; color: var(--vermelho); display: inline-block; transform: skewX(-5deg); line-height: 1; }
.logo span { color: #FFC24B; }
.h1 { font-size: 26px; margin: 8px 0 12px; }
.titulo { font-size: 19px; margin: 22px 0 10px; }
.suave { color: var(--suave); }
.pequeno { font-size: 13px; }
.verde { color: var(--verde); font-weight: 700; }
.vermelho { color: var(--vermelho); }
.ambar { color: var(--ambar); font-weight: 700; }
.escondido { position: absolute; left: -9999px; }
.vazio { text-align: center; color: var(--suave); padding: 40px 0; line-height: 1.6; }

/* Topo */
.topo { display: flex; justify-content: space-between; align-items: center; }
.chip-estrelas { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 22px; background: #FFF0C7; border: 1px solid #F2CF6B; color: #6B4A00; font-weight: 800; text-decoration: none; }
.morada { margin: 6px 0 14px; color: var(--suave); }
.morada strong { color: var(--texto); }

/* Banner */
.banner { background: var(--verde); color: var(--branco); border-radius: 20px; padding: 18px; }
.banner small { color: #FFC24B; font-weight: 800; letter-spacing: 1px; }
.banner h2 { margin: 4px 0; font-size: 24px; }
.banner p { margin: 0; }

/* Serviços */
.servicos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.servico { background: none; border: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; }
.servico-icone { position: relative; width: 60px; height: 60px; border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.servico-icone em { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; background: #fff; color: var(--suave); border: 1px solid var(--borda); border-radius: 8px; padding: 1px 5px; }
.servico { color: var(--texto); }

/* Cartões e listas */
.lista { display: flex; flex-direction: column; gap: 12px; }
.cartao { background: var(--branco); border: 1px solid var(--borda); border-radius: 16px; color: var(--texto); text-decoration: none; }
.bloco { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.rest { display: flex; flex-direction: column; overflow: hidden; }
.rest-foto { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #6B3A1A; }
.rest-info { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.rest-info strong { font-size: 16px; }
.capa { position: relative; height: 170px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #6B3A1A; }
.voltar { position: absolute; top: 12px; left: 12px; width: 44px; height: 44px; border-radius: 22px; background: var(--branco); display: flex; align-items: center; justify-content: center; color: var(--texto); text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.nome-rest { font-size: 26px; margin: 14px 0 4px; }
.prato { display: flex; align-items: center; gap: 12px; padding: 12px; }
.prato-foto { width: 64px; height: 64px; border-radius: 12px; background: #F2F2F2; flex-shrink: 0; }
.prato-info { flex-grow: 1; display: flex; flex-direction: column; gap: 3px; font-size: 13px; min-width: 0; }
.prato-info strong { font-size: 15px; }
.preco { color: var(--vermelho); font-weight: 800; font-size: 14px; }
.redondo { width: 44px; height: 44px; border-radius: 22px; border: none; background: var(--vermelho); color: var(--branco); font-size: 22px; font-weight: 800; cursor: pointer; flex-shrink: 0; }
.qtd { display: flex; align-items: center; background: var(--vermelho); color: var(--branco); border-radius: 22px; flex-shrink: 0; }
.qtd button { width: 40px; height: 44px; border: none; background: none; color: var(--branco); font-size: 20px; font-weight: 800; cursor: pointer; }
.qtd span { min-width: 18px; text-align: center; font-weight: 800; }
.grelha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }

/* Carrinho */
.linha { display: flex; justify-content: space-between; gap: 10px; }
.total { font-weight: 800; font-size: 18px; }
.totais { display: flex; flex-direction: column; gap: 8px; margin: 22px 0; }
.linha-form { display: flex; gap: 8px; }
.linha-form input { flex-grow: 1; min-width: 0; height: 48px; border: 1px solid #DCDCDC; border-radius: 14px; padding: 0 14px; background: var(--branco); font-weight: 700; text-transform: uppercase; }
.opcao { width: 100%; min-height: 60px; padding: 10px 14px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; background: var(--branco); border: 1px solid var(--borda); border-radius: 14px; cursor: pointer; }
.opcao.ativo { border: 2px solid var(--vermelho); }
.opcao.codigo { border-style: dashed; border-color: #DCDCDC; }
.opcao.codigo.ativo { border: 2px solid var(--verde); background: #E3F0E8; }
.opcao.estrelas.ativo { border: 2px solid #F2A900; background: #FFF0C7; }
.radio { width: 20px; height: 20px; border-radius: 10px; border: 2px solid #C8C8C8; flex-shrink: 0; }
.radio.on { border: 6px solid var(--vermelho); }
.interruptor { width: 48px; height: 28px; border-radius: 14px; background: #DCDCDC; position: relative; flex-shrink: 0; }
.interruptor::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: var(--branco); transition: left .2s; }
.interruptor.on { background: #B37800; }
.interruptor.on::after { left: 23px; }

/* Botões */
.botao { height: 48px; padding: 0 18px; border-radius: 14px; border: none; font-weight: 800; cursor: pointer; }
.verde-bg { background: var(--verde); color: var(--branco); }
.contorno { width: 100%; background: transparent; border: 1px solid var(--borda); color: #B0141E; margin-top: 18px; }
.barra-fundo { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom)); width: calc(100% - 32px); max-width: 488px; height: 56px; padding: 0 18px; border: none; border-radius: 16px; background: var(--vermelho); color: var(--branco); display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; z-index: 5; box-shadow: 0 6px 18px rgba(0,0,0,.15); }

/* Pedido */
.mapa { height: 180px; border-radius: 18px; background: #E6EFE5; position: relative; overflow: hidden; margin-bottom: 12px;
  background-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
  background-size: 100% 12px, 12px 100%, 100% 12px; background-position: 0 40px, 120px 0, 0 130px; background-repeat: no-repeat; }
.rota { position: absolute; left: 30px; right: 30px; top: 90px; border-top: 4px dashed var(--vermelho); }
.mota { position: absolute; top: 76px; width: 30px; height: 30px; border-radius: 15px; background: var(--vermelho); border: 4px solid var(--branco); transition: left 1s; }
.mota-f0 { left: 20px; } .mota-f1 { left: 30%; } .mota-f2 { left: 60%; } .mota-f3 { left: calc(100% - 50px); background: var(--verde); }
.passos { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 12px; }
.passos li { display: flex; align-items: center; gap: 12px; color: var(--suave); }
.ponto { width: 20px; height: 20px; border-radius: 10px; border: 2px solid #C8C8C8; flex-shrink: 0; }
.passos .feito { color: var(--texto); } .passos .feito .ponto { background: var(--verde); border-color: var(--verde); }
.passos .atual { color: var(--vermelho); font-weight: 800; } .passos .atual .ponto { border: 6px solid var(--vermelho); }
.chamada { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #FFF0C7; border-color: #F2CF6B; color: #6B4A00; font-weight: 700; margin-bottom: 12px; }

/* Formulários */
.form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 120px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.form input, .form textarea { border: 1px solid #DCDCDC; border-radius: 12px; padding: 12px; background: var(--branco); font-weight: 400; font-size: 15px; }
.form fieldset { border: none; padding: 0; margin: 0; }
.form legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.notas { display: flex; gap: 6px; flex-direction: row-reverse; justify-content: flex-end; }
.estrela-nota { cursor: pointer; }
.estrela-nota input { position: absolute; opacity: 0; }
.estrela-nota span[aria-hidden] { font-size: 40px; color: #DCDCDC; line-height: 1; }
.notas .estrela-nota:hover span[aria-hidden],
.notas .estrela-nota:hover ~ .estrela-nota span[aria-hidden],
.notas .estrela-nota:has(input:checked) span[aria-hidden],
.notas .estrela-nota:has(input:checked) ~ .estrela-nota span[aria-hidden] { color: #F2A900; }
.estrela-nota input:focus-visible + span { outline: 2px solid var(--vermelho); }
.ficheiro { background: var(--branco); border: 1px dashed #DCDCDC; border-radius: 14px; padding: 12px; }
.saldo { display: flex; align-items: center; gap: 10px; padding: 18px; background: #FFF0C7; border-color: #F2CF6B; color: #6B4A00; }
.saldo svg { width: 40px; height: 40px; }
.saldo strong { font-family: "Outfit", sans-serif; font-size: 36px; }

/* Barra de navegação */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: calc(72px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--branco); border-top: 1px solid var(--borda); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); z-index: 6; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 500; color: #717171; text-decoration: none; }
.tabbar a.ativo { color: var(--texto); font-weight: 800; }
.tabbar a.ativo .ic { color: var(--vermelho); stroke-width: 2.3; }
.tab-ic { position: relative; display: flex; }
.tab-ic .badge { position: absolute; top: -6px; right: -12px; border: 2px solid #fff; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--vermelho); color: var(--branco); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

.badge[hidden] { display: none; }

/* Aviso */
.toast { position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--texto); color: var(--branco); padding: 12px 16px; border-radius: 12px; font-size: 14px; max-width: calc(100% - 32px); opacity: 0; pointer-events: none; transition: all .25s; z-index: 60; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* v2: login e botões desativados */
#recaptcha { position: fixed; bottom: 0; right: 0; z-index: 20; }
.botao[disabled], .barra-fundo[disabled] { opacity: .6; cursor: wait; }
.form .botao { width: 100%; }

/* Botão "Entrar com Google" */
.botao-google { background: #FFFFFF; color: var(--texto); border: 1px solid #DCDCDC; display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; font-size: 16px; }
.botao-google .g { width: 28px; height: 28px; border-radius: 14px; background: #1F5E8C; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.ou { display: flex; align-items: center; gap: 10px; color: var(--suave); font-size: 13px; margin: 18px 0; }
.ou::before, .ou::after { content: ""; flex: 1; border-top: 1px solid var(--borda); }

/* Código de entrega */
.codigo-entrega { background: #0E5A3A; color: #fff; border-color: #0E5A3A; text-align: center; margin-bottom: 12px; }
.codigo-entrega strong { font-family: "Outfit", sans-serif; font-size: 40px; letter-spacing: 10px; line-height: 1.1; }
.codigo-entrega small { color: #E3F0E8; }

/* Fundo branco (estilo iFood/Yango): separadores finos e campos cinzento-claro */
.cartao { box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.form input, .form textarea, .form select, .linha-form input { background: #F7F7F7; border-color: #EBEBEB; }
.form input:focus, .form textarea:focus, .linha-form input:focus { outline: none; border-color: var(--vermelho); background: #fff; }

/* Perfil ao estilo de lista com ícones */
.perfil-topo { display: flex; align-items: center; gap: 16px; padding: 14px 0 22px; border-bottom: 1px solid var(--borda); }
.perfil-topo strong { display: block; font-size: 20px; font-family: "Outfit", sans-serif; }
.avatar { position: relative; overflow: hidden; width: 64px; height: 64px; border-radius: 32px; background: #FDE8E9; color: var(--vermelho); display: flex; align-items: center; justify-content: center; font-family: "Outfit", sans-serif; font-weight: 800; font-size: 26px; flex-shrink: 0; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--borda); }
.perfil-estrelas { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: #A86F00; font-weight: 700; font-size: 14px; text-decoration: none; }
.perfil-estrelas .ic { color: #F2A900; fill: #F2A900; }
.menu { display: flex; flex-direction: column; }
.menu-item { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 12px 2px; border: none; border-bottom: 1px solid var(--borda); background: none; color: var(--texto); text-decoration: none; text-align: left; width: 100%; cursor: pointer; font: inherit; }
.menu-item > span { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu-item strong { font-weight: 500; font-size: 16px; }
.menu-item small { color: var(--suave); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item .seta { color: #B5B5B5; flex-shrink: 0; }
.menu-item.sair { border-bottom: none; color: var(--vermelho); }
.ic { flex-shrink: 0; }

/* ---------- Busca ---------- */
.morada { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.morada .ic { color: var(--vermelho); }
.busca-falsa, .campo-busca { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 14px; background: #F2F2F2; color: #717171; text-decoration: none; margin-bottom: 16px; font-size: 15px; }
.campo-busca { border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.campo-busca:focus-within { border-color: var(--vermelho); background: #fff; }
.campo-busca input { flex-grow: 1; min-width: 0; border: none; background: none; outline: none; font-size: 16px; height: 100%; color: var(--texto); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: -4px -16px 6px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--borda); background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .12s; }
.chip.ativo { background: var(--vermelho); border-color: var(--vermelho); color: #fff; }
.rest-linha { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-decoration: none; }
.rest-mini { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; }
.pag-txt { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pag-txt small { font-size: 13px; }
.rest-linha .seta { color: #B5B5B5; }
.vazio .ic { color: #C8C8C8; }

/* ---------- Barra do carrinho ---------- */
.espaco-barra { height: 72px; }
.barra-fundo .barra-qtd { position: relative; display: flex; }
.barra-fundo .barra-qtd b { position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #fff; color: var(--vermelho); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.barra-fundo > span:nth-child(2) { flex-grow: 1; margin-left: 14px; }

/* ---------- Pagamentos ---------- */
.opcao.pag { justify-content: flex-start; gap: 14px; min-height: 68px; }
.pag-ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.voltar-linha { display: inline-flex; align-items: center; gap: 4px; color: var(--texto); text-decoration: none; font-weight: 700; margin: 4px 0 4px -4px; }
.nota-seg { flex-direction: row; align-items: flex-start; gap: 10px; background: #F7F7F7; border-color: #F7F7F7; font-size: 14px; margin-top: 18px; }
.nota-seg .ic { color: var(--verde); }
.cartao-pag { display: block; margin: 18px 0 6px; border-radius: 18px; background: #F2F2F2; text-decoration: none; color: var(--texto); overflow: hidden; }
.cartao-pag .marca-pag { display: block; padding: 14px 16px 0; background: #fff; border-radius: 18px 18px 0 0; font-family: "Outfit", sans-serif; font-weight: 800; font-size: 19px; color: var(--vermelho); font-style: italic; letter-spacing: -.5px; }
.cartao-pag .marca-pag b { color: var(--verde); margin-left: 3px; }
.cartao-pag .linha-pag { display: flex; align-items: center; gap: 14px; padding: 14px 16px 18px; background: #fff; border-radius: 0 0 18px 18px; box-shadow: 0 4px 10px rgba(0,0,0,.06); }
.cartao-pag .linha-pag strong { flex-grow: 1; font-weight: 500; font-size: 16px; }
.cartao-pag .seta { color: #B5B5B5; }
.cartao-pag small { display: block; padding: 12px 16px 14px; color: var(--suave); font-size: 13px; }
.radio { transition: border-width .18s ease, border-color .18s ease; }
.opcao { transition: border-color .2s, background .2s, transform .12s; }

/* ---------- Ecrã de abertura ---------- */
#splash { position: fixed; inset: 0; z-index: 100; background: var(--vermelho); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; overflow: hidden;
  clip-path: circle(150% at 50% 50%); transition: clip-path .55s cubic-bezier(.7,0,.3,1), visibility .55s; cursor: pointer; }
#splash.sp-motorista { background: var(--verde); }
#splash.sp-parceiro { background: #1B1410; }
#splash.sai { clip-path: circle(0% at 50% 50%); visibility: hidden; }
#splash .logo { color: #fff; font-size: 56px; opacity: 0; animation: splashEntra .6s .75s cubic-bezier(.2,1.4,.4,1) both; }
#splash .logo span { color: #FFC24B; display: inline-block; animation: pontoSalta .7s 1.15s ease both; }
.sp-lema { color: rgba(255,255,255,.85); margin: 0; font-weight: 700; letter-spacing: .2px; opacity: 0; animation: spSobe .5s 1.1s ease both; }
.sp-cena { position: relative; width: 260px; height: 96px; }
.sp-estrada { position: absolute; left: -40px; right: -40px; bottom: 8px; height: 4px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 18px, transparent 18px 32px); animation: spEstrada .9s linear both; }
.sp-rasto { position: absolute; bottom: 30px; left: 30px; width: 70px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6));
  opacity: 0; animation: spRasto .8s ease both; }
.sp-mota { position: absolute; bottom: 4px; left: 50%; width: 120px; height: 80px; margin-left: -60px; animation: spChega .85s cubic-bezier(.15,.8,.3,1) both, spTreme .25s .85s ease-in-out 2; }
.sp-mota .sp-caixa { fill: #FFC24B; stroke: #fff; stroke-width: 2; transform-origin: 27px 38px; animation: spCaixa .4s .8s cubic-bezier(.2,1.6,.4,1) both; }
#splash.sp-motorista .sp-caixa { fill: var(--vermelho); }
.sp-mota .sp-caixa-b { fill: var(--vermelho); }
#splash.sp-motorista .sp-caixa-b { fill: #fff; }
.sp-mota .sp-quadro, .sp-mota .sp-assento, .sp-mota .sp-guiador { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.sp-mota .sp-farol { fill: #FFF4C2; }
.sp-roda circle { fill: none; stroke: #fff; stroke-width: 5; }
.sp-roda path { stroke: rgba(255,255,255,.7); stroke-width: 2; }
.sp-roda { transform-box: fill-box; transform-origin: center; animation: spRoda .3s linear 3; }
@keyframes splashEntra { from { transform: scale(.6) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spChega { from { transform: translateX(-260px); } to { transform: none; } }
@keyframes spTreme { 50% { transform: translateY(-2px); } }
@keyframes spRoda { to { transform: rotate(360deg); } }
@keyframes spEstrada { from { transform: translateX(60px); } to { transform: none; } }
@keyframes spRasto { 0% { opacity: 0; transform: translateX(-120px); } 60% { opacity: 1; } 100% { opacity: 0; transform: translateX(-20px); } }
@keyframes spCaixa { from { transform: scale(.4); } to { transform: none; } }
@keyframes spSobe { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #splash *, #splash { animation: none !important; transition: none !important; } #splash .logo, .sp-lema { opacity: 1; } }
@keyframes pontoSalta { 0% { transform: translateY(0); } 40% { transform: translateY(-18px); } 70% { transform: translateY(0); } 85% { transform: translateY(-5px); } 100% { transform: none; } }

/* ---------- Animações ---------- */
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes barraSobe { from { transform: translate(-50%, 140%); } to { transform: translate(-50%, 0); } }
@keyframes barraPulo { 0%, 100% { transform: translate(-50%, 0) scale(1); } 40% { transform: translate(-50%, 0) scale(1.04); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes tabPop { 0% { transform: scale(1); } 40% { transform: scale(1.22) translateY(-2px); } 100% { transform: scale(1); } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes balanco { 0%, 100% { margin-top: 0; } 50% { margin-top: -4px; } }
@keyframes brilho { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }

.app.entrar > *:not(.barra-fundo) { animation: subir .42s cubic-bezier(.2,.8,.2,1) both; }
.app.entrar > *:nth-child(2) { animation-delay: .04s; }
.app.entrar > *:nth-child(3) { animation-delay: .08s; }
.app.entrar > *:nth-child(4) { animation-delay: .12s; }
.app.entrar > *:nth-child(5) { animation-delay: .16s; }
.app.entrar > *:nth-child(6) { animation-delay: .2s; }
.app.entrar > *:nth-child(n+7):not(.barra-fundo) { animation-delay: .24s; }
.app.entrar .lista > *, .app.entrar .menu > *, .app.entrar .servico { animation: subir .45s cubic-bezier(.2,.8,.2,1) both; }
.app.entrar .lista > *:nth-child(2), .app.entrar .menu > *:nth-child(2), .app.entrar .servico:nth-child(2) { animation-delay: .1s; }
.app.entrar .lista > *:nth-child(3), .app.entrar .menu > *:nth-child(3), .app.entrar .servico:nth-child(3) { animation-delay: .15s; }
.app.entrar .lista > *:nth-child(4), .app.entrar .menu > *:nth-child(4), .app.entrar .servico:nth-child(4) { animation-delay: .2s; }
.app.entrar .lista > *:nth-child(5), .app.entrar .menu > *:nth-child(5), .app.entrar .servico:nth-child(5) { animation-delay: .25s; }
.app.entrar .lista > *:nth-child(n+6), .app.entrar .menu > *:nth-child(n+6) { animation-delay: .3s; }
.app.entrar > .barra-fundo, .barra-fundo.aparece { animation: barraSobe .45s cubic-bezier(.2,1.2,.4,1) both; }
.barra-fundo.pulo { animation: barraPulo .35s ease; }
.pop { animation: pop .35s ease; }
#resultados.fade { animation: aparecer .25s ease; }
.tabbar a.ativo .ic { animation: tabPop .35s ease; }
.mota { animation: balanco 1.1s ease-in-out infinite; }
.passos .atual .ponto { animation: pulso 1.4s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(217, 30, 38, .45); } 100% { box-shadow: 0 0 0 12px rgba(217, 30, 38, 0); } }
.banner { position: relative; overflow: hidden; }
.banner::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); animation: brilho 3.2s 1s ease-in-out infinite; pointer-events: none; }

/* Toque: os botões "afundam" um pouco, como numa app nativa */
.botao, .redondo, .qtd button, .servico, .cartao.rest, .rest-linha, .menu-item, .opcao, .chip, .cartao-pag, .busca-falsa, .chip-estrelas, .voltar { transition: transform .12s ease, background .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.botao:active, .redondo:active, .servico:active, .cartao.rest:active, .rest-linha:active, .opcao:active, .chip:active, .cartao-pag:active, .busca-falsa:active, .chip-estrelas:active, .voltar:active { transform: scale(.97); }
.menu-item:active { background: #F7F7F7; }
.barra-fundo:active { transform: translateX(-50%) scale(.98); }
.tabbar a { -webkit-tap-highlight-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Restaurante fechado e pagamento ao restaurante */
.rest-foto { position: relative; }
.rest.fechado .rest-foto { filter: grayscale(1); opacity: .6; }
.selo-fechado { position: absolute; top: 10px; left: 10px; background: #1B1410; color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 10px; }
.pagar-agora { border: 2px solid var(--vermelho); margin-bottom: 14px; }
.pagar-agora .valor-pagar { font-family: "Outfit", sans-serif; font-size: 34px; font-weight: 800; color: var(--vermelho); }

.selo-quarta { position: absolute; top: 10px; right: 10px; background: #FFC24B; color: #1B1410; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 10px; }
.banner-regra { display: block; margin-top: 6px; color: rgba(255,255,255,.8) !important; font-weight: 500 !important; letter-spacing: 0 !important; font-size: 12px; }

/* Restaurantes e menus vindos da nuvem */
.servico.ativo .servico-icone { box-shadow: 0 0 0 2px var(--vermelho); }
.botao-limpar { border: none; background: #F2F2F2; border-radius: 14px; padding: 4px 10px; font: inherit; font-size: 13px; font-weight: 700; margin-left: 6px; cursor: pointer; vertical-align: middle; }
.prato-foto { background-size: cover !important; background-position: center !important; }
.prato.esgotado { opacity: .55; }
.etiqueta-esgotado { font-size: 12px; font-weight: 800; color: var(--suave); background: #F2F2F2; border-radius: 10px; padding: 6px 10px; flex-shrink: 0; }
.esqueleto .rest-foto, .esqueleto strong, .esqueleto span { background: linear-gradient(90deg, #F2F2F2 25%, #FAFAFA 50%, #F2F2F2 75%); background-size: 200% 100%; animation: brilhoEsq 1.2s infinite; border-radius: 8px; }
@keyframes brilhoEsq { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.capa { background-size: cover !important; }

/* Faixa "Instalar a app" */
.faixa-instalar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 auto; max-width: 520px; background: #fff; border-bottom: 1px solid var(--borda); animation: subir .4s ease both; }
.faixa-instalar img { border-radius: 10px; flex-shrink: 0; }
.faixa-instalar span { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.faixa-instalar small { color: var(--suave); font-size: 12px; }
.botao-instalar { border: none; background: var(--vermelho); color: #fff; font: inherit; font-weight: 800; font-size: 14px; height: 36px; padding: 0 16px; border-radius: 18px; cursor: pointer; flex-shrink: 0; }
.fechar-instalar { border: none; background: none; font-size: 22px; color: #9A9A9A; cursor: pointer; padding: 0 4px; }
.ajuda-instalar { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; animation: aparecer .2s ease; }
.ajuda-caixa { background: #fff; border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: subir .3s ease; }
.ajuda-caixa img { border-radius: 14px; }
.ajuda-caixa strong { font-size: 18px; }
.ajuda-caixa ol { align-self: stretch; margin: 4px 0 8px; padding-left: 22px; line-height: 1.6; }
.ajuda-caixa .botao { width: 100%; }

/* Escolha da cidade */
.botao-cidade { border: none; background: #FDE8E9; color: var(--vermelho); font: inherit; font-weight: 800; font-size: 14px; border-radius: 14px; padding: 3px 10px; cursor: pointer; }
.janela-cidade { max-height: 80vh; }
.lista-cidades { align-self: stretch; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; max-height: 52vh; margin: 6px 0; }
.lista-cidades button { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--borda); background: #fff; border-radius: 14px; padding: 12px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.lista-cidades button small { color: var(--suave); font-weight: 500; }
.lista-cidades button.ativa { border: 2px solid var(--vermelho); background: #FFF7F7; }

.faixa-app { background: #FFF6E0; border-bottom-color: #F2CF6B; }
.faixa-app .botao-instalar { text-decoration: none; display: inline-flex; align-items: center; }

/* ===================== v1.1 · MAPAS ===================== */
body.sem-scroll { overflow: hidden; }
.pino-wrap { background: none; border: none; }
.pino-mapa { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.pino-mapa.mota { background: var(--vermelho); font-size: 22px; border: 3px solid #fff; }
.pino-mapa.casa { background: #fff; border: 3px solid var(--verde); }
.pino-mapa.eu { background: #1F6FEB; border: 3px solid #fff; }
.mapa-vivo { width: 100%; height: 100%; }
.mapa-real { height: 240px; border-radius: 18px; overflow: hidden; margin-bottom: 12px; background: #E6EFE5; position: relative; z-index: 0; }
.chegada { display: flex; align-items: center; gap: 10px; background: #E7F3EC; color: var(--verde); border-radius: 14px; padding: 10px 14px; margin: -4px 0 12px; font-weight: 700; }
.chegada small { display: block; font-weight: 500; color: var(--suave); }
.folha-mapa, .folha-conversa { position: fixed; inset: 0; z-index: 50; background: #fff; display: flex; flex-direction: column; max-width: 520px; margin: 0 auto; }
.folha-topo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--borda); padding-top: calc(12px + env(safe-area-inset-top)); }
.folha-topo strong { display: block; font-size: 16px; }
.folha-topo small { color: var(--suave); font-size: 13px; }
.folha-x { width: 40px; height: 40px; border-radius: 20px; border: none; background: #F2F2F2; font-size: 18px; cursor: pointer; flex-shrink: 0; }
.folha-mapa-corpo { position: relative; flex: 1; }
.mapa-escolha { position: absolute; inset: 0; z-index: 0; }
.pino-centro { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 40px; z-index: 500; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.botao-gps { position: absolute; left: 12px; bottom: 12px; z-index: 500; height: 42px; padding: 0 14px; border-radius: 21px; border: none; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); font-weight: 800; color: #1F6FEB; cursor: pointer; }
.folha-fundo { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); display: grid; gap: 8px; border-top: 1px solid var(--borda); }
.folha-fundo .botao { width: 100%; }
.casa-marcada { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--verde); background: #F3FAF6; color: var(--verde); font-weight: 700; cursor: pointer; width: 100%; text-align: left; }
.casa-marcada.falta { border-color: var(--vermelho); background: #FFF3F3; color: var(--vermelho); }
.casa-marcada small { display: block; color: var(--suave); font-weight: 500; }

/* ===================== v1.1 · CONVERSA ===================== */
.botao-conversa { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--verde); background: #fff; color: var(--verde); font-weight: 800; cursor: pointer; width: 100%; margin: 0 0 10px; }
.cv-badge { position: absolute; top: -8px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--vermelho); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.cv-contactos { padding: 8px 14px; border-bottom: 1px solid var(--borda); display: grid; gap: 6px; }
.cv-contacto { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cv-contacto span { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-ligar, .cv-whats { height: 34px; padding: 0 12px; border-radius: 17px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 800; font-size: 13px; }
.cv-ligar { background: #E7F3EC; color: var(--verde); }
.cv-whats { background: #25D366; color: #fff; }
.cv-lista { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #FAF7F4; }
.cv-vazio { color: var(--suave); text-align: center; margin: auto 16px; font-size: 14px; }
.cv-msg { max-width: 82%; padding: 8px 12px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.cv-msg p { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.cv-msg.minha { align-self: flex-end; background: #DCF3E5; border-bottom-right-radius: 4px; }
.cv-msg.outra { align-self: flex-start; border-bottom-left-radius: 4px; }
.cv-quem { display: block; font-weight: 800; font-size: 12px; color: var(--vermelho); margin-bottom: 2px; }
.cv-motorista .cv-quem { color: #1F5E8C; }
.cv-cliente .cv-quem { color: var(--verde); }
.cv-hora { display: block; text-align: right; font-size: 11px; color: var(--suave); margin-top: 2px; }
.cv-denunciar { border: none; background: none; color: var(--suave); text-decoration: underline; font-size: 11px; padding: 0; cursor: pointer; }
.cv-rapidas { display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px 0; scrollbar-width: none; }
.cv-rapidas .chip { height: 32px; font-size: 13px; }
.cv-tempo { font-weight: 800; font-variant-numeric: tabular-nums; }
@keyframes cvpisca { 50% { opacity: .2; } }
.cv-fechada { text-align: center; color: var(--suave); padding: 14px; margin: 0; }
.interruptor-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px; border: 1px solid var(--borda); border-radius: 14px; background: #fff; cursor: pointer; text-align: left; }
.interruptor-linha small { display: block; color: var(--suave); }

/* ===================== v1.2 · OPÇÕES, AVALIAÇÕES, FAVORITOS, CONVITES ===================== */
/* Pratos com opções: o "+" mostra quantos já estão no carrinho */
.redondo.com-qtd { position: relative; }
.redondo.com-qtd b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #fff; color: var(--vermelho); border: 2px solid var(--vermelho); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.personalizavel { font-weight: 500; font-size: 12px; }
/* Folha das opções */
.folha-opcoes { align-items: stretch; max-height: 90vh; overflow-y: auto; gap: 12px; }
.folha-foto { height: 140px; border-radius: 16px; flex-shrink: 0; }
.folha-topo { display: flex; flex-direction: column; gap: 2px; }
.folha-topo strong { font-size: 20px; font-family: "Outfit", system-ui, sans-serif; }
.folha-grupos { display: flex; flex-direction: column; gap: 14px; }
.grupo-opcoes { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.grupo-opcoes legend { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 8px 12px; margin-bottom: 4px; background: #F7F7F7; border-radius: 12px; font-weight: 800; }
.grupo-opcoes legend small { font-weight: 500; color: var(--suave); font-size: 12px; }
.grupo-opcoes .obrig { color: var(--vermelho); }
.opcao-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border: 1px solid var(--borda); border-radius: 12px; cursor: pointer; }
.opcao-item span { flex: 1; font-weight: 700; }
.opcao-item small { color: var(--suave); }
.opcao-item input { width: 20px; height: 20px; accent-color: var(--vermelho); margin: 0; }
.opcao-item:has(input:checked) { border: 2px solid var(--vermelho); background: #FFF7F7; }
.folha-fundo-opcoes { display: flex; gap: 10px; align-items: center; position: sticky; bottom: -22px; background: #fff; padding: 8px 0; }
.folha-fundo-opcoes .botao { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.folha-fundo-opcoes .botao.incompleto { opacity: .55; }
.folha-opcoes > .botao.contorno { margin-top: 0; }
/* Carrinho */
.linha-carrinho { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--borda); }
.linha-carrinho:last-of-type { border-bottom: none; }
.lc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lc-txt small { font-size: 13px; }
.qtd.pequena button { width: 34px; height: 36px; font-size: 18px; }
.juntar-mais { font-weight: 700; font-size: 14px; text-decoration: none; }
.campo-obs { width: 100%; border: 1px solid #EBEBEB; border-radius: 12px; padding: 12px; background: #F7F7F7; font-size: 15px; resize: vertical; }
.campo-obs:focus { outline: none; border-color: var(--vermelho); background: #fff; }
.contador-obs { display: block; text-align: right; font-size: 12px; }
.opcoes-item { display: block; color: var(--suave); font-size: 13px; font-weight: 500; }
.obs-pedido { margin: 4px 0; padding: 8px 10px; border-radius: 10px; background: #FFF0C7; color: #6B4A00; font-size: 14px; }
/* Pedidos: pedir de novo */
.pedido-item { gap: 10px; }
.pedido-link { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.resumo-itens { color: var(--texto); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pedir-de-novo-chip { align-self: flex-start; }
.pedir-de-novo { width: 100%; margin: 4px 0 12px; }
/* Avaliações */
.linha-nome { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nota-rest { flex-shrink: 0; font-weight: 800; font-size: 13px; color: var(--texto); white-space: nowrap; }
.nota-rest small { color: var(--suave); font-weight: 500; }
.nota-rest.novo { background: #E7F3EC; color: var(--verde); border-radius: 8px; padding: 2px 8px; font-size: 12px; }
.comentarios { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.comentario { flex: 0 0 78%; scroll-snap-align: start; gap: 4px; }
.comentario p { margin: 0; font-size: 14px; line-height: 1.4; }
.estrelas-txt { color: #F2A900; letter-spacing: 1px; }
.estrelas-txt .apagada { color: #DDD; }
/* Favoritos */
.rest-caixa { position: relative; }
.rest-caixa > .cartao.rest { height: 100%; }
.coracao { position: absolute; top: 74px; right: 10px; width: 40px; height: 40px; border-radius: 20px; border: none; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.15); font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .12s ease; }
.coracao:active { transform: scale(.88); }
.coracao.na-capa { top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 22px; }
.favoritos { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.favorito { flex: 0 0 132px; display: flex; flex-direction: column; gap: 4px; color: var(--texto); text-decoration: none; scroll-snap-align: start; }
.fav-foto { height: 84px; border-radius: 14px; border: 1px solid var(--borda); }
.favorito strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favorito small { font-size: 12px; color: var(--suave); }
.favorito.fechado .fav-foto { filter: grayscale(1); opacity: .6; }
/* Convites */
.codigo-amigo { margin: 0 0 14px; }
.codigo-amigo .linha-form .botao { flex-shrink: 0; }
.convite-cartao { padding: 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: #FFF7F7; border-color: #FADADC; }
.convite-cartao small { color: var(--suave); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: 12px; }
.codigo-grande { font-family: "Outfit", system-ui, sans-serif; font-size: 40px; letter-spacing: 6px; color: var(--vermelho); border: 2px dashed var(--vermelho); border-radius: 16px; padding: 4px 18px; background: #fff; }
.convite-cartao p { margin: 4px 0; line-height: 1.5; }
.convite-cartao .botao { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.convite-cartao .contorno { margin-top: 0; }
.whatsapp-bg { background: #25D366; color: #fff; }
.passos-convite { padding-left: 22px; line-height: 1.6; margin: 0; }
.botao-link { border: none; background: none; padding: 0; color: var(--vermelho); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }

/* ---------- v1.3: gorjeta ao motorista, ajuda com o pedido, pagamento no app ---------- */
.gorjeta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; border: 2px solid var(--verde); }
.gorjeta > strong { font-family: "Outfit", system-ui, sans-serif; font-size: 19px; }
.gorjeta.feita { flex-direction: row; align-items: center; border-width: 1px; background: #E3F0E8; color: #0B4A30; }
.gorjeta.sem-numero { border: 1px solid #F2CF6B; background: #FFF8E1; }
.gorjeta-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.gorjeta-chips .chip { height: 44px; min-width: 72px; }
.gorjeta-chips .chip.ativo { background: var(--verde); border-color: var(--verde); color: var(--branco); }
.gorjeta-outro { font-weight: 700; font-size: 14px; }
.numero-gorjeta { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #F7F7F7; border-radius: 12px; padding: 10px 12px; }
.numero-gorjeta > span { display: flex; flex-direction: column; min-width: 0; }
.numero-gorjeta strong { font-size: 20px; letter-spacing: .5px; overflow-wrap: anywhere; }
.numero-gorjeta .botao.contorno { width: auto; margin: 0; height: 40px; flex-shrink: 0; }
.botao-ajuda { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ajuda-pedido { margin-bottom: 10px; }
.ajuda-pedido p { margin: 6px 0; overflow-wrap: anywhere; }
.ajuda-mini { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; display: block; margin: 4px 0 6px; }
.resposta-bazza { background: #E3F0E8; color: #0B4A30; border-radius: 10px; padding: 10px 12px; }
.estado-ajuda { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 12px; background: #FADADC; color: #8F141B; white-space: nowrap; }
.estado-ajuda.em_analise { background: #FFF0C7; color: #6B4A00; }
.estado-ajuda.resolvido { background: #E3F0E8; color: var(--verde); }
.folha-ajuda { align-items: stretch; max-height: 92vh; overflow-y: auto; margin: 0; gap: 10px; }
.folha-ajuda > strong, .folha-ajuda > small { text-align: center; }
.folha-ajuda .contorno { margin-top: 0; }
.tipos-ajuda { display: flex; flex-wrap: wrap; gap: 8px; }
.form .tipo-ajuda { position: relative; flex-direction: row; gap: 0; }
.tipo-ajuda input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tipo-ajuda span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--borda); border-radius: 20px; font-weight: 700; font-size: 14px; cursor: pointer; background: var(--branco); }
.tipo-ajuda input:checked + span { background: var(--vermelho); border-color: var(--vermelho); color: var(--branco); }
.tipo-ajuda input:focus-visible + span { outline: 2px solid var(--texto); outline-offset: 2px; }
.folha-ajuda textarea { resize: vertical; }
.ajuda-foto-prev { display: flex; align-items: center; gap: 12px; }
.ajuda-foto-prev:empty { display: none; }
.ajuda-foto-prev img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.botao-whatsapp { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.pagar-app { margin-top: 8px; }

/* ---------- v1.4: secções do início, agendar pedido e horário ---------- */
.fila-rest { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.fila-rest::-webkit-scrollbar { display: none; }
.fila-item { flex: 0 0 140px; display: flex; flex-direction: column; gap: 4px; color: var(--texto); text-decoration: none; scroll-snap-align: start; min-width: 0; }
.fila-item strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-item small { font-size: 12px; color: var(--suave); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fila-item.fechado .fav-foto { filter: grayscale(1); opacity: .6; }
.oferta-txt { color: var(--vermelho); font-weight: 700; }
.ofertas .fav-foto { box-shadow: inset 0 -4px 0 var(--vermelho); }
.selo-fechado { max-width: calc(100% - 20px); }
.horario-rest { margin: -4px 0 8px; }
.quando { display: flex; flex-direction: column; }
.opcao[disabled] { opacity: .55; cursor: not-allowed; }
.dias-agenda { margin-top: 2px; }
.hora-agenda { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; margin: 6px 0 4px; }
.hora-agenda select { border: 1px solid var(--borda); border-radius: 12px; padding: 12px; background: #F7F7F7; font-size: 16px; font-weight: 700; }
.nota-agenda { margin: 4px 0 0; }
.agendado-cartao { border: 2px solid var(--vermelho); }
.agendado-quando { font-family: "Outfit", system-ui, sans-serif; font-size: 26px; color: var(--vermelho); }
.cancelar-agendado { margin-top: 12px; }
.etiqueta-agendado { display: inline-block; margin: -4px 0 10px; background: #FDE7E7; color: var(--vermelho); font-weight: 700; font-size: 14px; border-radius: 10px; padding: 6px 10px; }
.estado-agendado { color: var(--vermelho); font-weight: 700; }

/* ---------- Conversa: escrever, gravar voz (carrega e mantém) e ouvir ---------- */
.cv-escrever { display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); }
.cv-campo { flex: 1; min-width: 0; position: relative; }
.cv-campo textarea { width: 100%; display: block; resize: none; min-height: 48px; max-height: 120px; border: 1px solid var(--borda); border-radius: 24px; padding: 12px 16px; font: inherit; font-size: 16px; background: #fff; }
.cv-gravando { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 24px; background: #FFF1F1; overflow: hidden; }
.cv-gravando[hidden], .cv-escrever [hidden] { display: none; }
.cv-ponto { width: 12px; height: 12px; border-radius: 6px; background: var(--vermelho); animation: cvpisca 1s infinite; flex-shrink: 0; }
.cv-tempo { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 38px; }
.cv-deslizar { flex: 1; color: var(--suave); font-size: 14px; white-space: nowrap; text-align: right; transition: opacity .1s; }
.cv-deslizar span { font-weight: 800; }
.cv-lixo { margin-left: auto; width: 40px; height: 40px; border: none; border-radius: 20px; background: transparent; color: var(--vermelho); display: grid; place-items: center; cursor: pointer; }
.cv-acao-caixa { position: relative; flex-shrink: 0; }
.cv-acao { width: 48px; height: 48px; border-radius: 24px; border: none; background: var(--vermelho); color: #fff; display: grid; place-items: center; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .12s ease, box-shadow .12s ease; }
.cv-acao:focus-visible { outline: 3px solid var(--amarelo, #FFC24B); outline-offset: 2px; }
.cv-acao .ic { pointer-events: none; }
.a-gravar:not(.trancado) .cv-acao { transform: scale(1.35); box-shadow: 0 0 0 8px rgba(217,30,38,.15); }
.cv-cadeado { position: absolute; left: 50%; bottom: 68px; transform: translateX(-50%); width: 40px; padding: 8px 0 6px; border-radius: 20px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); color: var(--suave); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; line-height: 1; animation: cvsobe 1.2s ease-in-out infinite; }
@keyframes cvsobe { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }
.cv-voz { display: flex; align-items: center; gap: 10px; min-width: 210px; max-width: 100%; }
.cv-play { width: 40px; height: 40px; border-radius: 20px; border: none; background: var(--vermelho); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.cv-msg.minha .cv-play { background: var(--verde); }
.cv-onda { flex: 1; height: 28px; display: flex; align-items: center; gap: 2px; min-width: 0; }
.cv-onda i { flex: 1; min-width: 2px; border-radius: 2px; background: rgba(0,0,0,.2); }
.cv-onda i.on { background: var(--vermelho); }
.cv-msg.minha .cv-onda i.on { background: var(--verde); }
.cv-seg { font-size: 12px; color: var(--suave); font-variant-numeric: tabular-nums; min-width: 30px; text-align: right; }
@media (prefers-reduced-motion: reduce) { .cv-cadeado, .cv-ponto { animation: none; } .cv-acao { transition: none; } }


/* ---------- v1.5: endereço de entrega no topo e os meus endereços ---------- */
.endereco-topo { display: flex; align-items: center; gap: 8px; width: 100%; margin: 4px 0 14px; padding: 10px 12px; border: 1px solid var(--borda); border-radius: 14px; background: #fff; color: var(--texto); font: inherit; text-align: left; cursor: pointer; }
.endereco-topo > .ic:first-child { color: var(--vermelho); flex-shrink: 0; }
.endereco-topo .end-txt { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.endereco-topo strong { font-weight: 800; font-size: 15px; white-space: nowrap; }
.endereco-topo small { color: var(--suave); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.endereco-topo .end-seta { color: var(--vermelho); flex-shrink: 0; }
.endereco-topo:active { background: #FFF6F6; }
.folha-fundo-escuro { position: fixed; inset: 0; z-index: 40; background: rgba(27,20,16,.45); display: flex; align-items: flex-end; justify-content: center; }
.folha-end { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); animation: endSobe .22s ease-out; }
@keyframes endSobe { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.end-cabeca { display: flex; align-items: center; gap: 10px; padding: 8px 0 10px; position: sticky; top: 0; background: #fff; z-index: 1; }
.end-cabeca strong { flex: 1; font-size: 19px; font-weight: 800; }
.end-cabeca .folha-x { flex-shrink: 0; }
.end-linha { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 4px; border: none; background: none; font: inherit; color: var(--texto); text-align: left; cursor: pointer; }
.end-linha > .ic { color: var(--suave); flex-shrink: 0; }
.end-linha > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.end-linha strong { font-weight: 700; font-size: 16px; }
.end-linha small { color: var(--suave); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.end-linha em { font-style: normal; font-size: 12px; font-weight: 600; }
.end-linha em.no-mapa { color: var(--verde); }
.end-linha em.sem-mapa { color: #B5651D; }
.end-gps > .ic, .end-novo > .ic { color: var(--vermelho); }
.end-gps strong, .end-novo strong { color: var(--vermelho); }
.end-lista { border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); }
.end-item { display: flex; align-items: center; border-bottom: 1px solid var(--borda); }
.end-item:last-child { border-bottom: none; }
.end-item.ativo .end-linha > .ic, .end-item.ativo strong { color: var(--vermelho); }
.end-certo { color: var(--vermelho); font-size: 18px; flex-shrink: 0; }
.end-editar { flex-shrink: 0; width: 44px; height: 44px; border: none; border-radius: 22px; background: none; color: var(--suave); display: grid; place-items: center; cursor: pointer; }
.end-editar:active, .end-linha:active { background: #F7F7F7; }
.end-form { margin-top: 4px; }
.end-tipos { border: none; padding: 0; margin: 0 0 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.end-tipos legend { font-size: 14px; color: var(--suave); margin-bottom: 6px; padding: 0; }
.end-tipo { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--borda); border-radius: 20px; font-weight: 700; font-size: 14px; cursor: pointer; }
.end-tipo input { position: absolute; opacity: 0; pointer-events: none; }
.end-tipo:has(input:checked) { border-color: var(--vermelho); background: #FDE8E9; color: var(--vermelho); }
.end-tipo:has(input:focus-visible) { outline: 3px solid #FFC24B; outline-offset: 2px; }
.end-outro[hidden] { display: none; }
.end-apagar { color: var(--vermelho); }
.entregar-em { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin-bottom: 12px; font: inherit; text-align: left; cursor: pointer; }
.entregar-em > .ic { color: var(--vermelho); flex-shrink: 0; }
.entregar-em > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.entregar-em > span > small:last-child { color: var(--suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entregar-em b { color: var(--vermelho); font-size: 14px; flex-shrink: 0; }
.end-form .end-tipo { flex-direction: row; display: inline-flex; margin: 0; }
.end-form select { width: 100%; border: 1px solid #EBEBEB; border-radius: 12px; padding: 12px; background: #F7F7F7; font-size: 15px; color: var(--texto); }
button.entregar-em.cartao { display: flex; flex-direction: row; align-items: center; text-align: left; color: var(--texto); }

/* Clube do restaurante: cartão de selos */
.clube { border: 1.5px dashed #F2C200; background: #FFFBEA; }
.clube .linha { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.etiqueta-clube { background: var(--vermelho); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.selos { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.selo { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed #D9C27A; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: #fff; font-weight: 800; }
.selo.cheio { background: var(--vermelho); border: 2px solid var(--vermelho); }

.clube-link { display: block; text-decoration: none; margin: 14px 0 4px; }
.clube-link + .clube { margin-top: 0; }

/* ---------- v1.5: partilhar a localização ao vivo ---------- */
.partilha-vivo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 10px 0; border: 1px solid var(--borda); border-radius: 16px; background: #fff; }
.partilha-vivo.on { border-color: #1F6FEB; background: #EEF4FF; }
.pv-ponto { width: 14px; height: 14px; border-radius: 50%; background: #9BB8E8; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(31,111,235,.12); }
.partilha-vivo.on .pv-ponto, .ao-vivo .pv-ponto { background: #1F6FEB; animation: pvPulso 1.6s ease-out infinite; }
@keyframes pvPulso { 0% { box-shadow: 0 0 0 0 rgba(31,111,235,.45); } 100% { box-shadow: 0 0 0 12px rgba(31,111,235,0); } }
.pv-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pv-txt strong { font-size: 15px; }
.pv-txt small { color: var(--suave); font-size: 13px; line-height: 1.35; }
.pv-botao { width: auto; margin: 0; padding: 0 16px; height: 40px; flex-shrink: 0; }
.ao-vivo { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 12px; background: #EEF4FF; color: #1A4FA8; font-weight: 700; font-size: 14px; }
.ao-vivo[hidden] { display: none; }
.pino-mapa.eu { animation: pvPulso 1.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .partilha-vivo.on .pv-ponto, .ao-vivo .pv-ponto, .pino-mapa.eu { animation: none; } }
.passo-sub { display: block; font-size: 13px; font-weight: 400; color: var(--suave); }

/* ---------- v1.6: ajuda com a conta ---------- */
.link-conta { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin: 8px 0 0; padding: 12px; border: none; background: none; color: var(--suave); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.link-conta .ic { color: var(--verde); }
.vermelho-bg { background: var(--vermelho); color: #fff; }
.dicas-seguranca, .passos-perdi { margin: 4px 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.dicas-seguranca li, .passos-perdi li { padding-left: 4px; }
.dicas-seguranca strong, .passos-perdi strong { display: block; font-size: 16px; }
.dicas-seguranca span, .passos-perdi span { color: var(--suave); font-size: 14px; line-height: 1.45; }
.ajuda-conta-form textarea { resize: vertical; }
.ajuda-conta-ok { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 10px 6px 4px; }
.ajuda-conta-ok > .ic { color: var(--verde); }
.ajuda-conta-ok strong { font-size: 19px; }
.ajuda-conta-ok p { margin: 0; max-width: 40ch; }
.ajuda-conta-ok .botao { width: 100%; }
a.end-linha { text-decoration: none; }
.ajuda-conta-form select { width: 100%; border: 1px solid #EBEBEB; border-radius: 12px; padding: 12px; background: #F7F7F7; font-size: 15px; color: var(--texto); }

/* ---------- v1.6: ecrã de entrada (inspirado no iFood) ---------- */
.entrar-ecra { margin: -16px -16px 0; display: flex; flex-direction: column; min-height: calc(100vh - 90px); }
.ev-heroi { position: relative; min-height: 300px; flex: 1 0 300px; background: radial-gradient(120% 90% at 30% 20%, #F0343C 0%, #D91E26 45%, #A8121A 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; overflow: hidden; color: #FFF8F2; padding: 24px 16px 48px; }
.ev-heroi::before, .ev-heroi::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); }
.ev-heroi::before { width: 340px; height: 340px; right: -120px; top: -110px; }
.ev-heroi::after { width: 220px; height: 220px; left: -90px; bottom: -60px; }
.ev-b { width: 150px; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 10px 22px rgba(0,0,0,.18)); animation: evEntra .6s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes evEntra { from { transform: translateX(-40px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.ev-frase { position: relative; z-index: 1; font-family: "Outfit", sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -.5px; }
.ev-frase span { color: #FFC24B; }
.ev-ajuda { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 20px; border: 2px solid rgba(255,255,255,.7); background: rgba(255,255,255,.12); color: #fff; font: 800 18px "Outfit", sans-serif; cursor: pointer; }
.ev-folha { position: relative; margin-top: -28px; background: var(--branco, #fff); border-radius: 26px 26px 0 0; padding: 26px 18px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 -8px 24px rgba(27,20,16,.08); }
.ev-titulo { font-family: "Outfit", sans-serif; font-size: 26px; font-weight: 800; margin: 0; }
.ev-sub { margin: 0 0 6px; }
.ev-folha .form { margin: 10px 0 0; }
.ev-ou { display: flex; align-items: center; gap: 10px; color: var(--suave); font-size: 14px; margin: 14px 0 6px; }
.ev-ou::before, .ev-ou::after { content: ""; flex: 1; border-top: 1px solid var(--borda); }
.ev-redes { display: flex; justify-content: center; gap: 18px; }
.ev-rede { width: 56px; height: 56px; border-radius: 28px; border: 1px solid var(--borda); background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.ev-rede:active { transform: scale(.96); }
.ev-priv { text-align: center; margin: 14px 0 0; }
.ev-folha .link-conta { margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .ev-b { animation: none; } }
/* parceiro e motorista: a página não tem margens próprias */
.app-painel .entrar-ecra, #app.largo .entrar-ecra { margin: 0; }

/* ---------- v1.6: folha de ajuda como no iFood (AJUDA · Fechar) ---------- */
.ajuda-topo { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; padding: 6px 0 10px; }
.ajuda-topo .ajuda-voltar { width: 40px; height: 40px; border: none; background: none; color: var(--vermelho); cursor: pointer; display: grid; place-items: center; }
.ajuda-topo strong { text-align: center; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.ajuda-topo .ajuda-fechar { border: none; background: none; color: var(--vermelho); font: inherit; font-weight: 700; cursor: pointer; padding: 8px 4px; }
.ajuda-secao { font-family: "Outfit", sans-serif; font-size: 22px; font-weight: 800; margin: 6px 0 4px; }

.ev-heroi.tema-parceiro { background: radial-gradient(120% 90% at 30% 20%, #3A2E27 0%, #1B1410 70%); }
.ev-heroi.tema-motorista { background: radial-gradient(120% 90% at 30% 20%, #17865A 0%, #0E5A3A 55%, #0A4029 100%); }

/* ===== v1.6 · Início como no iFood: categorias, carrossel, últimas lojas ===== */
.categorias { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 16px 0 4px; }
.categoria { border: none; background: none; padding: 0; font: inherit; color: var(--texto); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.cat-img { position: relative; width: 100%; max-width: 66px; aspect-ratio: 1; border-radius: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--cat) 18%, #fff) 0 35%, transparent 36%), color-mix(in srgb, var(--cat) 30%, #fff);
  transition: transform .15s; }
.categoria:active .cat-img { transform: scale(.94); }
.cat-img svg { width: 112%; height: auto; margin-bottom: -10%; display: block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.12)); }
.cat-img em { position: absolute; top: 4px; right: 4px; font-style: normal; font-size: 8px; font-weight: 800; letter-spacing: .2px; text-transform: uppercase; background: #fff; color: var(--cat); border-radius: 6px; padding: 1px 4px; }
.cat-nome { font-size: 11.5px; font-weight: 700; line-height: 1.1; text-align: center; white-space: nowrap; letter-spacing: -.2px; }
.categoria.breve .cat-nome { color: var(--suave); font-weight: 600; }
.categoria.ativo .cat-img { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cat); }
.categoria.ativo .cat-nome { color: var(--cat); }

.carrossel { margin: 16px -16px 0; }
.slides { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px; scrollbar-width: none; scroll-padding: 0 16px; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 88%; min-height: 136px; scroll-snap-align: start; border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: #fff; overflow: hidden; background-size: cover; background-position: center; }
.slide > * { position: relative; }
.slide small { font-size: 11px; font-weight: 800; letter-spacing: .6px; opacity: .9; }
.slide strong { font-size: 22px; font-weight: 800; line-height: 1.1; }
.slide span { font-size: 14px; }
.slide em { font-style: normal; font-size: 12px; opacity: .85; margin-top: auto; }
.slide-quarta { background: var(--vermelho); }
.slide-quarta b { color: #FFC24B; }
.slide-convite { background: var(--verde); }
.slide-parceiro { background: #1B1410; }
.slide-parceiro em { color: #FFC24B; opacity: 1; font-weight: 700; }
.slide-oferta { justify-content: flex-end; }
.slide-oferta .slide-veu { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.72)); }
.pontos { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.pontos i { width: 6px; height: 6px; border-radius: 3px; background: var(--borda); transition: width .25s, background .25s; }
.pontos i.on { width: 18px; background: var(--vermelho); }

.ultimas { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.ultimas::-webkit-scrollbar { display: none; }
.ultima { flex: 0 0 68px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--texto); }
.ultima-foto { width: 64px; height: 64px; border-radius: 32px; border: 1px solid var(--borda); background-size: cover; background-position: center; }
.ultima small { font-size: 12px; text-align: center; line-height: 1.2; max-width: 68px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ultima.fechado .ultima-foto { filter: grayscale(1); opacity: .6; }

.convite-entrar { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 8px; padding: 18px; border-radius: 18px; background: #FFF1EE; color: var(--texto); text-decoration: none; }
.convite-entrar strong { display: block; font-size: 17px; }
.convite-entrar small { display: block; color: var(--suave); margin-top: 3px; font-size: 13px; }
.convite-entrar b { align-self: stretch; text-align: center; padding: 13px; border-radius: 12px; background: var(--vermelho); color: #fff; }

@media (min-width: 560px) { .slide { flex-basis: 70%; } }

.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* v1.6: mudar a foto de perfil */
.avatar-mudar { border: none; padding: 0; cursor: pointer; overflow: visible; }
.avatar-mudar img { border-radius: 32px; }
.avatar-camara { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 13px; background: var(--vermelho); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #fff; font-style: normal; z-index: 1; }
.foto-grande { display: flex; justify-content: center; margin: 4px 0 14px; }
.foto-grande img { width: 160px; height: 160px; border-radius: 80px; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--borda); }
.end-remover, .end-remover strong { color: #B0141E; }
label.end-linha { cursor: pointer; }

/* v1.6: especialidades (atalhos redondos, como no iFood) */
.especialidades { display: flex; gap: 12px; overflow-x: auto; margin: 14px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.especialidades::-webkit-scrollbar { display: none; }
.esp { flex: 0 0 auto; width: 64px; border: none; background: none; padding: 0; font: inherit; color: var(--texto); display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; scroll-snap-align: start; }
.esp-img { width: 56px; height: 56px; border-radius: 28px; background: var(--esp, #F4F0EC); display: flex; align-items: center; justify-content: center; font-size: 28px; line-height: 1; transition: transform .15s; }
.esp:active .esp-img { transform: scale(.92); }
.esp-nome { font-size: 11.5px; font-weight: 600; white-space: nowrap; letter-spacing: -.2px; }
.esp.ativo .esp-img { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--vermelho); }
.esp.ativo .esp-nome { color: var(--vermelho); font-weight: 800; }

/* v1.6: página do restaurante ao estilo iFood */
.rest-topo { margin: -16px -16px 0; }
.capa-rest { height: 190px; border-radius: 0 0 22px 22px; overflow: hidden; }
.capa-veu { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,0) 45%); pointer-events: none; }
.rest-cabeca { position: relative; padding: 0 16px; margin-top: -34px; }
.rest-logo { width: 68px; height: 68px; border-radius: 34px; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 28px; color: #fff; background-size: cover; background-position: center; }
.rest-cabeca .nome-rest { margin: 10px 0 2px; font-size: 24px; line-height: 1.15; }
.rest-tipo { margin: 0 0 10px; font-size: 14px; }
.rest-pilulas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.rest-pilulas .nota-rest, .pilula { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 20px; background: #F6F2EE; color: var(--texto); }
.rest-pilulas .nota-rest.novo { background: #E7F3EC; color: var(--verde); }
.pilula .ic { color: var(--suave); }
.pilula.aberto { background: #E7F3EC; color: var(--verde); }
.pilula.fechado, .pilula.fora { background: #FDE8E9; color: #B0141E; }
.menu-abas { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 6px; margin: 18px -16px 0; padding: 10px 16px; background: var(--fundo); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.menu-abas.colado { border-bottom-color: var(--borda); box-shadow: 0 4px 10px rgba(0,0,0,.05); }
.menu-lupa { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 19px; border: 1px solid var(--borda); background: #fff; color: var(--texto); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.menu-abas-fila { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.menu-abas-fila::-webkit-scrollbar { display: none; }
.menu-aba { flex: 0 0 auto; border: none; background: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--suave); padding: 9px 12px; border-radius: 20px; cursor: pointer; white-space: nowrap; }
.menu-aba.on { background: var(--texto); color: #fff; }
.menu-busca { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 10px 14px; border-radius: 12px; background: #F4F4F4; color: var(--suave); }
.menu-busca[hidden] { display: none; }
.menu-busca input { flex: 1; border: none; background: transparent; font: inherit; font-size: 15px; outline: none; color: var(--texto); }
.menu-secao { scroll-margin-top: 70px; }
.menu-secao .titulo small { font-weight: 500; font-size: 14px; }
.cartao.prato { align-items: stretch; }
.prato-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prato-lado { position: relative; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; flex-shrink: 0; }
.prato-lado .prato-foto { width: 92px; height: 92px; border-radius: 14px; }
.prato-lado .prato-foto + .redondo, .prato-lado .prato-foto + .qtd, .prato-lado .prato-foto + .etiqueta-esgotado { position: absolute; right: -6px; bottom: -6px; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.destaques-fila { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.destaques-fila::-webkit-scrollbar { display: none; }
.destaque { flex: 0 0 148px; display: flex; flex-direction: column; gap: 3px; }
.destaque-foto { position: relative; width: 148px; height: 128px; border-radius: 16px; }
.destaque-foto .redondo, .destaque-foto .qtd { position: absolute; right: 8px; bottom: 8px; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.destaque strong { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.destaque .preco { margin-top: 4px; }

/* v1.7: o motorista chegou -> 10 minutos de espera (cliente e motorista) */
.espera-cliente, .espera-motorista { display: grid; gap: 8px; border: 2px solid var(--verde); }
.espera-motorista { padding: 12px; border-radius: 14px; background: var(--branco); margin: 4px 0 10px; }
.espera-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; }
.espera-relogio { font-variant-numeric: tabular-nums; font-size: 1.5rem; color: var(--verde); }
.espera-relogio.acabou { color: var(--vermelho); }
.espera-botoes { display: grid; gap: 8px; }
.espera-ok, .espera-resp { margin: 0; font-weight: 600; color: var(--verde); }
.botao-nao-apareceu { border-color: var(--vermelho); color: var(--vermelho); width: 100%; }
.nao-apareceu { border-left: 4px solid var(--ambar); }

/* v1.7: aparelhos ligados e segurança */
.lista-aparelhos { display: grid; gap: 8px; margin: 10px 0; }
.aparelho { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--borda); border-radius: 14px; background: var(--branco); }
.aparelho > .ic { color: var(--verde); flex-shrink: 0; }
.aparelho > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.aparelho small { color: var(--suave); }
.aparelho.desligado { opacity: .55; }
.aparelho .este { font-style: normal; font-size: 12px; font-weight: 700; color: var(--verde); background: #E3F1EA; border-radius: 99px; padding: 2px 8px; margin-left: 4px; white-space: nowrap; }
.botao-desligar { border: 1.5px solid var(--vermelho); color: var(--vermelho); background: none; border-radius: 99px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.ajuda-tranquilo { background: #E3F1EA; color: var(--verde); border-radius: 12px; padding: 12px; margin: 12px 0; }
.ajuda-sub { font-size: 17px; margin: 18px 0 4px; }

/* v1.7: Combinados do Bazza e devoluções */
.combinado { margin: 16px 0; }
.combinado h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 0 0 8px; }
.combinado h2 span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--vermelho); color: #fff; font-size: 15px; flex-shrink: 0; }
.combinado ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.45; }
.combinado-aviso { border-left: 4px solid var(--ambar); }
.combinado-aviso p { margin: 6px 0 0; }
.aceita-combinados { font-size: 13px; color: var(--suave); margin: 8px 2px 0; }
.aceita-combinados a { color: var(--vermelho); font-weight: 600; }
.prazo-ajuda { display: block; margin-top: 6px; }
.devolucao { margin: 8px 0 0; font-weight: 600; color: var(--ambar); }
.devolucao.ok { color: var(--verde); }
.devolucoes { display: grid; gap: 8px; margin-bottom: 12px; }
.devolucao-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #FFF3DC; border: 1px solid #F1D49A; }
.devolucao-card > span { display: grid; gap: 3px; min-width: 0; }
.devolucao-form, .devolucao-ajuda { margin-top: 8px; }

/* v1.7: pedir para cancelar */
.cancel-info { display: grid; gap: 4px; border-left: 4px solid var(--ambar); }
.cancel-info small { color: var(--suave); }
.cancel-info.atraso { border-left-color: var(--vermelho); }
.cancel-info.espera { border: 2px solid var(--ambar); }
.botao-cancelar-pedido { border-color: var(--vermelho); color: var(--vermelho); }
.pedido-cancelar { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: #FDE7E7; border: 1.5px solid var(--vermelho); margin: 6px 0; }
.pedido-cancelar .espera-relogio { color: var(--vermelho); font-size: 1.2rem; }
.pedido-cancelar .acoes-linha { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.ajuda-qualidade { background: #FFF3DC; border-radius: 12px; padding: 10px 12px; margin: 0; font-size: 14px; line-height: 1.45; }
.ajuda-qualidade a { color: var(--vermelho); font-weight: 700; }

/* v1.7: avaliação como no iFood (o que gostou / o que pode melhorar) e NPS */
.tags-av { border: none; padding: 0; margin: 0; }
.tags-av legend { font-weight: 700; margin-bottom: 8px; }
.chips-av { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.chip-av input { position: absolute; opacity: 0; pointer-events: none; }
.chip-av span { display: inline-block; padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--borda); background: #fff; cursor: pointer; font-size: 14px; }
.chip-av input:checked + span { border-color: var(--vermelho); background: #FDE7E7; color: var(--vermelho); font-weight: 700; }
.chip-av input:focus-visible + span { outline: 2px solid var(--vermelho); outline-offset: 2px; }
.nps { display: grid; gap: 12px; }
.nps-notas { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.nps-n { aspect-ratio: 1; border-radius: 8px; border: 1.5px solid var(--borda); background: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; padding: 0; }
.nps-n:hover, .nps-n:focus-visible { border-color: var(--vermelho); color: var(--vermelho); }
.nps-legenda { display: flex; justify-content: space-between; color: var(--suave); }
.chips-pedido { display: flex; gap: 8px; flex-wrap: wrap; }
.avaliar-chip { text-decoration: none; color: var(--ambar); border-color: var(--ambar); font-weight: 700; }
.voz-clientes { display: grid; gap: 10px; margin: 8px 0 16px; }
.chips-voz { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip-voz { padding: 6px 12px; border-radius: 99px; background: #E3F1EA; color: var(--verde); font-size: 14px; }
.melhorar .chip-voz { background: #FFF3DC; color: var(--ambar); }
.comentarios-voz { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* v1.7: Selo Bazza Top */
.selo-top { display: inline-flex; vertical-align: -3px; margin-left: 5px; }
.selo-top svg { width: 17px; height: 17px; }
.selo-top.grande { align-items: center; gap: 6px; border: none; background: #FDE7E7; color: var(--vermelho); font: inherit; font-weight: 800; font-size: 13px; border-radius: 99px; padding: 4px 10px 4px 5px; margin: 0; cursor: pointer; position: relative; overflow: hidden; }
.selo-top.grande svg { width: 20px; height: 20px; }
.selo-top.grande::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%); transform: translateX(-120%); animation: brilho-selo 3.2s ease-in-out 1s infinite; }
@keyframes brilho-selo { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.esp-top .esp-img svg { width: 34px; height: 34px; }
.selo-folha { text-align: center; display: grid; gap: 10px; }
.selo-grande svg { width: 72px; height: 72px; animation: pulo-selo .6s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes pulo-selo { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.selo-folha strong { font-size: 22px; font-family: "Outfit", sans-serif; }
.selo-folha p { margin: 0; }
.selo-criterios { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 6px; text-align: left; }
.selo-painel { border: 1px solid var(--borda); border-radius: 16px; padding: 4px 14px 12px; margin: 12px 0; background: #fff; }
.selo-painel.tem { border-color: var(--vermelho); background: #FFF6F6; }
.selo-lista { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.selo-lista li { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; }
.selo-lista li b { color: var(--suave); }
.selo-lista li.ok b { color: var(--verde); }
@media (prefers-reduced-motion: reduce) { .selo-top.grande::after, .selo-grande svg { animation: none; } }

/* v1.7: testar notificação / avisos desligados */
.cartao-avisos { display: grid; gap: 6px; margin: 10px 0; }
.cartao-avisos .botao { margin: 0; }
.cartao-avisos.desligados { background: #FFF3DC; border: 1.5px solid #F1D49A; border-radius: 14px; padding: 12px; }
.cartao-avisos.desligados p { margin: 0 0 4px; line-height: 1.45; }

/* v1.7: descrição longa do prato */
#pratoDesc { resize: vertical; min-height: 92px; line-height: 1.4; }
.desc-completa { white-space: pre-line; display: block; }
.prato-desc { cursor: pointer; }
.prato-desc.aberta { -webkit-line-clamp: unset; display: block; white-space: pre-line; }
