:root {
  /* Preto absoluto. Sem azul escuro, sem gradiente de fundo. */
  --bg: #000000;
  --bg-soft: #000000;
  --panel: #000000;
  --panel-2: #050505;
  --panel-3: #0b0b0b;
  --line: #2b2b2b;
  --line-soft: #171717;
  --text: #ffffff;
  --muted: #b4b4b4;
  --dim: #7f7f7f;
  /* --neon e a cor de destaque do site inteiro: um valor so, trocado pelo
     seletor de tema. --neon-ink e o texto que fica por cima dela. */
  --neon: #bfa682;
  --neon-ink: #000000;
  --blue: #dcdcdc;
  --blue-strong: var(--neon);
  --blue-light: #ffffff;
  --yellow: var(--neon);
  --yellow-soft: var(--neon);
  --green: #cdcdcd;
  --red: #ff5f5f;
  --orange: #ffb454;
  --accent: var(--neon);
  --radius: 0px;
  --radius-sm: 0px;
  --shadow: none;
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(255, 212, 59, 0.28);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue-light);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
pre {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

.shell {
  /* 100% do container ignora a barra de rolagem e gera overflow horizontal no
     celular; min() + 100% aqui é seguro em todos os breakpoints. */
  width: min(1180px, calc(100% - 48px));
  max-width: 100%;
  margin-inline: auto;
}

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

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.green-text {
  color: var(--green);
}

.yellow-text {
  color: var(--yellow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(168, 168, 168, 0.55);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(168, 168, 168, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(168, 168, 168, 0);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-word {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-word span {
  color: var(--yellow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #12140f;
  box-shadow: 0 8px 28px rgba(255, 212, 59, 0.18);
}

.btn-primary:hover {
  background: var(--yellow-soft);
  border-color: var(--yellow-soft);
  color: #12140f;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: #ffffff;
  color: var(--text);
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.btn-lg {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
}

.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.link-btn {
  border: 0;
  padding: 0;
  background: none;
  color: var(--blue-light);
  font-size: inherit;
  font-weight: 600;
}

.link-btn:hover {
  color: var(--yellow);
}

.link-arrow {
  font-weight: 700;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge.yellow {
  border-color: rgba(255, 212, 59, 0.25);
  background: rgba(255, 212, 59, 0.09);
  color: var(--yellow);
}

.badge.green {
  border-color: rgba(168, 168, 168, 0.24);
  background: rgba(168, 168, 168, 0.08);
  color: var(--green);
}

.badge.blue {
  border-color: rgba(132, 132, 132, 0.28);
  background: rgba(132, 132, 132, 0.1);
  color: var(--blue-light);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field.grow {
  flex: 1;
}

.field label,
.label-row label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-row a {
  font-size: 12px;
  font-weight: 600;
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: rgba(4, 9, 16, 0.72);
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input::placeholder {
  color: #8e8e8e;
}

.input:hover {
  border-color: #ffffff;
}

.input:focus {
  border-color: var(--blue);
  background: rgba(4, 9, 16, 0.95);
  box-shadow: 0 0 0 3px rgba(132, 132, 132, 0.16);
}

select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

textarea.input {
  resize: vertical;
  line-height: 1.5;
}

.password-wrap {
  position: relative;
}

.password-wrap .input {
  padding-right: 76px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.password-toggle:hover {
  color: var(--yellow);
}

.hint {
  color: var(--dim);
  font-size: 11.5px;
}

.form-error {
  padding: 10px 12px;
  border: 1px solid rgba(255, 107, 125, 0.24);
  border-radius: 9px;
  background: rgba(255, 107, 125, 0.07);
  color: #ff9aa6;
  font-size: 13px;
}

.form-success {
  text-align: center;
  padding: 8px 0;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border: 1px solid rgba(168, 168, 168, 0.3);
  border-radius: 50%;
  background: rgba(168, 168, 168, 0.1);
  color: var(--green);
  font-size: 24px;
  font-weight: 800;
}

.error-icon {
  border-color: rgba(255, 107, 125, 0.3);
  background: rgba(255, 107, 125, 0.1);
  color: var(--red);
}

.form-success h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.form-success p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13.5px;
}

.dev-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 16px 0;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: rgba(132, 132, 132, 0.06);
  font-size: 12px;
}

.dev-link span {
  color: var(--dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dev-link a {
  overflow-wrap: anywhere;
  font-weight: 650;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
}

.icon-btn:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.site-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(700px 480px at 72% -5%, rgba(110, 110, 110, 0.2), transparent 70%),
    radial-gradient(620px 380px at 12% 8%, rgba(255, 212, 59, 0.07), transparent 70%),
    linear-gradient(180deg, #060a11 0%, #05080e 100%);
}

.site-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: linear-gradient(rgba(191, 191, 191, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 191, 191, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(6, 10, 17, 0.55);
  backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-nav.scrolled {
  border-color: var(--line-soft);
  background: rgba(6, 10, 17, 0.88);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 54px;
  align-items: center;
  padding-top: 148px;
  padding-bottom: 60px;
  min-height: 760px;
}

.hero-copy h1 {
  margin: 20px 0 24px;
  font-size: clamp(46px, 5.9vw, 82px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy h1 em {
  color: var(--yellow);
  font-style: normal;
}

.lede {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 26px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.check {
  color: var(--green);
  font-weight: 800;
}

.hero-stack {
  position: relative;
  padding: 26px 0;
}

.terminal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff;
  border-radius: 16px;
  background: #000000;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transform: perspective(1300px) rotateY(-2deg) rotateX(1deg);
}

.terminal-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(132, 132, 132, 0.5), transparent 40%, rgba(255, 212, 59, 0.22));
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 47px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  background: #000;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3a3a;
}

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #febc2e;
}

.dot.green {
  background: #909090;
}

.terminal-tabs {
  display: flex;
  gap: 2px;
  margin-left: 12px;
}

.code-tab {
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
}

.code-tab.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.copy-code {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.copy-code:hover {
  color: var(--yellow);
}

.code-block {
  display: none;
  min-height: 254px;
  padding: 22px 20px;
  overflow-x: auto;
  color: #ededed;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.75;
  tab-size: 2;
}

.code-block.active {
  display: block;
}

.code-block code {
  font-family: inherit;
  /* o bloco rola por dentro; o code não pode empurrar a largura do <pre> */
  display: block;
  width: max-content;
  min-width: 100%;
}

/* telas pequenas: nada de <pre> esticando o documento */
@media (max-width: 900px) {
  .code-section {
    min-width: 0;
  }

  .terminal-card,
  .mini-panel,
  .cta-card {
    min-width: 0;
    max-width: 100%;
  }
}

.tok-cmd,
.tok-kw,
.tok-fn {
  color: var(--neon);
}

.tok-str {
  color: #d7e8a8;
}

.tok-url {
  color: #ffd76a;
}

.tok-num {
  color: #ffb454;
}

.terminal-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 10.5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.terminal-latency {
  margin-left: auto;
  color: #7f7f7f;
  font-family: var(--mono);
  font-size: 9.5px;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1.5px solid #fff;
  border-radius: 0;
  background: #000;
  box-shadow: 6px 6px 0 var(--neon);
  backdrop-filter: none;
  animation: float 6s ease-in-out infinite;
}

.float-cache {
  right: -16px;
  bottom: -16px;
}

.float-route {
  left: -24px;
  top: 4px;
  animation-delay: -3s;
}

.float-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 212, 59, 0.1);
  color: var(--yellow);
  font-size: 15px;
}

.float-route .float-icon {
  background: rgba(168, 168, 168, 0.1);
  color: var(--green);
}

.float-card strong {
  display: block;
  font-size: 11.5px;
}

.float-card small {
  display: block;
  color: var(--dim);
  font-size: 9.5px;
}

@keyframes float {
  50% {
    transform: translateY(-7px);
  }
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: #8e8e8e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section {
  padding-top: 104px;
  padding-bottom: 22px;
  scroll-margin-top: 90px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2,
.split-copy h2,
.cta-card h2 {
  margin: 12px 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-head p,
.split-copy > p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(26, 26, 26, 0.72), rgba(9, 15, 25, 0.6));
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #ffffff;
  background: linear-gradient(160deg, rgba(32, 32, 32, 0.86), rgba(17, 17, 17, 0.7));
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 17px;
  font-weight: 800;
}

.feature-icon.blue {
  background: rgba(132, 132, 132, 0.1);
  color: var(--blue-light);
}

.feature-icon.yellow {
  background: rgba(255, 212, 59, 0.08);
  color: var(--yellow);
}

.feature-icon.green {
  background: rgba(168, 168, 168, 0.08);
  color: var(--green);
}

.feature-card h3 {
  margin-bottom: 7px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.feature-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding-top: 110px;
  scroll-margin-top: 90px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 30px;
}

.step {
  display: flex;
  gap: 16px;
}

.step-num {
  flex: 0 0 auto;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding-top: 2px;
}

.step h3 {
  font-size: 15px;
  margin-bottom: 2px;
}

.step p {
  color: var(--muted);
  font-size: 13px;
}

.split-visual {
  position: relative;
}

.split-visual::before {
  content: "";
  position: absolute;
  inset: -40px -30px;
  background: radial-gradient(circle at 50% 50%, rgba(110, 110, 110, 0.16), transparent 68%);
  pointer-events: none;
  /* o sangria de -30px passa da viewport no celular e cria scroll lateral */
  max-width: 100vw;
}

.mini-panel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.9);
  box-shadow: var(--shadow);
}

.mini-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}

.mini-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #1a1a1a;
  color: var(--dim);
  font-size: 12px;
}

.mini-row strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.mini-divider {
  height: 6px;
}

.mini-bar {
  height: 4px;
  margin: 14px 0 10px;
  border-radius: 4px;
  background: var(--line-soft);
  overflow: hidden;
}

.mini-bar span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
}

.mini-foot {
  color: var(--dim);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.74);
  overflow: hidden;
}

.pricing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.pricing-head h3 {
  font-size: 17px;
}

.pricing-head p {
  color: var(--dim);
  font-size: 12px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  white-space: nowrap;
}

.table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(32, 32, 32, 0.72);
  color: var(--muted);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.018);
}

.table td:first-child {
  color: var(--text);
  font-weight: 600;
}

.pricing-table td:nth-child(2),
.pricing-table td:nth-child(3) {
  font-family: var(--mono);
  font-size: 11.5px;
}

.pricing-table th:last-child,
.pricing-table td:last-child {
  text-align: right;
}

.empty-cell {
  padding: 30px 14px !important;
  color: var(--dim) !important;
  font-size: 12px;
  text-align: center !important;
}

.pricing-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 11px;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.6);
}

.pack strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.pack span {
  color: var(--dim);
  font-size: 10.5px;
}

.final-cta {
  padding-top: 100px;
  padding-bottom: 100px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px;
  border: 1.5px solid #fff;
  border-radius: 0;
  background: #000;
  box-shadow: var(--shadow);
}

.cta-card h2 {
  max-width: 620px;
  font-size: clamp(28px, 3.5vw, 44px);
}

.cta-card p {
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 9px;
  min-width: 210px;
}

.footer {
  border-top: 1px solid var(--line-soft);
  background: #05080e;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  padding-top: 50px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 10px;
  color: var(--dim);
  font-size: 12px;
}

.footer-cols {
  display: flex;
  gap: 70px;
}

.footer-cols div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-cols h4 {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-cols a {
  color: var(--dim);
  font-size: 12px;
}

.footer-cols a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 26px;
  border-top: 1px solid #1a1a1a;
  color: #7f7f7f;
  font-size: 10.5px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  height: 78px;
  margin-inline: auto;
}

.auth-top-link {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 90px;
  align-items: center;
  width: min(1080px, calc(100% - 48px));
  flex: 1;
  margin-inline: auto;
  padding: 40px 0 70px;
}

.auth-aside h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.auth-aside > p {
  max-width: 470px;
  color: var(--muted);
  font-size: 15px;
}

.auth-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-quote {
  max-width: 430px;
  margin-top: 38px;
  padding: 18px 20px;
  border-left: 2px solid var(--yellow);
  background: rgba(255, 212, 59, 0.035);
}

.auth-quote p {
  color: #dcdcdc;
  font-size: 13px;
  font-style: italic;
}

.auth-quote span {
  display: block;
  margin-top: 8px;
  color: var(--dim);
  font-size: 10.5px;
  font-style: normal;
}

.auth-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 30px;
}

.auth-steps div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12.5px;
}

.auth-steps span {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 10px;
}

.auth-card {
  width: 100%;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(170deg, rgba(26, 26, 26, 0.92), rgba(8, 14, 23, 0.96));
  box-shadow: var(--shadow);
}

.auth-card-head {
  margin-bottom: 26px;
}

.auth-card-head h2 {
  margin: 4px 0 6px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.auth-card-head p {
  color: var(--muted);
  font-size: 13px;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-switch {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 12.5px;
  text-align: center;
}

.auth-switch a {
  font-weight: 650;
}

.legal-note {
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.55;
  text-align: center;
}

.auth-center {
  display: flex;
  justify-content: center;
  flex: 1;
  padding: 40px 24px 70px;
}

.auth-page-narrow .auth-card {
  width: min(440px, 100%);
  margin-top: auto;
  margin-bottom: auto;
}

.auth-footer {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 10.5px;
}

.auth-footer a {
  color: var(--dim);
}

.auth-footer a:hover {
  color: var(--text);
}

.app-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(700px 420px at 82% -8%, rgba(110, 110, 110, 0.13), transparent 70%),
    radial-gradient(500px 350px at 10% 100%, rgba(255, 212, 59, 0.035), transparent 70%),
    #070b12;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: 258px;
  padding: 22px 16px 16px;
  border-right: 1px solid var(--line-soft);
  background: #080d16;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 24px;
}

.sidebar-close {
  display: none;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.side-nav::-webkit-scrollbar {
  width: 8px;
}

.side-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.side-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
}

.side-group {
  margin: 14px 0 4px;
  padding: 0 11px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.side-group:first-child {
  margin-top: 2px;
}

.side-link + .side-group,
.side-group + .side-group {
  margin-top: 16px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.side-link:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.side-link.active {
  border-color: rgba(132, 132, 132, 0.16);
  background: rgba(132, 132, 132, 0.09);
  color: var(--text);
}

.side-icon {
  display: grid;
  place-items: center;
  width: 20px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 13px;
}

.side-link.active .side-icon {
  color: var(--yellow);
}

.side-count {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--dim);
  font-size: 9.5px;
  text-align: center;
}

.sidebar-foot {
  flex: 0 0 auto;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.sidebar-tip {
  position: relative;
  margin: 0 0 8px;
  padding: 12px;
  border: 1px solid rgba(255, 212, 59, 0.12);
  border-radius: 10px;
  background: rgba(255, 212, 59, 0.035);
}

.sidebar-tip[hidden] {
  display: none;
}

.sidebar-tip-close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-tip-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.tip-icon {
  color: var(--yellow);
  font-size: 14px;
}

.sidebar-tip p {
  margin-top: 4px;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.5;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px 0;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 212, 59, 0.2);
  border-radius: 9px;
  background: rgba(255, 212, 59, 0.08);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 800;
}

.sidebar-user-info {
  min-width: 0;
  flex: 1;
}

.sidebar-user-info strong,
.sidebar-user-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-info strong {
  font-size: 11.5px;
}

.sidebar-user-info span {
  color: var(--dim);
  font-size: 9.5px;
}

.app-main {
  min-height: 100vh;
  margin-left: 258px;
}

.topbar {
  position: sticky;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 78px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(16px);
}

.topbar-title {
  min-width: 0;
}

.topbar-title h1 {
  font-size: 19px;
  letter-spacing: -0.03em;
}

.topbar-title p {
  color: var(--dim);
  font-size: 11px;
}

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

.balance-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 10.5px;
}

.balance-pill:hover {
  border-color: #ffffff;
}

.balance-pill strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
}

.pill-plus {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 212, 59, 0.1);
  color: var(--yellow);
  font-size: 14px;
  line-height: 1;
}

.mobile-menu {
  display: none;
}

.app-content {
  width: min(1280px, 100%);
  margin-inline: auto;
  padding: 30px 32px 70px;
}

.dash-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(26, 26, 26, 0.66), rgba(9, 15, 25, 0.5));
}

.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 600;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.stat-icon.yellow {
  background: rgba(255, 212, 59, 0.08);
  color: var(--yellow);
}

.stat-icon.blue {
  background: rgba(132, 132, 132, 0.1);
  color: var(--blue-light);
}

.stat-icon.green {
  background: rgba(168, 168, 168, 0.08);
  color: var(--green);
}

.stat-card > strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -0.045em;
}

.stat-foot {
  color: var(--dim);
  font-size: 10px;
}

.panel {
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(21, 21, 21, 0.74), rgba(8, 14, 23, 0.72));
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

/* Textos longos (status de e-mail, saldo, lista de modelos) quebram dentro do
   painel em vez de alargar a página inteira. */
.panel-head > div {
  min-width: 0;
}

.panel-head p {
  overflow-wrap: anywhere;
}

/* Grid/flex não deixam o conteúdo alargar a coluna: a tabela rola dentro do
   .table-wrap em vez de empurrar a página para o lado. */
.dash-grid > * {
  min-width: 0;
}

.admin-section .table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.panel-head h2 {
  font-size: 14px;
  letter-spacing: -0.015em;
}

.panel-head p {
  color: var(--dim);
  font-size: 10.5px;
}

.chart-panel {
  padding-bottom: 12px;
}

.chart-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.segmented {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(4, 9, 16, 0.5);
}

.segmented button {
  padding: 4px 9px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--dim);
  font-size: 10px;
  font-weight: 700;
}

.segmented button.active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.chart-wrap {
  position: relative;
  min-height: 240px;
}

#usage-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(191, 191, 191, 0.08);
  stroke-width: 1;
}

.chart-label {
  fill: #7f7f7f;
  font-family: var(--font);
  font-size: 9px;
}

.chart-bar {
  fill: url(#chart-gradient);
  transition: opacity 0.15s ease;
}

.chart-bar:hover {
  opacity: 0.75;
}

/* Tooltip que acompanha o cursor no gráfico de consumo por dia. */
.chart-tip {
  position: absolute;
  z-index: 5;
  min-width: 150px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 10.5px;
  pointer-events: none;
  transform: translate(12px, -50%);
  white-space: nowrap;
}

.chart-tip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}

.chart-tip span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.chart-tip b {
  color: var(--text);
  font-family: var(--mono);
  font-weight: 600;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 11.5px;
  text-align: center;
}

.chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 10px;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--blue);
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 16px;
}

.model-breakdown {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.model-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.model-row-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10.5px;
}

.model-row-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.model-row-head strong {
  flex: 0 0 auto;
  color: var(--text);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
}

.model-track {
  height: 4px;
  border-radius: 4px;
  background: var(--line-soft);
  overflow: hidden;
}

.model-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}

.model-row:nth-child(2n) .model-track span {
  background: linear-gradient(90deg, var(--yellow), #ffb454);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--dim);
  font-size: 11.5px;
  text-align: center;
}

.empty-state.small {
  min-height: 80px;
}

.table-wrap.compact .table td,
.table-wrap.compact .table th {
  padding-top: 10px;
  padding-bottom: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.ok,
.status-badge.paid {
  background: rgba(168, 168, 168, 0.09);
  color: var(--green);
}

.status-badge.pending {
  background: rgba(255, 180, 84, 0.1);
  color: var(--orange);
}

.status-badge.error,
.status-badge.failed {
  background: rgba(255, 107, 125, 0.1);
  color: var(--red);
}

.status-badge.cached,
.status-badge.refunded {
  background: rgba(132, 132, 132, 0.12);
  color: var(--blue-light);
}

.status-badge.fallback {
  background: rgba(255, 212, 59, 0.1);
  color: var(--yellow);
}

.quickstart {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: center;
}

.quickstart-copy h2 {
  margin: 8px 0 5px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.quickstart-copy > p {
  color: var(--muted);
  font-size: 12px;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.copy-row code,
.copy-row input {
  flex: 1;
  min-width: 0;
}

.copy-row code {
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(4, 9, 16, 0.6);
  color: var(--blue-light);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-mini {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #000000;
  color: #dcdcdc;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.65;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.docs-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.docs-step h3 {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.docs-step p {
  color: var(--dim);
  font-size: 11px;
  line-height: 1.6;
}

.docs-step .copy-row {
  width: 100%;
  margin: 4px 0 0;
}

.docs-step code {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue-light);
}

.docs-code .code-mini {
  margin: 0;
  min-height: 168px;
  font-size: 10.5px;
  line-height: 1.7;
  white-space: pre;
}

.docs-code-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.docs-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 0;
  list-style: none;
}

.docs-list li {
  padding: 9px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(4, 9, 16, 0.4);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.docs-list code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(191, 191, 191, 0.1);
  color: var(--blue-light);
  font-family: var(--mono);
  font-size: 10.5px;
}

.docs-list strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 900px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }
}

.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 2px;
}

.section-top h2 {
  font-size: 21px;
  letter-spacing: -0.03em;
}

.section-top p {
  color: var(--dim);
  font-size: 11.5px;
}

.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.inline-form .btn {
  height: 44px;
}

.new-key-box {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 212, 59, 0.18);
  border-radius: 10px;
  background: rgba(255, 212, 59, 0.035);
}

.new-key-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 600;
}

.filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.filters .field {
  min-width: 130px;
  flex: 1;
}

.filter-actions {
  display: flex;
  gap: 7px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 14px;
  color: var(--dim);
  font-size: 10.5px;
}

/* --- free tier ------------------------------------------------------ */

.free-meter {
  position: relative;
  overflow: hidden;
  height: 10px;
  margin: 4px 0 10px;
  border: 1px solid var(--line);
  background: var(--panel-3);
}

.free-meter__fill {
  display: block;
  height: 100%;
  background: var(--neon);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.28, 1);
}

.free-days {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.free-day {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}

.free-day__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.free-day__bar {
  display: block;
  height: 6px;
  background: var(--panel-3);
  border: 1px solid var(--line-soft);
}

.free-day__bar > span {
  display: block;
  height: 100%;
  background: var(--neon);
}

.free-day__value {
  text-align: right;
  color: var(--text);
}

.free-day.is-today .free-day__label {
  color: var(--text);
}

.mock-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 180, 84, 0.22);
  border-radius: 10px;
  background: rgba(255, 180, 84, 0.06);
  color: var(--muted);
  font-size: 11px;
}

.mock-banner strong {
  color: var(--orange);
  white-space: nowrap;
}

.credit-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  background:
    radial-gradient(420px 180px at 92% 0%, rgba(255, 212, 59, 0.09), transparent 70%),
    linear-gradient(170deg, rgba(26, 26, 26, 0.85), rgba(8, 14, 23, 0.85));
}

.credit-balance > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.credit-balance > div > span {
  font-size: 10.5px;
}

.credit-balance strong {
  font-size: 38px;
  letter-spacing: -0.05em;
}

.credit-balance p {
  color: var(--dim);
  font-size: 10.5px;
}

.credit-note {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: var(--dim);
  font-size: 10px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.package-card {
  position: relative;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.package-card:hover {
  transform: translateY(-2px);
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.035);
}

.package-card strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.package-card span {
  color: var(--dim);
  font-size: 9px;
}

.package-card .badge {
  position: absolute;
  top: 8px;
  right: 8px;
}

.custom-amount {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* Link de convite: caixa cinza com o endereco e o botao de copiar ao lado. */
.referral-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.referral-link code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  font-size: 13px;
}

@media (max-width: 640px) {
  .referral-link {
    flex-direction: column;
    align-items: stretch;
  }
}

.custom-amount .field {
  max-width: 220px;
  flex: 1;
}

.money-input {
  position: relative;
}

.money-input span {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
}

.money-input .input {
  padding-left: 34px;
  font-family: var(--mono);
}

.fine-print {
  margin-top: 12px;
  color: var(--dim);
  font-size: 9.5px;
}

.fine-print.ok-text { color: var(--neon); }
.fine-print.error-text { color: var(--red); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 9, 0.78);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(590px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1.5px solid #fff;
  border-radius: 0;
  background: #000;
  box-shadow: 10px 10px 0 var(--neon);
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 0;
}

.modal-head h2 {
  margin-top: 3px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.modal-body {
  padding: 18px 22px 22px;
}

.payment-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.payment-summary div {
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.payment-summary span {
  display: block;
  color: var(--dim);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.payment-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

.pix-area {
  display: grid;
  grid-template-columns: 154px 1fr;
  gap: 16px;
  align-items: start;
}

.qr-box {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.qr-placeholder {
  color: #7f7f7f;
  font-family: var(--mono);
  font-size: 10px;
}

.pix-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pix-copy label {
  color: var(--dim);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pix-copy textarea {
  min-height: 86px;
  font-size: 10px;
  line-height: 1.5;
}

.pix-expiry {
  color: var(--dim);
  font-size: 9.5px;
  text-align: center;
}

.payment-success {
  padding: 12px 0 4px;
  text-align: center;
}

.payment-success h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.payment-success p {
  color: var(--muted);
  font-size: 12px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.modal-actions .btn {
  flex: 1;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(340px, calc(100% - 36px));
}

.toast {
  padding: 11px 13px;
  border: 1.5px solid #fff;
  border-left: 5px solid var(--accent);
  border-radius: 0;
  background: #000;
  box-shadow: 5px 5px 0 #111;
  color: var(--text);
  font-size: 11.5px;
  animation: toast-in 0.2s ease;
}

.toast.success {
  border-left-color: var(--green);
}

.toast.error {
  border-left-color: var(--red);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.sidebar-overlay {
  display: none;
}

@media (max-width: 1180px) {
  .hero {
    gap: 38px;
  }

  /* o ::before do split-visual sangra 30px: sob 1180 ele passa da viewport */
  .split-visual::before {
    inset: -40px -12px;
  }

  .float-cache {
    /* o box-shadow de 6px sai da borda: recua para nao abrir scroll lateral */
    right: 8px;
  }

  .float-route {
    left: -8px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }

  .package-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 130px;
    min-height: 0;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-stack {
    max-width: 620px;
    width: 100%;
    margin-inline: auto;
  }

  .terminal-card {
    transform: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-visual {
    max-width: 480px;
  }

  .split-visual::before {
    inset: -24px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    max-width: 520px;
  }

  .auth-aside {
    display: none;
  }

  .auth-page-narrow .auth-card {
    margin-top: 0;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.5);
  }

  .sidebar.open {
    transform: none;
  }

  .sidebar-close,
  .mobile-menu {
    display: grid;
  }

  .sidebar-overlay.open {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: block;
    background: rgba(2, 5, 9, 0.68);
    backdrop-filter: blur(2px);
  }

  .app-main {
    margin-left: 0;
  }

  .quickstart {
    grid-template-columns: 1fr;
  }

  .pack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    flex-direction: row;
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-cols {
    gap: 44px;
  }
}

@media (max-width: 720px) {
  .shell,
  .auth-top,
  .auth-footer {
    width: min(100% - 32px, 1180px);
  }

  .nav-inner {
    height: 64px;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .hero {
    padding-top: 112px;
    padding-bottom: 36px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 145px;
  }

  .hero-points {
    gap: 12px;
  }

  .float-card {
    display: none;
  }

  .code-block {
    min-height: 230px;
    font-size: 10px;
    padding: 16px;
  }

  .trust-strip {
    justify-content: flex-start;
    gap: 16px 24px;
    font-size: 11px;
  }

  .section {
    padding-top: 72px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .pack-grid,
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-head {
    padding: 18px;
  }

  .pricing-foot {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 18px;
  }

  .cta-card {
    padding: 30px 22px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .footer-cols {
    flex-wrap: wrap;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 5px;
  }

  .auth-card {
    padding: 24px;
  }

  .auth-top {
    height: 68px;
  }

  .topbar {
    height: 68px;
    padding: 0 16px;
  }

  .topbar-title p {
    display: none;
  }

  .app-content {
    padding: 18px 16px 60px;
  }

  .stat-grid {
    gap: 8px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-card > strong {
    font-size: 23px;
  }

  .panel {
    padding: 16px;
  }

  .chart-wrap {
    min-height: 190px;
  }

  .filters .field {
    min-width: calc(50% - 5px);
  }

  .filter-actions {
    width: 100%;
  }

  .filter-actions .btn {
    flex: 1;
  }

  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-form .btn {
    width: 100%;
  }

  .credit-balance {
    flex-direction: column;
    align-items: flex-start;
  }

  .credit-note {
    align-items: flex-start;
  }

  .custom-amount {
    flex-direction: column;
    align-items: stretch;
  }

  .custom-amount .field {
    max-width: none;
  }

  .pix-area {
    grid-template-columns: 1fr;
  }

  .qr-box {
    width: 160px;
    margin-inline: auto;
  }

  .payment-summary {
    grid-template-columns: 1fr;
  }

  .payment-summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .modal {
    padding: 12px;
  }

  .modal-card {
    max-height: calc(100vh - 24px);
  }

  .payment-summary strong {
    margin-top: 0;
  }

  .sidebar-tip {
    display: none;
  }
}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .pack-grid,
  .package-grid {
    grid-template-columns: 1fr 1fr;
  }

  .balance-pill span:first-child {
    display: none;
  }

  .topbar-actions {
    gap: 4px;
  }

  .auth-shell {
    width: calc(100% - 28px);
  }

  .auth-card {
    padding: 20px;
  }

  .section-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .filters .field {
    min-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
.legal-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.legal-wrap {
  flex: 1;
  width: min(820px, calc(100% - 40px));
  margin-inline: auto;
  padding: 46px 0 80px;
}

.legal-content h1 {
  margin: 10px 0 6px;
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.legal-updated {
  color: var(--dim);
  font-size: 11px;
}

.legal-content h2 {
  margin: 34px 0 8px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.legal-content p + p {
  margin-top: 10px;
}

.legal-content ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-left: 18px;
  list-style: disc;
}

.legal-content a {
  color: var(--blue-light);
}

@media (max-width: 720px) {
  .legal-wrap {
    padding-top: 26px;
  }
}


/* ---------------------------------------------------------------
   Verificação (códigos), Turnstile e painel admin.
   Mantém o visual brutalista: preto, molduras de 1px, cantos retos.
   --------------------------------------------------------------- */

.turnstile-box {
  /* Com appearance "interaction-only" o widget fica invisivel na maioria dos
     casos: sem altura reservada, o formulario nao ganha um buraco. Quando a
     Cloudflare pede verificacao, ele aparece centralizado. */
  margin: 6px auto 14px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 340px;
  width: 100%;
}

.turnstile-box:empty {
  margin: 0;
}

.turnstile-box iframe {
  margin: 0 auto;
  border: 0;
  max-width: 100%;
}

.code-input {
  font-family: var(--mono);
  font-size: 30px;
  letter-spacing: 14px;
  text-align: center;
  padding: 14px 10px;
  text-indent: 14px;
}

.verify-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--dim);
  margin: 0 0 14px 0;
}

.verify-actions {
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

.verify-hint {
  margin: 12px 0 0 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 17px;
  color: var(--dim);
}

/* --- segurança (2FA) --- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.security-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}

.security-card h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  letter-spacing: -0.2px;
}

.security-card p {
  margin: 0 0 14px 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}

.security-state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}

.security-dot {
  width: 8px;
  height: 8px;
  background: var(--dim);
  display: inline-block;
}

.security-dot.on { background: var(--neon); }
.security-dot.off { background: #3a3a3a; }

.secret-box {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text);
  background: #000;
  border: 1px solid var(--line);
  padding: 12px;
  word-break: break-all;
  margin-bottom: 10px;
}

.otpauth-link {
  font-family: var(--mono);
  font-size: 11px;
  word-break: break-all;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}

.stack-form {
  display: grid;
  gap: 10px;
  margin: 0;
}

.inline-fields {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.inline-fields .field { margin-bottom: 0; }

/* --- admin --- */
.admin-section + .admin-section { margin-top: 16px; }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.admin-metric {
  border: 1px solid var(--line);
  padding: 14px;
  background: var(--panel);
}

.admin-metric span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}

.admin-metric strong {
  font-size: 20px;
  font-weight: 600;
}

.admin-metric small {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}

.admin-filters {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-filters .field { margin-bottom: 0; }

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-actions .input { max-width: 130px; }

.mono-cell { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.row-admin { background: rgba(191, 166, 130, 0.05); }

.side-link--admin { color: var(--neon); }
.side-link--admin .side-icon { color: var(--neon); }

/* Subabas do painel admin: cada grupo de painéis aparece por vez, para a tela
   não virar uma rolagem única de usuários, consumo, caixa e e-mails. */
.admin-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-soft);
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
  padding: 9px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.admin-tab:hover { color: var(--text); }

.admin-tab.active {
  color: var(--text);
  border-bottom-color: var(--neon);
}

/* Só os blocos da aba atual aparecem; os demais continuam no DOM (os dados
   carregam de uma vez e a troca de aba é instantânea). */
.dash-section[data-section="admin"] > [data-admin-pane]:not(.is-active) {
  display: none;
}

.panel-subhead {
  margin: 0 0 4px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
}

.events-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  max-height: 320px;
  overflow-y: auto;
}

.events-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
}

.events-list li span.kind { color: var(--text); min-width: 150px; }
.events-list li span.when { margin-left: auto; color: var(--dim); }

/* ------------------------------------------------------------------
   Skeletons de carregamento do dashboard.
   Mostram a forma do conteúdo enquanto a API responde, em vez de zeros
   ou "Carregando...". Some sozinho quando o JS escreve o valor real.
   ------------------------------------------------------------------ */

.skeleton {
  position: relative;
  display: block;
  overflow: hidden;
  max-width: 100%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.09),
    transparent
  );
  animation: skeleton-sweep 1.25s ease-in-out infinite;
}

@keyframes skeleton-sweep {
  to {
    transform: translateX(100%);
  }
}

.skeleton-line {
  width: 100%;
  height: 12px;
  margin: 6px 0;
}

.skeleton-value {
  width: 110px;
  height: 26px;
}

.skeleton-chip {
  width: 64px;
  height: 16px;
}

.skeleton-card {
  width: 100%;
  height: 86px;
}

.skeleton-block {
  width: 100%;
  height: 220px;
}

/* Falhou o carregamento: para o brilho em vez de piscar para sempre. */
.skeleton.is-done {
  display: none;
}

.chart-skeleton {
  position: absolute;
  inset: 0;
  padding: 12px 0;
}

.chart-skeleton[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after {
    animation: none;
  }
}

/* Pacote escolhido no checkout: ele só preenche o valor, então precisa ficar
   claro qual foi o escolhido até o clique em "Gerar PIX". */
.package-card.is-selected {
  border-color: var(--yellow, #fff);
  background: rgba(255, 212, 59, 0.07);
}

.package-card.is-selected strong {
  color: var(--yellow, #fff);
}

/* ------------------------------ sandbox ------------------------------ */

.sandbox-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.sandbox-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.sandbox-head .field {
  min-width: 260px;
  flex: 1 1 280px;
}

.sandbox-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 8px;
  cursor: pointer;
}

.sandbox-toggle input {
  accent-color: var(--neon);
  width: 15px;
  height: 15px;
}

.sandbox-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
  max-height: 58vh;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.sandbox-empty {
  margin: auto;
  text-align: center;
  color: var(--dim);
  max-width: 42ch;
  font-size: 13px;
}

.sandbox-empty strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 4px;
}

.sandbox-msg {
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
  padding: 10px 12px;
  max-width: min(760px, 92%);
  min-width: 0;
  overflow-wrap: anywhere;
}

.sandbox-msg.user {
  align-self: flex-end;
  border-color: var(--line);
  background: #0f0f0f;
}

.sandbox-msg.error {
  border-color: var(--red);
}

.sandbox-role {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}

.sandbox-text {
  font-size: 14px;
  line-height: 1.65;
}

.sandbox-text code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: #141414;
  border: 1px solid var(--line-soft);
  padding: 1px 5px;
}

.sandbox-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--dim);
  font-family: var(--mono);
}

.sandbox-typing {
  color: var(--dim);
  animation: sandbox-blink 1s steps(2, start) infinite;
}

@keyframes sandbox-blink {
  to {
    visibility: hidden;
  }
}

.sandbox-thinking {
  border-left: 2px solid var(--line);
  margin: 0 0 8px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 12.5px;
}

.sandbox-thinking summary {
  cursor: pointer;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sandbox-thinking-body {
  white-space: pre-wrap;
  margin-top: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.sandbox-code {
  border: 1px solid var(--line);
  margin: 10px 0;
  background: #0a0a0a;
}

.sandbox-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.sandbox-code pre {
  margin: 0;
  padding: 10px 12px;
  overflow-x: auto;
}

.sandbox-code code {
  font-family: var(--mono);
  font-size: 12.5px;
  white-space: pre;
}

.sandbox-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.sandbox-form textarea {
  flex: 1;
  resize: vertical;
  min-height: 54px;
  max-height: 220px;
}

@media (max-width: 720px) {
  .sandbox-form {
    flex-direction: column;
    align-items: stretch;
  }

  .sandbox-form .btn {
    width: 100%;
  }
}

/* ---------------------------------------------------------------
   Instalação da CLI: bloco no sandbox, banda na landing e hint.
   Tudo usa as vars do tema para acompanhar o seletor de cores.
   --------------------------------------------------------------- */

.sandbox-install {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  text-align: left;
}

.sandbox-install-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.sandbox-install-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sandbox-install-row code {
  flex: 1 1 220px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--neon);
  font-family: var(--mono);
  font-size: 12px;
  overflow-x: auto;
  white-space: nowrap;
}

.sandbox-install-hint {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.6;
}

.sandbox-install-hint code {
  color: var(--muted);
  font-family: var(--mono);
}

.sandbox-install-hint a {
  color: var(--neon);
  text-decoration: none;
}

.sandbox-install-hint a:hover { text-decoration: underline; }

.cli-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.cli-band__copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
}

.cli-band__copy > p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 14.5px;
}

.cli-band__install {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 8px 8px 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  flex-wrap: wrap;
}

.cli-band__prompt {
  color: var(--neon);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.cli-band__install code {
  flex: 1 1 200px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
}

.cli-band__hint {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 12px;
}

.cli-band__hint code {
  color: var(--muted);
  font-family: var(--mono);
}

.cli-band__hint a {
  color: var(--neon);
  text-decoration: none;
  white-space: nowrap;
}

.cli-band__hint a:hover { text-decoration: underline; }

.cli-band__terminal {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cli-term__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10.5px;
}

.cli-term__bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}

.cli-term__bar em {
  margin-left: 6px;
  font-style: normal;
}

.cli-term__body {
  padding: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
}

.cli-term__body p {
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cli-term__body p.dim { color: var(--dim); }

/* ------------------- dispositivos (PC + celular) ------------------- */
.devices-band {
  display: grid;
  gap: 34px;
}

.devices-band__row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
  padding: 28px clamp(20px, 4vw, 44px);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.devices-shot__copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
}

.devices-shot__copy > p {
  max-width: 44ch;
  color: var(--muted);
  font-size: 14.5px;
}

.devices-shot {
  margin: 0;
  position: relative;
}

.devices-shot picture {
  display: block;
  position: relative;
}

/* A imagem tem o fundo recortado (transparente): sem moldura nem fundo,
   pra o recorte assentar direto no preto da página. */
.devices-shot img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  max-height: 48vh;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.65));
}

.devices-shot figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.devices-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--neon);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.devices-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.devices-points li {
  display: grid;
  gap: 6px;
  padding: 18px 18px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.devices-points strong {
  color: var(--text);
  font-size: 15px;
}

.devices-points span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .cli-band {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .devices-band__row {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 22px 18px 24px;
  }
  .devices-points {
    grid-template-columns: 1fr;
  }
}

/* ------------------- admin: aba Suporte ------------------- */
.support-row-new td {
  font-weight: 600;
}
.support-thread {
  margin-top: 18px;
}
.support-thread .support-body {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.6;
  padding: 14px 16px;
  border: 1px solid var(--line, #2a2a2a);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  max-height: 420px;
  overflow: auto;
}
.support-reply {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.support-reply label {
  font-size: 13px;
  font-weight: 600;
}
.support-reply textarea {
  width: 100%;
  resize: vertical;
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line, #2a2a2a);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
}
.support-reply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Popup de boas-vindas (primeira visita ao painel) */
.welcome-card {
  box-shadow: 10px 10px 0 var(--neon);
}

.welcome-perks {
  display: grid;
  gap: 12px;
}

.welcome-perk {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.018);
}

.welcome-perk-badge {
  flex: 0 0 auto;
  min-width: 64px;
  padding: 10px 8px;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000;
  background: var(--neon);
  box-shadow: 3px 3px 0 rgba(255, 255, 255, 0.18);
}

.welcome-perk-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.welcome-perk-text p {
  margin: 0;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.5;
}

.welcome-perk-text p b {
  color: var(--neon);
}

.welcome-actions {
  margin-top: 18px;
}

#welcome-countdown {
  opacity: 0.75;
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------------------- suporte: tickets e chat ---------------------- */
.support-bell {
  position: relative;
}

.support-bell-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--neon);
  color: #000;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
}

.support-top-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.support-list-panel .panel-head {
  margin-bottom: 0;
}

.support-ticket-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.support-ticket {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--line, #2a2a2a);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.support-ticket:hover {
  border-color: var(--neon);
}

.support-ticket.active {
  border-color: var(--neon);
  background: rgba(255, 255, 255, 0.05);
}

.support-ticket-top,
.support-ticket-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.support-ticket-top strong {
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-ticket-preview {
  font-size: 12.5px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-ticket-foot {
  font-size: 11.5px;
  color: var(--dim);
}

.support-ticket-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 14px;
  border: 1px dashed var(--line, #2a2a2a);
  border-radius: 10px;
  color: var(--dim);
  font-size: 13.5px;
}

.support-ticket-empty p {
  margin: 0;
}

.support-chat {
  min-height: 360px;
}

.support-chat-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 28px 18px;
  color: var(--dim);
}

.support-chat-empty strong {
  color: inherit;
  font-size: 16px;
}

.support-chat-empty p {
  margin: 0;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.55;
}

.support-chat-head {
  margin-bottom: 0;
}

.support-messages {
  display: grid;
  gap: 10px;
  max-height: 460px;
  overflow: auto;
  padding: 14px 2px;
}

.support-msg {
  max-width: min(640px, 88%);
  padding: 10px 12px;
  border: 1px solid var(--line, #2a2a2a);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.support-msg.is-mine {
  justify-self: end;
  border-color: rgba(255, 255, 255, 0.22);
}

.support-msg.is-them {
  justify-self: start;
}

.support-msg header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  font-size: 11.5px;
  color: var(--dim);
}

.support-msg header strong {
  font-size: 12px;
  color: inherit;
}

.support-msg p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.support-msg-image {
  display: block;
  margin-top: 8px;
}

.support-msg-image img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  border-radius: 8px;
  border: 1px solid var(--line, #2a2a2a);
}

.support-composer {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid var(--line, #2a2a2a);
  padding-top: 12px;
}

.support-composer-field {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.support-composer-field textarea {
  flex: 1;
  resize: vertical;
  min-height: 64px;
}

.support-attach {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line, #2a2a2a);
  border-radius: 10px;
  cursor: pointer;
  font-size: 17px;
}

.support-attach:hover {
  border-color: var(--neon);
}

.support-composer-foot,
.support-new-actions,
.support-attach-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.support-image-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.support-ticket-modal {
  z-index: 120;
}

.support-ticket-card {
  width: min(640px, 100%);
}

.support-ticket-card .modal-head p {
  margin: 6px 0 0;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.5;
}

.support-ticket-card .modal-body {
  padding-top: 14px;
}

body.modal-open {
  overflow: hidden;
}

.support-new-form {
  display: grid;
  gap: 12px;
}

.support-row-active td {
  background: rgba(255, 255, 255, 0.04);
}

.support-thread .link-btn {
  margin-left: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-ticket-list {
    max-height: 260px;
  }
}

/* ==========================================================================
   Tickets do admin em formato de chat (estilo WhatsApp Web)
   ========================================================================== */
.wa-panel {
  padding: 0;
  overflow: hidden;
}

.wa-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  height: clamp(480px, calc(100vh - 230px), 760px);
  min-height: 0;
}

/* ------------------------------ coluna esquerda ------------------------------ */
.wa-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line-soft);
  background: var(--panel-2);
}

.wa-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 8px;
}

.wa-side-head h2 {
  margin: 0;
  font-size: 16px;
}

.wa-side-head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--dim);
}

.wa-filters {
  display: grid;
  gap: 8px;
  padding: 4px 14px 10px;
  border-bottom: 1px solid var(--line-soft);
}

.wa-chips {
  display: flex;
  gap: 6px;
}

.wa-chip {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.wa-chip:hover {
  color: var(--text);
}

.wa-chip.is-active {
  border-color: var(--neon);
  background: color-mix(in srgb, var(--neon) 20%, transparent);
  color: var(--text);
}

.wa-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.wa-list-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
}

.wa-item {
  display: flex;
  gap: 11px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.wa-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.wa-item.is-active {
  background: color-mix(in srgb, var(--neon) 14%, transparent);
}

.wa-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: hsl(var(--h, 35) 32% 30%);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

.wa-avatar.is-small {
  width: 36px;
  height: 36px;
  font-size: 15px;
}

.wa-item-body {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.wa-item-top,
.wa-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.wa-item-top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.wa-item-top time {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--dim);
}

.wa-item.has-unread .wa-item-top time {
  color: var(--neon);
}

.wa-item.has-unread .wa-item-top strong {
  color: #fff;
}

.wa-item-subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}

.wa-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--dim);
}

.wa-item.has-unread .wa-preview {
  color: var(--muted);
}

.wa-you {
  color: var(--dim);
}

.wa-badge {
  flex: 0 0 auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--neon);
  color: var(--neon-ink);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

.wa-tag {
  flex: 0 0 auto;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--dim);
}

/* ------------------------------ coluna direita ------------------------------ */
.wa-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--bg);
}

.wa-empty {
  display: grid;
  flex: 1;
  place-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  color: var(--dim);
}

.wa-empty strong {
  font-size: 16px;
  color: var(--muted);
}

.wa-empty p {
  margin: 0;
  font-size: 13px;
}

.wa-chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.wa-chat[hidden],
.wa-empty[hidden] {
  display: none;
}

.wa-chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel-2);
}

.wa-chat-title {
  display: grid;
  flex: 1;
  gap: 1px;
  min-width: 0;
}

.wa-chat-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14.5px;
}

.wa-chat-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--dim);
}

.wa-back {
  display: none;
}

.wa-messages {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 14px clamp(10px, 4%, 40px);
  overflow-y: auto;
  background: var(--panel-3);
  scroll-behavior: auto;
}

.wa-no-messages {
  margin: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
}

.wa-day {
  display: flex;
  justify-content: center;
  margin: 12px 0 8px;
}

.wa-day span {
  padding: 3px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11.5px;
  color: var(--muted);
}

.wa-row {
  display: flex;
  margin: 2px 0;
}

.wa-row.is-out {
  justify-content: flex-end;
}

.wa-row.is-in {
  justify-content: flex-start;
}

.wa-bubble {
  position: relative;
  max-width: min(560px, 82%);
  padding: 7px 10px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #151515;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.wa-row.is-in .wa-bubble {
  border-top-left-radius: 2px;
}

.wa-row.is-out .wa-bubble {
  border-color: color-mix(in srgb, var(--neon) 50%, transparent);
  border-top-right-radius: 2px;
  background: color-mix(in srgb, var(--neon) 24%, #0a0a0a);
}

.wa-row.is-sending .wa-bubble {
  opacity: 0.7;
}

.wa-row.is-failed .wa-bubble {
  border-color: var(--red);
}

.wa-bubble p {
  margin: 0;
  white-space: normal;
}

.wa-bubble a {
  color: var(--neon);
  text-decoration: underline;
}

.wa-img {
  display: block;
  margin-bottom: 4px;
}

.wa-img img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  border-radius: 7px;
}

.wa-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--dim);
}

.wa-tick {
  color: var(--neon);
  font-size: 11px;
  line-height: 1;
}

.wa-tick.is-wait {
  color: var(--dim);
}

.wa-tick.is-fail {
  color: var(--red);
  font-weight: 700;
}

.wa-fail {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--red);
}

.wa-retry {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.wa-jump {
  position: absolute;
  right: 18px;
  bottom: 92px;
  z-index: 3;
  padding: 7px 13px;
  border: 1px solid var(--neon);
  border-radius: 999px;
  background: #111;
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.wa-jump[hidden] {
  display: none;
}

/* --------------------------------- composer --------------------------------- */
.wa-composer {
  display: grid;
  gap: 6px;
  padding: 9px 12px 11px;
  border-top: 1px solid var(--line-soft);
  background: var(--panel-2);
}

.wa-closed-note {
  font-size: 11.5px;
  color: var(--dim);
}

.wa-image-preview {
  position: relative;
  width: fit-content;
}

.wa-image-preview img {
  display: block;
  max-width: 140px;
  max-height: 100px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wa-preview-x {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #111;
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.wa-composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.wa-attach {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.wa-attach:hover {
  background: rgba(255, 255, 255, 0.08);
}

.wa-input {
  flex: 1;
  min-height: 40px;
  max-height: 140px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #101010;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: none;
  overflow-y: auto;
}

.wa-input:focus {
  outline: none;
  border-color: var(--neon);
}

.wa-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--neon);
  color: var(--neon-ink);
  cursor: pointer;
}

.wa-send:disabled {
  opacity: 0.35;
  cursor: default;
}

.wa-send svg {
  width: 19px;
  height: 19px;
}

.wa-hint {
  margin: 0;
  font-size: 11px;
  color: var(--dim);
}

/* ----------------------------------- mobile ---------------------------------- */
@media (max-width: 820px) {
  .wa-shell {
    grid-template-columns: minmax(0, 1fr);
    height: clamp(460px, calc(100vh - 200px), 800px);
  }

  .wa-shell.is-chat-open .wa-side,
  .wa-shell:not(.is-chat-open) .wa-main {
    display: none;
  }

  .wa-back {
    display: inline-flex;
  }

  .wa-bubble {
    max-width: 90%;
  }

  .wa-hint {
    display: none;
  }
}

/* ==========================================================================
   Tempo real do admin: indicador e aba de logs de e-mail
   ========================================================================== */
.live-pill {
  margin-left: auto;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  white-space: nowrap;
  color: var(--dim);
}

.live-pill[data-state="live"] {
  border-color: color-mix(in srgb, #4ade80 55%, transparent);
  color: #4ade80;
}

.live-pill[data-state="connecting"] {
  color: var(--orange);
}

.elog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.elog-card {
  display: grid;
  gap: 6px;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  background: var(--panel-2);
}

.elog-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.elog-card-fail {
  font-size: 11px;
  color: var(--red);
}

.elog-card small {
  font-size: 11.5px;
  color: var(--dim);
}

.elog-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.elog-bar span {
  display: block;
  height: 100%;
  background: var(--neon);
  transition: width 0.4s;
}

.elog-card.is-full .elog-bar span,
.elog-card.is-paused .elog-bar span {
  background: var(--red);
}

.elog-card.is-off {
  opacity: 0.55;
}

.elog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.elog-filters .input {
  width: auto;
  min-width: 160px;
}

.elog-row td {
  vertical-align: middle;
}

.elog-row.is-new {
  animation: elog-flash 2.4s ease-out;
}

@keyframes elog-flash {
  from {
    background: color-mix(in srgb, var(--neon) 30%, transparent);
  }
  to {
    background: transparent;
  }
}

.elog-to {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.elog-kind {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.elog-prov,
.elog-status {
  display: inline-block;
  padding: 1px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
}

.elog-status.is-ok {
  border-color: color-mix(in srgb, #4ade80 50%, transparent);
  color: #4ade80;
}

.elog-status.is-fail {
  border-color: color-mix(in srgb, var(--red) 55%, transparent);
  color: var(--red);
}

.elog-status.is-mock {
  color: var(--dim);
}

.elog-detail {
  display: block;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--dim);
}

.elog-detail.is-error {
  color: var(--red);
}

.elog-more-row {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

/* ==========================================================================
   Saldo dos provedores (aba Provedores)
   ========================================================================== */
.bal-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 34px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--neon) 45%, transparent);
  background: color-mix(in srgb, var(--neon) 8%, var(--panel-2));
}

.bal-total-main {
  display: grid;
  gap: 2px;
}

.bal-total-main span {
  font-size: 12px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bal-total-main strong {
  font-size: 30px;
  line-height: 1.1;
}

.bal-total-main em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

.bal-total-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bal-total-parts li {
  display: grid;
  gap: 1px;
}

.bal-total-parts span {
  font-size: 11.5px;
  color: var(--dim);
}

.bal-total-parts b.is-bad {
  color: var(--red);
}

.bal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}

.bal-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 15px;
  border: 1px solid var(--line-soft);
  background: var(--panel-2);
}

.bal-card.is-ok {
  border-left: 3px solid #4ade80;
}

.bal-card.is-low,
.bal-card.is-code,
.bal-card.is-connecting {
  border-left: 3px solid var(--orange);
}

.bal-card.is-expired,
.bal-card.is-needs {
  border-left: 3px solid var(--orange);
}

.bal-card.is-error {
  border-left: 3px solid var(--red);
}

.bal-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.bal-card header div {
  display: grid;
  min-width: 0;
}

.bal-card header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bal-card header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--dim);
}

.bal-badge {
  flex: 0 0 auto;
  padding: 1px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--muted);
}

.bal-badge.is-ok {
  border-color: color-mix(in srgb, #4ade80 50%, transparent);
  color: #4ade80;
}

.bal-badge.is-low,
.bal-badge.is-code,
.bal-badge.is-connecting,
.bal-badge.is-expired,
.bal-badge.is-needs {
  border-color: color-mix(in srgb, var(--orange) 55%, transparent);
  color: var(--orange);
}

.bal-badge.is-error {
  border-color: color-mix(in srgb, var(--red) 55%, transparent);
  color: var(--red);
}

.bal-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 24px;
  font-weight: 600;
}

.bal-amount small {
  font-size: 13px;
  font-weight: 400;
  color: var(--dim);
}

.bal-meta {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
}

.bal-meta li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.bal-meta span {
  color: var(--dim);
}

.bal-models summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--muted);
}

.bal-models table {
  margin-top: 6px;
  font-size: 12px;
}

.bal-card footer {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.bal-danger:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red);
}

.bal-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
}

.bal-note.is-warn {
  color: var(--orange);
}

.bal-note.is-error {
  color: var(--red);
}

.bal-note.is-busy {
  color: var(--muted);
}

.bal-code {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px dashed var(--orange);
}

.bal-code p {
  margin: 0;
  font-size: 12.5px;
}

.bal-code-row {
  display: flex;
  gap: 8px;
}

.bal-code-row .input {
  flex: 1;
  letter-spacing: 0.15em;
}

.bal-login-status {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px dashed var(--line);
  font-size: 13px;
}

.bal-login-status p {
  margin: 0;
}

.field small {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--dim);
}

/* ==========================================================================
   Login com Google
   ========================================================================== */
[data-google][hidden] {
  display: none !important;
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 2px;
  font-size: 12px;
  color: var(--dim);
}

.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-google {
  gap: 10px;
  border-color: #fff;
  background: #fff;
  color: #1f1f1f;
}

.btn-google:hover {
  border-color: #fff;
  background: #f1f1f1;
  color: #1f1f1f;
}

.btn-google svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.gp-account {
  margin: 0 0 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 13px;
  word-break: break-all;
}

/* ==========================================================================
   Diálogos do site (PF.dialog / confirm / alert / prompt) e encerrar ticket
   ========================================================================== */
.pf-dialog {
  z-index: 300; /* acima dos outros modais: confirmar algo de dentro de um modal */
}

.pf-dialog-card {
  width: min(460px, 100%);
}

.pf-dialog-card.pf-lg {
  width: min(620px, 100%);
}

.pf-dialog-card.is-danger {
  box-shadow: 10px 10px 0 var(--red);
}

.pf-dialog-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--dim);
}

.pf-dialog-body p {
  margin: 0 0 10px;
  line-height: 1.55;
  color: var(--muted);
}

.pf-dialog-body .field {
  margin-bottom: 0;
}

.pf-dialog-actions {
  justify-content: flex-end;
}

.btn-danger {
  background: var(--red);
  border-color: var(--red);
  color: #000;
}

.btn-danger:hover:not(:disabled) {
  background: #ff8080;
  border-color: #ff8080;
  color: #000;
}

/* encerrar ticket */
.tc {
  display: grid;
  gap: 14px;
}

.tc fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.tc-q {
  margin: 0 0 6px;
  padding: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.tc-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.tc-option:has(input:checked) {
  border-color: var(--neon);
  background: color-mix(in srgb, var(--neon) 10%, transparent);
}

.tc-option input {
  margin-top: 3px;
}

.tc-option span {
  display: grid;
  gap: 2px;
}

.tc-option small {
  font-size: 12px;
  color: var(--dim);
}

.tc-yn {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 10px;
  font-size: 13.5px;
}

.tc-yn label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.tc textarea {
  width: 100%;
  resize: vertical;
}

.tc-preview {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--neon);
  background: var(--panel-2);
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.bal-paste {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
}

.bal-paste summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
}

.bal-paste .field {
  margin: 10px 0 0;
}

/* ---- Suporte: visualizador Texto/HTML/Bruto e enderecos de entrada ---- */
.support-view-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.support-view-tabs .btn.is-active { border-color: var(--accent, #7c5cff); color: var(--accent, #7c5cff); }
.support-frame { width: 100%; height: 460px; border: 1px solid var(--line, #2a2a2a); border-radius: 10px; background: #fff; }
.support-raw {
  margin: 0; padding: 14px 16px; max-height: 460px; overflow: auto; font: 12px/1.5 ui-monospace, Consolas, monospace;
  white-space: pre-wrap; word-break: break-all; border: 1px solid var(--line, #2a2a2a); border-radius: 10px; background: rgba(255, 255, 255, 0.02);
}
.support-addresses { margin: 18px 0; }
.support-addr-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0 16px; }
.support-addr-form input { flex: 1 1 200px; min-width: 0; }
.support-addr-at { opacity: 0.7; }

/* ---- aviso: envio de codigo por e-mail em manutencao -> usar Google ---- */
.auth-maint {
  margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45;
  background: rgba(255, 184, 0, 0.12); border: 1px solid rgba(255, 184, 0, 0.45); color: inherit;
}
.btn-google.is-highlight { box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.45); animation: google-pulse 1.6s ease-in-out 3; }
@keyframes google-pulse { 50% { box-shadow: 0 0 0 7px rgba(66, 133, 244, 0.15); } }

/* ---------------------------------------------------------------- parceiros */
.partners-band { padding-block: clamp(40px, 6vw, 72px); }
.partners-band__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.partners-band__head h2 { margin: 6px 0 0; }
.partners-nav { display: flex; gap: 8px; }
.partners-nav button { width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-size: 18px; }
.partners-nav button:hover { border-color: var(--neon); color: var(--neon); }
.partners-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.partners-track::-webkit-scrollbar { display: none; }
/* Giro automatico da direita para a esquerda (cards maiores que a tela). */
.partners-track.is-marquee { scroll-snap-type: none; }
.partners-track.is-marquee .partner-slide { scroll-snap-align: none; }
/* card de parceiro: estilo convite do Discord (banner em cima, foto e texto embaixo) */
.partner-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel-2); overflow: hidden; color: var(--text); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
@media (min-width: 900px) { .partner-slide { flex-basis: calc(50% - 8px); } }
.partner-slide__cover { position: relative; aspect-ratio: 3 / 1; overflow: hidden; background: #0c0c0c; border-bottom: 1px solid var(--line-soft); }
.partner-slide__cover.is-empty { background: repeating-linear-gradient(45deg, #131313, #131313 10px, #0e0e0e 10px, #0e0e0e 20px); }
.partner-slide__banner { display: block; width: 100%; height: 100%; object-fit: cover; }
.partner-slide__info { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px 16px; }
.partner-slide__logo { position: relative; z-index: 1; flex: none; width: 56px; height: 56px; margin-top: -36px; object-fit: cover; border-radius: 14px; border: 3px solid var(--panel-2); background: var(--bg); box-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.partner-slide__text { min-width: 0; flex: 1 1 auto; padding-top: 2px; }
.partner-slide__text strong { display: block; font-size: 1.05rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partner-slide__text span { display: -webkit-box; margin-top: 3px; color: var(--muted); font-size: .9rem; line-height: 1.4; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.partner-slide__cta { flex: none; align-self: center; padding: 8px 12px; border: 1px solid var(--line); color: var(--text); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
a.partner-slide:hover, a.partner-slide:focus-visible { border-color: var(--neon); outline: none; }
a.partner-slide:hover .partner-slide__cta, a.partner-slide:focus-visible .partner-slide__cta { border-color: var(--neon); color: var(--neon); }
@media (max-width: 600px) { .partner-slide__cover { aspect-ratio: 5 / 2; } .partner-slide__cta { display: none; } }
.partners-dots { display: flex; gap: 8px; margin-top: 14px; justify-content: center; }
.partners-dots button { width: 10px; height: 10px; padding: 0; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.partners-dots button[aria-current="true"] { background: var(--neon); border-color: var(--neon); }

.pt-card { display: grid; gap: 16px; margin-bottom: 28px; }
.pt-coupon { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; padding: 10px 12px; border: 1px dashed var(--line); }
.pt-coupon span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.pt-coupon code { font-family: var(--mono); font-size: 1.05rem; color: var(--neon); }
.pt-coupon small { color: var(--muted); }
.pt-h { margin: 22px 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pt-grid { display: grid; gap: 12px 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pt-grid .field label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.pt-grid .field small { display: block; margin-top: 4px; font-size: .75rem; }
.pt-check { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; cursor: pointer; }
.pt-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pt-msg { font-size: .85rem; }
.pt-msg.is-ok { color: var(--green); }
.pt-msg.is-err { color: var(--red); }
.pt-pix-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-top: 12px; }
.pt-pix-form .input { flex: 1 1 180px; max-width: 280px; }
.pt-pix-edit summary { cursor: pointer; color: var(--muted); font-size: .8rem; margin-top: 6px; }
.pt-withdraw { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin: 12px 0 4px; }
.pt-withdraw .field { margin: 0; }
.badge.red { border-color: rgba(255, 80, 80, .5); color: #ff7a7a; }
.pt-media-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pt-media { display: grid; gap: 8px; align-content: start; }
.pt-preview { border: 1px solid var(--line); background: var(--panel-2); display: grid; place-items: center; overflow: hidden; }
.pt-preview--banner { aspect-ratio: 16 / 5; }
.pt-preview--logo { width: 128px; height: 128px; }
.pt-preview img { width: 100%; height: 100%; object-fit: cover; }
.pt-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pt-add .input { flex: 1 1 220px; max-width: 360px; }
.pt-share { width: 130px; max-width: 100%; }
.pt-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pt-house td { border-top: 1px solid var(--line); background: var(--panel-3); }
.coupon-field { margin-top: 12px; max-width: 280px; }
.coupon-field { margin-top: 12px; max-width: 280px; }
.pt-sec { border: 1px solid var(--line); margin: 10px 0; padding: 0 14px 14px; }
.pt-sec > summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; }
.pt-sec > summary::after { content: "＋"; float: right; color: var(--muted); }
.pt-sec[open] > summary::after { content: "−"; }
.pt-sec > summary::-webkit-details-marker { display: none; }

/* ------------------------------------------------------- e-mails (estilo chat) */
.inbox-head-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inbox-new { display: grid; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.inbox-new[hidden] { display: none; }
.inbox-new-row { display: flex; align-items: center; gap: 6px; }
.inbox-new-row input { flex: 1 1 0; min-width: 0; }
.inbox-new-row select { flex: 1 1 0; min-width: 0; }
.inbox-from { display: block; font-size: .8rem; color: var(--neon); word-break: break-all; }
.inbox-subject { font-weight: 600; margin: 2px 0 4px; }
.inbox-text { white-space: pre-wrap; word-break: break-word; margin: 0; }
.inbox-viewer-bar { display: flex; gap: 6px; margin: 6px 0; flex-wrap: wrap; }
.inbox-viewer-bar .is-active { border-color: var(--neon); color: var(--neon); }
.inbox-body .support-frame { width: 100%; min-height: 280px; border: 1px solid var(--line); background: #fff; }
.inbox-body .support-raw { max-height: 320px; overflow: auto; font-size: .75rem; white-space: pre-wrap; word-break: break-all; }
.wa-row.is-in .wa-bubble { max-width: min(640px, 92%); }

/* Login com Discord */
[data-discord][hidden] { display: none !important; }
.btn-discord { gap: 10px; border-color: #5865f2; background: #5865f2; color: #fff; }
.btn-discord:hover { border-color: #4752c4; background: #4752c4; color: #fff; }
.btn-discord svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* Ajuda por Discord na tela do codigo */
.verify-discord { display: grid; gap: 10px; margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--line); }
.verify-discord[hidden] { display: none; }
.verify-discord p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.verify-discord strong { color: var(--text); }


/* cartao do Discord (aba Seguranca) */
.dc-profile {
  border: 1px solid var(--line);
  margin: 0 0 14px 0;
  overflow: hidden;
  background: #0a0a0a;
}
.dc-banner {
  height: 84px;
  background: #1f1f26 center / cover no-repeat;
}
.dc-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 14px 14px 14px;
  margin-top: -28px;
}
.dc-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid #0a0a0a;
  background: #1f1f26;
  object-fit: cover;
  flex: none;
}
.dc-names {
  display: grid;
  min-width: 0;
  padding-bottom: 2px;
}
.dc-names strong {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dc-names span {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* sessoes e dispositivos (aba Seguranca) */
.sessions-card {
  grid-column: 1 / -1;
  min-width: 0;
}
.session-list {
  list-style: none;
  margin: 0 0 14px 0;
  padding: 0;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.session-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: #0a0a0a;
}
.session-item > .btn {
  flex: 0 0 auto;
  margin-left: auto;
}
.session-item.current {
  border-color: var(--neon, #bfa682);
}
.session-icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 14px;
}
.session-info {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}
.session-info strong {
  font-size: 13px;
}
.session-meta {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.session-badge {
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--neon, #bfa682);
  color: var(--neon, #bfa682);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 400;
}


/* numeros ao vivo na pagina inicial */
.stats-section {
  padding: 56px 0 8px;
}
.stats-head {
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
}
.stats-head h2 {
  margin: 0;
}
.stats-head p {
  margin: 0;
  color: var(--muted);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.stat-tile {
  display: grid;
  gap: 8px;
  padding: 26px 22px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  min-width: 0;
}
.stat-tile:last-child {
  border-right: 0;
}
.stat-value {
  font-family: var(--mono);
  font-size: clamp(26px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-tile {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stat-tile:last-child {
    border-bottom: 0;
  }
}

/* imagens geradas no sandbox (modelos de imagem) */
.sandbox-img {
  display: inline-block;
  margin: 8px 0;
  border: 2px solid #202020;
  line-height: 0;
}
.sandbox-img img {
  display: block;
  max-width: min(100%, 520px);
  height: auto;
}

/* aviso de novidade na visão geral (modelos de imagem sem censura) */
.promo-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px 52px 16px 18px;
  background: #000;
  border: 2px solid var(--neon);
  box-shadow: 6px 6px 0 0 var(--neon);
}
.promo-banner[hidden] { display: none; }
.promo-tag {
  flex-shrink: 0;
  padding: 4px 9px;
  background: var(--neon);
  color: var(--neon-ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.promo-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.promo-copy strong { font-size: 16px; color: #fff; }
.promo-copy span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.promo-actions { display: flex; gap: 10px; flex-shrink: 0; }
.promo-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.promo-close:hover { color: #fff; }
@media (max-width: 860px) {
  .promo-banner { flex-direction: column; align-items: flex-start; }
}

/* Abas Ativas / Bloqueadas na lista de usuários do admin */
.admin-status-tabs { display: flex; gap: 0; margin: 4px 0 14px; border: 1.5px solid var(--line); width: fit-content; }
.admin-status-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; background: transparent; border: 0; color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.admin-status-tab + .admin-status-tab { border-left: 1.5px solid var(--line); }
.admin-status-tab:hover { color: var(--text); }
.admin-status-tab.is-active { background: var(--text); color: #000; }
.admin-status-tab.is-active .badge { border-color: #000; color: #000; background: transparent; }


/* ------------------------------------------------------------------
   Painel admin no celular: tabelas viram cartões (rótulo à esquerda,
   valor à direita), filtros e ações ocupam a largura toda.
   ------------------------------------------------------------------ */
@media (max-width: 720px) {
  .admin-section .table-wrap:has(.table--cards) { overflow: visible; }
  .table--cards thead { display: none; }
  .table--cards, .table--cards tbody { display: block; width: 100%; }
  .table--cards tr {
    display: block;
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid var(--line-soft);
    background: var(--panel-2);
  }
  .table--cards tr:last-child { margin-bottom: 0; }
  .admin-section .table--cards td,
  .table-wrap.compact .table--cards td {
    display: block;
    position: relative;
    min-height: 26px;
    padding: 6px 0 6px 36%;
    border: 0;
    border-top: 1px dashed var(--line-soft);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    text-align: left;
  }
  .table--cards td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 8px;
    width: 33%;
    overflow-wrap: anywhere;
    color: var(--dim);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  /* 1ª célula = título do cartão (nome/e-mail, modelo, provedor) */
  .admin-section .table--cards td:first-child {
    display: block;
    min-height: 0;
    padding: 0 0 8px;
    border-top: 0;
    font-size: 14px;
    font-weight: 700;
  }
  .table--cards td:first-child::before { content: none; }
  .table--cards td:first-child .mono-cell { display: block; margin-top: 2px; font-weight: 400; }
  .table--cards td:first-child br { display: none; }
  /* células vazias de rótulo (coluna de botões) e linha de "carregando/vazio" */
  .table--cards td[data-label=""]::before,
  .table--cards td.empty-cell::before,
  .table--cards td[colspan]::before { content: none; }
  .admin-section .table--cards td[data-label=""] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0 0;
  }
  .table--cards td[data-label=""] .btn { flex: 1 1 auto; justify-content: center; }
  .admin-section .table--cards td.empty-cell,
  .admin-section .table--cards td[colspan] { display: block; padding: 6px 0; text-align: center; border-top: 0; }
  .table--cards td .badge { margin: 2px 4px 2px 0; }
  .table--cards tr.row-admin { border-left: 3px solid var(--orange, #bfa682); }

  /* busca e filtros */
  .admin-filters { flex-direction: column; align-items: stretch; }
  .admin-filters .field, .admin-filters .input, .admin-filters .btn { width: 100%; max-width: none; }
  .admin-status-tabs { width: 100%; }
  .admin-status-tab { flex: 1; justify-content: center; padding: 10px 8px; }
  /* Ativas / Bloqueadas / Excluidas: rotulo e contagem empilhados para nao estourar no celular */
  [data-admin-pane="users"] .admin-status-tab {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    padding: 8px 4px;
    font-size: 10px;
    letter-spacing: .04em;
    line-height: 1.15;
    text-align: center;
  }
  [data-admin-pane="users"] .admin-status-tab .badge { flex: none; }
  .pagination { gap: 8px; }
  .pagination #admin-page { flex: 1; text-align: center; }

  /* detalhe do usuário */
  #admin-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #admin-detail-metrics > * { min-width: 0; padding: 12px; }
  #admin-detail-metrics strong, #admin-detail-metrics .metric-value { font-size: 18px; overflow-wrap: anywhere; }
  #admin-detail .panel-head { flex-wrap: wrap; gap: 10px; }
  #admin-detail-title { overflow-wrap: anywhere; font-size: 16px; }
  .admin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-actions .field { grid-column: span 2; margin: 0; }
  .admin-actions .input { max-width: none; width: 100%; }
  .admin-actions .btn { width: 100%; justify-content: center; }
  .admin-actions .btn:last-child:nth-child(odd) { grid-column: span 2; }
  #admin-detail .dash-grid { grid-template-columns: 1fr; }
  .events-list li { flex-wrap: wrap; gap: 4px 10px; overflow-wrap: anywhere; }

  /* saldo dos provedores */
  #bal-panel .panel-head { flex-direction: column; align-items: stretch; gap: 12px; }
  #bal-panel .support-top-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  #bal-panel .support-top-actions .btn { width: 100%; justify-content: center; }
  #bal-panel .support-top-actions .btn:last-child { grid-column: span 2; }
  .bal-grid { grid-template-columns: 1fr; }
  .bal-card header { flex-wrap: wrap; }
  .bal-card header div { flex: 1 1 60%; }
  .bal-meta li { flex-wrap: wrap; gap: 2px 10px; }
  .bal-card { min-width: 0; }
  .bal-card .bal-meta li b { flex: 1 1 auto; min-width: 0; white-space: normal; text-align: right; overflow-wrap: anywhere; }
  .bal-amount { flex-wrap: wrap; }
  .bal-models { overflow-x: auto; }
  .bal-card footer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .bal-card footer .btn { width: 100%; justify-content: center; }

  /* abas: dá pra ver que rola de lado */
  .admin-tabs { mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
  /* espaço para os botões flutuantes não cobrirem o fim da página */
  [data-section="admin"] { padding-bottom: 96px; }
}

/* Privacidade e seus dados (LGPD) — aba Segurança */
.privacy-panel { margin-top: 16px; }
.privacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.privacy-item { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 16px; border: 1px solid var(--line-soft); background: var(--panel-2); }
.privacy-item h3 { margin: 0; font-size: 15px; }
.privacy-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.privacy-item #privacy-delete-form { width: 100%; display: grid; gap: 10px; }
.privacy-item #privacy-delete-form .field { margin: 0; }
.privacy-danger { border-left: 3px solid var(--red, #e5484d); }
@media (max-width: 720px) {
  .privacy-item .btn, .privacy-item .admin-actions .btn { width: 100%; justify-content: center; }
}

/* Aba UTM (campanhas de rede social) */
.utm-new { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 4px; }
.utm-new .field { margin: 0; flex: 1 1 200px; min-width: 180px; }
.utm-msg { margin: 6px 0 14px; min-height: 16px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.utm-msg.is-ok { color: var(--green, #3fb950); }
.utm-msg.is-err { color: var(--red, #e5484d); }
.utm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.utm-card { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--line); background: var(--panel); }
.utm-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.utm-card-head strong { display: block; font-size: 16px; }
.utm-card-head small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; word-break: break-all; }
.utm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.utm-stats span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); }
.utm-stats strong { display: block; margin-top: 3px; font-size: 18px; font-weight: 600; }
.utm-stats small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.utm-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
@media (max-width: 640px) {
  .utm-new .field { flex-basis: 100%; min-width: 100%; }
  .utm-new .btn { width: 100%; justify-content: center; }
}

/* Aba IA (domínios analisados pela IA) */
.dia-list { display: grid; gap: 12px; }
.dia-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--line-soft); border-left: 3px solid var(--line-soft); background: var(--panel-2); }
.dia-card.is-bad { border-left-color: var(--red, #e5484d); }
.dia-card.is-ok { border-left-color: #4ade80; }
.dia-card.is-warn, .dia-card.is-wait { border-left-color: var(--orange, #f5a524); }
.dia-card header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.dia-card header div { display: grid; gap: 2px; min-width: 0; }
.dia-card header strong { font-size: 15px; overflow-wrap: anywhere; }
.dia-card header small { color: var(--dim); font-size: 12px; }
.dia-badge { padding: 3px 9px; border: 1px solid currentColor; border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 700; white-space: nowrap; }
.dia-badge.is-bad { color: var(--red, #e5484d); }
.dia-badge.is-ok { color: #4ade80; }
.dia-badge.is-warn, .dia-badge.is-wait { color: var(--orange, #f5a524); }
.dia-motivo { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text); }
.dia-motivo.is-bad { color: var(--red, #e5484d); }
.dia-sinais { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.dia-card footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--dim); font-size: 12px; }
.dia-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .dia-actions { width: 100%; }
  .dia-actions .btn { flex: 1 1 auto; justify-content: center; }
}
#dia-filtros { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 720px) {
  #dia-filtros { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  #dia-filtros .admin-status-tab + .admin-status-tab { border-left: 0; }
  #dia-filtros .admin-status-tab:nth-child(even) { border-left: 1.5px solid var(--line); }
  #dia-filtros .admin-status-tab:nth-child(n+3) { border-top: 1.5px solid var(--line); }
}

/* Landing: comando de instalação da CLI (link do .tgz) quebra linha em vez de alargar a página */
.cli-band__copy, .cli-band__terminal { min-width: 0; }
.cli-band__install { min-width: 0; max-width: 100%; }
.cli-band__install code { min-width: 0; white-space: normal; overflow-wrap: anywhere; word-break: break-all; }
.cli-term__body p { overflow-wrap: anywhere; word-break: break-all; }

/* Card unificado do River: cada conta dentro do detalhe */
.bal-contas { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.bal-conta { padding: 10px 12px; border: 1px solid var(--line-soft); border-left: 3px solid var(--line-soft); background: rgba(255,255,255,.015); display: grid; gap: 8px; }
.bal-conta.is-ok { border-left-color: #4ade80; }
.bal-conta.is-low, .bal-conta.is-code, .bal-conta.is-connecting, .bal-conta.is-needs, .bal-conta.is-expired { border-left-color: var(--orange); }
.bal-conta.is-error { border-left-color: var(--red); }
.bal-conta-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bal-conta-topo span { display: grid; min-width: 0; }
.bal-conta-topo small { color: var(--dim); font-size: 12px; overflow-wrap: anywhere; }
.bal-conta-topo b { white-space: nowrap; }
.bal-conta-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .bal-conta-acoes .btn { flex: 1 1 auto; justify-content: center; } }

/* Botões de redes sociais no rodapé da landing */
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social .social-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px;
  border: 1px solid var(--line, #26262b); border-radius: 10px; color: var(--muted, #b4b4bd);
  font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s, transform .15s; }
.footer-social .social-btn:hover { border-color: var(--neon, #e11d2e); color: #fff; transform: translateY(-1px); }
.footer-social .social-btn svg { flex: none; }
