/* Biolo — estilos */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --fg: #0f172a;
  --fg-2: #334155;
  --muted: #64748b;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --brand: #d21f2f;
  --brand-ink: #a8121f;
  --brand-soft: #fdecee;
  --accent: #f5b700;
  --ok: #067647; --ok-soft: #e7f6ec;
  --err: #b42318; --err-soft: #fdeceb;
  --warn: #93370d; --warn-soft: #fef6e7;
  --info: #1d4ed8; --info-soft: #eaf1ff;
  --price: #0f172a;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 4px 12px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --header-bg: rgba(255, 255, 255, .86);
  /* tons das categorias: fundo suave / cor */
  --violeta-bg: #f1edff; --violeta: #6d3fd8;
  --azul-bg: #e9f1ff; --azul: #1f5fd1;
  --vermelho-bg: #fdecee; --vermelho: #c81e2d;
  --verde-bg: #e6f6ee; --verde: #0b7a4b;
  --ambar-bg: #fff4d6; --ambar: #a15c00;
  --laranja-bg: #ffede1; --laranja: #c2410c;
  --cinza-bg: #eef1f5; --cinza: #475467;
  --rosa-bg: #fde8f3; --rosa: #be185d;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117; --surface: #161b22; --surface-2: #1f2630; --fg: #e8ecf1; --fg-2: #c3cad4; --muted: #8b95a3;
    --line: #262e39; --line-2: #34404e; --brand: #ef4452; --brand-ink: #ff6b77; --brand-soft: #3a1418;
    --ok: #6ee7a8; --ok-soft: #0f2e1f; --err: #ff9a8f; --err-soft: #3a1714; --warn: #fcd38a; --warn-soft: #332410;
    --info: #9ab8ff; --info-soft: #172443; --price: #f4f6f8;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 3px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.3); --shadow-lg: 0 12px 32px rgba(0,0,0,.55);
    --header-bg: rgba(13, 17, 23, .82);
    --violeta-bg: #261d3d; --violeta: #b9a1ff; --azul-bg: #16243d; --azul: #8fb3ff; --vermelho-bg: #3a1418; --vermelho: #ff8f98;
    --verde-bg: #11291e; --verde: #74dcaa; --ambar-bg: #2e2410; --ambar: #f5c35a; --laranja-bg: #33200f; --laranja: #ffab70;
    --cinza-bg: #1f2630; --cinza: #b3bdc9;
    --rosa-bg: #3a1528; --rosa: #f9a8d4;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 15px/1.5 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
small { color: var(--muted); font-weight: 400; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.nota { color: var(--muted); font-size: 13.5px; display: flex; gap: 6px; align-items: flex-start; }
.nota .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* ---------- botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--fg); font: 600 14px/1 inherit; cursor: pointer;
  white-space: nowrap; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
}
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .campo:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 2px; }
.btn-primario { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(210, 31, 47, .3); }
.btn-primario:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn-secundario { background: var(--surface-2); border-color: transparent; }
.btn-secundario:hover { background: var(--line); }
.btn-fantasma { border-color: transparent; background: transparent; }
.btn-claro { background: #fff; color: var(--brand-ink); border-color: #fff; }
.btn-claro:hover { background: #fff5f5; }
.btn-perigo { color: var(--err); }
.btn-perigo:hover { background: var(--err-soft); border-color: var(--err-soft); }
.btn-pequeno { height: 32px; padding: 0 11px; font-size: 13px; }
.btn-grande { height: 48px; padding: 0 22px; font-size: 15.5px; border-radius: var(--r); }
.btn-bloco { width: 100%; }
.btn .ic { width: 17px; height: 17px; }

.campo {
  width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--fg); font: inherit; transition: border-color .15s, box-shadow .15s;
}
textarea.campo { height: auto; padding: 11px 13px; resize: vertical; line-height: 1.5; }
select.campo { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.campo:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.campo:disabled { background: var(--surface-2); color: var(--muted); }
.campo-pequeno { height: 36px; font-size: 14px; }
.campo-prefixo { position: relative; display: block; margin-top: 6px; }
.campo-prefixo .campo { margin-top: 0; padding-right: 44px; }
.campo-prefixo span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; font-size: 14px; }
.form { display: grid; gap: 16px; }
.rotulo { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--fg-2); }
.rotulo .campo { font-weight: 400; }
.rotulo small { font-weight: 400; }
.rotulo-linha { display: flex; justify-content: space-between; }
.rotulo-linha a { font-weight: 500; }
.rotulo-grande { font-size: 16px; color: var(--fg); margin: 24px 0; }
.duas-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.caixa { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.caixa input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); }

/* interruptor */
.interruptor { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; user-select: none; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor span { width: 40px; height: 24px; background: var(--line-2); border-radius: 99px; position: relative; transition: background .2s; flex: none; }
.interruptor span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.interruptor input:checked + span { background: var(--brand); }
.interruptor input:checked + span::after { transform: translateX(16px); }
.interruptor input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 2px; }

/* ---------- cabeçalho ---------- */
.cabecalho { padding-top: env(safe-area-inset-top); position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.cab-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 20px; }
.marca { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); }
.marca:hover { text-decoration: none; }
.marca-icone { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(140deg, #e8323f, #a8121f); color: var(--accent); display: grid; place-items: center; font: 800 21px/1 Georgia, "Times New Roman", serif; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.marca-nome { font-weight: 800; font-size: 22px; letter-spacing: -.04em; }
.marca-centro { justify-content: center; display: flex; margin-bottom: 22px; }
.cab-pesquisa { flex: 1; max-width: 560px; position: relative; }
.cab-pesquisa .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.cab-pesquisa input { width: 100%; height: 42px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 16px 0 42px; font: inherit; color: var(--fg); }
.cab-pesquisa input:focus { outline: none; background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.cab-accoes { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cab-icone { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--fg-2); }
.cab-icone:hover { background: var(--surface-2); }
.cab-icone .ic { width: 21px; height: 21px; }
.fav-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: linear-gradient(140deg, #ffd34d, #f5a300); color: #4a2a00; font-weight: 700; font-size: 13.5px; letter-spacing: .02em; }
.avatar-grande { width: 56px; height: 56px; font-size: 19px; }
.menu-utilizador { position: relative; }
.menu-utilizador summary { list-style: none; cursor: pointer; border-radius: 50%; }
.menu-utilizador summary::-webkit-details-marker { display: none; }
.menu-painel { position: absolute; right: 0; top: calc(100% + 10px); width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
.menu-nome { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; }
.menu-nome small { overflow: hidden; text-overflow: ellipsis; }
.menu-painel a, .menu-painel button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 12px; border-radius: var(--r-sm); color: var(--fg); font: 500 14px/1.2 inherit; background: none; border: 0; cursor: pointer; text-align: left; }
.menu-painel a:hover, .menu-painel button:hover { background: var(--surface-2); text-decoration: none; }
.menu-painel .ic { color: var(--muted); }
.menu-painel form { margin: 0; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }

/* ---------- avisos ---------- */
.toasts { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(520px, calc(100% - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 12px 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; animation: entrar .25s ease-out; }
.toast > .ic { margin-top: 1px; }
.toast span { flex: 1; }
.toast-ok > .ic { color: var(--ok); }
.toast-erro > .ic { color: var(--err); }
.toast-info > .ic { color: var(--info); }
.toast-fechar { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; height: 20px; }
@keyframes entrar { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- estrutura ---------- */
.conteudo { max-width: 1240px; margin: 0 auto; padding: 24px 20px 64px; }
.seccao { margin-top: 44px; }
.seccao-cab { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.seccao-cab h2 { font-size: 21px; font-weight: 750; }
.ver-mais { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 2px; }
.ver-mais .ic { width: 16px; height: 16px; }
.cartao { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.cartao + .cartao { margin-top: 16px; }
.cartao-titulo { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.cartao-titulo small { font-size: 13px; margin-left: 6px; }
.migalhas { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.migalhas a { color: var(--muted); }
.migalhas a:hover { color: var(--fg); }
.migalhas .ic { width: 14px; height: 14px; }
.migalhas span { color: var(--fg); font-weight: 500; }

/* ---------- início ---------- */
.hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 400px at 85% -10%, rgba(245, 183, 0, .35), transparent 60%),
              radial-gradient(900px 500px at -10% 120%, rgba(0, 0, 0, .35), transparent 60%),
              linear-gradient(135deg, #c81e2d 0%, #9d1220 55%, #6e0b16 100%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px; }
.hero-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 56px 20px 60px; }
.hero-etiqueta { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .15); font-size: 13px; font-weight: 600; margin-bottom: 18px; backdrop-filter: blur(4px); }
.hero-etiqueta .ic { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1.07; }
.hero-sub { font-size: 17px; opacity: .88; margin-top: 14px; max-width: 520px; }
.hero-pesquisa { margin-top: 28px; display: flex; gap: 8px; background: var(--surface); padding: 8px; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); max-width: 820px; }
.hero-pesquisa label { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); }
.hp-campo { flex: 1; min-width: 0; }
.hp-campo input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; font: inherit; font-size: 16px; color: var(--fg); }
.hp-campo input:focus { outline: none; }
.hp-prov { border-left: 1px solid var(--line); }
.hp-prov select { border: 0; background: none; height: 48px; font: inherit; font-weight: 600; color: var(--fg); cursor: pointer; max-width: 170px; }
.hp-prov select:focus { outline: none; }
.hero-numeros { margin-top: 18px; font-size: 14px; opacity: .85; }

.grelha-categorias { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card-categoria { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--fg); transition: transform .15s, box-shadow .15s, border-color .15s; }
.card-categoria:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.cc-icone { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.cc-icone .ic { width: 24px; height: 24px; }
.cc-texto { display: grid; gap: 2px; flex: 1; min-width: 0; }
.cc-texto b { font-size: 15.5px; font-weight: 700; }
.cc-texto small { font-size: 13px; line-height: 1.35; }
.cc-n { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 2px 9px; border-radius: 99px; }
.tom-violeta .cc-icone, .tom-violeta.ca-media, .tom-violeta.la-media, .tom-violeta.galeria { background: var(--violeta-bg); color: var(--violeta); }
.tom-azul .cc-icone, .tom-azul.ca-media, .tom-azul.la-media, .tom-azul.galeria { background: var(--azul-bg); color: var(--azul); }
.tom-vermelho .cc-icone, .tom-vermelho.ca-media, .tom-vermelho.la-media, .tom-vermelho.galeria { background: var(--vermelho-bg); color: var(--vermelho); }
.tom-verde .cc-icone, .tom-verde.ca-media, .tom-verde.la-media, .tom-verde.galeria { background: var(--verde-bg); color: var(--verde); }
.tom-ambar .cc-icone, .tom-ambar.ca-media, .tom-ambar.la-media, .tom-ambar.galeria { background: var(--ambar-bg); color: var(--ambar); }
.tom-laranja .cc-icone, .tom-laranja.ca-media, .tom-laranja.la-media, .tom-laranja.galeria { background: var(--laranja-bg); color: var(--laranja); }
.tom-cinza .cc-icone, .tom-cinza.ca-media, .tom-cinza.la-media, .tom-cinza.galeria { background: var(--cinza-bg); color: var(--cinza); }
.tom-rosa .cc-icone, .tom-rosa.ca-media, .tom-rosa.la-media, .tom-rosa.galeria { background: var(--rosa-bg); color: var(--rosa); }
.etiqueta-cat.tom-rosa { background: var(--rosa-bg); color: var(--rosa); }
.etiqueta-cat { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 600; margin: 8px 0 22px; }
.etiqueta-cat.tom-violeta { background: var(--violeta-bg); color: var(--violeta); } .etiqueta-cat.tom-azul { background: var(--azul-bg); color: var(--azul); }
.etiqueta-cat.tom-vermelho { background: var(--vermelho-bg); color: var(--vermelho); } .etiqueta-cat.tom-verde { background: var(--verde-bg); color: var(--verde); }
.etiqueta-cat.tom-ambar { background: var(--ambar-bg); color: var(--ambar); } .etiqueta-cat.tom-laranja { background: var(--laranja-bg); color: var(--laranja); }
.etiqueta-cat.tom-cinza { background: var(--cinza-bg); color: var(--cinza); }

.cta { margin-top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 36px; border-radius: 24px; color: #fff;
  background: radial-gradient(600px 200px at 100% 0%, rgba(245, 183, 0, .4), transparent 70%), linear-gradient(120deg, #1e293b, #0f172a); }
.cta h2 { font-size: 24px; font-weight: 800; }
.cta p { opacity: .8; margin-top: 6px; }

.diretorio { columns: 4 220px; column-gap: 28px; }
.dir-bloco { break-inside: avoid; margin-bottom: 22px; }
.dir-bloco h3 { font-size: 15px; margin-bottom: 8px; }
.dir-bloco h3 a { color: var(--fg); }
.dir-bloco ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dir-bloco li a { color: var(--muted); font-size: 14px; }
.dir-bloco li a:hover { color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--fg-2); font-size: 14px; font-weight: 500; }
.chip:hover { text-decoration: none; border-color: var(--line-2); background: var(--surface-2); }
.chip.actual { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip .ic { width: 14px; height: 14px; }
.chip-activo { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); padding: 5px 10px 5px 12px; font-size: 13px; }

/* ---------- cartão de anúncio ---------- */
.grelha-anuncios { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card-anuncio { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card-anuncio:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ca-link { display: block; color: inherit; }
.ca-link:hover { text-decoration: none; }
.ca-media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.ca-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.card-anuncio:hover .ca-media img { transform: scale(1.04); }
.ca-placeholder { width: 46px; height: 46px; opacity: .75; stroke-width: 1.5; }
.ca-badge { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgba(15, 23, 42, .7); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 99px; backdrop-filter: blur(4px); }
.ca-badge .ic { width: 13px; height: 13px; }
.ca-body { padding: 12px 14px 14px; }
.ca-preco { font-size: 17px; font-weight: 800; color: var(--price); letter-spacing: -.01em; }
.ca-sub { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ca-titulo { font-size: 14.5px; font-weight: 500; color: var(--fg-2); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; line-height: 1.45; }
.ca-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.ca-meta .ic { width: 14px; height: 14px; }
.ca-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-dot { opacity: .6; }
.fav-btn { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #334155; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn .ic { width: 18px; height: 18px; }
.fav-btn.on, .fav-toggle.on { color: var(--brand); }
.fav-btn.on .ic, .fav-toggle.on .ic { fill: currentColor; }
.fav-btn.inline { position: static; box-shadow: none; background: transparent; color: var(--muted); }

.lista-anuncios { display: grid; gap: 10px; }
.linha-anuncio, .meu-anuncio { display: flex; align-items: center; gap: 16px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.la-media { width: 108px; height: 81px; border-radius: var(--r); overflow: hidden; display: grid; place-items: center; flex: none; }
.la-media img { width: 100%; height: 100%; object-fit: cover; }
.la-media .ca-placeholder { width: 30px; height: 30px; }
.la-body, .ma-body { flex: 1; min-width: 0; }
.la-titulo { color: var(--fg); font-weight: 600; font-size: 15px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-preco { font-weight: 800; font-size: 16px; white-space: nowrap; }
.linha-anuncio .ca-meta { margin-top: 4px; }

/* ---------- pesquisa ---------- */
.pesquisa-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.pesquisa-cab h1 { font-size: 26px; font-weight: 800; }
.pesquisa-cab h1 small { font-size: 17px; font-weight: 500; }
.pesquisa-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filtros { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 18px 18px; }
.filtros-toggle { display: none; }
.filtro-grupo { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filtro-grupo:last-of-type { border-bottom: 0; }
.filtro-grupo h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.filtro-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filtro-cats a { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: var(--r-sm); color: var(--fg-2); font-size: 14px; font-weight: 500; }
.filtro-cats a:hover { background: var(--surface-2); text-decoration: none; }
.filtro-cats a.actual { background: var(--brand-soft); color: var(--brand-ink); font-weight: 650; }
.filtro-cats .ic { width: 16px; height: 16px; opacity: .8; }
.filtro-subs { list-style: none; margin: 2px 0 6px 18px; padding: 0 0 0 10px; border-left: 2px solid var(--line); display: grid; }
.filtro-subs a { padding: 5px 8px; font-size: 13.5px; justify-content: space-between; }
.filtro-subs a span { font-size: 12px; color: var(--muted); }
.filtro-local { display: grid; gap: 8px; }
.chip-n { font-size: 11.5px; font-weight: 700; margin-left: 2px; }
.chip.actual .chip-n { color: inherit; opacity: .75; }
.filtro-preco { display: flex; align-items: center; gap: 8px; }
.filtro-preco .campo { height: 40px; }
.resultados-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.chips-activos { display: flex; gap: 6px; flex-wrap: wrap; }
.ordenar { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ordenar form { margin: 0; }
.ordenar .campo { width: auto; }
.alternar-vista { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; }
.alternar-vista a { width: 32px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); }
.alternar-vista a.actual { background: var(--surface-2); color: var(--fg); }
.paginacao { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; color: var(--muted); font-size: 14px; }

.vazio { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); display: grid; justify-items: center; gap: 14px; }
.vazio b { color: var(--fg); }
.vazio-icone { width: 44px; height: 44px; padding: 12px; box-sizing: content-box; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.vazio-pagina { max-width: 560px; margin: 40px auto; }
.vazio-pagina h1 { color: var(--fg); font-size: 24px; }

/* ---------- anúncio ---------- */
.anuncio-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.galeria { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; background: #0b0f15; }
.galeria-img { width: 100%; height: 100%; object-fit: contain; }
.galeria-vazia { display: grid; justify-items: center; gap: 8px; font-weight: 600; }
.galeria-vazia .ic { width: 64px; height: 64px; stroke-width: 1.3; }
.galeria-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #0f172a; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.galeria-nav.prev { left: 14px; } .galeria-nav.next { right: 14px; }
.galeria-contador { position: absolute; bottom: 14px; right: 14px; background: rgba(15, 23, 42, .7); color: #fff; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.miniaturas { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.miniaturas button { padding: 0; border: 2px solid transparent; background: none; border-radius: 10px; cursor: pointer; flex: none; opacity: .65; transition: opacity .15s; }
.miniaturas button.actual, .miniaturas button:hover { opacity: 1; }
.miniaturas button.actual { border-color: var(--brand); }
.miniaturas img { width: 84px; height: 63px; object-fit: cover; display: block; border-radius: 8px; }
.anuncio-principal .cartao { margin-top: 20px; }
.texto { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.65; color: var(--fg-2); }
.detalhes { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.detalhes dt { font-size: 12.5px; color: var(--muted); }
.detalhes dd { margin: 2px 0 0; font-weight: 600; }
.anuncio-lateral { position: sticky; top: 84px; display: grid; gap: 14px; }
.anuncio-lateral .cartao + .cartao { margin-top: 0; }
.preco-grande { font-size: 30px; font-weight: 850; letter-spacing: -.02em; }
.anuncio-titulo { font-size: 19px; font-weight: 650; margin-top: 4px; line-height: 1.3; }
.accoes-contacto { display: grid; gap: 10px; margin-top: 18px; }
.duas-accoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contacto-revelado { display: grid; gap: 8px; padding: 12px; border-radius: var(--r); background: var(--ok-soft); }
.contacto-revelado a { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--ok); }
.contacto-revelado a.wa { font-size: 15px; }
.responder { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.vendedor { display: flex; gap: 14px; align-items: center; }
.vendedor-nome { font-weight: 700; font-size: 16px; }
.vendedor .muted { font-size: 13px; }
.dica { display: flex; gap: 12px; background: var(--info-soft); border-color: transparent; font-size: 13.5px; color: var(--fg-2); }
.dica > .ic { color: var(--info); width: 22px; height: 22px; }
.denunciar summary { cursor: pointer; color: var(--muted); font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; list-style: none; padding: 4px 2px; }
.denunciar summary::-webkit-details-marker { display: none; }
.denunciar summary .ic { width: 15px; height: 15px; }
.denunciar form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.faixa { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r); margin-bottom: 18px; font-size: 14px; flex-wrap: wrap; }
.faixa span { flex: 1; min-width: 200px; }
.faixa form { margin: 0; }
.faixa-info { background: var(--info-soft); color: var(--info); }
.faixa-aviso { background: var(--warn-soft); color: var(--warn); }

/* ---------- autenticação ---------- */
.auth { min-height: calc(100vh - 64px - 200px); display: grid; place-items: center; padding: 20px 0; }
.auth-cartao { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 36px 32px; box-shadow: var(--shadow); }
.auth-cartao h1 { font-size: 24px; font-weight: 800; text-align: center; }
.auth-cartao > .muted { text-align: center; margin: 8px 0 24px; }
.auth-icone { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); margin: 0 auto 18px; }
.auth-icone .ic { width: 26px; height: 26px; }
.auth-alternativa { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth-alternativa a { font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.caixa-dev { background: #fff6d6; color: #5c4700; border: 1px dashed #d4b200; border-radius: var(--r-sm); padding: 10px 12px; margin-top: 16px; font-size: 13.5px; }

/* ---------- conta ---------- */
.conta { max-width: 920px; margin: 0 auto; }
.conta-cab { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.conta-cab h1 { font-size: 24px; font-weight: 800; }
.conta-cab .btn { margin-left: auto; }
.separadores { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.separadores a { display: inline-flex; align-items: center; gap: 7px; padding: 11px 14px; color: var(--muted); font-weight: 600; font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.separadores a:hover { color: var(--fg); text-decoration: none; }
.separadores a.actual { color: var(--fg); border-bottom-color: var(--brand); }
.sub-titulo { font-size: 16px; font-weight: 700; margin: 24px 0 12px; display: flex; align-items: center; gap: 8px; }
.contagem { font-size: 12px; background: var(--surface-2); color: var(--muted); padding: 2px 8px; border-radius: 99px; }
.meu-anuncio + .meu-anuncio { margin-top: 10px; }
.meu-anuncio .ca-meta { margin-top: 4px; }
.preco { color: var(--price); font-weight: 700; }
.ma-estado { margin-top: 8px; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ma-estado .ic { width: 14px; height: 14px; }
.ma-accoes { display: flex; gap: 6px; align-items: center; }
.ma-accoes form { margin: 0; }
.pilula { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.pilula-ok { background: var(--ok-soft); color: var(--ok); }
.pilula-ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pilula-erro { background: var(--err-soft); color: var(--err); }
.mensagem { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-top: 12px; }
.msg-cab { display: flex; gap: 12px; align-items: center; }
.msg-cab > div { flex: 1; min-width: 0; display: grid; }
.msg-cab small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-texto { white-space: pre-wrap; margin-top: 12px; color: var(--fg-2); overflow-wrap: anywhere; }
.grelha-definicoes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grelha-definicoes .cartao + .cartao { margin-top: 0; }
.sair-movel { display: none; margin-top: 20px; }
.zona-perigo { margin-top: 16px; border-color: color-mix(in srgb, var(--err) 35%, var(--line)); }
.zona-perigo .cartao-titulo { color: var(--err); }
.zona-perigo .muted { margin-bottom: 14px; }

/* ---------- publicar ---------- */
.publicar { max-width: 760px; margin: 0 auto; }
.publicar h1 { font-size: 28px; font-weight: 800; margin-bottom: 18px; }
.publicar .form .cartao + .cartao { margin-top: 0; }
.passos-indicador { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.passos-indicador li { display: flex; align-items: center; gap: 8px; }
.passos-indicador li + li::before { content: ""; width: 32px; height: 2px; background: var(--line-2); border-radius: 2px; margin-right: 4px; }
.passos-indicador span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 12.5px; }
.passos-indicador .actual { color: var(--fg); }
.passos-indicador .actual span { background: var(--brand); color: #fff; }
.passos-indicador .feito span { background: var(--ok-soft); color: var(--ok); }
.passos-indicador .feito a { color: var(--fg-2); display: flex; align-items: center; gap: 8px; }
.passos-indicador .ic { width: 14px; height: 14px; }
.tipos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.tipo { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tipo:hover { border-color: var(--line-2); }
.tipo input { position: absolute; opacity: 0; }
.tipo:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.tipo:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 2px; }
.tipo-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: none; }
.tipo-check .ic { width: 14px; height: 14px; stroke-width: 3; }
.tipo:has(input:checked) .tipo-check { background: var(--brand); border-color: var(--brand); color: #fff; }
.zona-fotos { position: relative; display: grid; justify-items: center; gap: 4px; padding: 28px 16px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); color: var(--muted); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.zona-fotos:hover, .zona-fotos.arrastar { border-color: var(--brand); background: var(--brand-soft); }
.zona-fotos input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.zona-fotos .ic { width: 28px; height: 28px; color: var(--brand); }
.zona-fotos b { color: var(--fg); }
.pre-visualizacao, .fotos-actuais { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.pre-visualizacao:not(:empty) { margin-top: 12px; }
.fotos-actuais { margin-bottom: 12px; }
.pre-visualizacao figure { margin: 0; position: relative; }
.pre-visualizacao img, .foto-actual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.pre-visualizacao figure:first-child::after { content: "Capa"; position: absolute; left: 6px; top: 6px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.foto-actual { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.foto-actual input { accent-color: var(--err); }
.barra-submeter { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 0; }

/* ---------- páginas de texto e admin ---------- */
.pagina-texto { max-width: 760px; margin: 0 auto; }
.pagina-texto h1 { font-size: 28px; font-weight: 800; margin-bottom: 20px; }
.pagina-texto h2 { font-size: 17px; margin: 26px 0 8px; }
.pagina-texto p, .pagina-texto li { color: var(--fg-2); line-height: 1.65; }
.pagina-texto ul { padding-left: 20px; }
.pagina-texto details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 18px; margin-bottom: 10px; }
.pagina-texto summary { cursor: pointer; font-weight: 650; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; }
.pagina-texto summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.pagina-texto details[open] summary::after { content: "–"; }
.pagina-texto details p { padding-bottom: 16px; }
.regras li { margin-bottom: 12px; }
.admin { max-width: 1100px; margin: 0 auto; }
.admin-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.admin-topo h1 { font-size: 26px; }
.estatisticas { color: var(--muted); margin-bottom: 12px; }
.vistas { margin-bottom: 16px; }
.vistas a.actual { font-weight: 700; color: var(--fg); }
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tabela th, .tabela td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabela th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tabela .accoes { display: flex; gap: 6px; }
.tabela form, .gerir-accoes form { margin: 0; }
.gerir-accoes { display: flex; gap: 8px; margin: 16px 0; }
.dev { max-width: 900px; margin: 0 auto; }
.dev h1 { margin-bottom: 8px; }
.email { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-top: 12px; font-size: 14px; }
.email pre { white-space: pre-wrap; margin: 8px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 13px; margin: 8px 0 16px; }

/* ---------- rodapé ---------- */
.rodape { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.rodape-inner { max-width: 1240px; margin: 0 auto; padding: 36px 20px 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.rodape-marca p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 300px; }
.rodape h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.rodape-inner > div:not(.rodape-marca) { display: grid; gap: 8px; align-content: start; }
.rodape-inner a:not(.marca) { color: var(--fg-2); font-size: 14px; }
.rodape-copy { max-width: 1240px; margin: 0 auto; padding: 16px 20px 28px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.barra-movel { display: none; }

/* ---------- responsivo ---------- */
@media (max-width: 1020px) {
  .anuncio-layout { grid-template-columns: 1fr; }
  .anuncio-lateral { position: static; }
}
@media (max-width: 860px) {
  .pesquisa-layout { grid-template-columns: 1fr; gap: 14px; }
  .filtros { position: static; padding: 0 16px; }
  .filtros-toggle { display: flex; align-items: center; gap: 8px; padding: 13px 0; cursor: pointer; font-weight: 650; list-style: none; }
  .filtros-toggle::-webkit-details-marker { display: none; }
  .filtros[open] .filtros-toggle { border-bottom: 1px solid var(--line); }
  .filtros-form { padding-bottom: 16px; }
  .grelha-definicoes { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .so-desktop { display: none !important; }
  .cab-inner { height: 58px; gap: 12px; padding: 0 16px; }
  .marca-nome { font-size: 20px; }
  .marca-icone { width: 31px; height: 31px; font-size: 19px; }
  .conteudo { padding: 18px 16px 40px; }
  .hero-inner { padding: 34px 16px 36px; }
  .hero-sub { font-size: 15.5px; }
  .hero-pesquisa { flex-direction: column; gap: 0; padding: 6px; border-radius: 14px; }
  .hp-prov { border-left: 0; border-top: 1px solid var(--line); }
  .hp-prov select { max-width: none; flex: 1; }
  .hero-pesquisa .btn { margin-top: 6px; }
  .grelha-categorias { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-categoria { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; position: relative; }
  .card-categoria .cc-texto small { display: none; }
  .cc-n { position: absolute; top: 14px; right: 14px; }
  .cc-icone { width: 42px; height: 42px; border-radius: 12px; }
  .grelha-anuncios { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ca-body { padding: 10px 11px 12px; }
  .ca-preco { font-size: 15.5px; }
  .ca-titulo { font-size: 13.5px; }
  .ca-meta { font-size: 12px; }
  .ca-meta .ca-dot, .ca-meta span:last-child { display: none; }
  .card-anuncio .ca-meta span:nth-of-type(1) { display: inline; }
  .fav-btn { width: 32px; height: 32px; top: 8px; right: 8px; }
  .cta { flex-direction: column; align-items: stretch; padding: 24px; text-align: left; }
  .diretorio { columns: 2; column-gap: 16px; }
  .seccao { margin-top: 32px; }
  .duas-colunas { grid-template-columns: 1fr; }
  .pesquisa-cab h1 { font-size: 22px; }
  .linha-anuncio { gap: 12px; padding: 10px; flex-wrap: wrap; }
  .la-media { width: 88px; height: 66px; }
  .linha-anuncio .la-preco { order: 3; flex-basis: 100%; padding-left: 100px; margin-top: -6px; font-size: 15px; }
  .linha-anuncio .fav-btn.inline { display: none; }
  .meu-anuncio { flex-wrap: wrap; }
  .ma-accoes { flex-basis: 100%; justify-content: flex-end; }
  .auth-cartao { padding: 28px 20px; border-radius: 18px; }
  .conta-cab .avatar-grande { width: 48px; height: 48px; }
  .sair-movel { display: block; }
  .barra-submeter { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); background: var(--bg); margin: 0 -16px; padding: 12px 16px; border-top: 1px solid var(--line); }
  .barra-submeter .btn-primario { flex: 1; }
  .rodape-inner { grid-template-columns: 1fr 1fr; }
  .rodape-marca { grid-column: 1 / -1; }
  .tabela .accoes { flex-direction: column; }
  .toasts { top: 68px; }
  .barra-movel { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .barra-movel a { flex: 1; display: grid; justify-items: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 600; padding: 4px 0; }
  .barra-movel a:hover { text-decoration: none; }
  .barra-movel a.actual { color: var(--brand); }
  .barra-movel .ic { width: 22px; height: 22px; }
  .bm-publicar .ic { width: 44px; height: 44px; padding: 11px; margin-top: -20px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(210, 31, 47, .4); box-sizing: border-box; }
  .bm-publicar { color: var(--fg) !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- administração ---------- */
.admin .admin-topo { margin-bottom: 16px; }
.admin .admin-topo .muted { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.estat-grelha { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.estat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 2px; }
.estat b { font-size: 26px; font-weight: 800; }
.estat span { color: var(--muted); font-size: 13px; }
.admin .chips { margin-bottom: 16px; }
.tabela-envolvente { overflow-x: auto; border-radius: var(--r); }
.tabela td small { color: var(--muted); }
.contagem-alerta { background: var(--brand); color: #fff; }
.pilula-admin { background: var(--info-soft); color: var(--info); }
.admin-pesquisa { display: flex; gap: 8px; margin-bottom: 14px; }
.utilizador-celula { display: flex; gap: 10px; align-items: center; color: var(--fg); }
.utilizador-celula:hover { text-decoration: none; }
.admin-perfil { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.admin-perfil .cartao + .cartao { margin-top: 0; }
.admin-perfil .conta-cab { margin-bottom: 18px; }
.admin-perfil .cartao-titulo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.admin-accoes { display: grid; gap: 8px; }
.admin-accoes form { margin: 0; }
.admin-accoes .btn { justify-content: flex-start; }
.registo { list-style: none; padding: 0; display: grid; gap: 8px; }
.registo li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; font-size: 14px; }
@media (max-width: 860px) { .admin-perfil { grid-template-columns: 1fr; } .estat-grelha { grid-template-columns: 1fr 1fr; } }
.bloquear { margin: 0; }
.ligacao-discreta { display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; padding: 4px 2px; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; }
.ligacao-discreta:hover { color: var(--fg); text-decoration: none; }
.ligacao-discreta .ic { width: 15px; height: 15px; }
.bloqueados { margin-top: 16px; }
.lista-bloqueados { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lista-bloqueados li { display: flex; align-items: center; gap: 12px; }
.lista-bloqueados li > span:nth-child(2) { flex: 1; display: grid; }
.lista-bloqueados form { margin: 0; }
.mudar-email { margin-top: 18px; text-align: left; }
.mudar-email summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 14px; text-align: center; list-style: none; }
.mudar-email summary::-webkit-details-marker { display: none; }
.mudar-email[open] summary { margin-bottom: 12px; }
.grelha-definicoes .mudar-email { margin-top: 0; }
.grelha-definicoes .mudar-email summary { text-align: left; color: var(--fg-2); }
.faixa-email { margin: -8px 0 18px; }
.faixa-email .mudar-email { max-width: 420px; }
.faixa-email .mudar-email summary { text-align: left; }

/* ---------- estado do artigo e automóveis ---------- */
.escolha-estado { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.escolha-estado legend { margin-bottom: 8px; padding: 0; }
.opcoes-estado { display: flex; gap: 8px; flex-wrap: wrap; }
.opcao-estado { position: relative; cursor: pointer; }
.opcao-estado input { position: absolute; opacity: 0; }
.opcao-estado span { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 99px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14.5px; color: var(--fg-2); transition: border-color .15s, background .15s; }
.opcao-estado input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.opcao-estado input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 2px; }
.campos-veiculo { display: grid; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--surface-2); }
.tres-colunas { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 12px; }
.pilula-estado { background: var(--info-soft); color: var(--info); }
.ca-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ca-tag { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--fg-2); }
.ca-tag.novo { background: var(--ok-soft); color: var(--ok); }
.filtro-linha2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 720px) { .tres-colunas { grid-template-columns: 1fr 1fr; } .tres-colunas label:first-child { grid-column: 1 / -1; } }
.campo-codigo { font-size: 26px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; height: 56px; }
.anuncio-resumo { display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-sm); font-size: 14px; font-weight: 600; margin: -8px 0 16px; }
.anuncio-resumo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-tag.evento { display: inline-flex; align-items: center; gap: 4px; background: var(--rosa-bg); color: var(--rosa); }
.ca-tag.evento .ic { width: 12px; height: 12px; }
.duas-sempre { grid-template-columns: 1fr 1fr !important; }
.pilula-super { background: linear-gradient(135deg, #ffd34d, #f5a300); color: #4a2a00; }
.faixa-admin { background: #1e293b; color: #e2e8f0; }
.faixa-admin .btn { background: #334155; border-color: #475569; color: #f1f5f9; }
.faixa-admin .btn-perigo { color: #fecaca; }
.faixa-admin form { margin: 0; }

/* ---------- confiança: verificados, avaliações, preço justo, alertas de burla ---------- */
.selo-verificado { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: #fff;
  background: #1d9bf0; padding: 2px 9px 2px 6px; border-radius: 99px; vertical-align: middle; white-space: nowrap; }
.selo-verificado .ic { width: 13px; height: 13px; stroke-width: 3; }
.ca-tag.verificado { background: #e3f2fd; color: #0b6bb8; display: inline-flex; align-items: center; gap: 3px; }
.ca-tag.verificado .ic, .ca-tag.origem .ic { width: 11px; height: 11px; stroke-width: 3; }
.ca-tag.origem { background: var(--info-soft); color: var(--info); display: inline-flex; align-items: center; gap: 3px; }
@media (prefers-color-scheme: dark) { .ca-tag.verificado { background: #0d2a44; color: #8cc8ff; } }
.estrelas { color: #f5a300; letter-spacing: 1px; }
.estrelas.vazias { color: var(--line-2); }
.estrelas-linha { margin-top: 2px; font-size: 14px; }
.ligacao-cartao { color: inherit; }
.ligacao-cartao:hover { text-decoration: none; border-color: var(--line-2); box-shadow: var(--shadow); }
.ver-loja { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 2px; }
.ver-loja .ic { width: 15px; height: 15px; }
.preco-justo { margin-top: 14px; padding: 10px 12px; border-radius: var(--r); background: var(--ok-soft); font-size: 14px; }
.preco-justo p { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.preco-justo .ic { width: 16px; height: 16px; color: var(--ok); }
.preco-justo .muted { font-size: 12.5px; margin-top: 2px; }
.alerta-burla { margin-top: 14px; display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--err-soft);
  color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 30%, transparent); font-size: 14px; }
.alerta-burla > .ic { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.alerta-burla p { margin-top: 4px; color: var(--fg-2); }
.alerta-burla a { display: inline-block; margin-top: 6px; font-weight: 600; }
.locais-titulo { margin-top: 10px; }
.locais { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.locais li { display: flex; gap: 6px; align-items: baseline; }
.locais .ic { width: 14px; height: 14px; flex: none; }
.dica > div { min-width: 0; }

/* ---------- WhatsApp ---------- */
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #073b1c; font-weight: 700; }
.btn-whatsapp:hover { background: #1fbe5b; border-color: #1fbe5b; }
.dialogo-status { border: 0; border-radius: 20px; padding: 20px; max-width: min(420px, 92vw); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-lg); }
.dialogo-status::backdrop { background: rgba(15, 23, 42, .6); }
.dialogo-status h2 { font-size: 18px; margin-bottom: 12px; }
.dialogo-status img { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 12px; background: var(--surface-2); }
.dialogo-status .duas-accoes { margin: 12px 0 8px; }
.alerta-pesquisa { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; }
.alerta-pesquisa form { margin: 0; }

/* ---------- lojas ---------- */
.loja-cab { display: flex; gap: 20px; align-items: flex-start; }
.avatar-loja { width: 84px; height: 84px; font-size: 28px; border-radius: 22px; }
.loja-info { flex: 1; min-width: 0; }
.loja-info h1 { font-size: 26px; font-weight: 800; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.loja-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; color: var(--fg-2); font-size: 14px; }
.loja-sobre { margin-top: 12px; font-size: 15px; }
.avaliar { max-width: 560px; margin-bottom: 18px; }
.escolha-estrelas { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.escolha-estrelas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.escolha-estrelas label { font-size: 34px; line-height: 1; color: var(--line-2); cursor: pointer; transition: color .1s; }
.escolha-estrelas input:checked ~ label, .escolha-estrelas label:hover, .escolha-estrelas label:hover ~ label { color: #f5a300; }
.escolha-estrelas input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); border-radius: 6px; }
.avaliacao { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-top: 10px; }
.avaliacao p { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.avaliacao .texto { margin-top: 6px; font-size: 14.5px; }
.avaliacao form { margin: 6px 0 0; }

/* ---------- conta / admin ---------- */
.seccao-conta { margin-top: 16px; }
.seccao-conta .cartao-titulo { display: flex; gap: 8px; align-items: center; }
.seccao-conta > .muted { margin-bottom: 14px; }
.campo-prefixo-esq .campo { padding-left: calc(13px + var(--pref, 0px)); }
.campo-prefixo-esq { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; margin-top: 6px; }
.campo-prefixo-esq span { position: static; transform: none; padding: 0 0 0 12px; white-space: nowrap; font-size: 13.5px; font-weight: 500; }
.campo-prefixo-esq .campo { border: 0; margin: 0; padding-left: 2px; box-shadow: none; }
.zona-pequena { padding: 18px 14px; }
.verificacao-admin { margin-bottom: 18px; border-color: var(--warn); }
.documento-id { max-width: 100%; max-height: 460px; border-radius: var(--r); border: 1px solid var(--line); margin: 10px 0; display: block; }
.verificacao-admin .rejeitar { display: flex; gap: 6px; flex-wrap: wrap; }
.verificacao-admin .rejeitar .campo { width: auto; min-width: 220px; }

/* ---------- poupança de dados, encomendas e do campo ---------- */
.selo-poupanca { position: absolute; left: 12px; top: 12px; display: inline-flex; gap: 4px; align-items: center; font-size: 12px; font-weight: 600;
  background: rgba(15, 23, 42, .72); color: #fff; padding: 3px 9px; border-radius: 99px; }
.selo-poupanca .ic { width: 12px; height: 12px; }
.ca-badge-topo { top: 10px; bottom: auto; left: 10px; }
.por-unidade { font-size: .6em; font-weight: 600; color: var(--muted); margin-left: 2px; }
@media (max-width: 720px) { .loja-cab { flex-direction: column; gap: 12px; } .avatar-loja { width: 64px; height: 64px; font-size: 22px; } }

/* iPhone/iPad: campos abaixo de 16px fazem o Safari ampliar a página ao tocar
   e ela fica cortada à direita. 16px em ecrãs táteis evita essa ampliação. */
@media (hover: none) and (pointer: coarse) {
  input, select, textarea, .campo, .campo-pequeno { font-size: 16px; }
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
