:root {
  --navy: #102850;
  --navy-2: #0c1d3d;
  --card: #132a4d;
  --line: rgba(186, 210, 245, 0.16);
  --text: #eef3fb;
  --muted: #a9b8d0;
  --orange: #f5a01a;
  --orange-2: #ffb84a;
  --ink: #1b2433;
  --sans: "Montserrat", "Segoe UI", sans-serif;
  --display: "Sora", "Montserrat", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(900px 520px at 72% 8%, rgba(92, 124, 184, 0.35), transparent 60%),
    radial-gradient(700px 480px at 18% 90%, rgba(16, 40, 80, 0.2), transparent 55%),
    linear-gradient(180deg, #16325f 0%, var(--navy) 38%, var(--navy-2) 100%);
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.fundo {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.05), transparent 26%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800' fill='none' stroke='%23d7e4f7' stroke-opacity='0.08' stroke-width='1.2'><path d='M470 120c40 20 90 18 120 48 28 28 22 70 8 104-18 42-8 78 16 112 22 32 18 74-8 104-30 34-78 40-118 58-42 18-70 52-112 58-48 8-96-16-132-46-34-28-78-30-112-58-36-30-40-86-22-128 16-38 8-78-12-112-22-36-16-88 14-118 32-32 84-28 122-48 36-18 70-48 114-46 40 2 78 22 122 14z'/></svg>") center 18% / 760px no-repeat;
}

.logo {
  position: fixed;
  z-index: 5;
  top: 22px;
  left: 22px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.logo strong { font-family: var(--display); letter-spacing: 0.08em; font-size: 14px; }
.logo span { color: #e08600; font-weight: 800; font-size: 13px; }
.logo em { font-style: normal; color: #5d6d86; font-size: 12px; margin-left: 4px; }

.stage {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 64px;
}
body.tem-lista .stage { padding-top: 108px; }

.card {
  width: min(480px, 100%);
  margin: 0 auto;
  background: rgba(14, 32, 61, 0.92);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px 26px 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}
.trace {
  height: 4px;
  width: 72px;
  border-radius: 99px;
  background: var(--orange);
  margin-bottom: 18px;
}
.badge {
  margin: 0 auto 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(245, 160, 26, 0.14);
  color: var(--orange-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1 {
  font-family: var(--display);
  font-size: 46px;
  line-height: 1;
  margin: 0;
  font-weight: 750;
}
h1 span { color: var(--orange); }
.lead {
  margin: 8px 0 22px;
  color: var(--muted);
  text-align: center;
}
h1 { text-align: center; }
.badge { display: table; margin: 0 auto 12px; }
.trace { margin-left: auto; margin-right: auto; }

.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}
.combo { position: relative; }
.combo input, .filtro input {
  width: 100%;
  border: 1px solid rgba(186, 210, 245, 0.28);
  background: rgba(8, 18, 36, 0.55);
  color: white;
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
}
.combo input::placeholder, .filtro input::placeholder { color: #8ea0bb; }
.combo input:focus, .filtro input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(245, 160, 26, 0.18);
}
.menu {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  max-height: 280px;
  overflow: auto;
  display: none;
}
.menu.open { display: block; }
.menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
}
.menu button small { display: block; color: #66758c; }
.menu button:hover, .menu button.active { background: #fff6e8; }
.menu .empty { padding: 12px; color: #66758c; }

.cta {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #2a1c06;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 16px;
}
.cta:hover { background: #ffb02e; }
.linkish {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.form-error { margin: 8px 0 0; text-align: center; color: #ffd7a1; font-size: 14px; }
.fine {
  margin: 16px 0 0;
  color: #8ea0bb;
  font-size: 12px;
  text-align: center;
  line-height: 1.45;
}

.lista {
  margin-top: 28px;
  background: rgba(10, 24, 46, 0.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}
.lista-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.lista h2 {
  font-family: var(--display);
  font-size: 32px;
  margin: 0;
}
.lista-head p { margin: 4px 0 0; color: var(--muted); }
.csv {
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #2a1c06;
  font-weight: 800;
  padding: 10px 16px;
  white-space: nowrap;
}
.filtro { display: block; margin: 14px 0; }
.filtro span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.tabela-wrap { overflow: auto; max-height: 70vh; border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid rgba(186, 210, 245, 0.12); vertical-align: top; }
thead th {
  position: sticky;
  top: 0;
  background: #18345f;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d5e2f5;
}
.cod { font-weight: 700; white-space: nowrap; width: 110px; }
.aliq { font-weight: 800; color: var(--orange-2); white-space: nowrap; width: 150px; }
.aliq.muda { color: var(--muted); font-weight: 600; }
.vig { color: var(--muted); font-weight: 600; white-space: nowrap; font-size: 13px; }
tr.grupo td {
  background: rgba(245, 160, 26, 0.12);
  color: var(--orange-2);
  font-weight: 700;
  letter-spacing: 0.03em;
}

@media (max-width: 720px) {
  .logo { left: 12px; top: 12px; padding: 10px 12px; }
  .logo em { display: none; }
  h1 { font-size: 38px; }
  .lista-head { align-items: flex-start; flex-direction: column; }
  .stage { width: min(1080px, calc(100% - 20px)); }
}
