/* Convite Voucher — "Mesa Posta": linho, vinho e ouro */
:root {
  --linen: #f4ecdf;
  --paper: #fbf7f0;
  --card: #fffdf9;
  --ink: #2a1d17;
  --muted: #7b6a5d;
  --line: rgba(42, 29, 23, 0.12);
  --wine: #7a1f2b;
  --wine-deep: color-mix(in srgb, var(--wine) 62%, #000);
  --wine-soft: color-mix(in srgb, var(--wine) 10%, transparent);
  --gold: #b8893b;
  --gold-hi: #e9cf94;
  --gold-soft: #f3e6c6;
  --olive: #5e6b3c;
  --ok: #2f7d4f;
  --warn: #b7791f;
  --danger: #b4232f;
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(42, 29, 23, .06), 0 12px 32px -12px rgba(42, 29, 23, .22);
  --nav-h: 72px;
  --dark: #1c1210;
  --gold-mid: #d4a650;
  --gold-ink: #3b2410;
  --gold-deep: #9a6b1f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--dark);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.ic { width: 20px; height: 20px; flex: none; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* moldura do app: no computador vira um "celular" no centro */
.app {
  position: relative;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--linen);
  background-image:
    repeating-linear-gradient(0deg, rgba(42, 29, 23, .018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(42, 29, 23, .018) 0 1px, transparent 1px 3px);
  padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom));
  box-shadow: 0 0 80px rgba(0, 0, 0, .5);
}

/* ================= Abertura: a cloche ================= */
.intro {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px calc(32px + env(safe-area-inset-bottom));
  text-align: center; color: var(--gold-soft);
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(184, 137, 59, .28), transparent 60%),
    radial-gradient(90% 60% at 50% -10%, color-mix(in srgb, var(--wine) 70%, #fff 0%), transparent 70%),
    linear-gradient(180deg, var(--wine-deep), var(--dark) 85%);
  transition: opacity .9s ease, visibility .9s;
  overflow: hidden;
}
.intro.out { opacity: 0; visibility: hidden; }
/* foto de fundo opcional, coberta pela cor escura do tema (o anfitrião escolhe o quanto) */
.intro-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.intro-bg img { position: absolute; max-width: none; inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px); object-fit: cover; }
.intro-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--wine-deep), var(--dark) 85%); opacity: var(--dim, .7); }
.intro > *:not(.intro-bg) { position: relative; z-index: 1; }
.intro > .intro-foot { position: absolute; }
.intro::before { /* veludo */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 6px);
}
.intro-kicker { font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--gold-hi); opacity: 0; animation: rise .9s .2s forwards; }
.intro-name { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 10vw, 46px); line-height: 1.05; margin: 14px 0 6px; color: #fff7ea; opacity: 0; animation: rise .9s .45s forwards; }
.intro-sub { font-size: 14px; color: rgba(243, 230, 198, .75); max-width: 300px; opacity: 0; animation: rise .9s .7s forwards; }
.stage { position: relative; width: 300px; height: 250px; margin: 26px 0 12px; opacity: 0; animation: rise 1s .9s forwards; }
.plate { position: absolute; left: 50%; bottom: 22px; width: 300px; transform: translateX(-50%); }
.plate svg { width: 100%; height: auto; display: block; }
.voucher-mini {
  position: absolute; left: 50%; bottom: 46px; width: 190px; height: 112px; transform: translateX(-50%) scale(.6) rotate(-4deg);
  border-radius: 12px; opacity: 0;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-mid) 45%, var(--gold-hi) 60%, var(--gold));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color: var(--gold-ink); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--serif); transition: transform 1s cubic-bezier(.2, .9, .2, 1.2) .35s, opacity .6s .35s;
}
.voucher-mini b { font-size: 26px; font-style: italic; font-weight: 500; }
.voucher-mini small { font-family: var(--sans); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; }
.cloche {
  position: absolute; left: 50%; bottom: 36px; width: 250px; transform: translateX(-50%);
  transform-origin: 50% 100%; transition: transform 1.1s cubic-bezier(.6, -0.2, .2, 1), opacity .9s .3s;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45));
  animation: breathe 3.2s ease-in-out infinite;
}
.cloche svg { width: 100%; height: auto; display: block; }
.stage.open .cloche { animation: none; transform: translate(-30%, -230px) rotate(24deg); opacity: 0; }
.stage.open .voucher-mini { opacity: 1; transform: translateX(-50%) translateY(-24px) scale(1) rotate(-3deg); }
.steam { position: absolute; left: 50%; bottom: 80px; width: 120px; height: 140px; transform: translateX(-50%); pointer-events: none; opacity: 0; }
.stage.open .steam { opacity: 1; }
.steam i { position: absolute; bottom: 0; width: 18px; height: 70px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .55), transparent); filter: blur(6px); animation: steam 2.6s ease-out infinite; }
.steam i:nth-child(1) { left: 20px; animation-delay: .1s; }
.steam i:nth-child(2) { left: 52px; animation-delay: .7s; }
.steam i:nth-child(3) { left: 84px; animation-delay: 1.2s; }
.intro-cta {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: .02em;
  color: var(--gold-ink); background: linear-gradient(135deg, var(--gold-soft), var(--gold-mid) 50%, var(--gold-hi));
  box-shadow: 0 10px 30px -8px rgba(212, 166, 80, .7), inset 0 1px 0 rgba(255, 255, 255, .6);
  opacity: 0; animation: rise .9s 1.3s forwards, glow 2.4s 2.2s ease-in-out infinite;
}
.intro-foot { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(243, 230, 198, .45); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-2px); } }
@keyframes steam { 0% { transform: translateY(0) scaleX(1); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-110px) scaleX(2.2); opacity: 0; } }
@keyframes glow { 0%, 100% { box-shadow: 0 10px 30px -8px rgba(212, 166, 80, .7), inset 0 1px 0 rgba(255, 255, 255, .6); } 50% { box-shadow: 0 10px 44px -4px rgba(233, 207, 148, .95), inset 0 1px 0 rgba(255, 255, 255, .6); } }

/* ================= Topo ================= */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; padding-top: calc(12px + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--linen) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand small { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.brand b { font-family: var(--serif); font-weight: 600; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--wine-soft); color: var(--wine);
}
.chip.gold { background: var(--gold-soft); color: var(--gold-deep); }
.chip.ok { background: rgba(47, 125, 79, .12); color: var(--ok); }
.chip.warn { background: rgba(183, 121, 31, .14); color: var(--warn); }
.chip.dark { background: var(--ink); color: var(--gold-soft); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ================= Navegação inferior ================= */
.nav {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom)); width: min(452px, calc(100% - 24px));
  display: flex; justify-content: space-around; padding: 7px; border-radius: 26px;
  background: color-mix(in srgb, var(--dark) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55);
}
.nav button {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; border-radius: 19px; color: rgba(243, 230, 198, .58); font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  transition: background .25s, color .25s;
}
.nav button .ic { width: 21px; height: 21px; }
.nav button[aria-current='page'] { color: var(--gold-ink); background: linear-gradient(135deg, var(--gold-hi), var(--gold-mid)); }
.nav button .badge { position: absolute; top: 4px; right: calc(50% - 20px); min-width: 8px; height: 8px; border-radius: 99px; background: #ff5a5a; box-shadow: 0 0 0 2px color-mix(in srgb, var(--dark) 92%, transparent); }
.nav .live-btn:not([aria-current='page']) { color: #ffb4a8; }

/* ================= Telas ================= */
.view { display: none; animation: fade .45s ease; }
.view.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pad { padding: 0 18px; }
.section { margin: 30px 0 0; }
.eyebrow { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 800; color: var(--gold); margin: 0 0 8px; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; margin: 0 0 14px; letter-spacing: -.01em; }
.h2 em { font-style: italic; color: var(--wine); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-pad { padding: 20px; }
p { line-height: 1.6; }

/* capa */
.hero { position: relative; margin: 0; height: 430px; overflow: hidden; background: var(--wine-deep); }
.hero img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.16) translate(-2%, -2%); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 13, 15, .25) 0%, rgba(28, 13, 15, .05) 35%, rgba(28, 13, 15, .82) 100%); }
.hero-txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 22px 56px; color: #fff7ea; }
.hero-txt .chip { background: rgba(255, 247, 234, .16); color: #fff7ea; backdrop-filter: blur(8px); }
.hero-title { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 12vw, 54px); line-height: .98; margin: 12px 0 10px; letter-spacing: -.02em; }
.hero-title em { font-style: italic; color: var(--gold-hi); }
.hero-sub { margin: 0; font-size: 15px; color: rgba(255, 247, 234, .85); max-width: 360px; }

/* cartão de data estilo menu impresso */
.datecard { margin: -34px 18px 0; position: relative; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; padding: 18px 10px; }
.datecard .col small { display: block; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.datecard .col b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; margin-top: 4px; text-transform: capitalize; }
.datecard .big { font-family: var(--serif); font-size: 58px; line-height: .9; font-weight: 400; color: var(--wine); padding: 0 18px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.datecard .big small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 800; margin-top: 6px; }

/* contagem regressiva */
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.count div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-align: center; padding: 12px 0 10px; }
.count b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 500; font-variant-numeric: tabular-nums; }
.count small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* faixa do prazo + gamificação */
.deadline {
  margin: 18px 18px 0; padding: 16px 18px; border-radius: var(--radius); color: #fff7ea; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--wine-deep), var(--wine));
  box-shadow: 0 16px 36px -16px color-mix(in srgb, var(--wine) 80%, transparent);
}
.deadline::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(233, 207, 148, .35), transparent); }
.deadline small { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi); font-weight: 800; }
.deadline .clock { font-family: var(--serif); font-size: 34px; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.deadline p { margin: 0; font-size: 13px; color: rgba(255, 247, 234, .82); }
.bonus {
  margin: 10px 18px 0; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-hi)); color: var(--gold-ink); border: 1px dashed rgba(122, 84, 24, .45);
}
.bonus .ic { width: 28px; height: 28px; color: var(--gold-deep); }
.bonus b { display: block; font-size: 14px; }
.bonus span { font-size: 12.5px; }

/* botões */
.btn { text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 22px;
  border-radius: 999px; font-weight: 800; font-size: 15px; letter-spacing: .01em; transition: transform .15s, opacity .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-wine { background: var(--wine); color: #fff7ea; box-shadow: 0 12px 26px -12px var(--wine); }
.btn-gold { color: var(--gold-ink); background: linear-gradient(135deg, var(--gold-soft), var(--gold-mid) 50%, var(--gold-hi)); box-shadow: 0 12px 26px -12px rgba(212, 166, 80, .9); }
.btn-ghost { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--gold-soft); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.cta-bar { margin: 22px 18px 0; display: grid; gap: 10px; }

/* local */
.place { display: flex; gap: 14px; align-items: flex-start; }
.place .pin { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--wine-soft); color: var(--wine); flex: none; }
.place b { font-family: var(--serif); font-size: 19px; font-weight: 500; display: block; }
.place span { font-size: 13.5px; color: var(--muted); }

/* história */
.story p { font-size: 16px; margin: 0 0 14px; color: var(--ink); }
.story .lead::first-letter { font-family: var(--serif); float: left; font-size: 64px; line-height: .8; padding: 6px 10px 0 0; color: var(--wine); font-style: italic; }
.chef { display: flex; gap: 14px; align-items: center; margin-top: 8px; padding: 14px; }
.chef img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-soft); }
.chef b { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.chef p { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.infos { display: grid; gap: 10px; }
.info { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
.info .ic { color: var(--gold); margin-top: 2px; }
.info b { display: block; font-size: 13px; }
.info span { font-size: 13.5px; color: var(--muted); }

/* depoimentos e edições */
.scroller { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 18px 10px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; flex: none; }
.quote { width: 82%; padding: 20px; }
.quote .stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.quote p { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; margin: 8px 0 12px; }
.quote small { font-weight: 700; color: var(--muted); }
.edition { width: 78%; overflow: hidden; }
.edition .cover { height: 170px; position: relative; }
.edition .cover img { width: 100%; height: 100%; object-fit: cover; }
.edition .cover span { position: absolute; left: 12px; bottom: 12px; }
.edition .body { padding: 14px 16px 16px; }
.edition b { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.edition .meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

/* lista VIP */
.vip { padding: 22px; background: var(--ink); color: var(--gold-soft); border-radius: var(--radius); position: relative; overflow: hidden; }
.vip::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 60% at 100% 0%, rgba(184, 137, 59, .35), transparent 60%); }
.vip > * { position: relative; }
.vip h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 6px; color: #fff7ea; }
.vip p { margin: 0 0 14px; font-size: 14px; color: rgba(243, 230, 198, .75); }
.field { display: block; width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 137, 59, .18); }
.vip .field { background: rgba(255, 247, 234, .08); border-color: rgba(243, 230, 198, .2); color: #fff7ea; }
.vip .field::placeholder { color: rgba(243, 230, 198, .5); }
textarea.field { min-height: 96px; resize: vertical; }
.stack { display: grid; gap: 10px; }
.footer { text-align: center; padding: 34px 18px 8px; font-size: 12px; color: var(--muted); }
.footer b { font-family: var(--serif); font-size: 16px; color: var(--ink); font-weight: 500; display: block; }

/* ================= Cardápio impresso ================= */
.menu-card { margin: 18px; padding: 34px 24px; text-align: center; position: relative; background: var(--paper); }
.menu-card::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(184, 137, 59, .45); border-radius: 15px; pointer-events: none; }
.menu-card .orn { color: var(--gold); font-size: 20px; letter-spacing: 10px; }
.menu-card h2 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 38px; margin: 6px 0 2px; color: var(--wine); }
.course { margin-top: 30px; }
.course h3 { font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.course h3::before, .course h3::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(184, 137, 59, .55), transparent); }
.dish { margin: 0 0 18px; }
.dish b { font-family: var(--serif); font-weight: 500; font-size: 20px; display: block; }
.dish span { font-size: 13.5px; color: var(--muted); display: block; margin-top: 3px; line-height: 1.5; }
.dish img { width: 100%; height: 170px; object-fit: cover; border-radius: 16px; margin: 12px 0 0; }

/* ================= Voucher dourado ================= */
.voucher-wrap { padding: 22px 18px 0; perspective: 1200px; }
.voucher {
  position: relative; border-radius: 26px; overflow: hidden; color: var(--gold-ink);
  background: linear-gradient(140deg, var(--gold-soft) 0%, var(--gold-hi) 28%, var(--gold-soft) 46%, var(--gold-mid) 70%, var(--gold-hi) 100%);
  box-shadow: 0 30px 60px -24px rgba(90, 58, 16, .65), inset 0 1px 0 rgba(255, 255, 255, .7);
  animation: print 1.1s cubic-bezier(.2, .9, .3, 1.1);
}
.voucher.shine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-100%); animation: shine 3.6s 1s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
@keyframes print { from { transform: translateY(-30px) rotateX(35deg); opacity: 0; } to { transform: none; opacity: 1; } }
.voucher .top { padding: 22px 22px 18px; position: relative; }
.voucher .top .tag { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; font-weight: 800; }
.voucher .top h2 { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 34px; line-height: 1.02; margin: 14px 0 4px; color: var(--gold-ink); }
.voucher .top .ev { font-size: 13.5px; font-weight: 600; opacity: .8; }
.voucher .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 16px; }
.voucher .grid div { background: rgba(255, 255, 255, .28); padding: 10px 10px 9px; }
.voucher .grid div:first-child { border-radius: 12px 0 0 12px; }
.voucher .grid div:last-child { border-radius: 0 12px 12px 0; }
.voucher .grid small { display: block; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; opacity: .7; }
.voucher .grid b { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.voucher .perf { position: relative; height: 22px; }
.voucher .perf::before { content: ''; position: absolute; left: 22px; right: 22px; top: 50%; border-top: 2px dashed rgba(59, 36, 16, .35); }
.voucher .perf::after { content: ''; position: absolute; inset: 0; background:
  radial-gradient(circle at 0 50%, var(--linen) 11px, transparent 12px),
  radial-gradient(circle at 100% 50%, var(--linen) 11px, transparent 12px); }
.voucher .bottom { display: flex; gap: 16px; align-items: center; padding: 16px 22px 22px; }
.voucher .qr { width: 132px; height: 132px; padding: 8px; background: #fffaf0; border-radius: 16px; flex: none; box-shadow: inset 0 0 0 1px rgba(59, 36, 16, .12); }
.voucher .qr > svg { width: 100%; height: 100%; }
.voucher .serial { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; font-weight: 800; opacity: .7; }
.voucher .code { font-family: var(--serif); font-size: 30px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.voucher .hint { font-size: 12px; line-height: 1.4; margin-top: 4px; opacity: .8; }
.stamp {
  position: absolute; right: 16px; top: 54px; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; transform: rotate(14deg);
  border: 2px solid color-mix(in srgb, var(--wine) 75%, transparent); color: color-mix(in srgb, var(--wine) 90%, transparent);
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; line-height: 1.3;
  box-shadow: inset 0 0 0 4px rgba(251, 239, 207, .5), inset 0 0 0 5px color-mix(in srgb, var(--wine) 50%, transparent);
  animation: stamp .5s 1s cubic-bezier(.3, 1.6, .5, 1) both;
}
.stamp b { display: block; font-family: var(--serif); font-size: 15px; letter-spacing: 0; text-transform: none; font-style: italic; }
@keyframes stamp { from { transform: rotate(14deg) scale(2.2); opacity: 0; } to { transform: rotate(14deg) scale(1); opacity: 1; } }
.voucher.void { filter: grayscale(.9) brightness(.95); }
.voucher.void::before { content: attr(data-void); position: absolute; z-index: 3; top: 42%; left: -10%; right: -10%; text-align: center; transform: rotate(-12deg); font-family: var(--serif); font-size: 40px; font-style: italic; color: var(--danger); border-top: 3px solid; border-bottom: 3px solid; background: rgba(255, 250, 240, .75); }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 18px 0; }
.action { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; text-align: left; min-height: 104px; }
.action .ic { width: 26px; height: 26px; color: var(--wine); }
.action b { font-size: 14px; }
.action span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.action.on { outline: 2px solid var(--ok); }

/* ================= Folha (bottom sheet) ================= */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(28, 13, 15, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.sheet-bg.show { opacity: 1; }
.sheet {
  position: fixed; z-index: 61; left: 50%; bottom: 0; width: min(480px, 100%); max-height: 92dvh; overflow-y: auto;
  transform: translate(-50%, 100%); transition: transform .42s cubic-bezier(.2, .9, .3, 1);
  background: var(--paper); border-radius: 28px 28px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
}
.sheet.show { transform: translate(-50%, 0); }
.sheet .grab { width: 42px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0 0 4px; }
.sheet .sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { flex: 1; height: 4px; border-radius: 9px; background: var(--line); }
.steps i.on { background: var(--wine); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice button { padding: 22px 14px; border-radius: 20px; border: 2px solid var(--line); background: var(--card); text-align: center; }
.choice button .emo { font-size: 34px; display: block; margin-bottom: 8px; }
.choice button b { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.choice button.sel { border-color: var(--wine); background: var(--wine-soft); }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; margin-bottom: 10px; }
.stepper b { display: block; font-size: 15px; }
.stepper span { font-size: 12.5px; color: var(--muted); }
.stepper .ctl { display: flex; align-items: center; gap: 14px; }
.stepper .ctl button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--linen); border: 1px solid var(--line); }
.stepper .ctl output { font-family: var(--serif); font-size: 24px; min-width: 22px; text-align: center; }
.label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; display: block; }

/* ================= Mapa de mesas ================= */
.floor {
  position: relative; aspect-ratio: 4 / 4.4; border-radius: 22px; overflow: hidden;
  background:
    linear-gradient(rgba(42, 29, 23, .05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(42, 29, 23, .05) 1px, transparent 1px) 0 0 / 22px 22px,
    #efe5d4;
  border: 1px solid var(--line);
}
.floor .lbl { position: absolute; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 800; color: rgba(42, 29, 23, .4); }
.floor .lbl.top { top: 8px; left: 50%; transform: translateX(-50%); }
.floor .lbl.bot { bottom: 8px; left: 50%; transform: translateX(-50%); }
.tbl {
  position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%; font-family: var(--serif); font-size: 18px; font-weight: 600;
  background: var(--card); border: 2px solid rgba(47, 125, 79, .55); color: var(--ink);
  box-shadow: 0 6px 14px -6px rgba(42, 29, 23, .35); transition: transform .2s, background .2s;
}
.tbl small { position: absolute; bottom: -17px; font-family: var(--sans); font-size: 9.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.tbl.square { border-radius: 12px; }
.tbl.long { width: 150px; height: 44px; border-radius: 14px; }
.tbl.taken, .tbl.pending, .tbl.confirmed, .tbl.arrived { background: #ddd2c1; border-color: transparent; color: rgba(42, 29, 23, .35); }
.tbl.small { opacity: .45; }
.tbl.sel, .tbl.mine { background: var(--wine); border-color: var(--gold-hi); color: #fff7ea; transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 6px rgba(184, 137, 59, .25), 0 10px 22px -8px var(--wine); }
.tbl.sel small, .tbl.mine small { color: var(--wine); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.picked { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--wine-soft); color: var(--wine); font-weight: 700; font-size: 14px; text-align: center; }

/* ================= Ao vivo ================= */
.live-head { margin: 18px; padding: 22px; border-radius: var(--radius); color: #fff7ea; background: linear-gradient(140deg, var(--dark), var(--wine-deep)); position: relative; overflow: hidden; }
.live-head::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(233, 207, 148, .28), transparent); }
.live-head h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 10px 0 2px; }
.live-head p { margin: 0; color: rgba(243, 230, 198, .75); font-size: 14px; }
.call-btn {
  position: relative; display: grid; place-items: center; width: 168px; height: 168px; margin: 34px auto 0; border-radius: 50%;
  color: #fff7ea; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--wine) 70%, #fff 30%), var(--wine) 55%, var(--wine-deep));
  box-shadow: 0 20px 40px -16px var(--wine), inset 0 2px 0 rgba(255, 255, 255, .25);
  font-weight: 800; font-size: 15px; text-align: center; line-height: 1.25;
}
.call-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.call-btn .ic { width: 38px; height: 38px; display: block; }
.call-btn::before, .call-btn::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--wine) 40%, transparent); animation: ring 2.4s infinite; }
.call-btn::after { animation-delay: 1.2s; }
.call-btn.called { background: radial-gradient(circle at 35% 30%, #5fbf87, var(--ok) 60%, #1f5a37); box-shadow: 0 20px 40px -16px var(--ok); }
.call-btn.called::before, .call-btn.called::after { border-color: rgba(47, 125, 79, .4); }
@keyframes ring { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.call-note { text-align: center; font-size: 13px; color: var(--muted); margin: 28px 18px 0; }
.quick { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.tabs.drag { cursor: grab; user-select: none; }
.tabs.drag.dragging { cursor: grabbing; }
.tabs.drag.dragging button { pointer-events: none; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 18px 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 9px 15px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--card); border: 1px solid var(--line); white-space: nowrap; }
.tabs button.on { background: var(--ink); color: var(--gold-soft); border-color: var(--ink); }
.prod { display: flex; gap: 12px; align-items: center; padding: 12px; }
.prod img, .prod .ph { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; background: var(--gold-soft); display: grid; place-items: center; color: var(--gold-deep); }
.prod .t { flex: 1; min-width: 0; }
.prod b { display: block; font-size: 15px; }
.prod span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.prod .price { font-weight: 800; color: var(--wine); font-size: 13px; margin-top: 4px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--linen); border: 1px solid var(--line); }
.qty button.add { background: var(--wine); color: #fff; border: 0; }
.qty output { min-width: 16px; text-align: center; font-weight: 800; }
.cart {
  position: fixed; z-index: 45; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom));
  width: min(452px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 18px; border-radius: 22px; background: var(--wine); color: #fff7ea; box-shadow: 0 18px 36px -12px var(--wine);
  animation: rise .35s;
}
.cart b { font-size: 14px; }
.cart .btn { min-height: 44px; }
.order { padding: 14px 16px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.order-items { font-weight: 700; margin: 6px 0 10px; font-size: 14.5px; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.track i { height: 5px; border-radius: 9px; background: var(--line); }
.track i.on { background: var(--ok); }
.track-lbl { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 10.5px; color: var(--muted); margin-top: 5px; font-weight: 700; }
.now-playing { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--ink); color: var(--gold-soft); }
.bars { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.bars i { width: 4px; height: 8px; min-height: 5px; background: var(--gold-hi); border-radius: 9px; animation: bar .9s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: .2s; } .bars i:nth-child(3) { animation-delay: .4s; } .bars i:nth-child(4) { animation-delay: .1s; }
@keyframes bar { 0%, 100% { height: 5px; } 50% { height: 22px; } }
.song { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.song:last-child { border: 0; }
.upload { display: grid; place-items: center; gap: 6px; padding: 26px; border: 2px dashed rgba(184, 137, 59, .55); border-radius: 20px; text-align: center; background: rgba(243, 230, 198, .35); }
.upload .ic { width: 34px; height: 34px; color: var(--gold); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.raffle { padding: 22px; text-align: center; background: linear-gradient(140deg, var(--gold-soft), var(--gold-hi)); color: var(--gold-ink); border: 0; }
.raffle .ic { width: 38px; height: 38px; color: var(--wine); }
.raffle h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 8px 0 4px; }
.raffle p { margin: 0 0 14px; font-size: 14px; }
.winner-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; text-align: center; color: #fff7ea; background: radial-gradient(circle at 50% 40%, var(--wine), var(--dark) 75%); animation: fade .5s; }
.winner-overlay h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 48px; margin: 10px 0; color: var(--gold-hi); }

/* ================= Mural ================= */
.compose { padding: 14px; }
.msg { padding: 14px 16px; }
.msg .who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff7ea; background: var(--wine); flex: none; }
.msg p { margin: 8px 0 0; font-size: 15px; }

/* ================= Pós-evento ================= */
.thanks { margin: 18px; padding: 30px 22px; text-align: center; background: var(--paper); }
.thanks h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 36px; color: var(--wine); margin: 8px 0; }
.rate { display: flex; justify-content: center; gap: 8px; margin: 18px 0; }
.rate button { width: 48px; height: 48px; color: #d8c9ae; transition: transform .2s, color .2s; }
.rate button .ic { width: 44px; height: 44px; }
.rate button.on { color: var(--gold); transform: scale(1.08); }
.rate button.on .ic { fill: currentColor; }

/* ================= Aviso / estados ================= */
.notice { margin: 18px; padding: 26px 22px; text-align: center; }
.notice .big { font-size: 44px; }
.notice h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 10px 0 6px; }
.notice p { margin: 0 0 16px; color: var(--muted); }
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--dark); color: var(--gold-soft); z-index: 100; font-family: var(--serif); font-style: italic; font-size: 20px; }
.boot.out { opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(233, 207, 148, .2); border-top-color: var(--gold-hi); animation: spin .9s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(var(--nav-h) + 30px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); opacity: 0; transition: all .3s; pointer-events: none;
  max-width: 90vw; width: max-content; padding: 12px 18px; border-radius: 16px; font-size: 14px; font-weight: 700; background: var(--ink); color: var(--gold-soft); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-error { background: var(--danger); color: #fff; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 130; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.voucher.has-stamp .top h2, .voucher.has-stamp .top .ev { padding-right: 92px; }
.voucher.has-stamp .stamp { top: 46px; width: 84px; height: 84px; }

/* carrossel: margem nas duas pontas (o "snap" respeita o recuo) e arrastar com o mouse */
.scroller { scroll-padding-inline: 18px; cursor: grab; user-select: none; -webkit-user-select: none; }
.scroller::after { content: ''; flex: 0 0 6px; }
.scroller.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.scroller.dragging * { pointer-events: none; }
.scroller img { -webkit-user-drag: none; }
.scroll-wrap { position: relative; }
.scroll-arrows { display: none; gap: 8px; justify-content: flex-end; padding: 0 18px 8px; margin-top: -58px; position: relative; z-index: 2; pointer-events: none; }
.scroll-arrows button { pointer-events: auto; }
@media (hover: hover) and (pointer: fine) { .scroll-arrows { display: flex; } }
.scroll-arrows button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.scroll-arrows button:hover { border-color: var(--gold); color: var(--wine); }
/* logo do cliente */
.brand-logo { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; flex: none; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.brand-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.intro-logo { width: 84px; height: 84px; border-radius: 24px; object-fit: cover; margin-bottom: 16px; box-shadow: 0 0 0 2px rgba(233, 207, 148, .6), 0 12px 30px rgba(0, 0, 0, .4); opacity: 0; animation: rise .9s .1s forwards; }

/* ================= Assistente de IA ================= */
.bot-av { position: relative; display: grid; place-items: center; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--dark) 70%, #fff 12%), var(--dark)); color: var(--gold-hi); overflow: visible; }
.bot-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bot-av .ic { width: 52%; height: 52%; }
.bot-av .q { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 800 12px/1 var(--sans); color: var(--gold-ink); background: linear-gradient(135deg, var(--gold-hi), var(--gold-mid)); box-shadow: 0 0 0 2px var(--paper); }
/* botão flutuante: redondo, pequeno */
.bot-fab {
  position: fixed; z-index: 45; right: max(14px, calc(50% - 226px)); bottom: calc(var(--nav-h) + 30px + env(safe-area-inset-bottom));
  width: 54px; height: 54px; border-radius: 50%; padding: 0;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .6), 0 0 0 3px color-mix(in srgb, var(--gold) 55%, transparent);
  transition: transform .2s; animation: botIn .5s 1.2s both;
}
.bot-fab .bot-av { width: 100%; height: 100%; }
.bot-fab:hover { transform: scale(1.06); }
.bot-fab::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--gold); animation: botPing 2.4s 2s 3; opacity: 0; }
@keyframes botIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes botPing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
body.bot-open .bot-fab, body.bot-hide .bot-fab, .nav.hidden ~ .bot-fab { display: none; }
/* botão no topo, ao lado do status */
.top-right { display: flex; align-items: center; gap: 8px; flex: none; }
.bot-top { width: 38px; height: 38px; border-radius: 50%; padding: 0; box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 50%, transparent); }
.bot-top .bot-av { width: 100%; height: 100%; }
.bot-top .bot-av .q { width: 16px; height: 16px; font-size: 10px; right: -4px; bottom: -4px; }
/* janelinha do chat */
.bot-scrim { position: fixed; inset: 0; z-index: 94; background: rgba(0, 0, 0, .22); opacity: 0; pointer-events: none; transition: opacity .25s; }
body.bot-open .bot-scrim { opacity: 1; pointer-events: auto; }
.bot-panel {
  position: fixed; z-index: 95; right: max(12px, calc(50% - 228px)); bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom));
  width: min(350px, calc(100% - 24px)); max-height: min(520px, calc(100dvh - var(--nav-h) - 110px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 24px;
  background: var(--paper); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .55), 0 0 0 1px var(--line);
  transform-origin: 100% 100%; transform: scale(.6) translateY(20px); opacity: 0; pointer-events: none;
  transition: transform .28s cubic-bezier(.2, .9, .3, 1.1), opacity .2s;
}
body.bot-open .bot-panel { transform: none; opacity: 1; pointer-events: auto; }
.bot-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; color: #fff7ea; background: linear-gradient(135deg, var(--dark), color-mix(in srgb, var(--wine) 55%, var(--dark))); }
.bot-head .bot-av { width: 38px; height: 38px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 60%, transparent); }
.bot-head .bot-av .q { display: none; }
.bot-head b { display: block; font-family: var(--serif); font-weight: 500; font-size: 16px; line-height: 1.2; }
.bot-head small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: rgba(255, 247, 234, .7); }
.bot-head small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #5fbf87; }
.bot-head .close { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 247, 234, .1); color: #fff7ea; }
.bot-head .close .ic { width: 16px; height: 16px; }
.bot-msgs { flex: 1; min-height: 120px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.bot-msg { max-width: 88%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; animation: rise .25s both; }
.bot-msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bot-msg.me { align-self: flex-end; background: var(--wine); color: #fff7ea; border-bottom-right-radius: 5px; }
.bot-msg a { color: inherit; font-weight: 700; }
.bot-msg.typing { display: flex; gap: 4px; padding: 13px 14px; }
.bot-msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dots 1s infinite; }
.bot-msg.typing i:nth-child(2) { animation-delay: .15s; }
.bot-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.bot-sugs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 14px 10px; }
.bot-sugs::-webkit-scrollbar { display: none; }
.bot-sugs[hidden] { display: none; }
.bot-sugs button { flex: none; padding: 7px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--wine); background: var(--wine-soft); white-space: nowrap; }
.bot-form { display: flex; gap: 6px; align-items: center; margin: 0 10px 10px; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.bot-form:focus-within { border-color: var(--wine); }
.bot-form input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; outline: none; font-size: 14px; }
.bot-form button { width: 38px; height: 38px; border-radius: 50%; background: var(--wine); color: #fff7ea; display: grid; place-items: center; flex: none; }
.bot-form button .ic { width: 17px; height: 17px; }
.bot-form button:disabled { opacity: .5; }

/* ================= Pagamento da reserva ================= */
.btn-wa { background: #1fa855; color: #fff; box-shadow: 0 12px 26px -12px rgba(31, 168, 85, .8); }
.pay-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); font-size: 13.5px; line-height: 1.4; }
.pay-note .ic { flex: none; margin-top: 1px; }
.pay-card { padding: 18px; border: 1.5px solid color-mix(in srgb, var(--gold) 55%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--gold-soft) 55%, var(--card)), var(--card) 45%); }
.pay-card.rejected { border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.pay-card.sent { border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: var(--card); }
.pay-head { display: flex; align-items: center; gap: 12px; }
.pay-head > div { flex: 1; min-width: 0; }
.pay-head b { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.15; }
.pay-head span { font-size: 13px; color: var(--muted); }
.pay-head strong { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--wine); white-space: nowrap; }
.pay-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--dark); color: var(--gold-hi); }
.pay-card.sent .pay-ic { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.pay-alert { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); font-size: 13.5px; font-weight: 600; }
.pay-dl { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.pay-dl b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pay-text { margin: 10px 0 0; font-size: 14px; white-space: pre-line; }
.pix { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 16px; background: var(--paper); border: 1px dashed color-mix(in srgb, var(--gold) 60%, transparent); }
.pix-qr { width: 112px; height: 112px; flex: none; padding: 6px; background: #fff; border-radius: 12px; }
.pix-qr svg { width: 100%; height: 100%; display: block; }
.pix-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pix-info small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pix-info b { font-size: 14px; overflow-wrap: anywhere; }
.pay-steps { display: grid; gap: 8px; margin-top: 14px; justify-items: center; }
.pay-link { background: none; border: 0; padding: 4px; font-size: 13px; font-weight: 700; color: var(--wine); text-decoration: underline; cursor: pointer; display: inline-block; margin-top: 8px; }
/* convite de evento anterior */
.archived { width: min(400px, 100%); padding: 28px 22px; text-align: center; font-family: var(--sans); font-style: normal; font-size: 15px; color: rgba(243, 230, 198, .85); }
.archived h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 38px; color: #fff7ea; margin: 6px 0 8px; }
.archived .lead { margin: 0; line-height: 1.5; }
.archived b { color: var(--gold-hi); }
.archived a { color: var(--gold-hi); }
.pay-amt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--dark); color: var(--gold-hi); }
.pay-amt span { font-size: 13px; color: rgba(255, 247, 234, .75); }
.pay-amt strong { font-family: var(--serif); font-weight: 600; font-size: 24px; white-space: nowrap; }

/* áreas do salão no mapa de mesas */
.floor.size-grande { aspect-ratio: 4 / 5.4; }
.floor.size-extra { aspect-ratio: 4 / 6.6; }
.area-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.area-chips::-webkit-scrollbar { display: none; }
.area-chips button { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 800; font-size: 14px; }
.area-chips button small { font-size: 11px; font-weight: 700; color: var(--muted); }
.area-chips button.on { background: var(--wine); border-color: var(--wine); color: #fff7ea; }
.area-chips button.on small { color: rgba(255, 247, 234, .75); }
/* mural de fotos no formato escolhido pelo anfitrião */
.gallery.g-vertical img { aspect-ratio: 3 / 4; }
.gallery.g-horizontal { grid-template-columns: repeat(2, 1fr); }
.gallery.g-horizontal img { aspect-ratio: 4 / 3; }
.gallery.g-both { display: block; columns: 3; column-gap: 4px; }
.gallery.g-both img { display: block; width: 100%; aspect-ratio: auto; margin-bottom: 4px; break-inside: avoid; }

/* QR do voucher: toque para ampliar */
button.qr.zoomable { position: relative; border: 0; cursor: zoom-in; display: block; }
.qr-zoom { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  background: var(--wine); color: #fff7ea; font-size: 10.5px; font-weight: 800; padding: 3px 9px 3px 7px; border-radius: 999px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4); }
.voucher .qr .qr-zoom svg { width: 13px; height: 13px; flex: none; }
.qr-full { position: fixed; inset: 0; z-index: 250; background: rgba(12, 8, 7, .86); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .2s ease; }
.qr-full-in { background: #fff; color: #1b1b1b; border-radius: 26px; padding: 22px 20px 18px; width: min(440px, 100%); text-align: center; display: grid; gap: 6px; justify-items: center; }
.qr-full-in small { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #8a7a6a; font-weight: 800; }
.qr-full-in b { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.qr-big { width: min(82vw, 58vh, 380px); aspect-ratio: 1; margin: 6px 0; }
.qr-big svg { width: 100%; height: 100%; display: block; }
.qr-code { font-size: 15px; } .qr-code strong { font-size: 22px; letter-spacing: .12em; }
.qr-full-in > span { color: #6b5d50; font-size: 13.5px; margin-bottom: 8px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.voucher .bottom { padding-bottom: 28px; }

/* chegou só parte do grupo */
.split-card { padding: 16px; display: grid; gap: 4px; text-align: center; }
.split-card b { font-size: 15.5px; }
.split-card span { color: var(--muted); font-size: 13px; }
.split-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.split-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ok, #2f7d4f); }
.split-dots i.in { background: var(--ok, #2f7d4f); }

/* redes sociais e avaliação no Google */
.social-foot { margin-top: 26px; }
.bot-social { padding: 8px 12px 12px; border-top: 1px solid var(--line); }
.bot-social .socials-box { gap: 6px; }
.bot-social .socials-box p { font-size: 11.5px; }
.bot-social .socials { gap: 8px; }
.bot-social .socials a svg { width: 17px; height: 17px; }
.google-ask { margin-top: 16px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: center; display: grid; gap: 8px; }
.google-ask .g-stars { color: #f4b400; font-size: 20px; letter-spacing: 3px; }
.google-ask p { margin: 0; font-size: 14px; color: var(--ink); }

/* ================= Link de grupo (/g/…) ================= */
html:has(.grp-page), .grp-page { background: var(--bg); min-height: 100vh; }
.grp-hero { position: relative; overflow: hidden; color: var(--gold-soft); text-align: center; padding: 46px 22px 70px;
  background: radial-gradient(120% 70% at 50% 110%, rgba(184, 137, 59, .28), transparent 60%), linear-gradient(180deg, var(--wine-deep), var(--dark) 90%); }
.grp-cover { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .28; }
.grp-hero-in { position: relative; max-width: 460px; margin: 0 auto; }
.grp-logo { width: 72px; height: 72px; border-radius: 20px; object-fit: cover; margin-bottom: 12px; box-shadow: 0 0 0 2px rgba(233, 207, 148, .5); }
.grp-kicker { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-hi); margin: 0; }
.grp-hero h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(30px, 8.5vw, 40px); line-height: 1.08; margin: 12px 0 10px; color: #fff7ea; }
.grp-ev { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(243, 230, 198, .82); }
.grp-ev b { color: #fff7ea; font-size: 15px; }
.grp-card { position: relative; max-width: 460px; margin: -44px auto 0; padding: 22px 18px; }
@media (max-width: 500px) { .grp-card { margin-left: 14px; margin-right: 14px; } }
.grp-card h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 6px; }
.grp-note { margin: 0 0 6px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); font-size: 14px; }
.grp-done { text-align: center; padding: 10px 4px; }
.grp-done .big { font-size: 44px; }
.grp-foot { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin: 22px 0 30px; }
