/* Radar Licitações — visual "Mapa ao vivo": topo escuro com ciano, conteúdo claro, números em mono. */
:root {
  --n0: #060b16; --n1: #0b1324; --n2: #111c33; --nl: #1c2a45;
  --t: #eaf0f8; --t2: #9aa8bf; --t3: #62708a;
  --c: #22d3ee; --c-ink: #04202a; --c-escuro: #0e7490; --c-claro: #ecfeff; --c-borda: #a5f3fc;
  --fundo: #f6f7f9; --superficie: #ffffff; --tinta: #0c1424; --tinta-2: #56627a; --tinta-3: #8792a6;
  --linha: #e3e7ee; --linha-forte: #cdd4df;
  --verde: #047857; --verde-fundo: #e7f7ef; --amarelo: #a15c07; --amarelo-fundo: #fff4dc; --vermelho: #b42318; --vermelho-fundo: #fdeceb;
  --raio: 14px; --raio-g: 22px;
  --sombra: 0 1px 2px rgba(12, 20, 36, .05), 0 18px 40px -26px rgba(12, 20, 36, .35);
  --fonte: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font: 16px/1.55 var(--fonte); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; }
h2 { font-size: 1.2rem; margin-top: 1.75rem; font-weight: 800; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 .75rem; }
a { color: var(--c-escuro); text-underline-offset: 3px; }
a:hover { color: var(--tinta); }
a, button, .botao, .botao-texto, .caixa, select { touch-action: manipulation; -webkit-tap-highlight-color: rgba(34, 211, 238, .2); }
code { font-family: var(--mono); font-size: .88em; background: #eef1f6; padding: .1em .35em; border-radius: 6px; }
.codigo { display: block; font-family: var(--mono); font-size: .88rem; background: var(--n1); color: var(--t); border-radius: var(--raio); padding: 1rem 1.1rem; overflow-x: auto; white-space: pre; }
.mono, .valor, .num, .preco { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 1rem; top: -4rem; background: var(--c); color: var(--c-ink); padding: .6rem .9rem; border-radius: 10px; z-index: 60; font-weight: 700; }
.pular:focus { top: .6rem; }
.quieto { color: var(--tinta-2); }
.sub { color: var(--tinta-2); margin: 0; }
[aria-busy="true"] { cursor: progress; opacity: .8; }
.w { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* ===== Topo ===== */
.topo { position: sticky; top: 0; z-index: 40; background: rgba(6, 11, 22, .92); backdrop-filter: blur(14px) saturate(1.4); color: var(--t); border-bottom: 1px solid rgba(28, 42, 69, .7); }
.topo-interno { max-width: 1220px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 28px; }
.marca { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; color: #fff; text-decoration: none; margin: 0; white-space: nowrap; }
.marca:hover { color: #fff; }
.marca-ic { width: 32px; height: 32px; border-radius: 10px; border: 1.5px solid var(--c); display: grid; place-items: center; flex: none; }
.menu { display: flex; gap: 4px; flex: 1; min-width: 0; }
.menu a { color: var(--t2); text-decoration: none; padding: .5rem .8rem; border-radius: 10px; font-weight: 600; font-size: .95rem; white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center; transition: color .15s, background .15s; }
.menu a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.menu a[aria-current="page"] { color: var(--c); background: rgba(34, 211, 238, .1); }
.sair { margin: 0; display: flex; align-items: center; gap: .6rem; }
.topo .botao-texto { color: var(--t2); text-decoration: none; font-weight: 600; }
.topo .botao-texto:hover { color: #fff; }
.topo .botao:not(.botao-cheio) { background: transparent; border-color: var(--nl); color: var(--t); }
.topo .botao:not(.botao-cheio):hover { border-color: #2c3f63; color: #fff; }
.so-cel { display: none !important; }
.menu-btn, .so-cel-bloco { display: none; }
.menu-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--nl); background: transparent; color: var(--t); cursor: pointer; align-items: center; justify-content: center; flex: none; }
.menu-btn:hover { border-color: #2c3f63; }
.menu-btn .ic-fechar { display: none; }
.menu-aberto .menu-btn .ic-abrir { display: none; }
.menu-aberto .menu-btn .ic-fechar { display: block; }

.conteudo { max-width: 1220px; margin: 0 auto; padding: 2rem 24px 5rem; }
.conteudo:focus { outline: none; }
.conteudo-cheio { max-width: none; padding: 0 0 5rem; }
.cabecalho-pagina { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }

/* ===== Botões ===== */
.botao, .botao-texto { font: inherit; cursor: pointer; border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s; }
.botao { padding: .55rem 1.05rem; border: 1px solid var(--linha); background: var(--superficie); color: var(--tinta); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.botao:hover { transform: translateY(-1px); border-color: var(--linha-forte); box-shadow: var(--sombra); color: var(--tinta); }
.botao:active { transform: translateY(1px); }
.botao-cheio { background: var(--c); border-color: var(--c); color: var(--c-ink); }
.botao-cheio:hover { background: #3ddcf2; border-color: #3ddcf2; color: var(--c-ink); box-shadow: 0 12px 30px -12px rgba(34, 211, 238, .75); }
.botao-escuro { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.botao-escuro:hover { background: #1a2640; color: #fff; }
.botao[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.botao-bloco { width: 100%; }
.botao-texto { background: none; border: 0; color: var(--c-escuro); padding: .5rem .25rem; font-weight: 600; text-decoration: underline; }
.botao-perigo { color: var(--vermelho); }

/* ===== Cartões, avisos, etiquetas ===== */
.cartao { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio-g); padding: 1.4rem; box-shadow: var(--sombra); }
.cartao > h2:first-child { margin-top: 0; }
.aviso { border: 1px solid #f3dfa8; background: var(--amarelo-fundo); color: #5c3b06; border-radius: var(--raio); padding: .8rem 1rem; margin-bottom: 1rem; }
.aviso-ok { border-color: #b7e4cb; background: var(--verde-fundo); color: #0d4d33; }
.aviso-erro { border-color: #f3c4bf; background: var(--vermelho-fundo); color: #6e1610; }
.aviso p:last-child { margin: 0; }
.aviso-faixa { margin: 0; border-radius: 0; border-width: 0 0 1px; padding: .75rem 1.5rem; }
.vazio { text-align: center; padding: 3rem 1rem; color: var(--tinta-2); border: 1px dashed var(--linha-forte); border-radius: var(--raio-g); background: var(--superficie); }
.vazio h2 { margin-top: 0; color: var(--tinta); }
.etiqueta { display: inline-flex; align-items: center; font-size: .76rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--c-claro); color: var(--c-escuro); white-space: nowrap; }

/* ===== Formulários ===== */
.formulario .campo { margin-bottom: 1rem; }
.campo label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .35rem; }
.campo input, .campo select { width: 100%; font: inherit; color: var(--tinta); background: #fff; border: 1px solid var(--linha-forte); border-radius: 12px; padding: .6rem .8rem; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--c-escuro); box-shadow: 0 0 0 4px rgba(34, 211, 238, .2); }
.campo input[aria-invalid="true"] { border-color: var(--vermelho); }
.campo-erro { color: var(--vermelho); font-size: .87rem; margin: .35rem 0 0; }
.dica { color: var(--tinta-2); font-size: .86rem; margin: .35rem 0 0; }
.caixa { display: flex; align-items: center; gap: .65rem; min-height: 44px; cursor: pointer; }
.caixa input { width: 20px; height: 20px; accent-color: var(--c-escuro); }
.acoes { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.formulario-largo { max-width: 880px; }
.formulario h2 { border-top: 1px solid var(--linha); padding-top: 1.25rem; }
.formulario h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

/* ===== Herói escuro (Radar e detalhe) ===== */
.hero { background: radial-gradient(1100px 560px at 78% -10%, rgba(34, 211, 238, .16), transparent 60%), radial-gradient(760px 460px at 0% 110%, rgba(251, 191, 36, .07), transparent 60%), var(--n0); color: var(--t); padding: 3.25rem 0 5.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: start; }
.eb { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.eb i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); animation: piscar 1.6s infinite; }
@keyframes piscar { 50% { opacity: .25; } }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); line-height: 1.03; letter-spacing: -.04em; margin: 1rem 0 1.1rem; color: #fff; }
.hero h1 em { font-style: normal; color: var(--c); }
.hero .lead { color: var(--t2); font-size: 1.1rem; max-width: 560px; margin: 0 0 1.75rem; }
.hero-compacto { padding: 2.25rem 0 5rem; }
.hero-compacto h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .6rem 0 .4rem; }
.busca-hero { display: flex; gap: .5rem; background: var(--n2); border: 1px solid var(--nl); border-radius: 16px; padding: .45rem; max-width: 640px; }
.busca-hero label { flex: 1; display: flex; align-items: center; gap: .6rem; padding: 0 .6rem; color: var(--t3); min-width: 0; }
.busca-hero input { flex: 1; border: 0; outline: 0; background: transparent; color: #fff; height: 50px; font: inherit; font-size: 1.05rem; min-width: 0; }
.busca-hero input::placeholder { color: var(--t3); }
.busca-hero:focus-within { border-color: rgba(34, 211, 238, .6); box-shadow: 0 0 0 4px rgba(34, 211, 238, .12); }
.filtros-hero { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .85rem; max-width: 640px; }
.filtros-hero select, .filtros-hero .pilula { height: 40px; border-radius: 10px; border: 1px solid var(--nl); background: var(--n1); color: var(--t); font: inherit; font-size: .92rem; font-weight: 600; padding: 0 .75rem; }
.filtros-hero select { max-width: 100%; }
.filtros-hero input[type="text"] { width: 150px; height: 40px; border-radius: 10px; border: 1px solid var(--nl); background: var(--n1); color: var(--t); font: inherit; font-size: .92rem; padding: 0 .75rem; }
.filtros-hero input::placeholder { color: var(--t3); }
.filtros-hero .pilula { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
.filtros-hero .pilula input { accent-color: var(--c); width: 17px; height: 17px; }
.filtros-hero .pilula:has(input:checked) { border-color: rgba(34, 211, 238, .5); color: var(--c); background: rgba(34, 211, 238, .08); }
.filtros-hero a { color: var(--t2); font-weight: 600; font-size: .92rem; align-self: center; margin-left: .25rem; }
.kp { display: flex; gap: 2rem; margin-top: 1.9rem; flex-wrap: wrap; }
.kp b { display: block; font-family: var(--mono); font-size: 1.9rem; color: #fff; letter-spacing: -.03em; line-height: 1.1; }
.kp span { color: var(--t2); font-size: .88rem; }

.mapa { background: var(--n1); border: 1px solid var(--nl); border-radius: 24px; padding: 1.35rem; }
.mapa-h { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.mapa-h b { font-size: .95rem; color: #fff; }
.mapa-h span { color: var(--t3); font-size: .82rem; }
.ufgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.uf { aspect-ratio: 6 / 5; border-radius: 11px; border: 1px solid var(--nl); background: var(--n2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--t2); font-weight: 800; font-size: .88rem; text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.uf small { font-family: var(--mono); font-weight: 500; font-size: .66rem; opacity: .9; }
a.uf:hover { transform: translateY(-2px); border-color: var(--c); color: inherit; }
.uf.on { box-shadow: 0 0 0 2px var(--c); border-color: var(--c); }
.uf.vz { visibility: hidden; }
.uf.sem { opacity: .4; }
.mapa-br { display: block; width: 100%; height: auto; max-height: 470px; margin: 0 auto; overflow: visible; }
.mapa-br path { stroke: var(--n0); stroke-width: 1.1; stroke-linejoin: round; transition: fill .15s, stroke .15s; }
.mapa-br .est-vazio { fill: #16223a; }
.mapa-br .est { cursor: pointer; outline: none; }
.mapa-br .est:hover path, .mapa-br .est:focus-visible path { fill: rgba(103, 232, 249, .95) !important; stroke: #e0fbff; stroke-width: 1.6; }
.mapa-br .est.on path { fill: var(--c) !important; stroke: #fff; stroke-width: 2.2; }
.mapa-br .est:focus-visible path { stroke: #fff; stroke-width: 2.6; }
.mapa-br .siglas text { font-family: var(--mono); font-weight: 600; text-anchor: middle; pointer-events: none; }
.mapa-br .sg { fill: #e6fbff; }
.mapa-br .sg-escura { fill: #03222b; }
.mapa-br .sg-vazia { fill: #3a4a66; }
.credito-mapa { margin: .35rem 0 0; font-size: .68rem; color: var(--t3); }
.credito-mapa a { color: var(--t3); }
[data-mapa-info] { color: var(--c) !important; font-weight: 600; }
.leg { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; color: var(--t3); font-size: .78rem; }
.leg i { height: 8px; flex: 1; max-width: 140px; border-radius: 999px; background: linear-gradient(90deg, #16304a, var(--c)); }
.feed { margin-top: 1rem; border-top: 1px solid var(--nl); padding-top: .85rem; }
.feed-h { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--t3); margin-bottom: .4rem; }
.fi { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .6rem 0; border-bottom: 1px dashed var(--nl); color: inherit; text-decoration: none; animation: entrar .5s ease both; }
.fi:last-child { border: 0; }
.fi:hover b { color: var(--c); }
@keyframes entrar { from { opacity: 0; transform: translateY(-6px); } }
.fi .tg { font-family: var(--mono); font-size: .72rem; color: var(--c); background: rgba(34, 211, 238, .12); padding: .2rem .45rem; border-radius: 6px; }
.fi b { font-size: .88rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.fi span { font-family: var(--mono); font-size: .78rem; color: var(--t2); white-space: nowrap; }

/* ===== Painel de resultados (sobe por cima do herói) ===== */
.painel-sobe { margin-top: -3.25rem; position: relative; }
.painel { background: var(--superficie); border: 1px solid var(--linha); border-radius: 24px; box-shadow: 0 30px 70px -40px rgba(12, 20, 36, .45); overflow: hidden; }
.painel-h { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--linha); flex-wrap: wrap; }
.painel-h b { font-size: 1.05rem; }
.painel-h form { display: flex; gap: .5rem; align-items: center; margin: 0; }
.painel-h select { font: inherit; font-size: .9rem; font-weight: 600; height: 40px; border: 1px solid var(--linha); border-radius: 10px; padding: 0 .7rem; background: #fff; color: var(--tinta); }
.painel-f { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: #fafbfc; gap: .75rem; flex-wrap: wrap; color: var(--tinta-2); border-top: 1px solid var(--linha); }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 .8rem; border-radius: 10px; border: 1px solid var(--linha); background: #fff; font-weight: 700; font-size: .88rem; color: var(--tinta-2); display: inline-flex; align-items: center; text-decoration: none; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--tinta); color: var(--tinta); }
.chip.on { background: var(--tinta); color: #fff; border-color: var(--tinta); }

.lista-licitacoes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.licitacao { border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.licitacao:nth-child(3n) { border-right: 0; }
.cd { padding: 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; height: 100%; color: inherit; text-decoration: none; transition: background .15s; }
.cd:hover { background: #fafbfc; color: inherit; }
.cd:hover h3 { color: var(--c-escuro); }
.cd .l1 { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .82rem; color: var(--tinta-2); }
.cd .l1 span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd h3 { margin: 0; font-size: 1rem; line-height: 1.38; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; transition: color .15s; }
.cd .org { font-size: .82rem; color: var(--tinta-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd .l3 { display: flex; justify-content: space-between; align-items: end; gap: .5rem; margin-top: auto; padding-top: .35rem; }
.cd .valor { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }
.prazo { font-family: var(--mono); font-size: .76rem; padding: .25rem .5rem; border-radius: 7px; background: #eef2f7; color: var(--tinta-2); white-space: nowrap; }
.prazo.urgente { background: var(--vermelho-fundo); color: var(--vermelho); }
.cd .tags { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ===== Guia de prefeituras ===== */
.grade-ufs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grade-ufs li { border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.grade-ufs li:nth-child(3n) { border-right: 0; }
.uf-linha { display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1.5rem; color: inherit; text-decoration: none; transition: background .15s; }
.uf-linha:hover { background: #fafbfc; color: var(--c-escuro); }
.uf-linha span { font-size: .8rem; color: var(--tinta-2); }
.grade-cidades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grade-cidades li { border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.grade-cidades li:nth-child(4n) { border-right: 0; }
.cid { display: flex; flex-direction: column; gap: .3rem; padding: 1.15rem 1.35rem; height: 100%; color: inherit; text-decoration: none; transition: background .15s; }
.cid:hover { background: #fafbfc; color: inherit; }
.cid:hover .cid-nome { color: var(--c-escuro); }
.cid-nome { font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; transition: color .15s; }
.cid-n { font-size: .9rem; color: var(--tinta-2); }
.cid-n b { font-family: var(--mono); font-size: 1.3rem; color: var(--tinta); }
.cid-meta { font-family: var(--mono); font-size: .76rem; color: var(--tinta-3); }
.cid .prazo { align-self: flex-start; margin-top: auto; }
.orgaos { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.orgao { display: inline-flex; align-items: center; gap: .5rem; background: var(--superficie); border: 1px solid var(--linha); border-radius: 999px; padding: .35rem .5rem .35rem .85rem; font-size: .86rem; font-weight: 600; box-shadow: var(--sombra); }
.orgao b { background: var(--c-claro); color: var(--c-escuro); border-radius: 999px; padding: .05rem .5rem; font-size: .78rem; }
.painel-apagado .cd { opacity: .7; }
.painel-apagado .cd:hover { opacity: 1; }

/* ===== Semáforo ===== */
.selo { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 800; padding: .3rem .65rem; border-radius: 9px; white-space: nowrap; margin: 0; }
.ponto { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.selo-verde { background: var(--verde-fundo); color: var(--verde); }
.selo-amarelo { background: var(--amarelo-fundo); color: var(--amarelo); }
.selo-vermelho { background: var(--vermelho-fundo); color: var(--vermelho); }
.selo-bloqueado { background: transparent; color: var(--tinta-2); border: 1px dashed #c9d1dd; font-weight: 700; }
.selo-bloqueado .ponto { display: none; }
.selo-grande { font-size: .98rem; padding: .5rem .85rem; margin-bottom: .85rem; }
.semaforo { border-top-width: 4px; }
.semaforo-verde { border-top-color: var(--verde); }
.semaforo-amarelo { border-top-color: #d99a00; }
.semaforo-vermelho { border-top-color: var(--vermelho); }
.semaforo-bloqueado { background: var(--n1); color: var(--t); border-color: var(--nl); }
.semaforo-bloqueado h2 { color: #fff; }
.semaforo-bloqueado p { color: var(--t2); }
.semaforo-bloqueado .dica, .semaforo-bloqueado .dica a { color: var(--t2); }
.motivos { margin: 0 0 .85rem; padding-left: 1.1rem; }
.motivos li { margin-bottom: .4rem; }
.motivo-vermelho { color: var(--vermelho); font-weight: 700; }

/* ===== Detalhe ===== */
.voltar { margin: 0 0 1rem; }
.voltar a { color: var(--t2); font-weight: 600; text-decoration: none; }
.voltar a:hover { color: #fff; }
.sobretitulo { color: var(--c); font-family: var(--mono); font-size: .8rem; letter-spacing: .03em; margin-bottom: .5rem; }
.detalhe-titulo { color: #fff; font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1.2; overflow-wrap: anywhere; max-width: 900px; }
.detalhe { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; }
.detalhe-principal { min-width: 0; }
.detalhe-lateral { display: grid; gap: 1rem; position: sticky; top: 88px; }
.fatos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 1.5rem; background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio-g); box-shadow: var(--sombra); overflow: hidden; }
.fatos > div { padding: 1rem 1.2rem; border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.fatos > div:nth-child(3n) { border-right: 0; }
.fatos > div:nth-last-child(-n+3) { border-bottom: 0; }
.fatos dt { font-size: .78rem; color: var(--tinta-3); margin-bottom: .15rem; }
.fatos dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.texto-longo { max-width: 75ch; overflow-wrap: anywhere; color: var(--tinta-2); }
.tabela-rolagem { overflow-x: auto; border: 1px solid var(--linha); border-radius: var(--raio-g); background: var(--superficie); box-shadow: var(--sombra); }
.tabela { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabela th, .tabela td { padding: .75rem .9rem; border-bottom: 1px solid var(--linha); text-align: left; vertical-align: top; }
.tabela td { overflow-wrap: anywhere; }
.tabela td:nth-child(2) { min-width: 240px; }
.tabela th { background: #f7f9fb; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tinta-2); white-space: nowrap; }
.tabela tr:last-child td { border-bottom: 0; }
.num { text-align: right !important; white-space: nowrap; }
.paginacao { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 1.25rem; border-top: 1px solid var(--linha); }

/* ===== Filtros salvos ===== */
.duas-colunas { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 1.5rem; align-items: start; }
.duas-colunas > section > h2:first-child { margin-top: 0; }
.lista-filtros { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.filtro-topo { display: flex; justify-content: space-between; gap: .75rem; align-items: start; }
.filtro-acoes { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.filtro-acoes form { margin: 0; }
.filtro-pausado { opacity: .65; }

/* ===== Planos ===== */
.grade-planos { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 1rem; }
.plano { display: flex; flex-direction: column; gap: .3rem; transition: transform .18s; }
.plano:hover { transform: translateY(-2px); }
.plano h2 { margin: 0; }
.plano form, .plano > a.botao { margin-top: auto; }
.plano-atual { border: 2px solid var(--c-escuro); }
.plano .etiqueta { align-self: flex-start; margin-top: auto; }
.preco { font-size: 1.7rem; font-weight: 700; margin: .6rem 0; letter-spacing: -.03em; }
.preco .quieto { font-family: var(--fonte); font-size: .88rem; font-weight: 500; letter-spacing: 0; }
.plano-itens { margin: 0 0 1rem; padding: 0; list-style: none; color: var(--tinta-2); display: grid; gap: .45rem; }
.plano-itens li { display: flex; gap: .5rem; }
.plano-itens li::before { content: "✓"; color: var(--c-escuro); font-weight: 800; }

/* ===== Admin ===== */
.indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 0 0 1rem; }
.indicadores dt { color: var(--tinta-2); font-size: .86rem; }
.indicadores dd { margin: .25rem 0 0; font-family: var(--mono); font-size: 1.6rem; font-weight: 700; }
.form-linha { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0; }
.form-linha select, .form-linha input { font: inherit; color: var(--tinta); background: #fff; border: 1px solid var(--linha-forte); border-radius: 10px; padding: .4rem .5rem; min-height: 42px; }

/* ===== Seções da página inicial (visitante) ===== */
section.s { padding: 6rem 0 0; }
.e2 { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-escuro); }
.s h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 1.08; letter-spacing: -.035em; margin: .6rem 0 .9rem; }
.s .lead { color: var(--tinta-2); font-size: 1.1rem; max-width: 580px; }
.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.25rem; }
.ps { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio-g); padding: 1.6rem; }
.ps .n { font-family: var(--mono); font-size: .8rem; color: var(--c-escuro); border: 1px solid var(--c-borda); background: var(--c-claro); border-radius: 8px; padding: .2rem .5rem; display: inline-block; }
.ps h3 { font-size: 1.2rem; margin: 1rem 0 .4rem; }
.ps p { margin: 0; color: var(--tinta-2); }
.sem3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.25rem; }
.sc { border-radius: var(--raio-g); padding: 1.6rem; color: #fff; display: flex; flex-direction: column; gap: .75rem; min-height: 240px; }
.sc.ok { background: linear-gradient(160deg, #064e3b, #047857); }
.sc.wa { background: linear-gradient(160deg, #78350f, #b45309); }
.sc.no { background: linear-gradient(160deg, #7f1d1d, #b91c1c); }
.sc .st { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.1rem; }
.sc .st i { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.sc h3 { margin: 0; font-size: 1rem; font-weight: 600; opacity: .92; }
.sc ul { margin: auto 0 0; padding-left: 1.1rem; font-size: .95rem; display: grid; gap: .35rem; }
.zap { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.wa-card { background: var(--n0); border-radius: 28px; padding: 1.75rem; color: var(--t); }
.bal { background: var(--n2); border: 1px solid var(--nl); border-radius: 6px 18px 18px 18px; padding: 1rem; font-size: .92rem; line-height: 1.5; }
.bal b { color: #fff; }
.bal .it { border-top: 1px solid var(--nl); margin-top: .6rem; padding-top: .6rem; }
.bal .it span { font-family: var(--mono); font-size: .78rem; color: var(--c); }
.bal time { display: block; text-align: right; color: var(--t3); font-size: .75rem; margin-top: .5rem; }
.tab-precos { background: var(--superficie); border: 1px solid var(--linha); border-radius: 24px; overflow-x: auto; margin-top: 2.25rem; }
.tp { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); min-width: 720px; }
.tp > div { padding: .95rem 1.1rem; border-bottom: 1px solid var(--linha); display: flex; align-items: center; }
.tp > div:not(:nth-child(5n+1)) { justify-content: center; text-align: center; }
.tp > div:nth-last-child(-n+5) { border-bottom: 0; }
.tp .hd { flex-direction: column; align-items: center; gap: .2rem; padding: 1.4rem .75rem; }
.tp .hd b { font-size: 1.05rem; }
.tp .hd strong { font-family: var(--mono); font-size: 1.45rem; letter-spacing: -.03em; }
.tp .hd small { color: var(--tinta-2); font-weight: 500; }
.tp .dst { background: var(--c-claro); }
.sim { color: var(--c-escuro); font-weight: 800; }
.nao { color: #b6bfcc; }
.faq { max-width: 780px; margin: 2rem auto 0; }
.faq details { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.1rem 1.35rem; margin-bottom: .65rem; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: .9rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--c-escuro); font-size: 1.35rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: .65rem 0 0; color: var(--tinta-2); }
.fim { background: var(--n0); color: #fff; text-align: center; padding: 5.5rem 0; margin-top: 6rem; }
.fim h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.8rem); letter-spacing: -.035em; margin: 0 0 .6rem; }
.fim p { color: var(--t2); margin-bottom: 1.5rem; }
.rodape { background: var(--n0); color: var(--t3); border-top: 1px solid var(--nl); padding: 1.75rem 0; font-size: .88rem; }
.rodape .w { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.rodape a { color: var(--t2); }

/* ===== Páginas de entrada (entrar, cadastro) e instalador ===== */
.pagina-publica { background: radial-gradient(900px 500px at 80% -10%, rgba(34, 211, 238, .16), transparent 60%), var(--n0); min-height: 100vh; }
.publico { max-width: 1000px; margin: 0 auto; padding: 3rem 1rem 4rem; }
.marca-publica { justify-content: center; font-size: 1.15rem; margin-bottom: 1.75rem; }
.cartao-estreito { max-width: 460px; margin: 0 auto; }
.pagina-publica .cartao { border-color: transparent; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.rodape-cartao { text-align: center; margin: 1rem 0 0; color: var(--tinta-2); }
.pagina-instalador { background: var(--fundo); }
.instalador { max-width: 880px; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.instalador-topo { margin-bottom: 1.25rem; }
.instalador .cartao { margin-bottom: 1rem; }
.instalador .marca { color: var(--c-escuro); }
.lista-requisitos { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.lista-requisitos li::before { display: inline-block; width: 1.4rem; font-weight: 800; }
.lista-requisitos .ok::before { content: "✓"; color: var(--verde); }
.lista-requisitos .falha { color: var(--vermelho); font-weight: 700; }
.lista-requisitos .falha::before { content: "✕"; }

/* ===== Barra inferior no celular (com conta) ===== */
.bnav { display: none; }

/* ===== Telas menores ===== */
@media (max-width: 1080px) {
  .hero-grid, .zap { grid-template-columns: 1fr; }
  .lista-licitacoes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .licitacao:nth-child(3n) { border-right: 1px solid var(--linha); }
  .licitacao:nth-child(2n) { border-right: 0; }
  .detalhe, .duas-colunas { grid-template-columns: minmax(0, 1fr); }
  .detalhe-lateral { position: static; }
  .passos, .sem3 { grid-template-columns: 1fr; }
  .grade-cidades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade-cidades li:nth-child(4n) { border-right: 1px solid var(--linha); }
  .grade-cidades li:nth-child(2n) { border-right: 0; }
  .grade-ufs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade-ufs li:nth-child(3n) { border-right: 1px solid var(--linha); }
  .grade-ufs li:nth-child(2n) { border-right: 0; }
}
@media (max-width: 860px) {
  .topo-interno { justify-content: space-between; }
  .menu-btn { display: inline-flex; }
  .marca { margin-right: auto; }
  .menu { display: none; position: fixed; top: var(--topo-h, 68px); left: 0; right: 0; bottom: 0; z-index: 50; flex-direction: column; gap: .25rem; padding: 1rem 16px calc(1.5rem + env(safe-area-inset-bottom)); background: rgba(6, 11, 22, .98); backdrop-filter: blur(14px); overflow-y: auto; overscroll-behavior: contain; }
  .menu-aberto .menu { display: flex; }
  .menu a { font-size: 1.15rem; min-height: 54px; padding: .8rem 1rem; border-radius: 12px; color: var(--t); }
  .menu-extra.so-cel-bloco { display: grid; gap: .6rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--nl); }
  .menu-extra .botao:not(.botao-cheio) { background: transparent; color: var(--t); border-color: var(--nl); }
  .menu-aberto { overflow: hidden; }
  /* o desfoque do cabeçalho prenderia o painel (fixed) dentro dele */
  .menu-aberto .topo { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--n0); }
  .fatos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fatos > div:nth-child(3n) { border-right: 1px solid var(--linha); }
  .fatos > div:nth-child(2n) { border-right: 0; }
  .fatos > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--linha); }
  .fatos > div:nth-last-child(-n+2) { border-bottom: 0; }
  .com-conta .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(6, 11, 22, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--nl); justify-content: space-around; padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); }
  .bnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 700; color: var(--t3); text-decoration: none; min-width: 64px; min-height: 48px; justify-content: center; border-radius: 10px; }
  .bnav a[aria-current="page"] { color: var(--c); }
  .com-conta .conteudo, .com-conta .conteudo-cheio { padding-bottom: 6.5rem; }
}
@media (max-width: 640px) {
  .w, .topo-interno, .conteudo { padding-left: 16px; padding-right: 16px; }
  .topo-interno { height: 60px; gap: .6rem; }
  :root { --topo-h: 60px; }
  .so-pc { display: none !important; }
  .so-cel { display: inline-flex !important; }
  .marca { font-size: .95rem; }
  .sair .botao { padding: .5rem .8rem; }
  .hero { padding: 2rem 0 4.5rem; }
  .hero .lead { font-size: 1rem; }
  .busca-hero { flex-direction: column; }
  .busca-hero .botao { width: 100%; }
  .filtros-hero input[type="text"] { width: 100%; }
  .filtros-hero select { flex: 1; }
  .kp { gap: 1.25rem; }
  .kp b { font-size: 1.5rem; }
  .ufgrid { gap: 5px; }
  .uf { font-size: .74rem; border-radius: 8px; }
  .uf small { display: none; }
  .lista-licitacoes, .grade-ufs { grid-template-columns: 1fr; }
  .licitacao, .grade-ufs li { border-right: 0 !important; }
  .grade-cidades li:nth-child(odd) { border-right: 1px solid var(--linha); }
  .cid { padding: 1rem; }
  .cd { padding: 1.15rem 1rem; }
  .painel-h, .painel-f { padding: 1rem; }
  .detalhe-titulo { font-size: 1.3rem; line-height: 1.25; }
  .hero-compacto { padding-bottom: 4.25rem; }
  .grade-2 { grid-template-columns: 1fr; }
  .fatos { grid-template-columns: 1fr; }
  .fatos > div { border-right: 0 !important; border-bottom: 1px solid var(--linha) !important; }
  .fatos > div:last-child { border-bottom: 0 !important; }
  .acoes .botao { width: 100%; }
  section.s { padding-top: 4.5rem; }
  .com-conta .mapa { display: none; }
  .com-conta .hero-grid { gap: 0; }
  .publico { padding-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
