:root {
  color-scheme: dark;
  --bg: #10121b;
  --panel: #191c28;
  --text: #f0f1f7;
  --muted: #adb0c4;
  --accent: #9290ff;
  --line: #303346;
  --green: #80d8bc;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 48px;
  border-radius: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-weight: 650;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
body.loading {
  overflow: hidden;
}
#loading {
  width: min(420px, calc(100% - 32px));
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  text-align: center;
  box-shadow: 0 24px 80px #0008;
}
#loading::backdrop {
  background: #080a14cc;
  backdrop-filter: blur(5px);
}
#loading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}
.loading-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: loading-spin 0.8s linear infinite;
}
@keyframes loading-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .loading-spinner { animation: none; }
}
.payment-success {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 850px;
  margin: 0 auto 24px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid #80d8bc66;
  border-radius: 16px;
  background: #80d8bc0d;
}
.success-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #80d8bc20;
  color: var(--green);
  font-size: 26px;
}
.payment-success h2 {
  margin: 5px 0 12px;
  color: var(--green);
}
.payment-success p {
  color: var(--muted);
}
.pix-layout.completed {
  grid-template-columns: 1fr;
}
button:hover:enabled,
.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.primary {
  background: #7773f1;
  color: #fff;
}
.primary:hover:enabled {
  background: #8682ff;
}
.secondary {
  background: #222535;
  border-color: var(--line);
  color: var(--text);
}
.quiet {
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid #b8b5ff;
  outline-offset: 4px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: auto;
  padding: 29px 44px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1.25;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 7px;
}
.brand-icon {
  background: #7773f1;
  border-radius: 12px;
  color: white;
  font-size: 23px;
  padding: 10px 9px;
  letter-spacing: -2px;
}
.accent {
  color: var(--accent);
}
nav {
  display: flex;
  align-items: center;
  gap: 25px;
}
nav a {
  font-size: 14px;
  color: var(--muted);
}
nav a:hover,
nav a[aria-current="page"] {
  color: white;
}
.nav-login {
  border: 1px solid var(--line);
  padding: 10px 21px;
  border-radius: 8px;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 0 44px;
  min-height: 72vh;
}
.page {
  padding: 60px 0 70px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 35px;
  padding-top: 80px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 650;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -1px;
}
h1 {
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 650;
  margin: 23px 0;
}
h2 {
  font-size: 23px;
}
h3 {
  font-size: 18px;
}
.hero h1 {
  font-size: clamp(48px, 6.2vw, 80px);
  letter-spacing: -3px;
}
.hero-copy > p {
  max-width: 490px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}
.hero-notes {
  display: flex;
  gap: 25px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 26px;
}
.hero-art {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #55539d24, transparent 65%);
}
.orbit {
  position: absolute;
  border: 1px solid #73718f25;
  border-radius: 50%;
  width: 400px;
  height: 400px;
}
.orbit-two {
  width: 520px;
  height: 520px;
  border-style: dashed;
}
.search-preview {
  position: relative;
  background: linear-gradient(120deg, #25283a, #1a1c2c);
  border: 1px solid #42445f;
  border-radius: 20px;
  width: 91%;
  max-width: 390px;
  padding: 27px;
  box-shadow: 0 28px 70px #0005;
  transform: rotate(-4deg);
}
.preview-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.4px;
}
.mini-icon {
  background: #807bf32a;
  color: var(--accent);
  border-radius: 7px;
  font-size: 21px;
  padding: 0 9px;
}
.preview-top i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-left: auto;
}
.preview-label {
  font-size: 16px;
  margin: 23px 0 14px;
}
.preview-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid #45465e;
  background: #151824;
  border-radius: 7px;
  padding: 8px 8px 8px 11px;
}
.preview-input b {
  background: #807bf3;
  color: #fff;
  padding: 5px 11px;
  border-radius: 5px;
}
.preview-lines {
  display: grid;
  gap: 9px;
  padding: 25px 0;
}
.preview-lines span {
  background: #56577333;
  height: 7px;
  width: 90%;
  border-radius: 2px;
}
.preview-lines span:nth-child(2) {
  width: 64%;
}
.preview-lines span:nth-child(3) {
  width: 78%;
}
.preview-footer {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  font-size: 10px;
  color: var(--muted);
}
.preview-footer .dot {
  margin-right: 5px;
}
.floating-tag {
  position: absolute;
  bottom: 49px;
  right: 6px;
  border: 1px solid #4e5073;
  background: #24273b;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 10px 30px #0005;
}
.floating-tag span {
  color: var(--accent);
  margin-right: 12px;
}
.feature-strip {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 32px;
}
.feature-strip article {
  position: relative;
  padding-left: 37px;
}
.feature-strip article > span {
  position: absolute;
  left: 0;
  top: 9px;
  font-size: 11px;
  color: var(--accent);
}
.feature-strip h3 {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: 0;
}
.feature-strip p {
  font-size: 12px;
  color: var(--muted);
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 30px;
}
.panel h2 {
  margin-top: 0;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 430px;
  align-items: center;
  gap: 80px;
  max-width: 1000px;
  margin: 20px auto;
}
.auth-layout > div > p,
.section-heading p {
  color: var(--muted);
}
label {
  display: block;
  font-size: 13px;
  margin: 18px 0 7px;
  font-weight: 550;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #45485f;
  border-radius: 8px;
  background: #121520;
  color: var(--text);
  padding: 13px 15px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}
input::placeholder {
  color: #7e829a;
}
form > .primary {
  width: 100%;
  margin-top: 24px;
  justify-content: space-between;
}
form > p {
  font-size: 13px;
  color: var(--muted);
}
form small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}
.section-heading {
  text-align: center;
  margin-bottom: 37px;
}
.section-heading h1 {
  font-size: 44px;
}
.section-heading.left {
  text-align: left;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.plan {
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured {
  border-color: #8c87f1;
  background: linear-gradient(145deg, #2c2b47, #1b1d2b);
}
.plan-badge {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 1px;
  min-height: 25px;
}
.plan h2 {
  font-size: 25px;
  margin: 10px 0;
}
.price {
  font-size: 45px;
  font-weight: 650;
  letter-spacing: -2px;
  margin-top: 14px;
}
.plan small {
  color: var(--muted);
}
.plan ul {
  list-style: none;
  padding: 12px 0;
  line-height: 2.8;
  font-size: 13px;
  margin-bottom: 25px;
}
.plan li:before {
  content: "✓";
  color: var(--green);
  margin-right: 12px;
}
.plan button {
  margin-top: auto;
}
.footnote {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 23px 0;
}
.subtle {
  padding: 19px 25px;
  margin-top: 24px;
}
.subtle p {
  color: var(--muted);
  font-size: 13px;
}
.workspace {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}
.tab-group {
  display: flex;
  gap: 8px;
  background: #11141e;
  padding: 5px;
  border-radius: 9px;
  margin-bottom: 25px;
}
.tab-group button {
  flex: 1;
  background: transparent;
  color: var(--muted);
  padding: 8px;
  min-height: 40px;
}
.tab-group .selected {
  background: #34314f;
  color: #d0cbff;
}
.search-selection {
  margin-bottom: 24px;
}
.search-types {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
#search-consultation-heading {
  margin: 16px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.search-type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-type-options button {
  min-height: 36px;
  padding: 7px 13px;
  margin: 0;
  border: 1px solid var(--line);
  background: #11141e;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  overflow-wrap: anywhere;
}
.search-type-options button.selected {
  border-color: var(--accent);
  background: #34314f;
  color: #d0cbff;
}
.search-type-options button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.search-types button {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
}
#search-options {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
#search-options:empty {
  display: none;
}
#search-options label {
  margin-top: 8px;
}
#search-options input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}
.privacy-note {
  margin-top: 23px;
  font-size: 11px;
  line-height: 1.8;
}
.result {
  min-height: 335px;
  overflow-wrap: anywhere;
}
.result > p,
.result > h2 {
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 60px;
  padding: 20px;
}
.result dl,
dl {
  margin: 0;
}
.result dt,
dt {
  font-size: 11px;
  color: var(--muted);
  margin-top: 15px;
}
dd {
  margin: 3px 0 12px;
  line-height: 1.6;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.result h2 {
  font-size: 20px;
}
.unavailable {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 30px;
}
.unavailable > span {
  border: 1px dashed #36394c;
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 12px;
}
.unavailable small {
  font-size: 9px;
  margin-left: 13px;
  color: #83879e;
}
.balance > span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
}
.balance strong {
  display: block;
  font-size: 52px;
  margin: 20px 0 0;
  letter-spacing: -2px;
}
.balance small,
.balance p {
  color: var(--muted);
  font-size: 12px;
}
.history {
  margin-top: 25px;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  align-items: center;
}
.row small {
  color: var(--muted);
  display: block;
}
.row:last-child {
  border: 0;
}
.pix-layout {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
}
.qr-area {
  background: white;
  color: #252535;
  aspect-ratio: 1;
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-size: 13px;
}
.qr-area img {
  width: 100%;
  height: auto;
}
.pix-layout h2 {
  font-size: 42px;
  margin: 17px 0;
}
.pix-layout p {
  font-size: 13px;
  color: var(--muted);
}
textarea {
  font-size: 11px;
  resize: vertical;
}
.environment {
  background: #342d14;
  color: #edda93;
  text-align: center;
  padding: 8px 20px;
  font-size: 12px;
}
#notice {
  position: fixed;
  top: 95px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  border: 1px solid #5d6385;
  border-radius: 9px;
  padding: 14px 20px;
  background: #303448;
  box-shadow: 0 15px 30px #0005;
  width: max-content;
  max-width: 90vw;
  font-size: 14px;
}
#notice.error {
  border-color: #c17d8e;
  background: #442c37;
}
footer {
  max-width: 1192px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
footer .brand {
  font-size: 18px;
  gap: 0;
}
footer p,
footer small {
  font-size: 10px;
  color: var(--muted);
}
[hidden],
[data-auth] {
  display: none !important;
}
body.authenticated [data-guest] {
  display: none !important;
}
body.authenticated [data-auth] {
  display: inline-flex !important;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 10px;
  left: 10px;
  z-index: 100;
  background: var(--panel);
  padding: 10px;
}
@media (max-width: 900px) {
  header {
    padding: 20px 25px;
  }
  nav {
    gap: 14px;
  }
  main {
    padding: 0 25px;
  }
  .hero {
    padding-top: 50px;
    gap: 10px;
  }
  .hero-art {
    min-height: 360px;
  }
  .hero h1 {
    font-size: 62px;
  }
  .hero-copy > p {
    font-size: 14px;
  }
  .hero .actions {
    gap: 10px;
  }
  .hero .button {
    font-size: 13px;
    padding: 12px 16px;
  }
  .auth-layout {
    gap: 30px;
    grid-template-columns: 1fr 1fr;
  }
  .plans-grid {
    gap: 12px;
  }
  .plan {
    padding: 20px;
  }
  .plan ul {
    font-size: 12px;
  }
  .price {
    font-size: 36px;
  }
  .pix-layout {
    grid-template-columns: 210px 1fr;
    gap: 25px;
  }
  footer {
    margin: 0 25px;
  }
  .brand small {
    display: none;
  }
}
@media (max-width: 650px) {
  header {
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 21px;
  }
  .brand-icon {
    padding: 7px;
  }
  nav {
    flex-wrap: wrap;
    gap: 16px;
  }
  nav a {
    font-size: 12px;
  }
  .nav-login {
    padding: 6px 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 35px;
  }
  .hero-art {
    min-height: 330px;
  }
  .hero h1 {
    font-size: 52px;
  }
  .hero-notes {
    font-size: 11px;
  }
  .feature-strip {
    grid-template-columns: 1fr;
    margin-top: 10px;
    gap: 12px;
  }
  .feature-strip article p {
    margin-bottom: 0;
  }
  .page {
    padding: 35px 0 45px;
  }
  .auth-layout,
  .workspace,
  .plans-grid,
  .pix-layout {
    grid-template-columns: 1fr;
  }
  .auth-layout {
    gap: 20px;
  }
  .auth-layout h1 {
    font-size: 35px;
  }
  .section-heading h1 {
    font-size: 35px;
  }
  .panel {
    padding: 24px;
  }
  .qr-area {
    max-width: 250px;
    width: 100%;
    margin: auto;
  }
  .section-heading {
    text-align: left;
  }
  .unavailable {
    gap: 8px;
  }
  .row {
    font-size: 11px;
    flex-wrap: wrap;
  }
  footer {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  footer p {
    margin: 0;
  }
  footer small {
    display: none;
  }
}

/* Structured provider results: safe text, collapsible sections and mobile records. */
#consulta .workspace {
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.5fr);
  align-items: start;
}
.result {
  min-width: 0;
}
.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.result-heading h2 {
  margin: 0;
}
.copy-result {
  margin: 0;
  min-height: 38px;
  padding: 8px 13px;
  font-size: 12px;
  white-space: nowrap;
}
.copy-buffer {
  position: fixed;
  left: -9999px;
  top: 0;
}
.result .result-source {
  text-align: left;
  font-size: 12px;
  margin-bottom: 24px;
}
.result-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 12px 0;
  overflow: hidden;
}
.result-section > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  list-style: none;
}
.result-section > summary::-webkit-details-marker {
  display: none;
}
.result-section > summary::before {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}
.result-section[open] > summary::before {
  content: "−";
}
.result-section[open] > summary {
  background: #7773f110;
  border-bottom: 1px solid var(--line);
}
.result-count {
  margin-left: auto;
  color: var(--accent);
  background: #7773f11f;
  padding: 1px 9px;
  border-radius: 15px;
  font-size: 11px;
}
.result .result-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  padding: 20px;
}
.result .result-field dt {
  margin: 0 0 4px;
}
.result .result-field dd {
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.result-table-wrap {
  overflow-x: auto;
}
.result-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.result-table th {
  font-weight: 550;
  color: var(--muted);
  font-size: 11px;
}
.result-table th,
.result-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.result-table tbody tr:last-child td {
  border-bottom: 0;
}
.result-section > .footnote {
  padding: 0 16px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 760px) {
  #consulta .workspace {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .result .result-fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .result-table thead {
    display: none;
  }
  .result-table,
  .result-table tbody,
  .result-table tr,
  .result-table td {
    display: block;
  }
  .result-table tr {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
  }
  .result-table tr:last-child {
    border-bottom: 0;
  }
  .result-table td {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 6px 0;
    border: 0;
  }
  .result-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
  }
}
