/* ════════════════════════════════════════════════════════════
   PriceUp Web — identidade própria em dark
   Petróleo quase-preto + OURO disciplinado (a marca das barras),
   teal petróleo para estados, mono uppercase, CANTOS RETOS,
   linhas finas, noise subtil. Zero gradientes decorativos,
   zero ilustrações — só fotos reais dos artigos.
   ════════════════════════════════════════════════════════════ */

:root {
  /* Superfícies — petróleo quase-preto (identidade PriceUp, não Intime) */
  --bg: #04090B;
  --card: #081215;
  --card-2: #0C181C;
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-strong: rgba(255, 255, 255, 0.16);

  /* Texto */
  --text: #F2F4F3;
  --muted: #9AA8A8;
  --faint: #67787A;

  /* Acentos PriceUp (disciplina: OURO = marca/dinheiro/estados-chave;
     teal petróleo = info/verificado; vermelho = alertas) */
  --accent: #D4A857;
  --teal: #3FB9CC;
  --gold: #E8C47F;
  --bad: #FF6B6B;

  --header-h: 60px;
  --container: 1360px;

  /* por-tema */
  --header-bg: rgba(4, 9, 11, 0.80);
  --dot: rgba(255, 255, 255, 0.05);
  --watermark: rgba(255, 255, 255, 0.08);
  --watermark-strong: rgba(255, 255, 255, 0.28);
  --noise-op: 0.035;
  --sb: #1A2A2E; --sb-h: #2C4247;

  /* aliases legados (código antigo) — mapeados para a nova paleta */
  --petrol: var(--accent);
  --petrol-light: var(--accent);
  --petrol-dark: var(--text);
  --gold-light: var(--gold);
  --gold-deep: var(--accent);
  --surface: var(--card);
  --cream: var(--card-2);
  --graphite: var(--text);
  --ok: var(--teal); --ok-bg: rgba(63, 185, 204, 0.09);
  --warn: var(--gold); --warn-bg: rgba(232, 196, 127, 0.10);
  --bad-bg: rgba(255, 107, 107, 0.10);
  --info: var(--teal); --info-bg: rgba(63, 185, 204, 0.09);
  --r-sm: 0; --r-md: 0; --r-lg: 0; --r-xl: 0; --r-full: 0;
  --shadow-1: none; --shadow-2: none; --shadow-3: 0 24px 60px rgba(0, 0, 0, 0.55);

  /* Tipografia — serif editorial para títulos, sans para a marca/UI técnica */
  --font-display: 'Playfair Display', 'Space Grotesk', serif;
  --font-brand: 'Space Grotesk', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* scroll-behavior nativo fica a cargo do Lenis (ver app.js) — ligar os dois
   ao mesmo tempo causa engasgos, por isso NÃO voltar a pôr scroll-behavior
   aqui. prefers-reduced-motion desativa o Lenis e cai de volta ao scroll
   nativo instantâneo do browser (sem smooth-scroll nenhum, de propósito). */
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
/* textura de ruído sobre toda a página */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: var(--noise-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #000; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--sb); }
::-webkit-scrollbar-thumb:hover { background: var(--sb-h); }
@keyframes page-in { from { opacity: 0; } }
body { animation: page-in .35s ease-out; }

/* ── Tipografia ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; line-height: 1.2; color: var(--text); }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 17px; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.serif { font-family: var(--font-display); }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--faint);
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: 'JetBrains Mono', monospace; }
.price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums;
}
.price.gold { color: var(--gold); }

/* ── Layout ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
main { min-height: calc(100vh - var(--header-h)); padding: 26px 0 90px; }

/* ── Header ── */
header.app-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
header.app-header.scrolled { border-bottom-color: var(--hairline); }
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; gap: 26px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--text);
}
.brand img { width: 26px; height: 26px; }
.brand span b { color: var(--accent); font-weight: 700; }
nav.main-nav { display: flex; gap: 2px; margin-left: 8px; }
.nav-link {
  position: relative; padding: 8px 13px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); background: none; border: 0;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 0;
  height: 2px; background: var(--accent);
}
.nav-badge {
  display: none; position: absolute; top: 0; right: 0;
  min-width: 15px; height: 15px; padding: 0 4px;
  background: var(--bad); color: #000;
  font-size: 10px; font-weight: 700; line-height: 15px; text-align: center;
}
.nav-badge.show { display: block; }
.header-spacer { flex: 1; }
.header-user { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 32px; height: 32px;
  background: var(--card-2); border: 1px solid var(--hairline-strong);
  color: var(--accent);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13px;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* hamburger + drawer */
.hamburger { display: none; background: none; border: 0; padding: 8px; }
.hamburger svg { display: block; stroke: var(--text) !important; }
.hamburger svg path { stroke: var(--text); }
.drawer {
  position: fixed; inset: 0 30% 0 0; max-width: 300px; z-index: 70;
  background: var(--card); border-right: 1px solid var(--hairline);
  transform: translateX(-102%); transition: transform .25s ease;
  padding: 22px 16px; display: flex; flex-direction: column; gap: 4px;
}
.drawer.open { transform: translateX(0); }
.drawer-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.6);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer .nav-link { text-align: left; padding: 13px 14px; font-size: 12px; }

/* ── Botões (retos, mono uppercase) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; min-height: 44px;
  border: 1px solid transparent; border-radius: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background .12s, color .12s, border-color .12s, transform .08s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-primary, .btn-gold { background: var(--accent); color: #000; }
.btn-primary:hover, .btn-gold:hover { background: #E2BC6F; }
.btn-outline { background: transparent; border-color: var(--hairline-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: none; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: 11px; }

/* ── Inputs ── */
.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint);
}
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px;
  background: var(--card-2);
  border: 1px solid var(--hairline); border-radius: 0;
  font-size: 14.5px; color: var(--text); outline: none;
  transition: border-color .15s;
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--accent); }
select.input option { background: var(--card-2); }
.input-err { color: var(--bad); font-size: 13px; margin-top: 8px; }

/* ── Cards ── */
.card { background: var(--card); border: 1px solid var(--hairline); border-radius: 0; }
.card-pad { padding: 22px; }

/* ── Badges / pills quadradas (usadas pelo admin — ver pill() em admin.html;
   o site público usa .status-dot abaixo para estado) ── */
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.badge-green { background: rgba(63, 185, 204, 0.12); color: var(--teal); }
.badge-gold { background: rgba(232, 196, 127, 0.14); color: var(--gold); }
.badge-red { background: rgba(255, 107, 107, 0.12); color: var(--bad); }
.badge-gray { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.badge-blue { background: rgba(63, 185, 204, 0.12); color: var(--teal); }

/* ── Estado em etiqueta mono pontilhada — site público ── */
.status-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.status-dot::before { content: '●'; font-size: 8px; line-height: 1; }
.status-dot.s-accent { color: var(--accent); }
.status-dot.s-ok { color: var(--teal); }
.status-dot.s-warn { color: var(--gold); }
.status-dot.s-bad { color: var(--bad); }
.status-dot.s-muted { color: var(--faint); }
.status-dot.pulse::before { animation: dot-pulse 1.4s ease-in-out infinite; }
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  .status-dot.pulse::before { animation: none; }
}
/* etiqueta "ao vivo" sobre imagem — mesmo tratamento do .timer (scrim escuro) */
.live-chip {
  position: absolute; top: 10px; left: 10px;
  background: rgba(3, 4, 6, 0.85); padding: 4px 9px;
}
.live-chip.status-dot { color: var(--accent); }

/* ── Feed ── */
.feed-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.auction-card {
  overflow: hidden; cursor: pointer; position: relative;
  border-top: 3px solid var(--accent);
  transition: border-color .15s, background .15s;
}
.auction-card:hover { background: var(--card-2); border-color: var(--hairline-strong); border-top-color: var(--accent); }
.auction-card .cover { position: relative; aspect-ratio: 4 / 3; background: var(--card-2); overflow: hidden; }
.auction-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.nophoto {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; color: var(--faint);
}
.auction-card .cover .timer {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(3, 4, 6, 0.85); color: #FFFFFF;
  padding: 4px 9px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: 0.06em;
}
.auction-card .body { padding: 14px 16px 16px; }
.auction-card .title {
  font-weight: 600; font-size: 14.5px; color: var(--text);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.auction-card .meta { font-size: 12px; color: var(--faint); margin-top: 3px; }
.auction-card .row-price { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; }
.auction-card .row-price .small { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 8px 15px; border-radius: 0;
  border: 1px solid var(--hairline); background: transparent;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.chip:hover { border-color: var(--hairline-strong); color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #000; }

/* pesquisa */
.searchbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--hairline);
  padding: 4px 6px 4px 16px;
}
.searchbar input { flex: 1; border: 0; outline: none; background: none; font-size: 14.5px; padding: 10px 0; color: var(--text); }
.searchbar input::placeholder { color: var(--faint); }

/* ── Sala ── */
.room { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); gap: 24px; }
.gallery .main { aspect-ratio: 4 / 3; overflow: hidden; background: var(--card-2); border: 1px solid var(--hairline); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery .thumbs img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--hairline); cursor: pointer; opacity: .6; }
.gallery .thumbs img.active { border-color: var(--accent); opacity: 1; }

.bid-panel { position: sticky; top: calc(var(--header-h) + 16px); }

/* indicador AO VIVO: ponto ciano com anel a pulsar */
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; position: relative;
  animation: ring-pulse 1.4s ease-out infinite;
}
@keyframes ring-pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 168, 87, 0.5); }
  100% { box-shadow: 0 0 0 11px rgba(212, 168, 87, 0); }
}
.ping {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: ring-pulse 1.4s ease-out infinite; display: inline-block;
}
.countdown { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 0.04em; }
.countdown.danger { color: var(--bad); }

.bid-history { max-height: 300px; overflow-y: auto; }
.bid-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--hairline); font-size: 13.5px;
}
.bid-row:first-child span:first-child { color: var(--accent); }
.bid-row:last-child { border-bottom: 0; }

/* ── Tabela ── */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; padding: 10px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); border-bottom: 1px solid var(--hairline-strong);
}
.tbl td { padding: 12px; border-bottom: 1px solid var(--hairline); }
.tbl tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* ── Modal (glass) ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.6);
  display: grid; place-items: center; padding: 18px;
}
.modal {
  width: 100%; max-width: 440px;
  background: rgba(10, 12, 16, 0.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-3); padding: 26px;
  animation: modal-in .2s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px); } }

/* ── Toasts ── */
#toasts { position: fixed; right: 18px; top: calc(var(--header-h) + 12px); z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--card); color: var(--text);
  border: 1px solid var(--hairline-strong); border-left: 3px solid var(--accent);
  padding: 12px 18px; font-size: 13.5px; max-width: 340px;
  animation: toast-in .25s ease-out;
}
.toast.ok { border-left-color: var(--accent); }
.toast.bad { border-left-color: var(--bad); }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } }

/* ── Login ── */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-hero {
  position: relative; background: var(--card); border-left: 1px solid var(--hairline);
  display: grid; place-items: center; overflow: hidden;
}
.auth-hero::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent);
}
/* Letras empilhadas (cada uma direita, lê-se de cima para baixo),
   dimensionadas pela altura do ecrã para nunca cortar. */
.auth-letters {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(40px, 8.5vh, 88px); line-height: 1; letter-spacing: 0.14em;
  color: transparent; -webkit-text-stroke: 1.5px var(--watermark-strong);
  user-select: none;
}
.auth-letters b { font-weight: 700; -webkit-text-stroke: 1.5px var(--accent); }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-form > div { width: 100%; max-width: 380px; }

/* ── Estados vazios (sem ilustrações — mono) ── */
.empty { text-align: center; padding: 70px 20px; }
.empty img { display: none; }
.empty::before {
  content: '— · —'; display: block; margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.4em; color: var(--faint);
}
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 14px; }

/* ── Skeleton ── */
.skel { background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%); background-size: 200% 100%; animation: skel 1.3s infinite; }
@keyframes skel { to { background-position: -200% 0; } }

/* ── Tabs ── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--hairline-strong); margin-bottom: 18px; overflow-x: auto; }
.tab {
  background: none; border: 0; padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* linha (meus leilões) */
.mine-row { display: flex; gap: 14px; align-items: center; padding: 14px; margin-bottom: 10px; cursor: pointer; }
.mine-row:hover { background: var(--card-2); }
.mine-row img.th { width: 72px; height: 72px; object-fit: cover; background: var(--card-2); flex: 0 0 auto; }
.mine-row .mid { flex: 1; min-width: 0; }
.mine-row .t { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine-row .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mine-row .act { flex: 0 0 auto; }

/* upload */
.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.upload-grid .ph { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--card-2); border: 1px solid var(--hairline); }
.upload-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
.upload-grid .ph .rm {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border: 0; background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 13px; line-height: 1;
}
.upload-add {
  aspect-ratio: 1; border: 1px dashed var(--hairline-strong); background: none;
  display: grid; place-items: center; color: var(--faint); font-size: 26px;
}
.upload-add:hover { border-color: var(--accent); color: var(--accent); }

/* copiar / pagamento */
.copybox {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--card-2); border: 1px solid var(--hairline);
  padding: 14px 16px; margin: 8px 0;
}
.copybox .v { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 17px; color: var(--gold); }
.copy-btn { background: none; border: 0; color: var(--accent); font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }

.ring { position: relative; width: 38px; height: 38px; flex: 0 0 auto; }
.ring svg { transform: rotate(-90deg); }
.ring .n { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; }

/* ════════════════════════════════════════════════════════════
   LANDING
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity .7s cubic-bezier(.22,.9,.3,1), transform .7s cubic-bezier(.22,.9,.3,1);
    transition-delay: var(--rd, 0s);
  }
  .reveal.in { opacity: 1; transform: none; }
}

.bleed { margin-inline: calc(50% - 50vw); }
.land-sec { padding: 84px 0; }
.land-sec .inner { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.land-sec.alt { background: var(--card); border-block: 1px solid var(--hairline); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.sec-head h2 { font-size: clamp(24px, 3.2vw, 36px); margin-top: 10px; }
.sec-head h2 em { font-style: normal; color: var(--accent); }
.sec-head p { color: var(--muted); margin-top: 10px; }

/* Hero — direto, sem imagem decorativa */
.hero { position: relative; overflow: hidden; padding: 84px 0 76px; }
.hero-bg, .hero-blobs { display: none; }
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 38px 38px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 20%, transparent 100%);
}
.hero-grid {
  position: relative; max-width: var(--container); margin: 0 auto; padding: 0 20px;
  display: block; text-align: left;
}
.hero-visual { display: none; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border: 1px solid var(--hairline);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); background: var(--card);
}
.hero-tag::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); animation: ring-pulse 1.4s ease-out infinite;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 62px); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.02em; margin: 26px 0 18px; max-width: 820px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 17px; color: var(--muted); max-width: 620px; line-height: 1.65; }
.hero-hook {
  display: inline-flex; align-items: baseline; gap: 10px;
  margin-top: 24px; padding: 13px 20px;
  background: var(--card); border: 1px solid var(--hairline); border-top: 3px solid var(--accent);
}
.hero-hook .big { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: var(--text); }
.hero-ctas { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats {
  display: flex; align-items: center; gap: 28px;
  margin-top: 40px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
}
.hero-stat .v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums;
}
.hero-stat .l { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }
.stat-div { width: 1px; height: 38px; background: var(--hairline-strong); }
.hero-badge { display: none; }

/* Trust strip */
.strip { background: var(--card); padding: 22px 0; border-block: 1px solid var(--hairline); }
.strip .inner { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.strip-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--faint); }
.strip-items { display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: center; }
.strip-items span {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.strip-items svg { display: none; }

/* Passos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step .sn {
  width: 54px; height: 54px; margin: 0 auto 14px;
  border: 1px solid var(--accent); color: var(--accent);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700;
  position: relative; z-index: 1; background: var(--bg);
}
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 27px; left: calc(50% + 34px); right: calc(-50% + 34px);
  height: 1px; background: var(--hairline-strong);
}
.step h3 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }

/* Porquê */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card { padding: 24px 22px; border-top: 3px solid var(--accent); }
.why-card:hover { background: var(--card-2); }
.why-card .ic {
  display: inline-block; margin-bottom: 14px; padding: 5px 10px;
  border: 1px solid var(--hairline);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--accent);
}
.why-card h3 { font-size: 15px; margin-bottom: 6px; }
.why-card p { font-size: 13px; color: var(--muted); }

/* CTA escuro */
.cta-dark {
  position: relative; overflow: hidden; padding: 60px 28px; text-align: center;
  background: var(--card); border: 1px solid var(--hairline); border-top: 3px solid var(--accent);
}
.cta-dark::before, .cta-dark::after { display: none; }
.cta-dark h2 { color: var(--text); font-size: clamp(24px, 3.2vw, 38px); }
.cta-dark h2 em { font-style: normal; color: var(--accent); }
.cta-dark p { color: var(--muted); margin: 12px auto 26px; max-width: 480px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq .q { border-bottom: 1px solid var(--hairline); padding: 4px 0; }
.faq .q button {
  width: 100%; background: none; border: 0; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 18px 2px; font-size: 15px; font-weight: 600; color: var(--text);
  font-family: 'Inter', sans-serif;
}
.faq .pm {
  flex: 0 0 auto; width: 26px; height: 26px;
  border: 1px solid var(--hairline-strong);
  display: grid; place-items: center; font-weight: 400; font-size: 16px; color: var(--muted);
  transition: transform .3s;
}
.faq .q.open .pm { transform: rotate(45deg); background: var(--accent); color: #000; border-color: var(--accent); }
.faq .a { max-height: 0; overflow: hidden; transition: max-height .4s ease; color: var(--muted); font-size: 14px; line-height: 1.7; }
.faq .a p { padding: 0 2px 18px; }

/* Footer */
footer.land-foot { background: var(--card); border-top: 1px solid var(--hairline); color: var(--muted); margin-top: 60px; }
.foot-grid {
  max-width: var(--container); margin: 0 auto; padding: 56px 20px 30px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px;
}
.foot-grid h4 {
  color: var(--faint); font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 14px;
}
.foot-grid a { display: block; padding: 5px 0; font-size: 13.5px; color: var(--muted); }
.foot-grid a:hover { color: var(--accent); }
.foot-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--text); margin-bottom: 12px;
}
.foot-brand img { width: 28px; height: 28px; }
.foot-brand b { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid var(--hairline);
  max-width: var(--container); margin: 0 auto; padding: 18px 20px 26px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--faint);
}

/* ── Páginas institucionais ── */
.static-page { max-width: 880px; }
.static-page h1 em { color: var(--accent); font-style: normal; }
.static-body p { margin-bottom: 14px; line-height: 1.75; }
.static-body b { color: var(--text); }

.static-hero { padding: 18px 0 38px; border-bottom: 1px solid var(--hairline); margin-bottom: 38px; }
.static-hero h1 { font-size: clamp(30px, 4.6vw, 50px); margin: 8px 0 0; }
.static-hero .lead { margin-top: 14px; max-width: 560px; color: var(--muted); font-size: 16px; line-height: 1.7; }

.manifesto { display: grid; gap: 0; margin-bottom: 44px; }
.man-row { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--hairline); }
.man-row .mn {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--accent); padding-top: 4px;
}
.man-row h3 { margin-bottom: 8px; font-size: 19px; }
.man-row p { color: var(--muted); line-height: 1.75; max-width: 620px; }

.stat-band {
  display: flex; align-items: center; justify-content: space-around; gap: 18px;
  background: var(--card); border: 1px solid var(--hairline); border-top: 3px solid var(--accent);
  padding: 30px 22px; margin-bottom: 44px;
}
.stat-band .v {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: clamp(24px, 3.4vw, 36px);
  color: var(--gold-deep, var(--accent)); font-variant-numeric: tabular-nums;
}
.stat-band .l { margin-top: 6px; color: var(--muted); font-size: 13px; }
.sb-sep { width: 1px; align-self: stretch; background: var(--hairline-strong); }

.pull-quote {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.35; text-align: center; margin: 0 auto 44px; max-width: 640px; color: var(--text);
}
.pull-quote em { color: var(--accent); }

.static-cta {
  margin-top: 44px; padding: 30px 26px; text-align: center;
  background: var(--card); border: 1px solid var(--hairline);
}
.static-cta p { color: var(--muted); margin-bottom: 16px; }
.static-cta > div { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Linha do tempo (Como funciona) */
.jline { position: relative; margin: 6px 0 40px; padding-left: 56px; }
.jline::before {
  content: ''; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--hairline-strong));
}
.jl-item { position: relative; margin-bottom: 22px; }
.jl-item:last-child { margin-bottom: 0; }
.jl-dot {
  position: absolute; left: -56px; top: 14px; width: 40px; height: 40px;
  display: grid; place-items: center; background: var(--bg, var(--card));
  border: 2px solid var(--accent); border-radius: 50%; color: var(--accent);
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 15px;
}
.jl-card { transition: transform .35s cubic-bezier(.22,.9,.3,1), border-color .35s; }
.jl-item:hover .jl-card { transform: translateX(6px); border-color: var(--accent); }
.jl-card h3 { margin-bottom: 6px; }
.jl-card p { color: var(--muted); line-height: 1.7; }

.price-card { border-top: 3px solid var(--accent); }
.price-line { display: flex; align-items: baseline; gap: 12px; }
.price-line .big {
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  font-size: clamp(30px, 4.4vw, 44px); color: var(--gold-deep, var(--accent));
}
.price-line > span:last-child { color: var(--muted); }

.contact-card { border-top: 3px solid var(--accent); text-align: center; }
.contact-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Assistentes passo-a-passo: casca única (.wiz-shell), ver startWizard() ── */
.wiz-body { min-height: 300px; }
.wstep { animation: wstep-in .45s cubic-bezier(.22,.9,.3,1); }
@keyframes wstep-in { from { opacity: 0; transform: translateX(32px); } }
.wstep.back { animation-name: wstep-back; }
@keyframes wstep-back { from { opacity: 0; transform: translateX(-32px); } }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.wiz-nav .btn:only-child { margin-left: auto; }

.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode-card {
  text-align: left; background: var(--card); border: 1px solid var(--hairline-strong);
  padding: 26px 22px; cursor: pointer; color: var(--text); font: inherit;
  transition: transform .3s cubic-bezier(.22,.9,.3,1), border-color .3s, box-shadow .3s;
}
.mode-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-3, 0 18px 44px rgba(0,0,0,.25)); }
.mode-card .spark {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border: 1px solid var(--hairline-strong); color: var(--muted); font-size: 18px;
}
.mode-card.gold { border-color: var(--accent); }
.mode-card.gold .spark { border-color: var(--accent); color: var(--accent); }
.mode-card h3 { margin-bottom: 8px; }
.mode-card p { color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.mode-card .mode-tag {
  display: inline-block; margin-top: 14px; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--hairline-strong); padding: 5px 10px;
}
.mode-card.gold .mode-tag { color: var(--accent); border-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: none; border: 1px solid var(--hairline-strong); color: var(--muted);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 9px 14px; cursor: pointer;
  transition: all .22s;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #0B1416; }

.dur-custom { display: grid; grid-template-columns: 1fr 140px; gap: 10px; max-width: 320px; }
.dur-live {
  display: flex; align-items: center; gap: 10px; margin-top: 18px;
  border: 1px solid var(--hairline-strong); border-left: 3px solid var(--accent);
  background: var(--card); padding: 13px 16px; font-size: 13.5px; color: var(--muted);
}
.dur-live b { color: var(--gold-deep, var(--accent)); font-family: 'JetBrains Mono', monospace; }

.ai-note {
  border: 1px solid var(--accent); border-left-width: 3px; background: var(--card);
  color: var(--text); font-size: 13.5px; padding: 12px 16px; margin-bottom: 18px;
  animation: wstep-in .45s cubic-bezier(.22,.9,.3,1);
}

/* Mapa do passo Local — pino fixo no centro, como no app */
.loc-bar { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.loc-search { position: relative; flex: 1; z-index: 50; }
.map-wrap {
  position: relative; z-index: 1; height: 340px; overflow: hidden;
  border: 1px solid var(--hairline-strong); background: var(--card);
}
#sell-map { position: absolute; inset: 0; z-index: 1; }
#sell-map .leaflet-control-attribution { font-size: 9px; background: rgba(0,0,0,.45); color: #cbd3d6; }
.map-pin {
  position: absolute; left: 50%; top: 50%; z-index: 20;
  transform: translate(-50%, -100%); pointer-events: none;
  transition: transform .22s cubic-bezier(.22,.9,.3,1);
}
.map-pin .pin-i {
  width: 28px; height: 28px; background: var(--accent);
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45); position: relative;
}
.map-pin .pin-i::after {
  content: ''; position: absolute; inset: 9px; background: #10181B; border-radius: 50%;
}
.map-wrap.lift .map-pin { transform: translate(-50%, -130%); }
.map-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 20;
  background: rgba(4, 9, 11, 0.78); color: #E8E2D5; pointer-events: none;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 14px; white-space: nowrap;
  transition: opacity .5s;
}
.map-hint.off { opacity: 0; }
.loc-resolved { min-height: 22px; margin: 10px 2px 16px; color: var(--muted); }
.loc-resolved b { color: var(--text); }

.loc-or { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--faint); }
.loc-or::before, .loc-or::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }
.loc-or span {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.loc-sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; }
.loc-item {
  display: block; width: 100%; text-align: left; background: var(--card);
  border: 1px solid var(--hairline-strong); border-top: 0; padding: 11px 14px;
  cursor: pointer; color: var(--text); font: inherit; font-size: 13.5px;
}
.loc-item:first-child { border-top: 1px solid var(--accent); }
.loc-item:hover { background: var(--card-2); }
.loc-item b { display: block; }
.loc-item span { color: var(--muted); font-size: 12px; }

.price-wrap { position: relative; }
.price-wrap .price-big {
  font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 700;
  padding-right: 56px; font-variant-numeric: tabular-nums;
}
.price-wrap > span {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--muted);
}

.sum-card { padding: 0; overflow: hidden; }
.sum-head { display: flex; gap: 16px; padding: 18px; border-bottom: 1px solid var(--hairline); }
.sum-head img { width: 92px; height: 92px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--hairline); }
.sum-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }
.sum-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px;
  border-bottom: 1px solid var(--hairline); font-size: 13.5px;
}
.sum-row:last-child { border-bottom: 0; }
.sum-row > span { color: var(--muted); width: 120px; flex-shrink: 0; }
.sum-row > b { flex: 1; color: var(--text); }
.sum-edit {
  background: none; border: 0; color: var(--accent); cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.sum-edit:hover { text-decoration: underline; }

/* Análise com IA — foto com linha de varrimento + passos que acendem */
.ai-scan { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; }
.ai-photo { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--accent); }
.ai-photo img { width: 100%; height: 100%; object-fit: cover; }
.ai-photo .scanline {
  position: absolute; left: 0; right: 0; height: 3px; top: 0;
  background: var(--accent); box-shadow: 0 0 18px 4px rgba(212, 168, 87, 0.55);
  animation: scan 1.8s ease-in-out infinite alternate;
}
@keyframes scan { from { top: 2%; } to { top: 96%; } }
.ai-steps { display: grid; gap: 16px; }
.ai-step { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 14.5px; transition: color .4s; }
.ai-step .ic {
  width: 22px; height: 22px; flex-shrink: 0; border: 2px solid var(--hairline-strong);
  border-radius: 50%; display: grid; place-items: center; transition: all .4s; position: relative;
}
.ai-step.on { color: var(--text); }
.ai-step.on .ic { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.ai-step.done { color: var(--muted); }
.ai-step.done .ic { border-color: var(--accent); background: var(--accent); animation: none; }
.ai-step.done .ic::after { content: '✓'; color: #0B1416; font-size: 12px; font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsivo ── */
@media (max-width: 960px) {
  .mode-grid { grid-template-columns: 1fr; }
  .ai-scan { grid-template-columns: 1fr; }
  .ai-photo { max-width: 260px; margin: 0 auto; }
  .stat-band { flex-direction: column; gap: 22px; text-align: center; }
  .sb-sep { display: none; }
  .man-row { grid-template-columns: 44px 1fr; }
  .room { grid-template-columns: 1fr; }
  .bid-panel { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 18px; }
  .step:not(:last-child)::after { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .jline { padding-left: 46px; }
  .jl-dot { left: -46px; width: 34px; height: 34px; font-size: 13px; }
  .jline::before { left: 16px; }
  .sum-row > span { width: 92px; }
  nav.main-nav { display: none; }
  .hamburger { display: block; }
  h1 { font-size: 24px; }
  .header-inner { gap: 12px; padding: 0 14px; }
  .brand { font-size: 13px; letter-spacing: 0.2em; }
  .container, .land-sec .inner { padding: 0 14px; }
  .hero { padding: 44px 0 52px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .hero-hook { display: flex; flex-wrap: wrap; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-stats { gap: 16px; }
  .hero-stat .v { font-size: 21px; }
  .stat-div { display: none; }
  .room { gap: 16px; }
  .card-pad { padding: 16px; }
  .mine-row { flex-wrap: wrap; }
  .mine-row .act { width: 100%; }
  .mine-row .act .btn { width: 100%; }
  .foot-bottom { flex-direction: column; }
}
@media (max-width: 480px) {
  /* no telemóvel, só o Entrar (Criar conta fica dentro da página) */
  .header-user .btn-primary { display: none; }
  .acct-toggle { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps, .why-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .land-sec { padding: 56px 0; }
  .sum-head { flex-wrap: wrap; }
  .sum-head > :last-child { min-width: 0; }
  .sum-head img { width: 64px; height: 64px; }
}


/* ════════ TEMA CLARO (por defeito; o escuro é opção) ════════ */
:root[data-theme="light"] {
  --bg: #FAFAF7;
  --card: #FFFFFF;
  --card-2: #F2F0EB;
  --hairline: rgba(14, 58, 69, 0.12);
  --hairline-strong: rgba(14, 58, 69, 0.22);
  --text: #15232A;
  --muted: #5C6B6E;
  --faint: #8A9699;
  --accent: #A6761D;
  --teal: #16768A;
  --gold: #7A5410;
  --bad: #C0392B;
  --ok-bg: rgba(22, 118, 138, 0.08);
  --warn-bg: rgba(184, 134, 43, 0.10);
  --bad-bg: rgba(192, 57, 43, 0.08);
  --info-bg: rgba(22, 118, 138, 0.08);
  --header-bg: rgba(250, 250, 247, 0.85);
  --dot: rgba(14, 58, 69, 0.10);
  --watermark: rgba(14, 58, 69, 0.10);
  --watermark-strong: rgba(14, 58, 69, 0.30);
  --noise-op: 0.02;
  --sb: #D6D2C8; --sb-h: #B8B2A4;
  --shadow-3: 0 24px 60px rgba(14, 58, 69, 0.18);
}
:root[data-theme="light"] .btn-primary,
:root[data-theme="light"] .btn-gold { background: var(--accent); color: #FFFFFF; }
:root[data-theme="light"] .btn-primary:hover,
:root[data-theme="light"] .btn-gold:hover { background: #9A6F1D; }
:root[data-theme="light"] ::selection { background: var(--accent); color: #fff; }
:root[data-theme="light"] .faq .q.open .pm { color: #fff; }
:root[data-theme="light"] .chip.active { color: #fff; }
:root[data-theme="light"] .nav-badge { color: #fff; }
:root[data-theme="light"] .modal { background: rgba(255, 255, 255, 0.72); }

/* ════════════════════════════════════════════════════════════
   Contas empresariais — escolha de tipo, selos e cartões
   ════════════════════════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .grid-2 { grid-template-columns: 1fr; } }

/* Escolha Particular / Empresa */
.acct-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acct-opt {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 12px 14px; background: var(--card-2);
  border: 1px solid var(--hairline); color: var(--text);
  cursor: pointer; text-align: left; transition: border-color .15s, background .15s;
}
.acct-opt b { font-size: 14px; }
.acct-opt span { font-size: 11.5px; color: var(--muted); }
.acct-opt:hover { border-color: var(--hairline-strong); }
.acct-opt.active { border-color: var(--accent); background: rgba(212, 168, 87, 0.08); }
.acct-opt.active b { color: var(--gold); }

.biz-note {
  margin: 4px 0 14px; padding: 10px 12px; line-height: 1.5;
  background: var(--warn-bg); border-left: 2px solid var(--warn);
}
.alert-box { padding: 11px 14px; margin-bottom: 14px; line-height: 1.5; font-size: 13px; }
.alert-box.bad { background: var(--bad-bg); border-left: 2px solid var(--bad); color: var(--text); }

/* Selo de estado da empresa */
/* Ficha da empresa no perfil */
.biz-card {
  margin-top: 14px; padding: 4px 0; border-top: 1px solid var(--hairline);
}
.biz-card .row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--hairline); font-size: 13.5px;
}
.biz-card .row:last-child { border-bottom: 0; }

.biz-upsell {
  margin-top: 16px; padding: 14px; background: var(--card-2);
  border: 1px solid var(--hairline);
}
.biz-upsell b { font-size: 14px; }

.backlink { color: var(--muted); font-size: 13px; text-decoration: none; }
.backlink:hover { color: var(--text); }

/* ════════════════════════════════════════════════════════════
   Assistente de duas colunas (startWizard) — onboarding, empresa
   ════════════════════════════════════════════════════════════ */
.wiz-shell {
  display: grid; grid-template-columns: 0.82fr 1.18fr;
  border: 1px solid var(--hairline); background: var(--card);
  min-height: min(640px, calc(100vh - var(--header-h) - 110px));
  margin: 4px 0 24px;
}
.wiz-aside {
  position: relative; overflow: hidden;
  padding: 44px 42px; display: flex; flex-direction: column;
  background: var(--card-2); border-right: 1px solid var(--hairline);
}
.wiz-aside .backlink { margin-bottom: 28px; }
.wiz-aside .eyebrow { margin-bottom: 10px; }
.wiz-aside h1 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; margin: 0; }
.wiz-sub { color: var(--muted); margin-top: 14px; line-height: 1.6; font-size: 14px; max-width: 32ch; }
.wiz-steplist { margin-top: 38px; display: flex; flex-direction: column; position: relative; z-index: 1; }
.wiz-steplist .s { display: flex; gap: 14px; align-items: center; padding: 10px 0; color: var(--faint); transition: color .25s; }
.wiz-steplist .s .n {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600; border: 1px solid var(--hairline-strong);
  color: inherit; transition: all .25s;
}
.wiz-steplist .s .t { font-size: 14px; font-weight: 500; }
.wiz-steplist .s.active { color: var(--text); }
.wiz-steplist .s.active .n { border-color: var(--accent); color: var(--accent); }
.wiz-steplist .s.done { color: var(--muted); }
.wiz-steplist .s.done .n { background: var(--accent); border-color: var(--accent); color: #04090B; }
.wiz-aside-brand {
  position: absolute; right: -8px; bottom: -34px; line-height: .8;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 160px; letter-spacing: -6px; color: var(--watermark);
  pointer-events: none; user-select: none;
}
.wiz-aside-brand b { -webkit-text-stroke: 2px var(--accent); color: transparent; }
.wiz-main { display: flex; align-items: center; padding: 44px 52px; }
.wiz-main-inner { width: 100%; max-width: 520px; margin: 0 auto; }
.wiz-main .wiz-body { min-height: 0; }

@media (max-width: 860px) {
  .wiz-shell { grid-template-columns: 1fr; min-height: 0; }
  .wiz-aside { padding: 22px 18px; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .wiz-aside h1 { font-size: 23px; }
  .wiz-sub { display: none; }
  .wiz-steplist { margin-top: 18px; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .wiz-steplist .s { padding: 4px 0; }
  .wiz-steplist .s:not(.active) .t { display: none; }
  .wiz-aside-brand { display: none; }
  .wiz-main { padding: 22px 18px; }
}

/* Capa (montra da empresa) */
.bp-cover {
  height: 150px; background: var(--card-2); background-size: cover; background-position: center;
  border: 1px solid var(--hairline); display: grid; place-items: center;
}

/* Menu de secções da montra (hub) */
.biz-sec-list { display: flex; flex-direction: column; gap: 10px; }
.biz-sec-row {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  padding: 16px 18px; background: var(--card); border: 1px solid var(--hairline);
  color: var(--text); transition: border-color .15s, transform .15s;
}
.biz-sec-row:hover { border-color: var(--accent); transform: translateX(2px); }
.biz-sec-row .ic {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--card-2); color: var(--gold); font-size: 17px; border: 1px solid var(--hairline);
}
.biz-sec-row .tx { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.biz-sec-row .tx b { font-size: 15px; }
.biz-sec-row .st { flex: none; }
.biz-sec-row .chev { flex: none; color: var(--faint); font-size: 22px; line-height: 1; }

/* ── Notificações (sino + painel) ── */
.notif-bell { position: relative; }
.notif-badge {
  position: absolute; top: 1px; right: 1px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--bad); color: #000;
  font-size: 10px; font-weight: 800; line-height: 16px; text-align: center;
  border-radius: 999px; pointer-events: none;
}
.notif-item {
  display: flex; gap: 12px; width: 100%; text-align: left;
  padding: 14px 16px; margin-bottom: 10px;
  background: var(--card); border: 1px solid var(--hairline);
  color: var(--text); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.notif-item:hover:not([disabled]) { border-color: var(--hairline-strong); }
.notif-item[disabled] { cursor: default; }
.notif-item .notif-main { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.notif-item .notif-main b { font-size: 14px; }
.notif-item .notif-main .small { line-height: 1.4; }
.notif-dot {
  flex: 0 0 auto; width: 9px; height: 9px; margin-top: 6px;
  border-radius: 50%; background: transparent;
}
.notif-item.unread { background: var(--card-2); }
.notif-item.unread .notif-dot { background: var(--gold); }

/* ── Home: dois tipos de conta ── */
.account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 720px) { .account-grid { grid-template-columns: 1fr; } }
.account-card {
  background: var(--card); border: 1px solid var(--hairline);
  padding: 28px 26px; display: flex; flex-direction: column;
}
.account-card.featured { border-color: var(--hairline-strong); }
.account-card h3 { margin: 6px 0 10px; font-size: 22px; }
.account-card h3 em { color: var(--gold-deep); font-style: normal; }
.account-card .small { color: var(--muted); line-height: 1.5; }
.account-perks {
  list-style: none; padding: 0; margin: 18px 0 24px;
  display: flex; flex-direction: column; gap: 11px; flex: 1;
}
.account-perks li { position: relative; padding-left: 22px; line-height: 1.4; font-size: 14px; }
.account-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.account-card .btn { align-self: flex-start; }

/* ── Seletor de planos de subscrição ── */
.plan-pick { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.plan-opt {
  display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left;
  padding: 14px 16px; background: var(--card); border: 1px solid var(--hairline);
  color: var(--text); cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.plan-opt:hover { border-color: var(--hairline-strong); }
.plan-opt.active { border-color: var(--gold); background: var(--card-2); }
.plan-opt-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-opt-top b { font-size: 15px; }
.plan-reco {
  align-self: flex-start; margin-top: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #000; background: var(--gold); padding: 2px 7px;
}
.plan-perks { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.plan-perks li { position: relative; padding-left: 20px; line-height: 1.4; font-size: 13px; color: var(--muted); }
.plan-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }

/* ── Destaque na montra (vantagem de plano) ── */
.featured-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--gold); color: #000;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; padding: 3px 8px; text-transform: uppercase;
}
