/* ===========================================================
   meucarronainternet.com.br — estilos globais
   =========================================================== */
:root {
  --azul: #10306b;
  --azul-escuro: #0a1f47;
  --azul-claro: #2f6fed;
  --azul-suave: #e4ebf8;
  --laranja: #f2731d;
  --laranja-claro: #fde3cf;
  --fundo: #f4f5f8;
  --card: #ffffff;
  --ink: #171c26;
  --muted: #5c6675;
  --linha: #e1e4ea;
  --erro: #b3261e;
  --ok: #1e7f4f;
  --sombra: 0 10px 30px rgba(16, 48, 107, 0.08), 0 1px 3px rgba(0,0,0,0.05);
  --sombra-forte: 0 20px 50px rgba(16, 48, 107, 0.16);
  --raio: 16px;
  --raio-sm: 10px;
  --fonte: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --largura: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte);
  color: var(--ink);
  background: var(--fundo);
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: min(var(--largura), calc(100% - 32px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 245, 248, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--linha);
}
.topo .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--azul-escuro); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 34px; height: 34px; }
.logo span b { color: var(--laranja); }
.logo span i { font-style: normal; color: var(--azul-claro); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--azul-suave); text-decoration: none; }
.nav a.ativo { background: var(--azul-suave); color: var(--azul-escuro); }
.nav .btn { margin-left: 6px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--linha); border-radius: 10px; padding: 8px; cursor: pointer; }
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--fundo); border-bottom: 1px solid var(--linha); padding: 10px 16px 16px; gap: 4px; }
  .nav.aberto { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  background: var(--azul); color: #fff; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { background: var(--azul-escuro); text-decoration: none; transform: translateY(-1px); box-shadow: var(--sombra); }
.btn:active { transform: translateY(0); }
.btn.laranja { background: var(--laranja); color: #fff; }
.btn.laranja:hover { background: #d85f0f; }
.btn.fantasma { background: transparent; color: var(--azul-escuro); border-color: var(--azul); }
.btn.fantasma:hover { background: var(--azul-suave); box-shadow: none; }
.btn.pequeno { padding: 7px 14px; font-size: .85rem; }
.btn.bloco { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Cards de veículo ---------- */
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card-carro {
  background: var(--card); border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra);
  display: flex; flex-direction: column; color: var(--ink); transition: transform .2s, box-shadow .2s;
  border: 1px solid rgba(0,0,0,0.03);
}
.card-carro:hover { transform: translateY(-3px); box-shadow: var(--sombra-forte); text-decoration: none; }
.card-carro .foto { position: relative; aspect-ratio: 16/11; background: #e3e7ee; overflow: hidden; }
.card-carro .foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-carro:hover .foto img { transform: scale(1.04); }
.card-carro .selo { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--azul-escuro); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; }
.card-carro .selo.novo { background: var(--laranja); color: #fff; }
.card-carro .selo.seminovo { background: var(--azul-claro); color: #fff; }
.card-carro .titulo b { font-weight: 800; }
.card-carro .preco .fipe-abaixo { display: inline-block; margin-left: 8px; font-size: .68rem; font-weight: 800; color: var(--ok); background: #dff3e8; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.card-carro .contador-fotos { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; display: flex; gap: 5px; align-items: center; }
.card-carro .corpo { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-carro .preco { font-size: 1.25rem; font-weight: 800; color: var(--azul-escuro); }
.card-carro .preco small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.card-carro .titulo { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.card-carro .local { color: var(--muted); font-size: .88rem; display: flex; gap: 6px; align-items: center; }
.card-carro .local svg { width: 16px; height: 16px; flex: none; }
.card-carro .atributos { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 6px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.card-carro .atributos span { display: inline-flex; align-items: center; gap: 5px; }
.card-carro .atributos svg { width: 16px; height: 16px; opacity: .8; }

/* ---------- Formulários ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-weight: 700; font-size: .88rem; color: var(--azul-escuro); }
.campo .dica { font-size: .8rem; color: var(--muted); }
input[type=text], input[type=search], input[type=number], input[type=email], input[type=password], input[type=tel], input[type=url], select, textarea {
  font: inherit; font-size: .95rem; padding: 11px 14px; border: 1px solid var(--linha); border-radius: var(--raio-sm);
  background: #fff; color: var(--ink); width: 100%; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--azul-claro); box-shadow: 0 0 0 3px rgba(47,111,237,.18); }
textarea { min-height: 120px; resize: vertical; }
.linha-campos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; padding: 8px 12px; border: 1px solid var(--linha); border-radius: 999px; background: #fff; user-select: none; }
.chk input { accent-color: var(--azul); width: 16px; height: 16px; margin: 0; }
.chk:has(input:checked) { background: var(--azul-suave); border-color: var(--azul-claro); color: var(--azul-escuro); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.erro-msg { color: var(--erro); font-size: .85rem; font-weight: 600; }

/* ---------- Painéis ---------- */
.painel { background: var(--card); border-radius: var(--raio); box-shadow: var(--sombra); padding: 24px; border: 1px solid rgba(0,0,0,0.03); }
.painel + .painel { margin-top: 20px; }
.painel h2 { font-size: 1.2rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.painel h2 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--azul); color: #fff; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Busca ---------- */
.busca-caixa { position: relative; }
.busca-caixa input { padding-left: 44px; height: 54px; font-size: 1.02rem; border-radius: 999px; box-shadow: var(--sombra); border-color: transparent; }
.busca-caixa .lupa { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.sugestoes { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 14px; box-shadow: var(--sombra-forte); list-style: none; margin: 0; padding: 6px; z-index: 30; max-height: 320px; overflow: auto; display: none; }
.sugestoes.aberto { display: block; }
.sugestoes li { padding: 10px 12px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.sugestoes li:hover, .sugestoes li.ativo { background: var(--azul-suave); }
.sugestoes li .uf { font-size: .75rem; font-weight: 800; color: var(--azul-claro); background: var(--azul-suave); padding: 3px 8px; border-radius: 999px; }
.sugestoes li .qtd { font-size: .78rem; color: var(--muted); }

/* ---------- Diversos ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--azul-suave); color: var(--azul-escuro); padding: 5px 11px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.vazio { text-align: center; padding: 48px 20px; color: var(--muted); background: var(--card); border-radius: var(--raio); border: 1px dashed var(--linha); }
.vazio svg { width: 54px; height: 54px; margin: 0 auto 12px; color: var(--azul-claro); }
.migalhas { font-size: .88rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.migalhas a { color: var(--azul); font-weight: 600; }
.aviso-teste { background: var(--laranja-claro); color: #6b3100; font-size: .85rem; padding: 10px 16px; text-align: center; border-bottom: 1px solid #f7c9a3; }
.aviso-teste b { font-weight: 800; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--azul-escuro); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: var(--sombra-forte); opacity: 0; pointer-events: none; transition: .25s; z-index: 100; }
.toast.mostrar { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Rodapé ---------- */
.rodape { margin-top: 64px; background: var(--azul-escuro); color: #d5dcea; padding: 40px 0 28px; }
.rodape .colunas { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.rodape h4 { color: #fff; margin-bottom: 10px; font-size: .95rem; }
.rodape a { color: #d5dcea; display: block; padding: 3px 0; font-size: .92rem; }
.rodape .logo { color: #fff; margin-bottom: 10px; }
.rodape .logo span b { color: #ffa263; }
.rodape .logo span i { color: #8fb1ff; }
.rodape .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: .8rem; color: #9fb0cc; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .rodape .colunas { grid-template-columns: 1fr 1fr; } }

/* ---------- Animações ---------- */
@keyframes surgir { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.surgir { animation: surgir .5s ease both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Selos extras / nível Brasil ---------- */
.card-carro .selo.brasil { background: var(--laranja); color: #fff; top: 42px; }
.card-carro .selo.pausado { background: #ffe1dd; color: var(--erro); top: 42px; }
.card-carro .selo.brasil + .selo.pausado { top: 72px; }
.card-carro.nivel-brasil { border: 2px solid var(--laranja); box-shadow: 0 10px 30px rgba(242, 115, 29, .18); }
.selo-brasil { display: inline-flex; align-items: center; gap: 6px; background: var(--laranja); color: #fff; font-weight: 800; font-size: .78rem; padding: 5px 11px; border-radius: 999px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.status-pill.ativo { background: #dff3e8; color: var(--ok); }
.status-pill.pausado { background: #ffe1dd; color: var(--erro); }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.faixa-brasil { background: linear-gradient(135deg, #0a1f47, #10306b 60%, #2f6fed); color: #fff; border-radius: var(--raio); padding: 22px 24px; margin-bottom: 18px; }
.faixa-brasil h2 { color: #fff; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.faixa-brasil p { color: #c9d6ee; margin: 0 0 14px; font-size: .92rem; }
.faixa-brasil .grade .card-carro { border: 2px solid var(--laranja); }

/* ---------- Diferenciais ---------- */
.difs { display: flex; flex-wrap: wrap; gap: 6px; }
.dif { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--linha); color: var(--azul-escuro); font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.dif svg { width: 13px; height: 13px; color: var(--ok); }

/* ---------- Gamificação ---------- */
.anunciante-linha { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--linha); font-size: .75rem; }
.nivel-pill { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: .72rem; padding: 3px 8px; border-radius: 999px; color: #fff; background: var(--cor, #b87333); letter-spacing: .02em; }
.selo-mini { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .72rem; padding: 3px 8px; border-radius: 999px; background: var(--laranja-claro); color: #6b3100; }
.feitos { color: var(--muted); font-weight: 600; font-size: .72rem; }
.selos-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.selo-card { background: #fff; border: 1px solid var(--linha); border-radius: 12px; padding: 12px; text-align: center; font-size: .8rem; line-height: 1.3; }
.selo-card .ic { font-size: 1.7rem; display: block; margin-bottom: 4px; }
.selo-card b { display: block; color: var(--azul-escuro); }
.selo-card small { color: var(--muted); display: block; margin-top: 3px; }
.selo-card.bloqueado { opacity: .5; filter: grayscale(1); border-style: dashed; }
.selo-card.ganho { border-color: var(--laranja); box-shadow: 0 6px 16px rgba(242,115,29,.18); }
.nivel-caixa { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.nivel-caixa .medalha { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: var(--cor); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.nivel-caixa .barra-nivel { height: 10px; background: var(--linha); border-radius: 5px; overflow: hidden; margin: 8px 0 4px; }
.nivel-caixa .barra-nivel i { display: block; height: 100%; background: linear-gradient(90deg, var(--azul-claro), var(--laranja)); }
.como-pontuar { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; font-size: .85rem; }
.como-pontuar li { background: var(--fundo); border-radius: 10px; padding: 8px 12px; display: flex; justify-content: space-between; gap: 8px; }
.como-pontuar li b { color: var(--azul); white-space: nowrap; }
.anunciante-ficha .selos-lista { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.anunciante-ficha .stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.anunciante-ficha .stats b { display: block; font-size: 1.1rem; color: var(--azul-escuro); }
.status-pill.concluido { background: var(--laranja-claro); color: #6b3100; }

/* ---------- Login por e-mail ---------- */
.login-fundo { position: fixed; inset: 0; background: rgba(10, 20, 45, .55); display: grid; place-items: center; z-index: 200; padding: 16px; }
.login-caixa { position: relative; background: #fff; border-radius: var(--raio); box-shadow: var(--sombra-forte); padding: 26px 24px 20px; width: min(420px, 100%); }
.login-caixa h2 { margin: 0 0 6px; color: var(--azul-escuro); }
.login-caixa p { font-size: .92rem; }
.login-caixa label { display: block; font-weight: 700; font-size: .88rem; margin: 12px 0 6px; }
.login-caixa input { width: 100%; margin-bottom: 12px; }
.login-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--muted); padding: 6px; }
.login-erro { color: var(--erro); font-weight: 600; font-size: .88rem; margin: 8px 0 0; min-height: 1em; }
.link-sessao { white-space: nowrap; }

.login-links { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; font-size: .88rem; }
.login-links a[hidden] { display: none; }
.login-enviado-msg { font-size: .92rem; }
