[hidden] { display: none !important; }
/* =====================================================================
   TOKENS (v132) — fonte única de cores. Claro = "manhã azul" da arte do leão
   (névoa azul, nada de branco puro); escuro = a mesma arte à noite.
   ===================================================================== */
:root {
  --verde: #1fc27a;
  --display: 'Schibsted Grotesk', system-ui, sans-serif;
  --texto: 'Schibsted Grotesk', system-ui, sans-serif;
  color-scheme: light;
  /* base e superfícies */
  --fundo: #e3ecfa; --fundo-rgb: 227,236,250;
  --sup: #eef3fd;                       /* pop-ups, campos, botões (opaco) */
  --card: #edf3fd;
  --vidro: rgba(238,244,254,.88);       /* cards e blocos sobre a arte */
  --vidro-barra: rgba(226,235,250,.99); /* topo e barra fixa (com desfoque) */
  --linha: #c8d6ef; --linha2: #a8bde3;
  --txt: #0c1530; --txt2: #374564; --txt3: #52607f;
  --tit1: #0c1530; --tit2: #2346cf;
  --azul: #2f5cf0; --azul2: #2346cf; --ambar: #8f5c00; --verm: #b8283a;
  --sutil: rgba(35,70,207,.07);
  --code-fundo: rgba(47,92,240,.08); --code-borda: rgba(47,92,240,.2);
  --sel-fundo: #d2dffa; --sel-txt: #17359f;
  --sombra: rgba(18,36,90,.30);
  --elev: 0 1px 2px rgba(23,53,159,.06), 0 10px 26px -16px rgba(23,53,159,.30);
  --elev-s: 0 1px 2px rgba(23,53,159,.07);
  --veu-modal: rgba(16,30,72,.42);
  /* arte */
  --arte: url('/img/arte-claro.webp'); --arte-m: url('/img/arte-claro-cel.webp');
  --folha-esq: none; --folha-dir: none;
  --folha-op: .3;
  --arte-lavagem: .38;                  /* quanto a arte clareia no meio (some no fim) */
  --halo: 227,236,250;
  /* banner */
  --b-titulo: linear-gradient(#0c1530, #0c1530); --b-sombra: rgba(227,236,250,.9); --b-tag: #2346cf; --b-lema: #24304d; --b-traco: #2f5cf0;
  /* comparativo */
  --bom: #0d7d4d; --bom-fundo: rgba(31,194,122,.14); --bom-borda: rgba(31,194,122,.45);
  /* minha lista (pedido de várias BMs) */
  --lista-txt: #1d4ed8; --lista-fundo: rgba(37,99,235,.12); --lista-borda: rgba(37,99,235,.42); --lista-n: #2563eb; --lista-n-txt: #ffffff; /* 07/11 UX lote 6: carrinho azul (verde é só do WhatsApp) */
  /* tiers: 1 laranja, 2 verde-claro, 3 verde-escuro */
  --tier1: #e8710a; --tier2: #7cc242; --tier3: #157347;
  --t1-txt: #9a4300; --t1-fundo: #fff1e3; --t1-borda: #f2a65e;
  --t2-txt: #3b6b0c; --t2-fundo: #effadf; --t2-borda: #a6d873;
  --t3-txt: #ffffff; --t3-fundo: #157347; --t3-borda: #157347;
  /* termo achado pela busca (destaque nos cards) */
  --marca: #ffd96a; --marca-txt: #0c1530;
}
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) {
  color-scheme: dark;
  --fundo: #060914; --fundo-rgb: 6,9,20; --sup: #0d1220; --card: #10172a;
  --vidro: rgba(13,18,32,.72); --vidro-barra: rgba(8,11,20,.985);
  --linha: #1d2742; --linha2: #2a3657;
  --txt: #e8ecf5; --txt2: #a0a9bf; --txt3: #8590ab; --tit1: #ffffff; --tit2: #9fb6ff;
  --azul: #3360f0; --azul2: #94b0ff; --ambar: #f2b24c; --verm: #f0616d;
  --sutil: rgba(255,255,255,.07); --code-fundo: rgba(255,255,255,.07); --code-borda: #1d2742;
  --sel-fundo: rgba(59,108,255,.16); --sel-txt: #e8ecf5;
  --sombra: rgba(0,0,0,.7); --elev: none; --elev-s: none; --veu-modal: rgba(3,5,10,.72);
  --arte: url('/img/arte-escuro.webp'); --arte-m: url('/img/arte-escuro-cel.webp');
  --folha-esq: none; --folha-dir: none;
  --folha-op: .5; --arte-lavagem: .3; --halo: 5,8,18;
  --b-titulo: linear-gradient(180deg, #ffffff 25%, #c9d6fa 60%, #8aa4ee 100%); --b-sombra: rgba(0,0,0,.55); --b-tag: #6f9bff; --b-lema: #d3ddf5; --b-traco: #4d7dff;
  --bom: #4fe0a0; --bom-fundo: rgba(31,194,122,.14); --bom-borda: rgba(79,224,160,.4);
  --lista-txt: #9cb8ff; --lista-fundo: rgba(59,108,255,.16); --lista-borda: rgba(120,160,255,.45); --lista-n: #3b6cff; --lista-n-txt: #ffffff;
  --tier1: #ff9a3d; --tier2: #a7e26a; --tier3: #23a565;
  --t1-txt: #ffb877; --t1-fundo: rgba(255,140,40,.14); --t1-borda: rgba(255,154,61,.55);
  --t2-txt: #c3f08e; --t2-fundo: rgba(167,226,106,.13); --t2-borda: rgba(167,226,106,.5);
  --t3-txt: #e3fbee; --t3-fundo: #12603b; --t3-borda: #23a565;
  --marca: rgba(242,178,76,.42); --marca-txt: #fff6e0;
} }
:root[data-tema="escuro"] {
  color-scheme: dark;
  --fundo: #060914; --fundo-rgb: 6,9,20; --sup: #0d1220; --card: #10172a;
  --vidro: rgba(13,18,32,.72); --vidro-barra: rgba(8,11,20,.985);
  --linha: #1d2742; --linha2: #2a3657;
  --txt: #e8ecf5; --txt2: #a0a9bf; --txt3: #8590ab; --tit1: #ffffff; --tit2: #9fb6ff;
  --azul: #3360f0; --azul2: #94b0ff; --ambar: #f2b24c; --verm: #f0616d;
  --sutil: rgba(255,255,255,.07); --code-fundo: rgba(255,255,255,.07); --code-borda: #1d2742;
  --sel-fundo: rgba(59,108,255,.16); --sel-txt: #e8ecf5;
  --sombra: rgba(0,0,0,.7); --elev: none; --elev-s: none; --veu-modal: rgba(3,5,10,.72);
  --arte: url('/img/arte-escuro.webp'); --arte-m: url('/img/arte-escuro-cel.webp');
  --folha-esq: none; --folha-dir: none;
  --folha-op: .5; --arte-lavagem: .3; --halo: 5,8,18;
  --b-titulo: linear-gradient(180deg, #ffffff 25%, #c9d6fa 60%, #8aa4ee 100%); --b-sombra: rgba(0,0,0,.55); --b-tag: #6f9bff; --b-lema: #d3ddf5; --b-traco: #4d7dff;
  --bom: #4fe0a0; --bom-fundo: rgba(31,194,122,.14); --bom-borda: rgba(79,224,160,.4);
  --lista-txt: #9cb8ff; --lista-fundo: rgba(59,108,255,.16); --lista-borda: rgba(120,160,255,.45); --lista-n: #3b6cff; --lista-n-txt: #ffffff;
  --tier1: #ff9a3d; --tier2: #a7e26a; --tier3: #23a565;
  --t1-txt: #ffb877; --t1-fundo: rgba(255,140,40,.14); --t1-borda: rgba(255,154,61,.55);
  --t2-txt: #c3f08e; --t2-fundo: rgba(167,226,106,.13); --t2-borda: rgba(167,226,106,.5);
  --t3-txt: #e3fbee; --t3-fundo: #12603b; --t3-borda: #23a565;
  --marca: rgba(242,178,76,.42); --marca-txt: #fff6e0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overscroll-behavior-y: none; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + var(--barra-h) + 12px);
  scrollbar-width: thin; scrollbar-color: var(--linha2) var(--fundo); }
:root { --topo-h: 70px; --barra-h: 67px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--fundo); }
::-webkit-scrollbar-thumb { background: var(--linha2); border-radius: 10px; border: 2px solid var(--fundo); }
::-webkit-scrollbar-thumb:hover { background: var(--txt3); }
.painel-corpo { scrollbar-width: thin; overscroll-behavior: contain; }
.painel-corpo::-webkit-scrollbar-track { background: var(--sup); }
.painel-corpo::-webkit-scrollbar-thumb { border-color: var(--sup); }
body { background: var(--fundo); color: var(--txt); font: 15px/1.55 var(--texto); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--azul2); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.num { font-variant-numeric: tabular-nums; }

/* botões */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--linha2); background: var(--sup); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.bt:hover { border-color: var(--txt3); }
.bt svg { width: 18px; height: 18px; flex: none; }
.bt-verde { background: var(--verde); border-color: var(--verde); color: #04170d; }
.bt-verde:hover { background: #2bd488; border-color: #2bd488; }
.bt-azul { background: var(--azul); border-color: var(--azul); color: #fff; }
.qtd { font-size: 12px; font-weight: 700; color: var(--txt2); background: var(--sutil); border-radius: 6px; padding: 1px 6px; margin-left: 2px; font-variant-numeric: tabular-nums; }

/* topo */
.topo { position: sticky; top: 0; z-index: 40; background: var(--fundo); border-bottom: 1px solid var(--linha); }
.topo-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 70px; }
.marca { display: flex; align-items: center; gap: 12px; min-width: 0; }
.marca-u { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--azul); color: #fff; display: grid; place-items: center; }
.marca-u svg { width: 26px; height: 26px; }
.marca-txt b { display: block; font: 800 19px/1.1 var(--display); letter-spacing: -.01em; }
.marca-txt small { display: flex; align-items: center; gap: 5px; color: var(--txt3); font-size: 12.5px; white-space: nowrap; }
.marca-txt small strong { color: var(--txt); font-weight: 700; }
.ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--azul2); flex: none; }
.data::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--txt3); margin: 0 7px 3px; }

/* banner: só o texto; a arte é o fundo do site (ver "FUNDO" no fim) */
.banner { position: relative; isolation: isolate; overflow-x: clip; color: var(--txt); }
.banner-in { position: relative; padding: 104px 16px 44px; text-align: center; }
.banner-in::before { content: ''; position: absolute; z-index: -1; inset: 10% 18%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--halo), .55), transparent); filter: blur(10px); }
.banner h1 { font: 900 clamp(48px, 10vw, 128px)/.86 var(--display); letter-spacing: -.04em;
  background: var(--b-titulo); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px var(--b-sombra)); }
.banner .banner-tag { margin: 12px 0 0; max-width: none; font: 800 clamp(20px, 3vw, 34px)/1.1 var(--display); color: var(--b-tag); letter-spacing: -.01em; text-shadow: 0 0 22px var(--b-sombra); }
.banner .banner-lema { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px auto 0; max-width: none; font-size: 13px; font-weight: 600; letter-spacing: .32em; color: var(--b-lema); text-shadow: 0 1px 12px var(--b-sombra); }
.banner .banner-lema::before, .banner .banner-lema::after { content: ''; width: min(90px, 12vw); height: 1px; background: linear-gradient(90deg, transparent, var(--b-traco)); }
.banner .banner-lema::after { transform: scaleX(-1); }
.banner p.banner-desc { color: var(--txt2); margin: 16px auto 0; max-width: 52ch; font-size: 16px; }
@media (max-width: 900px) {
  .banner-in { text-align: left; }
  .banner-in::before { inset: 8% 0 8% -12%; border-radius: 50%; filter: blur(14px); background: radial-gradient(closest-side, rgba(var(--halo), .65), transparent); }
  .banner h1 { font-size: clamp(42px, 12vw, 96px); }
  .banner .banner-lema { justify-content: flex-start; margin-left: 0; letter-spacing: .16em; font-size: 11.5px; white-space: nowrap; }
  .banner .banner-lema::before, .banner .banner-lema::after { display: none; }
}

/* atalho VIP */
.atalho { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 14px 18px; background: var(--sup); border: 1px solid var(--linha); border-radius: 14px; }
.atalho:hover { border-color: var(--linha2); }
.atalho-ic { width: 42px; height: 42px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(31,194,122,.12); color: var(--verde); }
.atalho-ic svg { width: 22px; height: 22px; }
.atalho-txt { flex: 1; min-width: 0; }
.atalho-txt b { display: block; font-weight: 700; }
.atalho-txt small { color: var(--txt2); font-size: 13.5px; }
.atalho-tag { font-size: 12px; font-weight: 700; color: var(--verde); border: 1px solid rgba(31,194,122,.4); border-radius: 99px; padding: 2px 10px; }

/* abas por tipo */
.abas { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 20px 0 16px; }
.aba { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; background: var(--sup); border: 1px solid var(--linha); border-radius: 12px; cursor: pointer; }
.aba:hover { border-color: var(--linha2); }
.aba svg { width: 26px; height: 26px; flex: none; stroke: var(--txt3); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.aba b { display: block; font-weight: 600; font-size: 14.5px; color: var(--txt2); }
.aba small { font-size: 12.5px; color: var(--txt3); font-variant-numeric: tabular-nums; }
.aba[aria-pressed="true"] { background: rgba(59,108,255,.12); border-color: var(--azul); }
.aba[aria-pressed="true"] b { color: var(--txt); }
.aba[aria-pressed="true"] svg { stroke: var(--azul2); }
.aba[aria-pressed="true"] small { color: var(--azul2); }

/* barra fixa */
html { overflow-anchor: none; }
.barra { position: sticky; top: var(--topo-h); z-index: 25; overflow-anchor: none; background: var(--fundo); border-bottom: 1px solid var(--linha); }
.ferramentas { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.campo-rot { display: flex; align-items: center; gap: 10px; }
.campo-rot > span { font-size: 13px; color: var(--txt3); }
.seg { display: flex; gap: 6px; }
.seg button, .chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--linha2);
  background: var(--sup); color: var(--txt2); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"], .chip[aria-pressed="true"] { background: rgba(59,108,255,.14); border-color: var(--azul); color: var(--txt); }
.seg button[aria-pressed="true"] .qtd, .chip[aria-pressed="true"] .qtd { color: var(--azul2); background: rgba(59,108,255,.18); }
.chip:disabled { opacity: .35; cursor: default; }
.chip .cor { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.busca { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; background: var(--sup); border: 1px solid var(--linha2); border-radius: 99px; }
.busca:focus-within { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(59,108,255,.15); }
.busca svg { width: 17px; height: 17px; flex: none; stroke: var(--txt3); fill: none; stroke-width: 2; }
.busca input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0 !important; box-shadow: none; background: none; }
.busca input::placeholder { color: var(--txt3); }
.bt-filtros svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.bt-filtros .qtd { background: var(--azul); color: #fff; }
.campo { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--linha2); background: var(--sup); font-weight: 600; font-size: 14px; }

/* painel de filtros: janela (pop-up) */
.painel { position: fixed; inset: 0; z-index: 50; background: rgba(3,5,10,.72); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.painel-caixa { width: min(760px, 100%); max-height: 86vh; display: flex; flex-direction: column; background: var(--sup); border: 1px solid var(--linha2); border-radius: 18px; box-shadow: 0 30px 80px -20px var(--sombra); }
.painel-topo { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--linha); }
.painel-topo h3 { font: 800 20px var(--display); letter-spacing: -.01em; }
.fechar { background: none; border: 0; color: var(--txt2); width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
.fechar:hover { color: var(--txt); background: var(--sutil); }
.fechar svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; }
.painel-corpo { display: grid; gap: 20px; overflow: auto; padding: 18px 20px; }
.painel-pe { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--linha); }
.grupo { display: grid; gap: 8px; }
.grupo > h4 { font-size: 13.5px; font-weight: 700; color: var(--txt); }
.grupo > h4 small { font-weight: 500; font-size: 12px; color: var(--txt3); margin-left: 6px; }
.opcoes { display: flex; flex-wrap: wrap; gap: 6px; }
.limpar-linha { display: none; }
.regua-caixa { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.regua { position: relative; width: min(380px, 100%); height: 30px; }
.regua .trilho, .regua .cheio { position: absolute; top: 13px; height: 4px; border-radius: 4px; }
.regua .trilho { left: 0; right: 0; background: var(--linha2); }
.regua .cheio { background: var(--azul); }
.regua input { position: absolute; inset: 0; width: 100%; -webkit-appearance: none; appearance: none; background: none; pointer-events: none; }
.regua input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--azul); cursor: grab; }
.regua input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--azul); cursor: grab; }
.regua-txt { font-weight: 700; color: var(--azul2); font-size: 14px; }
.limpar-linha { display: flex; justify-content: flex-end; }
.link { background: none; border: 0; color: var(--azul2); font-weight: 600; cursor: pointer; font-size: 13.5px; }

/* lista */
.aviso { margin-top: 18px; padding: 10px 14px; border-radius: 10px; background: rgba(242,178,76,.08); border: 1px solid rgba(242,178,76,.25); color: var(--ambar); font-size: 14px; }
.lista-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 6px; }
.lista-topo h2 { font: 800 24px/1.1 var(--display); letter-spacing: -.015em; }
.lista-topo span { color: var(--txt3); font-size: 13.5px; }
.secao { margin-top: 22px; }
.secao-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.secao-cab .cor { width: 8px; height: 8px; border-radius: 50%; }
.secao-cab h3 { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.secao-cab .qtd { margin: 0; }
.secao-cab::after { content: ''; flex: 1; height: 1px; background: var(--linha); }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.vazio { padding: 60px 16px; text-align: center; color: var(--txt2); border: 1px dashed var(--linha2); border-radius: 14px; margin-top: 20px; }

/* card */
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--linha); border-radius: 14px; }
.card::before { content: ''; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 2px; background: var(--cor, var(--azul)); opacity: .8; }
.card.destaque { border-color: rgba(59,108,255,.6); }
.card.alvo { animation: alvo 2.6s ease-out; }
@keyframes alvo { 0%, 35% { box-shadow: 0 0 0 3px var(--azul); } 100% { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { .card.alvo { animation: none; box-shadow: 0 0 0 3px var(--azul); } }
.selo-novo { position: absolute; top: 0; left: 18px; z-index: 2; line-height: 1.35; font-size: 11px; font-weight: 800; letter-spacing: .05em; color: #fff; background: var(--azul); border-radius: 0 0 10px 10px; padding: 2px 10px 3px; }
.card:has(> .selo-novo) > .card-topo { margin-top: 12px; }
.card-topo { display: flex; align-items: flex-start; gap: 10px; padding: 18px 18px 0; }
.card-cat { font-size: 12px; color: var(--txt3); }
.card-topo h3 { font: 800 20px/1.15 var(--display); letter-spacing: -.01em; }
.estado { flex: none; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 7px; color: var(--azul2); background: rgba(59,108,255,.12); border: 1px solid rgba(59,108,255,.35); }
.estado.reservada { color: var(--ambar); background: rgba(242,178,76,.1); border-color: rgba(242,178,76,.3); }
.estado.vendida { color: var(--verm); background: rgba(240,97,109,.1); border-color: rgba(240,97,109,.3); }
.card-texto { padding: 12px 18px 4px; font-size: 14px; line-height: 1.62; color: var(--txt2); }
.card-texto p { min-height: 1em; }
.card-texto p.vazia { height: .7em; }
.card-texto p.cab { color: var(--txt); font-weight: 700; margin-top: 2px; }
.card-texto p.forte { color: var(--txt); }
.card-texto p.item { padding-left: 14px; position: relative; }
.card-texto p.item::before { content: ''; position: absolute; left: 1px; top: .78em; width: 6px; height: 2px; border-radius: 2px; background: var(--azul2); }
.card-rodape { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 12px 18px 0; padding: 14px 0 16px; border-top: 1px solid var(--linha); }
.preco span { display: block; font-size: 12px; color: var(--txt3); }
.preco b { font: 800 25px/1 var(--display); }
.acoes { display: flex; gap: 6px; }
.ic-bt { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--linha2); background: var(--sup); color: var(--txt2); cursor: pointer; }
.ic-bt:hover { color: var(--txt); border-color: var(--txt3); }
.ic-bt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card.vendida { opacity: .5; }
.card.vendida .preco b { text-decoration: line-through; text-decoration-thickness: 2px; }

.flutuante { position: fixed; right: 18px; bottom: 18px; z-index: 30; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .2s, transform .2s; height: 50px; border-radius: 99px; box-shadow: 0 10px 28px -8px rgba(31,194,122,.55); }
.rodape { margin-top: 70px; border-top: 1px solid var(--linha); }
.rodape-sobre { margin: 0; }
.rodape-sobre h2 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--txt); }
.rodape-sobre p { margin: 0; max-width: 70ch; line-height: 1.6; font-size: 13.5px; color: var(--txt3); text-wrap: pretty; }
.rodape-in { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 26px; color: var(--txt3); font-size: 13.5px;
  padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); } /* espaço para o WhatsApp e o "topo" flutuantes não cobrirem o texto no fim da página */
.rodape-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; width: 100%; padding-top: 14px; border-top: 1px solid var(--linha); }
.rodape-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.rodape-links a { color: var(--txt2); text-decoration: underline; text-decoration-color: var(--linha2); text-underline-offset: 3px; padding: 4px 0; }
.rodape-links a:hover { color: var(--azul); text-decoration-color: currentColor; }
.marca-mini { font: 800 19px/1.1 var(--display); letter-spacing: -.01em; color: var(--txt); }
.toast { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%); background: var(--txt); color: var(--fundo); padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; z-index: 99; }

@media (max-width: 900px) {
  .topo-in { height: 62px; }
  .topo-in .bt-verde span { display: none; }
  .topo-in .bt-verde { width: 46px; padding: 0; border-radius: 99px; }
  .data { display: none; }
  .banner-in { padding: 64px 16px 26px; }
  .abas { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .aba { padding: 10px 12px; }
  .ferramentas { flex-wrap: wrap; }
  .campo-rot { flex-basis: 100%; }
  .campo-rot > span { display: none; }
  .seg { flex: 1; }
  .seg button { flex: 1; justify-content: center; padding: 0 8px; }
  .busca { flex-basis: 100%; order: 2; }
  .bt-filtros, .campo { order: 3; flex: 1; }
  .painel { align-items: flex-end; padding: 0; }
  .painel-caixa { max-height: 88vh; border-radius: 18px 18px 0 0; border-width: 1px 0 0; }
  .painel-pe .bt { flex: 1; }
  .grade { grid-template-columns: minmax(0, 1fr); }
  .card-topo, .card-texto { padding-left: 16px; padding-right: 16px; }
  .card-rodape { margin: 12px 16px 0; }
  .ic-bt { width: 38px; height: 38px; }
  .acoes .bt { height: 38px; padding: 0 12px; }
  .preco b { font-size: 22px; }
  .card-texto { overflow-wrap: anywhere; }
  .flutuante span { display: none; }
  .flutuante { width: 56px; height: 56px; padding: 0; }
  .flutuante svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* botão de tema */
.topo-dir { display: flex; align-items: center; gap: 8px; }
.bt-tema { width: 42px; padding: 0; color: var(--txt2); }
.bt-tema svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* barra que recolhe: depois dos blocos de tipo, o tipo vira um seletor na barra fixa */
.tipo-mini { display: none; }
body.recolhido .tipo-mini { display: block; }
.flutuante.mostrar { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 900px) {
  :root { --topo-h: 62px; --barra-h: 160px; }
  body.recolhido .tipo-mini { flex-basis: 100%; order: 0; }
  body.recolhido .campo-rot { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .flutuante { transition: none; } }
.tema-wrap { position: relative; }
.bt-tema[aria-expanded="true"] { border-color: var(--azul); color: var(--txt); }
.tema-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 200px; padding: 6px; background: var(--sup); border: 1px solid var(--linha2); border-radius: 12px; box-shadow: 0 18px 40px -12px var(--sombra); }
.tema-op { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--txt2); cursor: pointer; text-align: left; }
.tema-op:hover, .tema-op:focus-visible { background: var(--sutil); color: var(--txt); outline: none; }
.tema-op svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tema-op .ok { margin-left: auto; width: 16px; height: 16px; color: var(--azul2); visibility: hidden; }
.tema-op[aria-checked="true"] { color: var(--txt); font-weight: 600; }
.tema-op[aria-checked="true"] .ok { visibility: visible; }

/* instalar como app */
.instalar-wrap { position: relative; }
.bt-instalar { color: var(--txt); }
.bt-instalar svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dica-ios { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 260px; padding: 14px; background: var(--sup); border: 1px solid var(--linha2); border-radius: 12px; box-shadow: 0 18px 40px -12px var(--sombra); font-size: 14px; color: var(--txt2); }
.dica-ios b { display: block; color: var(--txt); margin-bottom: 4px; }
.dica-ios strong { color: var(--txt); }
.dica-ios svg { width: 16px; height: 16px; vertical-align: -3px; fill: none; stroke: var(--azul2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .bt-instalar span { display: none; } .bt-instalar { width: 42px; padding: 0; } }
@media (display-mode: standalone) { .bt-instalar { display: none !important; } }

/* ícones no texto do card (no lugar dos emojis) */
.card-texto p.com-ic { display: flex; align-items: flex-start; gap: 8px; padding-left: 0; }
.card-texto p.com-ic::before { display: none; }
.card-texto .ic { width: 16px; height: 16px; flex: none; margin-top: .22em; fill: none; stroke: var(--azul2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-texto p.cab .ic { stroke: var(--azul); }
.card-texto .ic-moeda { width: 16px; height: 16px; flex: none; margin-top: .22em; display: inline-flex; align-items: center; justify-content: center; }
.card-texto .ic-moeda img.bandeira { width: 16px !important; height: 16px !important; vertical-align: 0; box-shadow: 0 0 0 1px rgba(127,127,127,.25); }
.card-texto .ic-moeda .moeda-cod { font-size: 8px; font-weight: 700; letter-spacing: -.02em; color: var(--azul2); }
.card-texto p.forte .ic { stroke: var(--txt2); }
/* bandeiras */
.bandeira { width: 20px; height: 13.3px; flex: none; border-radius: 2.5px; box-shadow: 0 0 0 1px rgba(127,127,127,.25); }
.seg button:disabled { opacity: .35; cursor: default; }
.moeda-card { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; padding-right: 8px; border-right: 1px solid var(--linha2); font-weight: 600; color: var(--txt2); }
.moeda-card .bandeira { width: 16px; height: 10.7px; }
.card-cat { display: flex; align-items: center; }
@media (max-width: 900px) { .seg button { gap: 5px; font-size: 13px; } .seg .qtd { display: none; } }
/* tier */
.selos { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.tier { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--linha2); color: var(--txt2); background: var(--sutil); }
.tier.t3 { color: var(--azul2); border-color: var(--azul); background: rgba(59,108,255,.12); }


/* seletor (ordenar / tipo) */
.sel { position: relative; flex: none; }
.sel.tipo-mini { display: none; }
body.recolhido .sel.tipo-mini { display: block; }
.sel-bt { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 180px; height: 42px; padding: 0 12px 0 14px;
  border-radius: 10px; border: 1px solid var(--linha2); background: var(--sup); color: var(--txt); font-weight: 600; font-size: 14px; cursor: pointer; }
.sel-bt:hover { border-color: var(--txt3); }
.sel.aberto .sel-bt { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(59,108,255,.18); }
.sel-bt svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--txt3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.sel.aberto .sel-bt svg { transform: rotate(180deg); }
.sel-lista { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 100%; width: max-content; max-width: 86vw; padding: 6px; background: var(--sup);
  border: 1px solid var(--linha2); border-radius: 12px; box-shadow: 0 18px 44px -12px var(--sombra); }
.sel.tipo-mini .sel-lista { left: 0; right: auto; }
.sel-op { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--txt2); cursor: pointer; text-align: left; white-space: nowrap; }
.sel-op:hover, .sel-op:focus-visible { background: var(--sutil); color: var(--txt); outline: none; }
.sel-op svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--azul2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.sel-op[aria-selected="true"] { color: var(--txt); font-weight: 700; background: rgba(59,108,255,.1); }
.sel-op[aria-selected="true"] svg { visibility: visible; }
@media (max-width: 900px) {
  .sel.ordem { order: 3; flex: 1; }
  .sel.ordem .sel-bt { min-width: 0; }
  body.recolhido .sel.tipo-mini { flex-basis: 100%; order: 0; }
}

/* sino de avisos */
.avisos-wrap { position: relative; }
.bt-sino { width: 42px; padding: 0; position: relative; color: var(--txt2); }
.bt-sino svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sino-n { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--verm); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--fundo); }
.avisos-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(360px, calc(100vw - 32px)); background: var(--sup); border: 1px solid var(--linha2); border-radius: 14px; box-shadow: 0 20px 50px -14px var(--sombra); overflow: hidden; }
.avisos-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--linha); }
.link-av { background: var(--azul); color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.avisos-dica { padding: 10px 16px; font-size: 13px; color: var(--txt2); background: var(--sutil); border-bottom: 1px solid var(--linha); }
.avisos-lista { max-height: 60vh; overflow: auto; }
.aviso-item { display: grid; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--linha); }
.aviso-item:last-child { border-bottom: 0; }
.aviso-item:hover { background: var(--sutil); }
.aviso-item b { font-size: 14px; }
.aviso-item span { font-size: 13.5px; color: var(--txt2); }
.aviso-item small { font-size: 12px; color: var(--txt3); }
.aviso-item.novo b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--azul); margin: 0 7px 2px 0; }
.avisos-vazio { padding: 24px 16px; text-align: center; color: var(--txt3); font-size: 14px; }

/* modo edição (dentro do painel) */
.editando [data-campo] { outline: 1.5px dashed rgba(59,108,255,.55); outline-offset: 4px; border-radius: 4px; cursor: text; min-width: 40px; }
.editando [data-campo]:hover { outline-color: var(--azul); background: rgba(59,108,255,.06); }
.editando [data-campo]:focus { outline: 2px solid var(--azul); background: rgba(59,108,255,.08); }
.editando #aviso:empty::before { content: attr(data-vazio); opacity: .6; }
.editando .flutuante, .editando .bt-instalar { display: none !important; }
@media (max-width: 900px) { .bt-sino { width: 42px; } }

.editar-ativo { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--azul); background: var(--azul); color: #fff; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.editar-ativo svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.editando .card:hover { border-color: var(--azul); }
/* painel (aba Site e prévias dos temas): tocar no card abre o card no painel */
.editando .card[data-id] { cursor: pointer; }
/* modo edição (aba Site do painel): alça para arrastar os cards de BM na ordem "Recomendados" */
.alca-ed { flex: none; width: 44px; height: 44px; margin: -7px -6px -7px -8px; display: grid; place-items: center; padding: 0; border: 1px solid var(--linha); border-radius: 10px; background: var(--sutil); color: var(--txt3); cursor: grab; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: background .15s, color .15s, transform .15s; }
.alca-ed svg { width: 22px; height: 22px; fill: currentColor; }
.alca-ed:hover, .alca-ed:focus-visible { color: var(--azul2); border-color: var(--azul); }
.alca-ed:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
.alca-ed.segurando { color: #fff; background: var(--azul); transform: scale(1.08); }
html.arrastando, html.arrastando * { cursor: grabbing !important; -webkit-user-select: none !important; user-select: none !important; }
.card.arr-lugar { border: 2px dashed var(--azul) !important; background: color-mix(in srgb, var(--azul) 7%, transparent) !important; box-shadow: none !important; }
.card.arr-lugar > * { visibility: hidden; }
.card.arr-clone { border-color: var(--azul) !important; box-shadow: 0 24px 50px -14px var(--sombra) !important; opacity: .97; }
.card.arr-clone .alca-ed { color: #fff; background: var(--azul); cursor: grabbing; }
@media (prefers-reduced-motion: reduce) { .alca-ed { transition: none; } }
.novo-ed { position: fixed; right: 18px; bottom: 18px; z-index: 40; height: 46px; padding: 0 18px; border-radius: 99px; border: 0; background: var(--azul); color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; box-shadow: 0 10px 28px -8px rgba(59,108,255,.6); }
/* marcações do WhatsApp no card */
.card-texto strong { color: var(--txt); font-weight: 700; }
.card-texto code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--sutil); border: 1px solid var(--linha); border-radius: 5px; padding: 0 5px; color: var(--txt); }
.card-texto em { font-style: italic; }

/* revisão de responsividade */
.acoes { margin-left: auto; }
.bt-icone { width: 42px; padding: 0; color: var(--txt2); }
.bt-icone svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topo-in .marca { min-width: 0; flex: 1 1 auto; }
.marca-txt { min-width: 0; }
.marca-txt small { overflow: hidden; text-overflow: ellipsis; }
.topo-dir { flex: none; }
@media (max-width: 900px) {
  .topo-dir { gap: 6px; }
  .topo-dir .bt { width: 38px; height: 38px; }
  .topo-in .bt-verde { width: 38px !important; }
  .marca-u { width: 34px; height: 34px; }
  .marca-txt b { font-size: 16px; }
  .so-desk { display: none; }
  /* barra fixa enxuta depois que a pessoa rola: tipo + filtros + ordem numa linha */
  body.recolhido .busca { display: none; }
  body.recolhido .ferramentas { flex-wrap: nowrap; gap: 6px; padding: 8px 0; }
  body.recolhido .sel.tipo-mini { flex: 1 1 auto; min-width: 0; order: 0; flex-basis: auto; }
  body.recolhido .sel.tipo-mini .sel-bt { min-width: 0; }
  body.recolhido .bt-filtros { flex: 0 0 auto; padding: 0 12px; order: 1; }
  body.recolhido .sel.ordem { flex: 0 0 auto; order: 2; }
  body.recolhido .sel.ordem .sel-bt { width: 44px; min-width: 0; padding: 0; justify-content: center; }
  body.recolhido .sel.ordem .sel-bt span { display: none; }
  body.recolhido .sel.ordem .sel-bt::before { content: ''; width: 18px; height: 18px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 4v16M3 16l4 4 4-4M17 20V4M13 8l4-4 4 4'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 4v16M3 16l4 4 4-4M17 20V4M13 8l4-4 4 4'/%3E%3C/svg%3E") center/contain no-repeat; }
  body.recolhido .sel.ordem .sel-bt svg { display: none; }
  .grade { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) { .topo-dir { gap: 4px; } .topo-dir .bt { width: 36px; height: 36px; } }
.sel-bt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 600px) { .avisos-pop { position: fixed; left: 16px; right: 16px; top: calc(var(--topo-h, 64px) + 8px); width: auto; } .avisos-lista { max-height: 55vh; } }

/* voltar ao topo (acima do botão do WhatsApp) */
body { overscroll-behavior-y: none; }
.topo-bt { position: fixed; right: 22px; bottom: 82px; z-index: 30; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--sup); color: var(--txt); border: 1px solid var(--linha2); box-shadow: 0 10px 26px -10px var(--sombra);
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .2s, transform .2s, background .15s; }
.topo-bt svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.topo-bt:hover { background: var(--azul); color: #fff; border-color: var(--azul); }
.topo-bt.mostrar { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 900px) { .topo-bt { right: 24px; bottom: 86px; } }
.editando .topo-bt { display: none !important; }
@media (prefers-reduced-motion: reduce) { .topo-bt { transition: none; } }

/* ---------- modo de ver: lista ou carrossel ---------- */
.lista-dir { display: flex; align-items: center; gap: 12px; }
.visao { display: inline-flex; padding: 3px; gap: 2px; background: var(--sup); border: 1px solid var(--linha2); border-radius: 10px; }
.visao button { width: 34px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--txt3); cursor: pointer; }
.visao button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.visao button[aria-pressed="true"] { background: rgba(59,108,255,.16); color: var(--azul2); }
.setas { display: none; gap: 6px; order: 3; }
.seta { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--linha2); background: var(--sup); color: var(--txt2); cursor: pointer; }
.seta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seta:hover { border-color: var(--azul); color: var(--txt); }
body.carrossel .setas { display: inline-flex; }
body.carrossel .secao-cab::after { order: 2; }
body.carrossel .grade { display: flex; grid-template-columns: none; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  margin: -10px -16px 0; padding: 12px 16px 12px; scroll-padding-inline: 16px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
body.carrossel .grade > .card { flex: 0 0 min(360px, calc(100vw - 56px)); scroll-snap-align: start; }
@media (max-width: 600px) { .setas { display: none !important; } .lista-dir { gap: 8px; } }
.lista-topo { flex-wrap: wrap; align-items: center; row-gap: 8px; }

.sel-lista { overflow-y: auto; overscroll-behavior: contain; }
.sel-lista.acima { top: auto; bottom: calc(100% + 6px); }
.toast { width: max-content; max-width: min(440px, calc(100vw - 32px)); text-align: center; line-height: 1.4; }

/* ---------- faixa de privacidade (consentimento) ---------- */
.cc { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9999; max-width: 520px; margin: 0 auto; background: var(--sup); color: var(--txt);
  border: 1px solid var(--linha2); border-radius: 16px; padding: 16px 18px 10px; box-shadow: 0 16px 44px -12px var(--sombra); animation: cc-in .25s ease-out; }
.cc-tit { display: block; font: 700 15.5px/1.3 var(--display); margin-bottom: 4px; }
.cc-txt { color: var(--txt2); font-size: 14px; line-height: 1.45; margin: 0 0 12px; }
.cc-sim { display: flex; justify-content: center; width: 100%; padding: 13px 16px; font-size: 15.5px; font-weight: 700; border-radius: 12px; }
.cc-sim:hover { filter: brightness(1.08); border-color: var(--azul); }
.cc-nao { display: block; margin: 6px auto 0; padding: 6px 8px; background: none; border: 0; color: var(--txt3); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cc-nao:hover { color: var(--txt2); }
.cc-mais { color: var(--azul2); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; font-weight: 600; }
@keyframes cc-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .cc { animation: none; } }
.editando .cc { display: none !important; }

/* ---------- polimento de UI/UX (v42) ---------- */
/* estados dos botões */
.bt, .ic-bt, .chip, .seg button, .sel-bt, .aba, .visao button, .seta, .topo-bt, .fechar, .link-av { transition: background-color .15s, border-color .15s, color .15s, transform .08s; }
.bt:active, .ic-bt:active, .chip:active, .seg button:active, .aba:active, .seta:active, .topo-bt:active { transform: scale(.97); }
.bt-azul:hover { background: #2a52d8; border-color: #2a52d8; }
.bt:disabled, .ic-bt:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.seg button:not(:disabled):not([aria-pressed="true"]):hover, .chip:not(:disabled):not([aria-pressed="true"]):hover { border-color: var(--txt3); color: var(--txt); }
.visao button:hover { color: var(--txt); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ic-bt.ok { color: var(--azul2); border-color: var(--azul); background: rgba(59,108,255,.12); }
.sel-op:focus-visible, .tema-op:focus-visible { box-shadow: inset 0 0 0 2px var(--azul2); }

/* alvos de toque (mín. 44px) */
.ic-bt { width: 44px; height: 44px; }
.acoes .bt { height: 44px; }
.visao button { width: 40px; height: 36px; }
.seta { width: 40px; height: 40px; }
.topo-dir .bt, .fechar { position: relative; }
.topo-dir .bt::after, .fechar::after, .visao button::after { content: ''; position: absolute; inset: -4px; }
.visao button { position: relative; }
.fechar { width: 40px; height: 40px; }

/* busca: sem o "x" do navegador, com botão próprio */
.busca input::-webkit-search-cancel-button, .busca input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.busca-x { flex: none; width: 30px; height: 30px; margin-right: -8px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--sutil); color: var(--txt2); cursor: pointer; position: relative; }
.busca-x::after { content: ''; position: absolute; inset: -7px; }
.busca-x:hover { color: var(--txt); background: var(--linha); }
.busca-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* cards: rodapé (preço e botões) alinhado na mesma altura em cada linha */
.grade { align-items: stretch; }
.card-rodape { margin-top: auto; align-items: center; }
.card-texto { flex: 0 0 auto; overflow-wrap: anywhere; }
.card-topo h3 { overflow-wrap: anywhere; }
.selos { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; max-width: 48%; }
.preco b { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.preco span { margin-bottom: 4px; }
body.carrossel .grade { align-items: stretch; }
@media (min-width: 640px) and (max-width: 900px) { .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 380px) { .acoes .bt { padding: 0 12px; } .acoes { gap: 6px; } }

/* barra fixa no computador: sem o rótulo "Moeda" quando recolhida, para a busca respirar */

/* estado vazio */
.vazio { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; }
.vazio-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(59,108,255,.12); color: var(--azul2); margin-bottom: 4px; }
.vazio-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.vazio b { font: 700 17px/1.3 var(--display); color: var(--txt); }
.vazio p { max-width: 46ch; font-size: 14.5px; line-height: 1.5; }
.vazio-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.vazio-acoes .bt { height: 44px; }
.vazio-acoes .bt-verde svg { width: 20px; height: 20px; }

/* carregando: esqueleto no lugar da tela em branco */
.esq { position: relative; overflow: hidden; background: var(--sup); border: 1px solid var(--linha); border-radius: 12px; pointer-events: none; }
.esq::after, .esq-l::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--sutil), transparent); transform: translateX(-100%); animation: esq 1.3s ease-in-out infinite; }
.esq-l { position: relative; overflow: hidden; display: block; height: 12px; border-radius: 6px; background: var(--sutil); }
@keyframes esq { to { transform: translateX(100%); } }
.aba.esq { height: 72px; }
.seg .esq-bt { height: 38px; width: 78px; border-radius: 10px; }
.seg .esq-bt:first-child { width: 72px; }
.card.esq { height: 540px; padding: 18px; display: grid; align-content: start; gap: 12px; border-radius: 14px; }
.card.esq::before { display: none; }
.esq-cab { width: 40%; height: 12px; margin: 26px 0 16px; }
@media (max-width: 900px) { .aba.esq { height: 68px; } }
@media (max-width: 600px) { .aba.esq { height: 90px; } }
@media (max-width: 900px) { .seg .esq-bt { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .esq::after, .esq-l::after { animation: none; } }

/* botões flutuantes: somem ao descer (não cobrem o "Quero este") e voltam ao subir; nunca em cima da faixa de privacidade */
body:has(#um-cc) .flutuante, body:has(#um-cc) .topo-bt { opacity: 0 !important; pointer-events: none !important; }
.toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 10px 30px -10px var(--sombra); }
.flutuante { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.topo-bt { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 900px) { .topo-bt { right: 24px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } }

/* tipografia no celular */
@media (max-width: 600px) {
  .card-topo h3 { font-size: 18.5px; }
  .card-texto { font-size: 14px; line-height: 1.6; }
  .lista-topo h2 { font-size: 21px; }
  .marca-txt small { font-size: 12px; }
}
/* card estreito: preço em cima, botões ocupando a largura (o "Quero este" estica) */
@media (max-width: 440px) {
  .card-rodape .acoes { width: 100%; margin-left: 0; }
  .card-rodape .acoes .bt-verde { flex: 1; }
}

/* ---------- preferências salvas (filtros + ordem + busca + modo de ver, neste aparelho) ---------- */
.bt-pref { position: relative; flex: none; color: var(--txt); }
.bt-pref::after { content: ''; position: absolute; inset: -3px; }
.bt-pref svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.bt-pref.on svg { fill: var(--ambar); stroke: var(--ambar); }
.bt-pref[aria-expanded="true"] { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(59,108,255,.18); }

.pref-fundo { position: fixed; inset: 0; z-index: 79; background: rgba(3,5,10,.6); backdrop-filter: blur(2px); }
.pop-pref { position: fixed; z-index: 80; width: min(400px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 12px; padding: 14px;
  background: var(--sup); border: 1px solid var(--linha2); border-radius: 14px; box-shadow: 0 20px 50px -14px var(--sombra); overflow: hidden; }
.pref-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; }
.pref-cab h3 { font: 800 17px/1.2 var(--display); letter-spacing: -.01em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.pref-cab h3 small { font: 500 12.5px var(--texto); color: var(--txt3); letter-spacing: 0; }
.pref-cab .fechar { flex: none; width: 44px; height: 44px; margin: -8px -8px -8px 0; }
.pref-lista { display: grid; align-content: start; gap: 6px; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: 0 -4px; padding: 0 4px; }
.pref-vazio { color: var(--txt2); font-size: 14px; line-height: 1.5; padding: 10px 12px; border: 1px dashed var(--linha2); border-radius: 12px; }
.pref-item { border: 1px solid var(--linha); border-radius: 12px; background: var(--fundo); min-width: 0; }
.pref-item.ativa { border-color: var(--azul); box-shadow: inset 3px 0 0 var(--azul); }
.pref-linha { display: flex; align-items: stretch; min-width: 0; }
.pref-aplicar { flex: 1; min-width: 0; min-height: 54px; display: grid; align-content: center; gap: 2px; text-align: left; padding: 8px 12px; background: none; border: 0; border-radius: 12px 0 0 12px; cursor: pointer; color: var(--txt); }
.pref-aplicar:hover { background: var(--sutil); }
.pref-nome { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 700; font-size: 14.5px; }
.pref-nome > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pref-selo { flex: none; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 99px; background: color-mix(in srgb, var(--ambar) 16%, transparent); color: var(--ambar); }
.pref-resumo { font-size: 12.5px; color: var(--txt3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pref-mais { flex: none; width: 46px; min-height: 44px; display: grid; place-items: center; background: none; border: 0; border-left: 1px solid var(--linha); border-radius: 0 12px 12px 0; color: var(--txt2); cursor: pointer; }
.pref-mais:hover, .pref-mais[aria-expanded="true"] { background: var(--sutil); color: var(--txt); }
.pref-mais svg { width: 18px; height: 18px; fill: currentColor; }
.pref-acoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px; border-top: 1px solid var(--linha); }
.pref-acoes .bt { height: 44px; justify-content: flex-start; padding: 0 10px; font-size: 13.5px; min-width: 0; }
.pref-acoes .bt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pref-acoes svg, .pref-pe .bt svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pref-acoes [data-pa="padrao"][aria-pressed="true"] svg { fill: var(--ambar); stroke: var(--ambar); }
.pref-acoes .perigo { color: var(--verm); }
.pref-acoes .perigo:hover { border-color: var(--verm); }
.pref-pe { display: grid; gap: 8px; flex: none; border-top: 1px solid var(--linha); padding-top: 12px; }
.pref-pe .bt { height: 44px; width: 100%; }
.pref-pe small { color: var(--txt3); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
@keyframes pref-sobe { from { transform: translateY(100%); } }
@media (max-width: 900px) {
  .bt-pref { order: 3; height: 42px; }
  body.recolhido .bt-pref { order: 3; }
  body.pref-aberta { overflow: hidden; }
  .pop-pref { left: 0; right: 0; bottom: 0; width: auto; max-height: min(82dvh, calc(100dvh - 64px)); border-radius: 18px 18px 0 0; border-width: 1px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -12px 40px -12px var(--sombra); animation: pref-sobe .22s ease-out; }
}
@media (prefers-reduced-motion: reduce) { .pop-pref { animation: none; } }

/* chip "Preferência: nome" acima da lista */
.pref-chip-lugar { order: 5; flex-basis: 100%; display: flex; align-items: center; gap: 4px; min-width: 0; }
.tag-pref { position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; min-height: 36px; padding: 0 12px; border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--ambar) 55%, transparent); background: color-mix(in srgb, var(--ambar) 12%, transparent); color: var(--txt); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.tag-pref::after { content: ''; position: absolute; inset: -4px 0; }
.tag-pref:hover { border-color: var(--ambar); }
.lista-topo .tag-pref span { color: inherit; font-size: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tag-pref svg { width: 14px; height: 14px; flex: none; fill: var(--ambar); stroke: var(--ambar); stroke-width: 2; stroke-linejoin: round; }
.tag-pref i { font-style: normal; font-weight: 700; color: var(--ambar); white-space: nowrap; flex: none; }
.tag-pref-x { position: relative; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--txt3); cursor: pointer; }
.tag-pref-x::after { content: ''; position: absolute; inset: -4px; }
.tag-pref-x:hover { background: var(--sutil); color: var(--txt); }
.tag-pref-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 440px) { .tag-pref i { font-size: 12.5px; } }

/* aviso com Desfazer */
.aviso-pref { display: flex; align-items: center; gap: 12px; padding: 4px 4px 4px 16px; text-align: left; }
.aviso-pref span { min-width: 0; overflow-wrap: anywhere; }
.aviso-pref button { flex: none; height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--fundo) 40%, transparent); background: transparent; color: var(--fundo); font-weight: 700; cursor: pointer; position: relative; }
.aviso-pref button::after { content: ''; position: absolute; inset: -4px; }
.aviso-pref button:hover { background: color-mix(in srgb, var(--fundo) 14%, transparent); }

/* diálogo no tema (salvar, renomear, apagar) */
.dlg-pref { margin: auto; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--linha2); border-radius: 18px; background: var(--sup); color: var(--txt); box-shadow: 0 30px 80px -20px var(--sombra); overflow: auto; }
.dlg-pref::backdrop { background: rgba(3,5,10,.66); backdrop-filter: blur(3px); }
.dlg-pref form { display: grid; gap: 14px; padding: 18px 20px 20px; }
.dlgp-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dlgp-topo h3 { font: 800 19px/1.2 var(--display); letter-spacing: -.01em; min-width: 0; }
.dlgp-topo .fechar { flex: none; width: 44px; height: 44px; margin: -8px -10px -8px 0; }
.dlgp-txt { color: var(--txt2); font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.dlgp-txt b { color: var(--txt); }
.dlgp-campo { display: grid; gap: 6px; }
.dlgp-campo > span { font-size: 13.5px; font-weight: 700; }
.dlgp-campo input { height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--linha2); background: var(--fundo); color: var(--txt); font-size: 16px; outline: 0; min-width: 0; width: 100%; }
.dlgp-campo input::placeholder { color: var(--txt3); }
.dlgp-campo input:focus { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(59,108,255,.18); }
.dlgp-erro { color: var(--verm); font-size: 13px; min-height: 1.2em; }
.dlgp-pe { display: flex; gap: 10px; }
.dlgp-pe .bt { flex: 1; height: 46px; }
.dlgp-pe .bt-azul.perigo { background: var(--verm); border-color: var(--verm); color: #fff; }
.dlgp-pe .bt-azul.perigo:hover { filter: brightness(1.08); }
@media (max-width: 900px) { .dlg-pref { margin: auto auto 0; width: 100%; max-width: 100%; border-radius: 18px 18px 0 0; border-width: 1px 0 0; }
  .dlg-pref form { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- idioma e moeda dos preços (v107) ---------- */
.idioma-wrap { position: relative; }
.bt-idioma { gap: 6px; padding: 0 11px; color: var(--txt2); }
.bt-idioma svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bt-idioma[aria-expanded="true"] { border-color: var(--azul); color: var(--txt); }
.idioma-sigla { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.idioma-menu { min-width: 236px; max-height: calc(100vh - var(--topo-h, 70px) - 24px); overflow-y: auto; overscroll-behavior: contain; }
.idioma-menu [role="group"] + [role="group"] { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--linha); }
.menu-sec { margin: 0; padding: 8px 10px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0; color: var(--txt3); }
.idioma-op { min-height: 44px; }
.idioma-op .bandeira { width: 22px; height: 14.7px; }
.idioma-op small { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--txt3); }
.idioma-op .ok { margin-left: 8px; }
.menu-nota { margin: 4px 0 0; padding: 8px 10px 6px; border-top: 1px solid var(--linha); font-size: 12px; line-height: 1.4; color: var(--txt3); }
@media (max-width: 900px) {
  .bt-idioma { width: 38px; padding: 0; }
  .bt-idioma .idioma-sigla { display: none; }
}
@media (max-width: 380px) { .bt-idioma { width: 36px; } }
@media (max-width: 600px) { .idioma-menu { position: fixed; left: 16px; right: 16px; top: calc(var(--topo-h, 64px) + 8px); min-width: 0; } }
/* preço convertido: principal na moeda escolhida, o valor em reais (o que se paga) embaixo */
.preco.conv b { font-size: 23px; }
.preco small { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 600; color: var(--txt3); font-variant-numeric: tabular-nums; }
.nota-moeda { margin: 0 0 8px; font-size: 13px; line-height: 1.45; color: var(--txt3); }
@media (max-width: 900px) { .preco.conv b { font-size: 21px; } }
/* celular estreito: um botão a mais no topo (idioma); botões um pouco menores (o toque continua com 44px pela borda invisível) */
@media (max-width: 440px) { .topo-dir { gap: 4px; } .topo-dir .bt, .bt-idioma, .topo-in .bt-verde { width: 36px !important; height: 36px; } .topo-in { gap: 8px; } }
.marca-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) { .marca { gap: 8px; } .marca-u { width: 30px; height: 30px; } .marca-u svg { width: 21px; height: 21px; } .marca-txt b { font-size: 15px; } .marca-txt small { font-size: 11.5px; gap: 4px; } }

/* ---------- convites (instalar app / ativar avisos): aviso discreto que desliza do topo (v116) ---------- */
.notif { position: fixed; z-index: 70; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; width: min(420px, calc(100vw - 24px));
  display: grid; gap: 10px; padding: 12px 12px 12px 14px; overflow: hidden; touch-action: none;
  background: var(--sup); color: var(--txt); border: 1px solid var(--linha2); border-radius: 18px; box-shadow: 0 18px 44px -14px var(--sombra);
  transform: translate(-50%, calc(-100% - 24px - env(safe-area-inset-top, 0px))); opacity: 0; transition: transform .32s cubic-bezier(.2,.9,.25,1), opacity .2s; }
.notif.on { transform: translate(-50%, var(--puxa, 0px)); opacity: 1; }
.notif.arrastando { transition: none; }
.notif-lin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.notif-ic { width: 40px; height: 40px; flex: none; border-radius: 10px; }
.notif-sino { display: grid; place-items: center; background: linear-gradient(140deg, #3b6cff, #2447c7); }
.notif-sino svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notif-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.notif-txt b { font: 700 15px/1.3 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-txt span { font-size: 13.5px; line-height: 1.4; color: var(--txt2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-x { position: relative; flex: none; width: 36px; height: 36px; margin: -6px -4px -6px 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--txt3); cursor: pointer; }
.notif-x::after { content: ''; position: absolute; inset: -4px; }
.notif-x:hover { background: var(--sutil); color: var(--txt); }
.notif-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.notif-acoes { display: flex; justify-content: flex-end; gap: 8px; padding-left: 52px; }
.notif-acoes .bt { height: 44px; padding: 0 16px; font-size: 14px; }
.notif-acoes .bt:not(.bt-azul) { background: transparent; }
.notif-tempo { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--azul2); opacity: .55; transform-origin: left; transform: scaleX(0); }
.notif.on .notif-tempo { animation: notif-tempo var(--notif-ms, 8s) linear forwards; }
.notif.pausado .notif-tempo, .notif.fixo .notif-tempo { animation-play-state: paused; }
.notif.fixo .notif-tempo { display: none; }
@keyframes notif-tempo { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 440px) { .notif-acoes { padding-left: 0; } .notif-acoes .bt { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .notif { transition: opacity .15s; transform: translate(-50%, 0); } .notif.on { transform: translate(-50%, 0); } .notif.on .notif-tempo { animation: none; transform: scaleX(0); } }
.editando .notif { touch-action: auto; }

/* passo a passo de instalação (só quando a pessoa pede) */
.dlgi-passos { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: passo; }
.dlgi-passos li { counter-increment: passo; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 14.5px; line-height: 1.5; color: var(--txt2); }
.dlgi-passos li::before { content: counter(passo); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--azul2); background: rgba(59,108,255,.14); }
.dlgi-passos b { color: var(--txt); }
.dlgi-passos svg { width: 17px; height: 17px; vertical-align: -3px; fill: none; stroke: var(--azul2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- comparar BMs (v116) ---------- */
/* botão no card (caixinha no tema, nada de checkbox do navegador) */
.card-cmp { flex-basis: 100%; order: -1; display: flex; margin: -6px 0 -2px; }
.cmp-bt { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px 0 0; border: 0; background: none; color: var(--txt2); font-weight: 600; font-size: 14px; cursor: pointer; }
.cmp-bt:hover { color: var(--txt); }
.cmp-ck { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 7px; border: 1.5px solid var(--linha2); background: var(--sup); transition: background-color .15s, border-color .15s; }
.cmp-ck svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.cmp-bt:hover .cmp-ck { border-color: var(--azul2); }
.cmp-bt[aria-pressed="true"] { color: var(--txt); }
.cmp-bt[aria-pressed="true"] .cmp-ck { background: var(--azul); border-color: var(--azul); }
.cmp-bt[aria-pressed="true"] .cmp-ck svg { opacity: 1; }
.card.cmp-sel { border-color: color-mix(in srgb, var(--azul) 70%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--azul) 45%, transparent); }

/* barra inferior com as escolhidas */
.dock { position: fixed; z-index: 36; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: min(760px, calc(100vw - 24px)); transform: translateX(-50%);
  background: var(--sup); border: 1px solid var(--linha2); border-radius: 16px; box-shadow: 0 18px 44px -14px var(--sombra); animation: cmp-sobe .25s ease-out; }
@keyframes cmp-sobe { from { opacity: 0; transform: translate(-50%, 16px); } }
.cmp-barra-in { display: flex; align-items: center; gap: 8px; padding: 8px; }
.cmp-escolhidas { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.cmp-escolhidas::-webkit-scrollbar { display: none; }
.cmp-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 9px; background: var(--sutil); font-weight: 700; font-size: 13px; }
.cmp-chip .bandeira { width: 16px; height: 10.7px; }
.cmp-mais { background: var(--azul); color: #fff; }
.cmp-vaga { flex: none; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 9px; border: 1px dashed var(--linha2); color: var(--txt3); font-size: 12.5px; white-space: nowrap; }
.cmp-barra .bt { height: 44px; flex: none; }
.cmp-limpar { background: transparent; }
.cmp-abrir:disabled { opacity: .55; }
body.dock-on .flutuante { bottom: calc(var(--dock-h, 62px) + 24px + env(safe-area-inset-bottom, 0px)); }
body.dock-on .topo-bt { bottom: calc(var(--dock-h, 62px) + 88px + env(safe-area-inset-bottom, 0px)); }
body.dock-on .toast { bottom: calc(var(--dock-h, 62px) + 98px + env(safe-area-inset-bottom, 0px)); }
body.dock-on .rodape { padding-bottom: calc(var(--dock-h, 62px) + 20px); }
body.lista-aberta .flutuante, body.lista-aberta .topo-bt { opacity: 0 !important; pointer-events: none !important; }
body:has(#um-cc) .dock { display: none; }
@media (max-width: 600px) { .cmp-limpar { padding: 0 12px; } .dock { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 16px); } }
@media (prefers-reduced-motion: reduce) { .dock { animation: none; } }

/* ---------- minha lista (v133) ---------- */
/* botão no card, ao lado do "Comparar" (alvo de 44px, visual de 36px) */
.card-cmp { align-items: center; gap: 8px; }
.lista-bt { position: relative; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border-radius: 10px; border: 1px solid var(--linha2);
  background: var(--sup); color: var(--txt2); font: 600 13.5px/1 var(--texto); cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.lista-bt::after { content: ''; position: absolute; inset: -4px -2px; }
.lista-bt:hover { color: var(--txt); border-color: var(--txt3); }
.lista-bt svg, .cmp-lista svg, .cmp-lista-todas svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lista-bt[aria-pressed="true"], .cmp-lista[aria-pressed="true"], .cmp-lista-todas[aria-pressed="true"] { color: var(--lista-txt); background: var(--lista-fundo); border-color: var(--lista-borda); }
/* no comparativo */
.cmp-tab tfoot .cmp-lista { margin-top: 8px; background: transparent; font-size: 13.5px; }
.cmp-tab tfoot .cmp-lista svg { width: 16px; height: 16px; }
.cmp-lista-todas { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; width: 100%; padding: 6px 8px; border-radius: 10px; border: 1px dashed var(--linha2); background: transparent;
  color: var(--txt2); font: 600 12.5px/1.25 var(--texto); text-align: left; cursor: pointer; }
.cmp-lista-todas:hover { color: var(--txt); border-color: var(--txt3); }
.cmp-lista-todas[aria-pressed="true"] { border-style: solid; }
.cmp-tab tfoot th { vertical-align: bottom; }

/* abas do rodapé (só quando comparar e lista estão em uso) */
.dock-abas { display: flex; gap: 4px; padding: 6px 6px 0; }
.dock-abas button { flex: 1; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--txt3);
  font: 700 14px/1 var(--texto); cursor: pointer; transition: background-color .15s, color .15s; }
.dock-abas button:hover { color: var(--txt); }
.dock-abas button[aria-selected="true"] { background: var(--sutil); color: var(--txt); }
.dock-n { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 99px; background: var(--linha); color: var(--txt2); font-size: 12px; }
#aba-lista[aria-selected="true"] .dock-n { background: var(--lista-n); color: var(--lista-n-txt); }
#aba-cmp[aria-selected="true"] .dock-n { background: var(--azul); color: #fff; }

/* barra da lista + gaveta */
.lista-barra-in { display: flex; align-items: center; gap: 8px; padding: 8px; }
.lista-resumo { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 4px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--txt); text-align: left; cursor: pointer; }
.lista-resumo:hover { background: var(--sutil); }
.lista-resumo > svg { width: 20px; height: 20px; flex: none; margin-left: auto; fill: none; stroke: var(--txt3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.dock.aberta .lista-resumo > svg { transform: rotate(180deg); }
.lista-resumo-txt { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; row-gap: 2px; font-size: 14.5px; }
.lista-resumo-txt b { font-weight: 800; white-space: nowrap; }
.lista-sep { color: var(--txt3); }
.lista-tot { font-weight: 700; color: var(--lista-txt); white-space: nowrap; }
.lista-tot small { margin-left: 6px; font-weight: 600; font-size: 12.5px; color: var(--txt3); }
.lista-enviar { flex: none; height: 44px; }
.lista-enviar svg { width: 20px; height: 20px; }
.lista-enviar .ct { display: none; }
.lista-gaveta { border-bottom: 1px solid var(--linha); }
.lista-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 6px 16px; }
.lista-cab h3 { font: 800 17px/1.2 var(--display); letter-spacing: -.01em; }
.lista-limpar { height: 40px; padding: 0 14px; background: transparent; }
.lista-itens { list-style: none; margin: 0; padding: 0 8px; max-height: min(46vh, 340px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.lista-item { display: flex; align-items: center; gap: 12px; padding: 8px 4px 8px 8px; border-top: 1px solid var(--linha); }
.lista-item:first-child { border-top: 0; }
.lista-item-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lista-item-txt b { display: inline-flex; align-items: center; gap: 7px; font: 800 15.5px/1.2 var(--display); }
.lista-item-txt b .bandeira { width: 18px; height: 12px; }
.lista-item-txt b .estado { font-family: var(--texto); }
.lista-item-txt small { color: var(--txt3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista-item-preco { flex: none; display: grid; justify-items: end; gap: 2px; }
.lista-item-preco b { font: 800 15.5px/1.2 var(--display); white-space: nowrap; }
.lista-item-preco small { color: var(--txt3); font-size: 12px; font-weight: 600; white-space: nowrap; }
.lista-tirar { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--txt3); cursor: pointer; }
.lista-tirar:hover { background: var(--sutil); color: var(--verm); }
.lista-tirar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.lista-nota { padding: 6px 16px 10px; color: var(--txt3); font-size: 12.5px; line-height: 1.4; }
@media (max-width: 600px) {
  .lista-sep { display: none; }
  .lista-resumo-txt { flex-direction: column; align-items: flex-start; font-size: 14px; }
  .lista-tot small { margin-left: 4px; }
  .lista-enviar .lg { display: none; } .lista-enviar .ct { display: inline; }
  .lista-enviar { padding: 0 14px; }
  .lista-cab { padding-left: 12px; }
}
@media (max-width: 380px) { .lista-bt { padding: 0 9px 0 8px; font-size: 13px; } .card-cmp .cmp-bt { gap: 8px; padding-right: 4px; } }

/* tela do comparativo */
.cmp { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(3,5,10,.66); backdrop-filter: blur(3px); }
.cmp-caixa { width: min(1180px, 100%); height: min(900px, calc(100dvh - 40px)); display: flex; flex-direction: column; background: var(--sup); border: 1px solid var(--linha2); border-radius: 18px; box-shadow: 0 30px 80px -20px var(--sombra); overflow: hidden; }
.cmp-topo { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--linha); }
.cmp-topo h3 { font: 800 20px/1.2 var(--display); letter-spacing: -.01em; min-width: 0; }
.cmp-topo-acoes { display: flex; align-items: center; gap: 6px; }
.cmp-link { height: 44px; background: transparent; }
.cmp-link svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cmp-topo .fechar { width: 44px; height: 44px; }
.cmp-corpo { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cmp-prio { flex: none; padding: 14px 20px 12px; border-bottom: 1px solid var(--linha); display: grid; gap: 10px; }
.cmp-prio-tit { font-weight: 700; font-size: 14.5px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.cmp-prio-tit small { font-weight: 500; font-size: 12.5px; color: var(--txt3); }
.cmp-ops { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -2px -20px; padding: 2px 20px; }
.cmp-ops::-webkit-scrollbar { display: none; }
.cmp-ops .chip { height: 44px; flex: none; }
.cmp-ops .chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cmp-ops-moeda .chip { height: 40px; }
.cmp-ops-moeda .chip .bandeira { width: 18px; height: 12px; }
.cmp-indicada { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(59,108,255,.1); border: 1px solid rgba(59,108,255,.35); font-size: 14px; line-height: 1.45; color: var(--txt2); }
.cmp-indicada b { color: var(--txt); }
.cmp-indicada svg { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: var(--azul2); }
.cmp-indicada.nada { background: var(--sutil); border-color: var(--linha2); }
.cmp-ferr { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 20px; border-bottom: 1px solid var(--linha); font-size: 13px; color: var(--txt3); }
.cmp-legenda { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.cmp-legenda i { width: 14px; height: 14px; flex: none; border-radius: 4px; background: var(--bom-fundo); border: 1px solid var(--bom-borda); }
.cmp-dif { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--txt); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.cmp-dif i { position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--linha2); transition: background-color .15s; }
.cmp-dif i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.cmp-dif[aria-checked="true"] i { background: var(--azul); }
.cmp-dif[aria-checked="true"] i::after { transform: translateX(16px); }
.cmp-tab-box { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cmp-tab-wrap { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch; scroll-padding-left: var(--canto, 150px); }
/* sombras nas bordas: há mais colunas para os lados */
.cmp-somb { position: absolute; top: 0; bottom: 0; z-index: 6; width: 22px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cmp-somb-esq { left: var(--canto, 150px); background: linear-gradient(to right, var(--sombra), transparent); }
.cmp-somb-dir { right: 0; background: linear-gradient(to left, var(--sombra), transparent); }
.pode-esq .cmp-somb-esq, .pode-dir .cmp-somb-dir { opacity: .55; }
.cmp-nav { position: absolute; z-index: 7; top: calc(var(--cab, 0px) + (100% - var(--cab, 0px)) / 2 - 22px); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--linha2); background: var(--sup); color: var(--txt); box-shadow: 0 8px 22px -8px var(--sombra); cursor: pointer; transition: transform .15s, background-color .15s; }
.cmp-nav:hover { background: var(--sutil); transform: scale(1.06); }
.cmp-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cmp-nav-esq { left: calc(var(--canto, 150px) + 10px); }
.cmp-nav-dir { right: 14px; }
@media (hover: none), (pointer: coarse), (max-width: 600px) { .cmp-nav { display: none; } }
.cmp-tab-wrap:focus-visible { outline-offset: -2px; }
.cmp-tab { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 14px; }
.cmp-tab th, .cmp-tab td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linha); }
.cmp-tab tbody th { position: sticky; left: 0; z-index: 2; width: 150px; min-width: 150px; background: var(--sup); color: var(--txt3); font-weight: 600; font-size: 13px; border-right: 1px solid var(--linha); }
.cmp-tab td { color: var(--txt); }
/* colunas: confortáveis e iguais com muitas BMs; com poucas, dividem o espaço */
.cmp-tab td, .cmp-tab thead th:not(.cmp-canto) { width: 240px; min-width: 240px; max-width: 260px; }
.cmp-tab.poucas td, .cmp-tab.poucas thead th:not(.cmp-canto) { width: calc((100% - 150px) / var(--ncol, 2)); max-width: none; }
.cmp-tab td + td { border-left: 1px solid var(--linha); }
.cmp-tab thead th { position: sticky; top: 0; z-index: 3; background: var(--sup); vertical-align: bottom; border-bottom: 1px solid var(--linha2); }
.cmp-tab thead th + th { border-left: 1px solid var(--linha); }
.cmp-tab thead th.cmp-canto { left: 0; z-index: 4; border-right: 1px solid var(--linha); color: var(--txt3); font-size: 12.5px; font-weight: 600; }
.cmp-tab tfoot th { position: sticky; left: 0; z-index: 2; background: var(--sup); border-right: 1px solid var(--linha); border-bottom: 0; }
.cmp-tab tfoot td { border-bottom: 0; }
.cmp-tab tfoot td + td { border-left: 1px solid var(--linha); }
.cmp-tab tfoot .bt { width: 100%; height: 44px; }
.cmp-tab tfoot .bt svg { width: 20px; height: 20px; }
.cmp-col-cab { display: flex; align-items: flex-start; gap: 8px; }
.cmp-col-cab > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cmp-col-cab small { display: inline-flex; align-items: center; gap: 6px; color: var(--txt3); font-size: 12px; font-weight: 600; }
.cmp-col-cab small .bandeira { width: 16px; height: 10.7px; }
.cmp-col-cab b { font: 800 19px/1.15 var(--display); letter-spacing: -.01em; color: var(--txt); }
.cmp-col-cab .estado { justify-self: start; margin-top: 4px; }
.cmp-tirar { position: relative; flex: none; width: 36px; height: 36px; margin: -6px -8px 0 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--txt3); cursor: pointer; }
.cmp-tirar::after { content: ''; position: absolute; inset: -4px; }
.cmp-tirar:hover { background: var(--sutil); color: var(--txt); }
.cmp-tirar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.cmp-selo { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 8px; padding: 4px 9px; border-radius: 99px; background: var(--azul); color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.cmp-selo svg { width: 12px; height: 12px; fill: currentColor; }
.cmp-tab .indicada { background: color-mix(in srgb, var(--azul) 7%, var(--sup)); }
.cmp-tab thead th.indicada { box-shadow: inset 0 3px 0 var(--azul); }
.cmp-tab td.melhor { background: var(--bom-fundo); }
.cmp-tab td.indicada.melhor { background: color-mix(in srgb, var(--azul) 7%, var(--bom-fundo)); }
.cmp-val { display: flex; align-items: flex-start; gap: 6px; }
.cmp-val > span { min-width: 0; overflow-wrap: anywhere; }
.cmp-val small { display: block; color: var(--txt3); font-size: 12px; font-weight: 600; margin-top: 2px; }
.cmp-din { white-space: nowrap; }
.cmp-legenda small { display: block; color: var(--txt3); font-size: 11.5px; font-weight: 600; }
.melhor .cmp-val { color: var(--bom); font-weight: 700; }
.melhor .cmp-val svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cmp-preco { font: 800 18px/1.2 var(--display); }
.cmp-moeda { display: inline-flex; align-items: center; gap: 7px; }
.cmp-nada { color: var(--txt3); }
.cmp-extras { display: grid; gap: 4px; padding: 0; list-style: none; color: var(--txt2); font-size: 13.5px; }
.cmp-extras li { position: relative; padding-left: 12px; }
.cmp-extras li::before { content: ''; position: absolute; left: 0; top: .72em; width: 6px; height: 2px; border-radius: 2px; background: var(--azul2); }
@media (max-width: 900px) {
  .cmp { padding: 0; align-items: stretch; }
  .cmp-caixa { width: 100%; height: 100%; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@media (max-width: 600px) {
  .cmp-topo { padding: 8px 8px 8px 16px; }
  .cmp-topo h3 { font-size: 18px; }
  .cmp-link { width: 44px; padding: 0; } .cmp-link span { display: none; }
  .cmp-prio { padding: 12px 16px 10px; gap: 8px; }
  .cmp-ops { margin: -2px -16px; padding: 2px 16px; }
  .cmp-ferr { padding: 2px 16px; }
  .cmp-legenda { font-size: 12px; line-height: 1.3; }
  .cmp-faixa { display: none; }
  .cmp-tab { font-size: 13.5px; }
  .cmp-tab th, .cmp-tab td { padding: 10px 10px; }
  .cmp-tab tbody th, .cmp-tab tfoot th, .cmp-tab thead th.cmp-canto { width: 104px; min-width: 104px; max-width: 104px; font-size: 12px; }
  .cmp-tab td, .cmp-tab thead th:not(.cmp-canto) { width: 180px; min-width: 180px; max-width: 200px; }
  .cmp-tab.poucas td, .cmp-tab.poucas thead th:not(.cmp-canto) { width: calc((100% - 104px) / var(--ncol, 2)); max-width: none; }
  .cmp-col-cab b { font-size: 17px; }
  .cmp-indicada { font-size: 13.5px; padding: 8px 10px; }
}
@media (max-width: 600px) and (max-height: 700px) { .cmp-indicada span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* mensagem personalizada (remarketing por lead): título em até 2 linhas, "Não quero receber" discreto */
.notif-msg .notif-txt b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif-msg .notif-txt span { -webkit-line-clamp: 3; }
.notif-msg .notif-acoes { justify-content: space-between; flex-wrap: wrap; }
.notif-msg .notif-sair { border-color: transparent; color: var(--txt3); font-weight: 600; padding: 0 10px; text-decoration: underline; text-underline-offset: 3px; }
.notif-msg .notif-sair:hover { color: var(--txt); background: var(--sutil); }
@media (max-width: 440px) { .notif-msg .notif-acoes .bt { flex: 1 1 auto; } }
.aviso-pessoal { background: color-mix(in srgb, var(--azul) 7%, transparent); }
.aviso-tag { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0; color: var(--azul2); }

/* ---------- tiers coloridos (v122): 1 laranja, 2 verde-claro, 3 verde-escuro; contraste AA nos dois temas ---------- */
.tier.t1, .tier-txt.t1 { color: var(--t1-txt); background: var(--t1-fundo); border-color: var(--t1-borda); }
.tier.t2, .tier-txt.t2 { color: var(--t2-txt); background: var(--t2-fundo); border-color: var(--t2-borda); }
.tier.t3, .tier-txt.t3 { color: var(--t3-txt); background: var(--t3-fundo); border-color: var(--t3-borda); }
/* UNIT Score (selo no card, fora da descrição): Excelente azul cheio, Muito bom azul vazado, Bom/Iniciante neutro */
.score-bm { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--linha2); color: var(--txt2); background: var(--sutil); font-variant-numeric: tabular-nums; }
.score-bm svg { width: 12px; height: 12px; fill: currentColor; flex: none; }
.score-bm.s-excelente { color: #fff; background: #0a84ff; border-color: #0a84ff; }
.score-bm.s-muito-bom { color: var(--azul2); border-color: var(--azul); background: rgba(10,132,255,.12); }
.tier-txt { display: inline-block; padding: 0 6px; margin: 0 1px; border: 1px solid transparent; border-radius: 6px; font-weight: 700; line-height: 1.45; }
.cmp-tab .tier, td .tier, .cmp-val .tier { display: inline-block; }
.chip[data-g="tier"] .cor { width: 10px; height: 10px; box-shadow: 0 0 0 1px rgba(127,127,127,.25); }

/* =====================================================================
   FUNDO (v132) — um sistema só, sem emendas:
   1) arte inteira no topo (desktop: largura total; celular: versão vertical), com UM degradê
      que a clareia aos poucos e termina exatamente na cor da base;
   2) folhagem nas laterais, bem suave, com borda interna em degradê (sem "parede");
   3) base lisa (--fundo) daí para baixo. Nada de véus empilhados nem blocos de outro tom.
   ===================================================================== */
html { background: var(--fundo); }
body { position: relative; z-index: 0; min-height: 100vh; background: var(--fundo); }
body::before, body::after { content: ''; position: absolute; left: 0; right: 0; pointer-events: none; }
body::before { z-index: -2; top: 0; height: max(560px, 100vh); height: max(560px, 100svh);
  background:
    linear-gradient(180deg, rgba(var(--fundo-rgb), 0) 0, rgba(var(--fundo-rgb), 0) 55%, rgba(var(--fundo-rgb), var(--arte-lavagem)) 80%, rgba(var(--fundo-rgb), 1) 100%),
    var(--arte) center center / cover no-repeat,
    var(--fundo); }
body::after { z-index: -1; top: max(420px, 75vh); bottom: 0; --folha-w: clamp(90px, 13vw, 300px); opacity: var(--folha-op);
  background: var(--folha-esq) left top / var(--folha-w) auto repeat-y, var(--folha-dir) right top / var(--folha-w) auto repeat-y;
  -webkit-mask-image: linear-gradient(90deg, #000 0, rgba(0,0,0,.55) calc(var(--folha-w) * .55), transparent var(--folha-w), transparent calc(100% - var(--folha-w)), rgba(0,0,0,.55) calc(100% - var(--folha-w) * .55), #000 100%),
                      linear-gradient(180deg, transparent 0, #000 420px, #000 calc(100% - 260px), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 0, rgba(0,0,0,.55) calc(var(--folha-w) * .55), transparent var(--folha-w), transparent calc(100% - var(--folha-w)), rgba(0,0,0,.55) calc(100% - var(--folha-w) * .55), #000 100%),
              linear-gradient(180deg, transparent 0, #000 420px, #000 calc(100% - 260px), transparent 100%);
  mask-composite: intersect; }
/* celular/tablet (v182): arte inteira começa logo abaixo do topo (antes ficava escondida atrás dele)
   e o texto do banner vem depois do leão, sem cobrir a arte; o degradê só começa onde a arte termina
   (a parte de baixo da imagem é lisa) e chega na cor da base, sem emenda */
@media (max-width: 900px) {
  body::before { top: var(--topo-h); height: 56.25vw; background:
    linear-gradient(180deg, rgba(var(--fundo-rgb), 0) 0, rgba(var(--fundo-rgb), 0) 52%, rgba(var(--fundo-rgb), var(--arte-lavagem)) 64%, rgba(var(--fundo-rgb), 1) 84%),
    var(--arte-cel, var(--arte)) center top / 100% auto no-repeat, var(--fundo); }
  body::after { top: calc(var(--topo-h) + 44vw); --folha-w: 80px; opacity: calc(var(--folha-op) * .8); }
  .banner-in::before { display: none; }
}

/* =====================================================================
   SUPERFÍCIES (v132): topo e barra no mesmo vidro; blocos e cards em azul claro translúcido
   ===================================================================== */
.topo, .barra { background: var(--vidro-barra); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.topo { border-bottom-color: var(--linha); }
.barra { border-bottom-color: var(--linha); }
.atalho, .aba, .card { background: var(--vidro); }
.card, .aba, .atalho { box-shadow: var(--elev); }
.seg button, .chip, .sel-bt, .topo-dir .bt:not(.bt-verde), .ferramentas .bt:not(.bt-verde):not(.bt-azul), .busca:not(:focus-within), .visao { box-shadow: var(--elev-s); }
.aba[aria-pressed="true"], .seg button[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--sel-fundo); }
.aba[aria-pressed="true"] b, .seg button[aria-pressed="true"], .chip[aria-pressed="true"] { color: var(--sel-txt); }
.notif, .cc { box-shadow: var(--elev), 0 18px 44px -14px var(--sombra); }
.card-texto code { background: var(--code-fundo); border-color: var(--code-borda); }
.card-texto code .tier-txt { margin: 0 3px 0 -3px; padding: 0 5px; }
.rodape { background: var(--vidro-barra); }
.painel, .cmp { background: var(--veu-modal); }
.pref-fundo { background: var(--veu-modal); }
.dlg-pref::backdrop { background: var(--veu-modal); }
/* movimento: estados suaves (150–200ms) */
.atalho, .aba, .card, .busca { transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.atalho:hover, .aba:hover { border-color: var(--linha2); box-shadow: var(--elev), 0 0 0 1px var(--linha2); }
.card:hover { border-color: var(--linha2); }

/* =====================================================================
   BARRA FIXA (v132): layout por largura da própria barra (container query).
   Rótulo "Moeda da conta" nunca quebra (some quando falta espaço); busca ≥ 220px e cresce;
   quando não cabe tudo, a busca desce para uma 2ª linha inteira, organizada.
   ===================================================================== */
.barra > .wrap { container: barra / inline-size; }
.campo-rot { flex: none; }
.campo-rot > span { white-space: nowrap; }
@media (max-width: 900px) { .bt-pref { width: 44px; padding: 0; } .bt-pref span { display: none; } }
@media (min-width: 901px) {
  .seg button { flex: none; }
  .ferramentas { flex-wrap: nowrap; }
  .busca { flex: 1 1 260px; min-width: 220px; }
  .sel.ordem .sel-bt { min-width: 168px; }
  /* o rótulo "Moeda da conta" não cabe junto com uma busca confortável (PT/ES): fica só para leitores de tela;
     as bandeiras + nomes das moedas já dizem o que é */
  .campo-rot > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.recolhido .bt-pref { width: 44px; padding: 0; } body.recolhido .bt-pref span { display: none; }
  body.recolhido .seg .qtd { display: none; }
  @container barra (max-width: 1180px) {
    .bt-pref { width: 44px; padding: 0; } .bt-pref span { display: none; }
  }
  @container barra (max-width: 1080px) {
    .ferramentas { flex-wrap: wrap; }
    .busca { order: 9; flex: 1 1 100%; }
  }
}
.cmp-tab tfoot .cmp-lista[aria-pressed="true"] { background: var(--lista-fundo); }

/* =====================================================================
   BUSCA RESPONSIVA + ATALHOS (v138): contador e Ctrl F dentro do campo, sugestões no tema,
   botão-ícone quando a barra está recolhida (abre por cima da linha, sem mudar a altura da barra),
   paleta de comandos (Ctrl/Cmd+K) e lista de atalhos (?).
   ===================================================================== */
.busca { position: relative; cursor: text; }
.busca-n { flex: none; display: inline-flex; align-items: baseline; font-size: 12.5px; color: var(--txt3); white-space: nowrap; font-variant-numeric: tabular-nums; cursor: default; }
.busca-n b { color: var(--txt2); font-weight: 700; }
.busca-n-rot { margin-left: .3em; }
.busca.estreita .busca-n-rot { display: none; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; font: 600 11.5px/1 var(--texto); color: var(--txt2);
  background: var(--fundo); border: 1px solid var(--linha2); border-bottom-width: 2px; border-radius: 6px; white-space: nowrap; }
.busca-kbd { flex: none; margin-right: -4px; color: var(--txt3); }
.busca-kbd:empty, .busca:focus-within .busca-kbd, .busca.tem-valor .busca-kbd, .busca.estreita .busca-kbd { display: none; }
@media (hover: none), (pointer: coarse) { .so-teclado { display: none !important; } }
::highlight(busca) { background-color: var(--marca); color: var(--marca-txt); }

.busca-sug { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 40; min-width: min(340px, calc(100vw - 32px)); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; background: var(--sup); border: 1px solid var(--linha2); border-radius: 14px; box-shadow: 0 18px 40px -12px var(--sombra); cursor: default; }
.sug-g, .pal-g { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0; color: var(--txt3); }
.sug-op, .pal-op { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 9px; color: var(--txt2); font-size: 14px; cursor: pointer; }
.sug-op[aria-selected="true"], .pal-op[aria-selected="true"] { background: var(--sel-fundo); color: var(--sel-txt); }
.sug-op svg, .pal-op svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sug-t, .pal-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--txt); }
.sug-op[aria-selected="true"] .sug-t, .pal-op[aria-selected="true"] .pal-t { color: inherit; }
.pal-op small, .sug-dir { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--txt3); font-variant-numeric: tabular-nums; }
.sug-txt { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.sug-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--txt3); }
.sug-op[aria-selected="true"] .sug-txt small, .sug-op[aria-selected="true"] .sug-dir { color: inherit; opacity: .8; }
.sug-pe, .pal-pe { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 4px 0 0; padding: 8px 10px 4px; border-top: 1px solid var(--linha); font-size: 12px; color: var(--txt3); }
.sug-pe kbd, .pal-pe kbd { height: 20px; min-width: 20px; font-size: 11px; }
.sug-pe kbd + kbd, .pal-pe kbd + kbd { margin-left: -2px; }

.busca-abrir { display: none; position: relative; width: 44px; padding: 0; flex: 0 0 auto; color: var(--txt2); }
.busca-abrir svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.busca-ponto { display: none; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--azul); box-shadow: 0 0 0 2px var(--sup); }
body.tem-busca .busca-ponto { display: block; }
body.tem-busca .busca-abrir { color: var(--txt); border-color: var(--azul); }
@keyframes busca-abre { from { opacity: 0; transform: scaleX(.97); } }
@media (max-width: 900px) {
  body.recolhido .ferramentas { position: relative; }
  body.recolhido .busca-abrir { display: grid; place-items: center; order: 1; height: 42px; }
  body.recolhido.busca-solta .busca { display: flex; position: absolute; left: 0; right: 0; top: 50%; margin-top: -22px; height: 44px; z-index: 6;
    box-shadow: 0 10px 30px -12px var(--sombra); animation: busca-abre .16s ease-out; transform-origin: right center; }
}
@media (min-width: 901px) {
  /* barra recolhida e estreita: a busca não desce para uma 2ª linha; vira o botão-ícone */
  @container barra (max-width: 1080px) {
    body.recolhido .ferramentas { position: relative; }
    body.recolhido .busca { display: none; }
    body.recolhido .busca-abrir { display: grid; place-items: center; order: 8; }
    body.recolhido.busca-solta .busca { display: flex; position: absolute; left: 0; right: 0; top: 50%; margin-top: -22px; height: 44px; z-index: 6; min-width: 0;
      box-shadow: 0 10px 30px -12px var(--sombra); animation: busca-abre .16s ease-out; transform-origin: right center; }
  }
}
@media (prefers-reduced-motion: reduce) { body.busca-solta .busca { animation: none !important; } }

.rodape-atalhos { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--txt2); text-decoration: underline; text-decoration-color: var(--linha2); text-underline-offset: 3px; cursor: pointer; }
.rodape-atalhos:hover { color: var(--azul); text-decoration-color: currentColor; }

.dlg-paleta { width: min(600px, calc(100vw - 32px)); margin: 12vh auto auto; max-height: min(560px, 78vh); flex-direction: column; overflow: hidden; }
.dlg-paleta[open] { display: flex; }
.pal-busca { display: flex; align-items: center; gap: 10px; flex: none; height: 58px; padding: 0 16px; border-bottom: 1px solid var(--linha); }
.pal-busca > svg { width: 19px; height: 19px; flex: none; fill: none; stroke: var(--txt3); stroke-width: 2; stroke-linecap: round; }
.pal-busca input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0 !important; box-shadow: none; background: none; font-size: 16px; color: var(--txt); }
.pal-busca input::placeholder { color: var(--txt3); }
.pal-lista { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.pal-k { display: inline-flex; gap: 4px; flex: none; }
.pal-vazio { padding: 28px 16px; text-align: center; color: var(--txt3); }
.pal-pe { flex: none; margin: 0; padding: 10px 16px; }
.dlg-atalhos { width: min(560px, calc(100vw - 32px)); }
.atl-lista { display: grid; gap: 16px; }
.atl-grupo h4 { margin-bottom: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0; color: var(--txt3); }
.atl-it { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 6px 0; border-bottom: 1px solid var(--linha); }
.atl-grupo .atl-it:last-child { border-bottom: 0; }
.atl-it dt { order: 2; display: inline-flex; align-items: center; gap: 4px; flex: none; }
.atl-it dd { color: var(--txt2); font-size: 14px; line-height: 1.35; }
.kbd-mais { margin: 0 2px; font-size: 12px; color: var(--txt3); }
.atl-nota { font-size: 12.5px; line-height: 1.45; color: var(--txt3); }
@media (max-width: 900px) { .dlg-paleta { margin: auto auto 0; max-height: 80dvh; } }

/* =====================================================================
   BUSCA GRANDE (v140) — estilo buscador, no banner logo abaixo do lema. É a mesma busca da barra
   (texto espelhado); a lista de sugestões (#busca-sug) é uma só e vem para cá quando este campo está em uso.
   ===================================================================== */
.banner-in { padding-top: 92px; padding-bottom: 40px; }
.banner .banner-lema { margin-top: 16px; }
.hbusca { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 720px; height: 58px; margin: 28px auto 0; padding: 0 12px 0 22px;
  text-align: left; cursor: text; background: var(--vidro); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--linha2); border-radius: 99px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 14px 34px -16px var(--sombra);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.hbusca:hover { border-color: var(--azul); }
.hbusca:focus-within { border-color: var(--azul); background: var(--sup); box-shadow: 0 0 0 4px rgba(59,108,255,.26), 0 18px 40px -16px var(--sombra); }
.hbusca-lupa { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--txt3); stroke-width: 2.1; stroke-linecap: round; }
.hbusca:focus-within .hbusca-lupa { stroke: var(--azul2); }
.hbusca input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0 !important; box-shadow: none; background: none; padding: 0;
  font: 500 18px/1.2 var(--texto); color: var(--txt); letter-spacing: -.005em; }
.hbusca input::placeholder { color: var(--txt3); opacity: 1; }
.hbusca input::-webkit-search-cancel-button, .hbusca input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.hbusca .busca-n { font-size: 14px; }
.hbusca .busca-x { width: 44px; height: 44px; margin: 0 -4px 0 0; }
.hbusca .busca-x::after { inset: 0; }
.hbusca .busca-x svg { width: 17px; height: 17px; }
.hbusca .busca-kbd { margin-right: 8px; }
.hbusca .busca-kbd:empty, .hbusca:focus-within .busca-kbd, .hbusca.tem-valor .busca-kbd, .hbusca.estreita .busca-kbd, .hbusca.estreita .busca-n-rot { display: none; }
/* sugestões grandes, como num buscador */
.banner:focus-within { z-index: 26; }
.hbusca .busca-sug { left: 0; right: 0; top: calc(100% + 8px); padding: 8px; border-radius: 22px; box-shadow: 0 24px 50px -16px var(--sombra); }
.hbusca .sug-g { padding: 10px 14px 6px; }
.hbusca .sug-op { min-height: 52px; padding: 8px 14px; gap: 14px; border-radius: 14px; font-size: 16px; }
.hbusca .sug-op svg { width: 20px; height: 20px; }
.hbusca .sug-txt small { font-size: 13px; }
.hbusca .sug-dir { font-size: 13.5px; }
.hbusca .sug-pe { padding: 10px 14px 4px; }
@media (max-width: 900px) {
  .banner-in { padding-top: 64px; padding-bottom: 28px; }
  .hbusca { margin-left: 0; margin-right: 0; }
}
@media (max-width: 640px) {
  .banner-in { padding-top: 56px; padding-bottom: 24px; }
  .banner .banner-lema { margin-top: 12px; }
  .hbusca { height: 52px; margin-top: 20px; padding-left: 16px; gap: 10px; }
  .hbusca input { font-size: 17px; }
  .hbusca-lupa { width: 20px; height: 20px; }
  .hbusca .busca-x { width: 44px; height: 44px; margin-right: -6px; }
  .hbusca .sug-op { min-height: 48px; padding: 6px 10px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .hbusca { transition: none; } }

/* =====================================================================
   BUSCA PRIMEIRO E GRANDE NA BARRA FIXA (v172): a busca é o 1º item (à esquerda de tudo, também na ordem do Tab),
   alta (50px), texto 16.5px e cresce para ocupar o espaço livre (mín. 420px no desktop), com o mesmo visual
   de pílula/foco da busca grande do banner. Quando não cabe tudo numa linha (barra < 1240px), ela fica com a
   1ª linha inteira e os demais controles vão organizados para a 2ª. Recolhida, vira o ícone — também à esquerda.
   ===================================================================== */
:root { --barra-h: 75px; }
.ferramentas .busca { order: -1; height: 50px; gap: 12px; padding: 0 10px 0 18px; background: var(--sup); border-color: var(--linha2); }
.ferramentas .busca:hover { border-color: var(--azul); }
.ferramentas .busca:focus-within { border-color: var(--azul); box-shadow: 0 0 0 4px rgba(59,108,255,.26), 0 14px 34px -16px var(--sombra); }
.ferramentas .busca > svg { width: 20px; height: 20px; stroke-width: 2.1; stroke-linecap: round; }
.ferramentas .busca:focus-within > svg { stroke: var(--azul2); }
.ferramentas .busca input { font: 500 16.5px/1.2 var(--texto); color: var(--txt); padding: 0; }
.ferramentas .busca .busca-n { font-size: 13.5px; }
.ferramentas .busca .busca-kbd { margin-right: 6px; }
.ferramentas .busca .busca-x { width: 36px; height: 36px; margin-right: -2px; }
.ferramentas .busca .busca-sug { top: calc(100% + 8px); border-radius: 18px; }
.ferramentas .busca-abrir { order: -1; }
body.busca-solta .ferramentas .busca { transform-origin: left center !important; }
@media (max-width: 900px) {
  :root { --barra-h: 172px; }
  .ferramentas .busca { flex: 1 1 100%; padding-left: 16px; }
  .ferramentas .busca input { font-size: 16px; }
  body.recolhido .busca-abrir { order: -1; }
  body.recolhido .sel.tipo-mini { order: 0; }
  body.recolhido.busca-solta .ferramentas .busca { height: 50px; margin-top: -25px; }
}
@media (min-width: 901px) {
  .ferramentas .busca { flex: 1 1 420px; min-width: 420px; }
  .seg .qtd { display: none; }
  .bt-pref { width: 44px; padding: 0; } .bt-pref span { display: none; }
  /* recolhida: ordem vira ícone (como no celular) para a busca continuar grande na mesma linha */
  body.recolhido .sel.ordem .sel-bt { width: 44px; min-width: 0; padding: 0; justify-content: center; }
  body.recolhido .sel.ordem .sel-bt span { display: none; }
  body.recolhido .sel.ordem .sel-bt::before { content: ''; width: 18px; height: 18px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 4v16M3 16l4 4 4-4M17 20V4M13 8l4-4 4 4'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 4v16M3 16l4 4 4-4M17 20V4M13 8l4-4 4 4'/%3E%3C/svg%3E") center/contain no-repeat; }
  body.recolhido .sel.ordem .sel-bt svg { display: none; }
  @container barra (max-width: 1239px) {
    .ferramentas { flex-wrap: wrap; row-gap: 12px; }
    .ferramentas .busca { order: -1; flex: 1 1 100%; min-width: 0; }
    .seg .qtd { display: inline-flex; }
    .bt-filtros { margin-left: auto; }
    body.recolhido .ferramentas { flex-wrap: nowrap; }
    body.recolhido .seg .qtd { display: none; }
    body.recolhido .busca-abrir { order: -1; }
    body.recolhido .bt-filtros { margin-left: 0; }
    body.recolhido.busca-solta .ferramentas .busca { height: 50px; margin-top: -25px; }
  }
}

/* =====================================================================
   TESTE (v174): moeda da conta dentro do painel de Filtros (1ª seção), liberando a barra para a busca.
   Para reverter: devolver o .campo-rot na .ferramentas (index.html) e apagar este bloco.
   ===================================================================== */
.painel-corpo > .filtros-grupos { display: grid; gap: 20px; }
.painel-corpo > .filtros-grupos:empty { display: none; }
.grupo-moeda .seg { flex-wrap: wrap; gap: 8px; }
.grupo-moeda .seg button { flex: 1 1 auto; justify-content: center; padding: 0 12px; }
.grupo-moeda .seg .qtd, body.recolhido .grupo-moeda .seg .qtd { display: inline-flex; }
.grupo-moeda .seg .esq-bt { flex: 1 1 70px; }
@media (min-width: 901px) { .grupo-moeda .seg button { flex: 0 1 auto; } }
/* chip "Dólar ×" acima da lista enquanto houver moeda filtrada */
.moeda-ativa { order: 6; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.moeda-ativa[hidden] { display: none; }
.tag-moeda { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 8px 0 12px; border-radius: 99px; border: 1px solid var(--azul);
  background: var(--sel-fundo, rgba(59,108,255,.14)); color: var(--sel-txt, var(--txt)); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.lista-topo .tag-moeda span { color: inherit; font-size: inherit; }
.tag-moeda svg:not(.bandeira) { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; opacity: .75; }
.tag-moeda:hover svg:not(.bandeira) { opacity: 1; }
.tag-moeda .moeda-cod, .tag-moeda span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moeda-ativa .tag-limpar { min-height: 36px; padding: 0 6px; font-size: 13px; }
/* moeda sem bandeira (Libra, Peso...): etiqueta com o código, do tamanho de uma bandeira */
.moeda-cod { display: inline-grid; place-items: center; min-width: 30px; height: 16px; padding: 0 4px; border-radius: 3px; flex: none;
  font: 700 9.5px/1 system-ui, sans-serif; letter-spacing: .03em; color: var(--txt2); background: color-mix(in srgb, var(--azul) 14%, transparent); box-shadow: 0 0 0 1px rgba(127,127,127,.25); }
.grupo-vazio { color: var(--txt3); font-size: 12.5px; }
/* sem as moedas, entre 901px e 1239px tudo cabe numa linha só: a busca fica à esquerda e cresce */
@media (min-width: 901px) {
  @container barra (max-width: 1239px) {
    .ferramentas { flex-wrap: nowrap; }
    .ferramentas .busca { flex: 1 1 auto; min-width: 0; }
    .bt-filtros { margin-left: 0; }
  }
}
@media (max-width: 900px) { :root { --barra-h: 127px; } } /* antes 172px, com a linha das moedas */
@media (max-width: 640px) { .grupo-moeda .seg { display: grid; grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   TEMAS DO SITE (v179): o tema em uso vem de /api/tema (gerado pelo painel > Configurações > Temas do site).
   Sem ele (ou se falhar), vale o FUNDO (v132) em arquivo acima. #fdb fica escondido até o tema ligar
   (fundo com imagem ou gerado): arte (desfoque/brilho) + tinta da marca ou grade + véu/degradê; foco = background-position.
   ===================================================================== */
:root { --fdb-arte: var(--fdb-cd); --fdb-p: var(--fdb-pcd); --fdb-ar: var(--fdb-arcd); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) { --fdb-arte: var(--fdb-ce); --fdb-p: var(--fdb-pce); --fdb-ar: var(--fdb-arce); } }
:root[data-tema="escuro"] { --fdb-arte: var(--fdb-ce); --fdb-p: var(--fdb-pce); --fdb-ar: var(--fdb-arce); }
#fdb { display: none; position: absolute; z-index: -2; left: 0; right: 0; top: 0; height: max(560px, 100vh); height: max(560px, 100svh); overflow: hidden; pointer-events: none; opacity: var(--fdb-op, 1); }
#fdb i { position: absolute; inset: 0; }
#fdb .fdb-img { inset: calc(var(--fdb-blur, 0px) * -2); background: var(--fdb-arte) var(--fdb-p, 50% 50%) / cover no-repeat; filter: blur(var(--fdb-blur, 0px)) brightness(var(--fdb-bri, 1)); }
#fdb .fdb-tinta { background: var(--azul); mix-blend-mode: color; opacity: var(--fdb-tinta, 0); }
#fdb .fdb-veu { background: linear-gradient(180deg, rgba(var(--fundo-rgb), var(--fdb-veu, 0)) 0, rgba(var(--fundo-rgb), var(--fdb-veu, 0)) var(--fdb-ini, 55%), rgba(var(--fundo-rgb), 1) var(--fdb-fim, 100%)); }
@media (max-width: 900px) {
  :root { --fdb-arte: var(--fdb-mc); --fdb-p: var(--fdb-pmc); --fdb-ar: var(--fdb-armc); }
  :root[data-tema="escuro"] { --fdb-arte: var(--fdb-me); --fdb-p: var(--fdb-pme); --fdb-ar: var(--fdb-arme); }
  #fdb { height: 100vh; height: 100svh; }
}
@media (max-width: 900px) and (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) { --fdb-arte: var(--fdb-me); --fdb-p: var(--fdb-pme); --fdb-ar: var(--fdb-arme); } }
/* prévia no painel: nada de cursor de clique nem foco (é só para ver) */
body.previa { cursor: default; }

/* v182 — celular/tablet: o texto do banner começa depois do leão (arte inteira à mostra, sem nada por cima) */
@media (max-width: 900px) { .banner-in { padding-top: calc(56.25vw * .56); } }

/* ---------- v188: compra estilo marketplace (Comprar agora + Adicionar ao carrinho) e gaveta do carrinho ---------- */
.card-rodape .acoes { width: auto; margin-left: auto; }
.card-rodape .compra { flex-basis: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px; }
.card-rodape .compra.so-comprar, .card-rodape .compra:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.compra .bt, .compra .lista-bt { width: 100%; min-width: 0; height: 46px; margin: 0; padding: 0 10px; justify-content: center; gap: 7px; font-size: 14.5px; font-weight: 700; border-radius: 11px; }
.compra .bt span, .compra .lista-bt span:not(.lista-x) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compra .bt svg { width: 20px; height: 20px; flex: none; }
.compra .lista-bt { background: var(--sup); color: var(--txt); border-color: var(--linha2); }
.compra .lista-bt svg { width: 18px; height: 18px; stroke-width: 2; }
.compra .lista-bt[aria-pressed="true"] svg { stroke-width: 2.4; }
.lista-bt .lista-x { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 2px; border-radius: 50%; background: color-mix(in srgb, currentColor 14%, transparent); }
.lista-bt .lista-x svg { width: 11px !important; height: 11px !important; stroke-width: 2.6 !important; }
.lista-bt[aria-pressed="true"]:hover .lista-x { background: var(--verm); color: #fff; }
.bt-contato { background: transparent; border-color: var(--linha2); color: var(--txt); }
.bt-contato svg { color: var(--verde); }
.bt-contato:hover { border-color: var(--verde); }
.cmp .bt-contato { width: 100%; }
@media (max-width: 380px) { .compra .bt, .compra .lista-bt { font-size: 13.5px; padding: 0 8px; gap: 5px; } .compra .bt svg { width: 18px; height: 18px; } .lista-bt .lista-x { display: none; } }

/* ícone do carrinho no topo */
.bt-carr { position: relative; width: 42px; padding: 0; color: var(--txt2); }
.bt-carr svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carr-n { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--lista-n); color: var(--lista-n-txt); font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--fundo); font-variant-numeric: tabular-nums; }
.carr-n[hidden] { display: none; }
.bt-carr[aria-expanded="true"] { color: var(--txt); border-color: var(--txt3); }
.editando .bt-carr { display: none !important; }

/* gaveta */
.carr-fundo { position: fixed; inset: 0; z-index: 58; background: var(--veu-modal); animation: carr-veu .2s ease-out; }
.carr { position: fixed; z-index: 59; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); display: flex; flex-direction: column; background: var(--sup); color: var(--txt);
  border-left: 1px solid var(--linha2); box-shadow: -18px 0 44px -14px var(--sombra); animation: carr-lado .25s ease-out; }
.carr[hidden], .carr-fundo[hidden], .carr [hidden] { display: none !important; }
@keyframes carr-veu { from { opacity: 0; } }
@keyframes carr-lado { from { transform: translateX(40px); opacity: 0; } }
@keyframes carr-sobe2 { from { transform: translateY(40px); opacity: 0; } }
.carr-cab { flex: none; display: flex; align-items: baseline; gap: 10px; padding: 14px 10px 12px 18px; border-bottom: 1px solid var(--linha); }
.carr-cab h3 { font: 800 21px/1.2 var(--display); letter-spacing: -.01em; }
.carr-qtd { color: var(--txt3); font-size: 13.5px; font-weight: 600; }
.carr-cab .fechar { align-self: center; margin-left: auto; width: 44px; height: 44px; }
.carr .lista-itens { flex: 1 1 auto; min-height: 0; max-height: none; padding: 4px 10px; }
.carr .lista-item { padding: 10px 2px 10px 8px; }
.lista-item.indisp .lista-item-txt b, .lista-item.indisp .lista-item-preco b { color: var(--txt3); }
.lista-item.indisp .lista-item-preco b { text-decoration: line-through; }
.carr-vazio { flex: 1 1 auto; display: grid; align-content: center; justify-items: center; text-align: center; gap: 10px; padding: 32px 24px; }
.carr-vazio-ic { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--lista-fundo); color: var(--lista-txt); }
.carr-vazio-ic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carr-vazio b { font: 800 18px/1.25 var(--display); }
.carr-vazio p { max-width: 300px; color: var(--txt3); font-size: 14px; line-height: 1.5; }
.carr-vazio .bt { margin-top: 6px; height: 44px; }
.carr-pe { flex: none; display: grid; gap: 10px; padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--linha); background: var(--sup); }
.carr-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.carr-total > span:first-child { color: var(--txt2); font-size: 15px; font-weight: 600; }
.carr-total-v { display: grid; justify-items: end; gap: 3px; }
.carr-total-v b { font: 800 25px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.carr-total-v small { color: var(--txt3); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.carr .lista-nota { padding: 0; }
.carr-finalizar { width: 100%; height: 50px; font-size: 15.5px; font-weight: 800; border-radius: 12px; }
.carr-finalizar svg { width: 22px; height: 22px; }
.carr-finalizar.off { opacity: .5; pointer-events: none; }
.carr-sec { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.carr-sec .bt { height: 44px; background: transparent; }
.carr-sec .lista-limpar:hover { color: var(--verm); border-color: var(--verm); }
@media (max-width: 600px) {
  .carr { top: auto; left: 0; width: 100%; max-height: min(88dvh, 88vh); border-left: 0; border-top: 1px solid var(--linha2); border-radius: 18px 18px 0 0; box-shadow: 0 -18px 44px -14px var(--sombra); animation: carr-sobe2 .25s ease-out; }
  .carr-cab { padding: 12px 8px 10px 16px; }
}
@media (prefers-reduced-motion: reduce) { .carr, .carr-fundo { animation: none; } }
/* barra do carrinho é atalho para a gaveta: seta aponta para cima */
.dock.aberta .lista-resumo > svg { transform: none; }
/* celular: o carrinho entra no topo e o "compartilhar" sai (o logo não pode cortar) */
@media (max-width: 440px) { #compartilhar { display: none; } }
.carr-total-v b { font-variant-numeric: normal; }
/* celular com a barra do carrinho/comparar: o WhatsApp flutuante sai (o do topo e o "Enviar pedido" seguem) e o "voltar ao topo" encosta logo acima da barra */
@media (max-width: 600px) {
  body.dock-on .flutuante { opacity: 0 !important; pointer-events: none !important; }
  body.dock-on .topo-bt { right: 16px; bottom: calc(var(--dock-h, 62px) + 20px + env(safe-area-inset-bottom, 0px)); }
}
.lista-bt .ct, .cmp-lista .ct { display: none; }
@media (max-width: 480px) {
  .compra .lista-bt .lg { display: none; } .compra .lista-bt .ct { display: inline; }
  .compra .lista-bt[aria-pressed="true"] .lg { display: inline; }
  .compra .lista-bt .lista-x { display: none; }
}

/* v192: botão do Gerador 2FA no topo; em telas de 340px ou menos o texto da marca não cabe: fica só o ícone (sem sobrar um pedaço cortado) */

/* Conversor e 2FA no cabeçalho, com texto */
.bt-rot { color: var(--txt); padding: 0 12px; gap: 6px; font-size: 13.5px; }
.bt-rot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 560px) { .topo-dir .bt.bt-rot { flex-direction: column; width: auto !important; min-width: 44px; padding: 0 5px; gap: 1px; font-size: 10px; line-height: 1; font-weight: 700; } .bt-rot svg { width: 15px; height: 15px; } }
/* o aviso de privacidade não aparece por cima do pop-up da BM nem da comparação (volta quando eles fecham) */
html.foco-aberto #um-cc, body:has(#cmp:not([hidden])) #um-cc { display: none !important; }
/* celular: o cabeçalho fica só com a marca, o carrinho e o WhatsApp; as ferramentas viram cards logo abaixo (#ferr-abas) */
.ferr-abas { display: none; }
/* X para fechar as janelas abertas pelos cards de ferramentas (celular) */
.pop-x { position: fixed; top: 9px; right: 12px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: var(--sup); color: var(--txt); border: 1px solid var(--linha2); box-shadow: var(--elev); cursor: pointer; }
.pop-x[hidden] { display: none; }
.pop-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) {
  .avisos-pop, .idioma-menu { position: fixed !important; left: 12px !important; right: 12px !important; top: 66px !important; width: auto !important; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; z-index: 85 !important; }
  .topo-dir .instalar-wrap, .topo-dir .avisos-wrap, .topo-dir .idioma-wrap { position: absolute; width: 0; height: 0; overflow: visible; margin: 0; padding: 0; }
  .topo-dir .instalar-wrap > .bt, .topo-dir .avisos-wrap > .bt, .topo-dir .idioma-wrap > .bt, .topo-dir #bt-conversor, .topo-dir #bt-2fa, .topo-dir #compartilhar { display: none !important; }
  .ferr-abas { display: grid; margin: 0 0 16px; }
  .ferr-abas .aba[hidden] { display: none; }
}

/* ---------- foco no card: tocar num card abre o mesmo card, grande e centralizado (app.js > abrirFoco) ----------
   Nunca rola: a caixa ocupa a tela (dvh + áreas seguras) e o app.js mede o card e reduz (scale) só o necessário. */
.foco { position: fixed; inset: 0; z-index: 65; overflow: hidden; overscroll-behavior: contain; }
.foco-fundo { position: absolute; inset: 0; background: var(--veu-modal); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); cursor: zoom-out; }
.foco-caixa { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.foco-caixa > * { pointer-events: none; }
.foco-topo, .foco-barra { flex: none; display: flex; align-items: center; gap: 8px; }
.foco-topo { justify-content: space-between; width: min(100%, 980px); margin: 0 auto; }
.foco-barra { display: none; justify-content: center; }
.foco-topo > *, .foco-barra > *, .foco-lado, .foco-card { pointer-events: auto; }
.foco-pos { min-width: 64px; text-align: center; font-size: 13px; font-weight: 700; color: var(--txt); background: var(--sup); border: 1px solid var(--linha2); border-radius: 99px; padding: 6px 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.foco-pos:empty { visibility: hidden; }
.foco-bt { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--linha2); background: var(--sup); color: var(--txt); cursor: pointer; box-shadow: 0 10px 26px -12px var(--sombra); transition: border-color .15s, background-color .15s, transform .12s; }
.foco-bt:hover { border-color: var(--azul2); }
.foco-bt:active { transform: scale(.94); }
.foco-bt svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.foco-palco { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 14px; }
.foco-card { position: relative; flex: none; overflow: visible; }
.foco-escala { position: absolute; left: 0; top: 0; padding-top: 12px; transform-origin: 0 0; }
.foco-escala .card { background: var(--sup); box-shadow: 0 20px 44px -22px var(--sombra); cursor: auto; }
.foco-escala .card:hover { transform: none; }
.foco-escala .card-topo h3 { font-size: clamp(19px, 2.4vw, 23px); }
.foco-escala .card-texto { font-size: 14.5px; }
.foco-escala .preco b { font-size: clamp(24px, 3vw, 28px); }
/* sem espaço: espaçamento menor (o app.js só usa quando o card não cabe do jeito normal) */
.foco-escala.compacto .card-topo { padding-top: 14px; }
.foco-escala.compacto .card-texto { line-height: 1.42; padding-top: 8px; }
.foco-escala.compacto .card-rodape { margin-top: 8px; padding: 10px 0 12px; }
.foco-escala.compacto .card-cmp { margin: -8px 0 -6px; }
#secoes .card[data-id] { cursor: pointer; }
#secoes .card[data-id]:focus-visible { outline: 2px solid var(--azul2); outline-offset: 3px; }
html.foco-aberto, html.foco-aberto body { overflow: hidden; }
html.foco-aberto .toast { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .foco:not([hidden]) .foco-fundo { animation: foco-fundo .2s ease-out; }
  .foco:not([hidden]) .foco-palco { animation: foco-entra .22s cubic-bezier(.2, .8, .2, 1); }
  .foco-card.entra-dir { animation: foco-dir .22s cubic-bezier(.2, .8, .2, 1); }
  .foco-card.entra-esq { animation: foco-esq .22s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes foco-fundo { from { opacity: 0; } }
@keyframes foco-entra { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes foco-dir { from { opacity: 0; transform: translateX(28px); } }
@keyframes foco-esq { from { opacity: 0; transform: translateX(-28px); } }
/* celular (em pé ou deitado) e telas baixas: nada em cima do card; barra compacta embaixo com ‹ 3 de 9 › e ✕ */
@media (max-width: 700px), (max-height: 520px) {
  .foco-caixa { gap: 8px; padding: max(8px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .foco-topo, .foco-lado { display: none; }
  .foco-barra { display: flex; }
  .foco-x-barra { margin-left: 10px; }
  .foco.so-um .foco-barra { justify-content: flex-end; }
  .foco-palco { gap: 0; }
  .foco-escala .card-texto { font-size: 14px; line-height: 1.5; }
}

/* botão "Semelhantes (n)" no card da lista, à direita do Comparar (no card aberto a faixa já aparece embaixo) */
.sem-bt { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px 0 8px; border: 0; background: none; color: var(--azul2); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.sem-bt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sem-bt:hover { text-decoration: underline; text-underline-offset: 3px; }
.sem-bt.sem-nada { color: var(--txt2); font-weight: 500; cursor: default; padding-right: 2px; }
.sem-bt.sem-nada:hover { text-decoration: none; }
.foco-sem-nada { margin: 0 2px; font-size: 13px; color: var(--txt2); }
.foco-escala .sem-bt { display: none; }
@media (max-width: 380px) { .sem-bt { font-size: 13px; gap: 4px; } }
.foco-sem.pisca .sem-it { animation: sem-pisca 1.1s ease-out; }
@keyframes sem-pisca { 0%, 60% { border-color: var(--azul2); box-shadow: 0 0 0 3px rgba(59,108,255,.35); } }

/* BMs semelhantes embaixo do card aberto: uma fileira que rola para o lado (nunca estoura a tela) */
.foco-sem { flex: none; width: min(100%, 980px); margin: 0 auto; pointer-events: auto; }
.foco-sem[hidden] { display: none; }
.foco-sem-tit { font-size: 12px; font-weight: 700; letter-spacing: 0; color: var(--txt2); margin: 0 2px 6px; }
.foco-sem-lista { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px 4px; scrollbar-width: thin; }
.sem-it { flex: 0 0 auto; width: 168px; scroll-snap-align: start; display: grid; gap: 4px; text-align: left; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--linha2); background: var(--sup); color: var(--txt); cursor: pointer; font: inherit; box-shadow: 0 10px 24px -16px var(--sombra); transition: border-color .15s, transform .12s; }
.sem-it:hover { border-color: var(--azul2); }
.sem-it:active { transform: scale(.97); }
.sem-it:focus-visible { outline: 2px solid var(--azul2); outline-offset: 2px; }
.sem-it.atual { border-color: var(--azul2); box-shadow: 0 0 0 1px var(--azul2) inset, 0 10px 24px -16px var(--sombra); }
.sem-it.ref .sem-tit::before { content: "★ "; color: var(--azul2); }
.sem-l1 { display: flex; align-items: center; gap: 6px; min-height: 20px; font-size: 12px; }
.sem-l1 .moeda-card { margin: 0; padding: 0; border: 0; }
.sem-l1 .tier { font-size: 11px; padding: 1px 6px; }
.sem-tit { font-size: 14px; font-weight: 700; line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sem-preco { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--azul2); }
@media (max-width: 700px), (max-height: 520px) {
  .foco-sem-tit { font-size: 11px; margin-bottom: 4px; }
  .sem-it { width: 132px; padding: 7px 9px; gap: 2px; }
  .sem-tit { font-size: 13px; }
  .sem-preco { font-size: 14px; }
}
@media (max-height: 420px) { .foco-sem { display: none; } }

/* com o foco aberto, a barra de comparar/carrinho continua à vista e clicável (acima do fundo escuro) e o card abre espaço para ela */
html.foco-aberto .dock { z-index: 66; }
html.foco-aberto body.dock-on .foco-caixa { padding-bottom: calc(var(--dock-h, 62px) + 20px + env(safe-area-inset-bottom, 0px)); }
/* "Abrir" da comparação aberto a partir do foco: a comparação fica por cima do pop-up (senão não aparece) */
html.foco-aberto .cmp { z-index: 70; }
/* carrinho aberto com o pop-up da BM: o carrinho fica por cima (senão abre atrás do pop-up) */
html.foco-aberto .carr { z-index: 70; }

/* ---------- Configurações (engrenagem no cabeçalho): Conversor, 2FA, Avisos, Idioma e moeda, Compartilhar, Instalar ----------
   As ferramentas saem do cabeçalho (em todas as telas) e ficam só dentro da engrenagem. */
.topo-dir .instalar-wrap, .topo-dir .avisos-wrap, .topo-dir .idioma-wrap { position: absolute; width: 0; height: 0; overflow: visible; margin: 0; padding: 0; }
.topo-dir .instalar-wrap > .bt, .topo-dir .avisos-wrap > .bt, .topo-dir .idioma-wrap > .bt, .topo-dir #bt-conversor, .topo-dir #bt-2fa, .topo-dir #compartilhar { display: none !important; }
.avisos-pop, .idioma-menu { position: fixed !important; top: calc(var(--topo-h, 64px) + 8px) !important; right: 16px !important; left: auto !important; z-index: 85 !important; max-height: calc(100dvh - var(--topo-h, 64px) - 24px); overflow-y: auto; }
.avisos-pop { width: min(380px, calc(100vw - 24px)) !important; }
.cfg-wrap { position: relative; }
.bt-cfg svg { transition: transform .35s; }
.bt-cfg[aria-expanded="true"] svg { transform: rotate(60deg); }
.cfg-ponto { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--verm, #e5484d); box-shadow: 0 0 0 2px var(--sup); }
.cfg-ponto[hidden] { display: none; }
.cfg-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; width: min(380px, calc(100vw - 24px)); padding: 12px; background: var(--sup); border: 1px solid var(--linha2); border-radius: 14px; box-shadow: 0 20px 50px -14px var(--sombra); }
.cfg-pop[hidden] { display: none; }
.cfg-pop-cab { margin: 0 2px 10px; font-size: 14px; }
.cfg-pop .ferr-abas { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 !important; }
.cfg-pop .ferr-abas .aba[hidden] { display: none; }
@media (max-width: 600px) {
  .cfg-pop { position: fixed; left: 12px; right: 12px; top: calc(var(--topo-h, 64px) + 8px); width: auto; max-height: calc(100dvh - var(--topo-h, 64px) - 24px); overflow-y: auto; }
  .avisos-pop, .idioma-menu { left: 12px !important; right: 12px !important; width: auto !important; }
}

/* Configurações: responsivo (cabe em qualquer tela, inclusive celular deitado) */
.cfg-pop { max-height: calc(100dvh - var(--topo-h, 64px) - 20px); overflow-y: auto; overscroll-behavior: contain; }
.cfg-pop-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cfg-x { flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--linha2); background: transparent; color: var(--txt); cursor: pointer; }
.cfg-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.cfg-pop .ferr-abas .aba { min-height: 0; padding: 10px 12px; gap: 10px; align-items: center; }
.cfg-pop .ferr-abas .aba > span { min-width: 0; }
.cfg-pop .ferr-abas .aba b, .cfg-pop .ferr-abas .aba small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.cfg-pop .ferr-abas .aba svg { flex: none; }
@media (max-width: 360px) { .cfg-pop .ferr-abas .aba small { display: none; } }
/* celular deitado: 3 por linha, sem a linha de baixo */
@media (max-height: 500px) and (orientation: landscape) {
  .cfg-pop { width: min(560px, calc(100vw - 24px)); }
  .cfg-pop .ferr-abas { grid-template-columns: repeat(3, 1fr); }
  .cfg-pop .ferr-abas .aba small { display: none; }
}
/* X das janelas (Avisos, Idioma): dentro do canto da janela, sem cobrir o WhatsApp do cabeçalho */
.pop-x { top: calc(var(--topo-h, 64px) + 14px) !important; right: 20px !important; width: 34px !important; height: 34px !important; box-shadow: none !important; }
.pop-x svg { width: 16px !important; height: 16px !important; }
@media (max-width: 600px) { .avisos-cab { padding-right: 62px; } .idioma-menu { padding-top: 46px; } }
.cfg-pop .ferr-abas { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.cfg-pop .ferr-abas .aba { min-width: 0; width: auto; }
@media (max-height: 500px) and (orientation: landscape) { .cfg-pop .ferr-abas { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.cfg-pop .ferr-abas .aba b { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 400px) { .cfg-pop .ferr-abas .aba { padding: 10px; gap: 8px; } .cfg-pop .ferr-abas .aba b { font-size: 13.5px; } }

/* BM sem descrição cadastrada: aviso no lugar do texto (o card não fica vazio) */
.card-texto p.sem-desc { color: var(--txt3); font-style: italic; padding: 2px 0 6px; }

/* ---------- card que gira (comunidade + ferramentas grátis) — giro.js ---------- */
.giro { margin-top: 20px; }
.giro-trilho { display: grid; touch-action: pan-y; }
.giro .giro-item { grid-area: 1 / 1; margin-top: 0; min-width: 0; }
.giro-on .giro-item:not(.giro-atual) { visibility: hidden; pointer-events: none; }
/* antes do giro.js montar (estoque ainda carregando): só o primeiro item aparece, em vez de todos um em cima do outro */
.giro:not(.giro-on) .giro-item:not([hidden]) ~ .giro-item { visibility: hidden; pointer-events: none; }
.giro-ferr .atalho-ic { background: rgba(59,108,255,.13); color: var(--azul2); }
.giro-ferr .atalho-ic svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.giro-ferr .atalho-tag { color: var(--azul2); border-color: rgba(59,108,255,.45); }
.giro-ferr:hover .atalho-txt b { color: var(--azul2); }
.giro-de-dir { animation: giro-entra-dir .42s cubic-bezier(.2,.7,.2,1); }
.giro-de-esq { animation: giro-entra-esq .42s cubic-bezier(.2,.7,.2,1); }
@keyframes giro-entra-dir { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes giro-entra-esq { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.giro-ctl { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 6px; }
.giro-seta { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--txt3); display: grid; place-items: center; cursor: pointer; }
.giro-seta:hover { color: var(--txt); background: var(--sup); }
.giro-seta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.giro-pontos { display: flex; align-items: center; }
.giro-ponto { width: 22px; height: 28px; border: 0; background: none; padding: 0; display: grid; place-items: center; cursor: pointer; }
.giro-ponto i { position: relative; overflow: hidden; width: 7px; height: 7px; border-radius: 99px; background: var(--linha2); transition: width .25s ease, background-color .25s ease; }
.giro-ponto:hover i { background: var(--txt3); }
.giro-ponto[aria-current="true"] i { width: 22px; background: rgba(59,108,255,.28); }
/* barrinha de tempo dentro do ponto atual; congela quando pausa */
.giro-ponto[aria-current="true"] i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--azul); transform-origin: left; animation: giro-tempo var(--giro-resto, 4000ms) linear forwards; }
.giro-pausa .giro-ponto[aria-current="true"] i::after { animation-play-state: paused; }
.giro-ponto[aria-current="true"]:only-child i::after { animation: none; }
@keyframes giro-tempo { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 600px) {
  .giro .giro-item { gap: 12px; padding: 12px 14px; }
  .giro .atalho-ic { width: 38px; height: 38px; }
  .giro .atalho-txt small { font-size: 12.5px; line-height: 1.35; display: block; }
  .giro .atalho-tag { font-size: 11px; padding: 2px 8px; }
  .giro-ctl { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .giro-de-dir, .giro-de-esq { animation: none; }
  .giro-ponto[aria-current="true"] i::after { animation: none; transform: scaleX(1); }
}

/* formas de pagamento no rodapé (PIX + criptomoedas), pílulas de vidro */
.pag-selos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; width: 100%; }
.pag-tit { font-size: 12px; font-weight: 600; color: var(--txt3); margin-right: 2px; }
.pag-selo { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 14px 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--txt); white-space: nowrap;
  background: var(--vidro-cor, rgba(255,255,255,.5)); border: .5px solid var(--vidro-borda, var(--linha2)); box-shadow: inset 0 1px 0 var(--vidro-brilho, rgba(255,255,255,.6)), 0 4px 14px -8px rgba(16,24,64,.3);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); }
.pag-selo svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--azul); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pag-novo { font-size: 11px; font-weight: 800; letter-spacing: 0; color: #fff; background: var(--azul); border-radius: 999px; padding: 2px 7px; margin-left: 2px; }
@media (max-width: 420px) { .pag-tit { width: 100%; } }

/* alerta no padrão da Apple (HIG Alerts) — e-mail temporário */
dialog.em-alerta { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100% - 40px); width: min(320px, calc(100% - 40px)); padding: 20px 18px 16px; border: 1px solid var(--linha, rgba(127,127,127,.25)); border-radius: 18px; background: var(--solido, var(--card)); color: var(--txt); box-shadow: 0 20px 60px -12px rgba(0,0,0,.55); text-align: center; }
dialog.em-alerta::backdrop { background: rgba(3,5,10,.45); }
dialog.em-alerta p { margin: 0 0 16px; font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.em-alerta-bts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.em-alerta-bts .bt { min-height: 44px; justify-content: center; }
.em-alerta-bts .bt.perigo { background: #c42b3a !important; border-color: #c42b3a !important; color: #fff !important; }


/* (issue #719) ordenar por vários critérios + filtro avançado (dentro de Filtros) */
.chip-ord { position: relative; }
.chip-ord .ord-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #0a84ff; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.chip-ord[aria-pressed="true"] .ord-n { background: #fff; color: #0a84ff; box-shadow: 0 0 0 1px #0a84ff; }
.ord-resumo { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: var(--txt2); overflow-wrap: anywhere; }
.grupo-av { border: 1px solid var(--linha2); border-radius: 14px; padding: 0 14px; background: var(--sutil, transparent); }
.grupo-av > summary { list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 48px; gap: 8px; }
.grupo-av > summary::-webkit-details-marker { display: none; }
.grupo-av > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--txt3); border-bottom: 2px solid var(--txt3); transform: rotate(45deg); transition: transform .2s; flex: none; }
.grupo-av[open] > summary::after { transform: rotate(-135deg); }
.grupo-av > summary h4 { font-size: 13.5px; font-weight: 700; color: var(--txt); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.grupo-av > summary h4 small { font-weight: 500; font-size: 12px; color: var(--txt3); }
.grupo-av > summary .qtd { background: #0a84ff; color: #fff; border-radius: 99px; padding: 1px 7px; font-size: 11.5px; }
.grupo-av > summary:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; border-radius: 8px; }
.av-vit { display: grid; gap: 16px; padding: 4px 0 16px; }
.av-item { display: grid; gap: 6px; min-width: 0; }
.av-rot { font-size: 13px; font-weight: 600; color: var(--txt2); }
.av-rot small { display: block; font-weight: 500; font-size: 12px; color: var(--txt3); }
.av-txt .campo { width: 100%; min-width: 0; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .grupo-av > summary::after { transition: none; } }
