/* =====================================================================
   Site público — folha única derivada de docs/design/milorde-overrides.md
   (ShopVibe: docs/design/shopvibe-DESIGN.md; Primary trocada por #7C3AED)
   ===================================================================== */
@import url("fonts/fonts.css");

:root {
  --primary: #7C3AED; --primary-hover: #6D28D9; --primary-active: #5B21B6; --primary-tint: #F5F3FF;
  --secondary: #22D3EE; --secondary-tint: #ECFEFF; --tertiary: #FACC15; --tertiary-tint: #FEF9C3;
  --bg: #FAFAFA; --surface: #FFFFFF; --text: #171717; --text-2: #525252; --text-3: #A3A3A3;
  --border: #E5E5E5; --border-2: #D4D4D4; --hover: #F5F5F5;
  --success: #22C55E; --success-bg: #DCFCE7; --success-text: #166534;
  --warning: #F59E0B; --warning-bg: #FEF9C3; --warning-text: #854D0E;
  --error: #EF4444; --error-hover: #DC2626; --error-bg: #FEE2E2; --error-text: #991B1B;
  --info: #3B82F6;
  --r-s: 4px; --r-m: 12px; --r-l: 16px; --r-xl: 24px; --r-pill: 9999px;
  --sh-subtle: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh-medium: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
  --sh-large: 0 10px 25px rgba(0,0,0,.10), 0 6px 10px rgba(0,0,0,.06);
  --sh-hover: 0 14px 32px rgba(124,58,237,.12), 0 6px 12px rgba(0,0,0,.06);
  --headline: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  --body: "Nunito", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Space Mono", Consolas, monospace;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); min-height: 100dvh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: var(--headline); margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 10px; }
a { color: var(--primary); font-weight: 700; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(124,58,237,.45); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- casca (base.html) ---------- */
.app-topo { background: var(--surface); box-shadow: var(--sh-medium); position: sticky; top: 0; z-index: 10; }
/* RF-293: uma linha (≥ 56 px só se o título tiver duas linhas, como no painel) + filete de progresso */
.app-topo__miolo { max-width: 560px; margin: 0 auto; min-height: 53px; padding: 8px 12px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.app-topo__marca { grid-column: 2; text-align: center; font-family: var(--headline); font-weight: 800; font-size: 15px; color: var(--text); text-decoration: none; line-height: 1.1; white-space: nowrap; }
.app-topo__marca span { color: var(--primary); }
.bt-voltar { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border: 1.5px solid var(--border-2); border-radius: var(--r-pill); background: transparent; color: var(--text-2); font: 700 12px var(--body); text-decoration: none; white-space: nowrap; cursor: pointer; }
.bt-voltar:hover { background: var(--hover); }
.app-topo__acao { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; }
.etapa-chip { font: 700 12px var(--mono); color: var(--primary); background: var(--primary-tint); border-radius: var(--r-pill); padding: 4px 10px; letter-spacing: .02em; white-space: nowrap; }
.app-topo__filete { height: 3px; background: var(--border); max-width: 560px; margin: 0 auto; }
.app-topo__filete i { display: block; height: 100%; width: var(--feito, 25%); background: var(--primary); transition: width .3s; }
.app-miolo { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 14px 16px 32px; }
.app-rodape { background: var(--surface); border-top: 1px solid var(--border); color: var(--text-2); font-size: 13px; }
.app-rodape__miolo { max-width: 560px; margin: 0 auto; padding: 14px 16px 20px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.app-rodape a { font-weight: 700; }

/* ---------- tipografia utilitária ---------- */
.quando { color: var(--text-2); font-size: 14px; margin: 4px 0 16px; }
.subtitulo, .mudo { color: var(--text-2); font-size: 14px; }
.mudo { margin-top: 8px; }
.opcional { font-size: 12.5px; color: var(--text-2); font-weight: 400; }
.valor { font-weight: 800; white-space: nowrap; font-family: var(--headline); color: var(--primary); }
.codigo { font-family: var(--mono); font-weight: 700; font-size: 24px; letter-spacing: .04em; color: var(--text); margin: 4px 0; }

/* ---------- blocos e cartões ---------- */
.bloco { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); padding: 18px; margin-bottom: 16px; box-shadow: var(--sh-subtle); }
.bloco h2 { margin-bottom: 4px; }
.bloco .subtitulo { margin-bottom: 12px; }
.fechada { text-align: center; padding: 28px 18px; }

/* ---------- avisos ---------- */
.aviso-corte { background: var(--secondary-tint); border: 1.5px solid #A5F3FC; border-radius: var(--r-m); padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
.erro { background: var(--error-bg); color: var(--error-text); border: 1.5px solid #FECACA; border-radius: var(--r-m); padding: 12px 14px; margin-bottom: 16px; font-weight: 700; }
.erro-campo { color: var(--error-text); font-size: 12.5px; font-weight: 700; margin: 4px 0 0; }
.campo-invalido input, .campo-invalido select { border-color: var(--error) !important; box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
.promessa { background: var(--tertiary-tint); border: 1.5px solid #FDE68A; border-radius: var(--r-m); padding: 12px 14px; font-size: 14px; margin: 12px 0 0; }

/* ---------- status (chips) ---------- */
.status, .pilula { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; letter-spacing: .02em; margin-bottom: 8px; }
.st-pendente, .pilula.pendente { background: var(--warning-bg); color: var(--warning-text); }
.st-confirmada, .pilula.aberta { background: var(--success-bg); color: var(--success-text); }
.st-perdida, .pilula.esgotada, .pilula.erro { background: var(--error-bg); color: var(--error-text); }
.pilula.ok { background: var(--success-bg); color: var(--success-text); }
.pilula.roxa { background: var(--primary-tint); color: var(--primary); }
.pilula.aguarda { background: var(--warning-bg); color: var(--warning-text); }
.pilula.equipe { background: var(--text); color: #fff; }  /* RF-415 */

/* ---------- opções (rádio em lista) ---------- */
.opcao { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--border); border-radius: var(--r-s); }
.opcao:last-of-type { border-bottom: 0; }
.opcao.selecionada { background: var(--primary-tint); outline: 1.5px solid var(--primary); }
.opcao input[type=radio] { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; }
.opcao label { flex: 1; display: flex; justify-content: space-between; gap: 8px; cursor: pointer; }
.indisponivel { opacity: .55; }
.tag { background: var(--hover); color: var(--text-2); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: var(--r-pill); }

/* ---------- formulário (Text Input do ShopVibe) ---------- */
.campo { margin-bottom: 12px; }
.campo { scroll-margin: 96px; }
.campo label { display: block; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.campo label .opcional { font-weight: 400; font-size: 12px; color: var(--text-2); }
.campo input, .campo select, .pix-chave input { width: 100%; height: 48px; padding: 0 16px; border: 1.5px solid var(--border-2); border-radius: var(--r-m); background: var(--surface); color: var(--text); font: 400 16px var(--body); }
.campo input::placeholder { color: var(--text-3); }
.campo input:focus, .campo select:focus, .pix-chave input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.aceite { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; margin: 8px 0 0; min-height: 44px; }
.aceite input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--primary); flex-shrink: 0; }
.aceite label { cursor: pointer; }
.hp { position: absolute; left: -9999px; }

/* ---------- botões ---------- */
.bt, button.bt, .acao, form > button, .campo ~ button, button[type=submit] { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 50px; padding: 0 36px; border: 0; border-radius: var(--r-pill); background: var(--primary); color: #fff; font: 700 15px var(--body); text-decoration: none; cursor: pointer; box-shadow: var(--sh-medium); transition: background .15s, transform .15s; }
.bt:hover, .acao:hover, button[type=submit]:hover { background: var(--primary-hover); }
.bt:active, .acao:active, button[type=submit]:active { background: var(--primary-active); transform: translateY(1px); }
.bt:disabled, button:disabled { opacity: .4; cursor: not-allowed; }
.bt.sec, .acao.sec { background: transparent; border: 2px solid var(--primary); color: var(--primary); box-shadow: none; }
.bt.sec:hover, .acao.sec:hover { background: var(--primary-tint); }
.bt.fantasma { background: transparent; color: var(--text-2); box-shadow: none; min-height: 44px; font-size: 14px; }
.bt.fantasma:hover { background: var(--hover); color: var(--text); }
.bt.bloco-todo, .acao-bloco, button[type=submit] { width: 100%; }
.bt.mini { min-height: 42px; padding: 0 24px; width: auto; }
.pix-chave { display: flex; gap: 8px; }
.pix-chave button { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: var(--primary); color: #fff; font: 700 14px var(--body); cursor: pointer; white-space: nowrap; }
.pix-chave button:hover { background: var(--primary-hover); }
.qr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); padding: 8px; max-width: 220px; margin: 6px auto 0; box-shadow: var(--sh-medium); }
.qr svg, .qr img { display: block; width: 100%; height: auto; }

/* ---------- resumo permanente (RF-201) ---------- */
.resumo-fixo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; max-width: 560px; margin: 0 auto; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -10px 25px rgba(0,0,0,.08); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: transform .2s; }
.resumo-fixo .total { font-family: var(--headline); font-weight: 800; font-size: 18px; line-height: 1.2; color: var(--primary); font-variant-numeric: tabular-nums; }
.resumo-fixo .item { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resumo-fixo__texto { min-width: 0; display: flex; flex-direction: column; }
body.com-resumo .app-miolo { padding-bottom: 96px; }

/* ---------- voucher ---------- */
.cartao { width: 100%; max-width: 420px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-large); }
.cartao .topo { background: linear-gradient(135deg, var(--primary), var(--primary-active)); color: #fff; padding: 14px 16px; text-align: center; }
.cartao .topo h1 { font-size: 22px; color: #fff; }
.cartao .topo p { margin: 2px 0 0; font-size: 12px; opacity: .92; }
.cartao .topo .portador { margin-top: 4px; font: 700 16px/1.2 var(--headline); opacity: 1; }
/* 11/09: o nome é o título do voucher; "Reserva confirmada" vira selo */
.cartao .topo h1.nome { font: 800 24px/1.15 var(--headline); color: #fff; letter-spacing: -.01em; overflow-wrap: anywhere; }
.cartao .topo .confirmada { margin: 6px auto 0; display: inline-block; font: 700 12px var(--body); letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.18); border-radius: 999px; padding: 4px 12px; opacity: 1; }
.cartao .topo .confirmada + p { margin-top: 8px; }
/* RF-415 (12/09/2026, aprovado em design/prototipo-equipe.html, variação C "Grafite"): voucher da equipe */
.cartao.equipe { background: var(--text); color: #fff; border-color: var(--text); }
.cartao.equipe .topo { background: linear-gradient(135deg, #171717, #404040); }
.cartao.equipe .topo .confirmada { background: var(--secondary); color: var(--text); }
.cartao.equipe .topo .funcao { margin: 6px 0 0; font: 700 14px var(--headline); color: var(--secondary); letter-spacing: .02em; }
.cartao.equipe .corpo .qr { background: #fff; padding: 10px; border-radius: 14px; max-width: 220px; }
.cartao.equipe .codigo { color: var(--secondary); } .cartao.equipe .lugares, .cartao.equipe dl { color: #fff; }
.cartao.equipe dt { color: var(--text-3); } .cartao.equipe .mudo { color: var(--text-3); }
.cartao.equipe .rodape { background: #111; color: var(--text-3); border-top: 1px solid #333; }
.cartao.equipe .bt { background: var(--secondary); color: var(--text); } .cartao.equipe .bt.sec { background: transparent; color: var(--secondary); border-color: var(--secondary); }
.cartao.equipe .completar { color: var(--text); }
.cartao .corpo { padding: 14px 16px; text-align: center; }
.cartao .aviso-cancelado { background: var(--error); color: #fff; font-weight: 800; letter-spacing: .1em; padding: 12px; text-transform: uppercase; font-family: var(--headline); }
.cartao .qr { max-width: 200px; margin: 0 auto 10px; }
.cartao dl { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; margin: 12px 0 0; }
.cartao dt { color: var(--text-2); }
.cartao dd { margin: 0; font-weight: 700; }
.cartao .lugares { color: var(--primary); font-family: var(--headline); font-weight: 700; margin: 2px 0 12px; }
/* RF-409: pedido de completar os dados, abaixo do QR */
.cartao .completar { margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--bg); text-align: left; }
.cartao .completar b { display: block; font: 700 15px var(--body); }
.cartao .completar span { display: block; font-size: 13px; color: var(--text-2); margin: 2px 0 10px; }
.cartao .acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cartao .acoes a { width: 100%; min-height: 48px; padding: 0 8px; font-size: 13px; }
.cartao .rodape { border-top: 2px dashed var(--border); padding: 12px 24px 20px; color: var(--text-2); font-size: 13px; text-align: center; }

/* ---------- páginas de erro ---------- */
.pagina-erro { text-align: center; padding: 40px 0; }
.pagina-erro h1 { margin-bottom: 10px; }
.pagina-erro p { color: var(--text-2); margin-bottom: 20px; }
.pagina-erro .acoes { display: grid; gap: 8px; max-width: 360px; margin: 0 auto; }

/* ---------- letreiro (um elemento animado por tela) ---------- */
.letreiro { overflow: hidden; background: var(--tertiary); color: var(--text); font: 700 11px var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 7px 0; white-space: nowrap; }
.letreiro span { display: inline-block; padding-left: 100%; animation: letreiro-rolar 18s linear infinite; }
@keyframes letreiro-rolar { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .letreiro span { animation: none; padding-left: 16px; } }

/* ---------- página inicial (RF-280) ---------- */
.heroi { background: var(--surface); margin: -14px -16px 0; padding: 18px 18px 14px; text-align: center; box-shadow: var(--sh-subtle); }
.heroi__marca { font-family: var(--headline); font-weight: 800; font-size: 16px; margin: 0; color: var(--text); }
.heroi__marca span { color: var(--primary); }
.heroi__grito { font-size: 30px; font-weight: 800; color: var(--primary); letter-spacing: .01em; margin: 4px 0 0; }
.heroi__sub { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
.app-miolo > .letreiro { margin: 0 -16px; }
.eventos { padding-top: 12px; }
.eventos { display: grid; gap: 16px; padding: 16px 0 8px; }
.evento { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-medium); transition: box-shadow .2s, transform .2s; }
.evento:hover { box-shadow: var(--sh-hover); transform: translateY(-3px); }
.evento__capa { aspect-ratio: 16/9; position: relative; background: linear-gradient(135deg, #7C3AED 0%, #22D3EE 100%); }
.evento__capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evento__capa .pilula { position: absolute; top: 10px; right: 10px; margin: 0; }
.evento__data { position: absolute; left: 12px; bottom: 10px; font-family: var(--headline); font-weight: 800; color: #fff; font-size: 24px; line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.evento__info { padding: 14px 16px 16px; }
.evento__info h2 { font-size: 24px; }
.evento__onde { font-size: 14px; color: var(--text-2); margin: 4px 0 8px; }
.evento__chamada { font-weight: 700; margin: 0 0 12px; }
.evento--fechado .evento__capa { filter: saturate(.25); }
.evento--fechado h2 { color: var(--text-2); }
.cortina { border-top: 1px solid var(--border); }
.cortina summary { list-style: none; cursor: pointer; margin: 12px 16px 14px; padding: 12px 16px; font-family: var(--headline); font-weight: 700; font-size: 16px; color: var(--primary); display: flex; justify-content: space-between; align-items: center; background: var(--primary-tint); border: 2px solid var(--primary); border-radius: var(--r-pill); }
.cortina summary::-webkit-details-marker { display: none; }
.cortina summary::after { content: "▾"; font-size: 20px; transition: transform .2s; }
.cortina[open] summary::after { transform: rotate(180deg); }
.cortina summary:hover { background: #EDE9FE; }
.cortina__miolo { padding: 0 16px 16px; }
.cortina__miolo p { margin: 0 0 10px; font-size: 15px; }
.fotos { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 10px; scrollbar-width: none; }
.fotos::-webkit-scrollbar { display: none; }
.foto { flex: none; width: 80%; margin: 0; scroll-snap-align: start; position: relative; }
.foto img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-l); display: block; }
.foto figcaption { position: absolute; left: 10px; bottom: 8px; background: rgba(23,23,23,.7); color: #fff; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: var(--r-pill); }
.tabela-valores { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 4px; }
.tabela-valores th, .tabela-valores td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.tabela-valores th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.tabela-valores td:last-child, .tabela-valores th:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--primary); }
.tabela-valores td small { display: block; color: var(--text-2); font-weight: 400; font-size: 12px; }
.faq { padding: 8px 0 12px; }
.faq details { background: var(--surface); border-radius: var(--r-m); border: 1px solid var(--border); padding: 10px 14px; margin-bottom: 8px; font-size: 14px; }
.faq summary { font-weight: 700; color: var(--text); cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--text-2); }
.vazio { text-align: center; padding: 40px 16px; color: var(--text-2); }
.vazio h2 { color: var(--text); margin-bottom: 6px; }

/* ---------- jornada em etapas (RF-281 a RF-284, RF-293 a RF-298) ---------- */
body.jornada .app-miolo { padding-bottom: 88px; }
body.jornada .app-rodape { display: none; }
.etapa { outline: none; }
/* RF-296 (emenda 06/09): cartão do evento no topo da etapa 1 */
.evento-cab { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); padding: 8px; margin-bottom: 10px; box-shadow: var(--sh-subtle); }
.evento-cab__capa { display: block; width: 64px; height: 64px; border-radius: var(--r-s); object-fit: cover; background: linear-gradient(135deg, #7C3AED 0%, #22D3EE 100%); }
.evento-cab__txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.evento-cab__txt b { font: 700 15px/1.2 var(--headline); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evento-cab__txt span { font-size: 12px; line-height: 1.3; color: var(--text-2); }
.evento-cab__txt a { font-size: 12px; font-weight: 700; color: var(--primary); }
.evento-detalhes { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); padding: 0 14px; margin: -4px 0 12px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.evento-detalhes summary { list-style: none; cursor: pointer; padding: 10px 0; font-weight: 700; color: var(--primary); }
.evento-detalhes summary::-webkit-details-marker { display: none; }
.evento-detalhes[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.evento-detalhes p { margin: 0 0 8px; } .evento-detalhes b { color: var(--text); }
.evento-detalhes .fotos { margin: 0 0 10px; }
.evento-detalhes[open] { padding-bottom: 6px; }
/* com JS o link do cartão abre/fecha; o summary só aparece sem JS */
.js .evento-detalhes summary { display: none; }
.js .evento-detalhes:not([open]) { display: none; }
.js .evento-detalhes[open] { padding-top: 10px; }
/* RF-299: faixa de garantias — ícones do sprite, sem emoji */
.garantias { list-style: none; margin: 12px 0 0; padding: 10px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; background: var(--primary-tint); border-radius: var(--r-m); }
.garantias li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; align-items: start; font-size: 12px; line-height: 1.3; color: var(--text-2); }
.garantias li .ic { width: 18px; height: 18px; color: var(--primary); }
.garantias li b { color: var(--text); }
@media (max-width: 359px) { .garantias { grid-template-columns: 1fr; } }
.bt-cancelar-retomada { margin-top: 12px; }
.aviso-corte .ic, .contagem .ic, details.regras summary .ic { color: var(--primary); }
.bloco-id { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.etapa__titulo { font-size: 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.etapa__titulo small { font: 500 12px var(--body); color: var(--text-2); white-space: nowrap; }
.etapa__titulo small b { color: var(--primary); font-weight: 700; }
.etapa__sub { font-size: 14px; color: var(--text-2); margin: 2px 0 12px; }
.etapa__sub--prova b { color: var(--primary); font-weight: 700; }  /* RF-299 (d) */
.js .etapa:not(.etapa--ativa) { display: none; }
.js .so-sem-js { display: none; }
html:not(.js) .so-com-js { display: none; }
html:not(.js) .resumo-fixo--jornada { position: static; box-shadow: none; margin-top: 16px; }
.resumo-fixo--jornada { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.resumo-fixo--jornada .bt { min-height: 48px; padding: 0 22px; margin: 0; }
/* RF-295: teclado aberto — a barra some e o botão em fluxo do fim do formulário aparece */
.js .bt-fluxo { display: none; margin-top: 14px; }
html.js body.teclado .resumo-fixo--jornada { transform: translateY(110%); }
html.js body.teclado .bt-fluxo { display: inline-flex; }
html.js body.teclado.jornada .app-miolo { padding-bottom: 24px; }
/* RF-296: os dois cartões lado a lado na linha 1; os painéis ocupam a largura toda embaixo */
.escolha-modo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.escolha-modo > .cartao-radio[data-modo="mesa"] { grid-area: 1 / 1; }
.escolha-modo > .cartao-radio[data-modo="ingresso"] { grid-area: 1 / 2; }
.escolha-modo > .cartao-radio:only-of-type { grid-column: 1 / -1; }
.escolha-modo > .painel { grid-column: 1 / -1; }
.cartao-radio { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 96px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-l); padding: 10px 12px 9px; cursor: pointer; box-shadow: var(--sh-subtle); transition: border-color .15s, box-shadow .2s; }
@media (hover: hover) { .cartao-radio:hover { border-color: var(--border-2); box-shadow: var(--sh-hover); } }
.cartao-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cartao-radio--sel { border-color: var(--primary); background: var(--primary-tint); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.cartao-radio--sel::after { content: "✓"; position: absolute; top: 8px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); color: #fff; font: 800 11px/18px var(--headline); text-align: center; }
.cartao-radio__titulo { font-family: var(--headline); font-weight: 700; font-size: 15px; color: var(--text); line-height: 1.15; padding-right: 22px; }
.cartao-radio__preco { font-family: var(--headline); font-weight: 800; color: var(--primary); font-size: 20px; white-space: nowrap; line-height: 1; }
.cartao-radio__preco small { font: 700 10px var(--body); color: var(--text-2); letter-spacing: .02em; margin-left: 4px; }
.cartao-radio__desc { display: block; font-size: 12px; color: var(--text-2); line-height: 1.3; margin-top: auto; }
.cartao-radio__desc b { color: var(--text); }
div.painel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); padding: 10px; box-shadow: var(--sh-medium); }  /* div.: body.painel (painel de operação) não entra aqui */
.js div.painel:not(.painel--ativo) { display: none; }
.painel__cab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 2px 8px; }
.painel__cab h3 { font-size: 15px; }
.painel__cab > span { font-size: 12px; color: var(--text-2); }
.fechar { background: transparent; border: 1.5px solid var(--border-2); border-radius: var(--r-pill); height: 34px; padding: 0 12px; font: 700 12px var(--body); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.fechar:hover { background: var(--hover); }
.opcao--unica { display: none; }
html:not(.js) .opcao--unica { display: flex; }
.qtd { display: flex; align-items: center; gap: 12px; }
.qtd select { flex: 1; text-align: center; font-family: var(--headline); font-weight: 800; font-size: 22px; }
.qtd__bt { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 2px solid var(--primary); background: var(--surface); color: var(--primary); font: 800 24px var(--headline); cursor: pointer; }
.qtd__bt:hover { background: var(--primary-tint); }
html:not(.js) .qtd__bt { display: none; }
.campo-extra { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-2); }
.campo-extra .opcional { display: block; font-weight: 400; margin-top: 2px; }
.conferencia { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); padding: 12px 14px; margin: 0 0 10px; box-shadow: var(--sh-subtle); }
.conferencia h3 { font-family: var(--body); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.conferencia dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.conferencia dt { color: var(--text-2); }
.conferencia dd { margin: 0; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
html:not(.js) .conferencia { display: none; }
.depois { background: var(--secondary-tint); border: 1.5px solid #A5F3FC; border-radius: var(--r-m); padding: 10px 12px; font-size: 13px; line-height: 1.4; margin: 0; }
.depois b { color: var(--text); }

/* ---------- planta (RF-250) ---------- */
.planta { display: grid; grid-template-columns: repeat(var(--planta-colunas, 7), 1fr); grid-template-rows: repeat(var(--planta-linhas, 4), minmax(48px, auto)); gap: 3px; background: var(--border); border: 3px solid var(--border); border-radius: var(--r-m); overflow: hidden; }
.area { background: var(--hover); color: var(--text-2); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 10px; font-weight: 700; line-height: 1.15; padding: 2px; min-height: 44px; }
.area--roda, .area--pista { background: var(--surface); border: 2px dashed var(--border-2); }
.area--roda { font-family: var(--headline); font-weight: 800; font-size: 12px; color: var(--text); }
.area--entrada { background: var(--bg); color: var(--text); }
.mesa { position: relative; margin: 0; min-height: 48px; -webkit-tap-highlight-color: transparent; }
.mesa input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mesa > span[aria-hidden] { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 48px; background: var(--surface); color: var(--primary); border: 2px solid var(--primary); border-radius: var(--r-s); font: 800 13px var(--headline); line-height: 1.1; cursor: pointer; transition: background .12s; user-select: none; }
.mesa > span small { font: 700 10.5px var(--body); color: var(--text-2); white-space: nowrap; margin-top: 1px; }
/* O número da mesa reservada usa --text-2, não --text-3: sobre a hachura (#E5E5E5 na
   faixa escura) o cinza-claro dava 2,0:1, abaixo dos 4,5:1 exigidos a 13px, e o número
   ficava ilegível. Com --text-2 sobe para 6,2:1. Quem sinaliza "indisponível" aqui é a
   hachura, o risco, a borda cinza e a ausência de preço — não o apagamento do texto. */
.mesa--reservada > span[aria-hidden] { background: repeating-linear-gradient(135deg, #F5F5F5 0 4px, #E5E5E5 4px 8px); color: var(--text-2); border-color: var(--border-2); cursor: not-allowed; text-decoration: line-through; }
/* RF-297: hover só onde existe ponteiro — em tela de toque ele ficava preso e vencia a seleção */
@media (hover: hover) { .mesa:not(.mesa--reservada):not(.mesa--sel) > span[aria-hidden]:hover { background: var(--primary-tint); } }
.mesa.mesa--sel > span[aria-hidden] { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.3); z-index: 2; }
.mesa.mesa--sel > span small { color: #fff; }
.mesa input:focus-visible + span { outline: 3px solid rgba(124,58,237,.45); outline-offset: 2px; }
.legenda { display: flex; gap: 14px; padding: 8px 2px 0; font-size: 11px; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.legenda i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
.legenda__livre { background: #fff; border: 2px solid var(--primary); }
.legenda__sel { background: var(--primary); }
.legenda__reservada { background: repeating-linear-gradient(135deg, #F5F5F5 0 3px, #D4D4D4 3px 6px); border: 1px solid var(--border-2); }

/* ---------- pagamento (T-25, RF-298) ---------- */
.linha-reserva { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.linha-reserva .status { margin: 0; flex: none; }
.linha-reserva .codigo { font-size: 13px; margin: 0; flex: none; }
.linha-reserva > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.contagem { text-align: center; font-size: 14px; color: var(--text-2); margin: 8px 0 0; }
.contagem b { color: var(--text); font-family: var(--mono); font-size: 18px; }
.bloco-id { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-m); padding: 12px 14px; font-size: 14px; margin: 10px 0 0; }
.bloco-id b { color: var(--text); }
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.passos li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.passos li i { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-style: normal; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; font-family: var(--headline); }
details.regras { font-size: 14px; color: var(--text-2); margin-top: 12px; }
details.regras summary { cursor: pointer; color: var(--primary); font-weight: 700; }
details.regras p { margin: 8px 0 0; }
.ajuda { margin: 14px 0 0; text-align: center; }

/* ---------- voucher: card de check-in (RF-290) ---------- */
.bt-descer { border-style: dashed; }
.checkin > .bt { margin-top: 12px; }
.rodape-nota { color: var(--text-3); }
.rodape-rotulo { color: var(--text-2); font-weight: 400; }
/* "Fale conosco" na inicial (06/09/2026) */
.contato { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); padding: 16px; margin: 4px 0 14px; box-shadow: var(--sh-medium); display: grid; gap: 10px; scroll-margin-top: 16px; }
.contato h2 { font-size: 20px; margin: 0; }
.contato .subtitulo { margin: -4px 0 2px; color: var(--text-2); font-size: 14px; }
.contato .bt { min-height: 48px; padding: 0 16px; font-size: 15px; }
.contato__email { margin: 0; text-align: center; font-size: 14px; color: var(--text-2); }
.faq p a, .evento .mudo a { font-weight: 700; }
.checkin { scroll-margin-top: 84px; max-width: 420px; margin: 18px auto 0; background: var(--surface); border-radius: var(--r-l); padding: 16px; box-shadow: var(--sh-medium); border: 1px solid var(--border); }
.checkin h2 { font-size: 18px; margin-bottom: 4px; }
.checkin .subtitulo { margin-bottom: 10px; }
.frases { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.frases button { border: 1.5px solid var(--border-2); background: var(--surface); border-radius: var(--r-pill); height: 34px; padding: 0 14px; font: 700 12px var(--body); color: var(--text); cursor: pointer; }
.frases button:hover { background: var(--hover); }
.frases button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.card-social { width: 200px; aspect-ratio: 9/16; margin: 0 auto; border-radius: var(--r-l); background: linear-gradient(165deg, #7C3AED 0%, #5B21B6 45%, #22D3EE 130%); color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 14px; box-shadow: var(--sh-large); }
.card-social::before { content: ""; position: absolute; inset: auto -50px -70px auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(250,204,21,.55), transparent 70%); }
.card-social__m { font-family: var(--headline); font-weight: 800; font-size: 12px; }
.card-social__m span { color: var(--tertiary); }
.card-social__frase { font-family: var(--headline); font-weight: 800; font-size: 38px; line-height: 1; color: #fff; text-wrap: balance; text-shadow: 0 4px 16px rgba(0,0,0,.25); }
.card-social__quando { font-size: 12px; opacity: .95; line-height: 1.3; }
.card-social__quando b { display: block; font-family: var(--headline); font-weight: 800; font-size: 15px; color: var(--tertiary); }

/* ---------- painel de operação (RF-370 a RF-377, RNF-41) — prefixo pn- ---------- */
.ic { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex: none; }
body.painel { padding-bottom: 0; }
body.painel .app-miolo { padding-bottom: 96px; }
.pn-topo .pn-titulo small { display: block; font: 500 11px var(--body); color: var(--text-2); letter-spacing: .02em; margin-top: 2px; }
.pn-acao { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font: 700 13px var(--body); text-decoration: none; padding: 6px 4px; min-height: 36px; }
.pn-abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -10px 25px rgba(0,0,0,.06); }
.pn-abas { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 560px; margin: 0 auto; padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); }
.pn-abas a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; padding: 8px 2px 6px; border-radius: var(--r-m); font: 700 11px var(--body); color: var(--text-2); text-decoration: none; }
.pn-abas a .ic { width: 22px; height: 22px; }
.pn-abas a[aria-current="page"] { color: var(--primary); background: var(--primary-tint); }
.pn-lista { display: grid; gap: 12px; }
.pn-recolhido { margin-top: 8px; }
.pn-recolhido summary { cursor: pointer; font: 700 14px var(--body); color: var(--text-2); padding: 8px 0; }
.pn-recolhido .pn-edicao { margin-top: 10px; }
.pn-login { display: grid; gap: 16px; padding-top: 24px; }
.pn-login__marca { text-align: center; font-family: var(--headline); font-weight: 800; font-size: 26px; line-height: 1.1; }
.pn-login__marca span { color: var(--primary); }
.pn-login__marca small { display: block; font: 500 13px var(--body); color: var(--text-2); letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
.pn-form { display: grid; gap: 12px; }
.pn-lembrar { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.pn-lembrar input { width: 22px; height: 22px; accent-color: var(--primary); }
/* cartão da edição (RF-372) */
.pn-edicao { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); box-shadow: var(--sh-medium); overflow: hidden; }
.pn-edicao--passada { opacity: .65; }
.pn-edicao--rascunho { border-style: dashed; }
.pn-edicao__cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 14px 16px 6px; color: inherit; text-decoration: none; }
.pn-edicao__cab h2 { font-size: 19px; }
.pn-edicao__quando { font-size: 13px; color: var(--text-2); margin: 2px 0 0; }
.pn-numeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 16px 10px; text-decoration: none; color: inherit; }
.pn-numeros div { background: var(--bg); border-radius: var(--r-m); padding: 8px 6px; text-align: center; }
.pn-numeros b { display: block; font-family: var(--headline); font-weight: 800; font-size: 18px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pn-numeros b em { font-style: normal; font-weight: 600; font-size: 12px; color: var(--text-3); }
.pn-numeros span { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); font-weight: 700; }
.pn-edicao__pes { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 16px 14px; font-size: 13px; color: var(--text-2); }
.pn-edicao__pes b { color: var(--text); font-family: var(--headline); }
.pn-edicao__pes .pn-barra { flex: 1; margin: 0; }
.pn-barra { height: 8px; background: var(--border); border-radius: var(--r-pill); overflow: hidden; margin-top: 8px; }
.pn-barra i { display: block; height: 100%; background: var(--primary); border-radius: var(--r-pill); transition: width .3s; }
/* placar (RF-375) */
.pn-atualizado { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); }
.pn-atualizado button { background: transparent; border: 0; color: var(--primary); font: 700 13px var(--body); cursor: pointer; padding: 6px; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; }
.pn-placar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pn-cel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); padding: 12px 14px; box-shadow: var(--sh-subtle); }
.pn-cel--larga { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.pn-rot { font: 700 11px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.pn-val { font-family: var(--headline); font-weight: 800; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text); margin-top: 2px; }
.pn-val em { font-style: normal; font-size: 16px; color: var(--text-3); font-weight: 600; }
.pn-val--neg { font-size: 22px; color: var(--error); }
.pn-cel--receita .pn-val { color: var(--primary); }
.pn-cel--receita .pn-val--neg { color: var(--error); }
.pn-agua { font-size: 12px; color: var(--text-2); margin-top: 2px; min-height: 18px; }
.pn-agua b { color: var(--warning-text); }
.aviso { border-left: 4px solid var(--warning); background: var(--warning-bg); border-radius: var(--r-m); padding: 10px 12px; font-size: 14px; color: var(--warning-text); }
/* mais / conta */
.pn-alt { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pn-menu { display: grid; gap: 8px; }
.pn-menu a, .pn-menu button { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); padding: 13px 16px; font: 700 15px var(--body); color: var(--text); cursor: pointer; display: flex; align-items: center; gap: 12px; box-shadow: var(--sh-subtle); text-decoration: none; }
.pn-menu .ic { width: 22px; height: 22px; color: var(--primary); }
.pn-menu div { flex: 1; }
.pn-menu span { font: 500 13px var(--body); color: var(--text-2); display: block; }
.pn-conta h2 { font-size: 17px; margin-bottom: 6px; }
.pn-conta form { margin-top: 10px; }

/* ---------- painel: reservas, caixa, lançar, mais (T-30 a T-33, RF-380 a RF-405) ---------- */
.aviso--erro { border-color: var(--error); background: var(--error-bg); color: var(--error-text); }
.aviso--ok { border-color: var(--success); background: var(--success-bg); color: var(--success-text); }
.pn-linha { display: flex; gap: 8px; flex-wrap: wrap; }
.pn-link { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; }
.pn-perigo { color: var(--error-text); }
.bt.perigo { background: var(--error); }
.bt.perigo:hover { background: var(--error-hover); }
.bt.zap { background: #25D366; color: #073b2a; }
.bt.zap:hover { background: #1fbf5b; }
.bt.mini.fantasma { width: auto; }
/* filtros (RF-380) */
.pn-filtros { display: grid; gap: 8px; }
.pn-busca { position: relative; }
.pn-busca input { width: 100%; min-height: 52px; border: 1.5px solid var(--border-2); border-radius: var(--r-pill); padding: 12px 16px 12px 46px; font: 500 16px var(--body); background: var(--surface); color: var(--text); box-shadow: var(--sh-subtle); }
.pn-busca input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.pn-busca > .ic { position: absolute; left: 16px; top: 26px; transform: translateY(-50%); color: var(--text-3); width: 20px; height: 20px; }
/* 09/09: sugestões enquanto digita */
.pn-sugestoes { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); box-shadow: var(--sh-large); overflow: hidden; }
.pn-sugestoes[hidden] { display: none; }
.pn-sug { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.pn-sug:hover, .pn-sug.ativa { background: var(--bg); }
.pn-sug .ic { width: 20px; height: 20px; color: var(--primary); flex: none; position: static; transform: none; }
.pn-sug > div { flex: 1; min-width: 0; }
.pn-sug b { display: block; font: 700 14px var(--body); }
.pn-sug span:not(.pilula) { display: block; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-sug mark { background: #EDE9FE; color: var(--primary); border-radius: 3px; padding: 0 1px; }
.pn-sug .pilula { flex: none; }
.pn-sug__rodape { margin: 0; padding: 8px 12px; font-size: 11.5px; color: var(--text-2); background: var(--bg); }
.pn-feed__item--alvo { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 8px; }
.pn-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.pn-chips::-webkit-scrollbar { display: none; }
.pn-chips button, .pn-chips button[type=submit] { width: auto; box-shadow: none; flex: none; border: 1.5px solid var(--border-2); background: var(--surface); color: var(--text-2); border-radius: var(--r-pill); padding: 0 14px; font: 700 13px var(--body); cursor: pointer; min-height: 40px; }
.pn-chips button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.pn-chip__n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #FEF3C7; color: #92400E; font: 700 11px var(--mono); margin-left: 4px; }
.pn-chips button[aria-pressed="true"] .pn-chip__n { background: #fff; color: var(--primary); }
.pn-ordena { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pn-ordena select { min-height: 44px; border: 1.5px solid var(--border-2); border-radius: var(--r-pill); padding: 0 14px; font: 700 13px var(--body); background: var(--surface); color: var(--text-2); width: 100%; }
/* cartões de reserva */
.pn-cartoes { display: grid; gap: 10px; }
.pn-reserva { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); padding: 12px 14px; box-shadow: var(--sh-subtle); display: grid; gap: 6px; }
.pn-reserva__cab { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.pn-reserva h3 { font-size: 16px; }
.pn-reserva__item { font-size: 14px; color: var(--text-2); }
.pn-reserva__valor { font-family: var(--headline); font-weight: 800; font-size: 18px; color: var(--primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pn-reserva__meta { font-size: 12px; color: var(--text-2); display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; }
.pn-reserva__meta .pilula { margin: 0; }
.pn-reserva__meta code { font-family: var(--mono); font-size: 11px; background: var(--hover); padding: 1px 6px; border-radius: var(--r-s); }
.pn-reserva__vence { color: var(--warning-text); font-weight: 700; }
.pn-reserva__acoes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pn-reserva__acoes a, .pn-reserva__acoes button { border: 1.5px solid var(--border-2); background: var(--surface); color: var(--text); border-radius: var(--r-pill); padding: 0 12px; min-height: 40px; font: 700 13px var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.pn-reserva__acoes .zap { border-color: #25D366; color: #128C7E; }
.pn-reserva__acoes .prim { background: var(--primary); border-color: var(--primary); color: #fff; }
.pn-reserva--cancelada, .pn-reserva--expirada, .pn-reserva--recusada { opacity: .6; }
/* folhas (dialog como folha de baixo) */
.pn-folha { border: 0; margin: auto 0 0; width: 100%; max-width: 560px; left: 0; right: 0; background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--sh-large); max-height: 92vh; overflow-y: auto; color: var(--text); padding: 14px 18px calc(22px + env(safe-area-inset-bottom)); display: none; }
.pn-folha::backdrop { background: rgba(23,23,23,.45); }
.pn-folha[open] { display: grid; gap: 10px; }
.pn-folha > form { display: grid; gap: 10px; }
.pn-folha__puxa { width: 40px; height: 4px; border-radius: var(--r-pill); background: var(--border-2); margin: 0 auto 4px; }
.pn-folha h2 { font-size: 20px; }
.pn-folha__resumo { background: var(--bg); border-radius: var(--r-m); padding: 12px 14px; display: grid; gap: 4px; font-size: 14px; }
.pn-folha__resumo b { font-size: 15px; }
.pn-folha__grande { font-family: var(--headline); font-weight: 800; font-size: 28px; color: var(--error); }
.pn-folha__lista { display: grid; }
/* folha de opções (08/09/2026, padrão do app do banco): cabeçalho com ×, linhas com seta */
.pn-folha__cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pn-folha__x { border: 0; background: none; font: 400 28px/1 var(--body); color: var(--text-2); cursor: pointer; padding: 0 4px; }
.pn-folha__lista .chev, .pn-menu .chev { font-style: normal; font-size: 26px; line-height: 1; color: var(--text-3); }
.pn-folha__lista a .chev { margin-left: auto; }
.bt > .chev { margin-left: auto; font-style: normal; font-size: 24px; line-height: 1; opacity: .8; }  /* RF-414: botão que abre a folha */
.pn-folha__lista a, .pn-folha__lista button { width: 100%; text-align: left; background: var(--surface); border: 0; border-bottom: 1px solid var(--border); padding: 13px 4px; font: 700 15px var(--body); color: var(--text); cursor: pointer; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.pn-folha__lista a:hover, .pn-folha__lista button:hover { background: var(--hover); }
.pn-folha__lista .perigo { color: var(--error-text); }
.pn-folha__lista .ic { width: 20px; height: 20px; color: var(--primary); }
.pn-folha__lista .perigo .ic { color: var(--error); }
.pn-folha__lista span { font: 500 12px var(--body); color: var(--text-2); display: block; }
/* 09/09: folha "Mandar no WhatsApp" */
#folha-zap [hidden] { display: none; }
#folha-zap .pn-folha__lista span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 400; line-height: 1.35; word-break: break-word; }
#folha-zap .pn-folha__lista span.num { font: 700 15px var(--mono); color: var(--text); }
#folha-zap .pn-folha__passos { font-size: 12.5px; }
.bt.zap .chev { margin-left: auto; font-size: 22px; line-height: 1; font-style: normal; }
.pn-folha__lista div { flex: 1; }
.pn-folha .planta { margin: 4px 0; }
.pn-confirma2 { display: grid; gap: 10px; background: var(--error-bg); border: 1.5px solid #FCA5A5; border-radius: var(--r-l); padding: 14px; }
.pn-confirma2 h3 { font-size: 18px; color: var(--error-text); }
.pn-confirma2 p { margin: 0; font-size: 14px; color: var(--error-text); }
[data-passo-1], [data-passo-2] { display: grid; gap: 10px; }
[data-passo-1][hidden], [data-passo-2][hidden] { display: none; }
/* caixa (RF-390) */
.pn-caixa { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pn-val--dinheiro { font-size: 22px; }
.pn-val--fraco { color: var(--text-3); }
.pn-cel--saldo { grid-column: 1 / -1; background: var(--primary-tint); border-color: var(--primary); }
.pn-cel--saldo .pn-val { color: var(--primary); font-size: 30px; }
.pn-tabela { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
.pn-tabela td { padding: 9px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.pn-tabela .pn-neg { color: var(--error); }
.pn-tabela td:last-child { text-align: right; font-family: var(--headline); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pn-tabela tr:last-child td { border-bottom: 0; }
.pn-sub { display: block; font: 500 12px var(--body); color: var(--text-2); }
.bloco h2 small { font: 500 12px var(--body); color: var(--text-2); margin-left: 6px; }
.pn-devolucao { border-top: 1px solid var(--border); padding: 10px 0; display: grid; gap: 6px; }
.pn-devolucao:first-of-type { border-top: 0; }
.pn-devolucao__cab { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; font-size: 14px; }
.pn-devolucao__valor { text-align: right; font-family: var(--headline); font-weight: 800; color: var(--error); white-space: nowrap; }
.pn-devolucao__valor .pilula { margin: 4px 0 0; }
.pn-devolucao__obs { margin: 0; font-size: 13px; }
.pn-tratar summary { cursor: pointer; color: var(--primary); font-weight: 700; font-size: 14px; padding: 4px 0; }
.pn-tratar .pn-form { margin-top: 8px; }
/* lançar (RF-394/395) */
.pn-segm { display: grid; grid-template-columns: 1fr 1fr; background: var(--hover); border-radius: var(--r-pill); padding: 4px; }
.pn-segm button, .pn-segm button[type=button] { width: auto; box-shadow: none; border: 0; background: transparent; border-radius: var(--r-pill); min-height: 40px; font: 700 14px var(--body); color: var(--text-2); cursor: pointer; }
.pn-segm button[aria-pressed="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--sh-subtle); }
.pn-opcoes { display: grid; gap: 8px; }
.pn-opcao { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--border-2); border-radius: var(--r-m); cursor: pointer; }
.pn-opcao:has(input:checked) { border-color: var(--primary); background: var(--primary-tint); }
.pn-opcao input[type=radio] { width: 22px; height: 22px; accent-color: var(--primary); flex: none; margin-top: 2px; }
.pn-opcao > div { flex: 1; font-size: 15px; }
.pn-opcao span { display: block; font-size: 13px; color: var(--text-2); }
.pn-prazo { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pn-prazo button { border: 1.5px solid var(--border-2); background: var(--surface); border-radius: var(--r-pill); min-height: 36px; padding: 0 12px; font: 700 13px var(--body); color: var(--text-2); cursor: pointer; }
.pn-prazo button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.pn-lancado { display: grid; gap: 10px; }
.pn-lancado .pilula { justify-self: start; }
.pn-lancado h2 { font-size: 22px; }
/* mais (RF-397 a RF-405) */
.pn-sw, button[type=submit].pn-sw { width: 52px; min-height: 0; box-shadow: none; height: 30px; border-radius: var(--r-pill); border: 0; background: var(--border-2); position: relative; cursor: pointer; flex: none; padding: 0; }
.pn-sw i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--sh-subtle); transition: left .15s; }
.pn-sw[aria-checked="true"], button[type=submit].pn-sw[aria-checked="true"] { background: var(--success); }
.pn-sw[aria-checked="true"] i { left: 25px; }
.pn-menu form { display: contents; }
.pn-menu--grande a { padding: 18px 16px; font-size: 17px; }
.pn-menu--grande .ic { width: 28px; height: 28px; }
.pn-menu--grande span { font-size: 14px; }
.pn-menu .perigo { color: var(--error-text); }
.pn-menu .perigo .ic { color: var(--error); }
.pn-marcar { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.pn-marcar input { width: 22px; height: 22px; accent-color: var(--primary); flex: none; margin-top: 1px; }
.pn-convite { border-radius: var(--r-m); overflow: hidden; aspect-ratio: 16/9; background: linear-gradient(135deg, #2E1065, #7C3AED 60%, #22D3EE); display: flex; align-items: center; justify-content: center; }
.pn-convite img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pn-convite__vazia { color: #fff; font: 800 20px var(--headline); text-align: center; }
.pn-convite__vazia small { display: block; font: 500 12px var(--body); opacity: .85; margin-top: 4px; }
.pn-folha textarea, .bloco textarea { width: 100%; border: 1.5px solid var(--border-2); border-radius: var(--r-m); padding: 10px 14px; font: 400 15px/1.45 var(--body); color: var(--text); background: var(--surface); resize: vertical; min-height: 80px; }
.pn-folha textarea:focus, .bloco textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
/* quem vem (RF-383) */
.pn-quemvem { display: grid; }
.pn-quemvem__linha { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.pn-quemvem__linha:last-child { border-bottom: 0; }
.pn-quemvem__linha span { display: block; font-size: 12px; color: var(--text-2); }
.pn-tel { border: 1.5px solid var(--border-2); background: var(--surface); border-radius: var(--r-pill); min-height: 36px; padding: 0 12px; font: 700 13px var(--mono); color: var(--primary); cursor: pointer; white-space: nowrap; }
.pn-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); font: 700 13px var(--body); z-index: 30; box-shadow: var(--sh-large); opacity: 0; transition: opacity .2s; pointer-events: none; }
.pn-toast.ativa { opacity: 1; }
.pn-prefixo { display: flex; align-items: center; border: 1.5px solid var(--border-2); border-radius: var(--r-m); background: var(--surface); overflow: hidden; }
.pn-prefixo span { padding: 0 4px 0 14px; font: 700 15px var(--body); color: var(--text-2); white-space: nowrap; }
.pn-prefixo input { border: 0; height: 48px; flex: 1; min-width: 0; padding: 0 12px 0 0; font: 700 16px var(--body); color: var(--text); background: transparent; }
.pn-prefixo:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.pn-prefixo input:focus { outline: none; }

/* ---------- conferência da portaria (RF-103 a RF-105, RNF-07) — prefixo cf- ---------- */
.cf { font-size: 17px; }
.cf .etapa__titulo { margin-top: 4px; }
.cf-busca { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 12px 0 10px; }
.cf-busca .bt { min-height: 52px; padding: 0 18px; }
.cf-resumo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.cf-resumo div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); padding: 10px 14px; box-shadow: var(--sh-subtle); }
.cf-resumo b { display: block; font: 800 26px var(--headline); line-height: 1.1; color: var(--primary); font-variant-numeric: tabular-nums; }
.cf-resumo span { font-size: 12px; color: var(--text-2); }
.cf-lista { display: grid; gap: 8px; }
.cf-pessoa { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; box-shadow: var(--sh-subtle); min-height: 64px; }
.cf-pessoa__quem { min-width: 0; }
.cf-nome { font: 700 18px var(--body); color: var(--text); overflow-wrap: anywhere; }
.cf-tel { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cf-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cf-tags .pilula { margin: 0; }
.cf-pes { font: 800 30px var(--headline); color: var(--primary); white-space: nowrap; line-height: 1; flex: none; text-align: right; }
.cf-pes small { display: block; font: 700 11px var(--body); color: var(--text-2); letter-spacing: .04em; text-transform: uppercase; }
.cf-pessoa--perdeu { border-color: #FECACA; background: #FFF7F7; }
/* 11/09: blocos no desenho do Quem vem (mesmo da lista impressa) */
.cf-bloco { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); box-shadow: var(--sh-subtle); overflow: hidden; }
.cf-bloco .cf-pessoa { border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--border); }
.cf-bloco .cf-pessoa:last-child { border-bottom: 0; }
.cf-pessoa--junto { padding-left: 30px; background: var(--bg); } .cf-pessoa--junto .cf-nome { font-size: 16px; }
.cf-ref { flex: none; text-align: right; display: grid; gap: 4px; justify-items: end; }
.cf-ref code { font: 700 13px var(--mono); color: var(--text); }
.cf-ref .mesa-tag { background: var(--text); color: #fff; font: 800 13px var(--body); padding: 2px 10px; border-radius: 4px; }
.cf-faltam { padding: 8px 14px; background: var(--bg); font: 700 13px var(--body); color: var(--text-2); }
.cf-h2 { font-size: 17px; margin: 20px 0 8px; color: var(--error-text); }
.cf-h2 small { font: 500 13px var(--body); color: var(--text-2); margin-left: 6px; }

/* RF-407 (08/09/2026): lista de pessoas do voucher — no voucher, na página do acompanhante e na folha do painel */
.pessoas { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pessoas li { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); padding: 9px 12px; font-weight: 700; font-size: 15px; }
.pessoas li > .ic { width: 20px; height: 20px; color: var(--primary); flex: none; }
.pessoas li > div { min-width: 0; flex: 1; }
.pessoas li span { display: block; font-weight: 400; font-size: 12px; color: var(--text-2); }
.pessoas li.vazio { border-style: dashed; color: var(--text-2); font-weight: 500; }
.pessoas.compacta li { padding: 6px 10px; font-size: 14px; }
.pessoas.compacta li span { display: inline; margin-left: 6px; }
.pessoas li .bt.mini { margin-left: auto; flex: none; }
.corrigir { margin-top: 10px; } .corrigir summary { list-style: none; cursor: pointer; } .corrigir summary::-webkit-details-marker { display: none; } .corrigir[open] summary { margin-bottom: 12px; }
/* 08/09: acompanhantes no feed do cartão da reserva */
.pn-acomp-toggle { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-m); background: var(--bg); font: 500 14px var(--body); color: var(--text-2); cursor: pointer; }
.pn-acomp-toggle .ic { width: 18px; height: 18px; color: var(--primary); } .pn-acomp-toggle b { color: var(--text); }
.pn-acomp-toggle .chev { margin-left: auto; display: inline-block; font-style: normal; font-size: 22px; line-height: 1; color: var(--text-3); transition: transform .2s; } .pn-acomp-toggle.aberto .chev { transform: rotate(90deg); }
.pn-feed { margin-top: 8px; border-left: 3px solid var(--primary-tint); padding-left: 10px; display: grid; gap: 6px; }
.pn-feed[hidden] { display: none; }  /* o display:grid vencia o atributo hidden — o feed nunca fechava */
.pn-feed__item { padding: 8px 0 6px; border-bottom: 1px dashed var(--border); } .pn-feed__item:last-child { border-bottom: 0; }
.pn-feed__quem b { font: 700 15px var(--headline); display: block; } .pn-feed__quem span { font-size: 12.5px; color: var(--text-2); }
.pn-feed__item--vazio .pn-feed__quem b { color: var(--text-2); font-weight: 600; }
.pn-feed .pn-reserva__acoes { margin-top: 6px; }
.pn-folha__lista form { display: contents; } .pn-folha__lista .perigo { color: var(--error); }
.pessoas li .acoes { margin-left: auto; flex: none; display: flex; gap: 6px; align-items: center; }
.pessoas li .acoes .bt.mini { margin-left: 0; padding: 0 10px; min-height: 34px; }
.pessoas li .tv-form { margin-left: auto; flex: none; }
.pn-form .pn-opcoes, .bloco .pn-opcoes { margin-top: 4px; }
.pn-folha .pessoas { margin: 0; }
.bloco.acomp { max-width: 480px; margin: 0 auto; }
.bloco.acomp h1 { font-size: 22px; margin: 2px 0 4px; }
.link-caixa { font: 700 13px var(--mono); background: var(--hover); border: 1px dashed var(--border-2); border-radius: var(--r-m); padding: 10px 12px; word-break: break-all; margin: 8px 0; }
.pn-quemvem__linha--junto { padding-left: 18px; }
.pn-quemvem__linha--junto b { font-weight: 600; }
.pn-acomp { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-2); }
.pn-acomp .pn-linha { margin-top: 8px; }

/* RF-410 (09/09): comprovantes da venda por fora */
.campo input[type=file] { height: auto; padding: 10px 12px; border-style: dashed; font: 500 14px var(--body); }
.pn-comprovantes { display: grid; gap: 12px; }
.pn-comprov { display: flex; gap: 12px; align-items: flex-start; }
.pn-comprov__mini { width: 56px; height: 72px; border-radius: 8px; border: 1px solid var(--border); object-fit: cover; background: #fff; flex: none; }
.pn-comprov__pdf { width: 56px; height: 72px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); display: grid; place-items: center; align-content: center; gap: 2px; flex: none; }
.pn-comprov__pdf .ic { width: 24px; height: 24px; color: var(--primary); }
.pn-comprov__pdf small { font: 700 10px var(--mono); color: var(--text-2); }
.pn-comprov__txt { flex: 1; min-width: 0; }
.pn-comprov__txt b { font: 700 14px var(--body); word-break: break-word; }
.pn-comprov__txt > span { display: block; font-size: 12.5px; color: var(--text-2); }
.pn-comprov__txt .pn-reserva__acoes { margin-top: 8px; }
.pn-reserva__acoes .perigo { color: var(--error); border-color: var(--error); }
.pn-cel .pn-sub { margin-top: 2px; }
