@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* =========================================================
   Grupo Reis Afiliados — design system
   Vidro esmeralda sobre fundo profundo. Um único acento.

   Handoff Next.js + Tailwind (theme.extend):
   colors: bg #070f19 · surface rgba(255,255,255,.045)
           fg #f2f6fa · muted #9aabbe · border rgba(255,255,255,.085)
           brand 50/100/300/400/500 = #ecfdf5 / #a7f3d0 / #6ee7b7 / #34d399 / #10b981
   fontFamily: display ['Sora'] · sans ['Inter'] · mono ['JetBrains Mono']
   borderRadius: card 18px · control 12px · pill 999px
   ========================================================= */

:root {
  color-scheme: dark;

  --bg: #070f19;
  --bg-soft: #0a1524;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.075);
  --surface-solid: #0c1a2a;
  --fg: #f2f6fa;
  --muted: #9aabbe;
  --faint: #7e91a8;
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.17);

  --accent: #10b981;
  --accent-bright: #34d399;
  --accent-deep: #0b8f66;
  --accent-ink: #04251b;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --accent-line: rgba(16, 185, 129, 0.34);

  --amber: #f5b545;
  --amber-soft: rgba(245, 181, 69, 0.12);
  --sky: #5aa9e6;
  --sky-soft: rgba(90, 169, 230, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);

  --radius-xs: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --font-display: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 60px -34px rgba(0, 0, 0, 0.95);
  --shadow-float: 0 34px 90px -34px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --container: 1180px;
  --gutter: 28px;
}

/* ─── base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(900px 620px at 10% -12%, rgba(16, 185, 129, 0.14), transparent 62%),
    radial-gradient(720px 520px at 94% 2%, rgba(52, 211, 153, 0.07), transparent 58%),
    radial-gradient(1100px 700px at 50% 118%, rgba(16, 185, 129, 0.06), transparent 62%);
  background-attachment: fixed;
}
body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(16, 185, 129, 0.32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ─── utilities ──────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 8vw, 112px); position: relative; }
.stack { display: flex; flex-direction: column; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.grow { flex: 1; min-width: 0; }
.num { font-variant-numeric: tabular-nums; }
.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;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ─── type ───────────────────────────────────────────── */
.h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.04; letter-spacing: -0.035em; }
.h2 { font-size: clamp(29px, 3.5vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-size: clamp(19px, 2vw, 23px); line-height: 1.3; letter-spacing: -0.015em; }
.h4 { font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; }
.lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.62; color: var(--muted); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-bright);
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}
.grad-text {
  background: linear-gradient(96deg, #a7f3d0 4%, #34d399 52%, #10b981 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }
.section-head .lead { max-width: 52ch; }

/* ─── glass surfaces ─────────────────────────────────── */
.glass {
  background:
    linear-gradient(178deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.022));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow: var(--shadow-card);
}
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.hoverable { transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease); }
.hoverable:hover { border-color: var(--border-strong); transform: translateY(-2px); background: var(--surface-hover); }

/* ─── buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  letter-spacing: -0.01em; white-space: nowrap;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease), transform 0.12s var(--ease), box-shadow 0.18s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  box-shadow: 0 10px 26px -12px rgba(16, 185, 129, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover { background: var(--accent-bright); box-shadow: 0 14px 34px -12px rgba(52, 211, 153, 0.6); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.045); border-color: var(--border-strong); color: var(--fg);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); }
.btn-ghost { background: transparent; color: var(--muted); min-height: 40px; padding: 0 12px; }
.btn-ghost:hover { color: var(--fg); background: rgba(255, 255, 255, 0.055); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 38px; height: 38px; padding: 0; min-height: 0;
  border-radius: 10px; display: inline-grid; place-items: center;
  color: var(--muted); background: transparent; border: 1px solid transparent;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.btn-icon:hover { background: rgba(255, 255, 255, 0.07); color: var(--fg); border-color: var(--border); }
.btn-icon svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--fg); font-size: 14.5px; font-weight: 500;
  border-bottom: 1px solid transparent; transition: gap 0.18s var(--ease), border-color 0.18s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { gap: 11px; border-color: var(--accent); }

/* ─── badges / chips ─────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04);
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.chip svg { width: 13px; height: 13px; }
.chip-accent { color: var(--accent-bright); background: var(--accent-soft); border-color: var(--accent-line); }
.chip-live { color: var(--accent-bright); background: var(--accent-soft); border-color: var(--accent-line); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.chip-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-bright); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; border: 1px solid transparent;
  white-space: nowrap;
}
.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-paid { color: #4ade9f; background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.24); }
.status-pending { color: #f7c76a; background: var(--amber-soft); border-color: rgba(245, 181, 69, 0.24); }
.status-review { color: #7bc0ef; background: var(--sky-soft); border-color: rgba(90, 169, 230, 0.24); }
.status-canceled { color: #f79a9a; background: var(--danger-soft); border-color: rgba(248, 113, 113, 0.22); }

/* ─── forms ──────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: -0.005em; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  color: var(--fg); font: inherit; font-size: 15px;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, 0.26); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}
.textarea { min-height: 96px; resize: vertical; }
.select {
  appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aabbe' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.select option { background: #0c1a2a; color: var(--fg); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 12px; color: var(--faint); line-height: 1.5; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.input-wrap .btn-icon { position: absolute; right: 5px; top: 5px; }
.input-affix {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04); padding-left: 14px;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.input-affix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14); }
.input-affix .input { border: 0; background: transparent; box-shadow: none; padding-left: 0; }
.input-affix .input:focus { box-shadow: none; }
.input-affix .prefix { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.field-error { font-size: 12px; color: #fca5a5; display: none; }
.field.invalid .input, .field.invalid .input-affix { border-color: rgba(248, 113, 113, 0.6); }
.field.invalid .field-error { display: block; }
.check.invalid span { color: #fca5a5; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; flex: none; margin-top: 1px; border-radius: 5px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.05); transition: all 0.15s; cursor: pointer; }
.check input:checked { background: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2304251b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.check a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }

.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.13); border: 1px solid var(--border); transition: background 0.2s var(--ease); pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #dbe6f2; transition: transform 0.2s var(--ease), background 0.2s; }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--accent-ink); }
.switch input:focus-visible + span { outline: 2px solid var(--accent-bright); outline-offset: 2px; }

/* ─── marketing nav ──────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), backdrop-filter 0.25s;
}
.nav.is-scrolled {
  background: rgba(7, 15, 25, 0.78);
  backdrop-filter: blur(20px) saturate(130%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #10b981, #047857);
  color: #04251b;
  box-shadow: 0 8px 22px -10px rgba(16, 185, 129, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em; }
.brand-sub { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.26em; color: var(--faint); text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 13px; border-radius: 9px; font-size: 14px; color: var(--muted);
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.nav-links a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.055); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ─── hero ───────────────────────────────────────────── */
.hero { position: relative; padding: 148px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.hero-copy .h1 { max-width: 15ch; }
.hero-copy .lead { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -9px; border: 2px solid #0a1524; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.hero-proof p { font-size: 12.5px; color: var(--faint); line-height: 1.45; max-width: 30ch; }
.hero-proof strong { color: var(--fg); font-weight: 500; }
.hero-glow {
  position: absolute; width: 620px; height: 620px; right: -140px; top: -120px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 62%);
  filter: blur(20px); pointer-events: none;
}

/* hero visual */
.hero-visual { display: flex; flex-direction: column; gap: 12px; }
.hv-card { position: relative; padding: 22px; border-radius: var(--radius-xl); }
.hv-card::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(150deg, rgba(52, 211, 153, 0.28), transparent 44%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.hv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hv-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; }
.hv-value { font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -0.035em; margin-top: 14px; line-height: 1; }
.hv-value span { font-size: 20px; color: var(--faint); font-weight: 500; }
.hv-delta { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--accent-bright); margin-top: 8px; font-family: var(--font-mono); }
.hv-delta svg { width: 13px; height: 13px; }
.hv-chart { margin-top: 16px; height: 96px; width: 100%; }
.hv-rows { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 6px; }
.hv-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; font-size: 12.5px; }
.hv-row + .hv-row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.hv-row .dot-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: var(--muted); flex: none; }
.hv-row .dot-ico svg { width: 13px; height: 13px; }
.hv-row .grow { flex: 1; min-width: 0; }
.hv-row .pname { color: var(--fg); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-row .pmeta { color: var(--faint); font-size: 11px; font-family: var(--font-mono); }
.hv-row .pval { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-bright); }
.hv-chipbar {
  display: flex; align-items: center; gap: 10px;
  align-self: flex-end; min-width: 300px; padding: 9px 8px 9px 12px;
  border-radius: 14px; background: rgba(12, 26, 42, 0.88);
  border: 1px solid var(--border-strong); backdrop-filter: blur(18px);
  box-shadow: var(--shadow-float);
}
.hv-chipbar .lbl { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.hv-chipbar .url { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg); margin-top: 2px; }
.hv-chipbar .btn-icon { width: 32px; height: 32px; border-radius: 9px; }
.hv-netbar {
  display: flex; align-items: center; gap: 12px;
  align-self: flex-start; margin-left: 18px; padding: 10px 14px;
  border-radius: 14px; background: rgba(12, 26, 42, 0.88);
  border: 1px solid var(--border-strong); backdrop-filter: blur(18px);
  box-shadow: var(--shadow-float);
}
.hv-netbar .avatars { display: flex; }
.hv-netbar .avatar { width: 26px; height: 26px; font-size: 9px; margin-left: -7px; border: 2px solid var(--bg-soft); }
.hv-netbar .avatar:first-child { margin-left: 0; }
.hv-netbar .txt { font-size: 11px; color: var(--muted); line-height: 1.3; }
.hv-netbar .txt strong { display: block; color: var(--fg); font-size: 12px; font-weight: 500; }

/* ─── trust strip ────────────────────────────────────── */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.015); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 11px; padding: 18px 20px; font-size: 13px; color: var(--muted); }
.trust-item + .trust-item { border-left: 1px solid var(--border); }
.trust-item svg { width: 17px; height: 17px; color: var(--accent-bright); flex: none; }
.trust-item strong { color: var(--fg); font-weight: 500; }

/* ─── steps ──────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; position: relative; }
.step { position: relative; padding: 26px 24px 24px; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.step-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--faint); }
.step-ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.055); border: 1px solid var(--border); color: var(--fg);
}
.step-ico svg { width: 19px; height: 19px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.step-line {
  position: absolute; top: 46px; left: 33.33%; right: 33.33%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}
.step-line::after {
  content: ''; position: absolute; left: 50%; top: -2px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent); transform: translateX(-50%);
}

/* ─── commissions ────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.tier { padding: 26px 24px; display: flex; flex-direction: column; gap: 0; position: relative; }
.tier-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tier-name { font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.tier-rate { display: flex; align-items: baseline; gap: 2px; margin: 16px 0 4px; }
.tier-rate b { font-family: var(--font-display); font-size: 54px; font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; }
.tier-rate span { font-family: var(--font-display); font-size: 22px; color: var(--muted); font-weight: 500; }
.tier-when { font-size: 13px; color: var(--muted); min-height: 40px; }
.tier-feats { display: flex; flex-direction: column; gap: 9px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.tier-feats li { display: flex; gap: 9px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.tier-feats svg { width: 15px; height: 15px; color: var(--accent-bright); flex: none; margin-top: 2px; }
.tier.is-featured { border-color: var(--accent-line); background: linear-gradient(178deg, rgba(16, 185, 129, 0.1), rgba(255, 255, 255, 0.02)); }
.tier.is-featured .tier-rate b { color: var(--accent-bright); }
.tier-badge { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 4px 8px; border-radius: 999px; }
.tier-elite .tier-rate b { color: var(--fg); }
.commission-note {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 20px; padding: 18px 22px; border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong); background: rgba(255, 255, 255, 0.02);
}
.commission-note p { font-size: 13.5px; color: var(--muted); }

/* ─── network map ────────────────────────────────────── */
.net-panel { margin-top: 44px; padding: 26px; overflow: hidden; }
.net-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.net-legend { display: flex; align-items: center; gap: 16px; font-size: 11.5px; color: var(--faint); flex-wrap: wrap; }
.net-legend span { display: inline-flex; align-items: center; gap: 7px; }
.net-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.net-legend i.me { background: var(--accent); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16); }
.net-legend i.up { background: var(--sky); }
.net-map { position: relative; width: 100%; aspect-ratio: 1000 / 400; margin-top: 10px; }
.net-map svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.net-ring { transform-origin: 520px 184px; animation: ringPulse 4.5s ease-in-out infinite; }
@keyframes ringPulse { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.4; } }
.net-node { position: absolute; transform: translate(-50%, -50%); width: 108px; text-align: center; z-index: 2; }
.net-avatar {
  width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-strong); color: var(--muted);
  box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.9);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.net-avatar svg { width: 24px; height: 24px; }
.net-node:hover .net-avatar { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3); }
.net-name { display: block; font-size: 12.5px; font-weight: 500; color: var(--fg); }
.net-role { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }
.net-node.is-me .net-avatar {
  width: 72px; height: 72px; color: var(--accent-ink);
  background: linear-gradient(160deg, #34d399, #0b8f66);
  border-color: rgba(110, 231, 183, 0.8);
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1), 0 0 0 1px rgba(52, 211, 153, 0.4), 0 18px 40px -18px rgba(16, 185, 129, 0.7);
}
.net-node.is-me .net-name { font-size: 13.5px; }
.net-node.is-up .net-avatar { color: #a8d8f5; border-color: rgba(90, 169, 230, 0.45); }
.net-node.is-ghost .net-avatar { border-style: dashed; color: var(--faint); background: transparent; }
.net-tag {
  position: absolute; top: -9px; right: -22px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em;
  background: var(--accent); color: var(--accent-ink); padding: 2px 7px; border-radius: 999px; font-weight: 500;
}
.net-tag.up { background: var(--sky); color: #052434; }
.net-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; border-top: 1px solid var(--border); padding-top: 20px; }
.net-foot div { padding-inline: 4px; }
.net-foot dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.net-foot dd { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.net-foot strong { color: var(--fg); font-weight: 500; }
.net-stack { display: none; }

/* ─── products ───────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.product { padding: 24px; display: flex; flex-direction: column; gap: 0; min-height: 100%; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-mark {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--fg);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
}
.product:nth-child(1) .product-mark { color: var(--accent-bright); background: var(--accent-soft); border-color: rgba(16, 185, 129, 0.28); }
.product h3 { font-size: 17px; margin-top: 20px; }
.product .cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 5px; }
.product p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-top: 14px; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.prod-com { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-bright); }
.prod-com span { color: var(--faint); }
.product .link-arrow { font-size: 13px; color: var(--muted); }
.product .link-arrow:hover { color: var(--fg); }

/* ─── signup section ─────────────────────────────────── */
.signup-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 20px; align-items: stretch; margin-top: 12px; }
.signup-side { padding: 34px; display: flex; flex-direction: column; gap: 26px; justify-content: space-between; position: relative; overflow: hidden; }
.signup-side::before {
  content: ''; position: absolute; width: 340px; height: 340px; right: -120px; bottom: -140px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 65%); pointer-events: none;
}
.signup-side .h2 { max-width: 16ch; font-size: clamp(27px, 2.6vw, 34px); }
.signup-list { display: flex; flex-direction: column; gap: 14px; position: relative; }
.signup-list li { display: flex; gap: 11px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.signup-list svg { width: 18px; height: 18px; color: var(--accent-bright); flex: none; margin-top: 1px; }
.signup-list strong { color: var(--fg); font-weight: 500; }
.pay-note { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); position: relative; }
.pay-note svg { width: 20px; height: 20px; color: var(--accent-bright); flex: none; }
.pay-note p { font-size: 12px; color: var(--muted); line-height: 1.45; }
.pay-note strong { display: block; color: var(--fg); font-size: 12.5px; font-weight: 500; }
.signup-form { padding: 34px; }
.signup-form form { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.form-head h3 { font-size: 20px; }
.form-head p { font-size: 13.5px; color: var(--faint); margin-top: 5px; }
.form-foot { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--faint); text-align: center; }
.form-foot a { color: var(--accent-bright); }
.form-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ─── footer ─────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding-top: 64px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin-top: 16px; max-width: 30ch; }
.footer h4 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--muted); padding-block: 6px; transition: color 0.16s var(--ease); }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 52px; padding-block: 24px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--faint);
}
.footer-bottom .row { display: flex; gap: 20px; flex-wrap: wrap; }

/* ─── avatars ────────────────────────────────────────── */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600;
  color: #d8f5e9; background: linear-gradient(150deg, rgba(16, 185, 129, 0.35), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(16, 185, 129, 0.26); letter-spacing: 0.01em;
}
.avatar.sky { color: #d6ecfb; background: linear-gradient(150deg, rgba(90, 169, 230, 0.32), rgba(90, 169, 230, 0.1)); border-color: rgba(90, 169, 230, 0.28); }
.avatar.slate { color: #e2e8f0; background: linear-gradient(150deg, rgba(148, 163, 184, 0.28), rgba(148, 163, 184, 0.08)); border-color: rgba(148, 163, 184, 0.22); }
.avatar.lg { width: 42px; height: 42px; font-size: 13px; }
.avatar.sm { width: 26px; height: 26px; font-size: 9.5px; }

/* =========================================================
   AUTH
   ========================================================= */
.auth { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 100vh; }
.auth-brand {
  position: relative; padding: 44px 52px; display: flex; flex-direction: column;
  justify-content: space-between; border-right: 1px solid var(--border); overflow: hidden;
}
.auth-brand::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 460px at 20% 20%, rgba(16, 185, 129, 0.16), transparent 60%),
    radial-gradient(420px 420px at 90% 90%, rgba(52, 211, 153, 0.08), transparent 60%);
  pointer-events: none;
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-copy { max-width: 440px; display: flex; flex-direction: column; gap: 18px; }
.auth-copy .h2 { font-size: clamp(28px, 3vw, 40px); }
.auth-copy .lead { font-size: 15.5px; max-width: 44ch; }
.auth-metrics { display: flex; gap: 34px; margin-top: 8px; }
.auth-metrics div { border-top: 1px solid var(--border-strong); padding-top: 14px; min-width: 108px; }
.auth-metrics b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.auth-metrics span { display: block; font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.auth-art { position: relative; height: 240px; margin-top: 12px; }
.auth-art svg { width: 100%; height: 100%; overflow: visible; }
.auth-side { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.auth-card { width: 100%; max-width: 408px; }
.auth-card .brand { margin-bottom: 38px; }
.auth-card h1 { font-size: 27px; letter-spacing: -0.025em; }
.auth-card .sub { font-size: 14px; color: var(--muted); margin-top: 7px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.auth-form .row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-form .mini-link { font-size: 12.5px; color: var(--accent-bright); }
.auth-form .mini-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-sep { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-mono); margin: 4px 0; }
.auth-sep::before, .auth-sep::after { content: ''; height: 1px; flex: 1; background: var(--border); }
.auth-note { margin-top: 22px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px dashed var(--border-strong); font-size: 11.5px; color: var(--faint); line-height: 1.5; }
.auth-back { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--faint); margin-bottom: 26px; }
.auth-back:hover { color: var(--fg); }
.auth-back svg { width: 15px; height: 15px; }
.steps-mini { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); font-family: var(--font-mono); letter-spacing: 0.06em; }
.steps-mini b { color: var(--accent-bright); font-weight: 500; }
.steps-mini .bar { width: 26px; height: 2px; border-radius: 2px; background: var(--border-strong); }
.steps-mini .bar.on { background: var(--accent); }

/* =========================================================
   APP SHELL
   ========================================================= */
.app { display: grid; grid-template-columns: 262px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 50;
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px 14px 16px;
  background: rgba(8, 17, 29, 0.72);
  backdrop-filter: blur(24px) saturate(130%);
  border-right: 1px solid var(--border);
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 18px; }
.sidebar .brand-name { font-size: 14.5px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 7px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px;
  border-radius: 10px; font-size: 13.5px; color: var(--muted);
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.nav-item svg { width: 18px; height: 18px; flex: none; opacity: 0.85; }
.nav-item:hover { background: rgba(255, 255, 255, 0.055); color: var(--fg); }
.nav-item.is-active {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0.05));
  color: #d9fbee; box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.22);
}
.nav-item.is-active svg { color: var(--accent-bright); opacity: 1; }
.nav-item .count {
  margin-left: auto; font-family: var(--font-mono); font-size: 10.5px;
  background: rgba(255, 255, 255, 0.08); color: var(--fg);
  padding: 2px 7px; border-radius: 999px;
}
.nav-item.is-active .count { background: rgba(16, 185, 129, 0.2); color: #c9fbe9; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side-plan { padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: linear-gradient(170deg, rgba(16, 185, 129, 0.1), rgba(255, 255, 255, 0.02)); }
.side-plan .p-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-plan .p-name { font-size: 12px; font-weight: 500; color: var(--fg); }
.side-plan .p-rate { font-family: var(--font-mono); font-size: 11px; color: var(--accent-bright); }
.side-plan p { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.side-plan .bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); margin-top: 10px; overflow: hidden; }
.side-plan .bar i { display: block; height: 100%; width: 64%; border-radius: 99px; background: var(--accent); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; transition: background 0.16s, border-color 0.16s; }
.side-user:hover { background: rgba(255, 255, 255, 0.045); border-color: var(--border); }
.side-user .grow { min-width: 0; }
.side-user b { display: block; font-size: 12.5px; font-weight: 500; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user span { display: block; font-size: 10.5px; color: var(--faint); font-family: var(--font-mono); }
.side-user svg { width: 15px; height: 15px; color: var(--faint); margin-left: auto; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  height: 66px; padding: 0 clamp(18px, 2.6vw, 34px);
  background: rgba(7, 15, 25, 0.72);
  backdrop-filter: blur(20px) saturate(130%);
  border-bottom: 1px solid var(--border);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); min-width: 0; }
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { opacity: 0.5; }
.crumbs .current { color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar-search { position: relative; width: 220px; }
.topbar-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--faint); }
.topbar-search input {
  width: 100%; height: 38px; padding: 0 12px 0 34px; font-size: 13px;
  border-radius: 10px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04);
  color: var(--fg); font-family: var(--font-body);
}
.topbar-search input::placeholder { color: var(--faint); }
.topbar-search input:focus { outline: none; border-color: var(--accent-line); background: rgba(16, 185, 129, 0.05); }
.bell { position: relative; }
.bell::after { content: ''; position: absolute; top: 9px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); border: 1.5px solid #0a1524; }
.menu-btn { display: none; }
.sidebar-overlay { display: none; }

.page { padding: clamp(22px, 2.6vw, 32px) clamp(18px, 2.6vw, 34px) 48px; display: flex; flex-direction: column; gap: 22px; max-width: 1440px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.028em; }
.page-head .sub { font-size: 13.5px; color: var(--faint); margin-top: 6px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ─── KPI cards ──────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpis.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .kpis.cols-3 { grid-template-columns: 1fr; } }
.kpi { padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 0; min-width: 0; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi-label svg { width: 15px; height: 15px; color: var(--faint); }
.kpi-value { font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: -0.035em; margin-top: 12px; line-height: 1.05; }
.kpi-value small { font-size: 14px; color: var(--faint); font-weight: 500; margin-right: 3px; }
.kpi-delta { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 11px; margin-top: 7px; min-height: 17px; }
.kpi-delta svg { width: 12px; height: 12px; }
.kpi-delta.up { color: #4ade9f; }
.kpi-delta.down { color: #f7a0a0; }
.kpi-delta .vs { color: var(--faint); font-family: var(--font-body); }
.kpi-spark { height: 44px; margin-top: 6px; width: 100%; }

/* ─── chart card ─────────────────────────────────────── */
.card { padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.card-title { font-size: 14.5px; font-weight: 500; font-family: var(--font-display); letter-spacing: -0.01em; }
.card-sub { font-size: 12px; color: var(--faint); margin-top: 4px; }
.card-value { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.03em; margin-top: 10px; }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); }
.seg button {
  border: 0; background: transparent; color: var(--faint); font-size: 11.5px; font-family: var(--font-mono);
  padding: 5px 10px; border-radius: 6px; transition: background 0.15s, color 0.15s;
}
.seg button:hover { color: var(--fg); }
.seg button.is-on { background: rgba(255, 255, 255, 0.1); color: var(--fg); }
.chart { position: relative; margin-top: 14px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-tip {
  position: absolute; pointer-events: none; opacity: 0; transform: translate(-50%, -118%);
  background: #0b1a29; border: 1px solid var(--border-strong); border-radius: 9px;
  padding: 7px 10px; font-size: 11px; color: var(--muted); white-space: nowrap;
  box-shadow: var(--shadow-float); transition: opacity 0.12s; z-index: 3;
}
.chart-tip b { display: block; color: var(--fg); font-family: var(--font-mono); font-size: 12px; margin-top: 2px; }
.chart-tip.on { opacity: 1; }
.legend-inline { display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--faint); flex-wrap: wrap; }
.legend-inline span { display: inline-flex; align-items: center; gap: 6px; }
.legend-inline i { width: 8px; height: 8px; border-radius: 2px; }
.chart-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 11.5px; color: var(--faint); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dash-grid.aside { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 1180px) { .dash-grid.aside { grid-template-columns: minmax(0, 1fr); } }
.dash-row-2 { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 16px; align-items: start; }

/* link card */
.link-card .url-box {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 6px 6px 6px 12px; border-radius: 11px;
  border: 1px solid var(--border-strong); background: rgba(0, 0, 0, 0.22);
}
.link-card .url-box svg { width: 14px; height: 14px; color: var(--faint); flex: none; }
.link-card .url-box code { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.link-card .qr-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.qr {
  width: 66px; height: 66px; border-radius: 10px; flex: none; padding: 5px;
  background: #eaf4ef; display: grid; place-items: center;
}
.qr svg { width: 100%; height: 100%; }
.link-meta { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.link-meta b { color: var(--fg); font-weight: 500; }
.link-card .card-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--faint); }

/* mini list */
.mini-list { display: flex; flex-direction: column; margin-top: 6px; }
.mini-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; }
.mini-row + .mini-row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.mini-row .grow { flex: 1; min-width: 0; }
.mini-row .t { display: block; font-size: 12.5px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row .s { display: block; font-size: 10.5px; color: var(--faint); font-family: var(--font-mono); margin-top: 2px; }
.mini-row .v { font-family: var(--font-mono); font-size: 12px; color: var(--fg); }
.mini-row .avatar { width: 30px; height: 30px; font-size: 10px; }
.bar-list { display: flex; flex-direction: column; gap: 13px; margin-top: 16px; }
.bar-item .bl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.bar-item .bl-top b { color: var(--fg); font-weight: 500; font-family: var(--font-mono); font-size: 11.5px; }
.bar-item .track { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar-item .track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright)); }

/* ─── tables ─────────────────────────────────────────── */
.tbl-wrap { width: 100%; overflow-x: auto; margin-top: 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.tbl th {
  padding: 10px 14px; text-align: left; white-space: nowrap;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
  border-bottom: 1px solid var(--border);
}
.tbl td { padding: 13px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; color: var(--muted); }
.tbl tbody tr { transition: background 0.14s var(--ease); }
.tbl tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
.tbl td:first-child, .tbl th:first-child { padding-left: 4px; }
.tbl td:last-child, .tbl th:last-child { padding-right: 4px; }
.tbl .r { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tbl .strong { color: var(--fg); font-weight: 500; }
.tbl .cell-main { color: var(--fg); font-size: 13px; }
.tbl .cell-sub { font-size: 11px; color: var(--faint); font-family: var(--font-mono); margin-top: 2px; }
.tbl .prod-cell { display: flex; align-items: center; gap: 10px; }
.tbl .prod-dot { width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); display: grid; place-items: center; font-family: var(--font-display); font-size: 10.5px; color: var(--fg); flex: none; }
.tbl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--faint); }
.pager { display: flex; align-items: center; gap: 4px; }
.pager button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 11.5px; font-family: var(--font-mono); }
.pager button:hover { background: rgba(255, 255, 255, 0.06); color: var(--fg); }
.pager button.is-on { background: rgba(255, 255, 255, 0.1); color: var(--fg); border-color: var(--border-strong); }

/* tabs */
.tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--border); margin-top: 4px; overflow-x: auto; }
.tab {
  padding: 9px 13px 11px; font-size: 13px; color: var(--faint);
  border: 0; background: transparent; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap; transition: color 0.15s, border-color 0.15s;
  display: inline-flex; align-items: center; gap: 7px;
}
.tab:hover { color: var(--fg); }
.tab.is-on { color: var(--fg); border-bottom-color: var(--accent); }
.tab .n { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); background: rgba(255, 255, 255, 0.07); padding: 1px 6px; border-radius: 999px; }
.tab.is-on .n { color: var(--accent-bright); background: rgba(16, 185, 129, 0.14); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .search { position: relative; flex: 1; min-width: 180px; max-width: 300px; }
.toolbar .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--faint); }
.toolbar .search input { padding-left: 34px; min-height: 38px; font-size: 13px; }
.toolbar .select { min-height: 38px; font-size: 13px; width: auto; min-width: 150px; }

/* ─── tree ───────────────────────────────────────────── */
.tree-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.tree-card { padding: 0; overflow: hidden; }
.tree-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.tree-tools { display: flex; align-items: center; gap: 6px; }
.tree-scroll { overflow: auto; padding: 22px 20px 26px; background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px); background-size: 24px 24px; }
.tree-canvas { position: relative; width: 960px; height: 700px; margin-inline: auto; }
.tree-canvas svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tnode {
  position: absolute; width: 168px; transform: translate(-50%, 0);
  padding: 12px; border-radius: 14px; text-align: left; cursor: pointer;
  background: rgba(12, 26, 42, 0.92); border: 1px solid var(--border);
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, 0.95);
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
  z-index: 2;
}
.tnode:hover { border-color: var(--border-strong); transform: translate(-50%, -2px); }
.tnode.is-selected { border-color: var(--accent-line); box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3), 0 18px 40px -22px rgba(16, 185, 129, 0.6); }
.tnode-row { display: flex; align-items: center; gap: 9px; }
.tnode .avatar { width: 32px; height: 32px; font-size: 10.5px; }
.tnode .nm { display: block; font-size: 12.5px; font-weight: 500; color: var(--fg); line-height: 1.2; }
.tnode .rl { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }
.tnode-bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.tnode-bot .vol { font-family: var(--font-mono); font-size: 11px; color: var(--fg); }
.tnode-bot .dot { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--faint); font-family: var(--font-mono); }
.tnode-bot .dot i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.tnode-bot .dot.off i { background: var(--faint); }
.tnode.is-root { background: linear-gradient(165deg, rgba(16, 185, 129, 0.2), rgba(12, 26, 42, 0.95)); border-color: rgba(16, 185, 129, 0.4); }
.tnode.is-root .avatar { background: var(--accent); color: var(--accent-ink); border-color: rgba(110, 231, 183, 0.5); }
.tnode.is-ghost { border-style: dashed; background: rgba(255, 255, 255, 0.02); }
.tnode.is-ghost .avatar { background: transparent; border-style: dashed; color: var(--faint); }
.tnode.is-ghost .nm { color: var(--muted); }
.tree-hint { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--faint); }
.tree-hint svg { width: 14px; height: 14px; }

.node-panel { display: grid; grid-template-columns: 264px minmax(0, 1fr) 156px; gap: 26px; align-items: center; padding: 20px 22px; }
.node-panel .np-head { display: flex; align-items: center; gap: 12px; }
.node-panel .avatar.lg { width: 48px; height: 48px; font-size: 14px; }
.node-panel .np-name { font-size: 15px; font-weight: 500; font-family: var(--font-display); }
.node-panel .np-role { font-family: var(--font-mono); font-size: 9.5px; color: var(--faint); letter-spacing: 0.09em; text-transform: uppercase; margin-top: 3px; }
.node-panel .np-head .status { margin-top: 7px; }
.np-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--border); }
.np-stats div { background: var(--bg-soft); padding: 10px 13px; }
.np-stats dt { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.np-stats dd { margin: 4px 0 0; font-family: var(--font-mono); font-size: 13.5px; color: var(--fg); white-space: nowrap; }
.np-actions { display: flex; flex-direction: column; gap: 8px; }
.np-actions .btn { width: 100%; }
.level-legend { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; color: var(--faint); }
.level-legend span { display: inline-flex; align-items: center; gap: 8px; }
.level-legend i { width: 8px; height: 8px; border-radius: 3px; }

/* ─── links page ─────────────────────────────────────── */
.gen-panel { padding: 20px; }
.gen-grid { display: grid; grid-template-columns: 1.1fr 1.3fr auto; gap: 12px; align-items: end; margin-top: 16px; }
.gen-preview { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 11px; border: 1px dashed var(--border-strong); background: rgba(0, 0, 0, 0.18); font-family: var(--font-mono); font-size: 12px; color: var(--muted); overflow: hidden; }
.gen-preview svg { width: 14px; height: 14px; color: var(--faint); flex: none; }
.gen-preview code { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gen-preview .tag-slug { color: var(--accent-bright); }
.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.link-item { padding: 18px; display: flex; flex-direction: column; gap: 0; }
.link-item .li-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.link-item .li-name { font-size: 13.5px; font-weight: 500; color: var(--fg); }
.link-item .li-prod { font-family: var(--font-mono); font-size: 10px; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.link-item .li-url { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 10px; border-radius: 9px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border); }
.link-item .li-url code { font-family: var(--font-mono); font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.link-item .li-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.link-item .li-stats dt { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.link-item .li-stats dd { margin: 3px 0 0; font-family: var(--font-mono); font-size: 13px; color: var(--fg); }
.link-item .li-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--faint); }
.link-item .li-foot .row { display: flex; align-items: center; gap: 8px; }

/* ─── settings ───────────────────────────────────────── */
.settings-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 3px; position: sticky; top: 90px; }
.settings-nav button {
  text-align: left; padding: 9px 12px; border-radius: 9px; border: 0; background: transparent;
  color: var(--muted); font-size: 13px; transition: background 0.15s, color 0.15s;
}
.settings-nav button:hover { background: rgba(255, 255, 255, 0.05); color: var(--fg); }
.settings-nav button.is-on { background: rgba(16, 185, 129, 0.12); color: #d9fbee; }
.settings-body { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.setting-row + .setting-row { border-top: 1px solid var(--border); }
.setting-row .t { font-size: 13.5px; color: var(--fg); }
.setting-row .s { font-size: 12px; color: var(--faint); margin-top: 3px; max-width: 52ch; line-height: 1.5; }
.mp-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid rgba(16, 185, 129, 0.26); background: rgba(16, 185, 129, 0.07); }
.mp-mark { width: 42px; height: 42px; border-radius: 11px; background: #eaf4ef; color: #0b8f66; display: grid; place-items: center; flex: none; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.mp-card .grow { flex: 1; min-width: 0; }
.mp-card b { display: block; font-size: 13.5px; font-weight: 500; }
.mp-card span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ─── toast ──────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 120;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 12px;
  background: rgba(13, 31, 26, 0.96); border: 1px solid rgba(16, 185, 129, 0.35);
  color: #d9fbee; font-size: 13px; box-shadow: var(--shadow-float);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.toast svg { width: 16px; height: 16px; color: var(--accent-bright); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ─── responsive ─────────────────────────────────────── */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :last-child { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .node-panel { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .np-actions { flex-direction: row; }
  .np-actions .btn { width: auto; flex: 1; }
}

@media (max-width: 1024px) {
  .hero { padding-top: 124px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 640px; }
  .hero-copy .h1 { max-width: 18ch; }
  .hero-visual { max-width: 560px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid, .dash-row-2 { grid-template-columns: minmax(0, 1fr); }
  .signup-wrap { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav-links.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; left: 16px; right: 16px; top: 74px;
    padding: 10px; border-radius: 16px;
    background: rgba(10, 21, 36, 0.98); border: 1px solid var(--border);
    box-shadow: var(--shadow-float); backdrop-filter: blur(20px);
  }
  .nav-links.is-open a { padding: 12px 14px; font-size: 14.5px; }
  .nav-links.is-open .nav-mobile-actions { display: flex; flex-direction: column; gap: 8px; padding: 8px 4px 4px; border-top: 1px solid var(--border); margin-top: 4px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%);
    transition: transform 0.26s var(--ease); background: rgba(8, 17, 29, 0.98);
    box-shadow: var(--shadow-float);
  }
  .sidebar.is-open { transform: none; }
  .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(3, 8, 14, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.26s; z-index: 45; }
  .sidebar-overlay.on { opacity: 1; pointer-events: auto; }
  .menu-btn { display: inline-grid; }
  .topbar-search { display: none; }
  .gen-grid { grid-template-columns: 1fr 1fr; }
  .gen-grid .btn { grid-column: 1 / -1; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .link-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-nav { flex-direction: row; overflow-x: auto; position: static; padding-bottom: 2px; }
  .settings-nav button { white-space: nowrap; }
}

@media (max-width: 860px) {
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .steps, .tiers { grid-template-columns: 1fr; }
  .step-line { display: none; }
  .commission-note { flex-direction: column; align-items: flex-start; gap: 12px; }
  .net-map { display: none; }
  .net-stack { display: flex; flex-direction: column; gap: 0; padding: 8px 0 0; }
  .net-stack-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; position: relative; }
  .net-stack-row + .net-stack-row { border-top: 1px solid var(--border); }
  .net-stack-row .net-avatar { width: 44px; height: 44px; margin: 0; }
  .net-stack-row .net-avatar svg { width: 19px; height: 19px; }
  .net-stack-row .is-me .net-avatar { width: 44px; height: 44px; }
  .net-stack-row .txt { flex: 1; }
  .net-stack-row .lvl { font-family: var(--font-mono); font-size: 10px; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }
  .net-foot { grid-template-columns: 1fr; gap: 12px; }
  .net-panel { padding: 20px; }
  .products-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 8px; }
  .hv-chipbar { align-self: stretch; min-width: 0; }
  .hv-chipbar .url { font-size: 10.5px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > :last-child { display: block; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .gen-grid { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; }
  .node-panel { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .np-actions { flex-direction: row; }
  .np-actions .btn { width: auto; flex: 1; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .hero { padding-top: 108px; padding-bottom: 56px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-proof { margin-top: 6px; }
  .kpis { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--border); }
  .trust-item:nth-child(3) { border-left: 0; }
  .signup-side, .signup-form { padding: 24px; }
  .tier-rate b { font-size: 46px; }
  .net-stack-row .lvl { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .auth-side { padding: 30px 20px; }
  .page { padding-bottom: 32px; }
  .kpi { padding: 16px 16px 6px; }
  .card { padding: 16px; }
  .np-stats { grid-template-columns: 1fr 1fr; }
  .topbar { height: 60px; }
  .toast { left: 16px; right: 16px; transform: translateY(20px); justify-content: center; }
  .toast.on { transform: none; }
}

@media (max-width: 760px) {
  .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}


/* =========================================================
   REFINAMENTO v2 — 18/11/2026
   Camada aditiva: mesma paleta (só os tokens acima e as mesmas
   rgba de esmeralda/branco), mesmas famílias (Sora · Inter ·
   JetBrains Mono). Ajusta respiro, alinhamento, estados e
   acabamento. Backup da v1: public/gestor/backups/opencode-v1-2026-11-18/
   Para desfazer, basta remover este bloco.
   ========================================================= */

/* ── atmosfera: menos brilho difuso, mais profundidade ── */
body {
  background-image:
    radial-gradient(1100px 640px at 8% -18%, rgba(16, 185, 129, 0.085), transparent 64%),
    radial-gradient(1200px 760px at 50% 122%, rgba(16, 185, 129, 0.04), transparent 64%);
}
.hero-glow { opacity: 0.55; }
::selection { background: rgba(16, 185, 129, 0.28); }
html { scrollbar-color: rgba(255, 255, 255, 0.17) transparent; scrollbar-width: thin; }

/* ── tipografia: mesmo tipo, acabamento mais preciso ── */
.grad-text { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent-bright); }
.h1, .h2, .h3, .kpi-value, .card-value, .tier-rate b, .auth-metrics b { font-feature-settings: 'ss01', 'tnum'; }
.lead { color: var(--muted); }
.eyebrow { gap: 10px; letter-spacing: 0.18em; }
.eyebrow::before { width: 14px; height: 1px; border-radius: 0; background: var(--accent-bright); box-shadow: none; }
.num, .mono, .kpi-value, .tbl .r { font-variant-numeric: tabular-nums; }

/* ── ritmo e respiro ── */
.section { padding-block: clamp(80px, 9vw, 128px); }
.section-head { gap: 18px; }
.hero-copy { gap: 24px; }
.hero-actions { gap: 12px; margin-top: 10px; }
.page { gap: 28px; padding-bottom: 64px; }
.page-head { padding-bottom: 4px; }
.page-head .sub { margin-top: 8px; }
.kpis { gap: 18px; }
.kpi { padding: 20px 20px 10px; }
.kpi-value { margin-top: 14px; }
.card { padding: 24px; }
.card-head { margin-bottom: 8px; }
.gen-panel { padding: 24px; }
.link-item { padding: 20px; }
.grid-2, .grid-3 { gap: 28px; }
.tiers { gap: 20px; }

/* ── superfícies: borda nítida, sombra contida ── */
.glass {
  backdrop-filter: blur(14px) saturate(115%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 48px -36px rgba(0, 0, 0, 0.9);
}
.hoverable { transition: border-color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease); }
.hoverable:hover { transform: none; border-color: var(--border-strong); background: var(--surface-hover); }

/* ── foco: anel consistente que respeita o raio de cada peça ── */
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.btn:focus-visible, .input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-radius: var(--radius); }
.btn-sm:focus-visible, .btn-icon:focus-visible, .nav-item:focus-visible, .topbar-search input:focus-visible { border-radius: 10px; }
.chip:focus-visible, .status:focus-visible { border-radius: 999px; }
.tab:focus-visible, .seg button:focus-visible { border-radius: 8px; outline-offset: 1px; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible, .topbar-search input:focus-visible { outline: none; }

/* ── botões ── */
.btn { letter-spacing: -0.005em; }
.btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 1px 2px rgba(0, 0, 0, 0.4); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 22px -14px rgba(52, 211, 153, 0.7); }
.btn-primary:active { background: var(--accent-deep); }
.btn-secondary:active, .btn-ghost:active { background: rgba(255, 255, 255, 0.04); }
.btn svg { transition: transform 0.18s var(--ease); }
.btn:hover svg:last-child:not(:first-child), .link-arrow:hover svg { transform: translateX(2px); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; box-shadow: none; }
.btn.is-loading { pointer-events: none; color: transparent; position: relative; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--accent-ink) transparent var(--accent-ink) var(--accent-ink);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-icon:active { background: rgba(255, 255, 255, 0.04); }

/* ── formulários ── */
.label { color: var(--fg); opacity: 0.86; }
.input, .select, .textarea { background-color: rgba(255, 255, 255, 0.03); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: 0.5; cursor: not-allowed; }
.field.invalid .input:focus { box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.14); }
.check input:hover { border-color: rgba(255, 255, 255, 0.3); }
.check input:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; border-radius: 5px; }
.switch:hover span { border-color: var(--border-strong); }

/* ── navegação do app ── */
.side-nav { gap: 2px; }
.nav-item { transition: background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.nav-item.is-active { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.2); }
.nav-item:active { background: rgba(255, 255, 255, 0.04); }
.topbar-search input { transition: border-color 0.16s var(--ease), background 0.16s var(--ease), box-shadow 0.16s var(--ease); }
.topbar-search input:hover { border-color: var(--border-strong); }
.topbar-search input:focus { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12); }
.nav-links a:active { background: rgba(255, 255, 255, 0.04); }

/* ── ícones: caixas ópticas consistentes ── */
.kpi-label { gap: 9px; }
.kpi-label svg {
  width: 26px; height: 26px; padding: 5px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--border); color: var(--muted);
}
.nav-item svg { width: 17px; height: 17px; }
.chip svg, .status svg { flex: none; }

/* ── tabelas, abas e segmentos ── */
.tbl th { padding-block: 12px; }
.tbl td { padding-block: 14px; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tab { position: relative; transition: color 0.18s var(--ease), border-color 0.18s var(--ease); }
.seg button { transition: background 0.18s var(--ease), color 0.18s var(--ease); }
.pager button { transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease); }

/* ── avisos ── */
.toast { border-radius: var(--radius); gap: 11px; padding: 12px 18px; }

/* ── símbolo da marca: globo maior dentro do bloco ── */
.brand-mark svg { width: 25px; height: 25px; }

/* ── correção: link longo estourava a largura no celular ── */
.link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-item, .link-item .li-top > *, .gen-preview code { min-width: 0; }
.link-item .li-top > :first-child { overflow: hidden; }
.link-item .li-name, .link-item .li-prod { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1024px) { .link-grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 560px) {
  .card, .gen-panel { padding: 20px; }
  .page { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn svg, .hoverable, .tab, .nav-item { transition: none; }
  .btn.is-loading::after { animation-duration: 1.6s; }
}

/* ── marca e globo 3D (Terra azul + rede dourada) ── */
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: none; box-shadow: none; }
.brand-mark svg { width: 38px; height: 38px; }
.globe { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.globe canvas { display: block; max-width: 100%; }
.rede-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: center; }
.rede-globe { max-width: 420px; justify-self: end; }
.auth-art { height: auto; margin-top: 4px; }
.auth-art .globe { max-width: 300px; }
@media (max-width: 860px) {
  .rede-intro { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rede-globe { justify-self: center; max-width: 320px; }
}
.rede-hint { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--faint); }
.rede-hint svg { width: 18px; height: 18px; color: var(--accent-bright); }

/* ── blocos compartilhados com o showroom: divisão do Pix e aviso ── */
.splitbar { display: flex; height: 38px; border-radius: 11px; overflow: hidden; border: 1px solid var(--border); }
.splitbar span { display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; color: #04251b; font-weight: 600; white-space: nowrap; overflow: hidden; }
.splitbar .s-me { background: #10b981; }
.splitbar .s-pai { background: #6ee7b7; }
.splitbar .s-avo { background: #D4AF37; }
.splitbar .s-gr { background: #1E3A8A; color: #dbe6f2; }
.split-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.split-legend div { font-size: 12px; color: var(--muted); }
.split-legend b { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--fg); font-weight: 500; margin-top: 2px; }
.split-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.note-legal { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--faint); line-height: 1.55; padding: 12px 14px; border-radius: var(--radius); border: 1px dashed var(--border-strong); background: rgba(255,255,255,0.02); }
.note-legal svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--accent-bright); }
.note-legal strong { color: var(--muted); font-weight: 500; }

/* ── como funciona (site público e showroom) ── */
.how-steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.how-steps li { position: relative; padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.how-steps li > svg { width: 24px; height: 24px; color: var(--accent-bright); }
.how-steps b { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin-top: 6px; }
.how-steps span:not(.how-n) { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.how-n { position: absolute; top: 20px; right: 22px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 18px; margin-top: 18px; }
.how-split, .how-time { padding: 24px; }
.paytime { margin-top: 18px; display: grid; gap: 0; }
.paytime div { display: grid; grid-template-columns: 82px minmax(0, 1fr); column-gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.paytime div:last-child { border-bottom: 0; }
.paytime .t { grid-row: span 2; font-family: var(--font-mono); font-size: 12px; color: var(--faint); padding-top: 2px; }
.paytime b { font-size: 14px; font-weight: 500; }
.paytime span:not(.t) { font-size: 12.5px; color: var(--muted); }
.paytime .on .t, .paytime .on b { color: var(--accent-bright); }
.how-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.how-foot .note-legal { flex: 1; min-width: 280px; }
@media (max-width: 960px) {
  .how-steps, .how-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── cadastro: login social e força da senha ── */
.social { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.social[hidden] { display: none; }
.social-t { font-size: 13px; color: var(--muted); }
.social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.social-btn { justify-content: flex-start; min-height: 42px; font-size: 13.5px; }
.social-btn[hidden] { display: none; }
.social-btn:first-child { grid-column: 1 / -1; justify-content: center; }
.mono-ic { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; background: rgba(255,255,255,0.08); color: var(--fg); text-transform: none; }
.strength { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.strength b { display: block; height: 4px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--danger); transition: width .25s var(--ease), background .25s; }
.strength[data-level="1"] i { background: var(--amber); }
.strength[data-level="2"] i { background: var(--accent); }
.strength span { font-size: 11.5px; color: var(--faint); }
.auth-side { min-width: 0; } .social .auth-sep { white-space: nowrap; }
.globe-tip { position: absolute; transform: translate(-50%, -100%); padding: 5px 9px; border-radius: 8px; background: var(--surface-solid); border: 1px solid var(--border-strong); font-size: 11.5px; color: var(--fg); white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-float); z-index: 2; }
.globe-tip[hidden] { display: none; }
