/* =====================================================================
   Sodani Cars — visual
   Cores principais: azul-marinho profundo + dourado
   ===================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0a1f3a;
  --navy-2: #0f2d52;
  --navy-3: #16407a;
  --ouro: #f5b301;
  --ouro-2: #ffd34d;
  --cor: #0f2d52;
  --texto: #14202e;
  --suave: #5f6c7b;
  --borda: #e4e8ee;
  --fundo: #f4f6fa;
  --branco: #fff;
  --whats: #1ebe5d;
  --whats-2: #128c4a;
  --perigo: #d23b3b;
  --raio: 16px;
  --sombra-1: 0 1px 2px rgba(10,31,58,.06), 0 2px 8px rgba(10,31,58,.06);
  --sombra-2: 0 12px 36px rgba(10,31,58,.16);
  --titulo: "Outfit", system-ui, sans-serif;
  --corpo: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--corpo); color: var(--texto); line-height: 1.55; background: var(--fundo); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--navy-3); }
input, select, textarea, button { font: inherit; color: inherit; }
h1, h2, h3, .logo, .preco { font-family: var(--titulo); }
[hidden] { display: none !important; }
::selection { background: var(--ouro); color: var(--navy); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- Botões ---------- */
.botao-principal, .botao-whats, .botao-secundario, .botao-perigo, .botao-ouro {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; font-weight: 700; text-decoration: none;
  border: 0; cursor: pointer; transition: transform .15s, box-shadow .2s, filter .2s; white-space: nowrap;
}
.botao-principal { background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); color: #fff; box-shadow: 0 6px 18px rgba(22,64,122,.35); }
.botao-ouro { background: linear-gradient(135deg, var(--ouro-2), var(--ouro)); color: var(--navy); box-shadow: 0 6px 18px rgba(245,179,1,.4); }
.botao-whats { background: linear-gradient(135deg, var(--whats), var(--whats-2)); color: #fff; box-shadow: 0 6px 18px rgba(30,190,93,.35); }
.botao-secundario { background: #fff; color: var(--navy-2); border: 1.5px solid #cfd7e2; }
.botao-perigo { background: #fff; color: var(--perigo); border: 1.5px solid #f1c4c4; }
.botao-principal:hover, .botao-whats:hover, .botao-ouro:hover { transform: translateY(-2px); filter: brightness(1.06); }
.botao-secundario:hover { border-color: var(--navy-3); }
.pequeno { padding: 8px 14px; font-size: .88rem; border-radius: 10px; }
.grande { padding: 16px 30px; font-size: 1.05rem; }
.largo { width: 100%; }
.link { background: none; border: 0; color: var(--navy-3); cursor: pointer; text-decoration: underline; padding: 0; font-weight: 600; }
button:disabled { opacity: .6; cursor: wait; }

/* ---------- Topo ---------- */
.topo { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid transparent; position: sticky; top: 0; z-index: 40; transition: box-shadow .2s, border-color .2s; }
.topo.rolado { box-shadow: 0 6px 24px rgba(10,31,58,.08); border-bottom-color: var(--borda); }
.topo-linha { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { font-size: 1.65rem; font-weight: 900; color: var(--navy); text-decoration: none; letter-spacing: -.8px; white-space: nowrap; }
.logo span { background: linear-gradient(135deg, var(--ouro), #e08a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.busca-topo { flex: 1; display: flex; max-width: 480px; background: var(--fundo); border: 1.5px solid var(--borda); border-radius: 12px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.busca-topo:focus-within { border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(22,64,122,.12); background: #fff; }
.busca-topo input { flex: 1; padding: 11px 14px; border: 0; background: transparent; outline: none; }
.busca-topo button { padding: 0 16px; border: 0; background: transparent; cursor: pointer; font-size: 1.05rem; }
.menu { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.menu > a { color: var(--texto); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; }
.menu > a:not(.cadastro-link)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--ouro); transform: scaleX(0); transition: transform .2s; }
.menu > a:hover::after { transform: scaleX(1); }
.link-favs { font-size: 1.25rem !important; color: #e0245e !important; }
.contador-favs { position: absolute; top: -6px; right: -12px; background: #e0245e; color: #fff; font-size: .68rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.cadastro-link { background: var(--navy); color: #fff !important; padding: 9px 16px; border-radius: 10px; }
.cadastro-link:hover { background: var(--navy-3); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 72px 0 96px; background:
  radial-gradient(1200px 500px at 85% -10%, rgba(245,179,1,.18), transparent 60%),
  radial-gradient(900px 600px at -10% 110%, rgba(22,64,122,.9), transparent 60%),
  linear-gradient(135deg, #071729 0%, var(--navy) 45%, var(--navy-2) 100%); }
.hero.com-foto::before { content: ""; position: absolute; inset: 0; background-image: var(--hero-img); background-size: cover; background-position: center; opacity: .22; filter: blur(2px) saturate(1.1); transform: scale(1.05); }
.hero.com-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,23,41,.96) 0%, rgba(7,23,41,.75) 50%, rgba(7,23,41,.35) 100%); }
.hero-bolhas i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; animation: flutuar 14s ease-in-out infinite; z-index: 1; }
.hero-bolhas i:nth-child(1) { width: 380px; height: 380px; background: var(--ouro); top: -120px; right: 10%; }
.hero-bolhas i:nth-child(2) { width: 300px; height: 300px; background: #2f6bd0; bottom: -120px; left: 5%; animation-delay: -5s; }
.hero-bolhas i:nth-child(3) { width: 200px; height: 200px; background: #7aa7ff; top: 40%; left: 45%; animation-delay: -9s; opacity: .2; }
@keyframes flutuar { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-25px); } }

.hero-conteudo { position: relative; z-index: 2; max-width: 1280px; }
.hero-conteudo > * { max-width: 640px; }
.hero-pre { display: inline-block; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); padding: 6px 14px; border-radius: 99px; font-size: .85rem; font-weight: 600; color: var(--ouro-2); margin-bottom: 18px; backdrop-filter: blur(6px); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; font-weight: 900; letter-spacing: -1.5px; margin-bottom: 16px; }
.palavra-giro { display: inline-block; background: linear-gradient(135deg, var(--ouro-2), var(--ouro)); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .3s, transform .3s; }
.palavra-giro.saindo { opacity: 0; transform: translateY(12px); }
.hero-sub { font-size: 1.12rem; color: #c9d4e3; margin-bottom: 30px; }
.hero-busca { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 10px; border-radius: 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.hero-busca select { padding: 14px; border: 0; border-radius: 12px; background: #fff; color: var(--texto); font-weight: 500; cursor: pointer; }
.hero-busca .botao-principal { background: linear-gradient(135deg, var(--ouro-2), var(--ouro)); color: var(--navy); box-shadow: none; }
.numeros { display: flex; gap: 40px; margin-top: 36px; visibility: hidden; }
.numeros.visivel-num { visibility: visible; animation: subir .5s ease; }
.numeros div { display: flex; flex-direction: column; }
.numeros strong { font-family: var(--titulo); font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.1; }
.numeros span { color: #9fb0c6; font-size: .88rem; }

.hero-carro { position: absolute; z-index: 2; right: max(24px, calc((100vw - 1280px) / 2 + 24px)); top: 50%; transform: translateY(-50%) rotate(1.5deg); width: min(440px, 36vw); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 22px; padding: 12px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 70px rgba(0,0,0,.45); color: #fff; text-decoration: none; transition: transform .35s; animation: entrar .8s ease both .2s; }
.hero-carro:hover { transform: translateY(-52%) rotate(0deg) scale(1.02); }
.hero-carro img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; display: block; }
.hero-carro-selo { position: absolute; top: 24px; left: 24px; background: var(--ouro); color: var(--navy); font-weight: 800; font-size: .78rem; padding: 4px 10px; border-radius: 8px; }
.hero-carro-info { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 6px 4px; }
.hero-carro-info div { display: flex; flex-direction: column; min-width: 0; }
.hero-carro-info strong { font-family: var(--titulo); font-size: 1.1rem; }
.hero-carro-info span { color: #b8c5d8; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-carro-info b { font-family: var(--titulo); font-size: 1.35rem; color: var(--ouro-2); white-space: nowrap; }
@keyframes entrar { from { opacity: 0; transform: translateY(-40%) rotate(4deg); } }

/* Faixa de confiança */
.confianca { background: var(--navy); color: #d9e2ee; border-top: 1px solid rgba(255,255,255,.06); }
.confianca-linha { display: flex; justify-content: space-between; gap: 18px; padding: 16px 24px; font-size: .92rem; font-weight: 600; overflow-x: auto; white-space: nowrap; }

/* ---------- Títulos de seção ---------- */
.titulo-sec { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.5px; color: var(--navy); margin-bottom: 18px; position: relative; }
.titulo-sec.centro { text-align: center; }
.titulo-sec.centro::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--ouro); margin: 12px auto 0; }
.cab-sec { display: flex; justify-content: space-between; align-items: center; }
.setas { display: flex; gap: 8px; margin-bottom: 18px; }
.setas button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--borda); background: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: all .2s; box-shadow: var(--sombra-1); }
.setas button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Marcas ---------- */
.marcas-sec { padding-top: 48px; }
.marcas { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.marca { flex: 0 0 auto; min-width: 150px; background: #fff; border: 1.5px solid var(--borda); border-radius: 14px; padding: 16px 20px; display: flex; flex-direction: column; align-items: flex-start; cursor: pointer; transition: all .2s; box-shadow: var(--sombra-1); }
.marca strong { font-family: var(--titulo); font-size: 1.1rem; color: var(--navy); }
.marca span { color: var(--suave); font-size: .82rem; }
.marca:hover { border-color: var(--ouro); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(245,179,1,.2); }

/* ---------- Carrosséis ---------- */
.carrossel-sec { padding-top: 44px; }
.carrossel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; scrollbar-width: none; }
.carrossel::-webkit-scrollbar { display: none; }
.carrossel > * { scroll-snap-align: start; }

/* ---------- Catálogo ---------- */
.catalogo { display: grid; grid-template-columns: 290px 1fr; gap: 28px; padding-top: 48px; padding-bottom: 72px; }

.filtros { background: #fff; border-radius: var(--raio); padding: 20px; align-self: start; position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; box-shadow: var(--sombra-1); scrollbar-width: thin; }
.filtros-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.filtros-cab h2 { font-size: 1.25rem; color: var(--navy); }
.fechar-filtros, .ver-resultados { display: none; }
.so-favs { display: flex; align-items: center; gap: 10px; background: #fff0f4; color: #c2185b; border-radius: 12px; padding: 10px 14px; font-weight: 700; cursor: pointer; margin-bottom: 6px; }
.so-favs input { accent-color: #e0245e; width: 18px; height: 18px; }
.grupo { border: 0; border-top: 1px solid var(--borda); padding: 16px 0; }
.grupo > label, .grupo > legend { display: flex; justify-content: space-between; font-weight: 700; font-size: .9rem; margin-bottom: 10px; width: 100%; }
.grupo > legend { float: left; }
.grupo output { color: var(--navy-3); font-weight: 700; }
.grupo input[type=search], .grupo input[type=number], .grupo select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--borda); border-radius: 10px; background: #fff; transition: border-color .2s; }
.grupo input:focus, .grupo select:focus { outline: none; border-color: var(--navy-3); }
.faixa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--navy-3) var(--p, 100%), #dfe5ec var(--p, 100%)); cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--navy-3); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--navy-3); }

.pilulas { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.pilula input { position: absolute; opacity: 0; pointer-events: none; }
.pilula span { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--borda); border-radius: 99px; font-size: .88rem; font-weight: 600; cursor: pointer; transition: all .15s; user-select: none; }
.pilula small { color: var(--suave); font-weight: 500; margin-left: 2px; }
.pilula input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pilula input:checked + span small { color: #aebbd0; }
.pilula input:focus-visible + span { outline: 2px solid var(--ouro); }

.barra-resultados { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.barra-resultados p { font-size: 1.05rem; color: var(--suave); }
.barra-resultados strong { color: var(--navy); font-family: var(--titulo); font-size: 1.3rem; }
.barra-direita { display: flex; align-items: center; gap: 10px; }
.ordem { font-size: .9rem; color: var(--suave); }
.ordem select { margin-left: 6px; padding: 9px 12px; border: 1.5px solid var(--borda); border-radius: 10px; background: #fff; color: var(--texto); font-weight: 600; cursor: pointer; }
.botao-filtros { display: none; padding: 9px 16px; border: 0; color: #fff; background: var(--navy); border-radius: 10px; font-weight: 700; cursor: pointer; }
.ativos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.ativos:empty { display: none; }
.tag { background: #e8eef7; color: var(--navy-2); border: 0; border-radius: 99px; padding: 6px 14px; font-size: .85rem; font-weight: 700; cursor: pointer; transition: background .15s; }
.tag:hover { background: #d3dff0; }

.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }

/* ---------- Cartão do carro ---------- */
.carro { position: relative; background: #fff; border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra-1); transition: box-shadow .25s, transform .25s; display: flex; flex-direction: column; }
.carro:hover { box-shadow: var(--sombra-2); transform: translateY(-6px); }
.carro-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }
.foto { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e3e8ef, #cfd8e3); overflow: hidden; }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s, opacity .35s; }
.foto .foto-alt { opacity: 0; }
.carro:hover .foto img { transform: scale(1.06); }
.carro:hover .foto .foto-alt { opacity: 1; }
.foto::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.35)); pointer-events: none; }
.sem-foto { display: grid; place-items: center; height: 100%; min-height: 160px; color: var(--suave); font-size: .9rem; font-weight: 600; }
.selos { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; flex-wrap: wrap; }
.selo { background: linear-gradient(135deg, var(--ouro-2), var(--ouro)); color: var(--navy); font-size: .7rem; font-weight: 800; padding: 4px 9px; border-radius: 6px; text-transform: uppercase; letter-spacing: .3px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.selo.novo { background: linear-gradient(135deg, #3ddc84, #18a957); color: #fff; }
.qtd-fotos { position: absolute; bottom: 10px; right: 10px; z-index: 2; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; backdrop-filter: blur(4px); }
.carro-info { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.carro-info h3 { font-size: 1.08rem; font-weight: 800; color: var(--navy); letter-spacing: -.2px; padding-right: 8px; }
.carro-info .versao { color: var(--suave); font-size: .86rem; min-height: 1.35em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preco { font-size: 1.55rem; font-weight: 800; color: var(--texto); margin: 12px 0 12px; letter-spacing: -.5px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.specs span { background: var(--fundo); color: #44515f; font-size: .8rem; font-weight: 600; padding: 4px 9px; border-radius: 8px; }

.fav { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: transform .15s; }
.fav svg, .fav-grande svg { width: 21px; height: 21px; fill: none; stroke: #44515f; stroke-width: 2; transition: fill .2s, stroke .2s; }
.fav:hover { transform: scale(1.1); }
.fav.ativo svg, .fav-grande.ativo svg { fill: #e0245e; stroke: #e0245e; }
.pulsar { animation: pulsar .4s ease; }
@keyframes pulsar { 50% { transform: scale(1.3); } }

/* Esqueleto de carregamento */
.esqueleto { min-height: 340px; background: linear-gradient(100deg, #eceff4 30%, #f7f8fb 50%, #eceff4 70%) !important; background-size: 300% 100% !important; animation: brilho 1.3s linear infinite; box-shadow: none !important; border-radius: var(--raio); }
@keyframes brilho { from { background-position: 100% 0; } to { background-position: 0 0; } }

.vazio { grid-column: 1 / -1; background: #fff; border-radius: var(--raio); text-align: center; padding: 56px 24px; color: var(--suave); display: flex; flex-direction: column; gap: 12px; align-items: center; box-shadow: var(--sombra-1); }
.vazio strong { color: var(--navy); font-size: 1.15rem; font-family: var(--titulo); }
.vazio-icone { font-size: 3rem; }
.grande-vazio { margin: 40px 0; }

/* ---------- Como funciona ---------- */
.faixa-branca { background: #fff; padding: 80px 0; }
.passos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; counter-reset: p; }
.passo { position: relative; background: var(--fundo); border-radius: var(--raio); padding: 30px 24px 26px; transition: transform .25s, box-shadow .25s; }
.passo:hover { transform: translateY(-5px); box-shadow: var(--sombra-2); background: #fff; }
.num-passo { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--navy-3), var(--navy)); color: var(--ouro-2); font-family: var(--titulo); font-weight: 900; font-size: 1.3rem; margin-bottom: 16px; box-shadow: 0 8px 18px rgba(15,45,82,.3); }
.passo h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 6px; }
.passo p { color: var(--suave); font-size: .95rem; }

/* ---------- Faixa de troca ---------- */
.faixa-cta { padding: 0 0 80px; background: #fff; }
.cta-linha { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 44px 48px; border-radius: 24px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(500px 220px at 90% 0%, rgba(245,179,1,.35), transparent 70%), linear-gradient(135deg, var(--navy), var(--navy-3)); box-shadow: var(--sombra-2); }
.cta-linha::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 12px, transparent 12px 24px); }
.cta-linha > * { position: relative; }
.cta-linha h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.cta-linha p { color: #c9d4e3; }

/* ---------- Sobre + FAQ ---------- */
.faixa-branca + .faixa-cta + .faixa-branca { padding-top: 0; }
.loja-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.loja-grid > div > p { color: var(--suave); margin-bottom: 20px; }
.vantagens { list-style: none; display: grid; gap: 12px; }
.vantagens li { background: var(--fundo); border-radius: 14px; padding: 16px 20px; display: flex; flex-direction: column; border-left: 4px solid var(--ouro); }
.vantagens strong { color: var(--navy); }
.vantagens span { color: var(--suave); font-size: .92rem; }
.faq details { background: var(--fundo); border-radius: 14px; margin-bottom: 10px; overflow: hidden; transition: background .2s; }
.faq details[open] { background: #fff; box-shadow: var(--sombra-1); border: 1px solid var(--borda); }
.faq summary { padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--ouro); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--suave); }

/* ---------- Página do carro ---------- */
.pagina-carro { padding-top: 22px; padding-bottom: 48px; }
.trilha { font-size: .88rem; color: var(--suave); margin-bottom: 16px; }
.trilha a { color: var(--suave); text-decoration: none; }
.trilha a:hover { color: var(--navy-3); }
.trilha span { color: var(--texto); font-weight: 600; }
.carro-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.coluna-principal { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.galeria { background: #fff; border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra-1); }
.galeria .principal { position: relative; aspect-ratio: 16 / 10; background: #0b1420; }
.galeria .principal > img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; transition: opacity .12s; }
.galeria .principal > img.trocando { opacity: .3; }
.seta { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.9rem; line-height: 1; cursor: pointer; z-index: 2; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: transform .15s; }
.seta:hover { transform: translateY(-50%) scale(1.08); }
.seta.esq { left: 14px; } .seta.dir { right: 14px; }
.ampliar { position: absolute; bottom: 14px; right: 14px; background: rgba(0,0,0,.6); color: #fff; border: 0; font-size: .85rem; font-weight: 600; padding: 7px 12px; border-radius: 8px; cursor: pointer; backdrop-filter: blur(4px); z-index: 2; }
.miniaturas { display: flex; gap: 8px; padding: 12px; overflow-x: auto; scrollbar-width: thin; }
.miniaturas img { width: 100px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .5; border: 2.5px solid transparent; flex-shrink: 0; transition: opacity .2s, border-color .2s; }
.miniaturas img:hover { opacity: .85; }
.miniaturas img.ativa { opacity: 1; border-color: var(--ouro); }
.cabecalho-carro, .ficha, .bloco { background: #fff; border-radius: var(--raio); padding: 24px; box-shadow: var(--sombra-1); }
.cabecalho-carro { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cabecalho-carro h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; color: var(--navy); letter-spacing: -.8px; line-height: 1.1; }
.cabecalho-carro .versao { color: var(--suave); font-size: 1.08rem; margin-top: 4px; }
.acoes-carro { display: flex; gap: 8px; }
.botao-icone { width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--borda); background: #fff; display: grid; place-items: center; cursor: pointer; font-size: 1.2rem; transition: all .15s; }
.botao-icone:hover { border-color: var(--navy-3); transform: translateY(-2px); }
.ficha { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.ficha div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: var(--fundo); border-radius: 12px; padding: 12px 14px; }
.ficha-ic { grid-row: span 2; font-size: 1.4rem; }
.ficha span:not(.ficha-ic) { color: var(--suave); font-size: .78rem; }
.ficha strong { color: var(--navy); }
.bloco h2 { font-size: 1.25rem; margin-bottom: 12px; color: var(--navy); }
.descricao { white-space: pre-line; color: #3a4654; }

.simulador { background: linear-gradient(135deg, #fff, #f7f9fd); border: 1px solid var(--borda); }
.sim-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.sim-grid label { display: block; margin-bottom: 14px; font-weight: 600; }
.sim-grid label small { color: var(--suave); font-weight: 500; }
.sim-label { font-weight: 600; margin: 22px 0 10px; }
.prazos { display: flex; gap: 8px; flex-wrap: wrap; }
.prazos button { padding: 9px 16px; border-radius: 10px; border: 1.5px solid var(--borda); background: #fff; font-weight: 700; cursor: pointer; transition: all .15s; }
.prazos button.ativo { background: var(--navy); border-color: var(--navy); color: #fff; }
.sim-resultado { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 14px 30px rgba(15,45,82,.3); }
.sim-resultado span { color: #b8c5d8; font-size: .85rem; }
.sim-resultado strong { font-family: var(--titulo); font-size: 1.9rem; color: var(--ouro-2); letter-spacing: -.5px; }
.sim-resultado small { color: #b8c5d8; margin-bottom: 12px; }
.sim-aviso { font-size: .8rem; color: var(--suave); margin-top: 16px; }

.quadro-preco { background: #fff; border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 92px; box-shadow: var(--sombra-2); border-top: 5px solid var(--ouro); }
.preco-label { color: var(--suave); font-size: .85rem; font-weight: 600; }
.preco.grande { font-size: 2.4rem; margin: -6px 0 0; color: var(--navy); }
.parcela-a-partir { font-size: .9rem; color: var(--suave); margin-top: -6px; }
.parcela-a-partir strong { color: var(--texto); }
.contato-carro { display: flex; flex-direction: column; gap: 10px; background: var(--fundo); border-radius: 14px; padding: 16px; margin-top: 4px; }
.contato-tit { font-weight: 700; color: var(--navy); }
.contato-carro > input { padding: 12px 14px; border: 1.5px solid var(--borda); border-radius: 10px; background: #fff; }
.contato-carro > input:focus { outline: none; border-color: var(--navy-3); }
.interesses { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.interesses input { position: absolute; opacity: 0; pointer-events: none; }
.interesses span { display: block; text-align: center; padding: 8px 6px; border: 1.5px solid var(--borda); border-radius: 10px; font-size: .8rem; font-weight: 600; background: #fff; cursor: pointer; height: 100%; display: grid; place-items: center; transition: all .15s; }
.interesses input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.interesses input:focus-visible + span { outline: 2px solid var(--ouro); }
.vendedor { border-top: 1px solid var(--borda); margin-top: 6px; padding-top: 16px; display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: var(--suave); }
.vendedor strong { color: var(--navy); font-family: var(--titulo); font-size: 1.05rem; }
.veja-tambem { padding-bottom: 64px; }
.veja-tambem .carrossel { grid-auto-columns: calc((100% - 3 * 20px) / 4); }

.barra-celular { display: none; }

/* Tela cheia */
.tela-cheia { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(5,10,18,.96); }
.tela-cheia[open] { display: grid; place-items: center; }
.tela-cheia::backdrop { background: rgba(0,0,0,.8); }
.tela-cheia img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.tc-fechar { position: absolute; top: 18px; right: 22px; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; z-index: 3; }
.tela-cheia .contador { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; background: rgba(255,255,255,.12); padding: 5px 14px; border-radius: 99px; font-size: .9rem; }

/* ---------- Formulários (cadastro / admin) ---------- */
.pagina-form { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 40px 0; background:
  radial-gradient(700px 400px at 100% 0%, rgba(245,179,1,.12), transparent 60%),
  radial-gradient(700px 400px at 0% 100%, rgba(22,64,122,.12), transparent 60%), var(--fundo); }
.caixa { background: #fff; border-radius: 22px; padding: 36px; width: 100%; max-width: 480px; margin: 48px auto; box-shadow: var(--sombra-2); border-top: 5px solid var(--ouro); }
.caixa h1 { font-size: 1.9rem; margin-bottom: 6px; color: var(--navy); font-weight: 900; letter-spacing: -.5px; }
.caixa > p { color: var(--suave); margin-bottom: 22px; }
.form { display: grid; gap: 14px; }
.campo { display: flex; flex-direction: column; gap: 5px; }
.campo label { font-weight: 600; font-size: .9rem; }
.campo input, .campo select, .campo textarea { padding: 12px 14px; border: 1.5px solid var(--borda); border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(22,64,122,.1); }
.campo textarea { min-height: 110px; resize: vertical; }
.consentimento { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--suave); }
.consentimento input { margin-top: 3px; accent-color: var(--navy-3); }
.aviso { padding: 12px 14px; border-radius: 10px; font-size: .92rem; }
.aviso.ok { background: #e6f7ec; color: #156b34; }
.aviso.erro { background: #fdeceb; color: #b22a2a; }
.aviso.info { background: #e8eef7; color: var(--navy-2); }

/* ---------- Admin ---------- */
.tag-admin { background: var(--ouro); color: var(--navy); font-family: var(--corpo); font-size: .66rem; font-weight: 800; padding: 3px 7px; border-radius: 5px; margin-left: 6px; vertical-align: middle; letter-spacing: .5px; }
.admin-topo .topo-linha { justify-content: space-between; }
.admin-usuario { display: flex; align-items: center; gap: 12px; color: var(--suave); font-size: .9rem; }
.papel { font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .4px; }
.papel.dono { background: #fff4d1; color: #8a6400; }
.papel.gestor { background: #e8eef7; color: var(--navy-2); }
.admin { padding: 28px 24px 64px; }
.abas { display: flex; gap: 4px; border-bottom: 2px solid var(--borda); margin-bottom: 22px; overflow-x: auto; }
.aba { background: none; border: 0; padding: 12px 18px; font-weight: 700; color: var(--suave); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.aba.ativa { color: var(--navy); border-bottom-color: var(--ouro); }
.aba .num { background: var(--fundo); border-radius: 99px; padding: 1px 8px; font-size: .8rem; margin-left: 4px; }
.login-abas { display: flex; background: var(--fundo); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.login-abas button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 700; color: var(--suave); cursor: pointer; }
.login-abas button.ativa { background: #fff; color: var(--navy); box-shadow: var(--sombra-1); }
.painel-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.painel-cab input, .painel-cab select { padding: 10px 14px; border: 1.5px solid var(--borda); border-radius: 10px; background: #fff; }
.painel-cab input[type=search] { min-width: 260px; }
.form-equipe { display: flex; gap: 10px; flex-wrap: wrap; background: #fff; padding: 16px; border-radius: var(--raio); box-shadow: var(--sombra-1); margin-bottom: 16px; align-items: center; }
.form-equipe input { flex: 1; min-width: 220px; }
.dica { background: #e8eef7; color: var(--navy-2); border-radius: 12px; padding: 14px 18px; font-size: .9rem; margin-bottom: 16px; }
.tabela-wrap { background: #fff; border-radius: var(--raio); overflow-x: auto; box-shadow: var(--sombra-1); }
.tabela-admin { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabela-admin th { text-align: left; padding: 13px 16px; background: #f8fafc; color: var(--suave); font-size: .76rem; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.tabela-admin td { padding: 12px 16px; border-top: 1px solid var(--borda); vertical-align: middle; }
.tabela-admin tr:hover td { background: #fafbfd; }
.tabela-admin .mini { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; background: #dde3e8; display: block; }
.tabela-admin .acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.status { font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.status.ok { background: #e6f7ec; color: #156b34; }
.status.vendido { background: #fdeceb; color: #b22a2a; }
.status.oculto { background: #eceff3; color: var(--suave); }
.status.dest { background: #fff4d1; color: #8a6400; }
.status.espera { background: #fff4d1; color: #8a6400; }

.janela { border: 0; border-radius: 20px; padding: 0; width: min(860px, 96vw); max-height: 94vh; margin: auto; box-shadow: var(--sombra-2); }
.janela::backdrop { background: rgba(7,23,41,.6); backdrop-filter: blur(3px); }
.janela form { padding: 28px; }
.janela h2 { margin-bottom: 18px; color: var(--navy); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.opcoes { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 8px; }
.opcoes label { display: flex; gap: 6px; align-items: center; cursor: pointer; font-weight: 500; }
.fotos-edit { display: flex; flex-wrap: wrap; gap: 10px; }
.foto-item { position: relative; width: 124px; }
.foto-item img { width: 124px; height: 93px; object-fit: cover; border-radius: 8px; display: block; }
.foto-item .capa { position: absolute; top: 5px; left: 5px; background: var(--ouro); color: var(--navy); font-size: .64rem; font-weight: 800; padding: 1px 6px; border-radius: 4px; }
.foto-item .ctrl { display: flex; justify-content: space-between; margin-top: 4px; }
.foto-item .ctrl button { background: var(--fundo); border: 0; border-radius: 6px; padding: 3px 9px; cursor: pointer; }
.upload { border: 2px dashed #cdd6e2; border-radius: 12px; padding: 20px; text-align: center; color: var(--suave); cursor: pointer; font-weight: 600; transition: all .2s; }
.upload:hover { border-color: var(--navy-3); color: var(--navy-3); background: #f7f9fd; }
.janela-rodape { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ---------- Admin: visão geral ---------- */
.geral-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.geral-cab h1 { font-size: 2rem; font-weight: 900; color: var(--navy); letter-spacing: -.5px; }
.geral-cab p { color: var(--suave); }
.geral-cab p::first-letter { text-transform: uppercase; }
.geral-atalhos { display: flex; gap: 10px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { position: relative; overflow: hidden; text-align: left; border: 0; cursor: pointer; background: #fff; border-radius: var(--raio); padding: 18px 18px 16px; box-shadow: var(--sombra-1); display: flex; flex-direction: column; gap: 2px; transition: transform .2s, box-shadow .2s; }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ouro); }
.kpi:first-child { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; }
.kpi:first-child .kpi-rotulo, .kpi:first-child .kpi-sub { color: #b9c8dc; }
.kpi:first-child .kpi-valor { color: var(--ouro-2); }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--sombra-2); }
.kpi-icone { font-size: 1.4rem; margin-bottom: 6px; }
.kpi-rotulo { font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; color: var(--suave); font-weight: 700; }
.kpi-valor { font-family: var(--titulo); font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1.15; white-space: nowrap; }
.kpi-sub { font-size: .82rem; color: var(--suave); }
.geral-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cartao-adm { background: #fff; border-radius: var(--raio); padding: 20px; box-shadow: var(--sombra-1); min-width: 0; }
.cartao-adm h2 { font-size: 1.05rem; color: var(--navy); margin-bottom: 14px; }
.pendencias { list-style: none; display: grid; gap: 8px; }
.pendencias li > * { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 11px 14px; border-radius: 10px; font-size: .9rem; border-left: 4px solid; }
.pendencias button { cursor: pointer; transition: filter .2s; }
.pendencias button:hover { filter: brightness(.96); }
.pendencias button span { font-weight: 800; }
.pendencias .p-erro > * { background: #fdeceb; color: #9e2222; border-color: var(--perigo); }
.pendencias .p-aviso > * { background: #fff6dc; color: #7a5800; border-color: var(--ouro); }
.pendencias .p-info > * { background: #eef3fa; color: var(--navy-2); border-color: var(--navy-3); }
.pendencias .p-ok > * { background: #e6f7ec; color: #156b34; border-color: #22a355; }
.barras { display: grid; gap: 10px; }
.barra { display: grid; grid-template-columns: 110px 1fr 32px; gap: 10px; align-items: center; font-size: .9rem; }
.barra span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra div { background: var(--fundo); border-radius: 99px; height: 12px; overflow: hidden; }
.barra i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--navy-3), var(--ouro)); animation: crescer .8s ease-out; }
.barra b { text-align: right; color: var(--navy); }
@keyframes crescer { from { width: 0; } }
.lista-mini { list-style: none; display: grid; gap: 6px; }
.lista-mini button, .lista-mini .cli { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; text-align: left; padding: 8px; border-radius: 10px; cursor: pointer; }
.lista-mini .cli { cursor: default; }
.lista-mini button:hover, .lista-mini .cli:hover { background: var(--fundo); }
.lista-mini img, .lista-mini .ph { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; background: #dde3e8; display: grid; place-items: center; flex-shrink: 0; }
.lista-mini button > span:not(.ph), .lista-mini .cli > span:not(.avatar) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lista-mini strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista-mini small { color: var(--suave); font-size: .8rem; }
.lista-mini em { font-style: normal; font-weight: 700; font-size: .82rem; color: var(--suave); white-space: nowrap; }
.lista-mini em.alerta, .dias.alerta { color: var(--perigo); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-3), var(--navy)); color: var(--ouro-2); font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.vazio-mini, .vazio-adm { color: var(--suave); font-size: .9rem; padding: 10px; }
.vazio-adm { text-align: center; padding: 34px; }

.pedir-nome { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: linear-gradient(135deg, #fff8e1, #fff); border: 1.5px solid var(--ouro); border-radius: var(--raio); padding: 14px 18px; margin-bottom: 18px; }
.pedir-nome span { flex: 1 1 260px; color: var(--navy); }
.pedir-nome input { padding: 9px 14px; border: 1.5px solid var(--borda); border-radius: 10px; min-width: 180px; flex: 1 1 180px; }
.usuario-nome { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; background: none; cursor: pointer; color: var(--suave); font-weight: 600; padding: 4px 6px; border-radius: 8px; }
.usuario-nome:hover { background: var(--fundo); color: var(--navy); }

/* ---------- Admin: lista de carros ---------- */
.painel-cab-dir { display: flex; gap: 10px; flex-wrap: wrap; }
.filtros-chip, .chips-opcionais { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1.5px solid var(--borda); background: #fff; border-radius: 99px; padding: 6px 14px; font-size: .86rem; font-weight: 600; cursor: pointer; color: var(--texto); transition: all .2s; }
.chip span { background: var(--fundo); border-radius: 99px; padding: 0 7px; margin-left: 4px; font-size: .78rem; }
.chip:hover { border-color: var(--navy-3); }
.chip.ativo { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.ativo span { background: var(--ouro); color: var(--navy); }
.chips-opcionais { margin-bottom: 4px; }
.chips-opcionais .chip { font-size: .78rem; padding: 4px 10px; }
#lista-carros .acoes { flex-wrap: nowrap; }
.tabela-admin .mini.sem { display: grid; place-items: center; font-size: .7rem; color: var(--suave); }
.linha-vendida td { opacity: .6; }
.dias { font-size: .86rem; font-weight: 600; white-space: nowrap; }
.nota { position: relative; display: inline-flex; align-items: center; width: 74px; height: 20px; background: var(--fundo); border-radius: 99px; overflow: hidden; cursor: help; }
.nota i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; }
.nota b { position: relative; width: 100%; text-align: center; font-size: .74rem; }
.nota.boa i { background: #9be0b3; } .nota.media i { background: #ffd977; } .nota.fraca i { background: #f6aaaa; }
.icone-adm { border: 1.5px solid var(--borda); background: #fff; border-radius: 8px; width: 32px; height: 32px; display: inline-grid; place-items: center; cursor: pointer; font-size: .95rem; filter: grayscale(1); opacity: .65; transition: all .2s; list-style: none; }
.icone-adm::-webkit-details-marker { display: none; }
.icone-adm:hover, .icone-adm.ligado { filter: none; opacity: 1; border-color: var(--navy-3); }
.mais-acoes { position: relative; }
.mais-acoes summary { filter: none; opacity: 1; font-weight: 800; }
.mais-acoes > div { position: absolute; right: 0; top: 38px; z-index: 20; background: #fff; border-radius: 12px; box-shadow: var(--sombra-2); padding: 6px; min-width: 230px; display: grid; }
.mais-acoes > div a, .mais-acoes > div button { text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--texto); text-decoration: none; font-size: .9rem; }
.mais-acoes > div a:hover, .mais-acoes > div button:hover { background: var(--fundo); }
.mais-acoes > div .perigo { color: var(--perigo); }
.tabela-wrap { overflow: visible; }
@media (max-width: 1100px) { .tabela-wrap { overflow-x: auto; } }

/* ---------- Admin: formulário do carro ---------- */
.preco-previa { color: #156b34; font-weight: 700; margin-left: 4px; }
.upload.arrastando { border-color: var(--ouro); background: #fff8e1; color: var(--navy); }
.qualidade { border-radius: 12px; padding: 12px 14px; background: var(--fundo); display: grid; gap: 6px; font-size: .88rem; }
.qualidade-topo { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qualidade-topo span { color: var(--suave); }
.qualidade-barra { height: 8px; background: #e2e7ef; border-radius: 99px; overflow: hidden; }
.qualidade-barra i { display: block; height: 100%; border-radius: 99px; transition: width .4s; }
.qualidade.boa .qualidade-barra i { background: #22a355; } .qualidade.media .qualidade-barra i { background: var(--ouro); } .qualidade.fraca .qualidade-barra i { background: var(--perigo); }
.qualidade small { color: var(--suave); }

@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:first-child { grid-column: 1 / -1; }
  .kpi { padding: 14px; }
  .kpi-valor { font-size: 1.25rem; }
  .geral-grid { grid-template-columns: 1fr; }
  .geral-cab h1 { font-size: 1.6rem; }
  .painel-cab input[type=search] { min-width: 0; width: 100%; }
}

/* ---------- Rodapé ---------- */
.rodape { background: linear-gradient(180deg, var(--navy) 0%, #061325 100%); color: #a9b7c9; padding: 56px 0 0; font-size: .92rem; }
.rodape-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; padding-bottom: 36px; }
.rodape p { margin-bottom: 6px; }
.rodape a:not(.botao-whats) { color: #d6e0ec; }
.rodape .logo { color: #fff; display: inline-block; margin-bottom: 12px; }
.rodape strong { color: #fff; }
.rodape .botao-whats { margin-top: 8px; }
.copy { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; padding-bottom: 22px; font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.copy a { color: #6f8097 !important; }

/* ---------- WhatsApp flutuante ---------- */
.whats-flutuante { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.whats-botao { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--whats), var(--whats-2)); cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(18,140,74,.45); transition: transform .2s; }
.whats-botao::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--whats); animation: onda 2.2s ease-out infinite; z-index: -1; }
.whats-botao:hover { transform: scale(1.08); }
.whats-botao svg { width: 32px; height: 32px; fill: #fff; }
.whats-dica { position: absolute; right: 74px; white-space: nowrap; background: #fff; color: var(--texto); font-weight: 700; font-size: .88rem; padding: 8px 14px; border-radius: 10px; box-shadow: var(--sombra-2); animation: dica 6s ease 1.5s both; pointer-events: none; }
.whats-flutuante.aberto .whats-dica { display: none; }
.whats-flutuante.aberto .whats-botao::before { animation: none; }
@keyframes onda { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes dica { 0% { opacity: 0; transform: translateX(10px); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.whats-painel { width: min(340px, calc(100vw - 44px)); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.25); animation: subir .25s ease; }
@keyframes subir { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.whats-cab { position: relative; background: linear-gradient(135deg, #0b6b3a, var(--whats-2)); color: #fff; padding: 18px 50px 16px 18px; display: flex; flex-direction: column; }
.whats-cab strong { font-family: var(--titulo); font-size: 1.1rem; }
.whats-cab span { font-size: .8rem; opacity: .9; display: flex; align-items: center; gap: 6px; }
.online { width: 8px; height: 8px; border-radius: 50%; background: #7dff9f; display: inline-block; box-shadow: 0 0 0 3px rgba(125,255,159,.3); }
.whats-fechar { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.18); color: #fff; border: 0; width: 30px; height: 30px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.whats-corpo { padding: 16px; background: #efeae2; display: flex; flex-direction: column; gap: 8px; }
.balao { background: #fff; padding: 10px 14px; border-radius: 0 12px 12px 12px; align-self: flex-start; font-size: .92rem; box-shadow: 0 1px 1px rgba(0,0,0,.08); margin-bottom: 4px; }
.whats-opcao { display: flex; align-items: center; gap: 10px; background: #fff; padding: 11px 14px; border-radius: 12px; text-decoration: none; color: var(--texto); font-weight: 600; font-size: .92rem; transition: transform .15s, box-shadow .15s; }
.whats-opcao:hover { transform: translateX(4px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.whats-opcao span { font-size: 1.15rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; box-shadow: var(--sombra-2); opacity: 0; pointer-events: none; transition: all .25s; z-index: 80; }
.toast.mostrar { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animação ao rolar ---------- */
.revelar { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease, box-shadow .25s; }
.revelar.visivel { opacity: 1; transform: none; }
.carro.revelar.visivel:hover { transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar { opacity: 1; transform: none; }
}

/* ---------- Telas menores ---------- */
@media (max-width: 1100px) {
  .hero-carro { display: none; }
  .carrossel, .veja-tambem .carrossel { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .passos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .catalogo { grid-template-columns: 1fr; }
  .botao-filtros { display: inline-block; }
  .filtros { position: fixed; inset: 0 auto 0 0; width: min(360px, 90vw); max-height: none; z-index: 70; border-radius: 0 20px 20px 0; transform: translateX(-105%); transition: transform .25s; top: 0; }
  .filtros-abertos .filtros { transform: none; box-shadow: 0 0 0 100vmax rgba(7,23,41,.55); }
  .fechar-filtros { display: block; background: none; border: 0; font-size: 1.9rem; cursor: pointer; line-height: 1; }
  .ver-resultados { display: flex; width: 100%; margin-top: 12px; position: sticky; bottom: 0; }
  .carro-layout { grid-template-columns: 1fr; }
  .quadro-preco { position: static; }
  .loja-grid { grid-template-columns: 1fr; gap: 36px; }
  .sim-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .topo-linha { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px 14px; }
  .busca-topo { order: 3; max-width: none; flex-basis: 100%; }
  .menu { gap: 16px; }
  .menu > a:not(.cadastro-link):not(.link-favs) { display: none; }
  .hero { padding: 44px 0 56px; }
  .hero-busca { grid-template-columns: 1fr; }
  .numeros { gap: 22px; }
  .numeros strong { font-size: 1.5rem; }
  .carrossel, .veja-tambem .carrossel { grid-auto-columns: 78%; }
  .passos { grid-template-columns: 1fr; }
  .cta-linha { padding: 32px 24px; }
  .faixa-branca { padding: 56px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .rodape-grid { grid-template-columns: 1fr; }
  .caixa { margin: 20px auto; padding: 26px 22px; }
  .interesses { grid-template-columns: 1fr; }
  .whats-flutuante { right: 14px; bottom: 14px; }
  .com-barra .whats-flutuante { bottom: 86px; }
  .barra-celular { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: #fff; padding: 12px 16px; justify-content: space-between; align-items: center; gap: 12px; box-shadow: 0 -6px 24px rgba(10,31,58,.12); }
  .barra-celular div { display: flex; flex-direction: column; min-width: 0; }
  .barra-celular small { color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .barra-celular strong { font-family: var(--titulo); font-size: 1.3rem; color: var(--navy); }
  .com-barra .rodape { padding-bottom: 76px; }
  .seta { width: 40px; height: 40px; font-size: 1.6rem; }
}
