@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  color-scheme: light;
  --paper: #EEF1F0;
  --paper-deep: #E3E8E6;
  --ink: #182029;
  --ink-soft: #5A6670;
  --line: #C4CDCB;
  --brand: #2140A8;
  --ok: #1F9D6B;
  --warn: #E0A32E;
  --no: #C4503E;
  --na: #B7C0BE;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
header {
  border-bottom: 1px solid var(--line); background: var(--paper);
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: sticky; top: 0; z-index: 10;
}
.header-esq { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 34px; height: 34px; background: var(--brand); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo svg .q { fill: none; stroke: #fff; stroke-width: 1.6; }
.logo svg .q-br { fill: #fff; stroke: none; }
.logo svg .chk { stroke: var(--ok); stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 1; transition: opacity 0.15s; }
.logo.buscando svg .q-br { fill: none; stroke: #fff; }
.logo.buscando svg .chk { opacity: 0; }
.logo.buscando svg .q { animation: op-girar 1.2s linear infinite; }
.logo.buscando svg .q-tl { animation-delay: 0s; }
.logo.buscando svg .q-tr { animation-delay: .3s; }
.logo.buscando svg .q-br { animation-delay: .6s; }
.logo.buscando svg .q-bl { animation-delay: .9s; }
@keyframes op-girar {
  0%, 8%    { fill: #fff; }
  25%, 100% { fill: none; }
}
.brand-title { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand-sub { font-family: 'IBM Plex Mono'; font-size: 10.5px; color: var(--ink-soft); letter-spacing: 0.04em; }
.header-dir { font-size: 13px; }
.header-dir a { color: var(--ink-soft); text-decoration: none; }
.header-dir a:hover { color: var(--brand); }

main { max-width: 720px; margin: 0 auto; padding: 28px 20px 80px; }
.main-estreito { max-width: 380px; }
.main-admin { max-width: 1040px; }
h1 {
  font-family: 'Plus Jakarta Sans'; font-size: 26px; line-height: 1.15; font-weight: 700;
  letter-spacing: -0.03em; margin: 0 0 8px;
}
.lead { color: var(--ink-soft); font-size: 14px; line-height: 1.5; margin: 0 0 24px; }

.hero { position: relative; text-align: center; padding: 40px 0 4px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: -20px -20px auto -20px; height: 260px; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) .5px, transparent .5px), linear-gradient(90deg, var(--line) .5px, transparent .5px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
}
.badge {
  position: relative; display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-family: 'IBM Plex Mono'; font-size: 10.5px;
  color: var(--ink-soft); letter-spacing: .03em; margin-bottom: 20px;
}
.badge b { color: var(--ok); font-weight: 600; }
.hero h1 { position: relative; font-size: clamp(28px, 6vw, 40px); margin: 0 0 12px; }
.hero h1 .destaque { color: var(--brand); }
.hero .lead { position: relative; max-width: 440px; margin: 0 auto 32px; }

.search-pill {
  position: relative; z-index: 5; max-width: 620px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; display: flex; align-items: stretch;
  box-shadow: 0 8px 24px rgba(24,32,41,.08);
}
.campo-pill {
  flex: 1; padding: 10px 24px; text-align: left; position: relative; min-width: 0;
  cursor: text; transition: background .15s;
}
.campo-pill:first-child { border-radius: 999px 0 0 999px; }
.campo-pill:hover, .campo-pill:focus-within { background: var(--paper); }
.campo-pill + .campo-pill { border-left: 1px solid var(--paper-deep); }
.campo-pill label {
  display: block; font-family: 'IBM Plex Mono'; font-size: 9.5px; font-weight: 400;
  letter-spacing: .03em; text-transform: uppercase; color: #9AA4A2; margin-bottom: 3px;
}
.campo-pill input[type=text] {
  border: none; padding: 0; background: transparent; font-size: 14px; width: 100%; color: var(--ink);
}
.campo-pill input[type=text]:focus { border: none; }
.btn-busca-circular {
  width: 46px; height: 46px; border-radius: 50%; background: var(--brand); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer;
  margin: 6px 6px 6px 0; align-self: center; transition: filter .15s;
}
.btn-busca-circular:disabled { opacity: .4; cursor: default; }
.btn-busca-circular:not(:disabled):hover { filter: brightness(1.08); }
.btn-busca-label { display: none; margin-left: 8px; font-size: 14px; font-weight: 600; }

.trust-line {
  position: relative; display: flex; justify-content: center; gap: 24px; margin-top: 22px;
  font-size: 11.5px; color: var(--ink-soft); flex-wrap: wrap;
}
.trust-line span { display: inline-flex; align-items: center; gap: 5px; }
.trust-line .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }

@media (max-width: 560px) {
  .search-pill { flex-direction: column; border-radius: 20px; }
  .campo-pill + .campo-pill { border-left: none; border-top: 1px solid var(--paper-deep); }
  .btn-busca-circular { width: auto; height: 44px; border-radius: 10px; margin: 8px 12px 12px; padding: 0 16px; }
  .btn-busca-label { display: inline; }
}

.campo { position: relative; margin-bottom: 14px; }
label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=password] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 15px; font-family: 'Plus Jakarta Sans'; outline: none;
}
input:focus { border-color: var(--brand); }
.dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(20,30,40,.12);
  max-height: 240px; overflow-y: auto; z-index: 20; display: none;
}
.dropdown.aberto { display: block; }
.dropdown-item {
  padding: 10px 14px; font-size: 13.5px; cursor: pointer; border-bottom: 1px solid var(--paper-deep);
}
.dropdown-item:hover, .dropdown-item.destaque { background: var(--paper); }
.dropdown-vazio { padding: 12px 14px; font-size: 13px; color: var(--ink-soft); }

button.botao, button.buscar {
  width: 100%; padding: 13px; background: var(--brand); color: #fff; border: none;
  border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 6px;
  font-family: 'Plus Jakarta Sans';
}
button.botao:disabled, button.buscar:disabled { opacity: .5; cursor: default; }
button.botao:not(:disabled):hover, button.buscar:not(:disabled):hover { filter: brightness(1.08); }

.status-msg { margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); font-family: 'IBM Plex Mono'; }
.erro-msg { margin-top: 14px; font-size: 13.5px; color: var(--no); background: #FBEAE7; border: 1px solid #F0C5BE; border-radius: 8px; padding: 10px 12px; }
.aviso-caixa { margin-top: 14px; font-size: 13px; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }

.resultados { margin-top: 28px; }
.grupo-status { margin-bottom: 22px; }
.grupo-titulo {
  font-family: 'Plus Jakarta Sans'; font-weight: 700; font-size: 14px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.pastilha { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.rua-card {
  display: block; background: #fff; border: 1px solid var(--line); border-left-width: 4px;
  border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; font-size: 13.5px;
  line-height: 1.5; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s;
}
.rua-card:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(20,30,40,.08); }
.rua-nome { font-weight: 600; margin-bottom: 3px; }
.rua-nome .ver-mapa { font-weight: 500; color: var(--brand); font-size: 12px; white-space: nowrap; }
.rua-motivo { color: var(--ink-soft); font-size: 12.5px; }

.feedback-caixa {
  margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; text-align: center;
}
.feedback-pergunta { font-size: 13.5px; color: var(--ink); margin-bottom: 12px; }
.feedback-botoes { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.feedback-botoes button {
  padding: 8px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-family: 'Plus Jakarta Sans'; cursor: pointer; transition: background .15s, border-color .15s;
}
.feedback-botoes button:hover { background: #fff; border-color: var(--brand); color: var(--brand); }
.feedback-obrigado { font-size: 13.5px; color: var(--ok); font-weight: 500; }

.rodape-link { margin-top: 18px; font-size: 13px; text-align: center; }
.rodape-link a { color: var(--brand); text-decoration: none; font-weight: 600; }

footer {
  max-width: 720px; margin: 0 auto; padding: 0 20px 40px; font-size: 11.5px;
  color: var(--ink-soft); line-height: 1.5;
}
footer a { color: var(--brand); }

.admin-secao { margin-bottom: 36px; }
.admin-secao h2 { font-family: 'Plus Jakarta Sans'; font-size: 17px; font-weight: 700; margin: 0 0 12px; }
.admin-tabela-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.admin-tabela { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.admin-tabela th, .admin-tabela td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--paper-deep); }
.admin-tabela th { font-family: 'IBM Plex Mono'; font-size: 10.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); }
.admin-tabela tr:last-child td { border-bottom: none; }
.tag-admin {
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 999px; font-family: 'IBM Plex Mono';
}
.tag-ok {
  background: #E1F5EE; color: var(--ok); font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 999px; font-family: 'IBM Plex Mono';
}
.tag-pendente {
  background: #FBF0DD; color: var(--warn); font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 999px; font-family: 'IBM Plex Mono';
}
.linha-pendente { background: #FFFBF3; }
.botao-mini {
  padding: 5px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  font-size: 12px; font-family: 'Plus Jakarta Sans'; cursor: pointer;
}
.botao-mini:hover { border-color: var(--brand); color: var(--brand); }
