:root {
  --fundo: #f6f5ef;
  --papel: #ffffff;
  --areia: #ebe8df;
  --linha: #dedacf;
  --tinta: #26221d;
  --cinza: #6b655b;
  --ouro: #b07c3c;
  --ouro-claro: #cd9d51;
  --botao: #bd8a45;
  --serifa: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ouro-fundo: #f3e6d2;
  --verde: #4f7d5c;
  --verde-fundo: #e2efe4;
  --vermelho: #a8402f;
  --raio: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#app { max-width: 720px; margin: 0 auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); min-height: 100vh; }
h1 { font-size: 26px; line-height: 1.15; margin: 0 0 4px; letter-spacing: -0.02em; }
h2 { font-size: 18px; margin: 28px 0 10px; letter-spacing: -0.01em; }
p { margin: 0 0 10px; }
a { color: inherit; }
.sub { color: var(--cinza); font-size: 14px; }
.carregando { text-align: center; color: var(--cinza); padding: 60px 0; }
.num { font-variant-numeric: tabular-nums; }

/* topo */
.topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; min-height: 40px; }
.marca { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.marca img { width: 30px; height: 30px; }
.voltar { background: none; border: 0; padding: 8px 8px 8px 0; font: inherit; color: var(--cinza); cursor: pointer; }
.saldo-chip { background: var(--tinta); color: #f3dfb4; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }

/* botões e campos */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 12px 18px; border-radius: 999px; border: 0;
  background: var(--botao); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #ae7d3b; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.escuro { background: var(--tinta); color: #fff; }
.btn.claro { background: transparent; border: 1.5px solid var(--linha); color: var(--tinta); font-weight: 600; }
.btn.perigo { background: transparent; border: 1.5px solid #e0bdb5; color: var(--vermelho); font-weight: 600; }
.btn.peq { width: auto; min-height: 38px; padding: 8px 16px; font-size: 14px; }
.linha-btn { display: flex; gap: 10px; flex-wrap: wrap; }
.linha-btn .btn { flex: 1 1 140px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
label small { font-weight: 400; color: var(--cinza); }
input, select, textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--linha); border-radius: 12px;
  background: var(--papel); color: var(--tinta); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--ouro); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--areia); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; padding: 10px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--cinza); cursor: pointer; }
.seg button.on { background: var(--papel); color: var(--tinta); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg button:disabled { opacity: .5; cursor: default; }

/* cartões e avisos */
.cartao { background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px; margin-bottom: 12px; }
.nota { background: var(--ouro-fundo); border-radius: var(--raio); padding: 14px 16px; margin-bottom: 14px; font-size: 15px; }
.nota.verde { background: var(--verde-fundo); }
.nota b { display: block; margin-bottom: 2px; }
.nota .btn { margin-top: 10px; }
.erro { color: var(--vermelho); font-size: 14px; margin-top: 10px; min-height: 20px; }
.selo { display: inline-block; background: var(--verde-fundo); color: var(--verde); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; vertical-align: middle; }
.selo.ouro { background: var(--ouro-fundo); color: #7a5a1c; }
.selo.cinza { background: var(--areia); color: var(--cinza); }
.vazio { text-align: center; color: var(--cinza); padding: 40px 12px; }

/* feed */
.filtros { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 14px; padding: 0 16px 2px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--linha); background: var(--papel); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; color: var(--tinta); }
.chip.on { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .grade { grid-template-columns: repeat(3, 1fr); } }
.item { display: block; text-decoration: none; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; }
.item .foto { aspect-ratio: 1; background: var(--areia) center/cover no-repeat; display: grid; place-items: center; color: var(--cinza); font-size: 13px; text-align: center; padding: 8px; }
.item .txt { padding: 10px 12px 12px; }
.item .tit { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.item .val { color: var(--ouro); font-weight: 800; margin-top: 4px; }
.item .meta { font-size: 12px; color: var(--cinza); margin-top: 2px; }

/* oferta */
.galeria { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 16px; padding: 0 16px; scrollbar-width: none; }
.galeria::-webkit-scrollbar { display: none; }
.galeria img { flex: none; width: min(86%, 440px); aspect-ratio: 4/3; object-fit: cover; border-radius: var(--raio); scroll-snap-align: center; background: var(--areia); }
.galeria img:only-child { width: 100%; }
.preco { font-size: 30px; font-weight: 800; color: var(--ouro); letter-spacing: -0.02em; margin: 6px 0 2px; }
.dono { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--tinta) center/cover no-repeat; color: #f3dfb4; display: grid; place-items: center; font-weight: 700; }
.texto-livre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* fotos no formulário */
.fotos { display: flex; gap: 8px; flex-wrap: wrap; }
.fotos .mini { position: relative; width: 84px; height: 84px; border-radius: 12px; background: var(--areia) center/cover; }
.fotos .mini button { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--tinta); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }
.fotos .mais { width: 84px; height: 84px; border-radius: 12px; border: 1.5px dashed var(--ouro-claro); background: none; color: var(--ouro); font: inherit; font-size: 13px; cursor: pointer; }

/* listas */
.lista a, .lista .lin { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linha); text-decoration: none; }
.thumb { flex: none; width: 52px; height: 52px; border-radius: 10px; background: var(--areia) center/cover; }
.lista .meio { flex: 1; min-width: 0; }
.lista .meio b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista .meio span { display: block; font-size: 14px; color: var(--cinza); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista .fim { flex: none; text-align: right; font-size: 13px; color: var(--cinza); }
.mais { color: var(--verde); font-weight: 700; }
.menos { color: var(--tinta); font-weight: 700; }

/* carteira */
.carteira { background: var(--tinta); color: #fff; border-radius: 20px; padding: 24px 20px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.carteira img { width: 84px; height: 84px; flex: none; }
.carteira .rot { color: #cfc6b4; font-size: 14px; }
.carteira .valor { font-size: 40px; font-weight: 800; color: #f3dfb4; letter-spacing: -0.02em; line-height: 1.1; margin: 4px 0 10px; }
.carteira .guardado { font-size: 14px; color: #cfc6b4; }

/* chat */
.chat-topo { display: flex; gap: 12px; align-items: center; text-decoration: none; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 10px; margin-bottom: 12px; }
.msgs { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 12px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; background: var(--papel); border: 1px solid var(--linha); align-self: flex-start; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.eu { align-self: flex-end; background: var(--ouro-fundo); border-color: #ead8b1; }
.msg.sis { align-self: center; max-width: 94%; background: none; border: 0; color: var(--cinza); font-size: 13px; text-align: center; padding: 2px 8px; }
.escrever { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); background: var(--fundo); border-top: 1px solid var(--linha); padding: 10px 16px; }
.escrever form { max-width: 688px; margin: 0 auto; display: flex; gap: 8px; }
.escrever input { border-radius: 999px; }
.escrever .btn { width: auto; flex: none; }
.com-chat { padding-bottom: calc(150px + env(safe-area-inset-bottom)) !important; }
.resumo { width: 100%; border-collapse: collapse; margin: 8px 0; }
.resumo td { padding: 5px 0; }
.resumo td:last-child { text-align: right; font-weight: 700; }
.estrelas { display: flex; gap: 6px; margin: 8px 0; }
.estrelas button { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--linha); padding: 2px; }
.estrelas button.on { color: var(--ouro-claro); }

/* admin */
.numeros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.numeros div { background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 12px 14px; }
.numeros b { display: block; font-size: 22px; }
.numeros span { font-size: 13px; color: var(--cinza); }
code { background: var(--areia); border-radius: 6px; padding: 3px 8px; font-size: 15px; letter-spacing: 0.06em; }

/* barra inferior */
#barra { position: fixed; left: 0; right: 0; bottom: 0; background: var(--papel); border-top: 1px solid var(--linha); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
#barra div { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
#barra a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 2px 8px; font-size: 11px; color: var(--cinza); text-decoration: none; min-height: 64px; justify-content: center; }
#barra a.on { color: var(--tinta); font-weight: 700; }
#barra svg { width: 24px; height: 24px; }
#barra a.novo span.bola { width: 40px; height: 40px; border-radius: 50%; background: var(--botao); color: #fff; display: grid; place-items: center; }

/* modal e toast */
.fundo-modal { position: fixed; inset: 0; background: rgba(31,28,24,.55); display: grid; place-items: end center; z-index: 20; }
.modal { background: var(--fundo); width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; }
@media (min-width: 600px) { .fundo-modal { place-items: center; } .modal { border-radius: 22px; } }
.pix-falso { border: 1.5px dashed var(--ouro-claro); border-radius: var(--raio); padding: 16px; text-align: center; margin: 14px 0; }
#toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: 14px; max-width: calc(100% - 32px); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 30; font-size: 15px; text-align: center; }
#toast.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* tipografia da marca: títulos em grotesca pesada, texto de apoio em serifa */
.lema, .sub, .nota, .texto-livre, .vazio { font-family: var(--serifa); }
.sub { font-size: 15px; }
.entrada { padding-top: 6vh; }
.entrada .logo { width: 84px; height: 84px; display: block; margin-bottom: 14px; }
.entrada h1 { font-size: 46px; font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.lema { font-size: 21px; font-weight: 600; line-height: 1.25; margin: 10px 0 6px; }

/* entrar com Google */
.btn.google { background: #fff; color: #1f1f1f; border: 1.5px solid var(--linha); font-weight: 600; }
.btn.google:hover { background: #faf9f5; }
.ou { display: flex; align-items: center; gap: 12px; color: var(--cinza); font-size: 14px; margin: 16px 0; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--linha); }

/* avatar: tamanhos e a versão no canto da foto da oferta */
.avatar.peq { width: 34px; height: 34px; font-size: 14px; }
.avatar.grande { width: 76px; height: 76px; font-size: 28px; }
.item .foto, .thumb.com-avatar { position: relative; }
.avatar.canto { position: absolute; left: 8px; bottom: 8px; width: 34px; height: 34px; font-size: 14px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.thumb.com-avatar .avatar.canto { left: auto; right: -6px; bottom: -6px; width: 24px; height: 24px; font-size: 11px; }
.aval { display: flex; gap: 12px; align-items: flex-start; }
.aval .est { color: var(--ouro-claro); letter-spacing: 1px; }
.troca-avatar { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; flex: none; }
.troca-avatar .lapis { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); background: var(--papel); border: 1px solid var(--linha); border-radius: 999px; font-size: 11px; font-weight: 600; padding: 1px 8px; color: var(--tinta); }
.link { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: var(--vermelho); text-decoration: underline; cursor: pointer; }
/* arrastar e soltar */
.soltando { outline: 2px dashed var(--ouro-claro); outline-offset: 6px; border-radius: var(--raio); background: var(--ouro-fundo); }
.so-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .so-mouse { display: inline; } p.so-mouse { display: block; } }

/* proteções de entrega */
.falta { color: var(--vermelho); font-size: 13px; font-weight: 600; }
.marca-falta { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 10px 0 12px; }
.marca-falta input { width: auto; margin-top: 3px; }

/* páginas de texto (termos e privacidade) */
.documento { font-family: var(--serifa); font-size: 17px; line-height: 1.6; padding-bottom: 60px !important; }
.documento h1, .documento h2, .documento .marca, .documento .btn { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, sans-serif; }
.documento ul { padding-left: 20px; margin: 0 0 10px; }
.documento li { margin-bottom: 6px; }
.documento a:not(.btn):not(.marca) { color: var(--ouro); }

/* locação: agenda, datas e vistorias */
.seg.tres { grid-template-columns: repeat(3, 1fr); }
.item .val small, .preco small { font-size: .55em; font-weight: 600; color: var(--cinza); letter-spacing: 0; }
.dois { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 420px; }
.cal .cab { text-align: center; font-size: 12px; color: var(--cinza); padding-bottom: 2px; }
.dia { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--linha); background: var(--papel); font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1.05; color: var(--tinta); padding: 0; }
.dia small { font-size: 9px; text-transform: uppercase; color: var(--cinza); }
button.dia { cursor: pointer; }
.dia.livre { background: var(--verde-fundo); border-color: #c5ddc9; }
.dia.ocupado { background: var(--tinta); border-color: var(--tinta); color: #f3dfb4; }
.dia.ocupado small { color: #cfc6b4; }
.dia.bloqueado { background: var(--areia); color: var(--cinza); text-decoration: line-through; }
.dia.passado { background: transparent; border-color: transparent; color: #b9b3a6; }
.legenda { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--cinza); margin-top: 10px; }
.legenda .dia { width: 16px; height: 16px; aspect-ratio: auto; border-radius: 5px; display: inline-block; margin-left: 8px; }
.legenda .dia:first-child { margin-left: 0; }
.vistoria { margin: 10px 0; padding-top: 10px; border-top: 1px solid var(--linha); }
.vistoria .fotos { margin-top: 8px; }
.vistoria .mini { display: block; width: 64px; height: 64px; }

/* não lidas, Clube, regra de contato */
#barra a { position: relative; }
.bolinha { font-style: normal; background: var(--vermelho); color: #fff; border-radius: 999px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
#barra .bolinha { position: absolute; top: 6px; left: calc(50% + 6px); }
.bolinha[hidden] { display: none; }
.bolinha.solta { vertical-align: middle; }
.link.neutro { color: var(--cinza); }
.clube-chamada { display: block; text-decoration: none; margin-top: 12px; border-color: var(--ouro-claro); background: var(--ouro-fundo); }
.clube-chamada b, .clube-chamada span { display: block; }
.plano > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 18px; }
.plano.meu { border-color: var(--ouro-claro); box-shadow: 0 0 0 2px var(--ouro-fundo); }
.plano ul { margin: 10px 0 14px; padding-left: 18px; }
.plano li { margin-bottom: 4px; }
.preco-plano { font-weight: 800; color: var(--ouro); white-space: nowrap; }
.preco-plano small { font-weight: 500; color: var(--cinza); font-size: 12px; }
.regra-contato { font-size: 13px; text-align: center; margin: 4px 8px 10px; }
.link-senha { font-size: 13px; margin-top: 10px; user-select: all; overflow-wrap: anywhere; }

/* vitrine de promoções: cara de varejo, nas cores da marca */
.promos { overflow: hidden; margin: 0 -16px 16px; padding: 2px 0 6px; }
.trilho { display: flex; gap: 12px; width: max-content; padding-left: 12px; animation: rolar var(--tempo, 30s) linear infinite; will-change: transform; }
/* o trilho tem duas levas iguais; andar metade dele (largura das levas + espaços) recomeça sem emenda */
@keyframes rolar { to { transform: translateX(-50%); } }
.promos:focus-within .trilho, .promos.pausa .trilho { animation-play-state: paused; }
/* parar com o mouse em cima vale só para mouse: no celular, o "em cima" fica preso depois do toque e a vitrine não voltaria a andar */
@media (hover: hover) and (pointer: fine) {
  .promos:hover .trilho { animation-play-state: paused; }
  .promos.solta:not(.pausa) .trilho { animation-play-state: running; }
}
@media (prefers-reduced-motion: reduce) {
  .promos { overflow-x: auto; scrollbar-width: none; }
  .trilho { animation: none; padding-right: 16px; }
  .promo[aria-hidden="true"] { display: none; }
}
.promo { flex: none; width: min(78vw, 320px); min-height: 178px; border: 0; border-radius: 20px; padding: 16px 18px; text-align: left; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; position: relative; overflow: hidden; }
.promo::after { content: ""; position: absolute; right: -46px; top: -46px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.14); }
.promo .etq { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.16); }
.promo .gran { font-size: 46px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; margin-top: 10px; }
.promo .gran.frase { font-size: 29px; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 4px; }
.promo .lin { font-size: 16px; font-weight: 600; line-height: 1.25; }
.promo .cta { margin-top: auto; font-weight: 800; font-size: 15px; padding-top: 10px; }
.promo.ouro { background: #cd9d51; color: #1f1c18; }
.promo.escuro { background: var(--tinta); color: #f3dfb4; }
.promo.escuro .etq { background: rgba(255,255,255,.14); }
.promo.verde { background: #3f7550; color: #fff; }
.promo.creme { background: var(--ouro-fundo); color: var(--tinta); box-shadow: inset 0 0 0 2px #cd9d51; }
.promo.creme .etq { background: #cd9d51; }
.promo:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.passos { padding-left: 20px; margin: 12px 0; }
.passos li { margin-bottom: 8px; }
.lin-convite { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linha); }
.selo.nivel { background: #ead9c4; color: #6e4a1e; }
.selo.nivel.n-prata { background: #e3e5e8; color: #4b5560; }
.selo.nivel.n-ouro { background: #f3dc9b; color: #6b4f00; }
.selo.nivel.n-diamante { background: #d6ecf3; color: #1f5a6e; }
.nivel-lin { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 10px; }
.nivel-lin.meu { background: var(--ouro-fundo); }

/* marca: o ".com" faz parte do nome */
.ponto { color: var(--ouro); }
.entrada h1 { font-size: clamp(34px, 11vw, 46px); }

/* computador: a vitrine ocupa a tela; no celular nada muda */
@media (min-width: 900px) {
  #app.largo { max-width: 1240px; padding-left: 28px; padding-right: 28px; }
  #app.largo .promos { margin-left: -28px; margin-right: -28px; }
  #app.largo .grade { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  #app.largo #busca { max-width: 560px; }
  .promo { width: 360px; min-height: 190px; }
}
@media (min-width: 1180px) { #app.largo .grade { grid-template-columns: repeat(5, 1fr); } }
.marca .ponto { margin-left: -8px; } /* a marca é um flex com espaço entre itens; o ".com" fica colado ao nome */

/* rodapé e perguntas frequentes */
.rodape { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--linha); text-align: center; color: var(--cinza); font-size: 14px; }
.rodape nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.rodape a { color: var(--tinta); font-weight: 600; text-decoration: none; padding: 6px 2px; }
.rodape a:hover { text-decoration: underline; }
.faq { border-bottom: 1px solid var(--linha); padding: 4px 0; }
.faq summary { cursor: pointer; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, sans-serif; font-weight: 700; font-size: 16px; padding: 12px 28px 12px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 22px; font-weight: 400; color: var(--ouro); }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0 0 14px; }

/* foto de quem oferece: maior no canto da oferta e em destaque na página da oferta e no perfil */
.avatar.canto { left: 10px; bottom: 10px; width: 54px; height: 54px; font-size: 22px; border-width: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.thumb.com-avatar .avatar.canto { left: auto; right: -8px; bottom: -8px; width: 30px; height: 30px; font-size: 13px; border-width: 2px; }
.avatar.enorme { width: 112px; height: 112px; font-size: 44px; border: 4px solid #fff; box-shadow: 0 3px 14px rgba(0,0,0,.18); }
.dono.destaque { gap: 18px; padding: 18px; align-items: center; background: var(--ouro-fundo); border-color: #e6d3b3; }
.dono.destaque b { font-size: 21px; line-height: 1.2; }
.dono.destaque .sub { font-size: 15px; }
@media (min-width: 900px) { .avatar.canto { width: 60px; height: 60px; } .avatar.enorme { width: 132px; height: 132px; font-size: 52px; } }

/* reputação no destaque do vendedor */
.dono.destaque { display: block; }
.dono.destaque .quem { display: flex; align-items: center; gap: 18px; }
.dono.destaque .quem > span { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dono.destaque .selos { display: flex; flex-wrap: wrap; gap: 6px; }
.reputacao { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-top: 16px; }
.reputacao > span { background: var(--papel); border: 1px solid #e6d3b3; border-radius: 12px; padding: 10px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.reputacao b { font-size: 22px !important; line-height: 1.1; color: var(--tinta); }
.reputacao small { font-size: 12px; color: var(--cinza); line-height: 1.2; }
.reputacao .ruim { border-color: #e0bdb5; }
.reputacao .ruim b { color: var(--vermelho); }

.promo.verde-escuro { background: #244b33; color: #fff; }
.promo .gran.frase { white-space: nowrap; }
.promo[data-promo="como"] .gran.frase { white-space: normal; }

/* Sócio do Clube: etiqueta no anúncio e selo no destaque do vendedor */
.socio { position: absolute; top: 10px; right: 10px; background: #1f1c18; color: #f3dfb4; font-size: 12px; font-weight: 800; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.socio::before { content: "♛ "; }
.selo.socio-selo { background: #1f1c18; color: #f3dfb4; }
.selo.socio-selo::before { content: "♛ "; }

/* menu em níveis da home */
.abas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--areia); border-radius: 14px; padding: 4px; margin: 12px 0 10px; }
.abas button { border: 0; background: none; padding: 11px 4px; border-radius: 11px; font: inherit; font-weight: 700; font-size: 15px; color: var(--cinza); cursor: pointer; }
.abas button.on { background: var(--tinta); color: #fff; }
.submenu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; padding: 10px 12px; background: var(--papel); border: 1px solid var(--linha); border-radius: 14px; }
.submenu .rot { font-size: 13px; font-weight: 700; color: var(--cinza); margin-right: 4px; flex-basis: 100%; }
.submenu.nivel3 { margin-left: 18px; background: var(--ouro-fundo); border-color: #e6d3b3; }
.submenu.mercado { margin: 12px 0 0; padding: 0; background: none; border: 0; }
.submenu.mercado .rot { flex-basis: auto; }
.chip.peq { padding: 6px 12px; font-size: 13px; }
.chip.breve { border-style: dashed; color: var(--cinza); cursor: default; }
@media (min-width: 900px) { .abas { max-width: 560px; } .submenu .rot { flex-basis: auto; } }

/* rodapé compacto: uma linha fina de links */
.rodape { margin-top: 20px; padding-top: 8px; font-size: 12px; line-height: 1.3; }
.rodape nav { gap: 0 14px; margin-bottom: 2px; }
.rodape a { font-weight: 500; color: var(--cinza); padding: 4px 0; }
.rodape p { margin: 0; font-size: 11px; opacity: .8; }
#app { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.documento .rodape { display: none; }

/* no cartão da oferta, a foto de quem anuncia fica no alto, à esquerda (a etiqueta de Sócio fica à direita) */
.item .foto .avatar.canto { top: 10px; bottom: auto; left: 10px; }
.item .foto .socio { top: auto; right: auto; left: 10px; bottom: 10px; } /* com a foto no alto, a etiqueta de Sócio desce para a base e não disputa espaço */

/* ---- home compacta: menos altura no topo, mais produtos na tela ---- */
.marca { font-size: 27px; gap: 9px; }
.marca img { width: 36px; height: 36px; }
.marca .ponto { margin-left: -9px; }
.topo { margin-bottom: 10px; }
.saldo-chip { padding: 6px 12px; font-size: 13px; }
/* vitrine */
.promos { margin-bottom: 10px; padding: 2px 0 4px; }
.trilho { gap: 10px; padding-left: 10px; }
.promo { width: min(66vw, 252px); min-height: 0; height: 116px; padding: 10px 12px; border-radius: 16px; gap: 1px; }
.promo::after { width: 96px; height: 96px; right: -32px; top: -32px; }
.promo .etq { font-size: 10px; padding: 2px 8px; }
.promo .gran { font-size: 27px; margin-top: 5px; }
.promo .gran.frase { font-size: 19px; margin-bottom: 1px; }
.promo .lin { font-size: 12px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo .cta { font-size: 12px; padding-top: 3px; }
/* busca e menu */
#busca { padding: 9px 12px; border-radius: 10px; font-size: 15px; }
.submenu.mercado { margin: 8px 0 0; }
.abas { margin: 8px 0; padding: 3px; border-radius: 11px; }
.abas button { padding: 7px 4px; font-size: 14px; border-radius: 9px; }
.submenu { padding: 7px 10px; margin-bottom: 8px; border-radius: 11px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.submenu::-webkit-scrollbar { display: none; }
.submenu .rot { flex-basis: auto; white-space: nowrap; font-size: 12px; }
.submenu .chip { flex: none; }
.submenu.nivel3 { margin-left: 0; }
.chip.peq { padding: 4px 10px; font-size: 12.5px; }
/* cartões de oferta */
.grade { gap: 10px; }
.item { border-radius: 12px; }
.item .foto { aspect-ratio: 4 / 3; }
.item .txt { padding: 8px 10px 9px; }
.item .tit { font-size: 13.5px; min-height: 2.6em; }
.item .val { font-size: 15px; margin-top: 2px; }
.item .meta { font-size: 11.5px; }
.item .foto .avatar.canto { width: 46px; height: 46px; font-size: 18px; top: 8px; left: 8px; }
.item .foto .socio { left: 8px; bottom: 8px; font-size: 11px; padding: 3px 8px; }
/* botões um pouco menores em todo o app */
.btn { min-height: 42px; padding: 9px 16px; font-size: 15px; }
.btn.peq { min-height: 34px; padding: 6px 14px; font-size: 13.5px; }
#barra a { min-height: 56px; padding: 6px 2px; }
#barra a.novo span.bola { width: 36px; height: 36px; }
#app { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.escrever { bottom: calc(56px + env(safe-area-inset-bottom)); }
@media (min-width: 480px) and (max-width: 899px) { .grade { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) {
  .promo { width: 290px; height: 124px; min-height: 0; }
  #app.largo .grade { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .item .foto .avatar.canto { width: 50px; height: 50px; }
}
@media (min-width: 1180px) { #app.largo .grade { grid-template-columns: repeat(6, 1fr); } }

/* slogan debaixo da marca */
.marca .nome { display: flex; flex-direction: column; line-height: 1; }
.marca .nome .ponto { margin-left: 0; }
.marca .nome small { font-size: 11.5px; font-weight: 600; letter-spacing: .01em; color: var(--cinza); margin-top: 3px; white-space: nowrap; }
.slogan { font-weight: 800; font-size: 18px; color: var(--ouro); margin: 6px 0 0; }
/* cartões da vitrine: altura pelo conteúdo (todos ficam iguais ao mais alto), sem cortar texto */
.promo { height: auto; min-height: 112px; }
.promo .lin { -webkit-line-clamp: 3; }
@media (min-width: 900px) { .promo { height: auto; min-height: 118px; } .marca .nome small { font-size: 12.5px; } }

/* rodapé colado na barra de botões: fica sempre no fim da tela, encostado nela, mesmo em páginas curtas */
#app { --barra: calc(56px + env(safe-area-inset-bottom)); position: relative; min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--barra) + 58px); }
body:has(#barra[hidden]) #app { --barra: 0px; }
.rodape { position: absolute; left: 16px; right: 16px; bottom: var(--barra); margin: 0; padding: 6px 0 5px; }
.rodape nav { margin: 0; }
#app:not(:has(.rodape)) { padding-bottom: calc(var(--barra) + 16px); }
@media (min-width: 900px) { #app.largo .rodape { left: 28px; right: 28px; } }
#app { padding-bottom: calc(var(--barra) + 74px); } /* altura do rodapé (2 linhas no celular) + um respiro antes dele */
@media (min-width: 600px) { #app { padding-bottom: calc(var(--barra) + 48px); } }
#app:not(:has(.rodape)) { padding-bottom: calc(var(--barra) + 16px); }

/* marca compacta: logo da altura das duas linhas, nome e slogan com a mesma largura */
.marca { font-size: 24px; gap: 7px; align-items: center; }
.marca img { width: 40px; height: 40px; }
.marca .nome { align-items: flex-start; }
.marca .nome > span { letter-spacing: -0.02em; line-height: 1; }
.marca .nome small { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0; margin-top: 2px; line-height: 1.1; }
@media (min-width: 900px) { .marca { font-size: 27px; } .marca img { width: 44px; height: 44px; } }

/* slogan principal: caixa alta, espaçado até a largura do nome */
.marca .nome small { text-transform: uppercase; font-size: 11px; font-weight: 800; color: var(--ouro); margin-top: 3px; }
@media (min-width: 900px) { .marca .nome small { font-size: 12px; } }
.slogan { text-transform: uppercase; letter-spacing: .12em; font-size: 16px; }
.marca .nome small { font-size: 13px; }
@media (min-width: 900px) { .marca .nome small { font-size: 14.5px; } }

/* letras da marca um pouco mais altas: estica só na vertical, a partir do topo, sem mudar a largura */
.marca .nome > span { display: inline-block; transform: scaleY(1.2); transform-origin: left top; margin-bottom: 0.2em; }
.entrada h1 { display: inline-block; transform: scaleY(1.2); transform-origin: left top; margin-bottom: 0.22em; }

/* nome e slogan encostados: a caixa de cada linha tem só a altura das letras maiúsculas,
   então o conjunto começa no topo do "E" e termina no pé do slogan, da mesma altura do símbolo */
.marca { align-items: center; }
.marca .nome > span { line-height: .74; margin-bottom: .148em; } /* .148em = o que o esticão de 20% ocupa a mais */
.marca .nome small { line-height: .74; margin-top: 5px; }
.marca img { width: 36px; height: 36px; } /* valor inicial; o tamanho exato é medido na tela */

/* cartão da oferta: a foto de quem anuncia fica antes do título, fora da foto do produto */
.cab-item { display: flex; align-items: center; gap: 8px; }
.cab-item .avatar { width: 34px; height: 34px; font-size: 14px; flex: none; }
.cab-item .tit { flex: 1; min-width: 0; }
.item .foto .socio { top: 8px; left: 8px; bottom: auto; right: auto; } /* com a foto livre, a etiqueta de Sócio volta para o alto */
@media (min-width: 900px) { .cab-item .avatar { width: 38px; height: 38px; } }

/* saldo no topo: rótulo "Seu saldo" em cima do número */
.saldo-chip { display: flex; flex-direction: column; align-items: center; line-height: 1.05; padding: 5px 14px 6px; border-radius: 14px; }
.saldo-chip small { font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #cfc6b4; }
.saldo-chip .num { font-size: 14px; font-weight: 800; }

/* cartões da vitrine na proporção de um cartão de crédito (85,6 x 53,98 mm), com os cantos arredondados dele */
.promo { width: 240px; height: auto; min-height: 0; aspect-ratio: 85.6 / 53.98; border-radius: 13px; padding: 11px 13px; }
.promo .gran { margin-top: 6px; }
.promo .lin { -webkit-line-clamp: 3; }
@media (min-width: 900px) { .promo { width: 270px; height: auto; min-height: 0; } }
.promo .gran.frase { font-size: 18px; }
.promo .cta { margin-top: auto; padding-top: 2px; }

/* cartões da vitrine 20% menores (tamanho real de um cartão) */
.promo { zoom: .85; }
@media (min-width: 900px) { .promo { zoom: .8; } }
.item .foto { transition: background-image .25s; }

/* "Seu saldo" fora da caixa: a caixa escura fica só no número */
.saldo-chip { background: none; padding: 0; border-radius: 0; gap: 3px; color: var(--tinta); }
.saldo-chip small { color: var(--cinza); font-weight: 700; }
.saldo-chip .num { background: var(--tinta); color: #f3dfb4; border-radius: 999px; padding: 5px 12px; line-height: 1.1; }

/* barra | entre as opções do rodapé */
.rodape nav { gap: 0; }
.rodape nav a + a::before { content: "|"; margin: 0 8px; opacity: .55; font-weight: 400; display: inline-block; text-decoration: none; }
.rodape nav { flex-wrap: nowrap; white-space: nowrap; }

/* números com largura natural (o "1" de largura fixa deixava buraco em 1.000); largura fixa só em tabelas */
.num { font-variant-numeric: normal; }
table.num { font-variant-numeric: tabular-nums; }

/* opções do rodapé mais afastadas */
.rodape nav a + a::before { margin: 0 12px; }
@media (min-width: 900px) { .rodape nav a + a::before { margin: 0 20px; } }

/* títulos dos cartões de anúncio bem maiores */
.promo .gran { font-size: 40px; margin-top: 4px; }
.promo .gran.frase { font-size: 27px; line-height: 1; }
.promo[data-promo="como"] .gran.frase { font-size: 23px; }
.promo .lin { -webkit-line-clamp: 2; }
.promo[data-promo="clube"] .lin { -webkit-line-clamp: 3; font-size: 11.5px; line-height: 1.15; }
.promo[data-promo="como"] .lin { font-size: 11px; }
.promo[data-promo="compra"] .gran.frase, .promo[data-promo="loc"] .gran.frase { font-size: 24px; letter-spacing: -0.03em; }

.outra-data { margin: 10px 0 6px; }
.outra-data summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ouro); }
.outra-data input { margin-top: 8px; }

/* meus anúncios: moldura verde e etiqueta para o dono reconhecer os próprios na home */
.item.minha { border: 2px solid #3f7550; box-shadow: 0 0 0 3px rgba(63,117,80,.14); }
.item .foto { position: relative; }
.item .foto .meu { position: absolute; right: 8px; bottom: 8px; background: #3f7550; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .03em; padding: 3px 8px; border-radius: 999px; }
.chip.meus { margin-left: auto; border-color: #3f7550; color: #3f7550; }
.chip.meus.on { background: #3f7550; color: #fff; }
.chip.meus { flex: none; }
@media (max-width: 480px) { .so-largo { display: none; } .submenu.mercado { gap: 6px; } }

/* complemento entre parênteses dentro do botão: "Escambar! (usar meu crédito)" */
.btn small { font-size: .78em; font-weight: 500; opacity: .85; margin-left: 4px; white-space: nowrap; }

/* marca E$CAMBOS: o símbolo é o "E", maior, colado no "$" */
.marca:has(.nome) { gap: 3px; }

.marca:has(.nome) { gap: 0; }
.marca:has(.nome) img { margin-right: -4px; }
.marca .cif { margin-right: .09em; }

/* marca colorida (símbolo, ".com" e slogan no dourado do símbolo; nome em preto): o símbolo é o "E", alinhado pelo topo das letras; o cifrão é o S da fonte com um risco;
   slogan menor e afastado, encaixado debaixo de "SCAMBOS" (a largura é medida em ajustaMarca) */
.marca:has(.nome) { color: var(--tinta); align-items: flex-start; gap: 0; }
.marca:has(.nome) img { width: auto; height: 36px; margin-right: 2px; }
.marca .nome .ponto { color: var(--ouro-claro); }
.marca .cif { position: relative; display: inline-block; margin-right: 0; }
.marca .cif::before { content: ""; position: absolute; left: 50%; top: -10%; bottom: -10%; width: .07em; margin-left: -.035em; background: currentColor; }
.marca .nome small { font-size: 8.5px; font-weight: 700; color: var(--ouro-claro); margin-top: 4px; } /* encostado no nome: só o espaço do risco do cifrão */
@media (min-width: 900px) { .marca .nome small { font-size: 9.5px; margin-top: 4.5px; } }

/* busca + categoria + abas com metade da altura: tudo mais baixo e, em tela larga, busca e categoria na mesma linha */
#busca { height: 28px; padding: 0 10px; font-size: 13.5px; border-radius: 8px; }
.submenu.mercado { margin: 4px 0 0; }
.submenu.mercado .chip.peq { padding: 2px 9px; font-size: 12px; }
.submenu.mercado .rot { font-size: 11.5px; }
.abas { margin: 4px 0 6px; padding: 2px; border-radius: 9px; }
.abas button { padding: 4px; font-size: 13px; border-radius: 7px; }
@media (min-width: 700px) {
  #busca, #app.largo #busca { float: left; width: 44%; max-width: 420px; }
  .submenu.mercado { margin: 0 0 0 calc(min(44%, 420px) + 10px); min-height: 28px; }
  .abas { clear: both; margin-top: 5px; }
}

/* "Meus anúncios" no topo, ao lado do saldo, no mesmo formato de duas linhas */
.topo-dir { display: flex; align-items: flex-end; gap: 10px; flex: none; }
.meus-chip { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.meus-chip .num { background: none; color: #3f7550; box-shadow: inset 0 0 0 1.5px #3f7550; }
.meus-chip.on .num { background: #3f7550; color: #fff; }
@media (max-width: 480px) {
  .topo-dir { gap: 5px; }
  .topo-dir .saldo-chip small { font-size: 8px; }
  .topo-dir .saldo-chip .num { font-size: 11.5px; padding: 4px 7px; }
  .topo:has(.meus-chip) .marca { font-size: 17px; }
}


/* "Meus anúncios" e "Seu saldo" idênticos em tamanho e alinhados; marca maior no topo */
.topo-dir { align-items: stretch; gap: 8px; }
.topo-dir .saldo-chip { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; margin: 0; padding: 0; font-family: inherit; font-size: 13px; line-height: 1; -webkit-appearance: none; appearance: none; }
.topo-dir .saldo-chip small { display: block; font-size: 9px; line-height: 1; letter-spacing: .06em; font-weight: 700; }
.topo-dir .saldo-chip .num { display: block; box-sizing: border-box; min-width: 84px; height: 26px; line-height: 26px; padding: 0 10px; font-size: 13px; font-weight: 800; text-align: center; border-radius: 999px; }
@media (max-width: 480px) {
  .topo-dir { gap: 5px; }
  .topo-dir .saldo-chip small { font-size: 8px; }
  .topo-dir .saldo-chip .num { min-width: 68px; height: 24px; line-height: 24px; padding: 0 7px; font-size: 11.5px; }
  .topo:has(.meus-chip) .marca { font-size: 22px; }
}

/* "Meus anúncios" inteiro dentro do botão: duas linhas numa caixa só, da altura do bloco do saldo */
.topo-dir .meus-chip { justify-content: center; gap: 2px; padding: 3px 10px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px #3f7550; background: none; color: #3f7550; }
.topo-dir .meus-chip small { color: #3f7550; }
.topo-dir .meus-chip .num { min-width: 0; height: auto; line-height: 1.1; padding: 0; background: none; box-shadow: none; color: #3f7550; border-radius: 0; }
.topo-dir .meus-chip.on { background: #3f7550; }
.topo-dir .meus-chip.on small, .topo-dir .meus-chip.on .num { color: #fff; background: none; }
@media (max-width: 480px) { .topo-dir .meus-chip { padding: 3px 8px; } .topo-dir .meus-chip .num { min-width: 0; height: auto; line-height: 1.1; padding: 0; } }

/* botão "Meus anúncios" do mesmo tamanho da caixa do saldo, alinhado pela base */
.topo-dir { align-items: flex-end; }
.topo-dir .meus-chip, .topo-dir .meus-chip.on { padding: 0; border-radius: 999px; box-shadow: none; background: none; }
.topo-dir .meus-chip .num, .topo-dir .saldo-chip .num { width: 104px; min-width: 0; height: 26px; line-height: 26px; padding: 0 6px; border-radius: 999px; font-size: 12.5px; white-space: nowrap; }
.topo-dir .meus-chip .num { background: none; color: #3f7550; box-shadow: inset 0 0 0 1.5px #3f7550; }
.topo-dir .meus-chip.on .num { background: #3f7550; color: #fff; }
@media (max-width: 480px) {
  .topo-dir .meus-chip .num, .topo-dir .saldo-chip .num { width: 76px; height: 24px; line-height: 24px; padding: 0 3px; font-size: 11.5px; }
  .topo-dir .meus-chip .num { font-size: 9.5px; letter-spacing: -0.01em; }
  .topo:has(.meus-chip) .marca { font-size: 20.5px; }
}
.marca .nome > span { white-space: nowrap; }
.marca { flex: none; }
@media (max-width: 480px) { .topo:has(.meus-chip) { gap: 6px; } .topo:has(.meus-chip) .marca { font-size: 20px; } .topo-dir { gap: 4px; } }
@media (max-width: 480px) { .topo-dir .meus-chip .num { font-size: 9px; letter-spacing: 0; } }
@media (max-width: 480px) { .topo-dir .meus-chip .num, .topo-dir .saldo-chip .num { width: min(88px, 21.3vw); } .topo-dir .meus-chip .num { font-size: 9.5px; } }
@media (max-width: 480px) { .topo-dir .meus-chip .num { font-size: 9px; padding: 0 2px; } }

/* campos de data no iPhone: o Safari dá a eles uma largura mínima própria, que estourava a coluna */
.dois { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dois > div { min-width: 0; }
input[type="date"], input[type="datetime-local"], input[type="time"] {
  display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0;
  -webkit-appearance: none; appearance: none; min-height: 46px; text-align: left;
}
input[type="date"]::-webkit-date-and-time-value, input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; }

/* só no iPhone/iPad: o campo de data vazio aparece em branco, então ganha uma dica até ser preenchido */
@supports (-webkit-touch-callout: none) {
  input[type="date"]:not(.tem)::before, input[type="datetime-local"]:not(.tem)::before {
    content: "Toque para escolher"; color: var(--cinza); font-size: 13.5px; opacity: .8; white-space: nowrap;
  }
}

.promo[data-promo="gratis"] .gran.frase { font-size: 27px; }
.promo[data-promo="gratis"] .lin { font-weight: 700; }

/* faixa de cartões também na tela de entrada, para quem ainda não tem conta */
.entrada .promos { margin-top: 4px; margin-bottom: 18px; }
.entrada-acoes { margin: 0 0 22px; }
.entrada-acoes .btn { flex: 1; }
.entrada #acesso { scroll-margin-top: 16px; }
.entrada #acesso, .entrada #f, .entrada .ou, .entrada .btn.google { max-width: 460px; margin-left: auto; margin-right: auto; }

/* valor do convite ao lado do código, no painel */
.lin .meio code + .selo { display: inline-block; width: auto; margin-left: 6px; vertical-align: middle; }
.lin .meio:has(code + .selo) { display: block; }

/* com mais de uma categoria principal, o aviso "Outras em breve" sai no celular para a linha caber */
@media (max-width: 480px) { .submenu.mercado .breve { display: none; } }

/* cartão da marca: "Porque a vida é uma troca" em duas linhas, com o slogan em destaque embaixo */
.promo[data-promo="vida"] .gran.frase { white-space: normal; font-size: 23px; line-height: 1; }
.promo[data-promo="vida"] .lin { font-size: 15px; font-weight: 800; }
.promo[data-promo="como"] .lin { -webkit-line-clamp: 3; font-size: 10.5px; line-height: 1.15; }
.promo[data-promo="bonus"] .lin, .promo[data-promo="indica"] .lin { -webkit-line-clamp: 3; }

/* "Para você" no Perfil: os cartões personalizados, parados e lado a lado */
.para-voce { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 6px; }
.para-voce .promo { zoom: 1; flex: 1 1 200px; max-width: 290px; width: auto; }

/* botão "Entrar com a Apple": preto, como pede a Apple */
.btn.apple { background: #000; color: #fff; border: 1.5px solid #000; font-weight: 600; margin-top: 10px; }
.btn.apple:hover { background: #1c1c1c; }
.btn.apple svg { margin-right: 4px; position: relative; top: -1px; }
.entrada .btn.apple { max-width: 460px; margin-left: auto; margin-right: auto; }

/* papel de parede: o símbolo repetido, muito apagado, fixo por trás de tudo (só aparece no fundo, entre os cartões) */
body::before {
  content: ""; position: fixed; inset: -40px; z-index: 0; pointer-events: none;
  background: url(/logo-ouro.png) 0 0 / 150px auto repeat; opacity: .055;
  transform: rotate(-8deg) scale(1.15);
}
#app { z-index: 1; }
/* nas páginas de leitura longa (Termos, Privacidade, FAQ) o fundo fica liso */
body:has(.documento)::before { display: none; }

/* Perfil: "Remover foto" discreto */
.link.remover-foto { font-size: 11.5px; color: var(--cinza); font-weight: 500; margin-top: 2px; }

/* selinho verde de profissional certificado, no canto da foto (como o selo de verificado das redes) */
.avatar.cert { position: relative; overflow: visible; }
.avatar.canto.cert { position: absolute; }
.avatar.cert::after {
  content: "✓"; position: absolute; right: -8%; bottom: -6%; width: 42%; height: 42%; min-width: 13px; min-height: 13px;
  border-radius: 50%; background: #1fa463; color: #fff; display: grid; place-items: center;
  font: 800 .62em/1 system-ui, sans-serif; box-shadow: 0 0 0 2px #fff;
}
.avatar.enorme.cert::after { width: 30%; height: 30%; right: 0; bottom: 0; box-shadow: 0 0 0 3px #fff; font-size: .5em; }
.cab-item .avatar.cert::after { box-shadow: 0 0 0 1.5px #fff; }

/* "Trocar" da foto do Perfil menor, deixando o selinho de certificado aparecer */
.troca-avatar .lapis { font-size: 8.5px; padding: 0 5px; bottom: -4px; left: 38%; line-height: 1.5; }

/* Abas de Negociações e Carteira: rótulo e bolinha de não lidas na mesma linha */
.seg button[data-aba] { white-space: nowrap; }
.seg button[data-aba] .bolinha.solta { margin-left: 4px; }

/* Botão "Comprar E$C" ao lado do saldo, na home: pílula dourada do mesmo tamanho das outras duas */
.topo-dir .compra-chip { border: 0; cursor: pointer; background: none; }
.topo-dir .compra-chip .num { background: var(--ouro); color: #fff; }
@media (max-width: 480px) {
  .topo:has(.compra-chip) { gap: 4px; }
  .topo:has(.compra-chip) .marca { font-size: 14px; }
  .topo:has(.compra-chip) .topo-dir { gap: 3px; }
  .topo .topo-dir:has(.compra-chip) .saldo-chip .num { width: min(72px, 18.7vw); padding: 0; font-size: 10.5px; }
  .topo .topo-dir:has(.compra-chip) .meus-chip .num, .topo .topo-dir .compra-chip .num { font-size: 8.2px; font-weight: 700; letter-spacing: -0.02em; }
}
@media (max-width: 380px) {
  .topo:has(.compra-chip) .marca { font-size: 12.5px; }
  .topo .topo-dir:has(.compra-chip) .meus-chip .num, .topo .topo-dir .compra-chip .num { font-size: 7.6px; }
}

/* Perfil no topo: último botão, depois do saldo. Rótulo em cima e a foto da pessoa embaixo. */
.topo-dir .perfil-chip { position: relative; }
.topo-dir .perfil-chip .avatar.topo { width: 26px; height: 26px; font-size: 12px; box-shadow: 0 0 0 1.5px var(--ouro); }
.topo-dir .perfil-chip .bolinha { position: absolute; top: 4px; right: -7px; }
@media (max-width: 480px) {
  .topo-dir .perfil-chip .avatar.topo { width: 24px; height: 24px; font-size: 11px; }
  /* o topo voltou a ter dois botões largos (Comprar e Saldo): a marca e as letras recuperam o tamanho */
  .topo:has(.compra-chip) .marca { font-size: 17px; }
  .topo:has(.compra-chip) .topo-dir { gap: 5px; }
  .topo .topo-dir:has(.compra-chip) .saldo-chip:not(.perfil-chip) .num { width: min(76px, 19.5vw); font-size: 11px; }
  .topo .topo-dir .compra-chip .num { font-size: 9.2px; font-weight: 800; letter-spacing: 0; }
  #barra a span { white-space: nowrap; }
}
@media (max-width: 380px) {
  .topo:has(.compra-chip) .marca { font-size: 16px; }
  .topo .topo-dir .compra-chip .num { font-size: 8.8px; }
  #barra a { font-size: 10px; }
}
/* "Comprar E$C" tem a largura do próprio texto, para nunca cortar */
.topo .topo-dir .compra-chip .num, .topo .topo-dir:has(.compra-chip) .compra-chip .num { width: auto; padding: 0 10px; }
@media (max-width: 480px) { .topo .topo-dir .compra-chip .num, .topo .topo-dir:has(.compra-chip) .compra-chip .num { width: auto; padding: 0 8px; } }
#app .topo .topo-dir .compra-chip .num { width: auto !important; padding: 0 8px !important; }
#app .topo .topo-dir .perfil-chip .avatar.topo { width: 26px; height: 26px !important; min-height: 0; max-height: 26px; flex: none; align-self: center; }
@media (max-width: 480px) { #app .topo .topo-dir .perfil-chip .avatar.topo { width: 24px; height: 24px !important; max-height: 24px; } }
/* o botão do perfil usa grade (rótulo em cima, foto embaixo) para a foto alinhar com as pílulas ao lado */
#app .topo .topo-dir .perfil-chip { display: grid; justify-items: center; align-content: end; gap: 3px; height: auto; min-width: 26px; max-width: 64px; }
#app .topo .topo-dir .perfil-chip small { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { #app .topo .topo-dir .perfil-chip, #app .topo .topo-dir .perfil-chip small { max-width: 46px; } }
#app .topo .topo-dir .perfil-chip .avatar.topo { margin: 0; }

/* Perfil no topo (versão 2): foto maior com o selinho de certificação, nome embaixo e a tarja do nível.
   Não usa mais a classe .saldo-chip, então as regras antigas do botão não se aplicam. */
#app .topo .topo-dir { align-items: center; }
#app .topo .topo-dir a.perfil-chip { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; margin-left: 10px; max-width: 70px; height: auto; text-decoration: none; color: var(--tinta); }
#app .topo .topo-dir a.perfil-chip .avatar.topo { width: 36px; height: 36px !important; max-height: 36px; margin: 0; font-size: 15px; box-shadow: 0 0 0 1.5px var(--ouro); }
#app .topo .topo-dir a.perfil-chip b { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 700; line-height: 1.1; }
#app .topo .topo-dir a.perfil-chip .selo.nivel { padding: 1px 7px; font-size: 8.5px; line-height: 1.2; letter-spacing: .03em; text-transform: uppercase; }
#app .topo .topo-dir a.perfil-chip .bolinha { position: absolute; top: -4px; right: 4px; }
@media (max-width: 480px) {
  #app .topo .topo-dir a.perfil-chip { margin-left: 7px; max-width: 54px; }
  #app .topo .topo-dir a.perfil-chip .avatar.topo { width: 32px; height: 32px !important; max-height: 32px; font-size: 13px; }
  #app .topo .topo-dir a.perfil-chip b { max-width: 54px; font-size: 10.5px; }
  #app .topo .topo-dir a.perfil-chip .selo.nivel { padding: 1px 5px; font-size: 7.5px; }
  .topo:has(.compra-chip) .marca { font-size: 15.5px; }
}
@media (max-width: 480px) {
  /* home no celular: marca + Comprar + Saldo + perfil precisam caber em uma linha */
  #app .topo:has(.compra-chip) { gap: 4px; }
  #app .topo:has(.compra-chip) .marca { font-size: 14.5px; }
  #app .topo:has(.compra-chip) .topo-dir { gap: 4px; }
  #app .topo .topo-dir:has(.compra-chip) a.saldo-chip .num { width: min(68px, 17.8vw) !important; font-size: 10.5px; }
  #app .topo .topo-dir .compra-chip .num { padding: 0 6px !important; font-size: 8.8px; }
  #app .topo .topo-dir:has(.compra-chip) a.perfil-chip { margin-left: 6px; max-width: 48px; }
  #app .topo .topo-dir:has(.compra-chip) a.perfil-chip b { max-width: 48px; }
}
@media (max-width: 480px) {
  /* marca maior na home: o espaço vem das folgas entre os botões e de um saldo um pouco mais estreito */
  #app .topo:has(.compra-chip) .marca { font-size: 17.5px; }
  #app .topo:has(.compra-chip) { gap: 3px; }
  #app .topo:has(.compra-chip) .topo-dir { gap: 3px; }
  #app .topo .topo-dir:has(.compra-chip) a.saldo-chip .num { width: min(64px, 16.8vw) !important; font-size: 10px; }
  #app .topo .topo-dir .compra-chip .num { padding: 0 5px !important; font-size: 8.6px; }
  #app .topo .topo-dir:has(.compra-chip) a.perfil-chip { margin-left: 4px; }
}

/* Marca maior no computador e no tablet (no celular quem manda são as regras do topo da home).
   Só a marca com o símbolo cresce; os títulos de tela ("Negociações", "Carteira") ficam como estavam. */
@media (min-width: 481px) { #app .topo .marca:has(img) { font-size: 30px; gap: 9px; } }
@media (min-width: 900px) { #app .topo .marca:has(img) { font-size: 38px; gap: 11px; } #app .topo .marca:has(img) .nome small { font-size: 12.5px; margin-top: 5px; } }

/* Celular, home: a marca ganha a primeira linha inteira (com o perfil à direita);
   "Comprar E$C" e o saldo descem para uma segunda linha, meio a meio. */
@media (max-width: 480px) {
  #app .topo:has(.compra-chip) { flex-wrap: wrap; align-items: center; gap: 4px 8px !important; }
  #app .topo:has(.compra-chip) .topo-dir { display: contents; }
  #app .topo:has(.compra-chip) .marca { order: 1; flex: 1 1 auto; font-size: 26px !important; }
  #app .topo:has(.compra-chip) a.perfil-chip { order: 2; margin-left: 0 !important; max-width: 60px !important; }
  #app .topo:has(.compra-chip) a.perfil-chip b { max-width: 60px !important; }
  #app .topo:has(.compra-chip) .compra-chip { order: 3; flex: 1 1 40%; }
  #app .topo:has(.compra-chip) a.saldo-chip { order: 4; flex: 1 1 40%; }
  #app .topo:has(.compra-chip) .compra-chip small { display: none; }
  #app .topo:has(.compra-chip) a.saldo-chip { flex-direction: row !important; align-items: center !important; justify-content: center !important; gap: 6px !important; background: var(--tinta) !important; border-radius: 999px !important; height: 30px; }
  #app .topo:has(.compra-chip) a.saldo-chip small { color: #cfc6b4 !important; font-size: 9px !important; }
  #app .topo:has(.compra-chip) a.saldo-chip .num { width: auto !important; height: auto !important; line-height: 1 !important; padding: 0 !important; background: none !important; font-size: 13px !important; }
  #app .topo:has(.compra-chip) .compra-chip .num { width: 100% !important; height: 30px !important; line-height: 30px !important; font-size: 12.5px !important; font-weight: 800 !important; }
}
@media (max-width: 380px) { #app .topo:has(.compra-chip) .marca { font-size: 24px !important; } }

/* Visitante: avatar vazio no canto de cima, no mesmo lugar do perfil, com "Login" onde ficaria o nível */
.entrada { position: relative; }
.login-topo { position: absolute; top: 0; right: 0; display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--tinta); }
.login-topo .avatar.vazio { width: 36px; height: 36px; margin: 0; background: #e9e4d6; color: #8a8372; box-shadow: 0 0 0 1.5px var(--ouro); }
.login-topo .avatar.vazio svg { width: 20px; height: 20px; }
.login-topo .selo { padding: 2px 9px; font-size: 10px; line-height: 1.2; letter-spacing: .03em; text-transform: uppercase; background: var(--tinta); color: #f3dfb4; }
@media (max-width: 480px) { .login-topo .avatar.vazio { width: 32px; height: 32px; } .login-topo .selo { font-size: 9px; padding: 2px 7px; } }
.login-topo { top: 14px; }
.login-topo .avatar.vazio { height: 36px !important; min-height: 0; max-height: 36px; border-radius: 50%; }
.login-topo .avatar.vazio svg { width: 20px !important; height: 20px !important; }
@media (max-width: 480px) { .login-topo .avatar.vazio { height: 32px !important; max-height: 32px; } }
.login-topo .avatar.vazio { padding: 0 !important; text-align: center; }
/* Visitante na tela toda (computador): os botões de entrar não esticam de ponta a ponta */
@media (min-width: 900px) { #app.largo .entrada .entrada-acoes { max-width: 560px; } }

/* Tela do visitante: a mesma marca do topo (símbolo fazendo o "E", SCAMBOS.com e o slogan), em tamanho grande */
.entrada .marca-grande { display: flex; align-items: center; font-size: clamp(30px, 10.2vw, 54px); gap: .22em; margin: 46px 0 20px; max-width: 100%; }
.entrada .marca-grande img { width: 1.4em; height: 1.4em; flex: none; }
.entrada .marca-grande .nome small { font-size: .29em !important; margin-top: .62em !important; line-height: 1 !important; }
@media (min-width: 900px) { .entrada .marca-grande { margin-top: 6px; } }
@media (min-width: 900px) { .entrada .marca-grande { font-size: 84px; margin-bottom: 24px; } }
/* Visitante na tela toda: a frase e os textos do acesso ficam na mesma coluna do formulário */
#app.largo .entrada .col-acesso, #app.largo .entrada #f ~ p.sub { max-width: 460px; margin-left: auto; margin-right: auto; }
#app.largo .entrada { padding-bottom: 44px; }

/* Entrar, Entrar com Google e Entrar com a Apple empilhados, na mesma coluna e com a mesma largura */
.entrada .outras-entradas { max-width: 460px; margin: 10px auto 0; display: grid; gap: 10px; }
.entrada .outras-entradas .btn { margin: 0; width: 100%; box-sizing: border-box; }
.entrada .outras-entradas p { margin: 2px 0 0 !important; }
/* As frases do acesso ficam centralizadas, como o texto dos botões Entrar / Criar conta */
.entrada .col-acesso, .entrada #f ~ p.sub { text-align: center; }
.entrada h2.col-acesso { max-width: 460px; margin-left: auto; margin-right: auto; margin-bottom: 14px; }
.entrada #f ~ p.sub { max-width: 460px; margin-left: auto; margin-right: auto; }

/* Tela do visitante: tudo alinhado pelo centro (marca, textos, botões, títulos e formulário) */
.entrada { text-align: center; }
.entrada .marca-grande { justify-content: center; margin-left: auto; margin-right: auto; width: fit-content; }
.entrada .marca-grande .nome { text-align: left; }
.entrada .lema, .entrada > p.sub { margin-left: auto; margin-right: auto; max-width: 640px; }
.entrada .entrada-acoes { margin-left: auto; margin-right: auto; justify-content: center; }
.entrada #f { text-align: left; }
.entrada #f label { text-align: left; }
.entrada .grade, .entrada .promos { text-align: left; }
/* "Troque hoje. Use depois. Com quem quiser." nunca quebra no meio; o resto do texto se distribui por igual nas linhas */
.entrada .junto { white-space: nowrap; }
.entrada > p.sub, .entrada .lema { text-wrap: balance; }
@media (min-width: 900px) { .entrada > p.sub { max-width: 760px; } }

/* Símbolo mais perto do "SCAMBOS": ele faz o papel da letra E, então fica quase colado */
.entrada .marca-grande { gap: .06em; }
.entrada .marca-grande img { margin-right: 0; }
#app .topo .marca:has(img) { gap: .1em !important; }
#app .topo .marca:has(img) img { margin-right: 0; }

/* rótulo "Perfil" embaixo do avatar do topo (no lugar do nível), no mesmo tom do "Login" do visitante */
#app .topo .topo-dir a.perfil-chip .selo.rotulo-perfil { background: var(--tinta); color: #f3dfb4; }

/* ---- Cupom de desconto: o mesmo bilhete no anúncio, para quem comprou e para o profissional ---- */
.cupom { display: flex; align-items: stretch; margin: 12px 0; border-radius: 16px; overflow: hidden; background: var(--ouro-fundo); color: var(--tinta); box-shadow: inset 0 0 0 2px var(--ouro-claro); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cupom-pct { flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 14px 8px; background: var(--tinta); color: #f3dfb4; border-right: 2px dashed var(--ouro-claro); text-align: center; }
.cupom-pct b { font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.cupom-pct span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.cupom-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; font-size: 13.5px; line-height: 1.35; }
.cupom-marca { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ouro); }
.cupom-marca i { font-style: normal; padding: 1px 8px; border-radius: 999px; background: var(--verde); color: #fff; letter-spacing: .04em; }
.cupom-tit { font-size: 16px; line-height: 1.25; }
.cupom s { color: var(--cinza); }
.cupom-cod { align-self: flex-start; margin-top: 6px; padding: 5px 12px; border-radius: 8px; background: #fff; border: 1.5px dashed var(--ouro); font-size: 19px; font-weight: 800; letter-spacing: .12em; }
.cupom-cod.amostra { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--cinza); }
.cupom.usado, .cupom.vencido { filter: grayscale(1); opacity: .7; }
.cupom.usado .cupom-marca i, .cupom.vencido .cupom-marca i { background: var(--cinza); }
.cupom.usado .cupom-cod { text-decoration: line-through; }
.tarja-cupom { position: absolute; top: 10px; left: 10px; background: var(--vermelho); color: #fff; font-size: 13px; font-weight: 800; padding: 3px 9px; border-radius: 999px; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
@media print {
  body * { visibility: hidden !important; }
  .cupom, .cupom * { visibility: visible !important; }
  .cupom { position: fixed; top: 24px; left: 24px; width: 420px; margin: 0; }
}
.cupom-qr { flex: none; display: flex; align-items: center; padding: 10px 10px 10px 0; }
.cupom-qr .qr { width: 104px; height: 104px; border-radius: 8px; display: block; }
@media (max-width: 480px) {
  .cupom { flex-wrap: wrap; }
  .cupom-pct { width: 84px; }
  .cupom-pct b { font-size: 28px; }
  .cupom-qr { flex: 1 1 100%; justify-content: center; padding: 0 0 14px; }
  .cupom-qr .qr { width: 168px; height: 168px; }
}
@media print { .cupom-qr .qr { width: 130px; height: 130px; } }
.lista .thumb.pct-cupom { display: flex; align-items: center; justify-content: center; background: var(--tinta); color: #f3dfb4; font-weight: 800; font-size: 15px; }

/* ---- Turbo: anúncio em destaque ---- */
.opcoes-turbo { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.opcoes-turbo button { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--linha); background: var(--papel); color: var(--tinta); font: inherit; cursor: pointer; text-align: left; }
.opcoes-turbo button b { font-size: 14px; }
.opcoes-turbo button span { font-size: 12.5px; color: var(--cinza); }
.opcoes-turbo button.on { border-color: var(--ouro-claro); background: var(--ouro-fundo); box-shadow: 0 0 0 2px var(--ouro-fundo); }
.item.turbinado { box-shadow: 0 0 0 2px var(--ouro-claro); }
.tarja-turbo { position: absolute; top: 10px; left: 10px; background: var(--ouro-claro); color: #1f1c18; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.tarja-cupom + .tarja-turbo { top: 40px; }

/* ---- Faixa gigante CUPOM: cupom não se confunde com produto nem com serviço inteiro ---- */
.faixa-cupom { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--vermelho); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); z-index: 1; }
.faixa-cupom b { font-size: 21px; font-weight: 900; letter-spacing: .18em; line-height: 1; }
.faixa-cupom i { font-style: normal; font-size: 17px; font-weight: 800; line-height: 1; padding: 4px 9px; border-radius: 999px; background: #fff; color: var(--vermelho); }
.faixa-cupom.grande { position: static; margin: 0 0 12px; padding: 14px 18px; border-radius: 14px; }
.faixa-cupom.grande b { font-size: 32px; }
.faixa-cupom.grande i { font-size: 24px; padding: 5px 14px; }
.item .foto .faixa-cupom ~ .tarja-turbo { top: 48px; }
.item .foto .faixa-cupom ~ .socio { top: auto; bottom: 8px; left: 8px; }
.cupom-vazio { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 34px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tinta); }
.cupom-vazio b { font-size: 46px; line-height: 1; font-weight: 900; letter-spacing: -.02em; color: var(--vermelho); }
.cupom-vazio small { margin-top: 4px; font-size: 11.5px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--cinza); }
.item:has(.faixa-cupom) .foto { background-color: var(--ouro-fundo); }
@media (max-width: 480px) { .faixa-cupom b { font-size: 16px; letter-spacing: .14em; } .faixa-cupom i { font-size: 13px; padding: 3px 7px; } .cupom-vazio b { font-size: 34px; } .cupom-vazio { padding-top: 28px; font-size: 11px; } }
/* cinco tipos na vitrine (Tudo, Produtos, Serviços, Locação, Cupons) numa linha só */
.abas { grid-template-columns: repeat(5, 1fr); }
@media (min-width: 900px) { .abas { max-width: 660px; } }
@media (max-width: 480px) { .abas { gap: 2px; } .abas button { font-size: 12px; padding: 5px 1px; letter-spacing: -.01em; } }
/* em cartão de cupom, o selo Destaque desce para a base e não cobre o percentual */
.item .foto .faixa-cupom ~ .tarja-turbo { top: auto; bottom: 8px; left: 8px; }
.item.minha .foto .faixa-cupom ~ .tarja-turbo { bottom: 34px; }
.item .foto .faixa-cupom { justify-content: center; }
.faixa-cupom.grande { justify-content: center; }

/* ---- Caixa de fotos do anúncio: grande e em destaque ---- */
.fotos.destaque { gap: 10px; padding: 12px; border-radius: 16px; background: var(--ouro-fundo); box-shadow: inset 0 0 0 2px var(--ouro-claro); }
.fotos.destaque .mini, .fotos.destaque .mais { width: 108px; height: 108px; border-radius: 14px; }
.fotos.destaque .mais { background: var(--papel); border-width: 2px; font-size: 15px; font-weight: 700; }
.fotos.destaque.vazia { padding: 0; background: none; box-shadow: none; }
.fotos.destaque.vazia .mais { width: 100%; height: auto; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px 16px; border: 2.5px dashed var(--ouro-claro); border-radius: 18px; background: var(--ouro-fundo); color: var(--tinta); }
.fotos.destaque.vazia .mais svg { width: 54px; height: 54px; color: var(--ouro); }
.fotos.destaque.vazia .mais b { font-size: 18px; }
.fotos.destaque.vazia .mais span { font-size: 13.5px; font-weight: 500; color: var(--cinza); }
.fotos.destaque.vazia .mais:hover { background: #efdcbd; }
@media (max-width: 480px) { .fotos.destaque .mini, .fotos.destaque .mais { width: 92px; height: 92px; } .fotos.destaque.vazia .mais { min-height: 160px; } }

/* tarja "Você é profissional certificado": o mesmo selo verde do avatar, grande */
.nota.tarja-cert { display: flex; align-items: center; gap: 14px; }
.nota.tarja-cert p { margin: 0; }
.selo-cert-grande { flex: none; width: 54px; height: 54px; border-radius: 50%; background: #1fa463; color: #fff; display: grid; place-items: center; font: 800 30px/1 system-ui, sans-serif; box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(0,0,0,.15); }

/* ---- Meus anúncios: filtro por situação e escolha de grade ou lista ---- */
.barra-meus { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.chips-status { display: flex; gap: 6px; flex-wrap: wrap; }
.ver-como { flex: none; display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--areia); }
.ver-como button { display: grid; place-items: center; width: 34px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--cinza); cursor: pointer; }
.ver-como button svg { width: 18px; height: 18px; }
.ver-como button.on { background: var(--tinta); color: #fff; }
.item .foto .meu.parado { background: #6b655b; }

/* cartão azul da vitrine: só a pergunta "Como funciona?", no azul-petróleo da paleta */
.promo.azul { background: #2f4f6b; color: #f3dfb4; }
.promo .gran.so { margin: auto 0; font-size: 30px; line-height: 1.1; }
@media (max-width: 480px) { .promo .gran.so { font-size: 24px; } }
/* página "Como funciona": passos numerados com o título em destaque */
.como .passos li b { display: block; }
/* tarja de certificação logo abaixo do cartão do nome, com o título dentro dela */
.nota.tarja-cert { margin: 10px 0 12px; }
.tarja-cert .tit-cert { display: block; font-family: var(--sans, system-ui, sans-serif); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1f7a4c; margin-bottom: 2px; }
/* rodapé com seis links: no celular, separadores mais justos e "Termos" sem o "de Uso", para caber numa linha */
@media (max-width: 480px) {
  .rodape nav a + a::before { margin: 0 6px; }
  .rodape { font-size: 11.5px; }
  .rodape .so-largo { display: none; }
}
@media (max-width: 480px) { .rodape nav a + a::before { margin: 0 4px; } .rodape { font-size: 11px; } }
.rodape .so-estreito { display: none; }
@media (max-width: 480px) { .rodape .so-estreito { display: inline; } }
@media (max-width: 380px) { .rodape { font-size: 10.5px; } }

/* ---- Carteira no topo, entre o saldo e o avatar do perfil ---- */
#app .topo .topo-dir a.carteira-chip { display: grid; justify-items: center; align-content: start; gap: 2px; margin-left: 10px; text-decoration: none; color: var(--tinta); }
#app .topo .topo-dir a.carteira-chip svg { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--papel); box-shadow: 0 0 0 1.5px var(--ouro); color: var(--tinta); }
#app .topo .topo-dir a.carteira-chip b { font-size: 11.5px; font-weight: 700; line-height: 1.1; }
#app .topo .topo-dir { align-items: flex-start; }
#app .topo .topo-dir .saldo-chip { align-self: center; }
@media (max-width: 480px) {
  #app .topo .topo-dir a.carteira-chip { margin-left: 7px; }
  #app .topo .topo-dir a.carteira-chip svg { width: 32px; height: 32px; padding: 7px; }
  #app .topo .topo-dir a.carteira-chip b { font-size: 10.5px; }
  #app .topo:has(.compra-chip) a.carteira-chip { order: 2; margin-left: 0 !important; align-self: flex-start; }
  #app .topo:has(.compra-chip) a.perfil-chip { align-self: flex-start; }
}

/* ---- Meus cupons: galeria com o bilhete e o QR de cada cupom ---- */
.galeria-cupons { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cupom-da-galeria { padding: 12px; border-radius: 18px; background: var(--papel); box-shadow: 0 0 0 1px var(--linha); }
.cupom-da-galeria .cupom { margin: 0 0 8px; }
.cupom-da-galeria .sub { margin: 0 0 8px; }
.cupom-da-galeria .linha-btn { gap: 8px; }
.qr-do-anuncio { display: flex; gap: 14px; align-items: center; }
.qr-do-anuncio .qr { width: 96px; height: 96px; border-radius: 8px; display: block; flex: none; }

/* ---- faixa "Instale o app" (só no celular, quando ainda não está instalado) ---- */
.faixa-instalar { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 10px 12px; border-radius: 16px; background: var(--papel); box-shadow: 0 0 0 1.5px var(--ouro-claro); }
.faixa-instalar img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.faixa-instalar span { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.3; color: var(--cinza); }
.faixa-instalar span b { display: block; font-size: 14px; color: var(--tinta); }
.faixa-instalar .btn { width: auto; flex: none; padding: 8px 14px; margin: 0; }
.faixa-instalar .fechar { flex: none; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--cinza); cursor: pointer; padding: 4px; }
.passos-instalar li b { display: block; }
/* o "Comprar E$C" agora está no topo de todas as telas: nas que têm "Voltar", ele ocupa o lugar da marca na 1ª linha */
@media (max-width: 480px) {
  #app .topo:has(.compra-chip) .voltar { order: 1; flex: 1 1 auto; text-align: left; }
  #app .topo:has(.compra-chip) .marca:not(:has(img)) { font-size: 24px !important; }
}
@media (max-width: 480px) { #app .topo:has(.compra-chip) .voltar { order: 1 !important; flex: 1 1 auto !important; text-align: left !important; width: auto; } }
/* Carteira no topo: a moeda do E$C no lugar do ícone */
#app .topo .topo-dir a.carteira-chip img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 1.5px var(--ouro); background: var(--tinta); }
@media (max-width: 480px) { #app .topo .topo-dir a.carteira-chip img { width: 32px; height: 32px; } }
#app .topo .topo-dir a.carteira-chip img { object-fit: contain; background: none; box-shadow: none; border-radius: 0; }
@media (max-width: 480px) { #app .topo:has(.compra-chip) .voltar { flex: 1 1 calc(100% - 132px) !important; } }
/* a moeda tem uma folga transparente em volta: cresce um pouco para ficar do tamanho do avatar, sem mexer na altura da linha */
#app .topo .topo-dir a.carteira-chip img { width: 44px; height: 44px; margin: -4px -4px -3px; }
@media (max-width: 480px) { #app .topo .topo-dir a.carteira-chip img { width: 40px; height: 40px; margin: -4px -4px -3px; } }
/* "Meu saldo" no topo é só leitura: o acesso à Carteira é pela moeda ao lado */
#app .topo .topo-dir a.saldo-chip.so-leitura { cursor: default; pointer-events: none; }
/* saldo primeiro, "Comprar E$C" depois (também na segunda linha do celular) */
@media (max-width: 480px) { #app .topo:has(.compra-chip) a.saldo-chip { order: 3; } #app .topo:has(.compra-chip) .compra-chip { order: 4; } }
/* botão do leitor: símbolo de scanner e "Ler QR" */
.btn.btn-scan { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.btn-scan svg { width: 22px; height: 22px; flex: none; }

/* ---- "Ler QR": quadrado no topo de Meus cupons, ao lado da Carteira ---- */
#app .topo .topo-dir .scan-chip { display: grid; justify-items: center; align-content: start; gap: 2px; margin-left: 10px; padding: 0; border: 0; background: none; color: var(--tinta); font: inherit; cursor: pointer; }
#app .topo .topo-dir .scan-chip svg { width: 36px; height: 36px; padding: 7px; border-radius: 9px; background: var(--ouro); color: #fff; }
#app .topo .topo-dir .scan-chip b { font-size: 11.5px; font-weight: 700; line-height: 1.1; }
@media (max-width: 480px) {
  #app .topo .topo-dir .scan-chip { margin-left: 0; }
  #app .topo .topo-dir .scan-chip svg { width: 32px; height: 32px; padding: 6px; }
  #app .topo .topo-dir .scan-chip b { font-size: 10.5px; }
  #app .topo:has(.compra-chip) .scan-chip { order: 2; align-self: flex-start; }
}

/* ---- Meus cupons: campo para leitor de mesa (scanner ligado ao computador) ou código digitado ---- */
.leitor-mesa { margin: 0 0 14px; }
.leitor-mesa label { margin-top: 0; }
.leitor-mesa div { display: flex; gap: 8px; align-items: stretch; }
.leitor-mesa input { flex: 1; min-width: 0; }
.leitor-mesa .btn { width: auto; flex: none; margin: 0; white-space: nowrap; }
.leitor-mesa .erro:empty { display: none; }
.tarja-cert .link { font-size: 13px; white-space: nowrap; }

/* ---- Celular: a tarja preta "Meu saldo" fica na primeira linha do topo, em todas as telas (a logo
   encolhe para dar lugar). "Comprar E$C" ocupa a segunda linha; em Meus cupons, o "Ler QR" fica ao lado dele. ---- */
@media (max-width: 480px) {
  #app .topo:has(.compra-chip) { position: relative; }
  #app .topo:has(.compra-chip) a.saldo-chip { order: 2 !important; align-self: flex-start; margin: 3px 8px 0 0 !important; flex: none !important;
    flex-direction: column !important; gap: 2px !important; height: auto !important; padding: 5px 9px 6px !important; border-radius: 12px !important; white-space: nowrap; }
  #app .topo:has(.compra-chip) a.saldo-chip small { font-size: 7px !important; line-height: 1 !important; letter-spacing: .08em; }
  #app .topo:has(.compra-chip) a.saldo-chip .num { font-size: 12px !important; }
  #app .topo:has(.compra-chip) .compra-chip { flex: 1 1 60% !important; }
  /* a tarja fica à direita, perto da Carteira mas sem encostar nela; a logo ou o título ocupam o que sobra */
  #app .topo:has(.compra-chip) .marca, #app .topo:has(.compra-chip) .voltar { flex: 1 1 0 !important; min-width: 0; padding-right: 0; }
  #app .topo:has(.compra-chip) .marca:has(img) { font-size: 17px !important; }
  #app .topo:has(.compra-chip) a.saldo-chip { margin-top: 6px !important; }
  #app .topo:has(.compra-chip) .marca:not(:has(img)) { font-size: 18px !important; line-height: 1.1; }
  #app .topo:has(.compra-chip) .scan-chip { order: 5; align-self: center; display: flex; align-items: center; gap: 5px; margin: 0; }
  #app .topo:has(.compra-chip) .scan-chip svg { width: 30px; height: 30px; padding: 6px; }
}

/* ---- Computador: um respiro maior entre as tarjas (Meu saldo / Comprar E$C) e a moeda da Carteira ---- */
@media (min-width: 481px) { #app .topo .topo-dir a.carteira-chip { margin-left: 24px; } }

/* ---- Frete: peso e medidas no anúncio e a estimativa na conversa ---- */
.quatro-medidas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quatro-medidas label { font-size: 12px; white-space: nowrap; }
@media (max-width: 420px) { .quatro-medidas { grid-template-columns: 1fr 1fr; } }
.cartao-frete .btn { width: auto; margin: 0; }
.lista-frete { list-style: none; margin: 10px 0 0; padding: 0; }
.lista-frete li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--linha); }
.lista-frete li span { display: grid; }
.lista-frete li small { color: var(--cinza, #7a7266); font-size: 12.5px; }
.cartao-frete .dica-envio { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--areia); }
.cartao-frete .dica-envio { display: flex; gap: 12px; align-items: flex-start; }
/* a logo do Melhor Envio é branca: vai sobre o azul da marca deles */
.logo-me { flex: none; display: grid; place-items: center; width: 92px; padding: 8px 10px; border-radius: 12px; background: #0b3d75; }
.logo-me img { display: block; width: 100%; height: auto; }
.cartao-me { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; }
.cartao-me .btn { width: auto; margin: 0; }
@media (max-width: 420px) { .cartao-me { flex-direction: column; } }

/* ---- Fotos no celular: tirar com a câmera ou escolher da galeria ---- */
.fotos-de-onde { margin-top: 10px; gap: 8px; }
.fotos-de-onde .btn { flex: 1; margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.fotos-de-onde .btn svg { width: 18px; height: 18px; flex: none; }

/* ---- Fotos no celular: duas caixas do mesmo tamanho, "Tirar foto" e "Enviar foto" ---- */
.fotos.destaque.vazia.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fotos.destaque.vazia.duas .mais { min-height: 150px; padding: 18px 10px; }
.fotos.destaque.vazia.duas .mais svg { width: 46px; height: 46px; }
.fotos.destaque.vazia.duas .mais b { font-size: 17px; }
/* já com fotos: as duas opções viram quadradinhos ao lado das miniaturas */
.fotos.destaque.duas:not(.vazia) .mais { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px; font-size: 12.5px; line-height: 1.15; color: var(--tinta); }
.fotos.destaque.duas:not(.vazia) .mais svg { width: 26px; height: 26px; color: var(--ouro); }
/* miniaturas e os dois quadradinhos ficam centralizados dentro da tarja */
.fotos.destaque.duas:not(.vazia) { justify-content: center; }

/* ---- Anunciar: quatro tipos (produto, serviço, locação, cupom) na mesma linha ---- */
.seg.quatro { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 420px) { .seg.quatro button { font-size: 13.5px; padding-left: 4px; padding-right: 4px; } }

/* ---- Cupom na vitrine: logo abaixo da faixa "CUPOM", uma tira de código de barras por cima da foto,
   como o canhoto de um cupom. Vale com foto ou sem foto. ---- */
.item .foto .faixa-cupom::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px;
  background:
    repeating-linear-gradient(90deg, #1b1712 0 2px, transparent 2px 4px, #1b1712 4px 5px, transparent 5px 8px, #1b1712 8px 11px, transparent 11px 12px,
      #1b1712 12px 13px, transparent 13px 16px, #1b1712 16px 18px, transparent 18px 19px, #1b1712 19px 20px, transparent 20px 23px, #1b1712 23px 26px, transparent 26px 29px),
    rgba(255, 255, 255, .92);
  background-origin: content-box; padding: 0 10px; box-sizing: border-box;
  border-bottom: 1px dashed rgba(27, 23, 18, .45);
}
.item .foto:has(.faixa-cupom) .cupom-vazio { padding-top: 46px; }
@media (max-width: 480px) { .item .foto .faixa-cupom::after { height: 13px; } .item .foto:has(.faixa-cupom) .cupom-vazio { padding-top: 40px; } }

/* ---- A tarja "CUPOM" é preta (na vitrine e na página do anúncio) ---- */
.faixa-cupom { background: var(--tinta); color: #f3dfb4; }
.faixa-cupom i { color: var(--tinta); }

/* ---- Pix de verdade: tela com o QR e o copia e cola ---- */
.qr-pix { display: block; width: min(240px, 70vw); height: auto; margin: 0 auto 10px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--linha); }
.valor-pix { font-size: 24px; color: var(--tinta); }

/* ---- Celular: o botão "Comprar E$C" sai do topo (assustava na home). Fica na Carteira e no Perfil. ---- */
@media (max-width: 480px) { #app .topo .compra-chip { display: none !important; } }
@media (min-width: 481px) { .so-celular { display: none !important; } }

/* ---- Celular: marca do Escambos maior no topo (o "Comprar E$C" saiu do topo e sobrou espaço) ---- */
@media (max-width: 480px) { #app .topo:has(.compra-chip) .marca:has(img) { font-size: 18px !important; } }
@media (max-width: 380px) { #app .topo:has(.compra-chip) .marca:has(img) { font-size: 16px !important; } }

/* ---- Páginas de texto (Como funciona, FAQ, Dicas, Termos, Privacidade): voltar no topo ---- */
.documento .voltar-topo, .voltar-topo { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 14px; padding: 8px 14px; border-radius: 999px; background: var(--tinta); color: #f3dfb4; font-family: -apple-system, system-ui, "Helvetica Neue", "Segoe UI", Roboto, sans-serif; font-weight: 700; font-size: 14px; text-decoration: none; }
.voltar-topo:hover { opacity: .9; }

/* ---- Home: faixa "Troque agora algo que você não quer mais!" logo abaixo da vitrine (abre o anúncio novo, igual ao +) ---- */
.faixa-troque { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 12px 16px; border-radius: 16px; background: var(--tinta); color: #f3dfb4; font-weight: 800; font-size: 16px; line-height: 1.25; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.faixa-troque:hover { opacity: .93; }
.faixa-troque .mais { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #c8923c; color: #fff; }
.faixa-troque .mais svg { width: 20px; height: 20px; stroke-width: 2.6; }
.faixa-troque > span:nth-child(2) { flex: 1 1 auto; }
.faixa-troque .seta { flex: 0 0 auto; font-size: 26px; line-height: 1; color: #c8923c; }

/* ---- Rodapé (barra de baixo) travado: sem o "elástico" do iPhone puxando a página e a barra junto ---- */
html, body { overscroll-behavior-y: none; }
#barra { position: fixed !important; bottom: 0 !important; transform: translateZ(0); -webkit-transform: translateZ(0); will-change: transform; }

/* ---- Rodapé de links (Como funciona, Dicas, FAQ...) travado: fica sempre à vista, logo acima da barra de baixo ---- */
#app .rodape { position: fixed; left: 0; right: 0; bottom: var(--barra); z-index: 4; margin: 0; padding: 6px 12px 5px; background: var(--papel); border-top: 1px solid var(--linha); transform: translateZ(0); }
@media (min-width: 900px) { #app.largo .rodape { left: 0; right: 0; } }
body:has(#barra[hidden]) #app .rodape { bottom: 0; padding-bottom: calc(5px + env(safe-area-inset-bottom)); }

/* ---- Visitante (celular/tablet): a marca grande sobe para a mesma linha do Login, à esquerda dele ---- */
@media (max-width: 899px) {
  .entrada:has(> .login-topo) { padding-top: 14px; }
  .entrada:has(> .login-topo) > .login-topo { top: 14px; }
  .entrada:has(> .login-topo) > .marca-grande { font-size: min(54px, calc((100vw - 96px) / 8.45)); margin: 0 58px 22px 0; width: auto; justify-content: flex-start; }
}
.faixa-troque > span:nth-child(2) { font-weight: 600; font-size: 15px; }
.faixa-troque > span:nth-child(2) b { display: block; font-weight: 800; font-size: 17px; color: #fff; margin-bottom: 1px; }

/* vídeo "Como funciona" em tela cheia */
.video-como { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 18, 15, .94); display: flex; align-items: center; justify-content: center; }
.video-como .vc-quadro { position: relative; height: 100%; max-height: 100dvh; aspect-ratio: 9 / 16; max-width: 100vw; }
.video-como video { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--fundo); }
@media (min-width: 700px) { .video-como .vc-quadro { height: 92vh; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); } }
.video-como .vc-pular { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; border: 0; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 700; font-size: 15px; background: rgba(255,255,255,.92); color: var(--tinta); cursor: pointer; }
.video-como .vc-som { position: absolute; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%); border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 800; font-size: 16px; background: var(--ouro); color: #fff; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.3); white-space: nowrap; }

/* a moedinha da Carteira gira quando o mouse passa */
@keyframes gira-moeda { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
/* e sozinha, uma volta a cada 30 segundos (a volta leva 0,9 s, no fim de cada ciclo) */
@keyframes gira-moeda-30 { 0%, 97% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
#app .topo .topo-dir a.carteira-chip img, .carteira img { animation: gira-moeda-30 30s ease-in-out infinite; }
#app .topo .topo-dir a.carteira-chip:hover img, .carteira img:hover { animation: gira-moeda .9s ease-in-out; }
@media (prefers-reduced-motion: reduce) { #app .topo .topo-dir a.carteira-chip img, .carteira img, #app .topo .topo-dir a.carteira-chip:hover img, .carteira img:hover { animation: none; } }

/* explosão de moedinhas quando uma troca é feita */
.explosao-moedas { position: fixed; inset: 0; pointer-events: none; z-index: 2000; overflow: hidden; }
.explosao-moedas img { position: absolute; left: 0; top: 0; will-change: transform, opacity; }

/* vitrine: arrastar de lado com o dedo ou o mouse; para cima e para baixo continua rolando a página */
.promos { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.promos:active { cursor: grabbing; }
@media (prefers-reduced-motion: reduce) { .promos { touch-action: auto; cursor: auto; } }

/* ---- Rodapé de links em todas as telas ---- */
/* na conversa, a caixa de escrever sobe para ficar acima do rodapé */
#app.com-chat .escrever { bottom: calc(var(--barra) + 36px); }
.com-chat { padding-bottom: calc(186px + env(safe-area-inset-bottom)) !important; }
/* páginas de texto (Como funciona, Dicas, FAQ, Termos, Privacidade): o mesmo rodapé, preso no fim da tela (não há barra de botões) */
#app.documento { --barra: 0px; padding-bottom: 76px !important; }
#app.documento .rodape { display: block; padding-bottom: calc(5px + env(safe-area-inset-bottom)); font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, sans-serif; }
#app.documento .rodape a:not(.btn):not(.marca) { color: var(--cinza); }
/* cartão azul: "Vídeo explicativo" pequeno embaixo de "Como funciona?" */
.promo .gran.so .sub-so { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; letter-spacing: .01em; opacity: .85; }
@media (max-width: 480px) { .promo .gran.so .sub-so { font-size: 13px; margin-top: 6px; } }

/* ---- Avatar sem foto: a inicial cresce junto com o círculo e fica bem no meio ---- */
.avatar:has(> .ini) { container-type: size; display: grid !important; place-items: center !important; place-content: center !important; grid-template-columns: 1fr !important; padding: 0 !important; text-align: center; }
.avatar > .ini { display: block; font-size: 52cqmin; line-height: 1; font-weight: 800; letter-spacing: 0; text-align: center; text-box: trim-both cap alphabetic; }
@supports not (text-box: trim-both cap alphabetic) { .avatar > .ini { transform: translateY(.04em); } }

/* ---- Anunciar: explicação da modalidade logo abaixo das 4 opções ---- */
.explica-mod > span { display: block; }
.explica-mod ul { margin: 8px 0 6px; padding-left: 18px; }
.explica-mod li { margin: 2px 0; }
.explica-mod .ex { font-style: italic; opacity: .85; }

/* selo de funcionamento quando o produto tem defeito ou não foi testado */
.selo.alerta { background: #fbe3d6; color: #9a3412; }

/* campo de texto que cresce com o conteúdo */
textarea.cresce { min-height: 110px; overflow: hidden; resize: none; field-sizing: content; }

/* logo do negócio: no cartão da vitrine, na página do anúncio, no cartão de quem oferece e no perfil */
.item .foto .logo-anuncio { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.negocio-anuncio { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; }
.negocio-anuncio img { width: 48px; height: 48px; object-fit: contain; background: #fff; border: 1px solid var(--linha); border-radius: 12px; padding: 4px; }
.negocio-anuncio span { font-weight: 700; }
.logo-dono { display: block; width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--linha); border-radius: 10px; padding: 3px; margin-bottom: 6px; }
.campo-logo { display: flex; gap: 14px; align-items: flex-start; margin: 6px 0 14px; }
.campo-logo .logo-previa { flex: none; width: 72px; height: 72px; display: grid; place-items: center; background: #fff; border: 1px dashed var(--linha); border-radius: 14px; overflow: hidden; }
.campo-logo .logo-previa img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.campo-logo .logo-previa small { color: var(--cinza); font-size: 11px; }

/* até duas logos por conta; em cada anúncio escolhe uma ou nenhuma */
.dois-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.escolhe-logo { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.escolhe-logo label { display: grid; place-items: center; width: 76px; height: 76px; margin: 0; background: #fff; border: 2px solid var(--linha); border-radius: 14px; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--cinza); text-align: center; }
.escolhe-logo label.on { border-color: var(--tinta); box-shadow: 0 0 0 2px rgba(0,0,0,.08); color: var(--tinta); }
.escolhe-logo input { position: absolute; opacity: 0; pointer-events: none; }
.escolhe-logo img { width: 64px; height: 64px; object-fit: contain; }

/* ajuste da logo: quadrado de prévia com fundo xadrez fora da área útil */
.ajusta-logo { width: min(320px, 100%); aspect-ratio: 1; margin: 0 auto; border: 2px solid var(--tinta); border-radius: 14px; overflow: hidden; touch-action: none; }
.ajusta-logo canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.ajusta-logo canvas:active { cursor: grabbing; }
#zoom-logo { width: 100%; }
.campo-logo .logo-previa { cursor: pointer; text-align: center; line-height: 1.25; }
.campo-logo.soltando .logo-previa { border-color: var(--tinta); background: #fffbe8; }

/* com a etiqueta "Seu anúncio" no canto, a logo sobe e fica logo acima dela */
.item .foto .meu ~ .logo-anuncio { bottom: 34px; }

/* logo menor, colada no canto inferior direito; com logo, a etiqueta "Seu anúncio" sobe e fica acima dela */
.item .foto .logo-anuncio { width: 28px; height: 28px; right: 6px; bottom: 6px; padding: 2px; border-radius: 7px; }
.item .foto .meu ~ .logo-anuncio { bottom: 6px; }
.item .foto:has(.logo-anuncio) .meu { bottom: 40px; }

/* a logo do anúncio fica na parte branca do cartão, à direita do título */
.item .cab-item .logo-anuncio { position: static; flex: none; width: 30px; height: 30px; margin-left: auto; object-fit: contain; background: #fff; border: 1px solid var(--linha); border-radius: 7px; padding: 2px; box-shadow: none; }
.item .foto:has(.logo-anuncio) .meu { bottom: 8px; }

/* anúncio com logo: a logo entra no lugar do avatar (quadrada, sem cortar) e a marca no lugar do nome */
.avatar.logo { border-radius: 9px; background-color: #fff; background-size: contain; border: 1px solid var(--linha); }
.item .por-quem { font-size: 11.5px; color: var(--cinza); margin-top: 1px; }
.negocio-anuncio .avatar.logo { width: 48px; height: 48px; }
.negocio-anuncio > span { display: flex; flex-direction: column; line-height: 1.25; }
.negocio-anuncio small { color: var(--cinza); font-weight: 500; }
.campo-logo .nome-logo { display: block; width: 100%; margin: 0 0 6px; padding: 6px 8px; font-size: 13px; }

/* selos do cartão (Destaque, Clube Turbo, Seu anúncio) bem menores */
.item .foto .tarja-turbo, .item .foto .socio, .item .foto .meu { font-size: 9px; font-weight: 800; letter-spacing: .03em; padding: 2px 6px; line-height: 1.3; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.item .foto .tarja-turbo { top: 6px; left: 6px; }
.item .foto .faixa-cupom ~ .tarja-turbo { top: 40px; }
.item .foto .socio, .item .foto .faixa-cupom ~ .socio { left: 6px; bottom: 6px; }
.item .foto .meu, .item .foto:has(.logo-anuncio) .meu { right: 6px; bottom: 6px; }
.item .foto .tarja-turbo { bottom: auto; right: auto; width: auto; height: auto; }
.item .foto .socio, .item .foto .faixa-cupom ~ .socio { top: auto; right: auto; width: auto; height: auto; }
.item .foto .meu { top: auto; left: auto; }
.item .foto .faixa-cupom ~ .tarja-turbo, .item.minha .foto .faixa-cupom ~ .tarja-turbo { top: auto; bottom: 26px; left: 6px; }

/* desconto do cupom grande na tarja preta: no cartão e no alto da página do anúncio */
.faixa-cupom { gap: 12px; }
.faixa-cupom.grande i { font-size: 30px; font-weight: 900; padding: 6px 16px; background: #f3dfb4; }
.faixa-cupom.grande b { font-size: 28px; }
.item .foto .faixa-cupom i { background: #f3dfb4; }

/* tarja do cupom: letras brancas, em caixa alta, desconto sem a pílula */
.faixa-cupom, .faixa-cupom b { color: #fff; text-transform: uppercase; }
.faixa-cupom i, .item .foto .faixa-cupom i, .faixa-cupom.grande i { background: none; color: #fff; padding: 0; text-transform: uppercase; font-weight: 900; }

/* tarja do cupom: letras bege (preferência do Cau), em caixa alta */
.faixa-cupom, .faixa-cupom b, .faixa-cupom i, .item .foto .faixa-cupom i, .faixa-cupom.grande i { color: #f3dfb4; }

/* tarja do cupom: de volta ao branco; no cartão cabe o "OFF" */
.faixa-cupom, .faixa-cupom b, .faixa-cupom i, .item .foto .faixa-cupom i, .faixa-cupom.grande i { color: #fff; }
.item .foto .faixa-cupom { gap: 8px; }
.item .foto .faixa-cupom i { white-space: nowrap; }
@media (max-width: 480px) { .item .foto .faixa-cupom b { font-size: 13px; letter-spacing: .1em; } .item .foto .faixa-cupom i { font-size: 12px; } }

/* tarja do cupom: espaçamento menor, desconto do mesmo tamanho do CUPOM e "OFF" pequeno */
.faixa-cupom b { letter-spacing: .04em; }
.faixa-cupom b, .faixa-cupom i, .item .foto .faixa-cupom b, .item .foto .faixa-cupom i { font-size: 21px; line-height: 1; }
.faixa-cupom.grande b, .faixa-cupom.grande i { font-size: 30px; }
.faixa-cupom i small { font-size: .42em; font-weight: 800; margin-left: 3px; letter-spacing: .04em; vertical-align: .15em; }
@media (max-width: 480px) { .item .foto .faixa-cupom b, .item .foto .faixa-cupom i { font-size: 16px; letter-spacing: .03em; } }

/* tarja do cupom: letras bege (decisão final do Cau) */
.faixa-cupom, .faixa-cupom b, .faixa-cupom i, .item .foto .faixa-cupom i, .faixa-cupom.grande i { color: #f3dfb4; }

.item .meta b { font-weight: 800; color: var(--tinta); }

/* cartão: o nome de quem vende fica só embaixo do avatar, como no alto da página */
.item .cab-item { align-items: flex-start; }
.quem-card { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 52px; }
.quem-card small { font-size: 10.5px; font-weight: 700; color: var(--cinza); line-height: 1.1; max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .cab-item .tit { padding-top: 2px; }

/* página de vídeos explicativos */
.lista-videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0 8px; }
@media (min-width: 700px) { .lista-videos { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.cartao-video { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0 0 12px; border: 0; border-radius: 18px; background: var(--papel); box-shadow: 0 6px 18px rgba(38,34,29,.10); overflow: hidden; cursor: pointer; font: inherit; color: var(--tinta); text-align: left; }
.cartao-video img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; background: var(--areia); }
.cartao-video b { font-family: -apple-system, system-ui, "Helvetica Neue", "Segoe UI", Roboto, sans-serif; font-size: 16px; padding: 0 12px; line-height: 1.2; }
.cartao-video small { font-size: 13px; color: var(--cinza); padding: 0 12px; }
.cartao-video .capa { position: relative; display: block; width: 100%; margin-bottom: 8px; }
.cartao-video .play { position: absolute; right: 10px; bottom: 10px; width: 52px; height: 52px; border-radius: 50%; background: rgba(176,124,60,.92); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.cartao-video .play::after { content: ""; position: absolute; left: 20px; top: 15px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.cartao-video:hover .play { transform: scale(1.06); }

/* nome embaixo do avatar: a marca pode ocupar até duas linhas curtas */
.quem-card { max-width: 60px; }
.quem-card small { max-width: 60px; white-space: normal; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }

/* reordenar fotos do anúncio: setas na base de cada miniatura, selo de capa na primeira, arrastar no computador */
.fotos .mini .move-fotos { position: absolute; left: 4px; right: 4px; bottom: 4px; display: flex; justify-content: space-between; }
.fotos .mini .move-fotos button, .fotos .mini .move-fotos i { position: static; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(31,28,24,.82); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.fotos .mini .move-fotos i { visibility: hidden; }
.fotos .mini .capa-tag { position: absolute; left: 4px; top: 4px; background: var(--ouro-claro); color: #1f1c18; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 999px; }
.fotos .mini[draggable] { cursor: grab; }
.fotos .mini.arrastando { opacity: .4; }
.fotos .mini.alvo { box-shadow: 0 0 0 3px var(--tinta); }
.quatro-medidas .un-medidas { grid-column: 1 / -1; }

/* escolher um anúncio para usar como base de um novo */
.lista-base { display: grid; gap: 8px; max-height: 55vh; overflow: auto; }
.item-base { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; text-align: left; background: var(--papel); border: 1px solid var(--linha); border-radius: 12px; cursor: pointer; font: inherit; color: inherit; }
.item-base:hover { border-color: var(--tinta); }
.item-base .thumb { flex: none; width: 56px; height: 56px; border-radius: 10px; background: var(--areia) center/cover; }
.item-base b { display: block; font-size: 14px; }
.item-base small { color: var(--cinza); }

/* convite: botão de WhatsApp ao lado do código */
.lin-convite { flex-wrap: wrap; gap: 8px; }
.btn.whats { background: #25d366; color: #fff; border-color: #25d366; }
.btn.whats:hover { background: #1ebe5a; }

/* faixa preta da home: a pergunta "Bora e$cambar?" ao lado de "Ganhe créditos agora!" */
.faixa-troque b .bora { font-style: normal; color: #c8923c; margin-left: 6px; white-space: nowrap; }

/* observação do convite (para quem foi mandado) */
.obs-convite { display: block; width: 100%; flex-basis: 100%; margin: 6px 0 0; padding: 6px 9px; font-size: 13px; border-radius: 9px; }
.lin:has(.obs-convite) { flex-wrap: wrap; }

/* observação do convite na mesma linha do código: código, campo, botões (no celular estreito pode quebrar) */
.lin:has(.obs-convite), .lin-convite:has(.obs-convite) { flex-wrap: nowrap; align-items: center; gap: 8px; }
.lin:has(.obs-convite) > .meio, .lin-convite > code { flex: none; order: 0; }
.obs-convite { flex: 1 1 140px; min-width: 90px; width: auto; flex-basis: 140px; margin: 0; order: 1; }
.lin:has(.obs-convite) > .fim, .lin-convite > .btn, .lin-convite > .link { order: 2; flex: none; }
@media (max-width: 560px) { .lin:has(.obs-convite), .lin-convite:has(.obs-convite) { flex-wrap: wrap; } .obs-convite { flex-basis: 100%; order: 3; } }

/* "Ganhar E$C": lista dos jeitos de conseguir E$C */
.lista-ganhar { display: grid; gap: 8px; }
.item-ganhar { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; text-align: left; background: var(--papel); border: 1px solid var(--linha); border-radius: 12px; cursor: pointer; font: inherit; color: inherit; }
.item-ganhar:hover { border-color: var(--tinta); }
.item-ganhar > span:first-child { flex: 1; min-width: 0; }
.item-ganhar b { display: block; font-size: 15px; }
.item-ganhar small { display: block; color: var(--cinza); font-size: 12.5px; line-height: 1.3; margin-top: 2px; }
.item-ganhar .seta { font-size: 22px; color: var(--cinza); }

/* validade dos E$C na carteira */
.validade-esc { margin: 14px 0 4px; padding: 12px 14px; background: var(--papel); border: 1px solid var(--linha); border-radius: 12px; }
.validade-esc > b { display: block; font-size: 14px; margin-bottom: 6px; }
.validade-esc .lin-val { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 3px 0; }
.validade-esc .lin-val .num { font-weight: 700; white-space: nowrap; }
.validade-esc small { display: block; color: var(--cinza); font-size: 12px; margin-top: 6px; }

/* resumo do cartão da assinatura do Clube (perfil e tela do Clube) */
.resumo-cartao b { display: block; }
.resumo-cartao .sub { display: block; }

/* extrato em reais: os 3 totais (pago, devolvido, cashback) lado a lado, numa linha só */
.numeros:has(> div:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.numeros:has(> div:nth-child(3):last-child) div { padding: 10px 10px; }
.numeros:has(> div:nth-child(3):last-child) b { font-size: clamp(15px, 4.4vw, 22px); white-space: nowrap; }

/* extratos (E$C e reais): a descrição quebra em até 2 linhas em vez de cortar com "…" */
.lista.extrato .meio b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
