/* DENIA — base visual compartilhada (site e painel) */
:root {
  --bg: #04060c;
  --bg-2: #070b16;
  --painel: rgba(255, 255, 255, 0.035);
  --painel-forte: rgba(255, 255, 255, 0.06);
  --borda: rgba(148, 163, 214, 0.14);
  --borda-forte: rgba(148, 163, 214, 0.26);
  --texto: #e9edf7;
  --texto-2: #b6bfd6;
  --texto-3: #7d88a6;
  --azul: #4f8cff;
  --violeta: #8b5cf6;
  --ciano: #22d3ee;
  --verde: #22c55e;
  --ambar: #f59e0b;
  --vermelho: #f43f5e;
  --gradiente: linear-gradient(120deg, #22d3ee 0%, #4f8cff 45%, #8b5cf6 100%);
  --raio: 14px;
  --raio-g: 22px;
  --sombra: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --fonte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.55;
  color: var(--texto);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(79, 140, 255, 0.18), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(700px 600px at 50% 120%, rgba(34, 211, 238, 0.08), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 214, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(79, 140, 255, 0.35); }
:focus-visible { outline: 2px solid var(--ciano); outline-offset: 3px; border-radius: 8px; }

.gradiente-texto {
  background: var(--gradiente);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-primario {
  background: var(--gradiente);
  color: #04060c;
  box-shadow: 0 10px 30px -10px rgba(79, 140, 255, 0.7);
}
.btn-primario:hover { box-shadow: 0 14px 40px -10px rgba(79, 140, 255, 0.9); }
.btn-secundario {
  background: var(--painel-forte);
  border-color: var(--borda-forte);
  color: var(--texto);
}
.btn-secundario:hover { border-color: rgba(148, 163, 214, 0.45); background: rgba(255, 255, 255, 0.09); }
.btn-perigo { background: rgba(244, 63, 94, 0.14); border-color: rgba(244, 63, 94, 0.45); color: #fecdd3; }
.btn-perigo:hover { background: rgba(244, 63, 94, 0.22); }
.btn-pequeno { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

.vidro {
  background: var(--painel);
  border: 1px solid var(--borda);
  border-radius: var(--raio-g);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--sombra);
}

.selo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--borda-forte);
  color: var(--texto-2);
  background: var(--painel-forte);
}
.selo-ok { color: #bbf7d0; border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.1); }
.selo-alerta { color: #fde68a; border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.1); }
.selo-erro { color: #fecdd3; border-color: rgba(244, 63, 94, 0.4); background: rgba(244, 63, 94, 0.1); }
.selo-info { color: #bae6fd; border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.08); }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.campo { display: grid; gap: 8px; }
.campo label { font-size: 14px; font-weight: 600; color: var(--texto-2); }
.entrada {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--borda-forte);
  background: rgba(4, 6, 12, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.entrada:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.18); }
textarea.entrada { min-height: 140px; resize: vertical; line-height: 1.5; }

.oculto { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Idiomas */
html.i18n-carregando body { visibility: hidden; }
.seletor-idioma { appearance: none; -webkit-appearance: none; min-height: 34px; padding: 4px 28px 4px 12px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.35); background: rgba(15, 23, 42, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.seletor-idioma option { background: #0b1020; color: #e2e8f0; }
@media (max-width: 1700px) { .topo-acoes .js-contato { display: none !important; } }
.idioma-menu { position: relative; }
.idioma-botao { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.4); background: rgba(15, 23, 42, 0.6); color: inherit; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; }
.idioma-botao:hover, .idioma-botao[aria-expanded="true"] { border-color: rgba(34, 211, 238, 0.8); }
.idioma-botao svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.idioma-lista { position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; min-width: 170px; margin: 0; padding: 6px; list-style: none; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.3); background: #0b1020; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9); }
.idioma-lista button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: #e2e8f0; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.idioma-lista button:hover, .idioma-lista button[aria-current="true"] { background: rgba(79, 140, 255, 0.18); color: #fff; }
.auth-links .idioma-lista { top: auto; bottom: calc(100% + 8px); }
@media (max-width: 420px) { .idioma-botao { padding: 4px 8px; } .topo-acoes { gap: 6px; } }

.so-celular { display: none; }
@media (max-width: 480px) {
  .idioma-lista { position: fixed; left: 12px; right: 12px; top: 62px; min-width: 0; }
  .topo-acoes > .btn-secundario[href="/entrar"] { display: none; }
  .menu .so-celular { display: block; }
}
.retorno-meta { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #05070f; color: #e2e8f0; font-family: Inter, system-ui, sans-serif; text-align: center; }
.retorno-meta main { max-width: 480px; }
.retorno-meta h1 { font-size: 26px; margin: 0 0 12px; }
.retorno-meta p { color: #94a3b8; line-height: 1.55; }
