/* Espaço Hair — roxo profundo + dourado */
:root {
  --bg: #faf7fc;
  --surface: #ffffff;
  --text: #1f1430;
  --muted: #7a6d87;
  --line: #ece5f3;
  --plum: #24093f;
  --brand-dark: #3b0c7d;
  --brand: #7b23bd;
  --brand-accent: #c439dd;
  --brand-soft: #f3eafb;
  --gold: #c9a24b;
  --gold-light: #ecd9a4;
  --gold-soft: #fbf4e2;
  --grad: linear-gradient(135deg, #3b0c7d 0%, #7b23bd 60%, #b23fd6 100%);
  --grad-gold: linear-gradient(135deg, #e9d18f 0%, #c9a24b 55%, #a8812f 100%);
  --ok: #1f8a55;
  --ok-soft: #e3f5eb;
  --warn: #a8640a;
  --warn-soft: #fff3dd;
  --danger: #c0392b;
  --radius: 20px;
  --shadow-sm: 0 2px 8px rgba(36, 9, 63, .06);
  --shadow: 0 10px 30px rgba(36, 9, 63, .10);
  --shadow-lg: 0 20px 50px rgba(36, 9, 63, .18);
  --serif: "Playfair Display", Georgia, serif;
  --script: "Dancing Script", cursive;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
img { display: block; max-width: 100%; }
svg.i { width: 18px; height: 18px; flex: 0 0 auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }
.err { color: var(--danger); margin-top: 10px; min-height: 1em; font-size: .88rem; }
.empty { color: var(--muted); padding: 14px 0; }
.serif { font-family: var(--serif); }
.script { font-family: var(--script); font-weight: 700; }

/* ---------- estrutura ---------- */
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: 100px; overflow-x: hidden; }
@media (min-width: 520px) { body.client { background: #ebe2f4; } .app { box-shadow: 0 0 60px rgba(36,9,63,.15); } }
#view { animation: viewIn .35s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #view, .reveal { animation: none !important; } html { scroll-behavior: auto; } }

/* barra superior */
.appbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 10px 16px; min-height: 60px;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); transition: background .25s, border-color .25s; }
.appbar .logo { height: 40px; width: auto; }
.appbar .spacer { flex: 1; }
.appbar h1 { font-family: var(--serif); font-size: 1.15rem; margin: 0; flex: 1; text-align: center; }
.appbar.over { position: absolute; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.appbar.over.solid { position: fixed; left: 50%; right: auto; transform: translateX(-50%); width: 100%; max-width: 480px; background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-color: var(--line); }
.appbar .logo-dark { display: none; }
.appbar.over.solid .logo-light { display: none; }
.appbar.over.solid .logo-dark { display: block; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--brand-dark); text-decoration: none; transition: transform .15s; }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }
.appbar.over:not(.solid) .icon-btn { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---------- hero (inicio) ---------- */
.hero { position: relative; height: min(88vh, 620px); min-height: 520px; color: #fff; overflow: hidden; background: var(--plum); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transform: scale(1.04); animation: heroZoom 12s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(36,9,63,.55) 0%, rgba(36,9,63,0) 22%, rgba(36,9,63,0) 40%, rgba(28,6,52,.88) 78%, #1c0634 100%); }
.hero .txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 20px 28px; }
.hero .sig { font-family: var(--script); font-weight: 700; font-size: 1.7rem; color: var(--gold-light); line-height: 1; }
.hero h2 { font-family: var(--serif); font-weight: 600; font-size: 2.1rem; line-height: 1.12; margin: 6px 0 14px; letter-spacing: -.01em; }
.hero h2 em { font-style: italic; color: var(--gold-light); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip-glass { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 500; padding: 6px 11px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.chip-glass svg { width: 14px; height: 14px; color: var(--gold-light); }
.hero .ctas { display: flex; gap: 10px; }
.hero .ctas .btn { margin: 0; flex: 1; white-space: nowrap; padding: 14px 12px; font-size: .92rem; }
.hero .ctas .btn.gold { flex: 1.3; }

/* curva de transicao do hero para o conteudo */
.sheet { position: relative; z-index: 3; margin-top: -18px; background: var(--bg); border-radius: 24px 24px 0 0; padding-top: 6px; }

/* ---------- secoes ---------- */
.section { padding: 0 16px; margin-top: 26px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; gap: 10px; }
.section-head h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; letter-spacing: -.01em; }
.section-head h2 small { display: block; font-family: "Poppins", sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.section-head a, .link { color: var(--brand); font-weight: 600; font-size: .85rem; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }

/* carrossel horizontal */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; margin: 0 -16px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }

/* destaque grande */
.feature { position: relative; width: 78%; max-width: 330px; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; border: 0; padding: 0; text-align: left; color: #fff; background: var(--plum); }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.feature:hover img { transform: scale(1.04); }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(28,6,52,.9)); }
.feature .info { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; }
.feature .info b { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.feature .info span { font-size: .85rem; opacity: .9; }
.feature .row-b { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.feature .price { font-weight: 700; color: var(--gold-light); }
.badge-gold { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--grad-gold); color: #3a2a06; font-size: .7rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; letter-spacing: .02em; box-shadow: 0 4px 12px rgba(168,129,47,.35); }
.go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.go svg { width: 18px; height: 18px; }

/* categorias (chips fixos) */
.cat-bar { position: sticky; top: 60px; z-index: 30; background: rgba(250,247,252,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 10px 0; margin: 0 -16px; }
.cat-bar .rail { padding: 0 16px; margin: 0; gap: 8px; }
.pill-cat { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 14px 5px 5px; cursor: pointer; font-size: .85rem; font-weight: 500; white-space: nowrap; transition: all .2s; box-shadow: var(--shadow-sm); }
.pill-cat img, .pill-cat .dot { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--grad); }
.pill-cat .dot { display: grid; place-items: center; color: #fff; }
.pill-cat .dot svg { width: 14px; height: 14px; }
.pill-cat.sel { background: var(--plum); color: #fff; border-color: var(--plum); }

/* lista de servicos */
.svc-row { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s; }
.svc-row + .svc-row { margin-top: 10px; }
.svc-row:active { transform: scale(.985); }
.svc-row:hover { box-shadow: var(--shadow); }
.svc-row img, .svc-row .ph { width: 82px; height: 82px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; background: var(--grad); }
.svc-row .grow { flex: 1; min-width: 0; }
.svc-row b { display: block; font-size: .98rem; line-height: 1.25; }
.svc-row .meta { display: flex; gap: 10px; color: var(--muted); font-size: .8rem; margin-top: 3px; align-items: center; }
.svc-row .meta span { display: inline-flex; align-items: center; gap: 4px; }
.svc-row .meta svg { width: 14px; height: 14px; }
.svc-row .price { font-weight: 700; color: var(--brand-dark); margin-top: 4px; }
.svc-row .add { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.svc-row .add svg { width: 18px; height: 18px; }
.cat-title { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.cat-title:first-child { margin-top: 6px; }

/* busca */
.search { position: relative; }
.search input { width: 100%; padding: 14px 14px 14px 46px; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }

/* ---------- antes e depois ---------- */
.ba { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); user-select: none; touch-action: pan-y; background: #ddd; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); box-shadow: 0 0 12px rgba(0,0,0,.3); }
.ba .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%,-50%); border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b0c7d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: var(--shadow); }
.ba .lbl { position: absolute; top: 14px; z-index: 1; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ba .lbl.l { left: 14px; } .ba .lbl.r { right: 14px; background: var(--grad-gold); color: #3a2a06; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-cap { margin-top: 10px; font-weight: 600; text-align: center; }

.work { width: 150px; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; }
.work img { width: 150px; height: 188px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-sm); }
.work span { display: block; font-size: .82rem; font-weight: 500; margin-top: 6px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,5,36,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; animation: viewIn .2s ease; }
.lightbox img { max-height: 78vh; border-radius: 18px; }
.lightbox p { color: #fff; margin: 14px 0 0; font-weight: 500; }
.lightbox .icon-btn { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: #fff; }

/* profissional */
.pro-card { display: flex; gap: 14px; align-items: center; background: var(--plum); color: #fff; border-radius: 24px; padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pro-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,75,.35), transparent 70%); }
.pro-card img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.pro-card .sig { font-family: var(--script); font-weight: 700; font-size: 1.45rem; color: var(--gold-light); line-height: 1; }
.pro-card p { margin: 4px 0 8px; font-size: .85rem; opacity: .85; }
.pro-card a { color: #fff; font-size: .82rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; position: relative; z-index: 1; }

/* politica (sanfona) */
details.acc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
details.acc summary { list-style: none; cursor: pointer; padding: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
details.acc[open] summary .chev { transform: rotate(180deg); }
details.acc .body { padding: 0 16px 16px; }

.policy { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.policy li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.policy li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8812f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* rodape */
.footer { margin: 34px 16px 0; padding: 22px 18px; border-radius: 24px; background: var(--plum); color: rgba(255,255,255,.85); text-align: center; }
.footer img { height: 46px; margin: 0 auto 10px; }
.footer a { color: var(--gold-light); text-decoration: none; font-weight: 600; }
.footer p { margin: 6px 0; font-size: .85rem; }

/* ---------- cards / formularios ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 12px; }
.card h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
label { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); margin: 12px 0 5px; }
input, select, textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--text); font-size: .9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: 0 0 auto; box-shadow: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 16px; padding: 14px 18px;
  background: var(--grad); color: #fff; font-weight: 600; cursor: pointer; margin-top: 14px; text-decoration: none; box-shadow: 0 8px 20px rgba(123,35,189,.28); transition: transform .15s, filter .2s, box-shadow .2s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; box-shadow: none; transform: none; }
.btn svg { width: 18px; height: 18px; }
.btn.gold { background: var(--grad-gold); color: #2e2104; box-shadow: 0 8px 20px rgba(168,129,47,.35); }
.btn.glass { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); color: #fff; box-shadow: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.ghost { background: #fff; color: var(--brand-dark); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn.sm { width: auto; padding: 7px 12px; font-size: .82rem; margin-top: 0; border-radius: 10px; box-shadow: none; }
.btn.wa { background: #1faa59; box-shadow: 0 8px 20px rgba(31,170,89,.25); }

/* ---------- agendamento ---------- */
.steps { display: flex; align-items: center; gap: 6px; padding: 12px 16px 0; }
.steps .s { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: .72rem; font-weight: 600; color: var(--muted); }
.steps .s::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.steps .s.done::before, .steps .s.cur::before { background: var(--grad); }
.steps .s.cur { color: var(--brand-dark); }

.svc-hero { position: relative; height: 300px; background: var(--plum); color: #fff; overflow: hidden; }
.svc-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.svc-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,9,63,.45) 0%, rgba(0,0,0,0) 30%, rgba(28,6,52,.9) 100%); }
.svc-hero .t { position: absolute; left: 18px; right: 18px; bottom: 34px; z-index: 1; }
.svc-hero .t small { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.svc-hero .t h2 { margin: 2px 0 0; font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1.15; }
.svc-hero .back { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; text-align: center; box-shadow: var(--shadow-sm); }
.fact small { display: block; color: var(--muted); font-size: .72rem; }
.fact b { font-size: .98rem; }
.fact.gold { background: var(--gold-soft); border-color: #f0e2bd; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 60px; scroll-snap-align: start; border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 10px 0 8px; text-align: center; cursor: pointer; position: relative; transition: all .2s; box-shadow: var(--shadow-sm); }
.day span { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.day b { display: block; font-size: 1.2rem; font-family: var(--serif); }
.day i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin: 3px auto 0; }
.day.off { opacity: .4; cursor: not-allowed; box-shadow: none; background: transparent; }
.day.off i { background: transparent; }
.day.sel { background: var(--plum); color: #fff; border-color: var(--plum); transform: translateY(-2px); box-shadow: var(--shadow); }
.day.sel span { color: rgba(255,255,255,.75); }

.period { margin-top: 16px; }
.period h4 { margin: 0 0 8px; font-size: .8rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.period h4 svg { width: 16px; height: 16px; color: var(--gold); }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 0; cursor: pointer; font-weight: 500; font-size: .92rem; transition: all .15s; }
.time:hover { border-color: var(--brand); }
.time.extra { border-style: dashed; }
.time.sel { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(123,35,189,.3); }

.pro-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 8px 14px 8px 8px; cursor: pointer; }
.pro-opt img, .pro-opt .av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--grad); }
.pro-opt.sel { border-color: var(--brand); background: var(--brand-soft); }
.pros { display: flex; gap: 8px; flex-wrap: wrap; }

/* barra de acao */
.action-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; }
.action-bar .sum { flex: 1; line-height: 1.2; min-width: 0; }
.action-bar .sum small { display: block; color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-bar .sum b { font-size: 1.25rem; }
.action-bar .btn { width: auto; margin: 0; padding: 14px 22px; }

/* menu inferior */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; width: calc(100% - 24px); max-width: 456px; z-index: 45;
  display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(36,9,63,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 22px; padding: 8px 6px calc(8px + env(safe-area-inset-bottom) * .5); box-shadow: var(--shadow-lg); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: rgba(255,255,255,.6); font-size: .68rem; font-weight: 500; padding: 4px 0; border-radius: 14px; transition: color .2s; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.sel { color: var(--gold-light); }

.summary { background: var(--brand-soft); border-radius: 16px; padding: 12px 14px; font-size: .92rem; }
.summary div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.summary .total { font-weight: 700; border-top: 1px dashed #d6c1ea; margin-top: 6px; padding-top: 8px; }
.notice { display: flex; gap: 8px; background: var(--warn-soft); color: #7a4a00; border-radius: 14px; padding: 10px 12px; font-size: .84rem; margin-top: 12px; }

.mini { display: flex; gap: 12px; align-items: center; }
.mini img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.mini b { display: block; }

/* pagamento */
.qr-box { background: #fff; border-radius: 20px; padding: 14px; width: 248px; margin: 12px auto; box-shadow: var(--shadow); border: 1px solid var(--line); }
.qr { width: 220px; height: 220px; }
.qr-demo { display: grid; place-items: center; width: 220px; height: 220px; border-radius: 12px; border: 2px dashed var(--line); color: var(--muted); font-size: .85rem; padding: 16px; text-align: center; }
.pix-code { width: 100%; font-family: ui-monospace, monospace; font-size: .72rem; word-break: break-all; background: #f5f0f9; padding: 10px 12px; border-radius: 12px; max-height: 70px; overflow: auto; }
.timer-ring { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--warn); font-weight: 600; }
.timer { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ingresso (confirmacao) */
.ticket { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.ticket .top { background: var(--grad); color: #fff; padding: 22px 18px 18px; text-align: center; position: relative; }
.ticket .top .ok { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); margin: 0 auto 8px; font-size: 1.6rem; }
.ticket .top h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; }
.ticket .top p { margin: 4px 0 0; opacity: .9; font-size: .9rem; }
.ticket .cut { height: 22px; position: relative; background: var(--surface); }
.ticket .cut::before, .ticket .cut::after { content: ""; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.ticket .cut::before { left: -11px; } .ticket .cut::after { right: -11px; }
.ticket .cut i { position: absolute; left: 20px; right: 20px; top: 10px; border-top: 2px dashed var(--line); }
.ticket .body { padding: 0 18px 18px; }
.ticket .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ticket .grid2 small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.ticket .grid2 b { font-size: .98rem; }
.ticket.warn .top { background: linear-gradient(135deg, #8a5a00, #c98a1c); }
.ticket.bad .top { background: linear-gradient(135deg, #5b2333, #9b3348); }

.badge { display: inline-block; font-size: .72rem; padding: 3px 9px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.b-confirmed { background: var(--ok-soft); color: var(--ok); }
.b-pending_payment, .b-awaiting_confirmation { background: var(--warn-soft); color: var(--warn); }
.b-cancelled, .b-no_show, .b-refund_needed, .b-expired { background: #fde8e6; color: var(--danger); }
.b-done { background: #e8eef9; color: #3b5ba9; }
.b-rescheduled { background: #efe8f9; color: #6a4aa8; }

.list-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; }
.list-item + .list-item { margin-top: 10px; }
.list-item img, .list-item .thumb { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; background: var(--grad); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .grow b { display: block; }

.contact a.row-link { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.contact a.row-link:first-of-type { border-top: 0; }
.contact .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.contact .ic svg { width: 20px; height: 20px; }

/* esqueleto de carregamento */
.sk { background: linear-gradient(90deg, #efe8f5 0%, #f8f4fb 50%, #efe8f5 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.reveal { animation: viewIn .5s ease both; }

/* ---------- painel (admin) ---------- */
.wrap { max-width: 900px; margin: 0 auto; padding: 16px 16px 48px; }
header.top { text-align: center; padding: 14px 0 4px; }
header.top img { height: 44px; margin: 0 auto; }
header.top h1 { margin: 6px 0 0; font-size: 1.15rem; font-family: var(--serif); color: var(--brand-dark); }
.wrap .card { margin-top: 14px; }
.wrap .card h2 { margin: 0 0 12px; font-size: 1.1rem; font-family: var(--serif); }
