/* =========================================================
   Guia Comercial — tema principal
   A cor primária vem de --primary (definida no painel admin)
   ========================================================= */
:root {
  --primary: #6d28d9;
  --accent: #ff7a00;
  --primary-600: color-mix(in srgb, var(--primary) 88%, #000);
  --primary-50: color-mix(in srgb, var(--primary) 9%, #fff);
  --primary-100: color-mix(in srgb, var(--primary) 18%, #fff);
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e7eaf0;
  --bg: #f5f6fa;
  --card: #fff;
  --green: #16a34a;
  --wa: #25d366;
  --red: #dc2626;
  --amber: #d97706;
  --blue: #2563eb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, .14);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.text-red { color: var(--red) !important; }
.text-green { color: var(--green) !important; }
.text-primary { color: var(--primary) !important; }
.center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 40px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.hidden { display: none !important; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid transparent; background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; transition: .18s; white-space: nowrap; font-size: 14.5px; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-primary:hover { background: var(--primary-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { border-color: var(--line); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: var(--primary-50); color: var(--primary-600); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: #eef0f4; }
.btn-danger { background: #fee2e2; color: var(--red); }
.btn-success { background: var(--green); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .35); }
.btn-wa:hover { background: #1fb457; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn-xs { padding: 5px 9px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 15px 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-gray { background: #eef0f4; color: #475569; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-primary { background: var(--primary); color: #fff; }
.badge-gold { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }

/* ---------- Topbar ---------- */
.topbar { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar-in { display: flex; align-items: center; gap: 18px; height: 70px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; flex-shrink: 0; }
.logo img { max-height: 42px; width: auto; }
.logo-pin { width: 36px; height: 36px; border-radius: 11px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 18px; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 40%, transparent); }
.logo-light { color: #fff; }
.top-search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 4px 4px 4px 14px; }
.top-search i { color: var(--muted); }
.top-search input { flex: 1; border: 0; background: none; outline: none; padding: 7px 0; min-width: 0; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top-nav > a:not(.btn) { padding: 9px 11px; border-radius: 10px; font-weight: 600; color: var(--ink-2); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.top-nav > a:not(.btn):hover { background: var(--bg); color: var(--ink); }
.icon-link { position: relative; font-size: 19px !important; }
.dot { position: absolute; top: 3px; right: 3px; background: var(--red); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-100); color: var(--primary-600); display: inline-grid; place-items: center; font-weight: 800; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 36px; height: 36px; font-size: 13px; }
.avatar.lg { width: 88px; height: 88px; font-size: 28px; }
.avatar-btn { display: flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; padding: 2px; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); min-width: 230px; padding: 6px; display: none; z-index: 60; }
.dropdown.open .dropdown-menu { display: block; animation: pop .15s ease-out; }
.dropdown-menu a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.dropdown-menu a:hover { background: var(--bg); }
.dd-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
.dd-head small { color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Toast ---------- */
.toast { position: fixed; right: 20px; top: 86px; z-index: 100; background: var(--ink); color: #fff; padding: 13px 44px 13px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); max-width: 380px; font-weight: 500; animation: pop .2s; }
.toast + .toast { top: 150px; }
.toast-success { background: #15803d; }
.toast-error { background: #b91c1c; }
.toast-info { background: #1e40af; }
.toast button { position: absolute; right: 10px; top: 8px; background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; opacity: .7; }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--primary) 45%, transparent), transparent 60%), linear-gradient(135deg, #0b1220 0%, #111a2e 55%, #1a1f35 100%); color: #fff; padding: 64px 0 90px; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000 30%, transparent); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; max-width: 760px; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead { font-size: 18px; color: #cbd5e1; max-width: 620px; }
.hero-search { margin-top: 28px; background: #fff; border-radius: 20px; padding: 8px; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); max-width: 980px; color: var(--ink); }
.hs-field { display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 14px; }
.hs-field + .hs-field { border-left: 1px solid var(--line); border-radius: 0; }
.hs-field i { color: var(--primary); font-size: 18px; }
.hs-field div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hs-field label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hs-field input, .hs-field select { border: 0; outline: 0; background: none; padding: 2px 0; font-weight: 600; width: 100%; appearance: none; }
.hero-search .btn { padding: 0 28px; border-radius: 14px; font-size: 16px; }
.hero-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #94a3b8; font-size: 14px; }
.hero-tags a { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: #e2e8f0; border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.hero-tags a:hover { background: rgba(255, 255, 255, .16); }
.hero-stats { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 26px; font-weight: 800; }
.hero-stats span { color: #94a3b8; font-size: 13px; }

/* ---------- Seções ---------- */
.section { padding: 46px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: 26px; font-weight: 800; margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.section-head a { color: var(--primary); font-weight: 700; font-size: 14px; white-space: nowrap; }
.eyebrow { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }

/* Categorias */
.cat-strip { margin-top: -54px; position: relative; z-index: 2; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.cat-item { background: #fff; border-radius: var(--radius); padding: 18px 10px 14px; text-align: center; box-shadow: var(--shadow); border: 1px solid transparent; transition: .18s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cat-item:hover { border-color: var(--primary); transform: translateY(-3px); }
.cat-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--c, var(--primary)) 12%, #fff); color: var(--c, var(--primary)); }
.cat-item strong { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.cat-item small { color: var(--muted); font-size: 12px; }

/* ---------- Cards de anúncio ---------- */
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.ad-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; display: flex; flex-direction: column; position: relative; border: 1px solid transparent; }
.ad-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ad-card.is-featured { border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.ad-thumb { position: relative; aspect-ratio: 4/3; background: #eef0f4; overflow: hidden; }
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ad-card:hover .ad-thumb img { transform: scale(1.05); }
.ad-flags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.fav-btn { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); display: grid; place-items: center; cursor: pointer; font-size: 16px; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); transition: .15s; z-index: 2; }
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.on { color: #e11d48; }
.ad-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ad-cat { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; }
.ad-title { font-weight: 700; font-size: 15.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-price { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.ad-meta { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 12.5px; }
.ad-meta span { display: inline-flex; gap: 4px; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stars { color: #f59e0b; display: inline-flex; gap: 1px; font-size: 13px; }
.rating-line { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }

/* Carrossel de destaque (topo da home) */
.featured-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
.featured-rail > * { scroll-snap-align: start; }
.spot-card { position: relative; border-radius: 22px; overflow: hidden; min-height: 300px; color: #fff; display: flex; align-items: end; box-shadow: var(--shadow-lg); }
.spot-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.spot-card:hover img { transform: scale(1.05); }
.spot-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .82)); }
.spot-in { position: relative; z-index: 1; padding: 20px; width: 100%; }
.spot-in h3 { font-size: 20px; margin: 8px 0 4px; }
.spot-in .flex { font-size: 13px; color: #e2e8f0; }

/* Banner anunciar */
.cta-band { background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--primary) 60%, #7c3aed)); border-radius: 26px; color: #fff; padding: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; overflow: hidden; position: relative; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.cta-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cta-band li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.cta-band li i { background: rgba(255, 255, 255, .2); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.cta-band .btn { background: #fff; color: var(--ink); }
.cta-band .btn.btn-ghost { background: transparent; color: #fff; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-item { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.how-item .num { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 12px; }

.city-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; transition: .15s; cursor: pointer; }
.chip:hover, .chip.active { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.chip small { color: var(--muted); font-weight: 500; }
.chip .x { margin-left: 2px; opacity: .6; }

/* ---------- Busca ---------- */
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 26px 0 50px; align-items: start; }
.filters { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; position: sticky; top: 90px; }
.filters h3 { font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.filter-group { padding: 14px 0; border-top: 1px solid var(--line); }
.filter-group > label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.filter-group .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg label { flex: 1; text-align: center; cursor: pointer; }
.seg input { display: none; }
.seg span { display: block; padding: 7px 8px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.results-head h1 { font-size: 22px; margin: 0; }
.filters-toggle { display: none; }
.list-view .ad-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* ---------- Formulários ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.field small, .help { color: var(--muted); font-size: 12.5px; }
.input, .select, .textarea, .filters input, .filters select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; outline: none; transition: .15s; font-size: 14.5px; }
.input:focus, .select:focus, .textarea:focus, .filters input:focus, .filters select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); }
.textarea { min-height: 130px; resize: vertical; }
.select, .filters select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.input-group { display: flex; }
.input-group .addon { padding: 11px 12px; background: var(--bg); border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; color: var(--muted); font-weight: 600; }
.input-group .input { border-radius: 0 12px 12px 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.switch input { display: none; }
.switch span { width: 44px; height: 24px; border-radius: 99px; background: #cbd5e1; position: relative; transition: .2s; flex-shrink: 0; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { left: 23px; }

.type-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type-cards label { cursor: pointer; }
.type-cards input { display: none; }
.type-cards .tc { border: 2px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; transition: .15s; height: 100%; }
.type-cards .tc i { font-size: 22px; color: var(--primary); }
.type-cards .tc small { color: var(--muted); font-size: 12px; }
.type-cards input:checked + .tc { border-color: var(--primary); background: var(--primary-50); }

.upload-zone { border: 2px dashed var(--line); border-radius: 16px; padding: 26px; text-align: center; cursor: pointer; transition: .15s; background: #fafbfc; display: block; }
.upload-zone:hover, .upload-zone.drag { border-color: var(--primary); background: var(--primary-50); }
.upload-zone i { font-size: 32px; color: var(--primary); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #eef0f4; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .rm { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; display: grid; place-items: center; }
.thumb .cover-tag { position: absolute; left: 6px; bottom: 6px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }

/* ---------- Cards genéricos ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card + .card { margin-top: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 17px; }
.card.p0 { padding: 0; overflow: hidden; }

/* ---------- Página do anúncio ---------- */
.breadcrumb { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding: 18px 0 14px; }
.breadcrumb a:hover { color: var(--primary); }
.ad-page { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; padding-bottom: 50px; }
.gallery { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.gallery-main { position: relative; aspect-ratio: 16/10; background: #0f172a; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); cursor: pointer; font-size: 18px; display: grid; place-items: center; }
.gal-nav.prev { left: 12px; } .gal-nav.next { right: 12px; }
.gal-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .6); color: #fff; padding: 3px 10px; border-radius: 99px; font-size: 12px; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.gallery-thumbs img { width: 76px; height: 58px; object-fit: cover; border-radius: 10px; cursor: pointer; opacity: .55; border: 2px solid transparent; flex-shrink: 0; }
.gallery-thumbs img.on { opacity: 1; border-color: var(--primary); }
.ad-head h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin: 10px 0 6px; }
.ad-head .price { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.info-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.info-list div { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.info-list small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.info-list b { font-size: 14.5px; }
.desc { white-space: normal; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.contact-box { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.seller { display: flex; gap: 12px; align-items: center; }
.seller small { color: var(--muted); display: block; }
.contact-actions { display: grid; gap: 10px; }
.trust { display: flex; gap: 10px; font-size: 13px; color: var(--muted); align-items: flex-start; background: #fff; box-shadow: var(--shadow); padding: 12px; border-radius: 12px; }
.review { padding: 16px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; }
.review-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.review .reply { margin-top: 10px; background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 14px; border-left: 3px solid var(--primary); }
.rating-big { display: flex; gap: 18px; align-items: center; }
.rating-big .num { font-size: 44px; font-weight: 800; line-height: 1; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 28px; color: #d1d5db; cursor: pointer; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f59e0b; }
.map-embed { border: 0; width: 100%; height: 240px; border-radius: 14px; }

/* Perfil público */
.profile-hero { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 26px; display: flex; gap: 20px; align-items: center; margin: 22px 0; flex-wrap: wrap; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(3px); }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 20px; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; padding: 24px; animation: pop .2s; position: relative; }
.modal-close { position: absolute; right: 14px; top: 12px; border: 0; background: var(--bg); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 32px; }
.auth-card h1 { font-size: 25px; font-weight: 800; }
.auth-card .field + .field { margin-top: 14px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Planos ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.plan { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; gap: 12px; border: 2px solid transparent; position: relative; }
.plan.hot { border-color: var(--primary); }
.plan .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.plan h3 { font-size: 19px; margin: 0; }
.plan .pval { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.plan .pval small { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.plan li { display: flex; gap: 8px; }
.plan li i { color: var(--green); }
.plan .btn { margin-top: auto; }
label.plan { cursor: pointer; }
label.plan input { position: absolute; opacity: 0; }
label.plan:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }

/* ---------- Pagamento ---------- */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.qr-box #qrcode { background: #fff; padding: 12px; border-radius: 14px; border: 1px solid var(--line); }
.copy-field { display: flex; gap: 8px; width: 100%; }
.copy-field input { flex: 1; font-family: monospace; font-size: 12px; }
.summary-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary-line:last-child { border: 0; font-weight: 800; font-size: 18px; }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty i { font-size: 44px; color: #cbd5e1; display: block; margin-bottom: 8px; }
.empty h3 { color: var(--ink); }

/* ---------- Paginação ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); font-weight: 700; padding: 0 10px; }
.pagination .active { background: var(--primary); color: #fff; }

/* ---------- Footer ---------- */
.footer { background: #0b1220; color: #cbd5e1; padding: 50px 0 0; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-grid a:not(.logo) { display: block; padding: 4px 0; font-size: 14px; color: #94a3b8; }
.footer-grid a:not(.logo):hover { color: #fff; }
.footer .muted { color: #94a3b8; margin-top: 14px; font-size: 14px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid !important; place-items: center; font-size: 17px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 36px; padding: 18px 20px; font-size: 13px; color: #64748b; }
.bottom-nav { display: none; }

/* ---------- Dashboard ---------- */
body.dash { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: #0b1220; color: #cbd5e1; position: fixed; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; padding: 20px 14px; z-index: 80; transition: transform .25s; overflow-y: auto; }
.sidebar .logo { color: #fff; padding: 0 8px 18px; font-size: 19px; }
.sidebar-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #64748b; font-weight: 700; padding: 10px 12px 8px; }
.sidebar nav, .sidebar-foot { display: flex; flex-direction: column; gap: 2px; }
.sidebar a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; font-size: 14px; font-weight: 600; color: #94a3b8; transition: .15s; }
.sidebar a i { font-size: 17px; }
.sidebar a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar a.active { background: var(--primary); color: #fff; }
.sidebar .pill { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 7px; }
.sidebar a.active .pill { background: #fff; color: var(--primary); }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.is-admin .sidebar { background: #111827; }
.dash-main { flex: 1; margin-left: 260px; min-width: 0; }
.dash-top { height: 68px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 26px; position: sticky; top: 0; z-index: 40; }
.dash-title { font-size: 19px; margin: 0; font-weight: 800; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-top-r { display: flex; gap: 12px; align-items: center; }
.menu-toggle { display: none; }
.dash-content { padding: 26px 30px; width: 100%; }
.sidebar-backdrop { display: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; gap: 14px; align-items: center; }
.stat .si { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.stat b { font-size: 24px; font-weight: 800; display: block; line-height: 1.1; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13px; }
.si-orange { background: var(--primary-50); color: var(--primary); }
.si-green { background: #dcfce7; color: #16a34a; }
.si-blue { background: #dbeafe; color: #2563eb; }
.si-purple { background: #ede9fe; color: #7c3aed; }
.si-pink { background: #fce7f3; color: #db2777; }
.si-amber { background: #fef3c7; color: #d97706; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.grid-2e { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 14px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fcfcfd; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.mini-ad { display: flex; gap: 12px; align-items: center; min-width: 220px; }
.mini-ad img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; background: #eef0f4; flex-shrink: 0; }
.mini-ad strong { display: block; font-size: 14px; line-height: 1.3; }
.mini-ad small { color: var(--muted); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 160px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); background: #fff; border: 1px solid var(--line); }
.tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs a b { font-weight: 700; opacity: .7; margin-left: 4px; }
.lead-item { padding: 16px 18px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.lead-item.novo { background: var(--primary-50); }
.lead-item:last-child { border: 0; }
.lead-msg { margin: 8px 0; white-space: pre-line; color: var(--ink-2); }
.notif { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.notif.unread { background: var(--primary-50); }
.alert { padding: 14px 16px; border-radius: 12px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 16px; }
.alert i { font-size: 18px; }
.alert-info { background: #eff6ff; color: #1e40af; }
.alert-warn { background: #fffbeb; color: #92400e; }
.alert-ok { background: #f0fdf4; color: #166534; }
.alert-danger { background: #fef2f2; color: #991b1b; }
.chart-box { position: relative; height: 290px; }
.bar-list { display: grid; gap: 10px; }
.bar-list .bl-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13.5px; }
.bar-list .bl-bar { grid-column: 1 / -1; height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bar-list .bl-bar span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .hide-md { display: none !important; }
  .ad-page { grid-template-columns: 1fr; }
  .contact-box { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(340px, 90vw); z-index: 150; border-radius: 0; overflow-y: auto; transform: translateX(100%); transition: transform .25s; }
  body.filters-open .filters { transform: none; box-shadow: var(--shadow-lg); }
  body.filters-open::after { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 140; }
  .filters-toggle { display: inline-flex; }
  .hero-search { grid-template-columns: 1fr; }
  .hs-field + .hs-field { border-left: 0; border-top: 1px solid var(--line); }
  .hero-search .btn { padding: 14px; }
  .cta-band { grid-template-columns: 1fr; padding: 28px; }
  .how-grid { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); }
  body.menu-open .sidebar { transform: none; }
  body.menu-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 70; }
  .dash-main { margin-left: 0; }
  .menu-toggle { display: inline-grid; }
  .dash-content { padding: 16px; }
  .dash-top { padding: 0 16px; }
  .grid-2, .grid-2e, .pay-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body.site { padding-bottom: 70px; }
  .hide-sm { display: none !important; }
  .top-search { display: none; }
  .topbar-in { height: 60px; gap: 10px; }
  .btn-anunciar span { display: none; }
  .btn-anunciar { padding: 10px 12px; }
  .logo { font-size: 18px; }
  .hero { padding: 40px 0 80px; }
  .hero p.lead { font-size: 16px; }
  .hero-stats { gap: 20px; }
  .form-grid, .info-list { grid-template-columns: 1fr; }
  .type-cards { grid-template-columns: 1fr; }
  .ad-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ad-body { padding: 10px 12px 12px; }
  .ad-title { font-size: 14px; }
  .ad-price { font-size: 16px; }
  .ad-meta { flex-direction: column; gap: 2px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-item { padding: 12px 6px; }
  .cat-ic { width: 44px; height: 44px; font-size: 20px; }
  .section { padding: 32px 0; }
  .section-head h2 { font-size: 21px; }
  .footer-grid { grid-template-columns: 1fr; }
  .featured-rail { grid-auto-columns: 85%; }
  .card { padding: 16px; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 90; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; align-items: center; }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--muted); font-weight: 600; gap: 1px; flex: 1; }
  .bottom-nav a i { font-size: 20px; }
  .bottom-nav .bn-main { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px; background: var(--primary); color: #fff; justify-content: center; margin-top: -24px; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 45%, transparent); }
  .bottom-nav .bn-main i { font-size: 24px; }
  .toast { left: 12px; right: 12px; top: 70px; max-width: none; }
  .table .hide-sm-cell { display: none; }
}

/* =========================================================
   v2 — cabeçalho com cidade, barra de categorias e hero claro
   ========================================================= */
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 38%, transparent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.topbar { background: rgba(255, 255, 255, .96); }
.topbar-in { height: 84px; gap: 22px; }
.top-search { max-width: 380px; background: #fff; padding: 0; overflow: hidden; border-radius: 12px; gap: 0; }
.loc-pick { display: flex; align-items: center; gap: 7px; padding: 6px 10px 6px 12px; background: #fafaff; border: 0; border-right: 1px solid var(--line); cursor: pointer; text-align: left; height: 46px; flex-shrink: 0; max-width: 180px; }
.loc-pick > i:first-child { color: var(--primary); font-size: 16px; }
.loc-pick span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.loc-pick small { font-size: 10.5px; color: var(--muted); }
.loc-pick b { font-size: 12.5px; color: var(--primary); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-search input { padding: 0 12px; height: 46px; font-size: 14px; }
.ts-btn { width: 56px; height: 46px; border: 0; background: var(--primary); color: #fff; font-size: 18px; cursor: pointer; flex-shrink: 0; }
.ts-btn:hover { background: var(--primary-600); }
.top-nav { gap: 2px; }
.top-nav .nav-strong, .avatar-btn .nav-strong { color: var(--primary); font-weight: 700; }
.top-nav > a.nav-strong:hover { background: var(--primary-50); color: var(--primary); }
.top-nav .avatar.sm { width: 32px; height: 32px; background: var(--primary); color: #fff; }
.avatar-btn { gap: 8px; padding: 4px 8px; border-radius: 12px; }
.avatar-btn:hover { background: var(--primary-50); }

.catbar { background: #f8f8fc; border-bottom: 1px solid var(--line); }
.catbar-in { display: flex; align-items: center; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.cb-track { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; padding: 2px; }
.cb-track::-webkit-scrollbar { display: none; }
.cb-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 10px 16px 10px 10px; min-width: 160px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); font-weight: 700; font-size: 14px; line-height: 1.2; border: 1px solid transparent; transition: .15s; flex-shrink: 0; }
.cb-item:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); transform: translateY(-2px); }
.cb-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); flex-shrink: 0; }
.cb-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--primary); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow); }

.hero2 { position: relative; overflow: hidden; background: linear-gradient(180deg, #f5f0ff 0%, #faf7ff 55%, var(--bg) 100%); padding: 36px 0 130px; }
.hero2::before { content: ''; position: absolute; left: 18px; top: 70px; width: 70px; height: 60px; background-image: radial-gradient(color-mix(in srgb, var(--primary) 35%, #fff) 2.5px, transparent 3px); background-size: 22px 22px; }
.hero2 .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: center; }
.h2-text { padding: 40px 0; }
.h2-eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; display: block; }
.hero2 h1 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; color: #1e1b4b; margin: 0 0 22px; }
.hero2 h1 em { font-style: normal; color: var(--primary); position: relative; white-space: nowrap; }
.hero2 h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 12px; background: no-repeat center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M3 9 Q150 -2 297 7' stroke='%23ffb020' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.hero2 .h2-sub { font-size: 20px; color: #5b6475; max-width: 560px; line-height: 1.55; margin-bottom: 30px; }
.h2-cta { position: relative; display: inline-flex; align-items: center; gap: 16px; background: var(--primary); color: #fff; padding: 20px 30px; border-radius: 18px; font-size: 20px; font-weight: 700; box-shadow: 0 16px 34px color-mix(in srgb, var(--primary) 38%, transparent); transition: .2s; border: 0; cursor: pointer; font-family: inherit; }
.h2-cta:hover { transform: translateY(-2px); background: var(--primary-600); }
.h2-cta .bi-geo-alt-fill { font-size: 24px; }
.h2-cta .bi-arrow-right { margin-left: 26px; font-size: 22px; }
.h2-cta::after { content: ''; position: absolute; right: -40px; top: -22px; width: 34px; height: 34px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg stroke='%23ffb020' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M6 22 L10 8'/%3E%3Cpath d='M16 28 L30 18'/%3E%3Cpath d='M18 36 L34 36'/%3E%3C/g%3E%3C/svg%3E"); }
.h2-mini { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; color: #5b6475; font-size: 14px; }
.h2-mini b { color: #1e1b4b; font-size: 20px; margin-right: 4px; }

.hero-art { position: relative; height: 560px; }
.ha-scene { position: absolute; inset: 20px -60px 10px 0; border-radius: 40px; overflow: hidden; -webkit-mask-image: radial-gradient(ellipse 72% 70% at 55% 52%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 55% 52%, #000 55%, transparent 100%); }
.ha-scene img { width: 100%; height: 100%; object-fit: cover; }
.ha-orbit { position: absolute; inset: 40px -20px 30px 10px; pointer-events: none; }
.fcard { position: absolute; width: 220px; background: rgba(255, 255, 255, .96); border-radius: 20px; padding: 12px; box-shadow: 0 18px 40px rgba(30, 27, 75, .16); animation: flutua 6s ease-in-out infinite; transition: transform .2s; z-index: 2; }
.fcard:hover { transform: translateY(-6px) scale(1.02); animation-play-state: paused; }
.fcard-h { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; padding: 2px 4px 10px; }
.fcard-h .cb-ic { width: 40px; height: 40px; border-radius: 50%; }
.fcard-img { height: 118px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, #fff), color-mix(in srgb, var(--c) 42%, #fff)); display: grid; place-items: center; }
.fcard-img img { width: 100%; height: 100%; object-fit: cover; }
.fcard-img > i { font-size: 54px; color: var(--c); opacity: .85; }
.fcard small { display: block; color: var(--muted); font-size: 12px; padding: 8px 4px 0; }
.fc-1 { left: 8%; top: 40px; }
.fc-2 { right: -2%; top: 70px; animation-delay: -1.5s; }
.fc-3 { left: 8%; bottom: 40px; animation-delay: -3s; }
.fc-4 { right: 4%; bottom: 20px; animation-delay: -4.5s; }
.dotp { position: absolute; width: 16px; height: 16px; border-radius: 50%; z-index: 1; }
@keyframes flutua { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.search-card-wrap { margin-top: -96px; position: relative; z-index: 3; }
.search-card { background: #fff; border-radius: 26px; box-shadow: 0 24px 60px rgba(30, 27, 75, .14); padding: 18px; display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 8px; align-items: center; }
.sc-field { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 16px; transition: .15s; }
.sc-field:hover { background: #faf8ff; }
.sc-field + .sc-field { border-left: 1px solid var(--line); border-radius: 0 16px 16px 0; }
.sc-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.sc-field div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sc-field label { font-weight: 800; font-size: 15px; color: #1e1b4b; }
.sc-field input, .sc-field select { border: 0; outline: 0; background: none; padding: 3px 0; color: var(--muted); width: 100%; appearance: none; font-size: 14.5px; }
.search-card .btn { height: 64px; padding: 0 34px; border-radius: 18px; font-size: 17px; }
.cat-strip.v2 { margin-top: 0; }

@media (max-width: 1080px) {
  .hero2 .container { grid-template-columns: 1fr; }
  .hero-art { height: 420px; }
  .fcard { width: 180px; }
  .fcard-img { height: 90px; }
  .top-search { max-width: 340px; }
}
@media (max-width: 900px) {
  .search-card { grid-template-columns: 1fr; }
  .sc-field + .sc-field { border-left: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .search-card .btn { height: 54px; }
}
@media (max-width: 680px) {
  .topbar-in { height: 64px; }
  .top-search { display: flex; position: absolute; left: 12px; right: 12px; top: 64px; max-width: none; box-shadow: var(--shadow); }
  .topbar { margin-bottom: 0; }
  body.site main { padding-top: 0; }
  .site .topbar { padding-bottom: 56px; }
  .loc-pick { max-width: 140px; }
  .catbar-in { padding-top: 10px; padding-bottom: 10px; }
  .cb-nav { display: none; }
  .cb-item { min-width: 0; padding: 8px 12px 8px 8px; font-size: 13px; }
  .cb-ic { width: 36px; height: 36px; font-size: 17px; }
  .hero2 { padding: 10px 0 110px; }
  .h2-text { padding: 16px 0 0; }
  .hero2 .h2-sub { font-size: 16px; }
  .h2-cta { font-size: 17px; padding: 16px 22px; }
  .h2-cta .bi-arrow-right { margin-left: 8px; }
  .hero-art { height: 330px; margin: 0 -20px; }
  .ha-scene { inset: 0; border-radius: 0; }
  .fcard { width: 140px; padding: 8px; border-radius: 14px; }
  .fcard-h { font-size: 12.5px; gap: 6px; padding-bottom: 6px; }
  .fcard-h .cb-ic { width: 28px; height: 28px; font-size: 14px; }
  .fcard-img { height: 62px; }
  .fcard-img > i { font-size: 32px; }
  .fcard small { display: none; }
  .fc-1 { left: 4%; top: 10px; } .fc-2 { right: 4%; top: 30px; } .fc-3 { left: 6%; bottom: 10px; } .fc-4 { right: 4%; bottom: 0; }
  .search-card { padding: 10px; border-radius: 20px; }
}
.top-search .ts-btn i { color: #fff; }
.top-search .loc-pick i { color: var(--muted); }
.top-search .loc-pick > i:first-child { color: var(--primary); }
/* ajustes finos v2 */
.top-nav > a.nav-strong { color: var(--primary); }
.hero2 .container { grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); }
.hero2 h1 { font-size: clamp(36px, 4.2vw, 58px); }
.ha-scene { inset: 0 -80px 0 -40px; border-radius: 0; -webkit-mask-image: radial-gradient(ellipse 58% 56% at 55% 52%, #000 42%, transparent 98%); mask-image: radial-gradient(ellipse 58% 56% at 55% 52%, #000 42%, transparent 98%); }
.fcard { width: 196px; padding: 10px; }
.fcard-h { font-size: 15px; }
.fcard-img { height: 96px; }
.fc-1 { left: 2%; top: 30px; }
.fc-2 { right: -4%; top: 50px; }
.fc-3 { left: 6%; bottom: 30px; }
.fc-4 { right: -1%; bottom: 10px; }
@media (max-width: 1080px) { .hero2 .container { grid-template-columns: 1fr; } .ha-scene { inset: 0 -20px; } }
@media (max-width: 680px) { .fcard { width: 132px; padding: 7px; } .fcard-img { height: 56px; } .fc-2 { right: 3%; } .fc-4 { right: 3%; } }
@media (max-width: 680px) {
  .hero2::before { display: none; }
  .hero-art { height: 300px; }
  .fcard-h { font-size: 12.5px; }
  .fc-3, .fc-4 { display: none; }
  .fc-1 { left: 4%; top: 24px; } .fc-2 { right: 4%; top: auto; bottom: 24px; }
  .h2-cta::after { display: none; }
}

/* ---------- Painel: tela cheia + celular ---------- */
.dash-main { width: calc(100% - 260px); }
@media (min-width: 1600px) { .dash-content { padding: 30px 40px; } .ad-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
@media (max-width: 900px) { .dash-main { width: 100%; } }
@media (max-width: 680px) {
  .dash-top { height: 60px; }
  .dash-title { font-size: 17px; }
  .dash .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px 2px; }
  .dash .tabs::-webkit-scrollbar { display: none; }
  .dash .tabs a { flex-shrink: 0; }
  .dash .toolbar > *, .dash .toolbar .input, .dash .toolbar .select { width: 100%; min-width: 0 !important; margin-left: 0 !important; }
  .dash .toolbar form { width: 100%; }
  .dash .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash .stat { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .dash .stat .si { width: 38px; height: 38px; font-size: 18px; border-radius: 11px; }
  .dash .stat b { font-size: 20px; }
  .chart-box { height: 230px; }
  /* Tabelas viram cartões */
  .dash .table-wrap { overflow: visible; }
  .dash .table thead { display: none; }
  .dash .table, .dash .table tbody, .dash .table tr, .dash .table td { display: block; width: 100%; }
  .dash .table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .dash .table tr:last-child { border-bottom: 0; }
  .dash .table td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; }
  .dash .table td::before { content: attr(data-label); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: left; flex-shrink: 0; }
  .dash .table td[data-label=""]::before, .dash .table td.td-main::before { display: none; }
  .dash .table td.td-main { text-align: left; padding-bottom: 8px; }
  .dash .table td.hide-sm-cell { display: none; }
  .dash .table .actions { justify-content: flex-start; padding-top: 6px; }
  .dash .table td:last-child { justify-content: flex-start; }
  .dash .table tr:hover td { background: none; }
  .mini-ad { min-width: 0; }
  .lead-item { grid-template-columns: 1fr; }
  .dash .grid-2, .dash .grid-2e { gap: 12px; }
  .dash .card[style*="sticky"] { position: static !important; }
  .review-head { flex-wrap: wrap; }
}
.grid-2 > .card + .card, .grid-2e > .card + .card, .grid-2 > div > .card:first-child { margin-top: 0; }

/* ---------- Cookies e PWA ---------- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; display: flex; justify-content: center; pointer-events: none; }
.cookie-in { pointer-events: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 16px 18px; display: flex; gap: 14px; align-items: center; max-width: 920px; width: 100%; animation: pop .25s; }
.cookie-in > i { font-size: 28px; color: var(--accent); }
.cookie-in p { margin: 0; font-size: 14px; color: var(--ink-2); flex: 1; }
.cookie-in p a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.pwa-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 290; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 10px 12px; display: flex; align-items: center; gap: 12px; max-width: 460px; margin: 0 auto; animation: pop .25s; }
.pwa-bar img { border-radius: 12px; }
.pwa-bar b { display: block; font-size: 14px; }
.pwa-bar small { color: var(--muted); font-size: 12px; }
.pwa-x { background: none; border: 0; font-size: 22px; color: var(--muted); cursor: pointer; padding: 0 4px; }
@media (max-width: 680px) {
  .cookie-bar { left: 8px; right: 8px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .cookie-in { flex-direction: column; align-items: stretch; text-align: left; padding: 14px; }
  .cookie-in > i { display: none; }
  .cookie-btns .btn { flex: 1; }
  .site .pwa-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (display-mode: standalone) { [data-pwa-install], .pwa-bar { display: none !important; } }
code { word-break: break-all; white-space: normal; }
.alert > div { min-width: 0; }
@media (max-width: 900px) { body.dash { overflow-x: hidden; } .dash-content { max-width: 100vw; } }

/* ---------- Site público em tela cheia ---------- */
.container { max-width: 2200px; padding-left: clamp(16px, 3vw, 56px); padding-right: clamp(16px, 3vw, 56px); }
.top-search { max-width: 560px; }
.hero2 .container { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(20px, 3vw, 60px); }
.hero-art { height: clamp(520px, 34vw, 720px); }
.hero2 h1 { font-size: clamp(36px, 3.9vw, 76px); }
.hero2 .h2-sub { max-width: 640px; }
@media (min-width: 1600px) {
  .fcard { width: 230px; }
  .fcard-img { height: 120px; }
  .ad-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
  .search-layout { grid-template-columns: 300px 1fr; }
  .ad-page { grid-template-columns: 1fr 420px; }
}
@media (max-width: 1080px) { .hero2 .container { grid-template-columns: 1fr; } .hero-art { height: 420px; } }
@media (max-width: 680px) { .hero-art { height: 300px; } }
.cta-band, .how-grid { max-width: none; }
.featured-rail { grid-auto-columns: minmax(320px, 1fr); }
.hero2::before { top: 18px; left: 14px; }
.featured-rail { grid-auto-columns: minmax(320px, 520px); }
@media (max-width: 680px) { .featured-rail { grid-auto-columns: 85%; } }
.hero2::before { left: auto; right: 16px; top: 14px; }

/* ---------- Popup PIX ---------- */
.pix-logo { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, #32bcad, #0f8a7e); color: #fff; display: grid; place-items: center; font-size: 30px; box-shadow: 0 10px 24px rgba(50, 188, 173, .35); }
.pix-logo.sm { width: 44px; height: 44px; font-size: 21px; border-radius: 13px; }
.pix-modal { max-width: 440px; text-align: left; }
.pix-head { display: flex; gap: 12px; align-items: center; padding-right: 30px; }
.pix-head b { display: block; font-size: 17px; }
.pix-head small { color: var(--muted); font-size: 12.5px; }
.pix-valor { font-size: 34px; font-weight: 800; letter-spacing: -.03em; text-align: center; margin: 16px 0 6px; }
.pix-state { display: flex; flex-direction: column; gap: 10px; }
.pix-state[data-state="loading"] { align-items: center; padding: 40px 0; }
.pix-qr { align-self: center; background: #fff; padding: 10px; border-radius: 18px; border: 2px solid #e2f5f3; }
.pix-qr img { width: 230px; height: 230px; image-rendering: pixelated; }
.pix-timer { text-align: center; font-size: 14px; color: var(--muted); }
.pix-timer b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pix-steps { margin: 4px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 4px; }
.pix-wait { display: flex; gap: 10px; align-items: center; justify-content: center; background: #f0fdfa; color: #0f766e; border-radius: 12px; padding: 11px; font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #14b8a6; animation: pulsar 1.4s infinite; flex-shrink: 0; }
@keyframes pulsar { 0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, .6); } 100% { box-shadow: 0 0 0 12px rgba(20, 184, 166, 0); } }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--primary-100); border-top-color: var(--primary); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.pix-ok { width: 78px; height: 78px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: grid; place-items: center; font-size: 42px; margin: 6px auto 4px; animation: pop .3s; }
.pix-ok.warn { background: #fef3c7; color: #d97706; }
.pix-ok.err { background: #fee2e2; color: #dc2626; }
.pix-state h3 { margin: 6px 0 0; }
@media (max-width: 680px) { .pix-modal { padding: 20px 16px; } .pix-qr img { width: 210px; height: 210px; } .pix-valor { font-size: 28px; } }
