/* Âmbar Beach · sistema de reservas · design v2 (17/11/2026) */
:root {
  --noite: #16120E; --s1: #1E1914; --s2: #27201A;
  --linha: rgba(241,233,220,.12); --linha2: rgba(241,233,220,.22);
  --ambar: #E9A03B; --ambar-s: rgba(233,160,59,.13);
  --areia: #F1E9DC; --cinza: #A99C88; --cinza2: #5E5446;
  --terra: #A8442A; --terra-t: #E07A5F; --terra-s: rgba(168,68,42,.2);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--noite); color: var(--areia); }
body { font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif; font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; min-height: 100dvh; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
.app { max-width: 560px; margin: 0 auto; padding-bottom: 40px; position: relative; }
.hidden, [hidden] { display: none !important; }

/* tipografia */
.x { font-stretch: 125%; font-weight: 700; text-transform: uppercase; }
.lab { font-size: 11px; letter-spacing: .18em; color: var(--cinza); font-stretch: 125%; font-weight: 700; text-transform: uppercase; }
.am { color: var(--ambar); } .dim { color: var(--cinza); } .terra { color: var(--terra-t); }
.h1 { font-size: 28px; line-height: 1.08; letter-spacing: -.01em; font-stretch: 125%; font-weight: 700; text-transform: uppercase; margin: 0; }
.h2 { font-size: 22px; line-height: 1.1; font-stretch: 125%; font-weight: 700; text-transform: uppercase; margin: 0; }
.sub { font-size: 13px; color: var(--cinza); line-height: 1.45; }
.tiny { font-size: 12px; color: var(--cinza); text-align: center; line-height: 1.4; }
.pad { padding: 0 16px; }
.ico { width: 20px; height: 20px; flex: none; display: block; }

/* cabeçalho e abas */
.hdr { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--linha); }
.hdr img { width: 124px; display: block; }
.seg { display: flex; margin: 12px 16px 0; background: var(--s1); border: 1px solid var(--linha); border-radius: 8px; padding: 4px; gap: 4px; }
.seg a, .seg button { flex: 1; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 12px; letter-spacing: .14em; color: var(--cinza); font-stretch: 125%; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.seg .on { background: var(--areia); color: var(--noite); }
.seg.p4 a, .seg.p4 button { font-size: 11px; letter-spacing: .06em; }

/* aviso de uma linha */
.note { margin: 12px 16px 0; padding: 10px 12px; border-radius: 6px; background: var(--ambar-s); color: var(--ambar); font-size: 13px; display: flex; gap: 10px; align-items: center; }
.note.terra { background: var(--terra-s); color: var(--terra-t); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.offline { position: sticky; top: 0; z-index: 30; background: var(--terra); color: #fff; padding: 10px 16px; display: flex; gap: 10px; align-items: center; font-size: 13px; }

/* seções, fita de dias, legenda */
.sec { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px; gap: 10px; }
.days { display: flex; gap: 8px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding: 0 16px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 54px; height: 66px; border-radius: 6px; background: var(--s1); border: 1px solid var(--linha); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; scroll-snap-align: start; }
.day small { font-size: 10px; letter-spacing: .12em; color: var(--cinza); font-stretch: 125%; font-weight: 700; text-transform: uppercase; }
.day b { font-size: 20px; font-stretch: 125%; font-weight: 700; line-height: 1.1; }
.day.on { background: var(--ambar); border-color: var(--ambar); color: var(--noite); }
.day.on small { color: var(--noite); }
.day.full b { color: var(--cinza2); } .day.full small.st { color: var(--terra-t); }
.day.on.full b, .day.on.full small.st { color: var(--noite); }
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 0 16px; }
.semana .day { width: auto; height: 44px; }
.semana .day b { font-size: 12px; letter-spacing: .06em; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--cinza); align-items: center; }
.lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.lg.f { background: var(--ambar-s); border: 1.5px solid var(--ambar); }
.lg.b { background: repeating-linear-gradient(135deg, #2A231C 0 3px, #16120E 3px 6px); }

/* grade de horários */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px; }
.slot { height: 64px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 100%; }
.slot b { font-size: 19px; font-stretch: 125%; font-weight: 700; line-height: 1.1; }
.slot i { font-style: normal; font-size: 12px; font-weight: 600; }
.slot.f { background: var(--ambar-s); border: 1.5px solid var(--ambar); }
.slot.f i { color: var(--ambar); }
.slot.f:active { background: rgba(233,160,59,.28); }
.slot.b { background: repeating-linear-gradient(135deg, #221C16 0 6px, #16120E 6px 12px); cursor: default; }
.slot.b b { color: var(--cinza2); font-size: 16px; }
.slot.b i { color: var(--cinza2); font-size: 10px; letter-spacing: .14em; font-stretch: 125%; font-weight: 700; text-transform: uppercase; }
.slot.s { background: var(--ambar); border: 1.5px solid var(--ambar); color: var(--noite); }
.slot.s i { color: var(--noite); }
.skel { background: linear-gradient(90deg, #1E1914 0%, #2A231C 50%, #1E1914 100%); background-size: 200% 100%; border-radius: 6px; animation: brilho 1.2s linear infinite; }
@keyframes brilho { to { background-position: -200% 0; } }

/* botões, links, campos */
.btn { height: 52px; width: 100%; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; letter-spacing: .12em; font-stretch: 125%; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.btn.p { background: var(--ambar); color: var(--noite); }
.btn.s { border: 1px solid var(--linha2); color: var(--areia); }
.btn.sm { height: 40px; font-size: 11px; padding: 0 14px; letter-spacing: .1em; width: auto; }
.btn:disabled { opacity: .5; }
.link { color: var(--cinza); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; text-align: center; display: block; width: 100%; padding: 10px 0; }
.fl { display: block; font-size: 13px; color: var(--cinza); margin: 14px 0 6px; }
.inp { height: 48px; width: 100%; border-radius: 6px; background: var(--s1); border: 1px solid var(--linha2); padding: 0 14px; font-size: 16px; outline: none; }
.inp:focus { border-color: var(--ambar); box-shadow: 0 0 0 3px var(--ambar-s); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--linha2); display: flex; align-items: center; font-size: 13px; white-space: nowrap; }
.chip.on { border-color: var(--ambar); color: var(--ambar); background: var(--ambar-s); }
.escolhas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.escolha { text-align: left; padding: 12px; border-radius: 6px; border: 1px solid var(--linha2); background: var(--s1); }
.escolha b { display: block; font-size: 14px; font-stretch: 125%; text-transform: uppercase; letter-spacing: .04em; }
.escolha small { display: block; color: var(--cinza); font-size: 12px; line-height: 1.35; margin-top: 3px; }
.escolha.on { border-color: var(--ambar); background: var(--ambar-s); }
.escolha.on b { color: var(--ambar); }
.erro { color: var(--terra-t); font-size: 13px; margin: 10px 0 0; }
.erro:empty { display: none; }

/* cartões, linhas, selos */
.card { background: var(--s1); border: 1px solid var(--linha); border-radius: 8px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--linha); font-size: 14px; }
.row:last-child { border-bottom: 0; }
.row span:first-child { color: var(--cinza); }
.row span:last-child { text-align: right; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 10px; letter-spacing: .14em; font-weight: 700; font-stretch: 125%; text-transform: uppercase; white-space: nowrap; }
.b-ok { background: rgba(241,233,220,.1); color: var(--areia); }
.b-wait { background: var(--ambar-s); color: var(--ambar); }
.b-late { background: var(--terra-s); color: var(--terra-t); }
.b-off { background: rgba(94,84,70,.35); color: var(--cinza); }
.b-pay { background: var(--ambar); color: var(--noite); }

/* painel que sobe de baixo */
.shade { position: fixed; inset: 0; background: rgba(8,6,4,.72); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .22s; }
.shade.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; z-index: 41; background: var(--s2); border-radius: 16px 16px 0 0; border-top: 1px solid var(--linha2); padding: 10px 16px calc(22px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .22s ease-out; max-height: 92dvh; overflow-y: auto; }
.sheet.on { transform: none; }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--linha2); margin: 0 auto 14px; }

/* Pix */
.codigo { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--cinza); margin: 8px 0 12px; word-break: break-all; line-height: 1.5; max-height: 54px; overflow: hidden; }
.aguarda { display: flex; gap: 14px; align-items: center; margin-top: 20px; padding: 14px; border-radius: 8px; border: 1px solid rgba(233,160,59,.35); }
.anel { width: 40px; height: 40px; border-radius: 50%; flex: none; background: conic-gradient(var(--ambar) 0 70%, rgba(233,160,59,.15) 70% 100%); -webkit-mask: radial-gradient(circle, transparent 13px, #000 14px); mask: radial-gradient(circle, transparent 13px, #000 14px); animation: gira 1.2s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.passos { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.passo { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.passo span { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--ambar); display: flex; align-items: center; justify-content: center; font-size: 11px; flex: none; color: var(--ambar); font-stretch: 125%; font-weight: 700; }
.qr { display: block; width: 220px; height: 220px; margin: 14px auto 0; background: #fff; border-radius: 8px; padding: 8px; }
.qr-falso { width: 220px; height: 120px; margin: 14px auto 0; border: 1px dashed var(--linha2); border-radius: 8px; display: grid; place-items: center; text-align: center; color: var(--cinza); font-size: 12px; padding: 12px; }

/* confirmação */
.selo { position: relative; width: 200px; height: 120px; display: flex; align-items: center; justify-content: center; }
.selo::before { content: ''; position: absolute; inset: -30px 0; background: radial-gradient(closest-side, rgba(233,160,59,.32), rgba(233,160,59,0)); }
.selo div { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--ambar); color: var(--noite); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px rgba(233,160,59,.14); animation: entra .4s ease-out both; }
@keyframes entra { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Pix v2 (03b): selo ao vivo, código em uma linha, QR com moldura */
.live { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--ambar-s); color: var(--ambar); font-size: 13px; }
.live .p { width: 8px; height: 8px; border-radius: 50%; background: var(--ambar); box-shadow: 0 0 0 4px rgba(233,160,59,.22); animation: pulsa 1.4s ease-in-out infinite; }
@keyframes pulsa { 50% { box-shadow: 0 0 0 7px rgba(233,160,59,0); opacity: .6; } }
.code1 { height: 44px; line-height: 44px; border-radius: 6px; background: var(--s2); border: 1px solid var(--linha); display: block; min-width: 0; padding: 0 12px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--cinza); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrwrap { position: relative; padding: 14px; margin: 0 auto; max-width: 100%; }
.qrtile { background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px rgba(0,0,0,.45); }
.qrtile img { display: block; width: 100%; height: auto; }
.qr-teste { aspect-ratio: 1; display: grid; place-items: center; color: #5E5446; font-size: 12px; }
.cn { position: absolute; width: 24px; height: 24px; border-color: var(--ambar); border-style: solid; border-width: 0; }
.cn.tl { left: 0; top: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 10px; }
.cn.tr { right: 0; top: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 10px; }
.cn.bl { left: 0; bottom: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 10px; }
.cn.br { right: 0; bottom: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 10px; }
.stp { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.stp .n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--ambar); color: var(--ambar); display: flex; align-items: center; justify-content: center; font-size: 11px; flex: none; font-stretch: 125%; font-weight: 700; }
.or { display: flex; align-items: center; gap: 10px; color: var(--cinza); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-stretch: 125%; font-weight: 700; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--linha); }
.lock { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--cinza); }

/* várias horas: barra de resumo fixa embaixo */
.barra-sel { position: fixed; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; z-index: 30; background: var(--s2); border-top: 1px solid var(--linha2); border-radius: 16px 16px 0 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; box-shadow: 0 -12px 30px rgba(0,0,0,.35); }
.barra-sel .q { flex: 1; min-width: 0; }
.barra-sel .q b { display: block; font-size: 15px; font-stretch: 125%; font-weight: 700; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-sel .q span { font-size: 13px; color: var(--cinza); }
.barra-sel .btn { width: auto; padding: 0 18px; height: 48px; }
.com-barra { padding-bottom: 110px; }

/* WhatsApp: botão do cabeçalho e rodapé */
.hdr-dir { display: flex; align-items: center; gap: 14px; }
.wa-hdr { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--linha2); border-radius: 6px; font-size: 11px; letter-spacing: .1em; font-stretch: 125%; font-weight: 700; text-transform: uppercase; text-decoration: none; color: var(--areia); white-space: nowrap; }
.wa-hdr .ico { width: 15px; height: 15px; color: var(--ambar); }
.rodape { margin: 40px 16px 0; padding-top: 18px; border-top: 1px solid var(--linha); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13px; }
.rodape a { display: inline-flex; align-items: center; gap: 6px; color: var(--cinza); text-decoration: none; }
.rodape .ico { width: 16px; height: 16px; color: var(--ambar); }
body:has(.barra-sel:not(.hidden)) .rodape { margin-bottom: 84px; }
.wa-ctx { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.wa-ctx .ico { width: 16px; height: 16px; color: var(--ambar); }
