.vda-surface {
  background: var(--vda-surface);
  border: 1px solid var(--vda-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}

.vda-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  background: #eef8f2;
  border: 1px solid #d6ecdf;
  color: #156842;
  font-weight: 700;
  font-size: 0.78rem;
}

.vda-stack-2 > * + * {
  margin-top: var(--space-2);
}

.vda-stack-3 > * + * {
  margin-top: var(--space-3);
}

.vda-fade-up {
  animation: vdaFadeUp 450ms ease both;
}

.vda-carteira-command {
  border: 1px solid #dbe8df;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #ffffff 0%, #f6fbf8 100%);
  padding: var(--space-3);
}

.vda-carteira-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vda-carteira-kpi {
  border: 1px solid #d8e8de;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}

.vda-carteira-kpi-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #597166;
  margin-bottom: 6px;
}

.vda-carteira-kpi-value {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  color: #103a25;
}

.vda-carteira-kpi-value-sm {
  font-size: 0.96rem;
  font-weight: 700;
}

.vda-carteira-action-panel {
  border: 1px solid #dbe8df;
  border-radius: 12px;
  background: #fff;
  height: 100%;
  padding: 14px;
}

.vda-header-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4c6559;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  padding: 2px 0;
}

.vda-header-quick-link:hover {
  color: #234f38;
  text-decoration: underline;
}

.vda-secondary-inline-link {
  color: #4f6a5d;
  font-size: 0.86rem;
  text-decoration: none;
  border-bottom: 1px dashed #b9cdc0;
  padding-bottom: 2px;
}

.vda-secondary-inline-link:hover {
  color: #2e5f46;
  border-bottom-color: #7ea992;
}

.vda-action-chain {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 6px;
  border: 1px solid #dfebe4;
  border-radius: 10px;
  padding: 10px;
  background: #f9fcfa;
}

.vda-action-chain-item span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a8175;
}

.vda-action-chain-item strong {
  font-size: 0.84rem;
  color: #193f2c;
}

.vda-action-chain-arrow {
  align-self: center;
  color: #7b9b8b;
  font-weight: 700;
}

.vda-empty-portfolio .vda-surface {
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
}

.vda-empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.vda-empty-steps {
  display: grid;
  gap: 10px;
}

.vda-empty-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #dbe9e0;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.vda-empty-step-index {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f6ee;
  color: #13663f;
  font-weight: 800;
  font-size: 0.82rem;
  flex: 0 0 auto;
}

.vda-import-quickstart .vda-surface {
  background: linear-gradient(180deg, #ffffff 0%, #f7fcf9 100%);
}

.vda-import-metrics {
  border: 1px solid #d9e8df;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  min-width: 105px;
}

.vda-import-metrics span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #6a8175;
  letter-spacing: 0.05em;
}

.vda-import-metrics strong {
  font-size: 1rem;
  color: #173f2c;
}

.vda-ranking-hero {
  border: 1px solid #dce9df;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #ffffff 0%, #f6fbf8 100%);
  padding: var(--space-3);
}

.vda-ranking-hero-compact {
  padding: 18px 20px;
}

.vda-ranking-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vda-ranking-stats-compact {
  gap: 8px;
}

.vda-ranking-stat {
  border: 1px solid #d9e8df;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 4px 14px rgba(17, 44, 29, 0.04);
}

.vda-ranking-stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64796e;
  margin-bottom: 5px;
}

.vda-ranking-stat-value {
  display: block;
  font-size: 0.98rem;
  line-height: 1.15;
  color: #173f2c;
}

body.dark-mode .vda-surface,
body.dark-mode .vda-carteira-command,
body.dark-mode .vda-carteira-kpi,
body.dark-mode .vda-carteira-action-panel,
body.dark-mode .vda-import-metrics,
body.dark-mode .vda-ranking-hero,
body.dark-mode .vda-ranking-stat,
body.dark-mode .vda-ranking-action,
body.dark-mode .vda-empty-step,
body.dark-mode .vda-action-chain {
  background: var(--vda-surface-0);
  border-color: var(--vda-border);
  color: var(--vda-text);
}

body.dark-mode .navbar {
  background: linear-gradient(90deg, #0b1020 0%, #0f172a 55%, #111827 100%) !important;
  border-bottom-color: var(--vda-border) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

body.dark-mode .sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%) !important;
  border-right-color: var(--vda-border) !important;
  box-shadow: 10px 0 24px rgba(0, 0, 0, 0.35);
}

body.dark-mode .sidebar .nav-link,
body.dark-mode .sidebar-heading-toggle {
  color: var(--vda-sidebar-text) !important;
}

body.dark-mode .sidebar .nav-link:hover,
body.dark-mode .sidebar-heading-toggle:hover {
  background: rgba(88, 166, 255, 0.08);
  color: var(--vda-text) !important;
}

body.dark-mode .sidebar .nav-link.active {
  background: rgba(88, 166, 255, 0.14) !important;
  color: #cfe3ff !important;
  border-left-color: var(--vda-primary) !important;
}

body.dark-mode .sidebar .nav-link .feather,
body.dark-mode .sidebar .nav-link svg,
body.dark-mode .sidebar-heading-toggle svg {
  color: inherit;
}

body.dark-mode .sidebar-status-card,
body.dark-mode .sidebar-quick-actions .btn {
  background: var(--vda-surface-1) !important;
  border-color: var(--vda-border) !important;
  color: var(--vda-text) !important;
}

body.dark-mode .sidebar-quick-actions .btn:hover {
  background: var(--vda-surface-2) !important;
  color: var(--vda-text) !important;
}

body.dark-mode .header-center-slot,
body.dark-mode .header-breadcrumb,
body.dark-mode .header-breadcrumb .bc-page {
  color: #d6e2ff;
}

body.dark-mode .landing-hero {
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #13253d 48%, #0f5132 100%) !important;
  color: #f2f7ff !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42) !important;
}

body.dark-mode .landing-badge {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #d8e6ff !important;
}

body.dark-mode .landing-title,
body.dark-mode .landing-subtitle,
body.dark-mode .landing-hero p,
body.dark-mode .landing-stat-box,
body.dark-mode .landing-stat-item span,
body.dark-mode .landing-stat-item strong,
body.dark-mode .feature-title,
body.dark-mode .feature-text,
body.dark-mode .proof-number,
body.dark-mode .proof-label,
body.dark-mode .testimonials-kicker,
body.dark-mode .testimonial-title,
body.dark-mode .testimonial-empty p {
  color: inherit !important;
}

body.dark-mode .landing-stat-box {
  background: rgba(10, 16, 30, 0.72) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

body.dark-mode .landing-stat-item {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .feature-card,
body.dark-mode .testimonial-card,
body.dark-mode .testimonial-form-card,
body.dark-mode .social-proof,
body.dark-mode .testimonials-wrap,
body.dark-mode .testimonial-empty {
  background: var(--vda-surface-0) !important;
  border-color: var(--vda-border) !important;
  color: var(--vda-text) !important;
}

body.dark-mode .social-proof {
  background: linear-gradient(90deg, rgba(22,27,34,0.95) 0%, rgba(33,38,45,0.95) 100%) !important;
}

body.dark-mode .testimonial-empty {
  border-style: dashed !important;
  background: linear-gradient(180deg, rgba(22,27,34,0.95), rgba(33,38,45,0.95)) !important;
}

body.dark-mode .feature-card {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28) !important;
}

body.dark-mode .feature-card:hover,
body.dark-mode .testimonial-card:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34) !important;
}

body.dark-mode .feature-text,
body.dark-mode .testimonial-card p,
body.dark-mode .testimonial-form-card p,
body.dark-mode .testimonial-empty p,
body.dark-mode .proof-label,
body.dark-mode .vda-exec-kpi-sub,
body.dark-mode .vda-exec-alert p {
  color: var(--vda-text-muted) !important;
}

body.dark-mode .proof-number,
body.dark-mode .feature-title,
body.dark-mode .testimonial-title {
  color: var(--vda-text) !important;
}

body.dark-mode .landing-hero .btn-outline-light,
body.dark-mode .landing-hero .btn-light,
body.dark-mode .landing-hero .btn-secondary {
  background: var(--vda-surface-0) !important;
  border-color: var(--vda-border) !important;
  color: var(--vda-text) !important;
}

body.dark-mode .landing-hero .btn-outline-light:hover,
body.dark-mode .landing-hero .btn-light:hover,
body.dark-mode .landing-hero .btn-secondary:hover {
  background: var(--vda-surface-1) !important;
  color: var(--vda-text) !important;
}

body.dark-mode .landing-hero .btn-primary {
  box-shadow: 0 12px 22px rgba(40, 167, 69, 0.24) !important;
}

body.dark-mode .vda-executive-dashboard {
  background: linear-gradient(145deg, rgba(22,27,34,0.98) 0%, rgba(33,38,45,0.96) 100%) !important;
  border-color: var(--vda-border) !important;
}

body.dark-mode .vda-executive-dashboard .card,
body.dark-mode .vda-executive-dashboard .vda-exec-kpi-card,
body.dark-mode .vda-executive-dashboard .vda-exec-alert,
body.dark-mode .vda-executive-dashboard .card-header,
body.dark-mode .vda-executive-dashboard .card-body {
  background: var(--vda-surface-0) !important;
  border-color: var(--vda-border) !important;
  color: var(--vda-text) !important;
}

body.dark-mode .vda-executive-dashboard .btn-outline-secondary,
body.dark-mode .vda-executive-dashboard .btn-outline-primary,
body.dark-mode .vda-executive-dashboard .btn-outline-info,
body.dark-mode .vda-executive-dashboard .btn-outline-warning {
  background: var(--vda-surface-1) !important;
  border-color: var(--vda-border) !important;
  color: var(--vda-text) !important;
}

body.dark-mode .vda-executive-dashboard .btn-outline-secondary:hover,
body.dark-mode .vda-executive-dashboard .btn-outline-primary:hover,
body.dark-mode .vda-executive-dashboard .btn-outline-info:hover,
body.dark-mode .vda-executive-dashboard .btn-outline-warning:hover {
  background: var(--vda-surface-2) !important;
}

body.dark-mode .vda-carteira-command,
body.dark-mode .vda-ranking-hero {
  background: linear-gradient(145deg, var(--vda-surface-0) 0%, var(--vda-surface-1) 100%);
}

body.dark-mode .vda-chip {
  background: var(--vda-surface-1);
  border-color: var(--vda-border);
  color: var(--vda-text);
}

body.dark-mode .vda-carteira-kpi-label,
body.dark-mode .vda-ranking-stat-label,
body.dark-mode .vda-import-metrics span,
body.dark-mode .vda-action-chain-item span,
body.dark-mode .vda-empty-step p,
body.dark-mode .vda-exec-kpi-sub,
body.dark-mode .vda-exec-alert p,
body.dark-mode .vda-header-quick-link,
body.dark-mode .vda-secondary-inline-link {
  color: var(--vda-text-muted);
}

body.dark-mode .vda-carteira-kpi-value,
body.dark-mode .vda-ranking-stat-value,
body.dark-mode .vda-import-metrics strong,
body.dark-mode .vda-action-chain-item strong,
body.dark-mode .vda-empty-step strong,
body.dark-mode .vda-exec-kpi-value,
body.dark-mode .vda-exec-alert strong {
  color: var(--vda-text);
}

body.dark-mode .vda-exec-kpi-card,
body.dark-mode .vda-exec-alert {
  background: var(--vda-surface-0);
  border-color: var(--vda-border);
}

body.dark-mode .feature-card,
body.dark-mode .testimonial-card,
body.dark-mode .testimonial-form-card,
body.dark-mode .landing-stat-box,
body.dark-mode .social-proof,
body.dark-mode .testimonials-wrap {
  background: var(--vda-surface-0) !important;
  border-color: var(--vda-border) !important;
  color: var(--vda-text) !important;
}

body.dark-mode .feature-card h1,
body.dark-mode .feature-card h2,
body.dark-mode .feature-card h3,
body.dark-mode .feature-card h4,
body.dark-mode .feature-card h5,
body.dark-mode .feature-card h6,
body.dark-mode .testimonial-card h1,
body.dark-mode .testimonial-card h2,
body.dark-mode .testimonial-card h3,
body.dark-mode .testimonial-card h4,
body.dark-mode .testimonial-card h5,
body.dark-mode .testimonial-card h6,
body.dark-mode .landing-stat-box h1,
body.dark-mode .landing-stat-box h2,
body.dark-mode .landing-stat-box h3,
body.dark-mode .landing-stat-box h4,
body.dark-mode .landing-stat-box h5,
body.dark-mode .landing-stat-box h6 {
  color: var(--vda-text) !important;
}

body.dark-mode .feature-card p,
body.dark-mode .testimonial-card p,
body.dark-mode .testimonial-form-card p,
body.dark-mode .landing-stat-box p,
body.dark-mode .social-proof p,
body.dark-mode .testimonials-wrap p,
body.dark-mode .feature-card small,
body.dark-mode .testimonial-card small,
body.dark-mode .testimonial-form-card small,
body.dark-mode .landing-stat-box small {
  color: var(--vda-text-muted) !important;
}

body.dark-mode .testimonials-wrap {
  background: linear-gradient(180deg, var(--vda-surface-0), var(--vda-surface-1)) !important;
}

body.dark-mode .vda-ranking-toolbar,
body.dark-mode .vda-ranking-toolbar .card-body {
  background: var(--vda-surface-0);
  border-color: var(--vda-border);
}

body.dark-mode .vda-exec-kpi-primary .vda-exec-kpi-icon { background: rgba(88,166,255,0.14); color: #79c0ff; }
body.dark-mode .vda-exec-kpi-success .vda-exec-kpi-icon { background: rgba(63,185,80,0.14); color: #56d364; }
body.dark-mode .vda-exec-kpi-danger .vda-exec-kpi-icon { background: rgba(248,81,73,0.14); color: #ff7b72; }
body.dark-mode .vda-exec-kpi-warning .vda-exec-kpi-icon { background: rgba(210,153,34,0.14); color: #e3b341; }
body.dark-mode .vda-exec-kpi-info .vda-exec-kpi-icon { background: rgba(88,166,255,0.14); color: #79c0ff; }

body.dark-mode .vda-exec-alert-danger .vda-exec-alert-icon { background: rgba(248,81,73,0.14); color: #ff7b72; }
body.dark-mode .vda-exec-alert-success .vda-exec-alert-icon { background: rgba(63,185,80,0.14); color: #56d364; }
body.dark-mode .vda-exec-alert-info .vda-exec-alert-icon { background: rgba(88,166,255,0.14); color: #79c0ff; }
body.dark-mode .vda-exec-alert-warning .vda-exec-alert-icon { background: rgba(210,153,34,0.14); color: #e3b341; }

.vda-ranking-action {
  border: 1px solid #d9e8df;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(17, 44, 29, 0.05);
}

.vda-ranking-toolbar {
  border: 1px solid #dce9df;
}

.vda-ranking-toolbar .form-control {
  min-height: 42px;
}

.vda-ranking-legend {
  border: 1px dashed #d9e8df;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fafdfb;
}

.vda-ranking-legend summary {
  cursor: pointer;
  font-weight: 700;
  color: #4d675a;
}

@media (max-width: 991.98px) {
  .vda-carteira-kpi-grid {
    grid-template-columns: 1fr;
  }

  .vda-header-quick-link {
    font-size: 0.82rem;
  }

  .vda-import-metrics {
    width: 100%;
  }

  .vda-ranking-stats {
    grid-template-columns: 1fr;
  }

  .vda-ranking-hero-compact {
    padding: 14px;
  }

  .vda-action-chain {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .vda-action-chain-arrow {
    display: none;
  }
}

@keyframes vdaFadeUp {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
