/* =========================================================
   Casca — sistema visual
   Mesmo padrão do site acaicasca.com.br (cores, fontes e botões)
   ========================================================= */
:root {
  /* marca */
  --amarelo: #ffc20e;
  --amarelo-forte: #f5b400;
  --amarelo-claro: #fff4cc;
  --laranja: #EE5A24;
  --laranja-claro: #ffe6dd;
  --roxo: #4B1660;
  --roxo-claro: #EFE4F4;
  --acai: #2A0B35;
  --acai-2: #4B1660;
  --verde: #2f8a3a;
  --verde-claro: #e3f4e1;
  --vermelho: #c62f2f;
  --vermelho-claro: #fde8e8;

  /* neutros quentes */
  --texto: #1F1023;
  --suave: #5B4A60;
  --borda: #EADFCB;
  --fundo: #FFF8EA;
  --cartao: #ffffff;

  /* forma */
  --raio: 20px;
  --raio-p: 12px;
  --sombra: 0 10px 30px -14px rgba(42, 11, 53, .22);
  --sombra-forte: 0 24px 60px -20px rgba(42, 11, 53, .45);
  --fonte-titulo: "Bricolage Grotesque", system-ui, sans-serif;
  --fonte-texto: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fonte-mao: "Bricolage Grotesque", system-ui, sans-serif;
  --nav-altura: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fonte-texto);
  background: var(--fundo);
  color: var(--texto);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--fonte-titulo); margin: 0 0 .35rem; line-height: 1.15; color: var(--acai); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 .75rem; }
a { color: var(--roxo); }
.muted { color: var(--suave); font-size: .92rem; }
.mao { font-family: var(--fonte-mao); font-weight: 800; letter-spacing: -.01em; }
.hidden { display: none !important; }
.centro { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--laranja); outline-offset: 2px; border-radius: 6px; }

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

/* ---------- formulários ---------- */
.campo { margin-top: .9rem; }
label, .rotulo { display: block; font-size: .85rem; font-weight: 700; margin: 0 0 .35rem; color: var(--acai-2); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; min-height: 50px; padding: .75rem .9rem;
  border: 1.5px solid #DCCFB8; border-radius: var(--raio-p); background: #fff; color: var(--texto);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #a79ea8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--roxo); box-shadow: 0 0 0 4px rgba(75, 22, 96, .15); }
textarea { min-height: 96px; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%232e0e33' stroke-width='2.2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center;
}
.senha { position: relative; }
.senha input { padding-right: 3.2rem; }
.senha button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  border: 0; background: none; color: var(--suave); cursor: pointer; border-radius: 10px; display: grid; place-items: center;
}
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; color: var(--texto); font-size: .88rem; line-height: 1.4; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 0; flex: none; accent-color: var(--roxo); }
.linha2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }
.erro-form {
  background: var(--vermelho-claro); color: var(--vermelho); border-radius: var(--raio-p);
  padding: .7rem .9rem; font-size: .9rem; font-weight: 600; margin-top: .9rem;
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--fonte-texto); font-size: 1.02rem; font-weight: 700;
  min-height: 52px; border: 2px solid transparent; border-radius: 999px; padding: .75rem 1.4rem;
  background: var(--roxo); color: #fff; cursor: pointer; text-decoration: none; width: 100%; margin-top: 1.1rem;
  box-shadow: 0 8px 20px -8px rgba(75, 22, 96, .7); transition: transform .15s, box-shadow .15s, background-color .15s, color .15s;
}
.btn:hover { background: var(--acai); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.escuro { background: var(--acai); color: #fff; }
.btn.sec { background: transparent; color: var(--roxo); border-color: var(--roxo); box-shadow: none; }
.btn.sec:hover { background: var(--roxo); color: #fff; }
.btn.verde { background: var(--verde); color: #fff; box-shadow: none; }
.btn.verde:hover { background: #1f6428; }
.btn.perigo { background: var(--vermelho-claro); color: var(--vermelho); border-color: #F5C2BD; box-shadow: none; }
.btn.perigo:hover { background: #fbd5d1; }
.btn.peq { width: auto; min-height: 40px; padding: .4rem 1rem; font-size: .9rem; margin-top: 0; box-shadow: none; }
.btn.peq:active { transform: none; }
.btn.peq.sec { box-shadow: none; }
.btn svg { flex: none; }
.link { background: none; border: 0; color: var(--roxo); font: inherit; font-weight: 800; cursor: pointer; padding: .6rem; min-height: 44px; }

/* ---------- entrada (login/cadastro) ---------- */
.entrada { min-height: 100vh; min-height: 100dvh; background: var(--fundo); }
.entrada-hero {
  position: relative; height: 34vh; min-height: 220px; max-height: 340px;
  background: var(--amarelo) url("/img/hero.jpg") center 62% / cover no-repeat;
}
.entrada-logo {
  position: absolute; left: 50%; bottom: -58px; transform: translateX(-50%); width: 128px; height: 128px; z-index: 2;
  filter: drop-shadow(0 8px 18px rgba(46, 14, 51, .28));
}
.entrada-corpo { max-width: 460px; margin: 0 auto; padding: 72px 1.25rem 2.5rem; position: relative; }
.entrada-titulo { text-align: center; margin-bottom: 1.25rem; }
.entrada-titulo .mao { display: block; color: var(--roxo); font-size: 1.55rem; line-height: 1; margin-bottom: .2rem; }
.entrada-titulo p { color: var(--suave); margin: .25rem 0 0; }
.segmento {
  display: grid; grid-template-columns: 1fr 1fr; background: #f3ede1; border-radius: 999px; padding: 4px; margin-bottom: .5rem;
}
.segmento button {
  border: 0; background: none; font-family: var(--fonte-texto); font-weight: 700; font-size: 1rem; color: var(--suave);
  min-height: 44px; border-radius: 999px; cursor: pointer;
}
.segmento button[aria-selected="true"] { background: #fff; color: var(--acai); box-shadow: var(--sombra); }
.selo-desde { text-align: center; color: var(--suave); font-size: .85rem; margin-top: 1.5rem; }

/* ---------- estrutura do app ---------- */
.topo {
  position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 234, .95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: calc(env(safe-area-inset-top) + .55rem) 1rem .55rem;
  display: flex; align-items: center; gap: .7rem;
  border-bottom: 1px solid var(--borda);
}
.topo .logo-topo { width: 46px; height: 46px; flex: none; }
.topo .ola { flex: 1; min-width: 0; line-height: 1.15; }
.topo .ola small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); }
.topo .ola b { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.2rem; color: var(--acai); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--acai); color: var(--amarelo);
  font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.1rem; cursor: pointer; flex: none;
}
.conteudo { max-width: 600px; margin: 0 auto; padding: 1.1rem 1rem calc(var(--nav-altura) + 1.5rem + env(safe-area-inset-bottom)); }

.abas {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--borda); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.abas button {
  background: none; border: 0; font: inherit; font-size: .72rem; font-weight: 800; color: var(--suave);
  min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer;
}
.abas .ic { width: 56px; height: 30px; border-radius: 999px; display: grid; place-items: center; transition: background .2s; }
.abas svg { width: 23px; height: 23px; }
.abas button[aria-current="page"] { color: var(--acai); }
.abas button[aria-current="page"] .ic { background: var(--amarelo); }

/* loja online (aba Retirada): site de pedidos em tela cheia dentro do app */
.loja-online { position: fixed; inset: 0; z-index: 60; background: #fff; display: flex; flex-direction: column; }
.loja-online header {
  display: flex; align-items: center; gap: .6rem; padding: calc(8px + env(safe-area-inset-top)) 10px 8px;
  background: var(--amarelo); color: var(--acai); box-shadow: 0 2px 8px rgba(42, 11, 53, .15);
}
.loja-online header button, .loja-online header a {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .55); color: var(--acai);
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.loja-online header div { flex: 1; min-width: 0; line-height: 1.15; }
.loja-online header small { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.loja-online header b { display: block; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loja-online iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.loja-online .carregando-loja { position: absolute; top: 50%; left: 0; right: 0; text-align: center; color: var(--suave); font-weight: 800; }

/* ---------- seções ---------- */
.banner {
  position: relative; border-radius: var(--raio); overflow: hidden; min-height: 150px; margin-bottom: 1.1rem;
  display: flex; align-items: flex-end; padding: 1.1rem; color: #fff; background: var(--acai) center / cover no-repeat;
  box-shadow: var(--sombra);
}
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46, 14, 51, 0) 0%, rgba(46, 14, 51, .45) 40%, rgba(46, 14, 51, .92) 100%); }
.banner > * { position: relative; text-shadow: 0 1px 8px rgba(46, 14, 51, .5); }
.banner h2 { color: #fff; margin: 0; font-size: 1.6rem; }
.banner .mao { color: var(--amarelo); font-size: 1.25rem; display: block; line-height: 1; margin-bottom: .1rem; }
.banner p { margin: .2rem 0 0; opacity: .92; font-size: .92rem; }

.titulo-secao { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin: 1.4rem 0 .6rem; }
.titulo-secao h3 { margin: 0; }

.cartao { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); padding: 1.1rem; margin-bottom: 1rem; }

/* status */
.selo {
  display: inline-flex; align-items: center; gap: .3rem; align-self: flex-start; white-space: nowrap;
  font-size: .75rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; line-height: 1.5;
}
.selo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.selo.aprovada, .selo.ativa { background: var(--verde-claro); color: var(--verde); }
.selo.pendente { background: var(--amarelo-claro); color: #8a5a00; }
.selo.rejeitada, .selo.cancelada { background: var(--vermelho-claro); color: var(--vermelho); }

.lista-item { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--borda); }
.lista-item:last-child { border-bottom: 0; padding-bottom: 0; }
.lista-item:first-child { padding-top: 0; }

/* ---------- clube ---------- */
.clube { padding: 0; overflow: hidden; }
.clube .foto { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--amarelo-claro); }
.clube .corpo { padding: 1.1rem; }
.clube .topo-clube { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.clube .periodo { background: var(--roxo-claro); color: var(--roxo); font-weight: 800; font-size: .75rem; padding: .2rem .6rem; border-radius: 999px; text-transform: capitalize; white-space: nowrap; }
.beneficios { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .5rem; }
.beneficios li { display: flex; gap: .6rem; align-items: flex-start; }
.beneficios li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--verde-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f8a3a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.preco-grande { display: flex; align-items: baseline; gap: .35rem; margin-top: 1rem; }
.preco-grande b { font-family: var(--fonte-titulo); font-size: 2rem; color: var(--acai); line-height: 1; }
.preco-grande span { color: var(--suave); font-weight: 700; }
.membro { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.1rem; min-height: 52px; border-radius: 999px; background: var(--verde-claro); color: var(--verde); font-family: var(--fonte-titulo); font-weight: 800; }

/* ---------- fidelidade ---------- */
.cartao-fidelidade {
  position: relative; overflow: hidden; border-radius: 24px; padding: 1.2rem; color: #fff; margin-bottom: 1rem;
  background: radial-gradient(120% 90% at 100% 0%, #6E2A8A 0%, var(--roxo) 38%, var(--acai) 100%);
  box-shadow: var(--sombra-forte);
}
.cartao-fidelidade::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; opacity: .14;
  background: url("/img/logo.png") center / contain no-repeat; pointer-events: none;
}
.cartao-fidelidade h2 { color: #fff; margin: 0; font-size: 1.35rem; }
.cartao-fidelidade .mao { color: var(--amarelo); font-size: 1.2rem; line-height: 1; }
.carimbos { display: grid; grid-template-columns: repeat(5, 1fr); gap: .55rem; margin: 1rem 0 .9rem; }
.carimbo {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  border: 2px dashed rgba(255, 255, 255, .38); color: rgba(255, 255, 255, .45);
  font-family: var(--fonte-titulo); font-weight: 800; font-size: .95rem;
}
.carimbo svg { width: 58%; height: 58%; }
.carimbo.cheio { background: var(--amarelo); border: 0; color: var(--acai); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45); animation: carimbar .35s ease-out backwards; }
.carimbo.premio { border-color: var(--amarelo); color: var(--amarelo); }
@keyframes carimbar { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.barra { height: 10px; background: rgba(255, 255, 255, .18); border-radius: 99px; overflow: hidden; margin: .8rem 0 .4rem; }
.barra div { height: 100%; background: var(--amarelo); border-radius: 99px; transition: width .5s; }
.falta { font-weight: 700; font-size: .95rem; }
.falta b { color: var(--amarelo); }
.premio-disponivel {
  display: flex; gap: .75rem; align-items: center; background: var(--amarelo); color: var(--acai);
  border-radius: 16px; padding: .8rem .9rem; margin-top: .9rem; font-weight: 700; font-size: .92rem;
}
.premio-disponivel b { font-family: var(--fonte-titulo); font-size: 1.1rem; display: block; }
.premio-disponivel .emoji { font-size: 1.8rem; }

/* clube: carteira de crédito e pacotes */
.cartao-credito {
  border-radius: 24px; padding: 1.2rem; margin-bottom: 1rem; color: #fff; box-shadow: var(--sombra-forte);
  background: radial-gradient(120% 90% at 100% 0%, #3a8f46 0%, var(--verde) 40%, #1d5a26 100%);
}
.cartao-credito .mao { color: var(--amarelo); font-size: 1.2rem; }
.cartao-credito .saldo b { font-size: 2.6rem; }
.divisao-credito { display: flex; gap: 1.2rem; font-size: .9rem; margin: .2rem 0 .5rem; }
.divisao-credito b { color: var(--amarelo); }
.pendente-credito { margin-top: .8rem; background: rgba(255,255,255,.15); border-radius: 12px; padding: .6rem .8rem; font-size: .85rem; font-weight: 700; }

.pacotes { display: grid; gap: .9rem; margin-bottom: 1rem; }
.pacote { position: relative; border-radius: 22px; padding: 1.1rem; color: var(--acai); box-shadow: var(--sombra); overflow: hidden; }
.pacote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); pointer-events: none; }
.pacote > * { position: relative; z-index: 1; }
.nivel-bronze { background: linear-gradient(135deg, #f3c9a4, #c98b5a); }
.nivel-prata { background: linear-gradient(135deg, #f1f1f4, #b8bcc6); }
.nivel-ouro { background: linear-gradient(135deg, #ffe58a, #e9b322); }
.nivel-diamante { background: linear-gradient(135deg, #3b1149, #7a2b98 55%, #b36bd1); color: #fff; }
.nivel-padrao { background: #fff; }
.pacote.pacote-maior { box-shadow: 0 0 0 3px var(--amarelo), var(--sombra-forte); }
.pacote-cab { display: flex; justify-content: space-between; align-items: center; }
.pacote h3 { font-size: 1.6rem; margin: 0; color: inherit; }
.pct-bonus { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.1rem; background: var(--acai); color: var(--amarelo); padding: .15rem .7rem; border-radius: 99px; }
.nivel-diamante .pct-bonus { background: var(--amarelo); color: var(--acai); }
.selo-pacote { display: inline-block; background: var(--laranja); color: #fff; font-weight: 800; font-size: .75rem; padding: .2rem .7rem; border-radius: 99px; margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .04em; }
.pacote-valores { display: flex; align-items: center; gap: .8rem; margin: .7rem 0 .3rem; }
.pacote-valores small { display: block; font-size: .75rem; font-weight: 800; opacity: .75; }
.pacote-valores b { font-family: var(--fonte-titulo); font-size: 1.35rem; }
.pacote-valores .recebe { font-size: 1.75rem; }
.pacote-valores .seta { font-size: 1.4rem; opacity: .6; }
.pacote-desc { font-weight: 800; margin: .2rem 0 0; }
.pacote .beneficios li::before { background-color: rgba(255,255,255,.7); }
.pacote .btn { margin-top: .9rem; }
.nivel-diamante .btn { background: var(--amarelo); color: var(--acai); box-shadow: none; }
.nivel-diamante .btn:hover { background: var(--amarelo-claro); }
.cartao-fidelidade .btn, .cartao-credito .btn { background: var(--amarelo); color: var(--acai); box-shadow: none; }
.cartao-fidelidade .btn:hover, .cartao-credito .btn:hover { background: var(--amarelo-claro); }
.qr-pix { width: 220px; height: 220px; margin: .8rem auto; display: block; border-radius: 12px; border: 1.5px solid var(--borda); padding: 8px; background: #fff; }
.aguardando { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 1rem 0 .3rem; font-weight: 700; color: var(--verde); font-size: .9rem; text-align: center; }
.aguardando .ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--verde); flex: none; animation: pulsa 1.2s ease-in-out infinite; }
@keyframes pulsa { 50% { transform: scale(.5); opacity: .4; } }
#brickPagamento { min-height: 120px; margin-top: .6rem; }
.opcoes-pagamento { display: grid; gap: .6rem; }
.opcao-pag {
  display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; cursor: pointer; font: inherit;
  background: #fff; border: 2px solid var(--borda); border-radius: 16px; padding: .9rem 1rem; min-height: 68px;
  transition: border-color .15s, background .15s;
}
.opcao-pag:hover, .opcao-pag:focus-visible { border-color: var(--roxo); background: var(--roxo-claro); }
.opcao-pag .ic-pag { width: 46px; height: 46px; border-radius: 12px; background: var(--roxo-claro); color: var(--roxo); display: grid; place-items: center; flex: none; }
.opcao-pag b { display: block; font-family: var(--fonte-titulo); font-size: 1.1rem; color: var(--acai); }
.opcao-pag small { color: var(--suave); font-weight: 700; }
.formas-pagamento { list-style: none; padding: 0; margin: .4rem 0 0; border: 1.5px solid var(--borda); border-radius: 16px; overflow: hidden; }
.formas-pagamento li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; border-bottom: 1px solid var(--borda); }
.formas-pagamento li:last-child { border-bottom: 0; }
.formas-pagamento b { color: var(--acai); }
.formas-pagamento span { color: var(--suave); font-size: .85rem; text-align: right; }
.comparativo { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .8rem 0 0; }
.comparativo div { border: 2px solid var(--borda); border-radius: 14px; padding: .7rem; text-align: center; }
.comparativo .melhor { border-color: var(--roxo); background: var(--roxo-claro); }
.comparativo small { display: block; font-weight: 800; color: var(--suave); }
.comparativo b { display: block; font-family: var(--fonte-titulo); font-size: 1rem; color: var(--acai); }
.comparativo span { font-size: .8rem; font-weight: 700; color: var(--roxo); }

/* pontos */
.saldo { display: flex; align-items: baseline; gap: .5rem; margin: .4rem 0 .2rem; }
.saldo b { font-family: var(--fonte-titulo); font-size: 3.4rem; line-height: 1; color: var(--amarelo); }
.saldo span { font-family: var(--fonte-titulo); font-size: 1.3rem; font-weight: 800; }
.regra-curta { margin: 0; font-size: .92rem; opacity: .92; }
.regra-curta b { color: var(--amarelo); }
.cartao-fidelidade .falta { margin-top: .8rem; }
.premios { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.premio {
  background: #fff; border-radius: 16px; box-shadow: var(--sombra); padding: .7rem .75rem; border: 2px solid var(--borda);
  display: grid; grid-template-columns: 50px 1fr; gap: .6rem; align-items: center;
}
.premio.ok { border-color: var(--verde); background: var(--verde-claro); }
.copo { width: 50px; height: 64px; overflow: visible; }
.copo .liquido { transition: transform 1.2s cubic-bezier(.25, .8, .3, 1); }
.premio-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.premio-info b { font-family: var(--fonte-titulo); font-size: 1.35rem; color: var(--acai); }
.premio-info span { font-weight: 800; font-size: .8rem; color: var(--roxo); }
.premio-info small { font-size: .74rem; font-weight: 800; color: var(--suave); margin-top: .3rem; }
.premio.ok .premio-info small { color: var(--verde); }
.tabela-pontos { width: 100%; border-collapse: collapse; margin: .8rem 0 .4rem; font-size: .92rem; }
.tabela-pontos th { text-align: left; font-size: .75rem; color: var(--suave); font-weight: 800; padding: .3rem .2rem; border-bottom: 1.5px solid var(--borda); }
.tabela-pontos td { padding: .45rem .2rem; border-bottom: 1px solid var(--borda); font-weight: 700; }
.tabela-pontos td:first-child { font-family: var(--fonte-titulo); font-weight: 800; color: var(--acai); }
.pontos-mais { color: var(--verde); font-family: var(--fonte-titulo); white-space: nowrap; align-self: center; }
.pontos-menos { color: var(--laranja); font-family: var(--fonte-titulo); white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.stat { background: #fff; border: 1px solid var(--borda); border-radius: 16px; box-shadow: var(--sombra); padding: .8rem .7rem; }
.stat b { display: block; font-family: var(--fonte-titulo); font-size: 1.3rem; color: var(--acai); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { display: block; font-size: .75rem; font-weight: 700; color: var(--suave); line-height: 1.3; margin-top: .15rem; }

.btn-scan {
  display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; cursor: pointer; border: 0;
  background: var(--amarelo); color: var(--acai); border-radius: var(--raio); padding: 1rem 1.1rem; margin-bottom: 1rem;
  box-shadow: 0 10px 24px -12px rgba(150, 100, 0, .6); font: inherit; transition: transform .15s, box-shadow .15s;
}
.btn-scan:hover { transform: translateY(-2px); }
.btn-scan:active { transform: translateY(1px); box-shadow: none; }
.btn-scan .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--acai); color: var(--amarelo); display: grid; place-items: center; flex: none; }
.btn-scan b { font-family: var(--fonte-titulo); font-size: 1.15rem; display: block; line-height: 1.2; }
.btn-scan span { font-size: .85rem; font-weight: 600; opacity: .8; }

.tamanhos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; text-align: center; }
.tamanhos div { background: var(--fundo); border: 1.5px solid var(--borda); border-radius: 14px; padding: .6rem .25rem; }
.tamanhos b { display: block; font-family: var(--fonte-titulo); font-size: 1.35rem; color: var(--roxo); line-height: 1.1; }
.tamanhos span { font-size: .75rem; font-weight: 700; color: var(--suave); }

.passos { counter-reset: passo; list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .7rem; }
.passos li { counter-increment: passo; display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.passos li::before {
  content: counter(passo); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--acai); color: var(--amarelo);
  display: grid; place-items: center; font-family: var(--fonte-titulo); font-weight: 800; font-size: .85rem;
}
details.cartao summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.08rem; color: var(--acai); min-height: 28px; }
details.cartao summary::-webkit-details-marker { display: none; }
details.cartao summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--roxo); }
details.cartao[open] summary::after { content: "–"; }

.nota { display: flex; gap: .8rem; align-items: flex-start; }
.nota .ic-nota { width: 42px; height: 42px; border-radius: 12px; background: var(--roxo-claro); color: var(--roxo); display: grid; place-items: center; flex: none; }
.nota .info { flex: 1; min-width: 0; }
.nota .info b { display: block; }

/* ---------- lojas ---------- */
.mapa { height: 230px; border-radius: var(--raio); overflow: hidden; margin-bottom: 1rem; box-shadow: var(--sombra); z-index: 0; background: var(--amarelo-claro); }
.loja h3 { margin: 0; }
.loja .linha { display: flex; gap: .5rem; align-items: flex-start; color: var(--suave); font-size: .92rem; margin-top: .4rem; }
.loja .linha svg { flex: none; margin-top: 2px; color: var(--roxo); }
.loja .acoes { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; }
.distancia { background: var(--verde-claro); color: var(--verde); font-weight: 800; font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.mais-perto { background: var(--amarelo); color: var(--acai); font-weight: 800; font-size: .72rem; padding: .15rem .55rem; border-radius: 999px; display: inline-block; margin-bottom: .35rem; }
.aviso-local { display: flex; gap: .6rem; align-items: center; background: var(--amarelo-claro); color: #6b4700; border-radius: var(--raio-p); padding: .7rem .85rem; font-size: .88rem; font-weight: 600; margin-bottom: 1rem; }

/* ---------- cardápio ---------- */
.seletor-unidade { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); padding: .4rem .4rem .4rem .9rem; margin-bottom: .9rem; }
.seletor-unidade svg { color: var(--roxo); flex: none; }
.seletor-unidade select { border: 0; min-height: 46px; font-weight: 800; font-family: var(--fonte-titulo); font-size: 1.05rem; color: var(--acai); box-shadow: none; padding-left: .2rem; }
.chips {
  display: flex; gap: .5rem; overflow-x: auto; padding: .15rem 1rem .6rem; margin: 0 -1rem .3rem; scrollbar-width: none;
  position: sticky; top: calc(env(safe-area-inset-top) + 62px); z-index: 10; background: var(--fundo);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1.5px solid var(--borda); background: #fff; color: var(--acai); font: inherit; font-weight: 700; font-size: .88rem;
  min-height: 40px; padding: .35rem 1rem; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--roxo); border-color: var(--roxo); color: #fff; }
.categoria { font-family: var(--fonte-titulo); font-size: 1.25rem; font-weight: 800; color: var(--acai); margin: 1.2rem 0 .6rem; scroll-margin-top: 130px; }
.produtos { display: grid; gap: .75rem; }
.produto { display: flex; gap: .85rem; background: #fff; border: 1px solid var(--borda); border-radius: 18px; box-shadow: var(--sombra); padding: .7rem; align-items: center; }
.produto .foto { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; flex: none; background: var(--amarelo-claro); }
.produto .foto.vazia { display: grid; place-items: center; color: var(--amarelo-forte); }
.produto .info { flex: 1; min-width: 0; }
.produto .info b { font-family: var(--fonte-titulo); font-size: 1.05rem; color: var(--acai); line-height: 1.2; display: block; }
.produto .info .desc { color: var(--suave); font-size: .85rem; line-height: 1.35; margin-top: .2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.precos-tamanho { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.precos-tamanho span {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 58px; line-height: 1.1;
  border: 1.5px solid var(--amarelo); border-radius: 10px; padding: .25rem .45rem;
  font-family: var(--fonte-titulo); font-weight: 800; font-size: .9rem; color: var(--laranja);
}
.precos-tamanho small { font-size: .68rem; color: var(--acai); background: var(--amarelo); border-radius: 99px; padding: 0 .4rem; margin-bottom: .15rem; }
.produto { align-items: flex-start; }
.produto .preco { display: inline-block; margin-top: .4rem; font-family: var(--fonte-titulo); font-weight: 800; color: var(--roxo); font-size: 1.05rem; }

/* ---------- vazios, avisos, carregamento ---------- */
.vazio { text-align: center; color: var(--suave); padding: 2rem 1rem; }
.vazio .emoji { font-size: 2.4rem; display: block; margin-bottom: .4rem; }
.vazio b { display: block; color: var(--acai); font-family: var(--fonte-titulo); font-size: 1.1rem; margin-bottom: .2rem; }
.aviso { background: var(--amarelo-claro); color: #6b4700; padding: .8rem .9rem; border-radius: var(--raio-p); font-size: .92rem; font-weight: 600; }

.esqueleto { display: grid; gap: 1rem; }
.esqueleto div { height: 110px; border-radius: var(--raio); background: linear-gradient(90deg, #f3ecdf 25%, #faf5ec 50%, #f3ecdf 75%); background-size: 200% 100%; animation: brilho 1.2s infinite; }
.esqueleto div:first-child { height: 170px; }
@keyframes brilho { to { background-position: -200% 0; } }
.carregando { text-align: center; padding: 2rem; color: var(--suave); font-weight: 600; }
.carregando::before {
  content: ""; display: block; width: 34px; height: 34px; margin: 0 auto .75rem; border-radius: 50%;
  border: 4px solid var(--amarelo-claro); border-top-color: var(--amarelo); animation: gira .8s linear infinite;
}
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- modal (bottom sheet) e toast ---------- */
.modal {
  position: fixed; inset: 0; z-index: 1000; background: rgba(42, 11, 53, .55);
  display: flex; align-items: flex-end; justify-content: center; animation: aparecer .2s ease-out;
}
.modal .caixa {
  background: var(--fundo); width: 100%; max-width: 600px; max-height: 92vh; max-height: 92dvh; overflow: auto;
  border-radius: 26px 26px 0 0; padding: .6rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  animation: subir .25s cubic-bezier(.2, .9, .3, 1);
}
.modal .caixa::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--borda); margin: 0 auto 1rem; }
.modal .caixa h2 { margin-bottom: .5rem; }
@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { transform: translateY(40px); opacity: .5; } }
@media (min-width: 700px) {
  .modal { align-items: center; }
  .modal .caixa { border-radius: 26px; padding-top: 1.4rem; }
  .modal .caixa::before { display: none; }
}
.resultado { text-align: center; padding: .5rem 0; }
.resultado .emoji { font-size: 3.2rem; line-height: 1; display: block; margin-bottom: .5rem; }
.menu-conta button { display: flex; align-items: center; gap: .8rem; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--borda); padding: .95rem .2rem; font: inherit; font-weight: 700; color: var(--acai); cursor: pointer; text-align: left; min-height: 56px; }
.menu-conta button:last-child { border-bottom: 0; color: var(--vermelho); }

.aviso-cpf { background: var(--amarelo-claro); border: 1.5px dashed var(--amarelo-forte); border-radius: 12px; padding: .6rem .8rem; font-size: .9rem; font-weight: 700; color: #6b4700; margin: .6rem 0 0; }
#leitor { width: 100%; border-radius: 18px; overflow: hidden; background: var(--acai); min-height: 80px; margin: .9rem 0; }
#leitor video { border-radius: 18px; }
#leitor .aviso { margin: 0; border-radius: 0; }
details:not(.cartao) { margin-top: .5rem; }
details:not(.cartao) summary { cursor: pointer; color: var(--roxo); font-weight: 800; font-size: .92rem; min-height: 44px; display: flex; align-items: center; }
.pix { background: var(--amarelo-claro); border: 2px dashed var(--amarelo-forte); border-radius: 16px; padding: 1rem; margin: .9rem 0; word-break: break-all; text-align: center; }
.pix b { font-family: var(--fonte-titulo); font-size: 1.15rem; color: var(--acai); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-altura) + 1rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2000;
  background: var(--acai); color: #fff; padding: .8rem 1.1rem; border-radius: 14px; font-family: var(--fonte-texto); font-size: .92rem; font-weight: 700;
  width: max-content; max-width: calc(100% - 2rem); box-shadow: var(--sombra-forte); animation: subir .2s ease-out;
}
.toast.erro { background: var(--vermelho); }
