: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 {
  width: min(1180px, calc(100% - 48px));
  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;
}

.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;
}

.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;
}

.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-spacer {
  flex: 1;
}

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

.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: 12px 6px 4px;
  border-top: 1px solid var(--line-soft);
}

.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;
  gap: 16px;
  margin-bottom: 16px;
}

.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;
}

.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;
}

.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;
}

.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;
}

.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;
  }

  .float-cache {
    right: 0;
  }

  .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;
  }

  .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;
  }
}

