/* ═══════════════════════════════════════════════════
   EXALTA PAY — Design System Dark Premium
   Inspirado em: xgateglobal.com
═══════════════════════════════════════════════════ */

/* ─── Google Font ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ─── Tokens ─── */
:root {
  --primary:        #00e5c8;
  --primary-dim:    #00c4ac;
  --primary-glow:   rgba(0,229,200,.22);
  --primary-bg:     rgba(0,229,200,.08);

  --bg:             #080b0f;
  --bg2:            #0e1117;
  --surface:        #13181f;
  --surface2:       #1a2030;
  --border:         rgba(255,255,255,.08);
  --border-hover:   rgba(0,229,200,.3);

  --text:           #f0f4f8;
  --text-2:         #8b97a8;
  --text-3:         #5a6678;

  --success:        #00e5a0;
  --success-bg:     rgba(0,229,160,.1);
  --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 24px 64px rgba(0,0,0,.5);
  --shadow-glow:    0 0 40px var(--primary-glow);

  --transition:     .2s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: 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;
}
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,229,200,.12) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.bg-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,120,255,.08) 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,229,200,.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(8,11,15,.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(8,11,15,.96);
}

/* 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-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: #000;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(0,229,200,.35);
}
.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(--text);
  background: rgba(255,255,255,.05);
}

/* 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: #020e0c;
  box-shadow: 0 6px 24px rgba(0,229,200,.3);
}
.button-primary:hover {
  box-shadow: 0 10px 32px rgba(0,229,200,.45);
}

.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(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.button-light:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,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,229,200,.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,229,200,.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,229,160,.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(10, 1fr);
  gap: 6px;
  align-items: end;
  height: 180px;
  background: rgba(255,255,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,229,200,.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(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  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(255,255,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,229,200,.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,0,0,.35), 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,229,200,.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(255,255,255,.03);
  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,229,200,.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: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  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: #050c0a;
  border: 1px solid rgba(0,229,200,.15);
  border-radius: var(--radius-xl);
  padding: 24px;
  font-family: 'SF Mono', 'Fira Mono', monospace;
  box-shadow: inset 0 1px 0 rgba(0,229,200,.08), 0 0 40px rgba(0,229,200,.05);
}
.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  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); 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 rgba(255,255,255,.04);
  font-size: 13px;
}
.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); 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: #060d0c;
  border: 1px solid rgba(0,229,200,.15);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,229,200,.05);
}
.code-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.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: #a0f0e8;
  overflow-x: auto;
  white-space: pre;
}
.code-card pre .kw  { color: #66d9e8; }
.code-card pre .str { color: #e9f5a0; }
.code-card pre .num { color: #f7b1d6; }
.code-card pre .key { color: #aed2ff; }
.code-card pre .op  { color: #80cbc4; }
.code-card pre .cm  { color: #546e7a; }

/* ═══════════════════════════════════════════════════
   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,229,200,.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,229,200,.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: var(--bg);
  position: relative;
  overflow: hidden;
}
.auth-body::before {
  content: '';
  position: fixed;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,229,200,.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
}

.auth-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow);
}
.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,
.mini-form input,
.inline-form input,
.inline-form select,
.copy-field textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  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;
}
.auth-form input:focus,
.mini-form input:focus,
.inline-form input:focus {
  border-color: var(--primary-dim);
  box-shadow: 0 0 0 3px rgba(0,229,200,.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;
}
.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);
}
.copy-field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.checkout-card { text-align: center; }
.checkout-card .copy-field { text-align: left; }

/* ═══════════════════════════════════════════════════
   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 { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }

.sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  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);
}
.sidebar-nav button:hover { background: rgba(255,255,255,.05); color: var(--text-2); }
.sidebar-nav button.active { background: var(--primary-bg); color: var(--primary); }

.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 14px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.profile-button:hover { border-color: var(--border-hover); }
.profile-button > span:first-child {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 11px;
  font-weight: 800;
}
.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);
}
.metric-card:hover { border-color: rgba(0,229,200,.2); }
.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;
}
.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 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  align-items: end;
  height: 220px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.line-chart span {
  background: linear-gradient(180deg, var(--primary), rgba(0,229,200,.15));
  border-radius: 4px 4px 0 0;
  min-height: 12px;
}

/* Quick actions */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-grid button {
  background: rgba(255,255,255,.03);
  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,229,200,.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(255,255,255,.02); }
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(255,255,255,.03);
  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;
}
.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; }
.dark-chart { background: rgba(255,255,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; }
  .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(8,11,15,.97);
    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,0,0,.7);
    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,0,0,.85);
  }

  /* 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; }
  .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(255,255,255,.04);
  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,229,200,.3); }

/* Selection highlight */
::selection { background: rgba(0,229,200,.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(16px); }
  to   { opacity: 1; transform: none; }
}
.dashboard-main { animation: fade-in-up .4s cubic-bezier(.4,0,.2,1) both; }
.metric-card { animation: fade-in-up .45s cubic-bezier(.4,0,.2,1) both; }
.metric-card:nth-child(1) { animation-delay: .05s; }
.metric-card:nth-child(2) { animation-delay: .10s; }
.metric-card:nth-child(3) { animation-delay: .15s; }
.metric-card:nth-child(4) { animation-delay: .20s; }

/* ─── Glow border on active sidebar item ─── */
.sidebar-nav button.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

/* ─── 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,229,200,.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: #0e1d1a;
}
.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,229,200,.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(255,255,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 rgba(255,255,255,.035);
  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,200,150,.15); color: #00d4aa; }
.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(255,255,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(255,255,255,.03);
  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(255,255,255,.05);
  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(255,255,255,.05);
  color: var(--qa-color, var(--primary));
  border: 1px solid rgba(255,255,255,.06);
  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: #00e5c8; }   /* teal    */
.qa-link   { --qa-color: #6c8eff; }   /* indigo  */
.qa-fatura { --qa-color: #f59e0b; }   /* amber   */
.qa-cliente{ --qa-color: #a78bfa; }   /* violet  */
.qa-api    { --qa-color: #34d399; }   /* emerald */
.qa-saque  { --qa-color: #f472b6; }   /* pink    */

/* ── 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,229,200,.15); }
  .qa-pix:hover    .qa-icon-wrap { background: rgba(0,229,200,.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, #00e5c8); }
  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; }
}
