/* ═══════════════════════════════════════════════════
   EXALTA PAY — Design System Light Premium
   Tema claro moderno, alinhado à landing page
═══════════════════════════════════════════════════ */

/* ─── Google Font ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ─── Tokens ─── */
:root {
  --primary:        #18cfff;
  --primary-dim:    #006dff;
  --primary-glow:   rgba(0,140,255,.16);
  --primary-bg:     rgba(0,120,255,.05);

  --bg:             #f7fbff;
  --bg2:            #ffffff;
  --surface:        #ffffff;
  --surface2:       #f0f4f8;
  --border:         #dce6f3;
  --border-hover:   rgba(0,109,255,.3);

  --text:           #173f46;
  --text-2:         #26344f;
  --text-3:         #68758f;

  --success:        #28d7ff;
  --success-bg:     rgba(0,132,255,.12);
  --warning:        #f5a623;
  --warning-bg:     rgba(245,166,35,.1);
  --danger:         #ff4d6a;
  --danger-bg:      rgba(255,77,106,.1);

  --radius:         12px;
  --radius-lg:      18px;
  --radius-xl:      24px;
  --shadow:         0 18px 54px rgba(8, 46, 96, .08);
  --shadow-glow:    0 0 40px var(--primary-glow);

  --transition:     .3s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    linear-gradient(90deg, rgba(24, 207, 255, .04) 1px, transparent 1px) 0 0 / 334px 100%,
    repeating-linear-gradient(45deg, rgba(0, 109, 255, .04) 0 1px, transparent 1px 15px),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }

/* ─── WebGL Background Canvas ─── */
#bg-dots {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* ─── Gradient orbs ─── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.bg-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,140,255,.05) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.bg-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,120,255,.04) 0%, transparent 70%);
  bottom: 20%; left: -150px;
}

/* ─── Typography ─── */
h1, h2, h3, h4 { line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
h1 { font-size: clamp(44px, 5.5vw, 80px); }
h2 { font-size: clamp(28px, 3.2vw, 52px); }
h3 { font-size: clamp(18px, 1.8vw, 22px); }
p  { color: var(--text-2); line-height: 1.75; }

/* ─── Eyebrow / Badge ─── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-bg);
  border: 1px solid rgba(0,140,255,.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 28px;
}
.hero-badge svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 64px);
  height: 68px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,.98);
}

/* Logo / Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  width: 144px;
  height: 74px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  filter: drop-shadow(0 10px 24px rgba(0, 150, 255, .22));
}
.site-header .brand-logo {
  width: 150px;
  height: 76px;
}
.brand-logo-dashboard {
  width: 210px;
  height: 122px;
  margin: -14px auto -10px;
  object-fit: contain;
  object-position: center;
}
.brand-auth {
  display: flex;
  justify-content: center;
}
.brand-logo-auth {
  width: 190px;
  height: 150px;
  object-fit: contain;
  object-position: center;
}
.footer-brand .brand-logo {
  width: 180px;
  height: 112px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(0,140,255,.2);
}
.brand > span { color: var(--text); }
.brand strong { color: var(--primary); }

/* Nav links */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: color var(--transition), background var(--transition);
}
.site-nav a:hover {
  color: var(--primary-dim);
  background: rgba(24, 207, 255, .1);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ghost-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: color var(--transition);
}
.ghost-link:hover { color: var(--text); }

/* Mobile toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-2);
  font-size: 18px;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.button, .icon-button, .filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(0,109,255,.25);
}
.button-primary:hover {
  box-shadow: 0 10px 32px rgba(0,109,255,.38);
  background: linear-gradient(135deg, var(--primary-dim), #004fd6);
}

.button-dark {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}
.button-dark:hover {
  border-color: var(--border-hover);
  background: var(--surface);
}

.button-light {
  background: rgba(0,109,255,.04);
  color: var(--text);
  border: 1px solid var(--border);
}
.button-light:hover {
  background: rgba(0,109,255,.08);
  border-color: rgba(0,109,255,.15);
}

.button-small { min-height: 36px; padding: 0 16px; font-size: 13px; }

/* ═══════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════ */
/* hero-section estilos base — sobrescritos pelo bloco XGate HERO no fim do arquivo */
.hero-section {
  position: relative;
  z-index: 1;
}
.hero-copy p {
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 36px;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}
.trust-row span::before {
  content: '✓';
  width: 18px; height: 18px;
  background: var(--primary-bg);
  border: 1px solid rgba(0,140,255,.2);
  border-radius: 50%;
  font-size: 10px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hero preview card */
.hero-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
  align-self: center;
}
.hero-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,140,255,.04) 0%, transparent 60%);
  pointer-events: none;
}

.preview-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.preview-top .eyebrow { margin-bottom: 4px; font-size: 10px; }
.preview-top strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.04em;
  line-height: 1.1;
}
.preview-top small { color: var(--text-3); font-size: 12px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(0,174,255,.2);
  white-space: nowrap;
}
.status-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 1.8s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

/* Chart bars */
.chart-bars {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 6px;
  align-items: end;
  height: 180px;
  background: rgba(0,109,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
}
.chart-bars span {
  background: linear-gradient(180deg, var(--primary), rgba(0,140,255,.25));
  border-radius: 4px 4px 0 0;
  min-height: 16px;
  animation: bar-grow .8s cubic-bezier(.4,0,.2,1) both;
}
.chart-bars span:nth-child(1)  { animation-delay: .05s }
.chart-bars span:nth-child(2)  { animation-delay: .10s }
.chart-bars span:nth-child(3)  { animation-delay: .15s }
.chart-bars span:nth-child(4)  { animation-delay: .20s }
.chart-bars span:nth-child(5)  { animation-delay: .25s }
.chart-bars span:nth-child(6)  { animation-delay: .30s }
.chart-bars span:nth-child(7)  { animation-delay: .35s }
.chart-bars span:nth-child(8)  { animation-delay: .40s }
.chart-bars span:nth-child(9)  { animation-delay: .45s }
.chart-bars span:nth-child(10) { animation-delay: .50s }
@keyframes bar-grow {
  from { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
  to   { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.preview-grid div {
  background: rgba(0,109,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.preview-grid div:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,109,255,.06);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.preview-grid span { color: var(--text-3); font-size: 12px; }
.preview-grid strong { font-size: 13px; font-weight: 700; color: var(--text); }

/* ═══════════════════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════════════════ */
.stats-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0,109,255,.02);
}
.stats-strip article {
  padding: 28px clamp(18px, 3vw, 48px);
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.stats-strip article:last-child { border-right: none; }
.stats-strip article:hover { background: rgba(0,140,255,.03); }
.stats-strip span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.stats-strip strong {
  display: block;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: 6px;
}
.stats-strip em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════
   SECTION BLOCK (geral)
═══════════════════════════════════════════════════ */
.section-block,
.feature-band,
.security-section,
.developers-section,
.faq-section,
.cta-band {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 8vw, 110px) clamp(18px, 4vw, 64px);
  max-width: 1400px;
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 52px;
}
.section-heading h2 { margin-bottom: 14px; }
.section-heading p { font-size: 17px; }

/* ═══════════════════════════════════════════════════
   PRODUCT CARDS
═══════════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: default;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 48px rgba(0,109,255,.12), var(--shadow-glow);
}
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--primary-bg);
  border: 1px solid rgba(0,140,255,.2);
  border-radius: 12px;
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 18px;
}
.product-card h3 {
  color: var(--text);
  margin-bottom: 10px;
  font-size: 17px;
}
.product-card > p { font-size: 14px; margin-bottom: 20px; }
.product-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
}
.product-card ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.product-card ul li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   FEATURE BAND
═══════════════════════════════════════════════════ */
.feature-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto 0;
}
.feature-band > div:first-child { padding: clamp(36px, 5vw, 64px); }
.feature-band h2 { color: var(--text); margin-bottom: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: clamp(36px, 5vw, 64px) clamp(36px, 5vw, 64px) clamp(36px, 5vw, 64px) 0;
}
.feature-grid span {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,109,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color var(--transition), color var(--transition);
}
.feature-grid span:hover {
  border-color: rgba(0,140,255,.2);
  color: var(--text);
}
.feature-grid span::before {
  content: '✓';
  width: 20px; height: 20px;
  background: var(--primary-bg);
  border-radius: 6px;
  color: var(--primary);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   SECURITY SECTION
═══════════════════════════════════════════════════ */
.security-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.security-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.security-panel h2 { color: var(--text); margin-bottom: 14px; font-size: clamp(22px, 2.2vw, 34px); }
.security-panel p { margin-bottom: 28px; }

.security-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.security-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,109,255,.02);
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}
.security-list span:hover {
  background: rgba(0,109,255,.05);
  border-color: var(--border-hover);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.security-list span::before {
  content: '🛡';
  font-size: 14px;
}

.risk-console {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  font-family: 'SF Mono', 'Fira Mono', monospace;
  box-shadow: var(--shadow);
}
.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.console-header span { color: var(--text-3); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.console-header strong { color: var(--primary-dim); font-size: 13px; }
.risk-console > div:not(.console-header) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: background var(--transition);
}
.risk-console > div:not(.console-header):hover { background: rgba(0,109,255,.03); border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.risk-console > div:last-child { border-bottom: none; }
.risk-console > div:not(.console-header) > span { color: var(--text-3); }
.risk-console > div:not(.console-header) > strong { color: var(--primary-dim); font-weight: 600; }

/* ═══════════════════════════════════════════════════
   DEVELOPERS SECTION
═══════════════════════════════════════════════════ */
.developers-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.developers-section h2 { color: var(--text); margin-bottom: 14px; }
.developers-section p { margin-bottom: 28px; }

.code-card {
  background: #f0f7ff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.code-card-header .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red   { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.code-card pre {
  padding: 24px;
  font-size: 13px;
  line-height: 1.8;
  color: #0a3060;
  overflow-x: auto;
  white-space: pre;
  background: linear-gradient(135deg, #eaf3ff 0%, #f7fbff 100%);
}
.code-card pre .kw  { color: #0066cc; font-weight: 700; }
.code-card pre .str { color: #0a8028; }
.code-card pre .num { color: #b5178c; }
.code-card pre .key { color: #0050aa; }
.code-card pre .op  { color: #1178c2; }
.code-card pre .cm  { color: #6b7d95; font-style: italic; }

/* ═══════════════════════════════════════════════════
   FAQ SECTION
═══════════════════════════════════════════════════ */
.faq-section .section-heading { margin-bottom: 36px; }

.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-list details[open] { border-color: rgba(0,140,255,.25); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  list-style: none;
  user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════════════ */
.cta-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,140,255,.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band > div:first-child { flex: 1 1 400px; }
.cta-band h2 { color: var(--text); margin-bottom: 10px; }
.cta-band .eyebrow { margin-bottom: 12px; }

/* ═══════════════════════════════════════════════════
   SITE FOOTER
═══════════════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 52px clamp(18px, 4vw, 64px) 36px;
  max-width: 1400px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: var(--text-3); margin-top: 12px; max-width: 260px; }
.site-footer h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.site-footer a {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  padding: 4px 0;
  transition: color var(--transition);
}
.site-footer a:hover { color: var(--primary); }
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 20px clamp(18px, 4vw, 64px);
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: var(--text-3); margin: 0; }

/* ═══════════════════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }
[data-reveal][data-delay="4"] { transition-delay: .4s; }

/* ═══════════════════════════════════════════════════
   STATUS BADGES
═══════════════════════════════════════════════════ */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.success  { background: var(--success-bg); color: var(--success); }
.warning  { background: var(--warning-bg); color: var(--warning); }
.danger   { background: var(--danger-bg);  color: var(--danger);  }

/* ═══════════════════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════════════════ */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(24, 207, 255, .05) 1px, transparent 1px) 0 0 / 334px 100%,
    repeating-linear-gradient(45deg, rgba(0, 109, 255, .05) 0 1px, transparent 1px 15px),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.auth-body::before {
  content: '';
  position: fixed;
  top: -200px; right: -100px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,140,255,.06) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-float 8s ease-in-out infinite;
}
.auth-body::after {
  content: '';
  position: fixed;
  bottom: -200px; left: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(24,207,255,.05) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-float 10s ease-in-out 3s infinite reverse;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 15px) scale(.97); }
}

.auth-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow);
  animation: fade-in-up .5s cubic-bezier(.22,.61,.36,1) both;
}
.auth-card .brand { margin-bottom: 28px; }
.auth-card h1 {
  font-size: 28px;
  color: var(--text);
  margin-bottom: 6px;
}
.auth-card > p { color: var(--text-2); margin-bottom: 28px; }

.auth-form, .mini-form { display: grid; gap: 16px; }

.auth-form label, .mini-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.auth-form input,
.auth-form select,
.mini-form input,
.mini-form select,
.inline-form input,
.inline-form select,
.settings-field input,
.settings-field select,
.settings-field textarea,
.approval-form input,
.approval-form select,
.copy-field textarea {
  width: 100%;
  background: rgba(0,109,255,.02);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  min-height: 44px;
  padding: 0 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.settings-field textarea {
  min-height: 112px;
  padding: 12px 14px;
  resize: vertical;
}
.auth-form input:focus,
.auth-form select:focus,
.mini-form input:focus,
.mini-form select:focus,
.inline-form input:focus,
.settings-field input:focus,
.settings-field select:focus,
.settings-field textarea:focus,
.approval-form input:focus,
.approval-form select:focus {
  border-color: var(--primary-dim);
  box-shadow: 0 0 0 3px rgba(0,140,255,.12);
}
.auth-form input::placeholder { color: var(--text-3); }
.copy-field textarea { min-height: 110px; padding: 12px 14px; resize: vertical; }

.notice {
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  margin: 10px 0;
}
.notice.success { background: var(--success-bg); color: var(--success); }
.notice.warning { background: var(--warning-bg); color: var(--warning); }
.notice.danger  { background: var(--danger-bg);  color: var(--danger);  }
.muted { font-size: 13px; color: var(--text-3); text-align: center; margin-top: 6px; }
.muted a { color: var(--primary); font-weight: 600; }
.notice a { color: inherit; text-decoration: underline; }

.inline-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  margin: 16px 0;
}
.withdrawal-status-form {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(130px, 1fr) auto;
  margin: 0;
}
.withdrawal-status-form select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-2);
  min-height: 38px;
  padding: 0 12px;
}
.layout-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  max-width: 620px;
}
.layout-form label {
  color: var(--text-2);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}
.layout-form input[type="text"],
.layout-form input:not([type]) {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  min-height: 44px;
  padding: 0 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.layout-form input[type="text"]:focus,
.layout-form input:not([type]):focus {
  border-color: var(--primary-dim);
  box-shadow: 0 0 0 3px rgba(0,109,255,.1);
}
.layout-form input[type="file"] {
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  color: var(--text-2);
  padding: 12px;
  transition: border-color var(--transition);
}
.layout-form input[type="file"]:hover {
  border-color: var(--primary-dim);
}
.logo-preview {
  align-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(0,150,255,.08), rgba(247,251,255,1) 58%);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  min-height: 190px;
  padding: 22px;
}
.logo-preview img {
  display: block;
  max-height: 150px;
  max-width: min(100%, 360px);
  object-fit: contain;
}
.favicon-preview {
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: inline-flex;
  gap: 12px;
  padding: 10px 12px;
  width: fit-content;
}
.favicon-preview span {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.favicon-preview img {
  background: var(--surface2);
  border-radius: 8px;
  height: 34px;
  object-fit: cover;
  width: 34px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  gap: 16px;
}
.settings-tabs {
  align-items: center;
  background: rgba(255,255,255,.76);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: inline-flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 6px;
  width: fit-content;
}
.settings-tabs button {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--text-3);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  min-height: 38px;
  padding: 0 14px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.settings-tabs button:hover {
  background: rgba(0,109,255,.05);
  color: var(--text);
}
.settings-tabs button.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  box-shadow: 0 10px 24px rgba(0,109,255,.14);
  color: #fff;
}
.settings-tab-panel {
  display: none;
}
.settings-tab-panel.active {
  display: block;
}
#configuracoes[data-settings-active="documentos"] .settings-grid,
#configuracoes[data-settings-active="tarifas"] .settings-grid,
#configuracoes[data-settings-active="smtp"] .settings-grid,
#configuracoes[data-settings-active="adquirentes"] .settings-grid {
  grid-template-columns: 1fr;
}
.settings-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.settings-grid-single {
  grid-template-columns: minmax(0, 1fr);
}
.settings-panel {
  overflow: hidden;
  padding: 0;
}
.settings-panel-header {
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(24,207,255,.13), rgba(255,255,255,0) 56%),
    var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 24px;
}
.settings-panel-header .eyebrow {
  margin-bottom: 12px;
}
.settings-panel-header h2,
.settings-summary-panel h2 {
  color: var(--text);
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: 0;
}
.settings-panel-header p {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
}
.settings-status {
  align-items: center;
  background: rgba(20,184,166,.1);
  border: 1px solid rgba(20,184,166,.22);
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  min-height: 32px;
  padding: 0 12px;
}
.settings-form {
  gap: 18px;
  margin: 0;
  max-width: none;
  padding: 24px;
}
.brand-stage {
  background:
    linear-gradient(180deg, rgba(247,251,255,.9), rgba(255,255,255,1)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.brand-stage-top,
.brand-preview-footer {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 14px;
}
.brand-stage-top {
  border-bottom: 1px solid var(--border);
}
.brand-stage-top span,
.brand-preview-footer span {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 800;
}
.brand-stage-top strong {
  color: var(--text);
  font-size: 14px;
}
.settings-logo-preview {
  border: 0;
  border-radius: 0;
  min-height: 210px;
}
.brand-preview-footer {
  background: rgba(0,109,255,.025);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: flex-start;
}
.brand-preview-footer > span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
}
.brand-preview-footer .favicon-preview {
  gap: 8px;
  margin: 0;
  width: auto;
}
.brand-preview-footer .favicon-preview img {
  height: 22px;
  width: 22px;
}
.settings-field-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(180px, .72fr));
  gap: 12px;
  align-items: stretch;
}
.settings-field {
  background: rgba(255,255,255,.74);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-2);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 9px;
  min-width: 0;
  padding: 15px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.settings-field:focus-within {
  background: #fff;
  border-color: rgba(0,109,255,.34);
  box-shadow: 0 12px 26px rgba(0,109,255,.06);
}
.settings-field input {
  margin-top: 0;
}
.settings-field input,
.settings-field select,
.settings-field textarea {
  background-color: #fff;
  border-radius: 10px;
}
.settings-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 36px;
}
.file-upload-card {
  align-content: center;
  background: rgba(0,109,255,.02);
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  cursor: pointer;
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 16px;
  position: relative;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.file-upload-card:hover {
  background: rgba(24,207,255,.06);
  border-color: rgba(0,109,255,.32);
  transform: translateY(-2px);
}
.file-upload-card input[type="file"] {
  cursor: pointer;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}
.file-upload-card strong {
  color: var(--text);
  font-size: 14px;
}
.file-upload-card small {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
}
.upload-icon {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}
.settings-actions {
  align-items: center;
  background: #0f2530;
  border-radius: 14px;
  color: #fff;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}
.settings-actions strong,
.settings-actions span {
  display: block;
}
.settings-actions strong {
  font-size: 14px;
}
.settings-actions span {
  color: rgba(255,255,255,.68);
  font-size: 12px;
  margin-top: 2px;
}
.settings-actions .button {
  flex-shrink: 0;
  min-width: 150px;
}
.settings-summary-panel {
  align-self: start;
}
.settings-summary-panel .panel-header {
  margin-bottom: 14px;
}
.settings-summary-hero {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(24,207,255,.12), rgba(20,184,166,.08)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  gap: 12px;
  padding: 14px;
}
.settings-summary-hero > span {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  height: 58px;
  justify-content: center;
  padding: 8px;
  width: 70px;
}
.settings-summary-hero img {
  max-height: 42px;
  object-fit: contain;
}
.settings-summary-hero strong,
.settings-summary-hero small {
  display: block;
}
.settings-summary-hero strong {
  color: var(--text);
  font-size: 15px;
}
.settings-summary-hero small {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}
.settings-summary-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.settings-summary-list div {
  align-items: flex-start;
  background: rgba(0,109,255,.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 13px;
}
.settings-summary-list span {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.settings-summary-list strong {
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.verification-alert {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(245,166,35,.13), rgba(24,207,255,.09)),
    var(--surface);
  border: 1px solid rgba(245,166,35,.26);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 20px;
}
.verification-alert .eyebrow {
  color: var(--warning);
  margin-bottom: 10px;
}
.verification-alert .eyebrow::before {
  background: var(--warning);
}
.verification-alert h2 {
  color: var(--text);
  font-size: 24px;
  letter-spacing: 0;
}
.verification-alert p {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 6px;
  max-width: 720px;
}
.verification-card {
  overflow: hidden;
  padding: 0;
}
.verification-field-grid {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
}
.settings-toggle-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
}
.settings-toggle-grid label {
  align-items: center;
  background: rgba(255,255,255,.74);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-2);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}
.settings-toggle-grid label:has(input:checked) {
  background: rgba(24,207,255,.09);
  border-color: rgba(0,109,255,.28);
  box-shadow: 0 10px 22px rgba(0,109,255,.06);
  color: var(--text);
}
.settings-toggle-grid input {
  accent-color: var(--primary-dim);
}
.fee-settings-form {
  display: grid;
  gap: 16px;
}
.fee-mode-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}
.fee-mode-card {
  align-items: center;
  background: rgba(255,255,255,.74);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  min-height: 86px;
  padding: 16px;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.fee-mode-card:hover {
  background: #fff;
  border-color: rgba(0,109,255,.26);
  box-shadow: 0 12px 26px rgba(0,109,255,.06);
  transform: translateY(-1px);
}
.fee-mode-card input {
  accent-color: var(--primary-dim);
  height: 18px;
  width: 18px;
}
.fee-mode-card span,
.fee-mode-card strong,
.fee-mode-card small {
  display: block;
}
.fee-mode-card strong {
  color: var(--text);
  font-size: 14px;
}
.fee-mode-card small {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}
.fee-mode-card:has(input:checked) {
  background: rgba(24,207,255,.08);
  border-color: rgba(0,109,255,.30);
  box-shadow: 0 14px 30px rgba(0,109,255,.08);
}
.fee-tier-editor {
  background: rgba(0,109,255,.025);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  padding: 16px;
}
.fee-tier-head,
.fee-tier-row {
  align-items: center;
  display: grid;
  gap: 12px;
}
.fee-tier-head {
  grid-template-columns: 1fr auto;
  margin-bottom: 2px;
}
.fee-tier-head strong,
.fee-tier-head span,
.fee-tier-head small,
.fee-tier-row > span {
  display: block;
}
.fee-tier-head strong {
  color: var(--text);
  font-size: 14px;
}
.fee-tier-head span,
.fee-tier-head small {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 800;
}
.fee-tier-head small {
  background: rgba(0,109,255,.08);
  border: 1px solid rgba(0,109,255,.16);
  border-radius: 999px;
  color: var(--primary-dim);
  padding: 7px 10px;
  white-space: nowrap;
}
.fee-tier-row {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--border);
  border-radius: 12px;
  grid-template-columns: minmax(150px, .75fr) repeat(2, minmax(150px, 1fr));
  padding: 12px;
}
.fee-tier-row > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}
.fee-tier-row label {
  color: var(--text-3);
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
  text-transform: uppercase;
}
.fee-tier-row input {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  min-height: 40px;
  padding: 0 12px;
}
.fee-field-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}
.fee-preview-card {
  background:
    linear-gradient(135deg, rgba(24,207,255,.12), rgba(20,184,166,.08)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 16px;
}
.fee-preview-card span {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.fee-preview-card strong {
  color: var(--text);
  font-size: 20px;
}
.fee-preview-card small {
  color: var(--primary-dim);
  font-size: 12px;
  font-weight: 800;
}
.smtp-settings-form {
  display: grid;
  gap: 16px;
}
.smtp-field-grid {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
}
.smtp-toggle-grid {
  grid-template-columns: minmax(180px, 240px);
}
.smtp-preview-card {
  background:
    linear-gradient(135deg, rgba(24,207,255,.10), rgba(124,92,191,.08)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  gap: 6px;
  padding: 16px;
}
.smtp-preview-card strong {
  color: var(--text);
  font-size: 14px;
}
.smtp-preview-card span {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
}
.auth-layout-form {
  display: grid;
  gap: 18px;
}
.auth-layout-grid .settings-field-wide {
  grid-column: 1 / -1;
}
.auth-layout-form textarea {
  line-height: 1.55;
  min-height: 128px;
  padding: 12px 14px;
}
.auth-layout-columns {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.auth-layout-group {
  background: rgba(0,109,255,.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  gap: 14px;
  padding: 16px;
}
.auth-layout-group .auth-layout-grid {
  grid-template-columns: 1fr;
}
.auth-layout-group-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.auth-layout-preview-card b {
  color: var(--primary-dim);
}
.acquirer-list {
  display: grid;
  gap: 10px;
  padding: 0 24px 24px;
}
.acquirer-row {
  align-items: center;
  background: rgba(0,109,255,.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}
.acquirer-row span,
.acquirer-row small {
  color: var(--text-3);
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.acquirer-row strong {
  color: var(--text);
  display: block;
  font-size: 15px;
  margin: 3px 0;
}
.acquirer-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(8,46,96,.18);
  color: var(--text);
  inset: 50% auto auto 50%;
  margin: 0;
  max-width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 0;
  position: fixed;
  transform: translate(-50%, -50%);
  width: 980px;
}
.acquirer-modal::backdrop {
  background: rgba(15,37,48,.42);
  backdrop-filter: blur(6px);
}
.acquirer-modal .settings-form {
  padding: 0;
}
.modal-header {
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(24,207,255,.13), rgba(255,255,255,0) 56%),
    var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 22px 24px;
}
.modal-header .eyebrow {
  margin-bottom: 10px;
}
.modal-header h2 {
  color: var(--text);
  font-size: 28px;
  letter-spacing: 0;
}
.acquirer-modal .settings-field-grid,
.acquirer-modal .settings-toggle-grid,
.acquirer-modal > form > .settings-field,
.acquirer-modal .settings-actions {
  margin-left: 24px;
  margin-right: 24px;
}
.acquirer-modal .settings-field-grid {
  margin-top: 24px;
}
.acquirer-modal .settings-actions {
  margin-bottom: 24px;
}
.payment-result-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(8,46,96,.2);
  color: var(--text);
  inset: 50% auto auto 50%;
  margin: 0;
  max-width: min(760px, calc(100vw - 32px));
  overflow: hidden;
  padding: 0;
  position: fixed;
  transform: translate(-50%, -50%);
  width: 760px;
}
.payment-result-modal::backdrop {
  background: rgba(15,37,48,.44);
  backdrop-filter: blur(6px);
}
.payment-result-head {
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(24,207,255,.14), rgba(255,255,255,0) 56%),
    var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 24px;
}
.payment-result-head .eyebrow {
  margin-bottom: 10px;
}
.payment-result-head h2 {
  color: var(--text);
  font-size: 38px;
  letter-spacing: 0;
}
.payment-result-head p {
  color: var(--text-3);
  font-size: 13px;
  font-weight: 800;
  margin-top: 4px;
}
.payment-result-body {
  display: grid;
  gap: 20px;
  grid-template-columns: 240px minmax(0, 1fr);
  padding: 24px;
}
.payment-qr-preview {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  min-height: 240px;
  padding: 16px;
}
.payment-qr-preview img {
  max-height: 210px;
  object-fit: contain;
  width: 100%;
}
.payment-qr-preview strong {
  color: var(--primary-dim);
  font-size: 34px;
  font-weight: 900;
}
.payment-result-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.payment-result-content .copy-field textarea {
  min-height: 170px;
}
.payment-result-content .payment-pix-extra textarea {
  min-height: 86px;
}
.payment-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.fee-check-button {
  border: 1px solid var(--border);
  white-space: nowrap;
}
.withdrawal-form-alert {
  background: var(--danger-bg);
  border: 1px solid rgba(255,77,106,.18);
  border-radius: 12px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
  grid-column: 1 / -1;
  line-height: 1.45;
  padding: 12px 14px;
}
.fee-rates-modal,
.withdrawal-confirm-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(8,46,96,.2);
  color: var(--text);
  inset: 50% auto auto 50%;
  margin: 0;
  max-width: min(720px, calc(100vw - 32px));
  overflow: hidden;
  padding: 0;
  position: fixed;
  transform: translate(-50%, -50%);
  width: 720px;
}
.fee-rates-modal::backdrop,
.withdrawal-confirm-modal::backdrop {
  background: rgba(15,37,48,.44);
  backdrop-filter: blur(6px);
}
.fee-rates-head {
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(24,207,255,.14), rgba(255,255,255,0) 56%),
    var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 24px;
}
.fee-rates-head .eyebrow {
  margin-bottom: 10px;
}
.fee-rates-head h2 {
  color: var(--text);
  font-size: 34px;
  letter-spacing: 0;
}
.fee-rates-head p {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  max-width: 520px;
}
.fee-rates-body {
  display: grid;
  gap: 18px;
  padding: 24px;
}
.fee-rates-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.fee-rates-summary > div,
.fee-rates-single {
  background:
    linear-gradient(135deg, rgba(24,207,255,.08), rgba(118,77,214,.05)),
    var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  gap: 6px;
  min-height: 120px;
  padding: 18px;
}
.fee-rates-summary span,
.fee-rates-single span {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.fee-rates-summary strong,
.fee-rates-single strong {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}
.fee-rates-summary small {
  color: var(--primary-dim);
  font-size: 12px;
  font-weight: 800;
}
.fee-rates-list {
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  overflow: hidden;
}
.fee-rates-row {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 58px;
  padding: 14px 18px;
}
.fee-rates-row:last-child {
  border-bottom: 0;
}
.fee-rates-row span {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 800;
}
.fee-rates-row strong {
  background: rgba(0,109,255,.08);
  border: 1px solid rgba(0,109,255,.14);
  border-radius: 999px;
  color: var(--primary-dim);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
  white-space: nowrap;
}
.withdrawal-confirm-body {
  display: grid;
  gap: 18px;
  padding: 24px;
}
.withdrawal-confirm-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.withdrawal-confirm-grid > div,
.withdrawal-confirm-destination {
  background:
    linear-gradient(135deg, rgba(24,207,255,.08), rgba(118,77,214,.05)),
    var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  gap: 7px;
  padding: 18px;
}
.withdrawal-confirm-grid span,
.withdrawal-confirm-destination span {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.withdrawal-confirm-grid strong,
.withdrawal-confirm-destination strong {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.withdrawal-confirm-net {
  border-color: rgba(24,207,255,.35) !important;
}
.withdrawal-confirm-net strong {
  color: var(--primary-dim);
}
.withdrawal-confirm-note {
  background: rgba(24,207,255,.08);
  border: 1px solid rgba(24,207,255,.16);
  border-radius: 14px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
  padding: 14px 16px;
}
.withdrawal-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.approvals-panel table {
  min-width: 980px;
}
.table-muted {
  color: var(--text-3);
  font-size: 12px;
}
.document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.document-links a {
  background: rgba(0,109,255,.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary-dim);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}
.approval-form {
  display: grid;
  gap: 8px;
  min-width: 220px;
}
.approval-form .button {
  justify-content: center;
}

@media (max-width: 1180px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-field-grid,
  .verification-field-grid,
  .fee-field-grid,
  .smtp-field-grid {
    grid-template-columns: 1fr;
  }
  .fee-mode-grid {
    grid-template-columns: 1fr;
  }
  .auth-layout-columns {
    grid-template-columns: 1fr;
  }
  .fee-tier-head,
  .fee-tier-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .settings-tabs {
    display: grid;
    width: 100%;
  }
  .settings-panel-header,
  .settings-actions,
  .verification-alert {
    align-items: stretch;
    flex-direction: column;
  }
  .settings-form,
  .settings-panel-header {
    padding: 18px;
  }
  .settings-logo-preview {
    min-height: 170px;
  }
  .settings-actions .button {
    width: 100%;
  }
  .settings-toggle-grid {
    grid-template-columns: 1fr 1fr;
  }
  .acquirer-row {
    align-items: stretch;
    flex-direction: column;
  }
  .acquirer-row .button {
    justify-content: center;
    width: 100%;
  }
  .acquirer-modal {
    max-height: calc(100vh - 24px);
    overflow: auto;
  }
  .modal-header {
    padding: 18px;
  }
  .acquirer-modal .settings-field-grid,
  .acquirer-modal .settings-toggle-grid,
  .acquirer-modal > form > .settings-field,
  .acquirer-modal .settings-actions {
    margin-left: 18px;
    margin-right: 18px;
  }
  .payment-result-body {
    grid-template-columns: 1fr;
  }
  .payment-result-actions .button {
    justify-content: center;
    width: 100%;
  }
  .fee-rates-modal,
  .withdrawal-confirm-modal {
    max-height: calc(100vh - 24px);
    overflow: auto;
  }
  .fee-rates-head {
    padding: 18px;
  }
  .fee-rates-head h2 {
    font-size: 28px;
  }
  .fee-rates-body,
  .withdrawal-confirm-body {
    padding: 18px;
  }
  .fee-rates-summary,
  .withdrawal-confirm-grid {
    grid-template-columns: 1fr;
  }
  .withdrawal-confirm-actions .button {
    justify-content: center;
    width: 100%;
  }
  .fee-rates-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
.mini-form { margin-top: 16px; }
.qr-box {
  width: 180px; height: 180px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #000;
  margin: 20px auto;
  border: 4px solid var(--border);
}
.qr-box img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}
.copy-field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.checkout-card { text-align: center; }
.auth-body.theme-dark {
  --bg: #10111f;
  --surface: #1d1e33;
  --surface2: #262741;
  --border: rgba(255,255,255,.12);
  --text: #f4f5ff;
  --text-2: rgba(244,245,255,.76);
  --text-3: rgba(244,245,255,.54);
  background:
    linear-gradient(90deg, rgba(124,92,191,.08) 1px, transparent 1px) 0 0 / 334px 100%,
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 1px, transparent 1px 15px),
    #10111f;
}
.auth-body.theme-dark::before {
  background: radial-gradient(circle, rgba(124,92,191,.14) 0%, transparent 70%);
}
.auth-body.theme-dark::after {
  background: radial-gradient(circle, rgba(24,207,255,.08) 0%, transparent 70%);
}
.auth-body.theme-dark .auth-card {
  background: rgba(29,30,51,.92);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
}
.auth-body.theme-dark .qr-box {
  background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.16);
}
.auth-body.theme-dark .checkout-instructions {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.12);
}
.checkout-card .copy-field { text-align: left; }
.checkout-copy-button {
  justify-content: center;
  margin: 10px 0 14px;
  width: 100%;
}
.checkout-instructions {
  background: rgba(0,109,255,.035);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-2);
  display: grid;
  gap: 7px;
  margin: 12px 0;
  padding: 14px;
  text-align: left;
}
.checkout-instructions strong {
  color: var(--text);
  font-size: 14px;
}
.checkout-instructions span {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════════════ */
.dashboard-body {
  min-height: 100vh;
  background: var(--bg);
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.dashboard-brand {
  justify-content: center;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }

.sidebar-nav button,
.sidebar-nav .sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 10px;
  color: var(--text-3);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  text-decoration: none;
}
.sidebar-nav button:hover,
.sidebar-nav .sidebar-nav-link:hover { background: rgba(0,109,255,.06); color: var(--text); transform: translateX(3px); }
.sidebar-nav button.active { background: linear-gradient(90deg, rgba(0,109,255,.1), rgba(24,207,255,.05)); color: var(--primary-dim); border-left: 3px solid var(--primary-dim); padding-left: 9px; }

.dashboard-main { min-width: 0; padding: 28px; }
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.dashboard-header h1 { font-size: 26px; color: var(--text); letter-spacing: -.03em; }
.dashboard-header p { color: var(--text-3); font-size: 13px; margin: 0; }
.dashboard-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px 6px 8px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.profile-button:hover { border-color: var(--border-hover); }
.profile-button > span:first-child {
  width: 74px; height: 40px;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #000;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
}
.profile-button > span:first-child img {
  width: 132px;
  height: 88px;
  object-fit: contain;
  object-position: center;
}
.profile-button > span:last-child { font-size: 13px; font-weight: 600; color: var(--text-2); }

.icon-button {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-2);
  min-height: 38px;
  min-width: 38px;
  border-radius: 9px;
  padding: 0;
}
.icon-button:hover { border-color: var(--border-hover); color: var(--text); }

.dashboard-section { display: none; }
.dashboard-section.active { display: block; }

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.metric-card:hover {
  border-color: rgba(0,109,255,.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,109,255,.08);
}
.metric-card span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.metric-card strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: 6px;
}
.metric-card small { font-size: 12px; font-weight: 700; color: var(--primary); }

/* Workspace Panel */
.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(280px,.6fr);
  gap: 16px;
  margin-top: 0;
}
.workspace-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.workspace-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(0,109,255,.06);
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.panel-header strong { font-size: 15px; color: var(--text); font-weight: 700; }
.chart-panel { min-height: 280px; }

/* Line chart */
.line-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 6px;
  align-items: end;
  height: 220px;
  background: rgba(0,109,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.line-chart span {
  background: linear-gradient(180deg, var(--primary), rgba(0,140,255,.15));
  border-radius: 4px 4px 0 0;
  min-height: 0;
}
.line-chart-empty {
  align-items: center;
}
.line-chart-empty span {
  opacity: 0;
}
.line-chart em {
  color: var(--text-3);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  left: 50%;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
}

/* Quick actions */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-grid button {
  background: rgba(0,109,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  min-height: 72px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.quick-grid button:hover {
  border-color: rgba(0,140,255,.25);
  color: var(--primary);
  background: var(--primary-bg);
}

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
td { color: var(--text-2); }
tr:hover td { color: var(--text); background: rgba(0,109,255,.03); }
tr:last-child td { border-bottom: none; }

/* Module toolbar */
.module-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  min-height: 40px;
  min-width: 300px;
  padding: 0 14px;
  transition: border-color var(--transition);
}
.search-box:focus-within { border-color: var(--primary-dim); }
.search-box span { color: var(--text-3); font-size: 13px; }
.search-box input {
  background: transparent;
  border: none;
  flex: 1;
  min-width: 120px;
  outline: none;
  color: var(--text);
  font-size: 13px;
}
.search-box input::placeholder { color: var(--text-3); }

.filter-button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  min-height: 40px;
  padding: 0 14px;
}
.filter-button:hover { border-color: var(--border-hover); color: var(--text); }

/* API Keys / Webhook rows */
.api-key-row, .webhook-row, .report-list div {
  background: rgba(0,109,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 12px;
}
.api-key-row span, .webhook-row span, .report-list span {
  color: var(--text-3);
  font-size: 12px;
}
.api-doc-hero {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.api-doc-hero h2,
.api-secret-card h2,
.api-keys-panel h2,
.api-side-panel h2,
.api-webhook-panel h2 {
  color: var(--text);
}
.api-doc-hero p,
.api-secret-card p,
.api-keys-panel p,
.api-webhook-panel p {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 6px;
  max-width: 780px;
}
.api-doc-actions,
.api-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.api-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
}
.api-webhook-panel {
  grid-column: 1 / -1;
}
.api-key-form,
.api-webhook-form {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, .45fr) auto;
  margin-bottom: 14px;
}
.api-webhook-form {
  grid-template-columns: minmax(220px, 1fr) auto auto;
}
.api-key-form input,
.api-key-form select,
.api-webhook-form input,
.api-copy-field input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  min-height: 42px;
  outline: none;
  padding: 0 13px;
}
.api-webhook-event {
  align-items: center;
  color: var(--text-2);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  white-space: nowrap;
}
.api-webhook-event input {
  min-height: auto;
  padding: 0;
}
.webhook-secret-created {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px;
}
.webhook-secret-created code,
.api-webhook-details code {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}
.api-webhook-details {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.api-webhook-details strong {
  overflow-wrap: anywhere;
}
.api-webhook-details .webhook-error {
  color: var(--danger);
}
.api-endpoint-card {
  align-items: center;
  background: rgba(0,109,255,.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
}
.api-endpoint-card span {
  background: var(--primary);
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 8px;
}
.api-endpoint-card code,
.api-key-row-rich code {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.api-secret-card {
  border-color: rgba(20,184,166,.32);
  margin-bottom: 16px;
}
.api-credential-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}
.api-copy-field {
  background: rgba(0,109,255,.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-2);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  padding: 12px;
}
.api-copy-field .button {
  justify-content: center;
}
.api-key-row-rich {
  align-items: flex-start;
}
.api-key-row-rich > div:first-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.api-key-row-rich small {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
}
.api-code-block {
  background: #071e28;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  color: #dff7ff;
  font-size: 12px;
  line-height: 1.55;
  margin: 0 0 12px;
  overflow: auto;
  padding: 14px;
}
.api-empty-state {
  padding: 22px;
}
.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  color: var(--text-3);
}
.module-card { min-height: 200px; transition: transform var(--transition), box-shadow var(--transition); }
.module-card:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(0,109,255,.06); }
.dark-chart { background: rgba(0,109,255,.02); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .hero-section { grid-template-columns: 1fr; min-height: auto; padding-top: 60px; }
  .hero-preview { max-width: 600px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-band { grid-template-columns: 1fr; }
  .feature-grid { padding: 0 clamp(24px,4vw,48px) clamp(24px,4vw,48px); }
  .security-section,
  .developers-section { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .dashboard-columns { grid-template-columns: 1fr; }
  .api-layout,
  .api-credential-grid {
    grid-template-columns: 1fr;
  }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip article { border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
  .site-nav, .header-actions { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 68px 0 0;
    background: rgba(255,255,255,.98);
    padding: 20px;
    z-index: 99;
    backdrop-filter: blur(20px);
  }
  .site-nav.open a { padding: 14px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .header-actions.open { display: flex; flex-direction: column; padding: 0 20px 20px; }
  .menu-toggle { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .security-list { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .quick-grid { grid-template-columns: 1fr; }

  /* ── Dashboard: coluna única, sidebar oculta por padrão ── */
  .dashboard-body {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }

  /* Sidebar vira drawer fixo fora da tela */
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    z-index: 300;
    box-shadow: 8px 0 48px rgba(0,109,255,.08);
    transition: left 280ms cubic-bezier(.4,0,.2,1),
                box-shadow 280ms ease;
    overflow-y: auto;
  }
  .sidebar.mobile-open {
    left: 0;
    box-shadow: 8px 0 60px rgba(0,109,255,.12);
  }

  /* Overlay escuro atrás do drawer */
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 299;
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms ease;
  }
  .sidebar-overlay.visible {
    opacity: 1;
    pointer-events: all;
  }

  /* Hamburger menu no dashboard header (visível só no mobile) */
  .dash-menu-btn {
    display: flex !important;
  }

  /* Ajustes do conteúdo principal */
  .dashboard-main { padding: 16px; }
  .dashboard-header { flex-direction: column; align-items: flex-start; }
  .dashboard-header > div:first-child { width: 100%; }
  .dashboard-actions { width: 100%; justify-content: space-between; }

  /* Hero + publics */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; justify-content: center; }
  .cta-band { flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  .api-doc-hero {
    align-items: stretch;
    flex-direction: column;
  }
  .api-key-form,
  .api-webhook-form {
    grid-template-columns: 1fr;
  }
  .api-doc-actions .button,
  .api-row-actions .button,
  .api-key-form .button,
  .api-webhook-form .button {
    justify-content: center;
    width: 100%;
  }
  .auth-card { padding: 28px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .profile-button strong { display: none; }
}

/* ─── Botão hamburger do dashboard (oculto no desktop) ─── */
.dash-menu-btn {
  display: none;               /* visível só no mobile via media query acima */
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition);
}
.dash-menu-btn:hover { border-color: var(--primary-dim); color: var(--primary); }
.dash-menu-btn svg { width: 18px; height: 18px; transition: transform 250ms ease; }
.dash-menu-btn.open svg { transform: rotate(90deg); }

/* ─── Sidebar overlay base (escondido no desktop) ─── */
.sidebar-overlay {
  display: none;
}

/* ─── Dashboard columns: 1 coluna em telas pequenas ─── */
@media (max-width: 900px) {
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-main {
    padding: 12px;
  }
  .metric-card strong {
    font-size: 22px;
  }
  .workspace-panel {
    padding: 16px;
  }
  .hd-cards-row {
    grid-template-columns: 1fr 1fr 46px;
  }
  .hd-card-mid:last-of-type {
    display: none;
  }
  /* Tabela responsiva: ocultar colunas menos importantes */
  .hd-mov-thead,
  .hd-mov-row {
    grid-template-columns: 80px 1fr 80px;
  }
  .hd-mov-th-hide,
  .hd-mov-metodo {
    display: none;
  }
  /* Ações rápidas: ícone menor */
  .qa-icon-wrap { width: 32px; height: 32px; }
  .qa-text strong { font-size: 13px; }
}

/* ─── Sidebar: botão fechar (X) interno no mobile ─── */
.sidebar-close-btn {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-3);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.sidebar-close-btn:hover { color: var(--danger); border-color: var(--danger); }
@media (max-width: 1024px) {
  .sidebar-close-btn { display: flex; }
  .sidebar-overlay { display: block; }
}


/* ═══════════════════════════════════════════════════
   CHECKOUT
═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .inline-form { grid-template-columns: 1fr; }
}

/* ─── Module grid ─── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1200px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .module-grid { grid-template-columns: 1fr; } }

.module-card h2 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.module-card p  { font-size: 13px; color: var(--text-2); margin-bottom: 16px; }

/* report-list */
.report-list { }
.report-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.report-list div:last-child { border-bottom: none; }
.report-list div span  { color: var(--text-2); }
.report-list div strong { color: var(--text); font-weight: 700; }

/* Inline form select */
.inline-form select {
  background: rgba(0,109,255,.02);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  min-height: 44px;
  padding: 0 14px;
  outline: none;
  transition: border-color var(--transition);
}
.inline-form select:focus { border-color: var(--primary-dim); }

/* Profile button company name */
.profile-button strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,140,255,.3); }

/* Selection highlight */
::selection { background: rgba(0,140,255,.2); color: var(--text); }

/* ─── Sidebar footer / logout ─── */
.sidebar {
  justify-content: flex-start;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  transition: background var(--transition), color var(--transition);
  width: 100%;
}
.sidebar-logout:hover {
  background: rgba(255,77,106,.08);
  color: var(--danger);
}
.sidebar-logout svg { flex-shrink: 0; }

/* ─── Sidebar nav SVG ─── */
.sidebar-nav button svg { flex-shrink: 0; }

/* ─── Premium micro-animations ─── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fade-in-left {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes slide-in-down {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.dashboard-main { animation: fade-in-up .5s cubic-bezier(.22,.61,.36,1) both; }
.metric-card { animation: fade-in-up .5s cubic-bezier(.22,.61,.36,1) both; }
.metric-card:nth-child(1) { animation-delay: .04s; }
.metric-card:nth-child(2) { animation-delay: .10s; }
.metric-card:nth-child(3) { animation-delay: .16s; }
.metric-card:nth-child(4) { animation-delay: .22s; }
.workspace-panel { animation: fade-in-up .55s cubic-bezier(.22,.61,.36,1) .15s both; }
.sidebar-nav button { animation: fade-in-left .4s cubic-bezier(.22,.61,.36,1) both; }
.sidebar-nav button:nth-child(1)  { animation-delay: .03s; }
.sidebar-nav button:nth-child(2)  { animation-delay: .06s; }
.sidebar-nav button:nth-child(3)  { animation-delay: .09s; }
.sidebar-nav button:nth-child(4)  { animation-delay: .12s; }
.sidebar-nav button:nth-child(5)  { animation-delay: .15s; }
.sidebar-nav button:nth-child(6)  { animation-delay: .18s; }
.sidebar-nav button:nth-child(7)  { animation-delay: .21s; }
.sidebar-nav button:nth-child(8)  { animation-delay: .24s; }
.sidebar-nav button:nth-child(9)  { animation-delay: .27s; }
.sidebar-nav button:nth-child(10) { animation-delay: .30s; }
.dashboard-header { animation: slide-in-down .4s cubic-bezier(.22,.61,.36,1) both; }

/* ─── Table empty state ─── */
td[colspan] {
  text-align: center;
  color: var(--text-3);
  padding: 32px;
  font-size: 13px;
}

/* ─── Notice margin fix ─── */
.dashboard-section > .notice:first-child { margin-bottom: 16px; }

/* ─── Hero gradient text fix for Firefox ─── */
@supports not (-webkit-background-clip: text) {
  .hero-copy h1 {
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--text);
  }
}

/* ═══════════════════════════════════════════════════
   XGATE HERO — Layout idêntico ao xgateglobal.com
═══════════════════════════════════════════════════ */

/* ─── Hero fold wrapper (full viewport) ─── */
.hero-fold {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ─── Hero section grid ─── */
.hero-section {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(260px, .42fr) minmax(0, .58fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  padding: clamp(36px, 5vw, 72px) clamp(18px, 4vw, 64px) 16px;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}

/* ─── Left sidebar ─── */
.hero-sidebar {}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.hero-tag svg { color: var(--primary); flex-shrink: 0; }

.hero-sidebar h1 {
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.1;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-sidebar p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 28px;
  max-width: 380px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ─── Dashboard card ─── */
.hero-dash {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow), 0 0 80px -20px rgba(0,140,255,.08);
}

/* Row 1 — Metric cards */
.hd-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 46px;
  border-bottom: 1px solid var(--border);
}
.hd-card {
  padding: 14px 18px;
  border-right: 1px solid var(--border);
}
.hd-card-dark {
  background: rgba(0,109,255,.04);
}
.hd-card-mid {
  background: var(--bg2);
}
.hd-card-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 5px;
}
.hd-card-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
}
.hd-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  transition: color var(--transition);
}
.hd-link-btn:hover { color: var(--primary); }

/* Row 2 — Line graph */
.hd-graph-row {
  display: grid;
  grid-template-columns: 1fr 118px;
  border-bottom: 1px solid var(--border);
  min-height: 130px;
}
.hd-graph-main {
  padding: 14px 18px 10px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}
.hd-graph-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.hd-graph-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hd-graph-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
}
.hd-graph-svg {
  flex: 1;
  width: 100%;
  min-height: 60px;
}
.hd-graph-area { fill: url(#hdGrad); }
.hd-graph-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(0,140,255,.45));
}
.hd-graph-dot {
  filter: drop-shadow(0 0 5px var(--primary));
}

/* Graph sidebar */
.hd-graph-sidebar {
  display: flex;
  flex-direction: column;
}
.hd-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.hd-stat:last-child { border-bottom: none; }
.hd-stat-bar {
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}
.hd-stat-data { display: flex; flex-direction: column; gap: 1px; }
.hd-stat-val  { font-size: 11px; font-weight: 700; color: var(--text); }
.hd-stat-date { font-size: 10px; color: var(--text-3); }

/* Row 3 — Bottom row */
.hd-bottom-row {
  display: grid;
  grid-template-columns: 1fr 44px 114px;
  min-height: 190px;
}

/* Transactions table */
.hd-mov-card {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
}
.hd-mov-thead {
  display: grid;
  grid-template-columns: 90px 1fr 88px 60px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,109,255,.02);
}
.hd-mov-th {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
}
.hd-mov-th-hide {}
.hd-mov-tbody { overflow: hidden; }
.hd-mov-row {
  display: grid;
  grid-template-columns: 90px 1fr 88px 60px;
  padding: 6px 14px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  animation: hd-row-in .35s ease both;
}
@keyframes hd-row-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.hd-mov-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
}
.hd-mov-badge.deposito { background: rgba(0,132,255,.15); color: #20c8ff; }
.hd-mov-badge.saque    { background: rgba(255,77,106,.12); color: var(--danger); }
.hd-mov-empresa { font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.hd-mov-valor   { font-size: 11.5px; color: var(--text); font-weight: 600; }
.hd-mov-metodo  { font-size: 10.5px; color: var(--text-3); }
.hd-mov-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 56px;
  background: linear-gradient(to top, var(--surface) 0%, transparent 100%);
  pointer-events: none;
}

/* Icon column */
.hd-icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  gap: 3px;
  border-right: 1px solid var(--border);
}
.hd-icon-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border: none;
  background: transparent;
  border-radius: 7px;
  color: var(--text-3);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.hd-icon-sm:hover { background: rgba(0,109,255,.07); color: var(--primary); }
.hd-icon-sm svg { width: 13px; height: 13px; }

/* Balance ring */
.hd-balance-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  gap: 8px;
}
.hd-balance-title {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  text-align: center;
}
.hd-balance-ring {
  position: relative;
  width: 80px; height: 80px;
}
.hd-balance-ring svg { width: 100%; height: 100%; }
.hd-donut {
  transition: stroke-dashoffset 1.4s cubic-bezier(.4,0,.2,1);
}
.hd-balance-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hd-balance-label {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
}
.hd-balance-value {
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

/* ─── Hero fold footer (scroll + dollar) ─── */
.hero-fold-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--border);
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hff-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hff-scroll-bar {
  width: 2px;
  height: 28px;
  background: var(--primary);
  border-radius: 2px;
  animation: scroll-pulse 1.8s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,100% { transform: scaleY(1); opacity: 1; }
  50%      { transform: scaleY(.35); opacity: .35; }
}
.hff-dollar {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--primary);
}

/* ─── Hero responsive ─── */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding-bottom: 24px;
  }
  .hero-dash {
    max-height: 360px;
    overflow: hidden;
  }
  .hd-graph-row,
  .hd-bottom-row { display: none; }
}
@media (max-width: 640px) {
  .hero-dash { display: none; }
  .hero-fold-footer { padding: 12px 18px; }
  .hff-dollar { display: none; }
  .hero-sidebar h1 { font-size: 36px; }
}

/* ─── Override old hero styles for fold ─── */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* Ensure stats-strip + sections stay below fold */
.stats-strip { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════
   QUICK ACTIONS — Cards premium com ícones animados
═══════════════════════════════════════════════════ */

.quick-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0 8px;
}

/* ── Card base ── */
.qa-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(0,109,255,.02);
  cursor: pointer;
  text-align: left;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 200ms cubic-bezier(.4,0,.2,1),
    box-shadow 220ms ease;
  position: relative;
  overflow: hidden;
}

/* Ripple pseudo-element */
.qa-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--qa-color, var(--primary));
  opacity: 0;
  border-radius: inherit;
  transition: opacity 200ms ease;
}
.qa-card:hover::before { opacity: .04; }
.qa-card:active::before { opacity: .09; }

.qa-card:hover {
  border-color: var(--qa-color, var(--primary));
  background: rgba(0,109,255,.04);
  transform: translateX(3px);
  box-shadow: 0 0 0 1px var(--qa-color, var(--primary)),
              -4px 0 16px -6px var(--qa-color, var(--primary));
}
.qa-card:active { transform: translateX(1px) scale(.99); }

/* Entry animation */
.qa-card {
  animation: qa-entry .4s cubic-bezier(.4,0,.2,1) both;
}
.qa-card:nth-child(1) { animation-delay: .04s; }
.qa-card:nth-child(2) { animation-delay: .09s; }
.qa-card:nth-child(3) { animation-delay: .14s; }
.qa-card:nth-child(4) { animation-delay: .19s; }
.qa-card:nth-child(5) { animation-delay: .24s; }
.qa-card:nth-child(6) { animation-delay: .29s; }

@keyframes qa-entry {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: none; }
}

/* ── Icon wrap ── */
.qa-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0,109,255,.04);
  color: var(--qa-color, var(--primary));
  border: 1px solid rgba(0,109,255,.08);
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms cubic-bezier(.4,0,.2,1);
}
.qa-icon-wrap svg {
  width: 18px;
  height: 18px;
  transition: transform 250ms cubic-bezier(.34,1.56,.64,1);
}

.qa-card:hover .qa-icon-wrap {
  background: color-mix(in srgb, var(--qa-color, var(--primary)) 15%, transparent);
  box-shadow: 0 0 18px -4px var(--qa-color, var(--primary));
  transform: scale(1.08);
}
.qa-card:hover .qa-icon-wrap svg {
  transform: scale(1.15) rotate(-5deg);
}

/* ── Text ── */
.qa-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.qa-text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  transition: color 200ms ease;
}
.qa-card:hover .qa-text strong { color: var(--qa-color, var(--primary)); }

.qa-text small {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Arrow icon ── */
.qa-arrow {
  display: flex;
  align-items: center;
  color: var(--text-3);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 200ms ease,
    transform 200ms cubic-bezier(.4,0,.2,1),
    color 200ms ease;
}
.qa-arrow svg { width: 14px; height: 14px; }
.qa-card:hover .qa-arrow {
  opacity: 1;
  transform: none;
  color: var(--qa-color, var(--primary));
}

/* ── Per-card color palette ── */
.qa-pix    { --qa-color: #18cfff; }
.qa-link   { --qa-color: #0078ff; }
.qa-fatura { --qa-color: #8fc9ff; }
.qa-cliente{ --qa-color: #2aa7ff; }
.qa-api    { --qa-color: #006dff; }
.qa-saque  { --qa-color: #6fb6ff; }

/* ── Active/selected state ── */
.qa-card.qa-active {
  background: color-mix(in srgb, var(--qa-color, var(--primary)) 8%, transparent);
  border-color: var(--qa-color, var(--primary));
}
.qa-card.qa-active .qa-text strong { color: var(--qa-color, var(--primary)); }
.qa-card.qa-active .qa-arrow { opacity: 1; transform: none; color: var(--qa-color, var(--primary)); }

/* ── Actions panel height ── */
.actions-panel {
  display: flex;
  flex-direction: column;
}
.actions-panel .panel-header {
  flex-shrink: 0;
}
.actions-panel .quick-actions-grid {
  flex: 1;
  overflow: auto;
}

/* ── Fallback para color-mix (Safari < 16.2, Firefox < 113) ── */
@supports not (background: color-mix(in srgb, red 1%, blue)) {
  .qa-card:hover .qa-icon-wrap { background: rgba(0,140,255,.15); }
  .qa-pix:hover    .qa-icon-wrap { background: rgba(0,140,255,.15);  }
  .qa-link:hover   .qa-icon-wrap { background: rgba(108,142,255,.15); }
  .qa-fatura:hover .qa-icon-wrap { background: rgba(245,158,11,.15);  }
  .qa-cliente:hover .qa-icon-wrap{ background: rgba(167,139,250,.15); }
  .qa-api:hover    .qa-icon-wrap { background: rgba(52,211,153,.15);  }
  .qa-saque:hover  .qa-icon-wrap { background: rgba(244,114,182,.15); }
}

/* ── Idle glow pulse em cada ícone (staggered) ── */
@keyframes qa-icon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--qa-color, #12c8ff); }
  50%       { box-shadow: 0 0 0 4px transparent; }
}
.qa-pix    .qa-icon-wrap { animation: qa-icon-pulse 3.0s ease-in-out 0.5s infinite; }
.qa-link   .qa-icon-wrap { animation: qa-icon-pulse 3.0s ease-in-out 0.8s infinite; }
.qa-fatura .qa-icon-wrap { animation: qa-icon-pulse 3.0s ease-in-out 1.1s infinite; }
.qa-cliente .qa-icon-wrap{ animation: qa-icon-pulse 3.0s ease-in-out 1.4s infinite; }
.qa-api    .qa-icon-wrap { animation: qa-icon-pulse 3.0s ease-in-out 1.7s infinite; }
.qa-saque  .qa-icon-wrap { animation: qa-icon-pulse 3.0s ease-in-out 2.0s infinite; }

/* Pausa pulse no hover para não conflitar */
.qa-card:hover .qa-icon-wrap { animation: none; }

/* ── Linha separadora sutil entre cards ── */
.qa-card + .qa-card { border-top: 1px solid rgba(255,255,255,.025); border-radius: 12px; }
.quick-actions-grid { gap: 4px; }

/* ── Responsivo: compactar em telas pequenas ── */
@media (max-width: 900px) {
  .qa-text small { display: none; }
  .qa-card { padding: 10px 12px; }
  .qa-icon-wrap { width: 34px; height: 34px; }
}

/* ── Esconder texto de botões secundários no mobile ── */
@media (max-width: 520px) {
  .dashboard-actions .btn-label { display: none; }
  .dashboard-actions .button { padding: 0 12px; min-width: 38px; }
}

/* ═══════════════════════════════════════════════════
   HOME ABACATE-INSPIRED — EXALTA BLUE
═══════════════════════════════════════════════════ */

body.ab-home {
  --ab-blue: #18cfff;
  --ab-blue-2: #006dff;
  --ab-blue-3: #0a8dff;
  --ab-ink: #173f46;
  --ab-text: #26344f;
  --ab-muted: #68758f;
  --ab-line: #dce6f3;
  --ab-soft: #f7fbff;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(24, 207, 255, .11) 1px, transparent 1px) 0 0 / 334px 100%,
    repeating-linear-gradient(45deg, rgba(0, 109, 255, .13) 0 1px, transparent 1px 15px),
    #ffffff;
  color: var(--ab-text);
  overflow-x: hidden;
}

.ab-home h1,
.ab-home h2,
.ab-home h3,
.ab-home h4 {
  letter-spacing: 0;
}

.ab-home p {
  color: var(--ab-text);
}

.ab-page {
  width: min(1520px, calc(100% - 32px));
  margin: 8px auto 48px;
  position: relative;
}

.ab-nav {
  height: 108px;
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  align-items: center;
  gap: 24px;
  padding: 0 32px 0 38px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--ab-line);
  border-top: 2px solid var(--ab-blue-2);
  border-radius: 0 0 8px 8px;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ab-nav.scrolled {
  box-shadow: 0 18px 54px rgba(8, 46, 96, .08);
}

.ab-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.ab-brand img {
  width: 116px;
  height: 58px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 18px rgba(0, 109, 255, .14));
}

.ab-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.ab-menu a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 8px;
  border-radius: 999px;
  color: #173f46;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.ab-menu a:hover {
  color: var(--ab-blue-2);
  background: rgba(24, 207, 255, .1);
}

.ab-menu span {
  color: var(--ab-blue-2);
  font-size: 14px;
  transform: translateY(-1px);
}

.ab-nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 48px;
  border-left: 1px solid var(--ab-line);
  padding-left: 14px;
}

.ab-platform-btn,
.ab-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ab-blue), var(--ab-blue-2));
  color: #032332;
  font-weight: 700;
  box-shadow: 0 18px 36px rgba(0, 109, 255, .18);
  transition: transform var(--transition), box-shadow var(--transition);
}

.ab-platform-btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.ab-platform-btn svg,
.ab-primary-btn svg {
  width: 16px;
  height: 16px;
  color: #053246;
}

.ab-platform-btn:hover,
.ab-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(0, 109, 255, .26);
}

.ab-menu-toggle {
  display: none;
  background: #ffffff;
  border-color: var(--ab-line);
  color: var(--ab-ink);
}

.ab-menu-toggle span {
  background: var(--ab-ink);
}

.ab-hero-wrap {
  border-left: 1px solid var(--ab-line);
  border-right: 1px solid var(--ab-line);
}

.ab-hero {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(420px, .8fr) minmax(560px, 1.2fr);
  align-items: center;
  gap: 44px;
  overflow: hidden;
  border: 1px solid var(--ab-line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background:
    radial-gradient(circle at 88% 86%, rgba(0, 215, 255, .5) 0 11%, rgba(0, 128, 255, .32) 22%, rgba(255, 255, 255, 0) 43%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 63%, rgba(24, 207, 255, .07) 100%);
}

.ab-hero::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 47%;
  height: 16%;
  background: linear-gradient(90deg, rgba(24, 207, 255, .14), rgba(0, 109, 255, .82));
  filter: blur(.2px);
  opacity: .95;
}

.ab-hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  padding-left: clamp(42px, 6vw, 104px);
  padding-top: 24px;
}

.ab-ai-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  margin-bottom: 30px;
  padding: 0 22px;
  border: 1px solid var(--ab-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #26344f;
  font-size: 14px;
  box-shadow: 0 16px 36px rgba(19, 64, 96, .05);
}

.ab-ai-pill strong {
  color: var(--ab-ink);
  font-weight: 800;
}

.ab-ai-icons {
  display: inline-flex;
  align-items: center;
  width: 54px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
}

.ab-ai-icons i {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ab-blue);
  box-shadow: 0 6px 14px rgba(0, 109, 255, .18);
}

.ab-ai-icons i:nth-child(1) {
  left: 0;
  background: conic-gradient(from 20deg, #ff8b4a, #ff4b8d, #ffd166, #ff8b4a);
}

.ab-ai-icons i:nth-child(2) {
  left: 16px;
  background: linear-gradient(135deg, #8d7bff, #18cfff);
}

.ab-ai-icons i:nth-child(3) {
  left: 32px;
  background: linear-gradient(135deg, #006dff, #ff4b8d);
}

.ab-hero h1 {
  margin: 0 0 32px;
  color: var(--ab-ink);
  font-size: clamp(52px, 4.75vw, 70px);
  line-height: .98;
  font-weight: 600;
}

.ab-hero h1 span {
  color: var(--ab-blue-2);
}

.ab-hero-copy p {
  max-width: 520px;
  margin: 0;
  color: #293956;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}

.ab-hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 62px;
}

.ab-primary-btn {
  min-height: 50px;
  padding: 0 17px 0 19px;
  font-size: 16px;
}

.ab-text-btn {
  color: #0b3340;
  font-size: 16px;
  font-weight: 700;
}

.ab-text-btn:hover {
  color: var(--ab-blue-2);
}

.ab-trust-row {
  display: flex;
  align-items: center;
  gap: 54px;
  margin-top: 72px;
}

.ab-trust-row > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
}

.ab-trust-icon {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(24, 207, 255, .16);
  color: #0b5362;
}

.ab-trust-icon svg {
  width: 22px;
  height: 22px;
}

.ab-trust-row strong {
  color: #143d47;
  font-size: 14px;
  font-weight: 800;
}

.ab-trust-row small {
  color: #253a56;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.ab-visual {
  position: relative;
  z-index: 2;
  min-height: 600px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 0;
}

.ab-desktop-card {
  width: min(760px, 96%);
  height: 614px;
  display: grid;
  grid-template-columns: 176px 1fr;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, .88);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(4, 33, 62, .15);
}

.ab-desktop-sidebar {
  padding: 22px 20px;
  background: #f5f8fc;
  border-right: 1px solid #e6edf6;
}

.ab-desktop-sidebar span {
  display: block;
  height: 34px;
  margin-top: 16px;
  border-radius: 8px;
  background: #e8eef7;
}

.ab-desktop-sidebar .ab-mini-mark {
  width: 12px;
  height: 12px;
  margin: 0 0 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ab-blue), var(--ab-blue-2));
  box-shadow: 0 0 0 4px rgba(24, 207, 255, .14);
}

.ab-desktop-main {
  min-width: 0;
  background: #ffffff;
}

.ab-dash-head {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  border-bottom: 1px solid #eaf0f7;
  color: #0f172a;
  font-size: 12px;
}

.ab-dash-head span {
  width: 16px;
  height: 16px;
  order: -1;
  border-radius: 4px;
  background: linear-gradient(180deg, #9dcaff, #006dff);
}

.ab-sales {
  padding: 28px 28px 24px;
  border-bottom: 1px solid #edf2f8;
}

.ab-sales small,
.ab-phone-card small {
  display: block;
  margin-bottom: 6px;
  color: #8b95ad;
  font-size: 12px;
}

.ab-sales strong {
  color: #111827;
  font-size: 30px;
  font-weight: 700;
}

.ab-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 28px 14px;
}

.ab-tabs span,
.ab-phone-tabs span {
  padding: 7px 10px;
  border-radius: 8px;
  color: #667085;
  background: #f4f7fb;
  font-size: 11px;
  font-weight: 700;
}

.ab-tabs .active,
.ab-phone-tabs span:first-child {
  color: #06384a;
  background: rgba(24, 207, 255, .2);
}

.ab-chart-card {
  margin: 0 28px 0;
  border: 1px solid #e8eef7;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.ab-chart-title {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid #edf2f8;
  color: #2a344b;
  font-size: 11px;
  font-weight: 800;
}

.ab-chart-grid {
  position: relative;
  height: 214px;
  background:
    linear-gradient(#edf3fa 1px, transparent 1px) 0 0 / 100% 38px,
    linear-gradient(90deg, #edf3fa 1px, transparent 1px) 0 0 / 64px 100%;
}

.ab-chart-grid svg {
  position: absolute;
  inset: 16px 14px 12px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
}

.ab-area {
  fill: url(#abBlueArea);
}

.ab-line {
  fill: none;
  stroke: var(--ab-blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ab-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  border-top: 1px solid #edf2f8;
}

.ab-kpi-row div {
  min-height: 88px;
  padding: 20px 18px;
  border-right: 1px solid #edf2f8;
}

.ab-kpi-row div:last-child {
  border-right: 0;
}

.ab-kpi-row span {
  display: block;
  color: #6e7890;
  font-size: 11px;
  font-weight: 700;
}

.ab-kpi-row strong {
  display: block;
  margin-top: 4px;
  color: #101827;
  font-size: 18px;
}

.ab-phone-card {
  position: absolute;
  left: max(4px, 5%);
  top: 150px;
  width: 240px;
  min-height: 505px;
  padding: 18px 16px 16px;
  border: 10px solid rgba(255, 255, 255, .92);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(4, 33, 62, .16);
}

.ab-phone-status {
  display: flex;
  justify-content: space-between;
  color: #020617;
  font-size: 11px;
  font-weight: 800;
}

.ab-phone-status i {
  width: 44px;
  height: 10px;
  border-radius: 999px;
  background: #eef3f8;
}

.ab-phone-title {
  margin-top: 18px;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.ab-phone-card > strong {
  display: block;
  color: #111827;
  font-size: 25px;
  line-height: 1.1;
}

.ab-phone-tabs {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}

.ab-phone-tabs span {
  padding: 7px 8px;
  font-size: 10px;
}

.ab-phone-chart {
  height: 124px;
  margin-top: 12px;
}

.ab-phone-chart svg {
  width: 100%;
  height: 100%;
}

.ab-phone-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid #eef3f8;
  color: #111827;
}

.ab-phone-list span {
  color: #536078;
  font-size: 11px;
  font-weight: 700;
}

.ab-phone-list strong {
  font-size: 16px;
}

.ab-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 150px;
  border: 1px solid var(--ab-line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: rgba(255, 255, 255, .9);
}

.ab-metrics article {
  padding: 30px 36px;
  border-right: 1px dashed #d9e4f2;
}

.ab-metrics article:last-child {
  border-right: 0;
}

.ab-metrics strong {
  display: block;
  color: var(--ab-ink);
  font-size: 20px;
  font-weight: 800;
}

.ab-metrics span {
  display: block;
  max-width: 330px;
  margin-top: 8px;
  color: #536078;
  font-size: 14px;
  line-height: 1.55;
}

.ab-chat {
  position: fixed;
  right: 28px;
  bottom: 26px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ab-blue), var(--ab-blue-2));
  box-shadow: 0 20px 40px rgba(0, 109, 255, .25);
}

.ab-chat svg {
  width: 30px;
  height: 30px;
}

@media (max-width: 1220px) {
  .ab-nav {
    grid-template-columns: 190px 1fr 225px;
    padding-inline: 22px;
  }

  .ab-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }

  .ab-hero-copy {
    width: min(100%, 760px);
    padding-left: clamp(28px, 6vw, 76px);
    padding-right: clamp(28px, 6vw, 76px);
  }

  .ab-visual {
    min-height: 590px;
    padding-inline: 28px;
  }

  .ab-desktop-card {
    margin-left: auto;
  }

  .ab-phone-card {
    left: 48px;
  }
}

@media (max-width: 900px) {
  .ab-page {
    width: min(100% - 18px, 760px);
    margin-top: 6px;
  }

  /* ── Nav bar: linha simples com logo + hamburger ── */
  .ab-nav {
    height: 64px;
    min-height: 64px;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 0 18px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 24px rgba(0,45,95,.06);
  }

  .ab-brand img {
    width: 96px;
    height: 48px;
  }

  .ab-menu-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(0,109,255,.06);
    border: 1.5px solid rgba(0,109,255,.12);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
  }

  .ab-menu-toggle:hover {
    background: rgba(0,109,255,.1);
    border-color: rgba(0,109,255,.2);
  }

  /* ── Drawer: nav e actions ficam ocultos por padrão ── */
  .ab-menu,
  .ab-nav-actions {
    display: none;
  }

  /* ── Overlay escuro por trás do drawer ── */
  .ab-mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15,30,60,.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }

  .ab-mobile-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  /* ── Drawer lateral deslizante ── */
  .ab-mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100dvh;
    background: #ffffff;
    z-index: 1201;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: -8px 0 48px rgba(0,45,95,.15);
    border-left: 1px solid rgba(0,109,255,.1);
    transition: right .35s cubic-bezier(.22,1,.36,1);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .ab-mobile-drawer.open {
    right: 0;
  }

  /* Cabeçalho do drawer */
  .ab-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0,109,255,.08);
    background: linear-gradient(135deg, rgba(24,207,255,.04), rgba(0,109,255,.02));
    flex-shrink: 0;
  }

  .ab-drawer-head img {
    width: 88px;
    height: 44px;
    object-fit: contain;
  }

  /* Botão X fechar */
  .ab-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid rgba(0,109,255,.15);
    background: rgba(0,109,255,.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #173f46;
    font-size: 18px;
    line-height: 1;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
    flex-shrink: 0;
  }

  .ab-drawer-close:hover {
    background: rgba(255,77,106,.08);
    border-color: rgba(255,77,106,.2);
    color: #ff4d6a;
    transform: rotate(90deg);
  }

  /* Conteúdo do drawer */
  .ab-drawer-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 12px 20px;
    gap: 4px;
    overflow-y: auto;
  }

  /* Item de menu accordion no drawer */
  .ab-drawer-item {
    border-radius: 12px;
    overflow: hidden;
  }

  .ab-drawer-item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #173f46;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    text-align: left;
  }

  .ab-drawer-item-btn:hover {
    background: rgba(0,109,255,.06);
    color: var(--ab-blue-2);
  }

  .ab-drawer-item-btn.active {
    background: rgba(0,109,255,.06);
    color: var(--ab-blue-2);
  }

  .ab-drawer-item-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform .25s ease;
    color: var(--ab-blue-2);
  }

  .ab-drawer-item-btn.active svg {
    transform: rotate(180deg);
  }

  .ab-drawer-sub {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px 8px;
  }

  .ab-drawer-sub.open {
    display: flex;
  }

  .ab-drawer-sub a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #173f46;
    transition: background .2s ease;
    text-decoration: none;
  }

  .ab-drawer-sub a:hover {
    background: rgba(24,207,255,.1);
  }

  .ab-drawer-sub strong {
    font-size: 13.5px;
    font-weight: 700;
    color: #173f46;
  }

  .ab-drawer-sub small {
    font-size: 12px;
    color: #66758d;
    line-height: 1.4;
  }

  /* Link simples (Preços) */
  .ab-drawer-link {
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #173f46;
    transition: background .2s ease, color .2s ease;
    text-decoration: none;
  }

  .ab-drawer-link:hover {
    background: rgba(0,109,255,.06);
    color: var(--ab-blue-2);
  }

  /* Separador */
  .ab-drawer-sep {
    height: 1px;
    background: rgba(0,109,255,.08);
    margin: 8px 4px;
    border: none;
  }

  /* Rodapé do drawer: botão CTA */
  .ab-drawer-foot {
    padding: 12px 12px 20px;
    border-top: 1px solid rgba(0,109,255,.08);
    flex-shrink: 0;
  }

  .ab-drawer-foot .ab-platform-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    min-height: 50px;
    font-size: 15px;
  }

  /* ── Restante do 900px ── */
  .ab-hero {
    display: block;
    min-height: auto;
  }

  .ab-hero-copy {
    padding: 48px 24px 36px;
  }

  .ab-ai-pill {
    min-height: auto;
    padding: 12px 16px;
    font-size: 13px;
  }

  .ab-hero h1 {
    font-size: clamp(44px, 13vw, 60px);
  }

  .ab-hero-actions {
    margin-top: 40px;
  }

  .ab-trust-row {
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 44px;
  }

  .ab-visual {
    min-height: 450px;
    padding: 0 16px 44px;
    overflow: hidden;
  }

  .ab-desktop-card {
    width: 690px;
    height: 500px;
    grid-template-columns: 128px 1fr;
    transform: translateX(80px);
  }

  .ab-phone-card {
    left: 20px;
    top: 52px;
    transform: scale(.86);
    transform-origin: left top;
    animation: none;
  }

  .ab-metrics {
    grid-template-columns: 1fr;
  }

  .ab-metrics article {
    border-right: 0;
    border-bottom: 1px dashed #d9e4f2;
  }

  .ab-metrics article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  body.ab-home {
    background:
      repeating-linear-gradient(45deg, rgba(0, 109, 255, .1) 0 1px, transparent 1px 14px),
      #ffffff;
  }

  .ab-page {
    width: calc(100% - 10px);
    margin-bottom: 28px;
  }

  .ab-hero-copy {
    padding: 38px 18px 30px;
  }

  .ab-ai-pill {
    width: 100%;
    align-items: flex-start;
    border-radius: 18px;
    line-height: 1.35;
  }

  .ab-hero h1 {
    margin-bottom: 24px;
    font-size: clamp(39px, 12.8vw, 52px);
  }

  .ab-hero-copy p {
    font-size: 16px;
  }

  .ab-hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    margin-top: 34px;
  }

  .ab-primary-btn {
    width: 100%;
  }

  .ab-trust-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ab-trust-row small {
    white-space: normal;
  }

  .ab-visual {
    min-height: 350px;
  }

  .ab-desktop-card {
    width: 600px;
    height: 420px;
    border-width: 8px;
    grid-template-columns: 0 1fr;
    transform: translateX(110px);
  }

  .ab-desktop-sidebar {
    display: none;
  }

  .ab-phone-card {
    left: 8px;
    top: 34px;
    transform: scale(.72);
  }

  .ab-kpi-row {
    display: none;
  }

  .ab-chat {
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
  }
}

/* ─── Drawer mobile: oculto por padrão no desktop ─── */
.ab-mobile-overlay,
.ab-mobile-drawer {
  display: none;
}

/* ─── Full homepage completion ─── */
.ab-home [data-reveal] {
  transform: translateY(28px);
}

.ab-home [data-reveal].revealed {
  transform: none;
}

.ab-nav {
  transition: box-shadow .28s ease, transform .28s ease, background .28s ease;
}

.ab-nav::after {
  content: '';
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24,207,255,.5), transparent);
  opacity: .55;
}

.ab-menu {
  gap: 8px;
}

.ab-menu-item {
  position: relative;
}

.ab-menu-item > button,
.ab-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #173f46;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: color .22s ease, background .22s ease, transform .22s ease;
  outline: none;
}

/* Chevron SVG — rotaciona ao abrir */
.ab-chevron {
  flex-shrink: 0;
  color: var(--ab-blue-2);
  opacity: .8;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), opacity .2s ease;
}

.ab-menu-item > button:hover,
.ab-menu-link:hover {
  color: var(--ab-blue-2);
  background: rgba(0,109,255,.07);
  transform: translateY(-1px);
}

/* Estado aberto (controlado por JS) */
.ab-menu-item.open > button {
  color: var(--ab-blue-2);
  background: rgba(0,109,255,.09);
}

.ab-menu-item.open .ab-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* ── Mega menu dropdown ── */
.ab-mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 340px;
  padding: 8px;
  border: 1px solid rgba(0,109,255,.12);
  border-radius: 20px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 8px 32px rgba(0,45,95,.1),
    0 2px 8px rgba(0,109,255,.06),
    inset 0 1px 0 rgba(255,255,255,.8);
  transform: translate(-50%, 10px) scale(.97);
  transform-origin: top center;
  opacity: 0;
  pointer-events: none;
  /* Transição com cubic-bezier elástico */
  transition:
    opacity .22s ease,
    transform .28s cubic-bezier(.34,1.56,.64,1);
  z-index: 999;
}

/* Ponte invisível para não fechar ao mover o mouse do botão para o menu */
.ab-mega::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

/* Classe .open adicionada por JS */
.ab-menu-item.open .ab-mega {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.ab-mega a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 3px 8px;
  padding: 13px 15px;
  border-radius: 14px;
  color: #173f46;
  text-decoration: none;
  position: relative;
  transition: background .18s ease, transform .18s ease;
  /* Animação de entrada escalonada */
  opacity: 0;
  transform: translateX(-6px);
}

/* Quando o menu abre, animar os links */
.ab-menu-item.open .ab-mega a {
  opacity: 1;
  transform: translateX(0);
}

.ab-menu-item.open .ab-mega a:nth-child(1) { transition: background .18s, transform .18s, opacity .22s .06s ease; }
.ab-menu-item.open .ab-mega a:nth-child(2) { transition: background .18s, transform .18s, opacity .22s .12s ease; }
.ab-menu-item.open .ab-mega a:nth-child(3) { transition: background .18s, transform .18s, opacity .22s .18s ease; }

.ab-mega a:hover {
  background: rgba(0,109,255,.06);
  transform: translateX(3px);
}

.ab-mega a::after {
  content: '→';
  grid-row: 1;
  grid-column: 2;
  font-size: 13px;
  color: var(--ab-blue-2);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s ease, transform .18s ease;
  align-self: center;
  margin-top: 2px;
}

.ab-mega a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.ab-mega strong {
  font-size: 14px;
  font-weight: 700;
  grid-column: 1;
}

.ab-mega small {
  color: #66758d;
  font-size: 12px;
  line-height: 1.45;
  grid-column: 1;
}

.ab-hero-copy,
.ab-desktop-card,
.ab-phone-card,
.ab-ai-pill {
  animation: ab-rise .75s cubic-bezier(.22,1,.36,1) both;
}

.ab-desktop-card { animation-delay: .12s; }
.ab-phone-card { animation-delay: .24s; }
.ab-ai-pill { animation-delay: .05s; }

.ab-chart-grid .ab-line,
.ab-phone-chart path:last-child {
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  animation: ab-draw 1.65s .42s ease forwards;
}

.ab-chart-grid .ab-area,
.ab-phone-chart path:first-of-type {
  opacity: 0;
  animation: ab-fade .8s .75s ease forwards;
}

.ab-phone-card {
  animation-name: ab-float-in, ab-phone-float;
  animation-duration: .85s, 5.5s;
  animation-delay: .24s, 1.2s;
  animation-timing-function: cubic-bezier(.22,1,.36,1), ease-in-out;
  animation-fill-mode: both, none;
  animation-iteration-count: 1, infinite;
}

@keyframes ab-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes ab-float-in {
  from { opacity: 0; transform: translateY(30px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@keyframes ab-phone-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes ab-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes ab-fade {
  to { opacity: 1; }
}

.ab-products,
.ab-price-band,
.ab-integrations,
.ab-suite-intro,
.ab-solution-grid,
.ab-stories,
.ab-faq,
.ab-final-cta,
.ab-footer {
  border-left: 1px solid var(--ab-line);
  border-right: 1px solid var(--ab-line);
  background-color: rgba(255,255,255,.95);
}

.ab-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 305px;
  border: 1px solid var(--ab-line);
  border-top: 0;
  background:
    linear-gradient(90deg, transparent 24%, rgba(0,109,255,.14) 24% 24.08%, transparent 24.08% 49%, rgba(0,109,255,.14) 49% 49.08%, transparent 49.08% 74%, rgba(0,109,255,.14) 74% 74.08%, transparent 74.08%),
    rgba(255,255,255,.96);
}

.ab-products article {
  padding: 76px 40px 34px 20px;
  border-right: 1px dashed #dbe6f3;
  position: relative;
}

.ab-products article:last-child {
  border-right: 0;
}

.ab-products article::before {
  content: '';
  position: absolute;
  top: 76px;
  left: 0;
  width: 4px;
  height: 48px;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(180deg, var(--ab-blue), var(--ab-blue-2));
}

.ab-product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(24,207,255,.12), rgba(0,109,255,.08));
  border: 1.5px solid rgba(0,109,255,.15);
  color: var(--ab-blue-2);
  box-shadow: 0 8px 24px rgba(0,109,255,.08);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, background .25s ease;
}

.ab-product-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  flex-shrink: 0;
}

.ab-products article:hover .ab-product-icon {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 36px rgba(0,109,255,.16);
  background: linear-gradient(135deg, rgba(24,207,255,.2), rgba(0,109,255,.14));
}

.ab-products strong {
  display: block;
  color: var(--ab-ink);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0;
}

.ab-products p {
  max-width: 285px;
  margin-top: 16px;
  color: #4f5a73;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
}

.ab-price-band {
  min-height: 340px;
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: center;
  gap: 40px;
  padding: 60px clamp(34px, 7vw, 104px);
  border-bottom: 1px solid var(--ab-line);
  background:
    radial-gradient(circle, rgba(0,109,255,.09) 1px, transparent 1.5px) right center / 12px 12px,
    #ffffff;
}

.ab-price-band h2 {
  color: var(--ab-ink);
  font-size: clamp(36px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1.04;
}

.ab-price-band h2 span {
  color: var(--ab-blue-2);
}

.ab-price-band p {
  margin-top: 22px;
  color: #4f5a73;
  font-size: 18px;
  font-weight: 600;
}

.ab-price-band a {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ab-blue-2);
  font-size: 16px;
  font-weight: 800;
}

.ab-price-band svg,
.ab-final-cta svg {
  width: 18px;
  height: 18px;
}

.ab-section-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--ab-line);
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  color: var(--ab-ink);
  font-size: 13px;
  font-weight: 800;
}

.ab-integrations {
  min-height: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ab-line);
  background:
    radial-gradient(circle, rgba(0,109,255,.08) 1px, transparent 1.5px) center / 10px 10px,
    #ffffff;
}

.ab-integrations h2 {
  margin-top: 32px;
  color: var(--ab-ink);
  font-size: clamp(38px, 4.4vw, 50px);
  font-weight: 600;
  line-height: 1.12;
}

.ab-integrations p {
  max-width: 560px;
  margin: 24px auto 34px;
  color: #4f5a73;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
}

.ab-integrations .ab-primary-btn {
  min-height: 50px;
  padding: 0 20px;
}

.ab-underlink {
  margin-top: 12px;
  color: #4f5a73;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}

.ab-code-pill {
  position: absolute;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid #dfe8f4;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  color: #667085;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(28,54,90,.08);
  animation: ab-pill-float 6s ease-in-out infinite;
}

.ab-pill-python { left: 14%; top: 25%; animation-delay: 0s; }
.ab-pill-n8n { left: 8%; bottom: 26%; animation-delay: .7s; }
.ab-pill-ruby { left: 13%; bottom: 10%; animation-delay: 1.4s; }
.ab-pill-php { right: 16%; top: 27%; animation-delay: .4s; }
.ab-pill-lovable { right: 7%; bottom: 35%; animation-delay: 1s; }
.ab-pill-js { right: 12%; bottom: 13%; animation-delay: 1.7s; }

@keyframes ab-pill-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.ab-suite-intro {
  min-height: 320px;
  display: grid;
  grid-template-columns: .95fr 1fr;
  gap: 70px;
  align-items: start;
  padding: 76px clamp(34px, 4.2vw, 64px) 64px;
  border-bottom: 1px solid var(--ab-line);
}

.ab-suite-intro h2 {
  color: var(--ab-ink);
  font-size: clamp(38px, 4.4vw, 49px);
  font-weight: 600;
  line-height: 1.35;
}

.ab-suite-intro h2 span {
  display: inline-block;
  position: relative;
}

.ab-suite-intro h2 span::after {
  content: '';
  position: absolute;
  left: -16px;
  right: -16px;
  top: 48%;
  height: 58px;
  border: 4px solid var(--ab-blue);
  border-radius: 50%;
  transform: rotate(-5deg) translateY(-50%);
  opacity: .7;
}

.ab-suite-intro p {
  max-width: 620px;
  color: #4f5a73;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.75;
}

.ab-solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--ab-line);
}

.ab-solution-grid article {
  display: grid;
  grid-template-rows: 450px auto;
  min-height: 600px;
  border-right: 1px solid var(--ab-line);
  background: #ffffff;
}

.ab-solution-grid article:last-child {
  border-right: 0;
}

.ab-solution-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle, rgba(0,109,255,.08) 1px, transparent 1.5px) center / 10px 10px,
    #ffffff;
}

.ab-solution-art span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 112px;
  color: var(--ab-blue-2);
  font-size: 58px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(24,207,255,.2), rgba(0,109,255,.13));
  border: 10px solid #ffffff;
  box-shadow: 0 22px 0 #e7eef8, 0 36px 60px rgba(0,45,95,.1);
  transform: rotate(-14deg) skew(-7deg);
}

.ab-art-checkout span {
  border-radius: 50%;
  transform: rotate(-8deg);
}

.ab-art-shield span {
  border-radius: 48% 48% 60% 60%;
}

.ab-art-sub span {
  border-radius: 26px;
  transform: rotate(30deg) skew(-8deg);
}

.ab-solution-grid strong,
.ab-solution-grid p {
  padding-inline: 24px;
}

.ab-solution-grid strong {
  display: block;
  margin-top: 24px;
  color: var(--ab-ink);
  font-size: 20px;
  font-weight: 800;
}

.ab-solution-grid p {
  margin-top: 8px;
  padding-bottom: 28px;
  color: #4f5a73;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   DEPOIMENTOS — Marquee moderno
═══════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════
   DEPOIMENTOS — Light Premium Edition
═══════════════════════════════════════════════════ */
.ab-stories {
  padding: 100px 0 60px;
  text-align: center;
  overflow: hidden;
  position: relative;
  background: #fdfdfe;
  border-bottom: 1px solid var(--ab-line);
}

/* Fundo com mesh sutil parecendo com a imagem */
.ab-stories::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(24,207,255,0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0,109,255,0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(141,123,255,0.05) 0%, transparent 30%);
  pointer-events: none;
  z-index: 0;
}

.ab-stories > * {
  position: relative;
  z-index: 1;
}

.ab-stories-head {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px) 40px;
}

.ab-stories .ab-section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(0,45,95,0.08);
  color: var(--ab-ink);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0,45,95,0.03);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ab-stories .ab-section-pill svg {
  color: #3b82f6;
}

.ab-stories-head h2 {
  color: var(--ab-ink);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -1px;
}

.ab-stories-head > p {
  color: #5b6987;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Barra de Métricas ── */
.ab-stories-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
  max-width: 960px;
  margin: 0 auto 60px;
  padding: 24px 40px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,45,95,0.04), 0 1px 3px rgba(0,45,95,0.02);
  border: 1px solid rgba(0,45,95,0.06);
}

.ab-metric {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.ab-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ab-m-purple { background: #f3f0ff; color: #8b5cf6; }
.ab-m-green  { background: #ecfdf5; color: #10b981; }
.ab-m-yellow { background: #fef3c7; color: #f59e0b; }
.ab-m-blue   { background: #eff6ff; color: #3b82f6; }

.ab-metric strong {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: var(--ab-ink);
  line-height: 1.2;
}

.ab-metric small {
  display: block;
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

/* ── Carrossel ── */
.ab-stories-carousel {
  position: relative;
  max-width: 1280px; /* Aumentado para caber 3 cards inteiros + setas */
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
}

.ab-carousel-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0,45,95,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,45,95,0.06);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  flex-shrink: 0;
  z-index: 2;
  outline: none;
}
.ab-carousel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,45,95,0.1);
  background: #f8fafc;
}
.ab-carousel-btn:active {
  transform: translateY(0);
}

.ab-carousel-track-wrap {
  flex: 1;
  overflow: hidden;
  padding: 20px 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.ab-carousel-track-wrap::-webkit-scrollbar { display: none; }
.ab-carousel-track-wrap { -ms-overflow-style: none; scrollbar-width: none; }

.ab-carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

/* ── Card de depoimento ── */
.ab-tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 340px; /* Reduzido levemente para garantir 3 no PC em telas médias */
  min-height: 250px;
  padding: 32px;
  background: #ffffff;
  border: 1px solid rgba(0,45,95,0.06);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,45,95,0.03);
  text-align: left;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, border-color 0.3s;
  scroll-snap-align: center;
}

.ab-tcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,45,95,0.08);
}

/* Card Destaque */
.ab-tcard-featured {
  border-color: rgba(0,109,255,0.4);
  box-shadow: 0 16px 48px rgba(0,109,255,0.12), inset 0 0 0 1px rgba(0,109,255,0.1);
  transform: scale(1.02);
}
.ab-tcard-featured:hover {
  transform: translateY(-6px) scale(1.02);
}

.ab-tcard-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: #eff6ff;
  border: 1px solid rgba(0,109,255,0.2);
  color: #3b82f6;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,109,255,0.15);
}

/* Aspas decorativas */
.ab-tcard-quote {
  position: absolute;
  top: 24px;
  left: 28px;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: #e0e7ff;
  font-family: Georgia, serif;
  pointer-events: none;
  z-index: 0;
}

.ab-tcard-stars {
  font-size: 16px;
  color: #f5a623;
  letter-spacing: 2px;
  margin-bottom: 24px;
  text-align: right;
  z-index: 1;
  position: relative;
}

.ab-tcard-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 24px;
  z-index: 1;
  position: relative;
}

.ab-tcard-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,45,95,0.06);
  z-index: 1;
  position: relative;
}

.ab-tcard-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--av-a, #3b82f6), var(--av-b, #2563eb));
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ab-tcard-user > div:not(.ab-tcard-verify) {
  flex: 1;
}

.ab-tcard-user strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ab-ink);
}

.ab-tcard-user small {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.ab-tcard-verify {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* ── Paginação Dots ── */
.ab-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 50px;
}
.ab-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  padding: 0;
}
.ab-dot:hover {
  background: #94a3b8;
}
.ab-dot.active {
  width: 28px;
  border-radius: 10px;
  background: #3b82f6;
}

/* ── Trust Bar ── */
.ab-stories-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 32px;
  background: #ffffff;
  border: 1px solid rgba(0,45,95,0.06);
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(0,45,95,0.02);
}

.ab-trust-main {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  font-weight: 700;
  font-size: 14.5px;
}

.ab-trust-sep {
  width: 1px;
  height: 24px;
  background: rgba(0,45,95,0.1);
}

.ab-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13.5px;
  font-weight: 500;
}
.ab-trust-item svg {
  color: #64748b;
}

@media (max-width: 900px) {
  .ab-stories-metrics {
    gap: 20px;
    padding: 20px;
  }
  .ab-metric {
    width: 100%;
  }
  .ab-stories-trust {
    flex-direction: column;
    border-radius: 20px;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    text-align: center;
  }
  .ab-trust-sep {
    width: 100%;
    height: 1px;
  }
  .ab-carousel-btn {
    display: none;
  }
  .ab-tcard {
    width: calc(100vw - 40px); /* Garante que 1 card cabe certinho no mobile considerando o padding */
    min-width: unset;
    padding: 24px;
  }
}
.ab-faq {
  min-height: 660px;
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 82px;
  align-items: start;
  padding: 120px clamp(34px, 6vw, 104px);
  border-bottom: 1px solid var(--ab-line);
}

.ab-faq h2 {
  color: var(--ab-ink);
  font-size: clamp(38px, 4.2vw, 50px);
  font-weight: 600;
  line-height: 1.3;
}

.ab-faq p {
  max-width: 540px;
  margin-top: 30px;
  color: #4f5a73;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.65;
}

.ab-faq-list {
  border: 1px solid var(--ab-line);
  background: #ffffff;
}

.ab-faq-list details {
  border-bottom: 1px solid var(--ab-line);
}

.ab-faq-list details:last-child {
  border-bottom: 0;
}

.ab-faq-list summary {
  min-height: 76px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  color: var(--ab-ink);
  font-size: 19px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.ab-faq-list summary::-webkit-details-marker {
  display: none;
}

.ab-faq-list summary::before {
  content: '+';
  color: var(--ab-blue-2);
  font-size: 28px;
  font-weight: 400;
  transition: transform .18s ease;
}

.ab-faq-list details[open] summary::before {
  transform: rotate(45deg);
}

.ab-faq-list details p {
  margin: 0;
  padding: 0 28px 24px 68px;
  color: #4f5a73;
  font-size: 15px;
}

.ab-final-cta {
  min-height: 532px;
  display: grid;
  grid-template-columns: .85fr 1fr;
  align-items: center;
  overflow: hidden;
  margin: 64px clamp(34px, 6vw, 104px) 0;
  padding: 0 92px;
  border: 0;
  background:
    radial-gradient(circle, rgba(0,109,255,.12) 1px, transparent 1.5px) 75% 35% / 10px 10px,
    linear-gradient(135deg, rgba(24,207,255,.9), rgba(0,109,255,.86));
}

.ab-final-cta h2 {
  color: #063246;
  font-size: clamp(38px, 4.1vw, 50px);
  font-weight: 650;
  line-height: 1.25;
}

.ab-final-cta p {
  max-width: 430px;
  margin-top: 34px;
  color: #063246;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.55;
}

.ab-final-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  margin-top: 64px;
  padding: 0 20px;
  border-radius: 999px;
  background: #ffffff;
  color: #073343;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(0,55,95,.14);
}

.ab-rocket {
  position: relative;
  height: 100%;
  min-height: 420px;
}

.ab-rocket span {
  position: absolute;
  right: 12%;
  top: 16%;
  width: 92px;
  height: 380px;
  border-radius: 999px 999px 28px 28px;
  background: #073343;
  transform: rotate(42deg);
  box-shadow: -70px 105px 0 -20px rgba(255,255,255,.9), -120px 170px 0 -44px #073343;
  animation: ab-rocket 4.6s ease-in-out infinite;
}

.ab-rocket span::before {
  content: '';
  position: absolute;
  left: -210px;
  top: 116px;
  width: 210px;
  height: 110px;
  border-radius: 50%;
  border: 10px solid #073343;
  border-right: 0;
  border-bottom-color: transparent;
  transform: rotate(-26deg);
}

.ab-rocket span::after {
  content: '';
  position: absolute;
  left: -78px;
  top: 58px;
  width: 116px;
  height: 86px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 12px rgba(24,207,255,.55);
}

@keyframes ab-rocket {
  0%, 100% { translate: 0 0; }
  50% { translate: 18px -22px; }
}

.ab-footer {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 44px;
  min-height: 210px;
  padding: 58px clamp(34px, 6vw, 104px);
  border-bottom: 1px solid var(--ab-line);
}

.ab-footer img {
  width: 132px;
  height: 72px;
  object-fit: contain;
}

.ab-footer p {
  max-width: 330px;
  margin-top: 14px;
  color: #647189;
  font-size: 14px;
}

.ab-footer nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: center;
}

.ab-footer a {
  color: var(--ab-ink);
  font-size: 15px;
  font-weight: 800;
}

.ab-footer a:hover {
  color: var(--ab-blue-2);
}

@media (prefers-reduced-motion: reduce) {
  .ab-home *,
  .ab-home *::before,
  .ab-home *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1220px) {
  .ab-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .ab-products article:nth-child(2) {
    border-right: 0;
  }

  .ab-suite-intro,
  .ab-faq {
    grid-template-columns: 1fr;
  }

  .ab-solution-grid {
    grid-template-columns: 1fr;
  }

  .ab-solution-grid article {
    grid-template-rows: 320px auto;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ab-line);
  }
}

@media (max-width: 900px) {
  /* Mobile: mega menu vira drawer sub — controlado por JS ── */
  .ab-mega {
    position: static;
    width: 100%;
    display: none;
    margin: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    border-radius: 0;
    padding: 0;
    border: none;
    background: transparent;
  }

  /* O hover do desktop não interfere no mobile */
  .ab-menu-item:hover .ab-mega,
  .ab-menu-item:focus-within .ab-mega {
    display: none;
  }

  .ab-products {
    grid-template-columns: 1fr;
  }

  .ab-products article,
  .ab-products article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px dashed #dbe6f3;
  }

  .ab-products article:last-child {
    border-bottom: 0;
  }

  .ab-price-band {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ab-price-band a {
    justify-self: start;
  }

  .ab-code-pill {
    position: static;
    margin: 8px;
    animation: none;
    font-size: 15px;
  }

  .ab-integrations {
    min-height: auto;
    padding: 80px 22px;
  }

  .ab-integrations .ab-underlink {
    margin-bottom: 20px;
  }

  .ab-suite-intro,
  .ab-faq,
  .ab-stories {
    padding-inline: 24px;
  }

  .ab-story-rail {
    grid-template-columns: 1fr;
    margin-top: 54px;
  }

  .ab-final-cta {
    grid-template-columns: 1fr;
    margin-inline: 0;
    padding: 58px 28px;
  }

  .ab-rocket {
    min-height: 280px;
  }

  .ab-rocket span {
    right: 18%;
    top: 0;
    transform: rotate(42deg) scale(.74);
  }

  .ab-footer {
    grid-template-columns: 1fr;
  }

  .ab-footer nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .ab-products article {
    padding: 48px 24px 28px;
  }

  .ab-price-band,
  .ab-suite-intro,
  .ab-faq {
    padding: 58px 20px;
  }

  .ab-integrations h2,
  .ab-suite-intro h2,
  .ab-stories h2,
  .ab-faq h2,
  .ab-final-cta h2 {
    font-size: 36px;
  }

  .ab-solution-grid article {
    grid-template-rows: 260px auto;
  }

  .ab-solution-art span {
    transform: scale(.82) rotate(-14deg) skew(-7deg);
  }

  .ab-faq-list summary {
    min-height: 68px;
    padding: 16px 18px;
    font-size: 16px;
  }

  .ab-faq-list details p {
    padding: 0 18px 20px 58px;
  }

  .ab-final-cta {
    margin-top: 36px;
  }

  .ab-rocket {
    display: none;
  }
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.theme-toggle:hover { border-color: var(--border-hover); color: var(--primary-dim); }
.theme-toggle .theme-icon-sun { display: none; }
.theme-toggle .theme-icon-moon { display: block; }
.theme-toggle.is-dark .theme-icon-sun { display: block; }
.theme-toggle.is-dark .theme-icon-moon { display: none; }
.sigilo-top-bar {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sigilo-settings-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.78);
  color: var(--text-3);
  cursor: pointer;
}
.sigilo-settings-btn:hover {
  border-color: var(--border-hover);
  color: #7c5cbf;
}
.sigilo-top-bar .theme-toggle { width: 36px; height: 36px; }

/* Light auth base */
.sigilo-auth-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(124,92,191,.10), transparent 34%),
    linear-gradient(315deg, rgba(24,207,255,.10), transparent 34%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
  font-family: 'Inter', system-ui, sans-serif;
}
.sigilo-auth-main {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sigilo-logo-wrap {
  align-items: flex-start;
  display: flex;
  height: 210px;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
  transform: none;
  width: 100%;
}
.sigilo-logo-link-full { display: flex; justify-content: center; line-height: 0; width: 100%; }
.sigilo-logo-full-img {
  width: 380px;
  max-width: 85vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 34px rgba(90, 58, 170, .20));
  transform: translateY(42px);
}
.sigilo-subtitle { max-width: 360px; margin: 0 0 32px; color: var(--text-2); font-size: 13.5px; line-height: 1.7; }
.sigilo-form { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.sigilo-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 36px rgba(8, 46, 96, .05);
}
.sigilo-field:focus-within { border-color: rgba(124,92,191,.45); box-shadow: 0 0 0 3px rgba(124,92,191,.12); }
.sigilo-field-icon {
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}
.sigilo-field input {
  flex: 1;
  width: 100%;
  height: 48px;
  min-height: unset;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 14px 0 8px;
  font-size: 13.5px;
  border-radius: 0;
}
.sigilo-field input::placeholder { color: var(--text-3); font-size: 13.5px; opacity: 1; }
.sigilo-eye-btn { border: 0; background: transparent; color: var(--text-3); cursor: pointer; padding: 0; width: 40px; height: 40px; margin-right: 4px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.sigilo-btn-primary,
.sigilo-btn-register,
.sigilo-outline-btn {
  height: 52px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}
.sigilo-btn-primary,
.sigilo-btn-register {
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  overflow: hidden;
  position: relative;
}
.sigilo-btn-content {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.sigilo-btn-icon {
  display: flex;
  flex-shrink: 0;
  opacity: .9;
}
.sigilo-btn-shimmer,
.sigilo-btn-register-shimmer {
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%);
  background-size: 200% 100%;
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.sigilo-btn-primary,
.sigilo-btn-register {
  width: 100%;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #7c5cbf, #5f3ca8);
  box-shadow: 0 14px 32px rgba(124,92,191,.25);
}
.sigilo-btn-primary { margin-top: 4px; }
.sigilo-btn-register { margin-bottom: 6px; }
.sigilo-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  color: var(--text-3);
  font-size: 12px;
}
.sigilo-divider span { flex: 1; height: 1px; background: var(--border); }
.sigilo-divider small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sigilo-bottom-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.sigilo-outline-btn {
  border: 1px solid var(--border);
  color: var(--text-2);
  background: rgba(255,255,255,.75);
  padding: 0 12px;
  font-size: 13px;
}
.sigilo-forgot,
.sigilo-link { margin-top: 12px; color: #7c5cbf; font-weight: 700; font-size: 13px; }
.sigilo-terms { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: 12px; text-align: left; }
.sigilo-notice { width: 100%; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.sigilo-notice-success { background: var(--success-bg); color: var(--success); }
.sigilo-notice-danger { background: var(--danger-bg); color: var(--danger); }

/* Light dashboard fixes */
.dashboard-body:not(.theme-dark) .dashboard-columns {
  align-items: start;
}
.dashboard-body:not(.theme-dark) .dashboard-header,
.dashboard-body:not(.theme-dark) .dashboard-actions {
  position: relative;
  z-index: 700;
  overflow: visible;
}
.dashboard-body:not(.theme-dark) .chart-panel .panel-header h2,
.dashboard-body:not(.theme-dark) .actions-panel .panel-header h2 {
  font-size: clamp(28px, 3vw, 52px);
}
.dashboard-body:not(.theme-dark) .profile-dropdown-wrap {
  position: relative;
  z-index: 720;
}
.dashboard-body:not(.theme-dark) .profile-button {
  text-decoration: none;
}
.dashboard-body:not(.theme-dark) .profile-chevron {
  color: var(--text-3);
  flex-shrink: 0;
  margin-left: -2px;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.dashboard-body:not(.theme-dark) .profile-dropdown-wrap.open .profile-chevron {
  transform: rotate(180deg);
}
.dashboard-body:not(.theme-dark) .profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 46px rgba(8, 46, 96, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: opacity .2s cubic-bezier(.4,0,.2,1), visibility .2s, transform .2s cubic-bezier(.4,0,.2,1);
  z-index: 900;
}
.dashboard-body:not(.theme-dark) .profile-dropdown-wrap.open .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.dashboard-body:not(.theme-dark) .profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.dashboard-body:not(.theme-dark) .profile-dropdown-item:hover {
  background: rgba(0,109,255,.06);
  color: var(--text);
}
.dashboard-body:not(.theme-dark) .profile-dropdown-item svg {
  flex-shrink: 0;
  opacity: .72;
}
.dashboard-body:not(.theme-dark) .profile-dropdown-item:hover svg {
  opacity: 1;
}
.dashboard-body:not(.theme-dark) .profile-dropdown-danger {
  color: var(--danger);
}
.dashboard-body:not(.theme-dark) .profile-dropdown-danger:hover {
  background: var(--danger-bg);
  color: var(--danger);
}
.dashboard-body:not(.theme-dark) .profile-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}
.dashboard-body:not(.theme-dark) .profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  display: none;
}
.dashboard-body:not(.theme-dark) .profile-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dashboard-body:not(.theme-dark) .profile-modal::backdrop {
  background: rgba(10, 26, 48, .28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.dashboard-body:not(.theme-dark) .profile-modal-inner {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 28px 90px rgba(8, 46, 96, .20);
  color: var(--text);
  animation: pm-slide-in .35s cubic-bezier(.16,1,.3,1) both;
}
.dashboard-body:not(.theme-dark) .profile-modal-inner::-webkit-scrollbar { width: 4px; }
.dashboard-body:not(.theme-dark) .profile-modal-inner::-webkit-scrollbar-track { background: transparent; }
.dashboard-body:not(.theme-dark) .profile-modal-inner::-webkit-scrollbar-thumb {
  background: rgba(8, 46, 96, .14);
  border-radius: 10px;
}
@keyframes pm-slide-in {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dashboard-body:not(.theme-dark) .pm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  color: var(--text-3);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.dashboard-body:not(.theme-dark) .pm-close:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-bg);
}
.dashboard-body:not(.theme-dark) .pm-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding-right: 42px;
}
.dashboard-body:not(.theme-dark) .pm-avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #8b5cf6, #18cfff);
  color: #fff;
  box-shadow: 0 14px 34px rgba(124,92,191,.22);
}
.dashboard-body:not(.theme-dark) .pm-hero-info { min-width: 0; }
.dashboard-body:not(.theme-dark) .pm-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-body:not(.theme-dark) .pm-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.dashboard-body:not(.theme-dark) .pm-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(124,92,191,.10);
  border: 1px solid rgba(124,92,191,.20);
  color: #6f4fb8;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}
.dashboard-body:not(.theme-dark) .pm-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-3);
}
.dashboard-body:not(.theme-dark) .pm-status-dot.active {
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34,197,94,.38);
}
.dashboard-body:not(.theme-dark) .pm-status-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
}
.dashboard-body:not(.theme-dark) .pm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.dashboard-body:not(.theme-dark) .pm-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,109,255,.03);
  border: 1px solid var(--border);
}
.dashboard-body:not(.theme-dark) .pm-stat > svg {
  flex-shrink: 0;
  color: #7c5cbf;
}
.dashboard-body:not(.theme-dark) .pm-stat span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dashboard-body:not(.theme-dark) .pm-stat strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
}
.dashboard-body:not(.theme-dark) .pm-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(0,109,255,.03);
  border: 1px solid var(--border);
}
.dashboard-body:not(.theme-dark) .pm-tab {
  flex: 1;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  transition: background .2s, color .2s;
}
.dashboard-body:not(.theme-dark) .pm-tab:hover {
  background: rgba(255,255,255,.74);
  color: var(--text-2);
}
.dashboard-body:not(.theme-dark) .pm-tab.active {
  background: var(--surface);
  color: #6f4fb8;
  box-shadow: 0 6px 18px rgba(8,46,96,.08);
}
.dashboard-body:not(.theme-dark) .pm-tab-content {
  display: none;
  animation: pm-tab-fade .3s ease both;
}
.dashboard-body:not(.theme-dark) .pm-tab-content.active { display: block; }
@keyframes pm-tab-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.dashboard-body:not(.theme-dark) .pm-data-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.dashboard-body:not(.theme-dark) .pm-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(0,109,255,.02);
}
.dashboard-body:not(.theme-dark) .pm-data-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}
.dashboard-body:not(.theme-dark) .pm-data-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dashboard-body:not(.theme-dark) .pm-data-value {
  min-width: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
  text-align: right;
  word-break: break-word;
}
.dashboard-body:not(.theme-dark) .pm-badge-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.dashboard-body:not(.theme-dark) .pm-badge-status.success { background: var(--success-bg); color: #0f9f62; }
.dashboard-body:not(.theme-dark) .pm-badge-status.warning { background: var(--warning-bg); color: var(--warning); }
.dashboard-body:not(.theme-dark) .pm-password-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dashboard-body:not(.theme-dark) .pm-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dashboard-body:not(.theme-dark) .pm-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.dashboard-body:not(.theme-dark) .pm-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(0,109,255,.03);
  border: 1px solid var(--border);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.dashboard-body:not(.theme-dark) .pm-input-wrap:focus-within {
  border-color: rgba(124,92,191,.45);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(124,92,191,.12);
}
.dashboard-body:not(.theme-dark) .pm-input-wrap svg {
  flex-shrink: 0;
  color: #7c5cbf;
}
.dashboard-body:not(.theme-dark) .pm-input-wrap input {
  flex: 1;
  height: 100%;
  min-width: 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--text) !important;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
}
.dashboard-body:not(.theme-dark) .pm-input-wrap input::placeholder {
  color: var(--text-3);
}
.dashboard-body:not(.theme-dark) .pm-submit-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c5cbf, #006dff);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0,109,255,.20);
}
.dashboard-body:not(.theme-dark) .pm-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
}
.dashboard-body:not(.theme-dark) .pm-hint svg { color: #16a34a; flex-shrink: 0; }
.dashboard-body:not(.theme-dark) .pm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.dashboard-body:not(.theme-dark) .pm-footer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
}
.dashboard-body:not(.theme-dark) .pm-footer-info svg { color: #16a34a; }
.dashboard-body:not(.theme-dark) .pm-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.dashboard-body:not(.theme-dark) .pm-logout-btn:hover {
  background: var(--danger-bg);
  border-color: rgba(255,77,106,.24);
  color: var(--danger);
}

/* Dashboard feature cards */
.module-badge,
.soon-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(124,92,191,.10);
  color: #6f4fb8;
  margin-bottom: 12px;
}
.soon-pill { background: var(--warning-bg); color: var(--warning); }
.payment-card { display: flex; flex-direction: column; }
.payment-card-primary { border-color: rgba(124,92,191,.25); }
.payment-form { margin-top: auto; }
.coming-soon-card { opacity: .86; }
.coming-soon-card .button:disabled { cursor: not-allowed; opacity: .6; }
.subscription-offer,
.support-whatsapp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
}
.subscription-price {
  min-width: 190px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(124,92,191,.05);
}
.subscription-price span,
.subscription-price small { display: block; color: var(--text-3); font-size: 12px; font-weight: 700; }
.subscription-price strong { display: block; color: var(--text); font-size: 26px; line-height: 1.1; margin: 5px 0; }
.subscription-benefit {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  margin-top: 8px;
}
.subscription-form { min-width: 170px; }
.subscription-admin-panel {
  margin-top: 16px;
}
.subscription-create-form {
  background: rgba(124,92,191,.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) auto;
  margin-bottom: 18px;
  padding: 14px;
}
.subscription-create-form label {
  color: var(--text-2);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
}
.subscription-create-form input,
.subscription-create-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
  outline: none;
}
.subscription-create-form .button {
  align-self: end;
  justify-content: center;
  min-height: 38px;
}
.button-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(255,77,106,.28);
}
.button-danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.subscription-row-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 900px;
}
.subscription-edit-form {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(100px, .7fr) minmax(120px, .8fr) minmax(140px, .9fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.subscription-delete-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.subscription-edit-form input,
.subscription-edit-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(0,109,255,.02);
  color: var(--text);
  padding: 0 10px;
  outline: none;
}
.subscription-edit-form input:focus,
.subscription-edit-form select:focus {
  border-color: var(--primary-dim);
  box-shadow: 0 0 0 3px rgba(0,109,255,.10);
}
.whatsapp-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 16px 34px rgba(37,211,102,.22);
}
.whatsapp-button { white-space: nowrap; }
@media (max-width: 900px) {
  .subscription-offer,
  .support-whatsapp { grid-template-columns: 1fr; }
  .subscription-form,
  .whatsapp-button { width: 100%; }
  .subscription-create-form {
    grid-template-columns: 1fr;
  }
  .subscription-edit-form {
    grid-template-columns: 1fr;
  }
  .subscription-row-actions {
    grid-template-columns: 1fr;
    min-width: 260px;
  }
  .subscription-delete-form {
    justify-content: stretch;
  }
  .subscription-delete-form .button {
    width: 100%;
  }
  .sigilo-bottom-actions { grid-template-columns: 1fr; }
}

/* Light dashboard mobile hardening: same dimensions as the base/dark layout */
@media (max-width: 768px) {
  .dashboard-body:not(.theme-dark) {
    grid-template-columns: 1fr;
  }
  .dashboard-body:not(.theme-dark) .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    max-width: none;
    height: 100vh;
    z-index: 300;
    transform: none;
    transition: left 280ms cubic-bezier(.4,0,.2,1), box-shadow 280ms ease;
    box-shadow: 8px 0 48px rgba(0,109,255,.08);
    overflow-y: auto;
  }
  .dashboard-body:not(.theme-dark) .sidebar.mobile-open {
    left: 0;
    transform: none;
    box-shadow: 8px 0 60px rgba(0,109,255,.12);
  }
  .dashboard-body:not(.theme-dark) .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 299;
    opacity: 0;
    pointer-events: none;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 280ms ease;
  }
  .dashboard-body:not(.theme-dark) .sidebar-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }
  .dashboard-body:not(.theme-dark) .sidebar-close-btn {
    display: flex;
  }
}
@media (max-width: 768px) {
  .dashboard-body:not(.theme-dark) .dashboard-main {
    padding: 16px;
  }
  .dashboard-body:not(.theme-dark) .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .dashboard-body:not(.theme-dark) .dashboard-actions {
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 560px) {
  .dashboard-body:not(.theme-dark) .profile-modal[open] { padding: 10px; }
  .dashboard-body:not(.theme-dark) .profile-modal-inner {
    max-height: calc(100vh - 20px);
    padding: 22px;
    border-radius: 20px;
  }
  .dashboard-body:not(.theme-dark) .pm-stats { grid-template-columns: 1fr; }
  .dashboard-body:not(.theme-dark) .pm-name { font-size: 18px; }
  .dashboard-body:not(.theme-dark) .pm-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }
  .dashboard-body:not(.theme-dark) .pm-avatar svg {
    width: 28px;
    height: 28px;
  }
  .dashboard-body:not(.theme-dark) .pm-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
}

/* Theme size parity: light/dark must keep the same geometry */
.sigilo-auth-body {
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
  position: relative;
  overflow-x: hidden;
}
.sigilo-auth-main {
  max-width: 440px;
  position: relative;
  z-index: 1;
}
.sigilo-logo-wrap {
  align-items: flex-start;
  display: flex;
  height: 210px;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
  transform: none;
  width: 100%;
}
.sigilo-logo-full-img {
  display: block;
  width: 380px;
  max-width: 85vw;
  height: auto;
  transform: translateY(42px);
}
.sigilo-subtitle {
  max-width: 360px;
  margin-bottom: 32px;
  font-size: 13.5px;
  line-height: 1.7;
}
.sigilo-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.sigilo-field input {
  height: 48px;
  min-height: unset;
  padding: 0 14px 0 8px;
  font-size: 13.5px;
}
.sigilo-btn-primary,
.sigilo-btn-register {
  height: 52px;
  min-height: 0;
  font-size: 14.5px;
  font-weight: 700;
  overflow: hidden;
  position: relative;
}
.sigilo-btn-content {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.sigilo-btn-icon {
  display: flex;
  flex-shrink: 0;
  opacity: .9;
}
.sigilo-btn-shimmer,
.sigilo-btn-register-shimmer {
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.sigilo-divider {
  display: flex;
  margin: 8px 0;
}
.dashboard-body {
  grid-template-columns: 250px minmax(0, 1fr);
}
.dashboard-main { padding: 28px; }
.dashboard-header {
  gap: 16px;
  margin-bottom: 24px;
}
.dashboard-header h1 { font-size: 26px; line-height: 1.05; }
.dashboard-header p { font-size: 13px; }
.dashboard-grid {
  gap: 14px;
  margin-bottom: 20px;
}
.metric-card {
  border-radius: var(--radius-lg);
  padding: 20px;
}
.metric-card span {
  font-size: 11px;
  margin-bottom: 10px;
}
.metric-card strong {
  font-size: 26px;
  margin-bottom: 6px;
}
.metric-card small { font-size: 12px; }
.dashboard-columns {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 16px;
}
.dashboard-body .workspace-panel:not(.settings-panel):not(.layout-settings-card):not(.verification-card):not(.settings-summary-panel) {
  border-radius: var(--radius-lg);
  padding: 20px;
}
.panel-header {
  gap: 12px;
  margin-bottom: 18px;
}
.chart-panel { min-height: 280px; }
.line-chart {
  gap: 6px;
  height: 220px;
  padding: 16px;
}
.quick-actions-grid {
  gap: 4px;
  padding: 4px 0 8px;
}
.qa-card {
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
}
.qa-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.qa-text strong {
  font-size: 13.5px;
  line-height: 1.3;
}
.qa-text small { font-size: 11px; }
@media (max-width: 1200px) {
  .dashboard-columns { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sigilo-auth-body { padding: 32px 20px 48px; }
  .dashboard-body { grid-template-columns: 1fr; }
  .dashboard-body .sidebar {
    left: -280px;
    width: 260px;
    height: 100vh;
  }
  .dashboard-body .sidebar.mobile-open { left: 0; }
  .dashboard-main { padding: 16px; }
  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard-actions {
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 560px) {
  .dashboard-body .profile-modal-inner {
    max-height: calc(100vh - 20px);
    padding: 22px;
    border-radius: 20px;
  }
}
@media (max-width: 520px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-main { padding: 12px; }
  .metric-card strong { font-size: 22px; }
  .dashboard-body .workspace-panel:not(.settings-panel):not(.layout-settings-card):not(.verification-card):not(.settings-summary-panel) { padding: 16px; }
}

/* Dashboard desktop layout hardening */
@media (min-width: 769px) {
  body.dashboard-body {
    display: grid !important;
    grid-template-columns: 250px minmax(0, 1fr) !important;
    align-items: stretch !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
  }

  body.dashboard-body > .sidebar {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    width: 250px !important;
    max-width: 250px !important;
    height: 100vh !important;
    transform: none !important;
    z-index: 10 !important;
  }

  body.dashboard-body > .dashboard-main {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 28px !important;
  }

  body.dashboard-body > .sidebar-overlay,
  body.dashboard-body .sidebar-close-btn,
  body.dashboard-body .dash-menu-btn {
    display: none !important;
  }
}

/* Transactions page */
.transactions-page {
  --tx-purple: #6739df;
  --tx-purple-2: #8b5cf6;
  --tx-green: #15956f;
}
body[data-active-dashboard-section="transacoes"] .dashboard-header {
  margin-bottom: 32px;
}
body[data-active-dashboard-section="transacoes"] .dashboard-header h1 {
  margin: 5px 0 6px;
  font-size: 32px;
}
body[data-active-dashboard-section="transacoes"] .dashboard-header .eyebrow {
  color: var(--tx-purple, #6739df);
}
.transaction-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-bottom: 28px;
}
.transaction-metric-card {
  min-height: 132px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(circle at 98% 0%, rgba(103, 57, 223, .035), transparent 44%),
    var(--surface);
  box-shadow: 0 8px 28px rgba(34, 25, 66, .025);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.transaction-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 57, 223, .2);
  box-shadow: 0 14px 34px rgba(77, 49, 144, .07);
}
.transaction-metric-icon {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
}
.transaction-metric-icon-purple {
  color: var(--tx-purple);
  background: linear-gradient(145deg, #f5f0ff, #eee8ff);
}
.transaction-metric-icon-success {
  color: var(--tx-green);
  background: linear-gradient(145deg, #eefbf7, #e5f7f1);
}
.transaction-metric-card > div {
  min-width: 0;
}
.transaction-metric-label {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.transaction-metric-label svg {
  color: var(--text-3);
}
.transaction-metric-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.transaction-metric-card strong.transaction-metric-money {
  color: #49348a;
}
.transaction-metric-card small {
  color: var(--text-3);
  font-size: 12px;
}
.transactions-workspace {
  padding: 28px 24px 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(36, 25, 67, .06);
}
.transactions-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.transactions-search,
.transactions-filter,
.transactions-export {
  height: 52px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-2);
}
.transactions-search {
  width: min(460px, 42%);
  padding: 0 15px;
  gap: 12px;
}
.transactions-search:focus-within,
.transactions-filter:focus-within {
  border-color: rgba(103, 57, 223, .5);
  box-shadow: 0 0 0 3px rgba(103, 57, 223, .08);
}
.transactions-search > svg {
  flex: 0 0 auto;
  color: var(--text-3);
}
.transactions-search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.transactions-search input::placeholder {
  color: #a7a1b7;
}
.transactions-search kbd {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text-3);
  font: 500 11px/1.2 Inter, sans-serif;
}
.transactions-filter {
  min-width: 138px;
  padding: 0 13px;
  gap: 10px;
}
.transactions-filter > svg:first-child {
  color: #7964b5;
}
.transactions-filter select {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--text-2);
  font: 600 13px/1 Inter, sans-serif;
  cursor: pointer;
}
.transactions-filter > svg:last-child {
  pointer-events: none;
}
.transactions-export {
  margin-left: auto;
  padding: 0 18px;
  gap: 9px;
  border-color: rgba(103, 57, 223, .42);
  color: var(--tx-purple);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.transactions-export:hover {
  background: rgba(103, 57, 223, .06);
  box-shadow: 0 8px 24px rgba(103, 57, 223, .08);
}
.transactions-table-shell {
  min-height: 344px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.transactions-table-scroll {
  width: 100%;
  overflow-x: auto;
}
.transactions-table-scroll.is-empty tbody {
  display: none;
}
.transactions-data-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}
.transactions-data-table th {
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(248, 247, 252, .94), rgba(251, 250, 253, .96));
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.transactions-data-table td {
  height: 62px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
}
.transactions-data-table tbody tr:last-child td {
  border-bottom: 0;
}
.transactions-data-table tbody tr {
  transition: background .18s ease;
}
.transactions-data-table tbody tr:hover {
  background: rgba(103, 57, 223, .025);
}
.transactions-data-table td strong {
  color: var(--text);
}
.transaction-reference {
  font-size: 11.5px;
  letter-spacing: .01em;
}
.transaction-origin {
  display: inline-flex;
  min-width: 52px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}
.transaction-origin.api {
  color: #5e34c9;
  background: #f0eaff;
}
.transaction-origin.panel {
  color: #14785d;
  background: #e8f8f2;
}
.transactions-empty-state {
  min-height: 286px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.transactions-empty-state[hidden] {
  display: none;
}
.transactions-empty-illustration {
  width: 118px;
  height: 118px;
  margin-bottom: 9px;
  filter: drop-shadow(0 14px 24px rgba(103, 57, 223, .08));
}
.transactions-empty-state > strong {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 16px;
}
.transactions-empty-state > p {
  margin: 0;
  color: var(--text-3);
  font-size: 13px;
}
.theme-dark .transactions-data-table th {
  background: rgba(255, 255, 255, .025);
}
.theme-dark .transaction-metric-card strong.transaction-metric-money {
  color: #b9a4ff;
}
.theme-dark .transaction-origin.api {
  color: #c5b2ff;
  background: rgba(103, 57, 223, .19);
}
.theme-dark .transaction-origin.panel {
  color: #6ee7bf;
  background: rgba(21, 149, 111, .16);
}

@media (max-width: 1180px) {
  .transaction-metrics {
    gap: 14px;
  }
  .transaction-metric-card {
    padding: 18px;
    gap: 15px;
  }
  .transaction-metric-icon {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    border-radius: 19px;
  }
  .transactions-toolbar {
    flex-wrap: wrap;
  }
  .transactions-search {
    width: 100%;
  }
  .transactions-export {
    margin-left: 0;
  }
}
@media (max-width: 900px) {
  .transaction-metrics {
    grid-template-columns: 1fr;
  }
  .transaction-metric-card {
    min-height: 108px;
  }
}
@media (max-width: 600px) {
  .transactions-workspace {
    padding: 16px 12px 12px;
    border-radius: 17px;
  }
  .transaction-metrics {
    margin-bottom: 18px;
  }
  .transaction-metric-card {
    min-height: 100px;
    border-radius: 16px;
  }
  .transaction-metric-card strong {
    font-size: 22px;
  }
  .transactions-filter {
    flex: 1 1 calc(50% - 7px);
    min-width: 130px;
  }
  .transactions-export {
    width: 100%;
    justify-content: center;
  }
  .transactions-table-shell {
    min-height: 310px;
  }
}

