

:root {
  --ink: #111826;
  --ink-solid: #111826;
  --ink-2: #5a6472;
  --ink-3: #8a93a3;
  --paper: #f4f6f1;
  --paper-2: #eef1ea;
  --panel: #ffffff;
  --line: #e3e7de;
  --line-strong: #c9cfc2;
  --indigo: #4e5bf2;
  --indigo-deep: #3a46d6;
  --indigo-soft: #eceefd;
  --emerald: #0fa968;
  --emerald-deep: #0b7d4f;
  --emerald-soft: #e3f6ec;
  --amber: #e8920c;
  --amber-deep: #a36508;
  --amber-soft: #fdf3e0;
  --code-bg: #0d1320;
  --code-ink: #e8ecf5;
  --code-dim: #7d8aa3;
  --code-faint: #78869c;
  --code-line: #1c2436;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Schibsted Grotesk", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --header-h: 68px;
  --container: 1180px;
}

:root[data-theme="dark"] {
  --ink: #e8ecf5;
  --ink-2: #aab3c5;
  --ink-3: #7d8aa3;
  --paper: #0b101d;
  --paper-2: #131a2b;
  --panel: #101828;
  --line: #1c2436;
  --line-strong: #2a3550;
  --indigo: #8ea6ff;
  --indigo-deep: #aebaff;
  --indigo-soft: #1b2340;
  --emerald: #34d399;
  --emerald-deep: #6ee7b7;
  --emerald-soft: #0f2b22;
  --amber: #fbbf24;
  --amber-deep: #fcd34d;
  --amber-soft: #33240d;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--ink-3) transparent;
}
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--ink-3);
  border-radius: 999px;
  border: 2.5px solid transparent;
  background-clip: padding-box;
  opacity: 0.55;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-2); background-clip: padding-box; border: 2.5px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }

.legal-main { padding-top: 48px; }
.legal-doc { padding: 34px 38px; display: flex; flex-direction: column; gap: 30px; max-width: 860px; margin: 0 auto; }
.legal-block h3 { font-size: 1.18rem; margin-bottom: 10px; color: var(--ink); }
.legal-block p { color: var(--ink-2); line-height: 1.75; font-size: 0.97rem; }
.legal-block p + p { margin-top: 10px; }
.legal-block a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.legal-list { display: flex; flex-direction: column; gap: 9px; margin: 12px 0 0; padding-left: 2px; list-style: none; }
.legal-list li { position: relative; padding-left: 26px; color: var(--ink-2); line-height: 1.7; font-size: 0.96rem; }
.legal-list li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--indigo); opacity: 0.75;
}
.legal-list strong { color: var(--ink); font-weight: 600; }
.legal-doc .mono { font-size: 0.86em; }

.theme-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.theme-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-btn svg { position: absolute; }
.theme-btn svg[data-icon="dark"] { display: none; }
html[data-theme="dark"] .theme-btn svg[data-icon="dark"] { display: block; }
html[data-theme="dark"] .theme-btn svg[data-icon="light"] { display: none; }
.dash-side .theme-btn {
  position: relative;
  width: 100%; height: 38px;
  justify-content: flex-start;
  gap: 9px;
  padding: 0 12px;
  border-radius: 10px;
  color: #c6cfe0;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  font-weight: 600;
}
.dash-side .theme-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}
.dash-side .theme-btn svg { position: static; flex: none; }
.dash-side .theme-btn [data-theme-label] { white-space: nowrap; }


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
code { font-family: var(--font-mono); font-size: 0.85em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.08em 0.4em; }
img, svg { display: block; }

.mono { font-family: var(--font-mono); }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--ink-solid); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--indigo) 45%, transparent); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }


.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 28px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 34px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { color: var(--indigo); display: inline-flex; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.22rem;
  letter-spacing: -0.02em;
}
.brand-name-accent { color: var(--indigo); }

.site-nav { display: flex; gap: 26px; margin-left: 8px; }
.site-nav a {
  font-size: 0.94rem; font-weight: 500; color: var(--ink-2);
  padding: 6px 2px; position: relative; white-space: nowrap;
  transition: color 0.18s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--indigo); border-radius: 2px;
  transition: right 0.22s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.lang-select { position: relative; }
.lang-select-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.86rem; font-weight: 600; color: var(--ink-2);
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.lang-select-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.lang-select-btn .chev { transition: transform 0.18s var(--ease); }
.lang-select-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: min(320px, calc(100vw - 32px));
  max-height: min(70vh, 420px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px -18px rgba(17, 24, 38, 0.22);
  padding: 6px; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  list-style: none;
}
.lang-menu li button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  font-size: 0.88rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 10px; border-radius: 8px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.lang-flag { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); object-fit: cover; flex: none; }
.lang-menu li button:hover { background: var(--paper-2); color: var(--ink); }
.lang-menu li[aria-selected="true"] button { color: var(--indigo); font-weight: 600; }

/* Scroll do dropdown de idioma: barra fina e discreta */
.lang-menu {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
.lang-menu::-webkit-scrollbar { width: 8px; }
.lang-menu::-webkit-scrollbar-track { background: transparent; }
.lang-menu::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
  border: 2px solid var(--panel);
}
.lang-menu::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Clique/toque NÃO deixa contorno/sombra por cima dos controles do cabeçalho
   (o Safari aplica :focus no clique e o anel global aparecia "por cima").
   O anel continua existindo pra navegação por TECLADO (:focus-visible). */
.theme-btn:focus,
.lang-select-btn:focus,
.menu-toggle:focus { outline: none; box-shadow: none; }
.theme-btn:focus-visible,
.lang-select-btn:focus-visible,
.menu-toggle:focus-visible { outline: 2px solid var(--indigo-deep); outline-offset: 2px; }

/* Sem o retângulo cinza/azul do toque no iOS/Android (a "marca" que ficava
   depois de apertar o botão). */
* {
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  padding: 14px 24px 22px; border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav a:not(.btn) { padding: 12px 4px; font-weight: 500; font-size: 1rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a:not(.btn):last-of-type { border-bottom: 0; }
.mobile-nav .btn { margin-top: 12px; color: #fff; }
.mobile-nav .btn-ghost { color: var(--ink); }

/* Força da senha no criar conta: fraca = âmbar, forte = verde lima */
.field-msg.is-weak { color: #b45309; font-weight: 600; }
.field-msg.is-strong { color: #3f6212; font-weight: 700; }
[data-theme="dark"] .field-msg.is-weak { color: #fbbf24; }
[data-theme="dark"] .field-msg.is-strong { color: #a3e635; }

.profile-pop-balance {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  margin: 0 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.profile-pop-balance-value {
  font-weight: 700;
  color: var(--indigo-deep, #4f5be2);
  letter-spacing: 0.02em;
}

/* ============================================================
   PAGINA DE PRECOS (/precos)
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 34px;
}
.pricing-card {
  background: var(--panel, #fff);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 18px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pricing-card:hover { transform: translateY(-4px); border-color: var(--line-strong, #cbd5e1); box-shadow: 0 24px 44px -28px rgba(17, 24, 38, 0.3); }
.pricing-card-featured { border-color: color-mix(in srgb, var(--indigo, #5b66f4) 45%, var(--line, #e5e7eb)); }
.pricing-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pricing-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--indigo-soft, #eef0fe);
  color: var(--indigo-deep, #4f5be2);
  flex: none;
}
.pricing-card h3 { font-size: 1.18rem; letter-spacing: -0.01em; }
.pricing-price { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-top: 6px; }
.pricing-unit { font-size: 1rem; font-weight: 500; color: var(--ink-2, #64748b); margin-left: 4px; }
.pricing-per { font-size: 0.78rem; color: var(--ink-2, #64748b); }
.pricing-feats { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pricing-feats li { font-size: 0.88rem; color: var(--ink-2, #64748b); padding-left: 22px; position: relative; }
.pricing-feats li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 12px; height: 12px;
  border-radius: 4px;
  background: var(--emerald-soft, #e2f7ea);
}
.pricing-feats li::after {
  content: "";
  position: absolute; left: 3.5px; top: 9.5px;
  width: 5px; height: 3px;
  border-left: 1.6px solid var(--emerald-deep, #11845b);
  border-bottom: 1.6px solid var(--emerald-deep, #11845b);
  transform: rotate(-45deg);
}
.pricing-card-soon { border-style: dashed; }
.pricing-table-wrap { overflow-x: auto; margin-top: 28px; }
.pricing-table { min-width: 520px; }
.pricing-table-us { color: var(--indigo-deep, #4f5be2); font-weight: 700; }
.pricing-rules-grid { margin-top: 28px; }
.pricing-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-price { font-size: 1.9rem; }
}


.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  border-radius: 999px; padding: 12px 22px;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--indigo) 60%, transparent); }
.btn-primary:hover { background: var(--indigo-deep); transform: translateY(-1px); }
.btn-ghost { background: var(--panel); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }


.eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--indigo-deep);
}
.chip {
  border: 1px dashed var(--indigo); border-radius: 999px;
  padding: 7px 14px; background: var(--indigo-soft); letter-spacing: 0.08em;
}

/* O eyebrow do hero ("Infraestrutura de resolução de CAPTCHA") fica em UMA
   linha em QUALQUER tela: sem quebra + fonte um pouco menor. */
.hero .eyebrow.chip {
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
@media (max-width: 620px) {
  .hero .eyebrow.chip {
    font-size: 0.64rem;
    padding: 6px 11px;
  }
}


.hero { padding: 84px 0 96px; position: relative; overflow: hidden; }
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-title {
  margin: 22px 0 20px;
  font-size: clamp(2.5rem, 5.2vw, 4.05rem);
  font-weight: 700; letter-spacing: -0.03em;
}
.hero-title-accent { color: var(--indigo); }
.hero-desc { font-size: 1.1rem; color: var(--ink-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-footnote { margin-top: 22px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-2); }


.hero-visual { display: flex; flex-direction: column; gap: 18px; }
.ticket-stage { display: flex; flex-direction: column; gap: 14px; }

.ticket-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgba(17, 24, 38, 0.35);
  padding: 18px 20px 14px;
  max-width: 420px;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ticket-card.is-solved {
  border-color: rgba(15, 169, 104, 0.45);
  box-shadow: 0 30px 60px -30px rgba(15, 169, 104, 0.35);
}
.ticket-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px dashed var(--line-strong);
}
.ticket-hash {
  font-size: 0.8rem; font-weight: 600;
  color: var(--indigo-deep); background: var(--indigo-soft);
  padding: 4px 10px; border-radius: 6px;
}
.ticket-state {
  font-size: 0.82rem; font-weight: 700;
  color: var(--amber-deep); text-transform: uppercase; letter-spacing: 0.06em;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.ticket-state.is-solved {
  color: var(--emerald-deep);
  animation: ticketPop 0.5s var(--ease);
}
@keyframes ticketPop {
  0% { transform: scale(1.3) rotate(-3deg); }
  60% { transform: scale(0.94) rotate(1deg); }
  100% { transform: scale(1) rotate(0); }
}
.ticket-rows { margin: 10px 0 4px; }
.ticket-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 5px 0;
}
.ticket-label {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em;
  color: var(--ink-3); text-transform: uppercase;
}
.ticket-val { font-size: 0.82rem; color: var(--ink); margin: 0; }
.ticket-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 10px; margin-top: 6px; border-top: 1px dashed var(--line-strong);
}
.ticket-total { font-size: 0.8rem; color: var(--ink-3); }
.ticket-result { display: inline-flex; align-items: center; gap: 10px; }
.ticket-badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--emerald-deep); background: var(--emerald-soft);
  border-radius: 999px; padding: 4px 12px;
  opacity: 0; transform: translateY(3px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.ticket-badge.is-on { opacity: 1; transform: none; }
.ticket-elapsed { font-size: 0.82rem; font-weight: 600; color: var(--ink); }

.ticket-carimbo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -54%) rotate(-10deg) scale(1.8);
  border: 2px dashed var(--emerald-deep);
  border-radius: 10px;
  color: var(--emerald-deep);
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  padding: 8px 18px;
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 8px 24px -8px rgba(11, 125, 79, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.4s var(--ease);
}
.ticket-carimbo::after { content: " ✓"; }
.ticket-carimbo.is-on {
  opacity: 1;
  transform: translate(-50%, -54%) rotate(-10deg) scale(1);
}

.state-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); }
.state-dot-live { animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--indigo) 40%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}


.log-strip {
  background: var(--code-bg); border-radius: var(--radius);
  padding: 14px 18px;
  max-width: 420px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 18px 40px -22px rgba(13, 19, 32, 0.5);
}
.log-line {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 0.8rem;
  color: var(--code-faint);
  transition: color 0.3s var(--ease);
}
.log-line.is-on { color: var(--code-ink); }
.log-line-ok:not(.is-on) { color: var(--code-faint); }
.log-line-ok.is-on { color: var(--emerald); }
.log-time { color: var(--code-dim); font-size: 0.74rem; min-width: 44px; }
.log-msg { color: inherit; }


.section { padding: 96px 0; }
.section-tint { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.55rem); margin: 14px 0 14px; }
.section-desc { color: var(--ink-2); font-size: 1.05rem; }


.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }


.workflow { position: relative; padding: 34px 8px 14px; }
.workflow-steps {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  position: relative; z-index: 2;
}
.workflow-step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.workflow-step.is-active {
  border-color: var(--indigo);
  box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--indigo) 55%, transparent);
  transform: translateY(-4px);
}
.workflow-step.is-done { border-color: color-mix(in srgb, var(--emerald) 45%, var(--line)); }
.workflow-step.is-done .step-badge { background: var(--emerald-soft); color: var(--emerald-deep); }
.workflow-step.is-active .step-badge { background: var(--indigo); color: #fff; }
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 26px; font-size: 0.74rem; font-weight: 600;
  background: var(--paper-2); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 8px;
}
.step-icon { color: var(--ink-2); }
.workflow-step.is-active .step-icon { color: var(--indigo); }
.workflow-step.is-done .step-icon { color: var(--emerald); }
.workflow-step h3 { font-size: 1.02rem; margin-top: 4px; }
.workflow-step p { font-size: 0.88rem; color: var(--ink-2); }
.workflow-track {
  position: absolute; left: 4%; right: 4%; top: 96px; height: 2px; z-index: 1;
  background: var(--line-strong); border-radius: 2px;
}
.workflow-progress {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--indigo), var(--emerald));
  border-radius: 2px;
  transition: width 0.5s var(--ease);
}
.workflow-status {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 26px; color: var(--ink-2); font-size: 0.8rem;
}


.how-grid {
  display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: stretch;
}
.how-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.how-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 22px 44px -26px rgba(17, 24, 38, 0.28); }
.how-card-top { display: flex; align-items: center; justify-content: space-between; }
.how-num { font-size: 1.6rem; font-weight: 600; color: var(--indigo); letter-spacing: -0.02em; }
.how-method {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px;
}
.how-card h3 { font-size: 1.18rem; }
.how-card p { color: var(--ink-2); font-size: 0.94rem; }
.how-snippet {
  margin-top: auto;
  font-size: 0.76rem; color: var(--ink-2);
  background: var(--paper-2); border: 1px dashed var(--line-strong); border-radius: 10px;
  padding: 10px 12px;
  word-break: break-all;
}
.how-snippet-ok { background: var(--emerald-soft); border-color: color-mix(in srgb, var(--emerald) 40%, transparent); color: color-mix(in srgb, var(--emerald) 85%, var(--ink)); }
.snippet-k { color: var(--indigo-deep); margin-right: 6px; }
.how-connector { display: flex; align-items: center; justify-content: center; position: relative; }
.connector-line { width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 7px, transparent 7px 13px); }
.connector-dot {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--indigo);
  animation: dotTravel 2.6s var(--ease) infinite;
}
@keyframes dotTravel {
  0% { left: -2px; opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { left: calc(100% - 7px); opacity: 0; }
}


.code-shell {
  background: var(--code-bg);
  border: 1px solid #1f2a42;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 30px 60px -30px rgba(13, 19, 32, 0.55);
}
.code-toolbar {
  display: flex; align-items: stretch; justify-content: space-between; gap: 10px;
  padding: 0 12px;
  background: #101a2d;
  border-bottom: 1px solid var(--code-line);
}
.code-tabs {
  display: flex; align-items: stretch; gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.code-tabs::-webkit-scrollbar { display: none; }
.code-tab {
  position: relative;
  flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  color: var(--code-dim); padding: 11px 14px 12px;
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}
.code-tab::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  border-radius: 2px 2px 0 0; background: var(--indigo);
  transform: scaleX(0); transform-origin: 50% 100%;
  transition: transform 0.22s var(--ease);
}
.code-tab:hover { color: var(--code-ink); }
.code-tab:focus-visible { outline-offset: -3px; }
.code-tab.is-active { color: var(--code-ink); }
.code-tab.is-active::after { transform: scaleX(1); }
.copy-btn {
  align-self: center;
  display: inline-flex; align-items: center; gap: 7px;
  flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 500;
  color: var(--code-dim); border: 1px solid #26334f; border-radius: 8px;
  padding: 5px 11px;
  background: transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.copy-btn:hover { color: var(--code-ink); border-color: #3a4a6e; background: #172238; }
.copy-btn.is-copied { color: #5fe3a5; border-color: rgba(95, 227, 165, 0.45); background: rgba(95, 227, 165, 0.08); }
.code-block {
  margin: 0; padding: 24px 28px 28px; overflow-x: auto;
  background: var(--code-bg);
  font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.75;
  font-variant-ligatures: none;
  color: var(--code-ink);
  tab-size: 4;
  min-height: 320px;
  scrollbar-width: thin;
  scrollbar-color: #2c3c5e transparent;
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}
.code-block.is-switching { opacity: 0; transform: translateY(5px); }
.code-block::-webkit-scrollbar { height: 10px; }
.code-block::-webkit-scrollbar-track { background: transparent; }
.code-block::-webkit-scrollbar-thumb {
  background: #2c3c5e; border-radius: 8px;
  border: 2px solid var(--code-bg);
}
.code-block::-webkit-scrollbar-thumb:hover { background: #3a4c76; }
.code-block code {
  display: block;
  background: none; border: 0; padding: 0; border-radius: 0;
  font-size: inherit; line-height: inherit; color: inherit;
  white-space: pre;
}
.code-status {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 16px; border-top: 1px solid var(--code-line);
  background: #101a2d;
  font-size: 0.74rem; color: var(--code-dim);
}
.code-status-endpoints { color: var(--code-faint); letter-spacing: 0.04em; }
.code-status-lang { color: var(--code-faint); }


.mini-code code {
  display: block;
  background: none; border: 0; padding: 0; border-radius: 0;
  font-size: inherit; line-height: inherit; color: inherit;
  white-space: pre;
}


.tok-cm { color: #6d7b95; font-style: italic; }
.tok-kw { color: #8ea6ff; }
.tok-str { color: #7fd9a4; }
.tok-fn { color: #ffc86b; }
.tok-num { color: #ff9d76; }
.tok-prop { color: #7fd0f0; }


.types-grid {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.types-track {
  display: flex;
  width: max-content;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.types-track:active { cursor: grabbing; }
.type-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 14px;
  flex: 0 0 352px; width: 352px; margin-right: 22px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.type-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 26px 48px -28px rgba(17, 24, 38, 0.3); }
.type-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.type-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  padding: 10px;
  border-radius: 13px;
  background: var(--indigo-soft, #eef0fe);
  color: var(--indigo-deep, #4f5be2);
  flex: none;
}
.type-card h3 { font-size: 1.24rem; letter-spacing: -0.01em; }
.type-card p { color: var(--ink-2); font-size: 0.94rem; line-height: 1.7; }
.type-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.type-meta li {
  font-size: 0.74rem; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  line-height: 1.4;
}
.type-badge {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 12px;
}
.badge-live { background: var(--emerald-soft); color: var(--emerald-deep); }
.badge-soon { background: var(--amber-soft); color: var(--amber-deep); border: 1px dashed var(--amber-deep); }
.type-card-soon { border-style: dashed; }


.features-grid {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.features-track {
  display: flex;
  width: max-content;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
/* No toque, o navegador "rouba" o gesto horizontal pro scroll da página e o
   arrasto dos carrosséis morre. pan-y deixa o scroll vertical livre e entrega
   o gesto horizontal pro arrasto dos cards. */
.types-track, .features-track, .ops-track { touch-action: pan-y; }
.features-track:active { cursor: grabbing; }
.feature-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 9px;
  flex: 0 0 300px;
  width: 300px;
  margin-right: 20px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 16px 34px -24px rgba(17, 24, 38, 0.3); }
.feature-icon {
  color: var(--indigo);
  display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
  background: var(--indigo-soft); border-radius: 10px;
}
.feature-card h3 { font-size: 1.02rem; }
.feature-card p { font-size: 0.88rem; color: var(--ink-2); }


.docs-shell {
  display: grid; grid-template-columns: 240px 1fr; gap: 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.docs-side {
  background: var(--paper-2); border-right: 1px solid var(--line);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 8px;
}
.docs-side-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.docs-endpoint {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.86rem; color: var(--ink-2);
  padding: 9px 12px; border-radius: 10px; border: 1px solid transparent;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.docs-endpoint:hover { background: var(--panel); color: var(--ink); }
.docs-endpoint.is-active { background: var(--panel); color: var(--ink); border-color: var(--line); font-weight: 600; }
.method-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  border-radius: 6px; padding: 3px 8px; min-width: 46px;
}
.method-post { background: var(--indigo-soft); color: var(--indigo); }
.method-get { background: var(--emerald-soft); color: var(--emerald); }

.docs-content { padding: 26px 28px; display: flex; flex-direction: column; gap: 26px; }
.docs-block { scroll-margin-top: calc(var(--header-h) + 24px); }
.docs-block.is-off, .docs-params.is-off { display: none; }
.docs-block.doc-in, .docs-params.doc-in { animation: docIn 0.3s var(--ease); }
@keyframes docIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.docs-block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.docs-path { font-size: 0.95rem; font-weight: 600; background: none; border: 0; padding: 0; }
.docs-para { color: var(--ink-2); font-size: 0.94rem; margin-bottom: 14px; }
.docs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.docs-cols > * { min-width: 0; }
.docs-shell > *, .docs-content { min-width: 0; }
.code-shell { min-width: 0; }
.docs-label { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.mini-code {
  margin: 0; background: var(--code-bg); color: var(--code-ink);
  border-radius: 10px; padding: 14px 16px;
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.65;
  overflow-x: auto;
}
.docs-params { border-top: 1px solid var(--line); padding-top: 18px; }
.params-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.params-list li { display: flex; align-items: baseline; gap: 14px; font-size: 0.82rem; }
.params-list code { color: var(--indigo-deep); background: var(--indigo-soft); border-color: transparent; }
.params-list span { color: var(--ink-2); }


.site-footer { background: var(--ink-solid); color: #c6cdd9; padding: 64px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-mark { color: #8ea6ff; }
.footer-tagline { font-size: 0.94rem; max-width: 240px; }
.footer-lang { margin-top: 20px; }
.footer-lang label { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #7d8aa3; margin-bottom: 7px; }
.footer-lang-select {
  display: inline-flex;
}
.footer-lang-select .lang-select-btn {
  background: #141d30;
  color: #e8ecf5;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.footer-lang-select .lang-select-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.42); }
.footer-lang-select .lang-menu {
  top: auto; bottom: calc(100% + 8px);
  left: 0; right: auto;
  min-width: min(320px, calc(100vw - 48px));
  background: #141d30; border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 -16px 40px -18px rgba(0, 0, 0, 0.55);
}
.footer-lang-select .lang-menu li button { color: #aab3c5; }
.footer-lang-select .lang-menu li button:hover { background: #1c2740; color: #fff; }
.footer-lang-select .lang-menu li[aria-selected="true"] button { color: #8ea6ff; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.95rem; color: #fff; margin-bottom: 16px;
}
.footer-col a {
  display: block; padding: 5px 0; font-size: 0.92rem;
  transition: color 0.16s var(--ease);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding-top: 24px; flex-wrap: wrap;
}
.footer-copy { font-size: 0.86rem; text-align: center; }


@media (max-width: 1080px) {
  .site-nav { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: flex; }
}
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 560px; }
  .workflow-steps { grid-template-columns: repeat(3, 1fr); }
  .workflow-track { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .types-grid { overflow: hidden; }
  .type-card { flex-basis: 290px; width: 290px; }
  .how-grid { grid-template-columns: 1fr; gap: 18px; }
  .how-connector { transform: rotate(90deg); height: 56px; }
  .docs-shell { grid-template-columns: 1fr; }
  .docs-side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); align-items: center; }
  .docs-side-label { margin: 0 8px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .header-cta { display: none; }
  .hero { padding: 56px 0 72px; }  .section { padding: 68px 0; }
  .workflow-steps {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 10px 0 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .workflow-steps::-webkit-scrollbar { display: none; }
  .workflow-step {
    flex: 0 0 84%;
    scroll-snap-align: start;
    margin-right: 12px;
  }
  .workflow-step.is-active {
    transform: none;
    box-shadow: 0 10px 26px -16px color-mix(in srgb, var(--indigo) 55%, transparent);
  }
  .how-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 10px 0 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .how-grid::-webkit-scrollbar { display: none; }
  .how-card {
    flex: 0 0 84%;
    scroll-snap-align: start;
    margin-right: 12px;
  }
  .how-connector { display: none; }
  .dash-table-wrap { max-height: none; overflow: auto; }
  .dash-table { min-width: 520px; }
  .docs-cols { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .code-toolbar { padding: 0 8px; gap: 6px; flex-wrap: wrap; }
  .code-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .code-tabs::-webkit-scrollbar { display: none; }
  .code-tab { padding: 10px 11px 11px; }
  .code-tab::after { left: 9px; right: 9px; }
  .code-block { padding: 18px 18px 22px; font-size: 0.8rem; }
  .code-status { flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 14px; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .workflow-step { opacity: 1; }
  .connector-dot { animation: none; }
}

.login-body {
  min-height: 100vh;
  background: var(--paper);
  background-image:
    radial-gradient(720px 360px at 88% 6%, rgba(78, 91, 242, 0.08), transparent 70%),
    radial-gradient(560px 320px at 4% 96%, rgba(15, 169, 104, 0.06), transparent 70%);
}
.login-header { border-bottom: 1px solid var(--line); }
.login-back {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
  font-size: 0.88rem; font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.login-back:hover { color: var(--indigo-deep); border-color: var(--ink-3); }
.login-main {
  width: 100%; max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 64px 24px 88px;
}
.login-eyebrow {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong);
  color: var(--indigo-deep);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 999px; padding: 6px 14px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}
.login-intro h1 { margin: 18px 0 14px; font-size: clamp(2rem, 3.4vw, 2.6rem); }
.login-accent { color: var(--indigo); }
.login-lead { color: var(--ink-2); font-size: 1.05rem; max-width: 420px; }
.login-features { display: flex; flex-direction: column; gap: 18px; margin-top: 34px; }
.login-features li { display: flex; gap: 14px; align-items: flex-start; max-width: 430px; }
.login-features li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.login-fi {
  flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--indigo-soft); color: var(--indigo);
}
.login-features strong { display: block; font-size: 0.96rem; color: var(--ink); }
.login-features li > span:last-child > span { font-size: 0.88rem; color: var(--ink-2); }
.login-card {
  position: relative; overflow: hidden;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(17, 24, 38, 0.35);
  padding: 26px 28px 24px;
}
.login-stamp {
  position: absolute; right: -20px; top: 62px;
  transform: rotate(-14deg);
  border: 2px dashed rgba(11, 125, 79, 0.4);
  color: rgba(11, 125, 79, 0.4);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  pointer-events: none;
}
.login-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px dashed var(--line-strong);
}
.login-hash {
  font-size: 0.78rem; font-weight: 600;
  color: var(--indigo-deep); background: var(--indigo-soft);
  padding: 4px 10px; border-radius: 6px;
}
.login-state {
  font-size: 0.78rem; font-weight: 700;
  color: var(--amber-deep); letter-spacing: 0.1em;
  transition: color 0.25s var(--ease);
}
.login-state.is-checking { color: var(--indigo); }
.login-state.is-authed { color: var(--emerald-deep); }
.login-card.is-authed .login-stamp {
  color: var(--emerald-deep);
  border-color: var(--emerald-deep);
  animation: loginStampPop 0.5s var(--ease);
}
@keyframes loginStampPop {
  0% { transform: rotate(-14deg) scale(1.7); opacity: 0; }
  100% { transform: rotate(-14deg) scale(1); opacity: 1; }
}
.login-title { margin: 18px 0 6px; font-size: 1.5rem; }
.login-sub { color: var(--ink-2); font-size: 0.94rem; margin-bottom: 20px; }
.login-sub strong { color: var(--ink); font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  color: var(--ink-3); text-transform: uppercase;
}
.field input {
  font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(78, 91, 242, 0.16); }
.field input[aria-invalid="true"] { border-color: #d14343; box-shadow: 0 0 0 3px rgba(209, 67, 67, 0.14); }
.field-msg { min-height: 1em; font-size: 0.76rem; color: #b3261e; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 46px; }
.pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: inline-flex; color: var(--ink-3); padding: 6px; border-radius: 8px;
  transition: color 0.16s var(--ease);
}
.pass-toggle:hover { color: var(--ink); }
.login-options {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 2px 0 14px;
}
.remember { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--ink-2); cursor: pointer; }
.remember input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.remember .check {
  width: 17px; height: 17px; border-radius: 5px;
  border: 1.5px solid var(--line-strong); background: var(--panel);
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.remember input:checked + .check { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.remember input:focus-visible + .check { outline: 3px solid rgba(78, 91, 242, 0.4); outline-offset: 2px; }
.login-link { font-size: 0.86rem; color: var(--indigo-deep); font-weight: 500; transition: color 0.16s var(--ease); }
.login-link:hover { color: var(--indigo); }
.login-status { min-height: 1.4em; font-size: 0.84rem; color: #b3261e; text-align: center; margin: 2px 0 12px; }
.login-status.ok { color: var(--emerald-deep); }
.login-status.info { color: var(--ink-2); }
.login-submit { width: 100%; justify-content: center; gap: 10px; position: relative; }
.login-submit svg { transition: transform 0.25s var(--ease); }
.login-submit:hover svg { transform: translateX(3px); }
.login-submit.is-loading { pointer-events: none; opacity: 0.8; }
/* Botão bloqueado até o desafio do Cloudflare ser resolvido. O atributo
   `disabled` já impede o clique e tira do foco de teclado; aqui é só o visual
   para ficar claro que ele ainda não está liberado. */
.login-submit[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.login-submit[disabled]:hover { transform: none; background: var(--indigo); }
.login-submit[disabled] svg { opacity: 0.6; }
.login-submit.is-loading .login-submit-label { visibility: hidden; }
.login-submit.is-loading svg { display: none; }
.login-submit.is-loading::after {  content: ""; position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  border-radius: 50%;
  animation: loginSpin 0.8s linear infinite;
}
@keyframes loginSpin { to { transform: rotate(360deg); } }
.login-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 18px 0 14px;
  color: var(--ink-3); font-size: 0.78rem;
}
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-telegram {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px;
  color: var(--ink); font-weight: 600; font-size: 0.92rem;
  padding: 12px 16px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.login-telegram svg { color: #2aabee; }
.login-telegram:hover { border-color: var(--indigo); box-shadow: 0 8px 20px -12px rgba(78, 91, 242, 0.35); }
.login-telegram:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; border-color: var(--line); }
.login-signup { margin-top: 18px; text-align: center; font-size: 0.9rem; color: var(--ink-2); }
.login-signup a { color: var(--indigo); font-weight: 600; transition: color 0.16s var(--ease); }
.login-signup a:hover { color: var(--indigo-deep); }

@media (max-width: 900px) {
  .login-main { grid-template-columns: 1fr; gap: 40px; padding: 44px 20px 64px; align-items: start; }
  .login-intro { display: none; }
  .login-card { max-width: 460px; margin: 0 auto; }
}

.dash-body { display: flex; height: 100vh; overflow: hidden; background: var(--paper); }
.dash-view { display: none; }
#view-overview { display: block; }
html.view-tasks #view-tasks, html.view-keys #view-keys { display: block; }
html.view-tasks #view-overview, html.view-keys #view-overview { display: none; }
.dash-side {
  flex: 0 0 250px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex; flex-direction: column;
  background: var(--ink-solid);
  color: #c6cdd9;
  padding: 20px 14px;
  gap: 8px;
}
html.no-side .dash-side, body.no-side .dash-side,
html.no-side #navBurger, body.no-side #navBurger { display: none; }
.dash-brand { color: #fff; padding: 6px 10px; margin-bottom: 16px; }
.dash-brand .brand-mark { color: #8ea6ff; }
.dash-brand .brand-name-accent { color: #8ea6ff; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  color: #9aa5b8; font-size: 0.92rem; font-weight: 500;
  padding: 10px 12px; border-radius: 10px;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.dash-nav-item::before {
  content: ""; position: absolute; left: -14px; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px; height: 22px; border-radius: 3px;
  background: #8ea6ff;
  transition: transform 0.18s var(--ease);
}
.dash-nav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.dash-nav-item:active { background: rgba(255, 255, 255, 0.12); }
.dash-nav-item.is-active,
html.view-overview #navOverview,
html.view-keys #navKeys,
html.view-tasks #navTasks {
  color: #fff; background: rgba(78, 91, 242, 0.22);
}
.dash-nav-item.is-active::before,
html.view-overview #navOverview::before,
html.view-keys #navKeys::before,
html.view-tasks #navTasks::before { transform: translateY(-50%) scaleY(1); }
.dash-nav-item.is-active svg,
html.view-overview #navOverview svg,
html.view-keys #navKeys svg,
html.view-tasks #navTasks svg { color: #8ea6ff; }
.dash-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.dash-lang { display: flex; flex-direction: column; gap: 7px; }
.dash-side-label {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #6d7a91; padding: 0 2px;
}
.dash-side .lang-select-btn {
  width: 100%; justify-content: space-between;
  color: #c6cfe0; border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
}
.dash-side .lang-select-btn:hover {
  color: #ffffff; border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}
.dash-side .lang-menu {
  left: 0; right: auto; bottom: calc(100% + 8px); top: auto;
  min-width: 100%;
  background: #101726; border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.55);
}
.dash-side .lang-menu li button { color: #c6cfe0; }
.dash-side .lang-menu li button:hover { background: rgba(255, 255, 255, 0.07); color: #ffffff; }
.dash-side .lang-menu li[aria-selected="true"] button { color: #8ea6ff; }
.dash-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.dash-avatar {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(78, 91, 242, 0.3); color: #fff; font-weight: 700;
}
.dash-user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.dash-user-meta strong { color: #fff; font-size: 0.9rem; }
.dash-user-meta .mono { color: #7d8aa3; font-size: 0.68rem; letter-spacing: 0.1em; }
.dash-logout {
  display: flex; align-items: center; gap: 9px;
  color: #9aa5b8; font-size: 0.88rem; font-weight: 500;
  padding: 9px 12px; border-radius: 10px;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.dash-logout:hover { color: #ffb4b4; background: rgba(209, 67, 67, 0.12); }
.dash-main { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 28px 34px 64px; }
.dash-topbar {
  position: relative; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: -28px -34px 32px;
  padding: 16px 34px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.dash-topbar h1 { font-size: 1.5rem; }
.dash-top-actions { display: flex; align-items: center; gap: 12px; }
.dash-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--ink-3); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 5px 12px;
}
.dash-status.is-on { color: var(--emerald-deep); border-color: rgba(15, 169, 104, 0.4); background: var(--emerald-soft); }
.dash-status.is-on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }
.dash-hello { color: var(--ink-2); font-size: 1rem; margin-bottom: 22px; }
.dash-hello strong { color: var(--ink); }
.dash-stats-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -6px 0 18px; }
.dash-stats-filter-label { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-2); }
.dash-filter-chip {
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 0.8rem;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.dash-filter-chip:hover { border-color: var(--accent); color: var(--ink); }
.dash-filter-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.dash-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 14px 30px -22px rgba(17, 24, 38, 0.25);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.dash-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 20px 40px -22px rgba(17, 24, 38, 0.3); }
.dash-card-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--indigo-soft); color: var(--indigo);
  margin-bottom: 4px;
}
.dash-card-label { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; color: var(--ink-3); }
.dash-card-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.dash-card-value-sm { font-size: 1.05rem; padding-top: 8px; word-break: break-all; }
.dash-card-note { font-size: 0.78rem; color: var(--ink-3); }
.dash-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 14px 30px -22px rgba(17, 24, 38, 0.25);
}
.dash-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.dash-panel-head h2 { font-size: 1.15rem; }
.dash-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--ink-3); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 4px 12px;
}
.dash-chip.is-on { color: var(--emerald-deep); border-color: rgba(15, 169, 104, 0.4); background: var(--emerald-soft); }
.dash-chip.is-on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }
.dash-para { color: var(--ink-2); font-size: 0.92rem; margin-bottom: 16px; }
.dash-empty { color: var(--ink-3); font-size: 0.9rem; padding: 18px 0; text-align: center; }
.dash-empty-box {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
  padding: 34px 20px 30px;
}
.dash-empty-box strong { color: var(--ink); font-size: 1rem; }
.dash-empty-box > span:not(.dash-empty-icon) { color: var(--ink-2); font-size: 0.88rem; max-width: 380px; }
.dash-empty-box .btn { margin-top: 12px; }
.dash-empty-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--indigo-soft); color: var(--indigo);
  margin-bottom: 8px;
}
.dash-key-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px dashed var(--line-strong);
  border-radius: 12px; padding: 14px 16px;
}
.dash-key-value { flex: 1; font-size: 0.92rem; color: var(--ink); word-break: break-all; }
.dash-copy {
  display: inline-flex; color: var(--ink-3); padding: 6px; border-radius: 8px;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.dash-copy:hover { color: var(--indigo); background: var(--indigo-soft); }
.dash-copy.is-copied { color: var(--emerald-deep); }
.dash-key-meta { margin-top: 8px; font-size: 0.74rem; color: var(--ink-3); }
.dash-key-actions { display: flex; gap: 12px; margin-top: 18px; }
.dash-new-key {
  margin-top: 18px;
  background: var(--emerald-soft); border: 1px dashed var(--emerald);
  border-radius: 12px; padding: 14px 16px;
}
.dash-new-key-label { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; color: var(--emerald-deep); margin-bottom: 8px; }
.dash-new-key-value { font-size: 0.9rem; color: var(--emerald-deep); font-weight: 600; word-break: break-all; }
.dash-warn { margin-top: 12px; font-size: 0.8rem; color: var(--amber-deep); }
.dash-table-wrap {
  overflow-y: auto;
  max-height: 480px;
  margin: 10px 0 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.dash-table-wrap::-webkit-scrollbar { width: 8px; }
.dash-table-wrap::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
.dash-table-wrap thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--panel);
}
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.dash-table th {
  text-align: left; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--ink-3); padding: 8px 12px; border-bottom: 1px solid var(--line);
}
.dash-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-load-more {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 0 4px;
  font-size: 0.82rem; color: var(--ink-3);
  min-height: 36px;
}
.dash-curl {
  margin: 14px 0 0; padding: 14px 16px;
  background: var(--code-bg); color: var(--code-ink);
  border-radius: 10px; font-size: 0.78rem; line-height: 1.7;
  overflow-x: auto;
}
.docs-page {
  display: grid; grid-template-columns: 200px minmax(0, 1fr);
  gap: 52px; align-items: start;
  max-width: 1020px;
  margin: 0 auto;
}
.docs-toc {
  position: sticky; top: 92px;
  display: flex; flex-direction: column; gap: 2px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.docs-toc-label { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; color: var(--ink-3); margin: 0 0 10px 12px; }
.docs-toc-link {
  position: relative;
  font-size: 0.86rem; color: var(--ink-2);
  padding: 6px 12px; border-radius: 8px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.docs-toc-link:hover { color: var(--ink); background: rgba(78, 91, 242, 0.06); }
.docs-toc-link.is-active { color: var(--indigo-deep); font-weight: 600; background: var(--indigo-soft); }
.docs-content-doc { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
.docs-page .docs-sec {
  background: transparent; border: 0; box-shadow: none; padding: 0;
  scroll-margin-top: 96px;
}
.docs-sec h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 14px; }
.docs-sec .dash-para { margin-bottom: 16px; font-size: 0.98rem; line-height: 1.75; max-width: 68ch; }
.docs-sec .dash-para:last-child { margin-bottom: 0; }
.docs-method-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.docs-method-row .docs-path { font-size: 1.02rem; }
.docs-sec .docs-label { display: block; margin: 18px 0 8px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.docs-code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.docs-code-grid > * { min-width: 0; }
.docs-table { max-width: 100%; }
@media (max-width: 720px) {
  .docs-table { display: block; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
  .docs-table::-webkit-scrollbar { height: 8px; }
  .docs-table::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
}
.docs-code {
  background: var(--code-bg);
  border: 1px solid #1f2a42;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 4px;
}
.docs-code-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 12px;
  background: #101a2d;
  border-bottom: 1px solid #1c2436;
  font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--code-dim);
}
.docs-code-copy {
  font-size: 0.7rem; color: var(--code-dim);
  padding: 3px 8px; border-radius: 6px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.docs-code-copy:hover { color: var(--code-ink); background: rgba(255, 255, 255, 0.06); }
.docs-code-copy.is-copied { color: #5fe3a5; }
.docs-code-pre { margin: 0; padding: 13px 15px; overflow-x: auto; }
.docs-code-pre code {
  display: block;
  background: none; border: 0; padding: 0; border-radius: 0;
  font-size: 0.79rem; line-height: 1.7;
  color: var(--code-ink);
  white-space: pre;
}
.docs-table th { padding: 10px 12px; }
.docs-table td { padding: 12px; }
.docs-status-chip {
  display: inline-flex; align-items: center;
  font-size: 0.72rem; font-weight: 600;
  border-radius: 6px; padding: 2px 9px;
}
.docs-status-chip.is-gray { background: #eef1ea; color: #5a6472; }
.docs-status-chip.is-blue { background: var(--indigo-soft); color: var(--indigo-deep); }
.docs-status-chip.is-green { background: var(--emerald-soft); color: var(--emerald-deep); }
.docs-status-chip.is-red { background: #fdecec; color: #b3261e; }
/* V3 (chave de score): âmbar — é um tipo de chave que não atendemos, não uma
   falha da frota. Usa as variáveis do tema, então funciona no claro e no escuro. */
.docs-status-chip.is-amber { background: var(--amber-soft); color: var(--amber-deep); }

@media (max-width: 980px) {
  .docs-page { grid-template-columns: 1fr; gap: 20px; margin: 0; }
  .docs-toc { display: none; }
  .docs-code-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
}
.dash-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 4px;
  width: 38px; height: 38px;
  padding: 9px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--panel);
}
.dash-burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); }
.dash-overlay {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(17, 24, 38, 0.45);
}
.dash-profile-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel);
  font-weight: 600; font-size: 0.88rem; color: var(--ink);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}
.dash-profile-link:hover { border-color: var(--line-strong); background: var(--paper-2); transform: translateY(-1px); }
.dash-avatar-sm { width: 26px; height: 26px; border-radius: 999px; font-size: 0.78rem; }
.profile-wrap { display: flex; flex-direction: column; gap: 16px; }
.profile-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
  padding: 22px 24px;
}
.profile-hero-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.profile-avatar-wrap {
  position: relative; width: 78px; height: 78px; flex: 0 0 78px;
  display: grid; place-items: center;
  cursor: pointer;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}
.profile-avatar-wrap:hover { opacity: 0.82; }
.profile-avatar-wrap:active { transform: scale(0.96); }
.profile-avatar-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px dashed #b9c2f7;
  animation: profileRingSpin 16s linear infinite;
  will-change: transform;
}
.profile-avatar { width: 58px; height: 58px; border-radius: 50%; font-size: 1.55rem; }
.profile-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.profile-eyebrow { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.profile-name { font-size: 1.3rem; color: var(--ink); word-break: break-word; }
.profile-since { font-size: 0.74rem; color: var(--ink-2); letter-spacing: 0.04em; }
.profile-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.profile-tab {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.profile-tab svg { transition: color 0.2s var(--ease); }
.profile-tab:hover { color: var(--ink); }
.profile-tab::after {
  /* bottom: 0 (e não -1px): a faixa precisa ficar DENTRO da aba. Com -1px ela
     descia 1px além da caixa e, como o .profile-tabs tem overflow-x: auto
     (necessário: em EN/FR os rótulos passam da largura em telas estreitas),
     o overflow-y vira auto pela spec — e esses 1px viravam uma barra de
     rolagem vertical na faixa de abas, em qualquer largura de janela. */
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px;
  border-radius: 2px; background: var(--indigo);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.24s var(--ease);
}
.profile-tab.is-active { color: var(--ink); }
.profile-tab.is-active svg { color: var(--indigo); }
.profile-tab.is-active::after { transform: scaleX(1); }
.profile-tabpanel { padding: 24px; }
.profile-pane { animation: none; }
.dash-avatar.has-photo {
  background-size: cover;
  background-position: center;
  color: transparent;
}
.profile-avatar-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  width: 100%;
  margin-top: 12px;
}
.profile-avatar-actions .dash-msg { margin: 0; }
.profile-pane.is-out {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.profile-pane-head { margin-bottom: 16px; max-width: 480px; }
.profile-pane-head h2 { font-size: 1.06rem; margin-bottom: 4px; }
.profile-pane-head .dash-para { margin-bottom: 0; }
.profile-sec-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-form { max-width: 420px; }
.profile-inline-note { margin: 12px 0 2px; }
.dash-msg {
  min-height: 1.2em; font-size: 0.82rem; color: #b3261e;
  margin: 2px 0 12px;
}
.dash-msg.is-ok {
  color: var(--emerald);
  animation: msgPop 0.3s var(--ease);
}
.dash-msg.is-ok::before { content: "✓ "; font-weight: 700; }
.dash-secret-box {
  display: flex; align-items: center; gap: 10px;
  border: 1px dashed var(--line-strong); border-radius: 12px;
  background: var(--paper-2);
  padding: 10px 12px; margin: 10px 0 14px;
}
.dash-secret-value { flex: 1; font-size: 0.86rem; letter-spacing: 0.14em; word-break: break-all; color: var(--ink); }
.profile-steps { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 12px 0 6px; font-size: 0.88rem; color: var(--ink-2); }
.profile-setup { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 6px; }
.profile-setup-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
@keyframes profileRingSpin { to { transform: rotate(360deg); } }
@keyframes profilePaneIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes msgPop {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.login-twofa { display: flex; flex-direction: column; gap: 4px; }
.login-twofa[hidden] { display: none; }
.login-twofa-back { align-self: flex-start; margin-top: 6px; }
/* Caixa do widget do Cloudflare Turnstile (etapa da senha e do código 2FA).
   :empty esconde quando a verificação está desligada — sem isso ficaria um
   espaço vazio embaixo do botão em todo login. */
.login-cf { display: flex; justify-content: center; margin-top: 14px; }
.login-cf:empty { display: none; }
.login-cf:not(:empty) { min-height: 65px; align-items: center; }
@media (max-width: 640px) {
  .profile-hero { flex-direction: column; align-items: flex-start; }
  .profile-tabpanel { padding: 18px; }
}
@media (max-width: 560px) {
  .dash-profile-link span:not(.dash-avatar) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-avatar-ring { animation: none; }
  .profile-pane, .dash-msg.is-ok { animation: none; }
  .profile-pane.is-out { transition: none; }
  .profile-tab::after { transition: none; }
}
@media (max-width: 860px) {
  .dash-burger { display: flex; }
  .dash-side {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
    min-height: 0;
    width: 264px;
    transform: translateX(-106%);
    transition: transform 0.26s var(--ease);
  }
  .dash-body.nav-open .dash-side { transform: none; }
  .dash-body.nav-open { overflow: hidden; }
  .dash-main { padding: 18px 18px 56px; }
  .dash-topbar { margin: -18px -18px 18px; padding: 12px 18px; gap: 10px; }
  .dash-topbar h1 {
    flex: 1; min-width: 0;
    font-size: 1.15rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .dash-status { display: none; }
  .dash-profile-link span:not(.dash-avatar) { display: none; }
  .dash-profile-link { padding: 5px; }
}
@media (max-width: 560px) {
  .dash-cards { grid-template-columns: 1fr; }
}

body {
  -webkit-user-select: none;
  user-select: none;
}
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}
.dash-enter {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.dash-enter-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Identidade "sala de operações" — landing profissional
   ============================================================ */

/* Chip de status no header */
.status-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.72rem;
  white-space: nowrap;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-soft);
  flex: none;
}

/* Hero: fundo com grade sutil + brilho índigo */
.hero-backdrop {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 78% 8%, color-mix(in srgb, var(--indigo) 9%, transparent), transparent 65%),
    linear-gradient(to bottom, transparent, transparent);
}
.hero-backdrop::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.32;
  mask-image: radial-gradient(860px 520px at 76% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(860px 520px at 76% 0%, #000 0%, transparent 78%);
}

/* Linha de confiança sob os CTAs */
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 22px 0 0;
  font-size: 0.74rem; letter-spacing: 0.04em;
  color: var(--ink-3);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--indigo);
  flex: none;
}

/* Registro de resoluções (marquee) */
.ledger {
  background: var(--ink-solid);
  color: #c6cdd9;
  padding: 72px 0 56px;
  overflow: hidden;
}
.section-head-light .eyebrow { color: #8ea6ff; }
.section-head-light h2 { color: #fff; }
.section-head-light .section-desc { color: #9aa5b8; }
.ledger-track {
  margin-top: 40px;
  border-top: 1px solid #232d47;
  border-bottom: 1px solid #232d47;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ledger-row {
  display: flex; gap: 0;
  width: max-content;
  padding: 14px 0;
  animation: ledger-scroll 38s linear infinite;
}
.ledger-track:hover .ledger-row { animation-play-state: paused; }
.ledger-cell {
  padding: 8px 26px;
  border-right: 1px solid #232d47;
  font-size: 0.78rem;
  color: #9aa5b8;
  white-space: nowrap;
}
.ledger-cell:nth-child(4n+1) { color: #e8ecf5; }
.ledger-cell:nth-child(4n+2) { color: #7d8aa3; }
.ledger-ok { color: #34d399; }
@keyframes ledger-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ledger-row { animation: none; }
}

/* Operação e segurança — carrossel em UMA linha, como os tipos de CAPTCHA */
.ops-grid {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ops-track {
  display: flex;
  width: max-content;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.ops-track:active { cursor: grabbing; }
.ops-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px 20px;
  flex: 0 0 300px;
  width: 300px;
  margin-right: 20px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.ops-item:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.ops-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--indigo-soft);
  color: var(--indigo-deep);
  margin-bottom: 14px;
}
.ops-item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.ops-item p { font-size: 0.88rem; color: var(--ink-2); }

/* Par de botões do header: altura e raio casados */
.header-actions .lang-select-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  background: var(--panel);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-actions .btn-sm {
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-actions .theme-btn {
  height: 38px;
  width: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Cabeçalho compacto em telas estreitas: some o nome da marca e o rótulo do
   idioma — só o símbolo + a bandeira. Sem isso o header estourava a largura
   do celular (as ações empurravam o menu pra fora da tela). */
@media (max-width: 560px) {
  .brand-name { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .lang-select-btn { padding: 0 9px; gap: 6px; }
  .header-actions .lang-select-btn span[data-lang-current] { display: none; }
}
.login-theme {
  margin-left: 14px;
  flex-shrink: 0;
}

/* Rodapé: linha de status */
.footer-status {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.74rem; letter-spacing: 0.04em;
  color: #9aa5b8;
}
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .status-chip { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Estado vazio acoplado à tabela: só aparece quando a tabela está escondida */
.dash-empty-box { display: none; }
.dash-panel:has(.dash-table-wrap[hidden]) .dash-empty-box { display: flex; }
.dash-panel:has(.dash-table-wrap:not([hidden])) .dash-empty-box { display: none; }

/* Dropdown do Perfil no TOPO (perfil / tema / idioma) */
.dash-profile-pop { position: relative; }
.dash-profile-pop .dash-profile-link { cursor: pointer; font: inherit; text-align: left; }
.dash-profile-pop .dash-profile-link .chev { flex: none; transition: transform 0.18s var(--ease); }
.dash-profile-pop.is-open .dash-profile-link { border-color: var(--line-strong); }
.dash-profile-pop.is-open .dash-profile-link .chev { transform: rotate(180deg); }
.profile-pop-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  min-width: 224px;
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 18px 44px -16px rgba(17, 24, 38, 0.35);
}
.profile-pop-menu[hidden] { display: none; }
.profile-pop-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px; border-radius: 9px;
  color: var(--ink-2); font-size: 0.88rem; font-weight: 600;
  background: none; border: 0; cursor: pointer;
  text-decoration: none; text-align: left; font-family: inherit;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.profile-pop-item:hover { color: var(--ink); background: var(--paper-2); }
.profile-pop-item svg { flex: none; color: var(--indigo); }
.profile-pop-item svg[data-icon="dark"] { display: none; }
html[data-theme="dark"] .profile-pop-item svg[data-icon="dark"] { display: block; }
html[data-theme="dark"] .profile-pop-item svg[data-icon="light"] { display: none; }
.profile-pop-lang { display: flex; flex-direction: column; gap: 6px; padding: 6px 4px 2px; }
.profile-pop-label {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); padding: 0 4px;
}

/* ---------------------------------------------------------------------------
   SEM FLASH DE ESTADO VAZIO
   O HTML chega com valores de fallback ("SEM CHAVE", "nenhuma chave gerada",
   "gere uma chave para começar", "—", "0") que só são corrigidos quando
   /api/session responde — era isso que piscava ao atualizar a página.
   O theme-early.js marca <html class="js-loading"> ANTES da primeira pintura e
   o dashboard2.js tira a marca quando o dado real chega. Aqui só escondemos os
   campos nesse intervalo. É `visibility` (e não `display`) de propósito: o
   espaço continua reservado, então não há salto de layout.

   Os ids do PERFIL entraram na mesma lista: o perfil usava a marca (o
   theme-early.js está no <head> dele também) mas não tinha os campos aqui nem
   tirava a marca — então o chip do 2FA piscava "DESATIVADO" antes de virar
   "ATIVADO", e o "Membro desde" piscava "—". O perfil.js agora tira a marca
   assim que a sessão chega.
--------------------------------------------------------------------------- */
html.js-loading #keyStatusChip,
html.js-loading #keyStatus,
html.js-loading #keyValue,
html.js-loading #keyMeta,
html.js-loading #statTasks,
html.js-loading #statTasksNote,
html.js-loading #statSuccess,
html.js-loading #statAvg,
html.js-loading #statKey,
html.js-loading #statKeyNote,
html.js-loading #tasksCount,
html.js-loading #userName,
html.js-loading #helloName,
html.js-loading #overviewEmpty,
html.js-loading #tasksEmptyBox,
html.js-loading #twofaChip,
html.js-loading #twofaStatus,
html.js-loading #memberSince { visibility: hidden; }
.profile-pop-lang .lang-select-btn { width: 100%; justify-content: space-between; }

/* ============================================================
   Modal de ativacao do 2FA (perfil)
   Elemento-assinatura: o medidor de validade do codigo. O TOTP gira a
   cada 30s, entao a barra mostra quanto do codigo ainda da pra usar —
   evita o "codigo invalido" de quem digitou no fim da janela.
   O resto fica quieto: um painel, uma placa de QR, dois botoes.
   ============================================================ */
html.tfa-lock, body.tfa-lock { overflow: hidden; }

.tfa-backdrop {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(17, 24, 38, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.14s var(--ease);
}
.tfa-backdrop.is-open { opacity: 1; transition-duration: 0.2s; }
.tfa-modal {
  width: 100%; max-width: 428px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 22px 22px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 80px -34px rgba(17, 24, 38, 0.6);
  transform: translateY(8px) scale(0.985);
  transition: transform 0.14s var(--ease);
}
.tfa-backdrop.is-open .tfa-modal { transform: none; transition-duration: 0.2s; }

.tfa-head { position: relative; padding-right: 36px; }
.tfa-eyebrow {
  font-size: 0.63rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--indigo); margin: 0 0 7px;
}
.tfa-title {
  font-family: var(--font-display);
  font-size: 1.18rem; line-height: 1.22; letter-spacing: -0.015em;
  color: var(--ink); margin: 0;
}
.tfa-close {
  position: absolute; top: -3px; right: -3px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid transparent; border-radius: 9px;
  color: var(--ink-3);
  transition: color 0.16s var(--ease), background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.tfa-close:hover { color: var(--ink); background: var(--paper-2); border-color: var(--line); }

.tfa-rail { display: flex; gap: 6px; margin: 15px 0 18px; }
.tfa-rail span {
  flex: 1; height: 3px; border-radius: 999px;
  background: var(--line);
  transition: background 0.22s var(--ease);
}
.tfa-rail span.is-on { background: var(--indigo); }
.tfa-rail.is-done span.is-on { background: var(--emerald); }

.tfa-step { animation: tfaStepIn 0.2s var(--ease); }
@keyframes tfaStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.tfa-hint {
  font-size: 0.79rem; line-height: 1.45; color: var(--ink-3);
  padding-left: 11px; margin: 0 0 16px;
  border-left: 2px solid var(--line-strong);
}
.tfa-lead { font-size: 0.9rem; line-height: 1.45; color: var(--ink-2); margin: 0 0 12px; }

/* Placa do QR: fundo branco real nos dois temas — o leitor precisa de
   contraste e de zona de silencio (o PNG ja vem com margem). */
.tfa-plate {
  display: grid; place-items: center;
  width: fit-content;
  margin: 0 auto 18px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 34px -22px rgba(17, 24, 38, 0.5);
}
.tfa-plate img { display: block; width: 208px; height: 208px; }

.tfa-manual-label { font-size: 0.8rem; color: var(--ink-3); margin: 0 0 8px; }
.tfa-secret {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--paper-2);
}
.tfa-secret-value {
  flex: 1; min-width: 0;
  font-size: 0.83rem; letter-spacing: 0.12em;
  word-break: break-all; color: var(--ink);
  -webkit-user-select: all; user-select: all;
}
.tfa-copy {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--panel);
  font-size: 0.76rem; font-weight: 600; color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.tfa-copy:hover { color: var(--indigo); border-color: var(--indigo); background: var(--indigo-soft); }
.tfa-copy.is-copied { color: var(--emerald-deep); border-color: rgba(15, 169, 104, 0.45); background: var(--emerald-soft); }

.tfa-code {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 1.5rem; font-weight: 500;
  letter-spacing: 0.42em; text-indent: 0.42em; text-align: center;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.tfa-code::placeholder { color: var(--ink-3); }
.tfa-code:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(78, 91, 242, 0.16); }
.tfa-code[aria-invalid="true"] { border-color: #d14343; box-shadow: 0 0 0 3px rgba(209, 67, 67, 0.14); }
.tfa-msg { margin: 10px 0 0; }

.tfa-meter { margin: 14px 0 0; }
.tfa-meter-track { height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; }
.tfa-meter-fill {
  display: block;
  height: 100%; width: 100%;
  border-radius: 999px; background: var(--indigo);
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 1s linear;
}
.tfa-meter-note { margin: 7px 0 0; font-size: 0.74rem; color: var(--ink-3); }

.tfa-ok { text-align: center; padding: 4px 0 2px; }
.tfa-check {
  display: grid; place-items: center;
  width: 54px; height: 54px; margin: 0 auto 13px;
  border-radius: 50%;
  color: var(--emerald); background: var(--emerald-soft);
  animation: tfaPop 0.28s var(--ease) 0.05s both;
}
@keyframes tfaPop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: none; }
}
.tfa-ok-title { font-family: var(--font-display); font-size: 1.12rem; margin: 0 0 7px; color: var(--ink); }
.tfa-ok-desc { font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); margin: 0; }

.tfa-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 480px) {
  .tfa-backdrop { padding: 14px; }
  .tfa-modal { padding: 18px 16px 14px; }
  .tfa-plate { padding: 10px; }
  .tfa-plate img { width: 176px; height: 176px; }
  .tfa-code { font-size: 1.35rem; }
  .tfa-foot { flex-direction: column-reverse; }
  .tfa-foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tfa-backdrop, .tfa-modal { transition: none; }
  .tfa-step, .tfa-check { animation: none; }
  .tfa-meter-fill { transition: none; }
}

/* ============================================================
   [hidden] precisa vencer SEMPRE
   O [hidden] do navegador mora na folha do usuario, e qualquer regra de
   autor vence ela — entao bastava uma classe com display definido para o
   hidden parar de esconder. Isso quebrava tres coisas:
     1) .tfa-backdrop (display:grid): o fundo do modal ficava montado por
        cima da pagina inteira, invisivel (opacity 0) e engolindo TODO
        clique do perfil;
     2) .btn (display:inline-flex): os botoes do modal apareciam todos de
        uma vez, ignorando o hidden das etapas;
     3) .dash-chip (display:flex): o chip do Telegram aparecia mesmo sem
        Telegram vinculado (problema que ja existia antes do modal).
   Por isso o !important: e um invariante do HTML, nao um estilo de
   componente, e nenhuma regra de componente pode anular.
   ============================================================ */
[hidden] { display: none !important; }

/* ============================================================
   DOCS: reorganizacao total (desktop + mobile, bem espacado)
   ============================================================ */
.docs-page {
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 44px;
  max-width: 1480px;
  margin: 0;
  padding: 8px 24px 60px;
}
.docs-content-doc, .docs-content-doc * {
  -webkit-user-select: text;
  user-select: text;
}
.docs-toc {
  top: 88px;
  border-left: 1px solid var(--line, #e5e7eb);
  padding: 6px 0 6px 18px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  gap: 2px;
}
.docs-toc-label {
  margin: 0 0 10px 12px;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}
.docs-toc-link {
  font-size: 0.9rem;
  padding: 9px 12px;
  border-radius: 10px;
}
.docs-toc-home {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2, #475569);
  padding: 11px 12px 9px;
  margin-top: 18px;
  border-top: 1px solid var(--line, #e5e7eb);
  transition: color 0.15s ease;
}
.docs-toc-home:hover { color: var(--indigo-deep, #4f5be2); }
.docs-content-doc { gap: 40px; }
.docs-page .docs-sec {
  background: var(--panel, #fff);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  scroll-margin-top: 96px;
}
.docs-sec h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 1.42rem;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line, #e5e7eb);
}
.docs-sec .dash-para { margin-bottom: 18px; line-height: 1.8; }
.docs-sub {
  font-size: 1.04rem;
  margin: 26px 0 12px;
  color: var(--ink, #111827);
  letter-spacing: -0.01em;
}
.docs-method-row { gap: 16px; margin-bottom: 18px; }
.docs-code-grid { gap: 20px; }
.docs-code { border-radius: 14px; margin-bottom: 8px; }
.docs-code-head { padding: 9px 14px; }
.docs-code-pre { padding: 16px 18px; }
.docs-code-pre code { font-size: 0.8rem; line-height: 1.75; }
.docs-sec .docs-label { margin: 20px 0 10px; }
.docs-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.docs-table th {
  padding: 13px 14px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3, #6b7280);
  border-bottom: 1px solid var(--line, #e5e7eb);
  text-align: left;
}
.docs-table td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line, #e5e7eb);
  font-size: 0.9rem;
  vertical-align: top;
}
.docs-table tbody tr:last-child td { border-bottom: 0; }
.docs-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--indigo-soft, #eef0fe);
  color: var(--indigo-deep, #4f5be2);
}

@media (max-width: 980px) {
  .docs-page { grid-template-columns: 1fr; gap: 0; padding: 4px 16px 48px; }
  .docs-toc {
    position: sticky;
    top: 74px;
    z-index: 30;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 14px;
    margin-bottom: 26px;
    scrollbar-width: thin;
  }
  .docs-toc::-webkit-scrollbar { height: 6px; }
  .docs-toc::-webkit-scrollbar-thumb { background: var(--line-strong, #cbd5e1); border-radius: 8px; }
  .docs-toc-label { display: none; }
  .docs-toc-link { white-space: nowrap; padding: 8px 14px; font-size: 0.84rem; }
  .docs-content-doc { gap: 26px; }
}

@media (max-width: 720px) {
  .docs-page .docs-sec { padding: 20px 16px; border-radius: 14px; }
  .docs-sec h2 { font-size: 1.22rem; }
  .docs-code-grid { grid-template-columns: 1fr; gap: 14px; }
  .docs-method-row { flex-wrap: wrap; }
  .docs-code-pre code { font-size: 0.72rem; }
}

/* ============================================================
   DOCS polish: espacamento dos cards perto dos rotulos, grupos
   no TOC, foco, selecao e scrollbar tematicos
   ============================================================ */
.docs-toc-group {
  margin: 14px 12px 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-3, #6b7280);
}
.docs-toc-link:focus-visible,
.docs-code-copy:focus-visible {
  outline: 2px solid var(--indigo-deep, #4f5be2);
  outline-offset: 2px;
  border-radius: 6px;
}
.docs-sec .docs-label {
  margin: 26px 0 12px;
  font-size: 0.7rem;
}
.docs-label + .docs-code { margin-top: 0; }
.docs-code { margin-bottom: 20px; }
.docs-code-grid > div:last-child .docs-code { margin-bottom: 0; }
.docs-method-row { margin-bottom: 20px; }
.docs-sec .dash-para { margin-bottom: 20px; }
.docs-table { margin-top: 14px; }
.docs-content-doc { padding-bottom: 8px; }
.docs-page ::selection { background: var(--indigo-soft, #eef0fe); color: var(--indigo-deep, #4f5be2); }
.docs-code ::selection { background: rgba(94, 118, 255, 0.35); color: #fff; }
.docs-toc-link.is-active { position: relative; }
.docs-toc-link.is-active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  border-radius: 3px;
  background: var(--indigo-deep, #4f5be2);
}
@media (max-width: 980px) {
  .docs-toc-group { display: none; }
  .docs-toc-link.is-active::before { display: none; }
}

