/* ============================================================
   ESTILO COMUM A TODAS AS PÁGINAS
   ============================================================
   Cores, fontes e peças reutilizáveis ficam aqui. Mudou aqui,
   mudou no site inteiro — não precisa mexer em cada página.
   ============================================================ */

:root {
  --bg:        #0d1117;
  --painel:    #131a24;
  --painel-2:  #182130;
  --borda:     rgba(200,170,110,.16);
  --borda-sut: rgba(255,255,255,.07);
  --linha:     rgba(200,170,110,.10);

  --ink:       #e8e3d8;
  --muted:     #8b9199;
  --fraco:     #5c636c;

  --gold:      #c9a227;
  --gold-luz:  #e0bb46;
  --gold-fun:  rgba(201,162,39,.13);

  --verde:     #4ba36a;
  --vermelho:  #c2554b;
  --azul:      #5b8dd6;

  --raio:      10px;
  --serif:     Cinzel, Georgia, 'Times New Roman', serif;
  --sans:      Inter, -apple-system, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* O navegador esconde o que tem [hidden], mas qualquer regra
   nossa com "display" anula isso. Este !important garante que
   escondido é escondido, sempre. */
[hidden] { display: none !important; }

html, body { min-height: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Fundo de mapa ---------------------------------------- */

.fundo-mapa { position: relative; overflow-x: hidden; }

.fundo-mapa::before {
  content: ""; position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--linha) 1px, transparent 1px),
    linear-gradient(90deg, var(--linha) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 25%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 25%, transparent 100%);
  pointer-events: none;
}

.fundo-mapa::after {
  content: ""; position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(201,162,39,.07), transparent 70%);
  pointer-events: none;
}

.acima { position: relative; z-index: 1; }

/* ---- Layout ------------------------------------------------ */

.centro {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
}

.painel {
  width: 100%;
  background: linear-gradient(180deg, rgba(19,26,36,.94), rgba(13,17,23,.94));
  border: 1px solid var(--borda);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  padding: 44px 40px 36px;
}

.painel.estreito { max-width: 430px; }
.painel.largo    { max-width: 620px; }

/* ---- Marca ------------------------------------------------- */

.marca {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}

.brasao {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201,162,39,.45);
  border-radius: 50%;
  background: var(--gold-fun);
}
.brasao svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.6; }

/* ---- Texto -------------------------------------------------- */

h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 700; line-height: 1.15;
}
h1 .fraco { color: var(--muted); font-weight: 500; }

h2 { font-family: var(--serif); font-size: 20px; font-weight: 700; }

.lead { color: var(--muted); line-height: 1.7; }
.mini { font-size: 12.5px; color: var(--fraco); line-height: 1.6; }

.regua {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,.28), transparent);
}

/* ---- Formulário --------------------------------------------- */

.campo { margin-bottom: 16px; }

.campo label {
  display: block; margin-bottom: 7px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}

.campo input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit; font-size: 15px;
  color: var(--ink);
  background: rgba(0,0,0,.28);
  border: 1px solid var(--borda-sut);
  border-radius: 8px;
  transition: border-color .15s, background .15s;
}
.campo input:focus {
  outline: none;
  border-color: rgba(201,162,39,.55);
  background: rgba(0,0,0,.4);
}
.campo input::placeholder { color: #4a5058; }

.dica { margin-top: 6px; font-size: 12px; color: var(--fraco); }

/* ---- Botões -------------------------------------------------- */

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 22px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  border: 0; border-radius: 8px;
  cursor: pointer;
  background: var(--gold); color: #14100a;
  transition: background .15s, transform .05s;
}
.botao:hover:not(:disabled) { background: var(--gold-luz); }
.botao:active:not(:disabled) { transform: translateY(1px); }
.botao:disabled { opacity: .5; cursor: not-allowed; }

.botao.fantasma {
  background: transparent; color: var(--ink);
  border: 1px solid var(--borda-sut);
}
.botao.fantasma:hover:not(:disabled) { background: rgba(255,255,255,.05); }

.link {
  background: none; border: 0; padding: 0;
  font: inherit; font-size: 13px;
  color: var(--muted); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.link:hover { color: var(--gold); }

/* ---- Abas ---------------------------------------------------- */

.abas {
  display: flex; gap: 4px;
  padding: 4px;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--borda-sut);
  border-radius: 9px;
  margin-bottom: 26px;
}

.aba {
  flex: 1; padding: 9px;
  font: inherit; font-size: 14px; font-weight: 600;
  color: var(--muted);
  background: none; border: 0; border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.aba:hover { color: var(--ink); }
.aba.ativa { background: var(--painel-2); color: var(--ink); }

/* ---- Avisos --------------------------------------------------- */

.aviso {
  padding: 11px 14px; margin-bottom: 18px;
  border-radius: 8px; font-size: 13.5px; line-height: 1.55;
  border: 1px solid;
}
.aviso.erro    { color: #e08a82; border-color: rgba(194,85,75,.35);  background: rgba(194,85,75,.09); }
.aviso.ok      { color: #7fc79a; border-color: rgba(75,163,106,.35); background: rgba(75,163,106,.09); }
.aviso.atencao { color: #d9b95c; border-color: rgba(201,162,39,.35); background: rgba(201,162,39,.09); }
.aviso.info    { color: #93b4e3; border-color: rgba(91,141,214,.35); background: rgba(91,141,214,.09); }
.aviso[hidden] { display: none; }

/* ---- Status --------------------------------------------------- */

.status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--borda-sut);
  background: rgba(255,255,255,.03);
}
.status .bolinha { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }

.status.ok  { color: var(--verde);    border-color: rgba(75,163,106,.3);  background: rgba(75,163,106,.07); }
.status.ok .bolinha  { background: var(--verde); animation: pulsar 2s infinite; }
.status.err { color: var(--vermelho); border-color: rgba(194,85,75,.3);   background: rgba(194,85,75,.07); }
.status.err .bolinha { background: var(--vermelho); }

@keyframes pulsar {
  0%   { box-shadow: 0 0 0 0   rgba(75,163,106,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(75,163,106,0); }
  100% { box-shadow: 0 0 0 0   rgba(75,163,106,0); }
}

/* ---- Ficha (linha de dados) ------------------------------------ */

.ficha { border-top: 1px solid var(--borda-sut); }
.ficha div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--borda-sut);
  font-size: 14px;
}
.ficha dt { color: var(--muted); }
.ficha dd { color: var(--ink); font-weight: 500; text-align: right; word-break: break-all; }

/* ---- Rodapé ----------------------------------------------------- */

.rodape {
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid var(--borda-sut);
  font-size: 11.5px; color: #454b53; letter-spacing: .04em;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---- Espaçamentos rápidos ---------------------------------------- */

.mt-8  { margin-top: 8px; }  .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }  .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.centralizado { text-align: center; }

@media (max-width: 520px) {
  .painel { padding: 32px 24px 28px; }
}
