/* ==========================================================
   StreetCar — estilos
   Identidade visual: Azul Noite #0F172A · Vermelho #E30613
   Cinza #6B7280 · Cinza Claro #F3F4F6 · Branco #FFFFFF
   Tipografia: Montserrat Bold (títulos) · Inter (textos)
   ========================================================== */
:root {
  --navy: #0F172A;
  --red: #E30613;
  --red-dark: #B8050F;
  --gray: #6B7280;
  --gray-light: #F3F4F6;
  --white: #FFFFFF;

  --bg: var(--white);
  --surface: var(--gray-light);
  --line: #E5E7EB;
  --text: var(--navy);
  --muted: var(--gray);

  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, .12);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Montserrat', 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.no-scroll { overflow: hidden; }
main { flex: 1; padding-bottom: 64px; outline: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { flex-shrink: 0; vertical-align: -3px; }
::selection { background: var(--red); color: var(--white); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 860px; }
main > .container, main > div > .container { padding-top: 32px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.accent { color: var(--red); }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.pad { padding: 24px; }
.show-sm, .show-md { display: none !important; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap;
  background: var(--surface); color: var(--navy);
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.sm { padding: 7px 14px; font-size: .88rem; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.primary { background: var(--red); color: var(--white); }
.btn.primary:hover:not(:disabled) { background: var(--red-dark); }
.btn.ghost { background: var(--white); border-color: var(--line); }
.btn.ghost:hover:not(:disabled) { border-color: var(--navy); }
.btn.gold { background: var(--navy); color: var(--white); }
.btn.gold:hover { background: #1E293B; }
.btn.danger-ghost { background: var(--white); border-color: var(--line); color: var(--red); }
.btn.danger-ghost:hover { border-color: var(--red); }
.btn input[type=checkbox] { accent-color: var(--red); }
label.btn { flex-direction: row; color: var(--navy); font-size: .88rem; }
.link { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; font-weight: 600; text-align: left; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--muted); display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font-weight: 500; }
.link.danger:hover { color: var(--red); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: 0; cursor: pointer; color: var(--navy); position: relative;
}
.icon-btn:hover { background: var(--surface); }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; }
.main-nav { display: flex; gap: 2px; flex: 1; }
.main-nav a { padding: 8px 14px; border-radius: 8px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 6px; position: relative; }
.main-nav a:hover { color: var(--navy); }
.main-nav a.active { color: var(--navy); font-weight: 600; }
.main-nav a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -15px; height: 2px; background: var(--red); }
.user-area { display: flex; align-items: center; gap: 8px; }
.bell .dot {
  position: absolute; top: 4px; right: 3px; background: var(--red); color: var(--white); font-size: .68rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--white);
}
.pill { background: var(--red); color: var(--white); font-size: .72rem; font-weight: 700; border-radius: 10px; padding: 1px 7px; line-height: 1.5; }
.dropdown { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 24px; font-weight: 600; }
.user-btn:hover { background: var(--surface); }
.menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px;
}
.menu.open { display: block; animation: pop .15s ease-out; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--navy);
}
.menu a:hover, .menu button:hover { background: var(--surface); }
.menu .ic { color: var(--muted); }
.menu-head { display: flex; gap: 10px; align-items: center; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head small { display: block; color: var(--muted); }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: var(--white); font-weight: 700; flex-shrink: 0; background: var(--navy) !important; font-family: var(--display); }

.faixa-demo { background: var(--navy); color: var(--white); text-align: center; font-size: .85rem; padding: 8px 16px; }
.faixa-demo a { color: var(--white); text-decoration: underline; margin-left: 6px; font-weight: 600; }

/* ---------- cartões ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; background: var(--surface); color: var(--navy);
}
.chip.red { background: rgba(227, 6, 19, .08); color: var(--red); }
.chip.green { background: var(--navy); color: var(--white); }
.chip.blue { background: var(--surface); color: var(--navy); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .02em;
  padding: 4px 8px; border-radius: 6px; background: var(--white); color: var(--navy); box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}
.badge.gold { background: var(--red); color: var(--white); }
.badge.troca { background: var(--white); color: var(--navy); }
.badge.status-vendido { background: var(--navy); color: var(--white); }
.badge.status-pausado { background: var(--gray); color: var(--white); }
.stars { color: #D1D5DB; letter-spacing: 1px; }
.stars .on { color: var(--red); }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); vertical-align: middle; }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; border-bottom: 4px solid var(--red); }
.hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 80px 16px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--white); font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.eyebrow b { color: var(--red); font-weight: 700; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.05; margin: 16px 0 20px; text-transform: uppercase; letter-spacing: -.02em; }
.hero h1 em { color: var(--red); font-style: normal; display: block; }
.hero p { color: #CBD5E1; font-size: 1.08rem; max-width: 500px; }
.hero-pills { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.hero-pills span { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #E2E8F0; }
.hero-pills i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--white); font-style: normal; }
.quick-search { padding: 28px; box-shadow: var(--shadow-lg); color: var(--navy); border: 0; }
.quick-search h2 { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; font-size: 1.2rem; }
.quick-search h2 .ic { color: var(--red); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); transition: .2s; }
.feature:hover { background: var(--white); box-shadow: var(--shadow); }
.feature .ic { color: var(--red); margin-bottom: 12px; }
.feature p { color: var(--muted); margin: 0; font-size: .9rem; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 56px 0 20px; flex-wrap: wrap; }
.section-head h1, .section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2 { font-size: 1.45rem; }
.section-head h2::before { content: ''; width: 4px; height: 1.1em; background: var(--red); border-radius: 2px; }
.section-head h2 .ic { display: none; }
.section-head > a:not(.btn) { color: var(--navy); font-weight: 600; font-size: .92rem; }
.section-head > a:not(.btn):hover { color: var(--red); }
.container > .section-head:first-child { margin-top: 0; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; margin-top: 64px; background: var(--navy); color: var(--white); border: 0; position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 22px solid var(--red); border-left-color: transparent; border-bottom-color: transparent; opacity: .9; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: 1.7rem; font-weight: 800; }
.cta .muted { color: #CBD5E1; }

/* ---------- grade de anúncios ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.anuncio-card { position: relative; overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.anuncio-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.anuncio-card.premium { border-color: var(--line); }
.anuncio-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; }
.anuncio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.anuncio-thumb .car-svg { width: 100%; height: 100%; padding: 14% 6% 6%; }
.badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.fav {
  position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--white); color: var(--navy); cursor: pointer; display: grid; place-items: center; transition: .15s;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .15);
}
.fav:hover { color: var(--red); }
.fav.on, .fav-btn.on { color: var(--red); }
.fav.on svg, .fav-btn.on svg { fill: currentColor; }
.anuncio-info { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.anuncio-title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.anuncio-versao { color: var(--muted); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anuncio-meta { display: flex; gap: 14px; color: var(--muted); font-size: .84rem; margin: 10px 0; }
.anuncio-meta span { display: inline-flex; gap: 5px; align-items: center; }
.anuncio-price { font-family: var(--display); font-size: 1.4rem; font-weight: 800; margin-top: auto; }
.anuncio-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .82rem; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.cmp { flex-direction: row; display: inline-flex; gap: 6px; align-items: center; color: var(--muted); cursor: pointer; white-space: nowrap; font-weight: 500; }
.cmp input { accent-color: var(--red); }
.troca-box {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px;
  border-left: 4px solid var(--red);
}
.troca-box h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.troca-box h2 .ic { color: var(--red); }
.troca-box .muted { color: #CBD5E1; margin: 0; }
.troca-box-text { flex: 1; min-width: 240px; }
.troca-box .stack small { color: #CBD5E1; }
.meu-carro { color: var(--white); min-width: 280px; }
.meu-carro select { color: var(--navy); }
.troca-info { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.troca-dif { font-size: .86rem; background: var(--surface); border-radius: 8px; padding: 8px 10px; text-align: center; }
.troca-dif.paga strong { color: var(--navy); }
.troca-dif.recebe strong { color: var(--red); }
.owner-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.car-svg ellipse { opacity: .12; }

#compare-bar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 40;
  background: var(--navy); color: var(--white); border-radius: 40px; box-shadow: var(--shadow-lg);
  padding: 8px 8px 8px 20px; display: flex; align-items: center; gap: 12px; animation: pop .2s ease-out; max-width: calc(100% - 32px);
}
#compare-bar .icon-btn { color: var(--white); }
#compare-bar .icon-btn:hover { background: rgba(255, 255, 255, .1); }

/* ---------- eventos ---------- */
.grid-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.event-card { display: flex; gap: 18px; padding: 18px; transition: box-shadow .2s; }
.event-card:hover { box-shadow: var(--shadow-lg); }
.event-card.dim { opacity: .55; }
.event-card h3 { margin: 8px 0 6px; font-size: 1.02rem; }
.event-card p { margin: 2px 0; font-size: .86rem; }
.ev-date {
  width: 64px; flex-shrink: 0; border-radius: 10px; background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 0; text-transform: uppercase; align-self: flex-start;
  border-bottom: 4px solid var(--red);
}
.ev-date strong { font-family: var(--display); font-size: 1.7rem; font-weight: 800; line-height: 1; }
.ev-date span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.ev-date small { font-size: .7rem; opacity: .75; }
.ev-date.big { width: 92px; padding: 16px 0; }
.ev-date.big strong { font-size: 2.6rem; }
.ev-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ev-filters { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 24px; padding: 18px; background: var(--surface); border: 0; }
.ev-filters label:not(.check) { min-width: 150px; }
.ev-detail, .anuncio-detail { display: grid; grid-template-columns: 1fr 370px; gap: 28px; align-items: start; }
.ev-detail > div > .card, .anuncio-detail > div > .card { margin-bottom: 20px; }
.ev-capa { display: flex; gap: 22px; align-items: center; padding: 28px; background: var(--navy); color: var(--white); border: 0; }
.ev-capa .ev-date { background: var(--red); border-bottom: 0; }
.ev-capa .chip { background: rgba(255, 255, 255, .12); color: var(--white); }
.ev-capa h1 { margin: 10px 0 6px; }
.ev-capa p { margin: 0; color: #CBD5E1; text-transform: capitalize; }
.attendees { display: flex; flex-wrap: wrap; gap: 16px; }
.attendees a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .78rem; }
.cap { margin-bottom: 18px; }
.cap-bar { height: 6px; background: var(--surface); border-radius: 3px; overflow: hidden; margin-bottom: 6px; flex: 1; }
.cap-bar span { display: block; height: 100%; background: var(--red); border-radius: 3px; }

/* ---------- detalhe do anúncio ---------- */
.crumbs { color: var(--muted); font-size: .86rem; margin-bottom: 18px; }
.crumbs a:hover { color: var(--red); }
.gallery { overflow: hidden; }
.gallery-main { aspect-ratio: 16 / 9; background: var(--surface); display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--navy); }
.gallery-main .car-svg { width: 80%; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.gallery-thumbs button { border: 2px solid transparent; border-radius: 8px; padding: 0; overflow: hidden; width: 90px; height: 60px; flex-shrink: 0; cursor: pointer; background: none; }
.gallery-thumbs button.on { border-color: var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 24px; margin: 0; }
.specs div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.specs dd { margin: 2px 0 0; font-weight: 600; }
.desc { white-space: pre-line; }
.anuncio-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.price-box h1 { font-size: 1.7rem; margin: 10px 0 0; }
.price-box .price { font-family: var(--display); font-size: 2.3rem; font-weight: 800; margin: 8px 0 20px; }
.seller-head { display: flex; gap: 12px; align-items: center; margin: 6px 0 10px; }
.tips { background: var(--surface); border: 0; }
.tips ul { padding-left: 18px; margin: 10px 0 0; color: var(--muted); font-size: .88rem; }
.tips li { margin-bottom: 4px; }
.tips h3 { display: flex; gap: 8px; align-items: center; }
.tips h3 .ic { color: var(--red); }
.alert { background: rgba(227, 6, 19, .06); border: 1px solid rgba(227, 6, 19, .25); color: var(--red-dark); padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.alert.info { background: var(--surface); border-color: var(--line); color: var(--navy); }

/* ---------- formulários ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form h2 { margin-top: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--navy); }
label.check { flex-direction: row; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
label.check input { accent-color: var(--red); width: 17px; height: 17px; flex-shrink: 0; }
label.check a { color: var(--red); }
.link.center { align-self: center; }
label.inline { flex-direction: row; align-items: center; gap: 8px; }
input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea {
  background: var(--white); border: 1px solid #D1D5DB; border-radius: 10px; padding: 10px 12px; width: 100%; transition: .15s; font-weight: 400;
}
input::placeholder, textarea::placeholder { color: #9CA3AF; }
input[type=color] { width: 100%; height: 44px; border: 1px solid #D1D5DB; border-radius: 10px; background: var(--white); padding: 4px; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 23, 42, .1); }
input:disabled { opacity: .5; }
textarea { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.photos { display: flex; flex-wrap: wrap; gap: 10px; }
.photo { position: relative; width: 130px; height: 90px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--navy); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.photo span { position: absolute; left: 4px; bottom: 4px; background: var(--red); color: var(--white); font-size: .7rem; padding: 1px 6px; border-radius: 4px; }
.photo.add { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px dashed #D1D5DB; cursor: pointer; color: var(--muted); gap: 4px; background: var(--surface); }
.photo.add:hover { border-color: var(--navy); color: var(--navy); }
.photo.add span { position: static; background: none; color: inherit; font-size: .8rem; }
.preview-box { border: 1.5px dashed #D1D5DB; border-radius: var(--radius); padding: 16px; background: var(--surface); }
.preview-box #preview { max-width: 300px; margin-top: 8px; }
.preview-box .anuncio-card:hover { transform: none; box-shadow: none; }

.pick { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pick legend { font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.pick-item { flex-direction: row; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; font-weight: 400; }
.pick-item:has(input:checked) { border-color: var(--navy); background: var(--surface); }
.pick-item input { accent-color: var(--red); }
.mini-ad { display: flex; align-items: center; gap: 12px; }
.mini-ad > svg, .mini-ad > img { width: 90px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--surface); flex-shrink: 0; }
.mini-ad > span { display: flex; flex-direction: column; }
.modal-body > .mini-ad { margin-bottom: 18px; padding: 10px; background: var(--surface); border-radius: 10px; }
.modal-body > .mini-ad > svg { background: var(--white); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 18px; cursor: pointer; align-items: center; text-align: center; }
.plan:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.plan input { display: none; }
.plan strong { font-size: 1rem; }
.plan span { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--red); }

.rate { display: flex; flex-direction: row-reverse; justify-content: center; gap: 6px; }
.rate input { display: none; }
.rate label { font-size: 2.4rem; color: #D1D5DB; cursor: pointer; transition: .1s; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: var(--red); }

/* ---------- busca ---------- */
.search-page { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.filters { padding: 20px; position: sticky; top: 92px; max-height: calc(100vh - 112px); overflow-y: auto; background: var(--surface); border: 0; }
.filters form { display: flex; flex-direction: column; gap: 14px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.filters-head h2 { margin: 0; }
.filters .btn.ghost { background: var(--white); }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.results-head h1 { margin: 0; }
.results-head p { margin: 0; }
.results-tools { display: flex; gap: 10px; align-items: center; }
.results-tools select { width: auto; }

/* ---------- propostas ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--navy); }
.tabs a.on { color: var(--navy); border-color: var(--red); }
.proposal { display: flex; gap: 18px; padding: 18px; }
.prop-thumb { width: 160px; flex-shrink: 0; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--surface); }
.prop-thumb img, .prop-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.prop-thumb svg { padding: 10% 4% 4%; }
.prop-body { flex: 1; min-width: 0; }
.prop-top { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.prop-body h3 small { font-weight: 400; font-family: var(--font); }
.prop-body a:not(.btn) { color: var(--navy); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.prop-body a:not(.btn):hover { text-decoration-color: var(--red); }
.prop-body p { margin: 4px 0; }
blockquote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--red); background: var(--surface); border-radius: 0 8px 8px 0; color: var(--navy); }
.status { font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.s-pendente { background: var(--surface); color: var(--navy); border: 1px solid var(--line); }
.s-aceita { background: var(--navy); color: var(--white); }
.s-recusada, .s-cancelada { background: var(--surface); color: var(--muted); }

/* ---------- chat ---------- */
.chat { display: grid; grid-template-columns: 330px 1fr; gap: 16px; height: calc(100vh - 72px - 64px); min-height: 480px; }
.conv-list { overflow-y: auto; padding: 12px; }
.conv-list-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 10px; }
.conv-list-head h2 { margin: 0; }
.pessoas { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; max-height: 50vh; overflow-y: auto; }
.pessoa { display: flex; align-items: center; gap: 12px; padding: 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; }
.pessoa:hover { background: var(--surface); }
.pessoa span { display: flex; flex-direction: column; }
.conv-item { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; }
.conv-item:hover { background: var(--surface); }
.conv-item.on { background: var(--surface); box-shadow: inset 3px 0 0 var(--red); }
.conv-item > div:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-item small { display: block; }
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.conv { display: flex; flex-direction: column; overflow: hidden; }
.conv > .empty { margin: auto; }
.conv-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.conv-head small { display: block; }
.conv-head > .row { flex: 1; min-width: 0; flex-wrap: nowrap; }
.conv-ad { display: flex; gap: 10px; align-items: center; background: var(--surface); border-radius: 10px; padding: 6px 12px 6px 6px; }
.conv-ad svg, .conv-ad img { width: 64px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--white); }
.conv-ad span { display: flex; flex-direction: column; font-size: .85rem; }
.conv-ad small { color: var(--muted); }
.msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.msg { max-width: min(70%, 520px); background: var(--white); padding: 8px 12px 6px; border-radius: 14px 14px 14px 4px; align-self: flex-start; animation: pop .15s ease-out; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.msg p { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.msg time { display: block; text-align: right; font-size: .7rem; color: var(--muted); margin-top: 2px; }
.msg.mine { align-self: flex-end; background: var(--navy); color: var(--white); border-radius: 14px 14px 4px 14px; }
.msg.mine time { color: #94A3B8; }
.msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gray); animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; }
.msg.typing span:nth-child(3) { animation-delay: .4s; }
.day-sep { align-self: center; font-size: .74rem; color: var(--muted); background: var(--white); padding: 2px 10px; border-radius: 10px; margin: 8px 0; }
.msg-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.msg-form input { flex: 1; border-radius: 24px !important; padding: 12px 18px !important; background: var(--surface) !important; border-color: transparent !important; }
.msg-form .btn { border-radius: 50%; width: 46px; height: 46px; padding: 0; }

/* ---------- perfil ---------- */
.profile-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.profile-head h1 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-head p { margin: 6px 0 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 20px 0; }
.stat { padding: 18px 20px; background: var(--surface); border: 0; }
.stat strong { display: block; font-family: var(--display); font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat.warn strong { color: var(--red); }
.reviews-wrap { display: flex; gap: 20px; align-items: flex-start; }
.rating-sum { width: 260px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; }
.big-num { font-family: var(--display); font-size: 3rem; font-weight: 800; line-height: 1; }
.bar-row { display: flex; gap: 8px; align-items: center; font-size: .82rem; }
.bar-row .cap-bar { margin: 0; }
.review { display: flex; gap: 12px; }
.review p { margin: 6px 0 0; }

/* ---------- notificações ---------- */
.notif-list { overflow: hidden; }
.notif { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--surface); }
.notif.unread { background: #FAFAFB; font-weight: 500; }
.notif.unread::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.notif small { display: block; font-weight: 400; }
.notif-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--navy); flex-shrink: 0; }
.notif.unread .notif-ic { background: var(--navy); color: var(--white); }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; }
.table, .compare { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; background: var(--surface); }
.table a:not(.btn) { color: var(--navy); font-weight: 500; }
.table a:not(.btn):hover { color: var(--red); }
.table a.row { flex-wrap: nowrap; }
.compare th, .compare td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.compare thead th { min-width: 220px; }
.compare thead th > a:not(.cmp-thumb) { display: block; font-family: var(--display); font-size: 1.02rem; }
.compare thead small { display: block; }
.cmp-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--surface); margin-bottom: 8px; }
.cmp-thumb img, .cmp-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.cmp-thumb svg { padding: 10% 4% 4%; }
td.best { color: var(--red); font-weight: 700; }

/* ---------- auth / textos ---------- */
.auth { min-height: calc(100vh - 72px - 220px); display: grid; place-items: center; padding: 48px 16px; background: var(--surface); }
.auth form { width: 100%; max-width: 440px; padding: 36px; box-shadow: var(--shadow); border: 0; }
.auth-logo { height: 70px; width: auto; margin: 0 auto 8px; }
.auth h1 { margin: 0; }
.btn.google { background: var(--white); border-color: #D1D5DB; color: var(--navy); }
.btn.google:hover:not(:disabled) { border-color: var(--navy); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.demo-box { background: var(--surface); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: .85rem; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty .ic { color: #D1D5DB; margin-bottom: 8px; }
.empty h3 { color: var(--navy); }
.empty .btn { margin-top: 8px; }

/* ---------- modal e toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; backdrop-filter: blur(3px); }
.modal { background: var(--white); border-radius: 16px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .2s ease-out; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); z-index: 1; }
.modal-head h3 { margin: 0; font-size: 1.1rem; }
.modal-body { padding: 22px; }
#toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: calc(100% - 40px); }
.toast { background: var(--navy); color: var(--white); padding: 12px 16px 12px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); animation: slide .25s ease-out; max-width: 360px; transition: .3s; border-left: 4px solid var(--white); }
.toast.erro { border-left-color: var(--red); }
.toast.info { border-left-color: var(--gray); }
.toast.out { opacity: 0; transform: translateX(20px); }

/* ---------- rodapé ---------- */
.footer { background: var(--navy); color: var(--white); padding: 48px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer-inner > div { display: flex; flex-direction: column; gap: 8px; }
.footer-logo { height: 70px; width: auto; align-self: flex-start; margin-bottom: 4px; }
.footer strong { font-family: var(--display); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.footer .muted { color: #94A3B8; }
.footer-inner a { color: #CBD5E1; font-size: .9rem; }
.footer-inner a:hover { color: var(--white); }
.disclaimer { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }

@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { opacity: 0; transform: translateX(30px); } }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* ---------- responsivo ---------- */
@media (max-width: 1024px) {
  .anuncio-detail, .ev-detail { grid-template-columns: 1fr; }
  .anuncio-side { position: static; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .search-page { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; display: none; }
  .filters.open { display: block; }
  .show-sm { display: inline-flex !important; }
}

@media (max-width: 860px) {
  .show-md { display: inline-grid !important; }
  .topbar-inner { gap: 10px; height: 64px; }
  .logo img { height: 38px; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
  .main-nav a.active { background: var(--surface); }
  .main-nav a.active::after { display: none; }
  .logo { flex: 1; }
  .hero-inner { grid-template-columns: 1fr; padding: 48px 16px; gap: 32px; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - 64px - 48px); }
  .chat.has-conv .conv-list { display: none; }
  .chat:not(.has-conv) .conv { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .reviews-wrap { flex-direction: column; }
  .rating-sum { width: 100%; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 14.5px; }
  h1 { font-size: 1.6rem; }
  .hide-sm { display: none; }
  .features { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .grid-events { grid-template-columns: 1fr; }
  .grid-cards { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 28px; }
  .proposal { flex-direction: column; }
  .prop-thumb { width: 100%; }
  .specs { grid-template-columns: 1fr; }
  .user-area .btn.ghost { display: none; }
  .conv-ad { display: none; }
  .msg { max-width: 85%; }
  .footer-inner { grid-template-columns: 1fr; }
  .profile-head { flex-direction: column; align-items: flex-start; }
  .ev-capa { flex-direction: column; align-items: flex-start; }
  #compare-bar span { display: none; }
}

/* Foto inteira: a foto aparece toda, sem cortes; a mesma foto desfocada preenche as sobras */
.foto-inteira { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--navy); }
.foto-inteira .foto-fundo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(16px) brightness(.8); transform: scale(1.15); }
.foto-inteira .foto-frente { position: relative; width: 100%; height: 100%; object-fit: contain; background: none; }
