:root {
  --ai-navy-950: #111827;
  --ai-navy-900: #202A39;
  --ai-navy-800: #2B364B;
  --ai-navy-700: #37465C;
  --ai-navy-600: #465165;

  --ai-gold-700: #926932;
  --ai-gold-600: #B28A53;
  --ai-gold-500: #CA9856;
  --ai-gold-400: #D6AA68;

  --ai-blue-500: #3A6495;
  --ai-cyan-500: #38ADC3;

  --ai-bg: #F7F8FA;
  --ai-surface: #FFFFFF;
  --ai-surface-soft: #F1F3F6;
  --ai-border: #D9DEE7;
  --ai-text: #202A39;
  --ai-text-muted: #6B7280;

  --ai-success: #16A34A;
  --ai-warning: #D97706;
  --ai-danger: #DC2626;
  --ai-info: #2563EB;

  --ai-radius-sm: 8px;
  --ai-radius-md: 12px;
  --ai-radius-lg: 18px;
  --ai-radius-xl: 24px;

  --ai-shadow-sm: 0 4px 12px rgba(32, 42, 57, 0.06);
  --ai-shadow-md: 0 12px 30px rgba(32, 42, 57, 0.08);
  --ai-shadow-gold: 0 10px 24px rgba(202, 152, 86, 0.22);
}

body {
  background: var(--ai-bg);
  color: var(--ai-text);
}

.ai-card,
.card,
.stat-card,
.dashboard-card,
.config-card,
.partner-card,
.partner-property-card,
.condominio-card,
.lancamento-card,
.saas-card,
.report-card,
.table-wrapper,
.modal-content {
  background: var(--ai-surface);
  border-color: var(--ai-border);
  border-radius: var(--ai-radius-lg);
  box-shadow: var(--ai-shadow-sm);
}

.ai-card:hover,
.partner-card:hover,
.partner-property-card:hover,
.condominio-card:hover,
.lancamento-card:hover {
  border-color: rgba(178, 138, 83, 0.38);
  box-shadow: var(--ai-shadow-md);
}

.sidebar {
  background:
    radial-gradient(circle at 20% 0%, rgba(202, 152, 86, 0.16), transparent 30%),
    linear-gradient(180deg, var(--ai-navy-950), var(--ai-navy-900));
  border-right: 1px solid rgba(214, 170, 104, 0.16);
}

.sidebar-brand h2,
.topbar-title h1,
.page-title-header h1,
.section-header h1,
.section-header h2 {
  color: var(--ai-text);
}

.sidebar-brand h2 {
  color: #ffffff;
}

.sidebar-brand span,
.sidebar-section-title {
  color: rgba(255, 255, 255, 0.68);
}

.sidebar-brand-logo-frame,
.sidebar-brand-fallback {
  border: 1px solid rgba(214, 170, 104, 0.28);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.sidebar-brand-fallback {
  background: linear-gradient(135deg, rgba(178, 138, 83, 0.95), rgba(202, 152, 86, 0.82));
}

.sidebar-menu a {
  color: rgba(255, 255, 255, 0.76);
}

.sidebar-menu a:hover:not(.active),
.sidebar-menu a:focus-visible:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar-menu a.active,
.sidebar-main-link.active {
  background: linear-gradient(135deg, rgba(43, 54, 75, 0.96), rgba(32, 42, 57, 0.96));
  box-shadow: inset 4px 0 0 var(--ai-gold-500), var(--ai-shadow-gold);
  color: #ffffff !important;
}

.topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--ai-border);
  backdrop-filter: blur(14px);
}

.menu-toggle {
  background: var(--ai-navy-900);
  border-color: rgba(178, 138, 83, 0.32);
  box-shadow: var(--ai-shadow-sm);
  color: #ffffff;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--ai-gold-600);
  color: #ffffff;
}

.btn-primary,
.ai-btn-primary,
button.btn-primary,
a.btn-primary {
  background: linear-gradient(135deg, var(--ai-gold-600), var(--ai-gold-500));
  border-color: transparent;
  box-shadow: var(--ai-shadow-gold);
  color: #ffffff;
}

.btn-primary:hover,
.ai-btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover {
  background: linear-gradient(135deg, var(--ai-gold-700), var(--ai-gold-600));
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary,
.ai-btn-secondary,
button.btn-secondary,
a.btn-secondary {
  background: var(--ai-navy-900);
  border-color: var(--ai-navy-800);
  color: #ffffff;
}

.btn-secondary:hover,
.ai-btn-secondary:hover,
button.btn-secondary:hover,
a.btn-secondary:hover {
  background: var(--ai-navy-800);
  color: #ffffff;
}

.ai-btn-light {
  align-items: center;
  background: var(--ai-surface);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-md);
  color: var(--ai-navy-900);
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  text-decoration: none;
}

.ai-btn-light:hover {
  border-color: rgba(178, 138, 83, 0.44);
  box-shadow: var(--ai-shadow-sm);
}

input,
select,
textarea {
  border-color: var(--ai-border);
  color: var(--ai-text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ai-gold-500);
  box-shadow: 0 0 0 3px rgba(202, 152, 86, 0.16);
}

.badge,
.section-badge,
.ai-badge-premium,
.status-badge,
.partner-status-pill,
.partner-quality.is-ok {
  background: rgba(202, 152, 86, 0.14);
  color: var(--ai-gold-700);
}

.alert.info,
.flash-info {
  background: rgba(58, 100, 149, 0.12);
  border-color: rgba(58, 100, 149, 0.22);
  color: var(--ai-navy-800);
}

.alert.success,
.flash-success {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.alert.error,
.flash-error {
  background: rgba(220, 38, 38, 0.11);
  color: #991b1b;
}

table th {
  color: var(--ai-navy-900);
}

table td {
  color: var(--ai-navy-700);
}

.partners-tab-button.is-active,
.partner-tabs a:hover,
.partners-tab-button:hover,
.tab-button.active,
.tab-button.is-active {
  background: rgba(202, 152, 86, 0.14);
  color: var(--ai-gold-700);
}

.pagination a.active,
.pagination button.active {
  background: var(--ai-navy-900);
  color: #ffffff;
}

.app-page-loading-card,
.ativoimob-page-loading-card {
  border: 1px solid rgba(178, 138, 83, 0.22);
  box-shadow: var(--ai-shadow-md);
}

.app-page-loading-spinner,
.ativoimob-page-loading-spinner {
  border-top-color: var(--ai-gold-500);
}

.ai-section-title {
  color: var(--ai-navy-900);
  font-weight: 900;
  letter-spacing: 0;
}

.ai-muted {
  color: var(--ai-text-muted);
}

.ai-diagonal-accent {
  position: relative;
  overflow: hidden;
}

.ai-diagonal-accent::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 16px;
  right: -30px;
  top: 28px;
  background: linear-gradient(135deg, var(--ai-gold-600), var(--ai-gold-500));
  transform: rotate(-28deg);
  opacity: 0.22;
  pointer-events: none;
}

.ativoimob-brand-logo {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.ativoimob-brand-logo.is-full {
  max-height: 64px;
}

.ativoimob-brand-logo.is-symbol {
  max-height: 44px;
}

.platform-brand-logo,
.plans-brand-logo {
  width: auto;
}

.platform-brand-logo.is-full {
  max-height: 46px;
}

.plans-brand-logo.is-full {
  max-height: 42px;
}

.platform-btn-primary,
.plans-page .btn-primary,
.plans-page .cta-primary,
.plans-page .nav-action,
.plans-page .featured .plan-button,
.plans-page .profile-toggle-button.active {
  background: linear-gradient(135deg, var(--ai-gold-600), var(--ai-gold-500));
  box-shadow: var(--ai-shadow-gold);
  color: #ffffff;
}

.platform-btn-primary:hover,
.plans-page .btn-primary:hover,
.plans-page .cta-primary:hover,
.plans-page .nav-action:hover,
.plans-page .featured .plan-button:hover {
  background: linear-gradient(135deg, var(--ai-gold-700), var(--ai-gold-600));
  color: #ffffff;
}

.plans-page .plan-button {
  background: var(--ai-navy-900);
}

.plans-page .hero {
  background:
    radial-gradient(circle at 84% 0%, rgba(202, 152, 86, 0.24), transparent 32%),
    linear-gradient(120deg, var(--ai-navy-950), var(--ai-navy-800));
}

.plans-page .check {
  background: var(--ai-gold-600);
}

.platform-btn-secondary {
  background: var(--ai-navy-900);
  color: #ffffff;
}

.platform-header {
  border-bottom: 1px solid rgba(217, 222, 231, 0.88);
}

.brand-box.is-ativoimob-brand {
  background:
    radial-gradient(circle at 0% 0%, rgba(202, 152, 86, 0.26), transparent 34%),
    linear-gradient(145deg, var(--ai-navy-900), var(--ai-navy-950));
}

.brand-box.is-ativoimob-brand .login-brand-logo {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(214, 170, 104, 0.24);
  border-radius: var(--ai-radius-lg);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  height: auto;
  max-height: 112px;
  padding: 18px 22px;
  width: min(280px, 100%);
}

.brand-box.is-ativoimob-brand h1 {
  height: 0;
  margin: 0;
  overflow: hidden;
}

/* Internal CRM pages */
.content,
.content-area,
.main-content {
  background: var(--ai-bg);
}

.page-section,
.dashboard-smart-page,
.module-page,
.parceiros-page,
.saas-management-page,
.saas-migration-page {
  color: var(--ai-text);
}

.ai-page-header,
.page-header,
.section-header,
.page-title-header,
.dashboard-card-heading,
.partner-card-heading,
.saas-config-heading,
.saas-panel-heading {
  border-color: var(--ai-border);
}

.page-main-title,
.page-header h1,
.section-header h1,
.section-header h2,
.dashboard-card-heading h2,
.partner-card-heading h2,
.saas-panel-heading h2,
.config-card h2,
.relatorios-quick-card strong,
.relatorios-coming-card strong {
  color: var(--ai-navy-950);
  letter-spacing: 0;
}

.page-main-subtitle,
.page-header p,
.dashboard-card-heading small,
.partner-card-heading p,
.saas-panel-heading p,
.config-card p,
.relatorios-quick-card p,
.relatorios-coming-card p {
  color: var(--ai-text-muted);
}

.section-card,
.section-card-nested,
.dashboard-panel-card,
.dashboard-chart-card,
.relatorios-section,
.relatorios-module-panel,
.relatorios-coming-section,
.config-content,
.config-card,
.config-planned-card,
.config-platform-card,
.config-switch-card,
.config-mini-panel,
.config-live-preview,
.config-whatsapp-preview,
.saas-hero-panel,
.saas-filter-panel,
.saas-form-shell,
.saas-form-panel,
.saas-kpi-card,
.saas-imob-card,
.saas-log-metric-card,
.saas-logs-filter-form,
.saas-migration-panel,
.saas-migration-feature-card,
.saas-domain-card,
.saas-status-tile,
.partner-card,
.partner-summary-grid article,
.partner-property-card,
.onboarding-checklist-card,
.onboarding-progress-panel,
.onboarding-step,
.relatorios-quick-card,
.relatorios-coming-card,
.relatorios-public-card,
.condominio-card,
.lancamento-card {
  background: var(--ai-surface);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-lg);
  box-shadow: var(--ai-shadow-sm);
}

.section-card:hover,
.dashboard-panel-card:hover,
.config-card:hover,
.config-switch-card:hover,
.saas-imob-card:hover,
.partner-card:hover,
.partner-property-card:hover,
.relatorios-quick-card:hover,
.onboarding-step:hover {
  border-color: rgba(178, 138, 83, 0.36);
  box-shadow: var(--ai-shadow-md);
}

.filters-bar,
.active-filters-bar,
.imoveis-results-toolbar,
.imoveis-toolbar-top,
.saas-audit-filters,
.saas-filter-panel,
.saas-logs-filter-form,
.relatorios-public-toolbar,
.profile-selector,
.config-section-intro {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-lg);
  box-shadow: var(--ai-shadow-sm);
}

.ai-filter-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-lg);
  box-shadow: var(--ai-shadow-sm);
}

.form-group label,
.saas-log-filter-field label,
.relatorios-public-filter label,
.saas-audit-filter-grid label,
.config-switch-card strong,
.config-status-selector strong {
  color: var(--ai-navy-900);
}

.form-group input,
.form-group select,
.form-group textarea,
.saas-log-filter-field input,
.saas-log-filter-field select,
.saas-management-filters input,
.saas-management-filters select,
.saas-split-form input,
.saas-split-form select,
.saas-split-form textarea,
.relatorios-public-filter input,
.relatorios-public-filter select,
.config-card input,
.config-card select,
.config-card textarea {
  background: #ffffff;
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-md);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover,
.saas-log-filter-field input:hover,
.saas-log-filter-field select:hover,
.config-card input:hover,
.config-card select:hover,
.config-card textarea:hover {
  border-color: rgba(178, 138, 83, 0.4);
}

.mini-stat,
.dashboard-kpi-card,
.relatorios-public-card,
.saas-kpi-card,
.saas-log-metric-card,
.saas-status-tile {
  background: linear-gradient(180deg, #ffffff, #fbfcfd);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-lg);
  box-shadow: var(--ai-shadow-sm);
}

.mini-stat strong,
.dashboard-kpi-card strong,
.saas-kpi-card strong,
.saas-log-metric-card strong,
.partner-summary-grid strong,
.relatorios-public-card strong {
  color: var(--ai-navy-950);
}

.mini-stat span,
.dashboard-kpi-card span,
.dashboard-kpi-card small,
.saas-kpi-card span,
.saas-kpi-card small,
.saas-log-metric-card span:not(.saas-log-metric-icon),
.partner-summary-grid span,
.partner-summary-grid small {
  color: var(--ai-text-muted);
}

.dashboard-hero,
.relatorios-hero,
.saas-hero-panel,
.saas-migration-hero {
  background:
    radial-gradient(circle at 92% 0%, rgba(202, 152, 86, 0.20), transparent 30%),
    linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-xl);
  box-shadow: var(--ai-shadow-md);
}

.dashboard-hero h1,
.saas-hero-panel h1,
.saas-migration-hero h1 {
  color: var(--ai-navy-950);
}

.dashboard-eyebrow,
.saas-eyebrow,
.section-badge,
.config-soon-pill,
.ai-badge-premium {
  background: rgba(202, 152, 86, 0.14);
  color: var(--ai-gold-700);
  border: 1px solid rgba(202, 152, 86, 0.18);
  letter-spacing: 0.02em;
}

.table-responsive,
.saas-logs-table-wrap,
.saas-audit-table-wrap,
.saas-migration-table-wrap,
.relatorios-table-wrap {
  background: var(--ai-surface);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-lg);
  box-shadow: var(--ai-shadow-sm);
  overflow-x: auto;
}

.ai-table,
.table,
.users-table,
.imoveis-table,
.relatorios-table,
.saas-migration-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.ai-table th,
.table th,
.users-table th,
.imoveis-table th,
.relatorios-table th,
.saas-migration-table th {
  background: #f6f7f9;
  color: var(--ai-navy-900);
  font-weight: 900;
}

.ai-table td,
.table td,
.users-table td,
.imoveis-table td,
.relatorios-table td,
.saas-migration-table td {
  border-color: var(--ai-border);
  color: var(--ai-navy-700);
}

.ai-table tbody tr:hover,
.table tbody tr:hover,
.users-table tbody tr:hover,
.imoveis-table tbody tr:hover,
.relatorios-table tbody tr:hover,
.saas-migration-table tbody tr:hover {
  background: rgba(202, 152, 86, 0.05);
}

.btn-table,
.saas-log-filter-btn,
.saas-log-clear-btn,
.config-form-actions .btn-primary,
.config-form-actions .btn-secondary,
.onboarding-step-actions .btn-primary,
.onboarding-step-actions .btn-secondary,
.partner-actions .btn-primary,
.partner-actions .btn-secondary {
  border-radius: var(--ai-radius-md);
  min-height: 40px;
}

.btn-table-link,
.btn-table-light,
.btn-table-warning {
  background: #f6f7f9;
  border: 1px solid var(--ai-border);
  color: var(--ai-navy-900);
}

.btn-table-link:hover,
.btn-table-light:hover,
.btn-table-warning:hover {
  border-color: rgba(178, 138, 83, 0.44);
  color: var(--ai-gold-700);
}

.btn-table-danger-soft {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.18);
  color: #991b1b;
}

.status-badge,
.ai-status-badge,
.imovel-status-badge,
.imovel-list-status-badge,
.imovel-card-status,
.relatorios-status-pill,
.saas-audit-pill,
.lancamento-status-badge,
.condominio-status-badge {
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
}

.status-badge.active,
.status-badge.success,
.imovel-status-badge.status-ativo,
.imovel-list-status-badge.status-ativo,
.imovel-card-status.status-ativo,
.relatorios-status-pill.status-ativo,
.saas-audit-pill.success,
.lancamento-status-badge.status-ativo,
.condominio-status-badge.status-ativo {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.18);
  color: #166534;
}

.status-badge.inactive,
.imovel-status-badge.status-cancelado,
.imovel-status-badge.status-inativo,
.imovel-list-status-badge.status-cancelado,
.imovel-list-status-badge.status-inativo,
.imovel-card-status.status-cancelado,
.imovel-card-status.status-inativo,
.relatorios-status-pill.status-cancelado,
.saas-audit-pill.danger {
  background: rgba(220, 38, 38, 0.10);
  border-color: rgba(220, 38, 38, 0.16);
  color: #991b1b;
}

.status-badge.neutral,
.saas-audit-pill.neutral {
  background: rgba(58, 100, 149, 0.10);
  border-color: rgba(58, 100, 149, 0.18);
  color: var(--ai-blue-500);
}

.imovel-status-badge.status-provisorio,
.imovel-status-badge.status-aguardando_aprovacao,
.imovel-status-badge.status-em_analise,
.imovel-list-status-badge.status-provisorio,
.imovel-list-status-badge.status-aguardando_aprovacao,
.imovel-list-status-badge.status-em_aprovacao,
.imovel-list-status-badge.status-em_analise,
.imovel-card-status.status-provisorio,
.imovel-card-status.status-aguardando_aprovacao,
.relatorios-status-pill.status-provisorio,
.relatorios-status-pill.status-aguardando_aprovacao {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.18);
  color: #92400e;
}

.imovel-status-badge.status-ficha,
.imovel-list-status-badge.status-ficha,
.imovel-card-status.status-ficha {
  background: rgba(58, 100, 149, 0.11);
  border-color: rgba(58, 100, 149, 0.18);
  color: var(--ai-blue-500);
}

.imovel-card-grid {
  background: var(--ai-surface);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-lg);
  box-shadow: var(--ai-shadow-sm);
  overflow: hidden;
}

.imovel-card-grid:hover {
  border-color: rgba(178, 138, 83, 0.36);
  box-shadow: var(--ai-shadow-md);
}

.imovel-card-grid-body h3,
.imovel-card-grid-price {
  color: var(--ai-navy-950);
}

.imovel-card-grid-subtitle,
.imovel-card-grid-location,
.imovel-card-grid-metrics,
.imovel-card-meta {
  color: var(--ai-text-muted);
}

.imoveis-view-switcher a,
.imoveis-view-switcher button,
.profile-toggle-button,
.partners-tab-button,
.saas-form-tab,
.config-submenu-item,
.config-menu-item {
  border-radius: var(--ai-radius-md);
}

.imoveis-view-switcher .active,
.imoveis-view-switcher a.active,
.imoveis-view-switcher button.active,
.profile-toggle-button.active,
.partners-tab-button.is-active,
.saas-form-tab.active,
.config-submenu-item.active,
.config-menu-item.active {
  background: rgba(202, 152, 86, 0.14);
  border-color: rgba(202, 152, 86, 0.24);
  color: var(--ai-gold-700);
}

.config-menu,
.config-wrapper {
  border-color: var(--ai-border);
}

.config-menu-group.active,
.config-status-selector label.is-selected,
.config-profile-selector label.is-selected,
.config-switch-card.is-recommended,
.saas-config-card.is-featured,
.saas-operation-option.active {
  border-color: rgba(202, 152, 86, 0.42);
  box-shadow: var(--ai-shadow-gold);
}

.config-submenu-item.is-todo::after,
.config-soon-pill,
.relatorios-coming-card span {
  background: rgba(202, 152, 86, 0.14);
  color: var(--ai-gold-700);
}

.onboarding-progress-ring {
  border-color: rgba(202, 152, 86, 0.28);
  color: var(--ai-gold-700);
}

.onboarding-progress-fill {
  background: linear-gradient(90deg, var(--ai-gold-600), var(--ai-gold-500));
}

.onboarding-step.is-completed {
  border-color: rgba(22, 163, 74, 0.22);
  background: linear-gradient(180deg, #ffffff, #f6fdf8);
}

.onboarding-step-number {
  background: rgba(58, 100, 149, 0.12);
  color: var(--ai-blue-500);
}

.onboarding-step-check {
  background: rgba(22, 163, 74, 0.14);
  color: #166534;
}

.onboarding-step {
  grid-template-columns: 44px minmax(0, 1fr) minmax(360px, auto);
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.onboarding-step-number,
.onboarding-step-check {
  width: 44px;
  height: 44px;
  align-self: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.onboarding-step-content {
  align-self: center;
}

.onboarding-step-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 14px;
}

.onboarding-step h2 {
  margin-bottom: 4px;
  line-height: 1.18;
}

.onboarding-step p {
  margin-bottom: 0;
  max-width: 680px;
}

.onboarding-step-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(82px, 1fr));
  gap: 8px;
  justify-content: end;
}

.onboarding-step-badges .status-badge {
  justify-content: center;
  min-height: 30px;
  padding: 7px 12px;
  text-align: center;
  white-space: nowrap;
}

.onboarding-step-actions {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(178px, 1fr);
  align-items: stretch;
  justify-self: end;
  gap: 10px;
  min-width: min(360px, 100%);
}

.onboarding-step-actions form {
  display: flex;
  margin: 0;
}

.onboarding-step-actions .btn-primary,
.onboarding-step-actions .btn-secondary,
.onboarding-step-actions .onboarding-auto-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: 0 16px;
  border-radius: var(--ai-radius-md);
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.onboarding-step-actions > .btn-primary:only-child,
.onboarding-step-actions > .btn-secondary:only-child {
  grid-column: 1 / -1;
}

.onboarding-step-actions .onboarding-auto-note {
  white-space: normal;
}

.onboarding-step-meta {
  margin-top: 8px;
}

.partner-code-result,
.partner-lead-box,
.partner-list-compact,
.partner-quality,
.partner-checkline {
  border-radius: var(--ai-radius-md);
}

.partner-quality.is-ok {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.partner-quality.is-warning {
  background: rgba(217, 119, 6, 0.12);
  color: #92400e;
}

.relatorios-quick-card.active {
  border-color: rgba(202, 152, 86, 0.42);
  box-shadow: var(--ai-shadow-gold);
}

.relatorios-quick-card em {
  background: rgba(202, 152, 86, 0.14);
  color: var(--ai-gold-700);
}

.saas-log-metric-icon,
.saas-log-filter-icon,
.saas-log-button-icon,
.saas-imob-logo,
.saas-price-pill {
  background: rgba(202, 152, 86, 0.14);
  color: var(--ai-gold-700);
}

.saas-domain-preview,
.saas-migration-preview,
.saas-migration-export-preview,
.saas-migration-confirm,
.relatorios-public-privacy {
  background: #fbfcfd;
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-lg);
}

@media (max-width: 860px) {
  .section-card,
  .filters-bar,
  .active-filters-bar,
  .dashboard-hero,
  .relatorios-hero,
  .saas-hero-panel,
  .partner-card,
  .config-card {
    border-radius: var(--ai-radius-md);
  }

  .table-responsive,
  .saas-logs-table-wrap,
  .relatorios-table-wrap {
    margin-inline: -2px;
  }
}

/* Fine tuning after internal page review */
.plans-page .nav-action:not(.nav-action-secondary),
.plans-page .cta-button,
.plans-page .featured .plan-button,
.plans-page .profile-toggle-button.active {
  background: linear-gradient(135deg, var(--ai-gold-600), var(--ai-gold-500));
  border-color: transparent;
  box-shadow: var(--ai-shadow-gold);
  color: #ffffff;
}

.plans-page .nav-action:not(.nav-action-secondary):hover,
.plans-page .cta-button:hover,
.plans-page .featured .plan-button:hover {
  background: linear-gradient(135deg, var(--ai-gold-700), var(--ai-gold-600));
  color: #ffffff;
}

.plans-page .nav-action-secondary {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--ai-border);
  box-shadow: none;
  color: var(--ai-navy-900);
}

.plans-page .nav-action-secondary:hover {
  background: #ffffff;
  border-color: rgba(178, 138, 83, 0.42);
  color: var(--ai-gold-700);
}

.plans-page .plan-card.featured {
  border-color: rgba(202, 152, 86, 0.52);
  box-shadow: 0 22px 52px rgba(202, 152, 86, 0.18);
}

.filters-bar .btn-secondary,
.active-filters-bar .btn-secondary,
.imoveis-toolbar-actions .btn-secondary,
.filter-actions-group .btn-secondary,
.saas-log-clear-btn,
.saas-filter-actions .btn-secondary,
.saas-audit-filter-actions .btn-secondary,
.relatorios-public-filter .btn,
.config-form-actions .btn-secondary,
.onboarding-step-actions .btn-secondary,
.partner-actions .btn-secondary,
.section-actions .btn-secondary,
.brand-upload-actions .btn-secondary,
.user-photo-actions .btn-secondary {
  background: #f6f7f9;
  border: 1px solid var(--ai-border);
  box-shadow: none;
  color: var(--ai-navy-900);
}

.filters-bar .btn-secondary:hover,
.active-filters-bar .btn-secondary:hover,
.imoveis-toolbar-actions .btn-secondary:hover,
.filter-actions-group .btn-secondary:hover,
.saas-log-clear-btn:hover,
.saas-filter-actions .btn-secondary:hover,
.saas-audit-filter-actions .btn-secondary:hover,
.relatorios-public-filter .btn:hover,
.config-form-actions .btn-secondary:hover,
.onboarding-step-actions .btn-secondary:hover,
.partner-actions .btn-secondary:hover,
.section-actions .btn-secondary:hover,
.brand-upload-actions .btn-secondary:hover,
.user-photo-actions .btn-secondary:hover {
  background: #ffffff;
  border-color: rgba(178, 138, 83, 0.42);
  color: var(--ai-gold-700);
}

.section-actions .btn-primary,
.filter-actions-group .btn-primary,
.saas-filter-actions .btn-primary,
.saas-audit-filter-actions .btn-primary,
.saas-log-filter-btn,
.config-form-actions .btn-primary,
.partner-actions .btn-primary,
.onboarding-step-actions .btn-primary {
  min-height: 42px;
}

.filters-bar,
.active-filters-bar,
.imoveis-results-toolbar,
.saas-logs-filter-form {
  padding: 18px;
}

.imoveis-toolbar-top {
  padding: 14px 16px;
}

.filters-bar .form-grid,
.saas-logs-filter-grid,
.saas-management-filters,
.relatorios-public-toolbar,
.config-operational-grid {
  align-items: end;
  gap: 16px;
}

.table-responsive {
  border-radius: var(--ai-radius-md);
}

.table th,
.users-table th,
.imoveis-table th,
.relatorios-table th {
  border-bottom: 1px solid var(--ai-border);
  padding-block: 14px;
}

.table td,
.users-table td,
.imoveis-table td,
.relatorios-table td {
  padding-block: 14px;
}

.status-badge,
.imovel-status-badge,
.imovel-list-status-badge,
.imovel-card-status,
.relatorios-status-pill {
  line-height: 1.15;
  min-height: 26px;
  padding: 6px 10px;
}

.saas-imob-badges .status-badge {
  background: rgba(58, 100, 149, 0.09);
  border-color: rgba(58, 100, 149, 0.16);
  color: var(--ai-blue-500);
}

.saas-imob-card-top > .status-badge.active,
.saas-imob-badges .commercial-status-ativo,
.saas-imob-badges .commercial-status-trial {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.18);
  color: #166534;
}

.saas-imob-card-top > .status-badge.inactive,
.saas-imob-badges .commercial-status-inadimplente,
.saas-imob-badges .commercial-status-bloqueado,
.saas-imob-badges .commercial-status-cancelado {
  background: rgba(220, 38, 38, 0.10);
  border-color: rgba(220, 38, 38, 0.16);
  color: #991b1b;
}

.partner-properties-grid {
  align-items: stretch;
}

.partner-property-body h3,
.imovel-card-grid-body h3,
.relatorios-quick-card strong {
  line-height: 1.18;
}

.config-menu {
  box-shadow: var(--ai-shadow-sm);
}

.config-card,
.config-planned-card {
  padding: clamp(18px, 2vw, 26px);
}

.saas-logs-toolbar {
  background: var(--ai-surface);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-xl);
  box-shadow: var(--ai-shadow-sm);
}

.saas-logs-retention-note {
  background: rgba(202, 152, 86, 0.08);
  border: 1px solid rgba(202, 152, 86, 0.16);
  border-radius: var(--ai-radius-md);
  color: var(--ai-navy-800);
}

@media (max-width: 768px) {
  .ai-diagonal-accent::after {
    right: -54px;
    top: 18px;
  }

  .plans-page .nav-actions,
  .section-actions,
  .saas-filter-actions,
  .saas-logs-filter-actions,
  .partner-actions,
  .onboarding-step-actions {
    align-items: stretch;
    width: 100%;
  }

  .onboarding-step {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
  }

  .onboarding-step-actions {
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: stretch;
    min-width: 0;
  }

  .plans-page .nav-action,
  .section-actions .btn-primary,
  .section-actions .btn-secondary,
  .saas-filter-actions .btn-primary,
  .saas-filter-actions .btn-secondary,
  .partner-actions .btn-primary,
  .partner-actions .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .onboarding-step {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .onboarding-step-number,
  .onboarding-step-check {
    justify-self: start;
  }

  .onboarding-step-heading,
  .onboarding-step-badges,
  .onboarding-step-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .onboarding-step-badges {
    justify-content: stretch;
  }

  .onboarding-step-actions {
    grid-column: 1;
  }
}

/* Secondary internal flows */
.imovel-kenlo-form .section-card,
.first-password-card,
.operational-blocked-card,
.conta-panel,
.permissions-table-wrapper {
  background: var(--ai-surface);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-xl);
  box-shadow: var(--ai-shadow-sm);
}

.imovel-kenlo-form .section-card {
  padding: clamp(18px, 2vw, 26px);
}

.imovel-kenlo-form .section-card-nested {
  background: #fbfcfd;
  border-color: var(--ai-border);
  border-radius: var(--ai-radius-lg);
  box-shadow: none;
}

.imovel-kenlo-form .section-header {
  border-bottom: 1px solid var(--ai-border);
  margin-bottom: 18px;
  padding-bottom: 12px;
}

.imovel-kenlo-form .section-header h2,
.user-photo-copy h3,
.conta-panel h2,
.conta-panel h3,
.permission-label-row strong {
  color: var(--ai-navy-900);
  font-weight: 900;
}

.imovel-kenlo-form .form-group label,
.first-password-form .form-group label,
.conta-detail-grid span,
.conta-info-list span,
.permission-technical-key {
  color: var(--ai-text-muted);
}

.imovel-kenlo-form .field-helper,
.user-photo-copy p,
.user-photo-copy small,
.conta-panel-note,
.conta-empty-state p,
.global-notification-item p {
  color: var(--ai-text-muted);
}

.input-readonly,
.imovel-kenlo-form input[readonly],
.imovel-kenlo-form textarea[readonly] {
  background: var(--ai-surface-soft);
  color: var(--ai-navy-700);
}

.user-photo-section {
  background:
    linear-gradient(135deg, rgba(202, 152, 86, 0.10), rgba(255, 255, 255, 0.94)),
    var(--ai-surface);
  border-color: rgba(202, 152, 86, 0.28);
}

.user-photo-preview {
  background:
    linear-gradient(45deg, #eef1f5 25%, transparent 25%),
    linear-gradient(-45deg, #eef1f5 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef1f5 75%),
    linear-gradient(-45deg, transparent 75%, #eef1f5 75%),
    #ffffff;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  border-color: rgba(202, 152, 86, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.user-photo-fallback,
.user-avatar {
  background: linear-gradient(135deg, var(--ai-navy-900), var(--ai-gold-600));
  color: #ffffff;
}

.user-photo-kicker {
  background: rgba(202, 152, 86, 0.14);
  border-radius: 999px;
  color: var(--ai-gold-700);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  text-transform: uppercase;
  width: fit-content;
}

.users-summary .mini-stat,
.first-password-summary > div,
.password-strength-box,
.conta-detail-grid div,
.conta-info-list div,
.conta-contract-status,
.conta-service-card,
.conta-pendencia-card {
  background: #fbfcfd;
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-lg);
  box-shadow: none;
}

.user-table-identity strong,
.first-password-summary strong,
.password-strength-box strong,
.conta-detail-grid strong,
.conta-info-list strong,
.conta-empty-state strong,
.conta-service-card strong,
.conta-pendencia-card strong {
  color: var(--ai-navy-900);
}

.imovel-kenlo-modal-overlay {
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(6px);
}

.imovel-kenlo-modal-box {
  border: 1px solid rgba(217, 222, 231, 0.92);
  border-radius: var(--ai-radius-xl);
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.26);
}

.imovel-kenlo-modal-close {
  background: var(--ai-navy-900);
  border: 1px solid rgba(214, 170, 104, 0.24);
  color: #ffffff;
}

.imovel-kenlo-modal-close:hover {
  background: var(--ai-gold-600);
  transform: scale(1.06);
}

.imovel-kenlo-modal-header {
  background:
    radial-gradient(circle at 0% 0%, rgba(202, 152, 86, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border-bottom: 1px solid var(--ai-border);
}

.imovel-kenlo-title-row h2 {
  color: var(--ai-navy-900);
  font-weight: 900;
}

.imovel-kenlo-status-dot {
  background: var(--ai-gold-500);
  box-shadow: 0 0 0 5px rgba(202, 152, 86, 0.16);
}

.imovel-kenlo-address {
  color: var(--ai-navy-700);
}

.imovel-kenlo-actions .imovel-kenlo-photo,
.imovel-kenlo-actions .imovel-action-card,
.imovel-kenlo-actions a.imovel-action-card {
  border-color: var(--ai-border);
  border-radius: var(--ai-radius-lg);
  box-shadow: var(--ai-shadow-sm);
}

.imovel-kenlo-actions .imovel-action-card:hover,
.imovel-kenlo-actions .imovel-action-card.is-active {
  background: rgba(202, 152, 86, 0.08);
  border-color: rgba(202, 152, 86, 0.46);
  box-shadow: var(--ai-shadow-gold);
}

.imovel-kenlo-actions .imovel-action-card .imovel-action-icon {
  background: rgba(202, 152, 86, 0.14);
  color: var(--ai-gold-700);
}

.imovel-kenlo-actions .imovel-action-card strong {
  color: var(--ai-navy-900);
}

.imovel-kenlo-actions .imovel-action-card small {
  color: var(--ai-text-muted);
}

.imovel-kenlo-actions .imovel-action-card-success .imovel-action-icon {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.imovel-kenlo-actions .imovel-action-card-danger .imovel-action-icon {
  background: rgba(220, 38, 38, 0.10);
  color: #991b1b;
}

.imovel-kenlo-tabs {
  background: var(--ai-surface-soft);
  border-bottom: 1px solid var(--ai-border);
  gap: 6px;
}

.imovel-kenlo-tab {
  background: #ffffff;
  border-color: var(--ai-border);
  color: var(--ai-navy-800);
}

.imovel-kenlo-tab:hover {
  border-color: rgba(202, 152, 86, 0.38);
  color: var(--ai-gold-700);
}

.imovel-kenlo-tab.active {
  background: var(--ai-navy-900);
  border-color: var(--ai-navy-900);
  box-shadow: inset 0 3px 0 var(--ai-gold-500), var(--ai-shadow-sm);
  color: #ffffff;
}

.imovel-modal-section {
  border-bottom: 1px solid var(--ai-border);
}

.imovel-modal-section h3,
.imovel-modal-item span {
  color: var(--ai-navy-900);
}

.imovel-modal-item strong {
  color: var(--ai-text-muted);
}

.imovel-modal-history-table th,
.imovel-modal-history-table td {
  border-color: var(--ai-border);
}

.imovel-modal-history-table th {
  background: rgba(202, 152, 86, 0.10);
  color: var(--ai-gold-700);
}

.imovel-status-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border-color: rgba(202, 152, 86, 0.28);
  box-shadow: var(--ai-shadow-gold);
}

.imovel-status-panel select:focus,
.imovel-status-panel textarea:focus {
  border-color: var(--ai-gold-500);
  box-shadow: 0 0 0 3px rgba(202, 152, 86, 0.16);
}

.imovel-status-panel-footer button {
  background: linear-gradient(135deg, var(--ai-gold-600), var(--ai-gold-500));
  box-shadow: var(--ai-shadow-gold);
}

.imovel-status-feedback.is-info {
  color: var(--ai-blue-500);
}

.imovel-desatualizado {
  background: rgba(217, 119, 6, 0.08) !important;
  border-color: rgba(217, 119, 6, 0.36) !important;
}

.imovel-suspensao-recomendada {
  background: rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.30) !important;
}

.permissions-table-wrapper {
  border-radius: var(--ai-radius-lg);
}

.permissions-matrix-table thead th {
  background: #fbfcfd;
  color: var(--ai-navy-900);
}

.rbac-matrix-table th:first-child,
.rbac-matrix-table td:first-child,
.permissions-matrix-table thead th:first-child {
  background: #ffffff;
}

.rbac-module-row td {
  background: var(--ai-navy-900) !important;
  color: #ffffff;
}

.rbac-matrix-table select {
  border-color: var(--ai-border);
  border-radius: var(--ai-radius-md);
}

.permission-help-icon {
  background: rgba(202, 152, 86, 0.12);
  border-color: rgba(202, 152, 86, 0.24);
  color: var(--ai-gold-700);
}

.permission-help-icon:hover,
.permission-help-icon:focus {
  background: var(--ai-navy-900);
  border-color: var(--ai-navy-900);
  color: #ffffff;
}

.permission-global-tooltip {
  background: var(--ai-navy-900);
  border: 1px solid rgba(214, 170, 104, 0.24);
  box-shadow: var(--ai-shadow-md);
}

.first-password-page .saas-config-heading span,
.operational-blocked-card .saas-eyebrow {
  background: rgba(202, 152, 86, 0.14);
  color: var(--ai-gold-700);
}

.password-strength-meter {
  background: var(--ai-border);
}

.config-live-preview {
  background: rgba(202, 152, 86, 0.08);
  border-color: rgba(202, 152, 86, 0.18);
  color: var(--ai-navy-800);
}

.operational-blocked-card {
  padding: clamp(28px, 4vw, 46px);
}

.operational-blocked-icon {
  background: rgba(220, 38, 38, 0.10);
  border-color: rgba(220, 38, 38, 0.20);
  color: var(--ai-danger);
}

.operational-blocked-reason {
  background: #fbfcfd;
  border-color: var(--ai-border);
}

.conta-contratos-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 152, 86, 0.13), transparent 36%),
    var(--ai-surface);
}

.conta-panel-note {
  background: rgba(58, 100, 149, 0.08);
  border-color: rgba(58, 100, 149, 0.16);
  color: var(--ai-navy-800);
}

.conta-empty-state {
  background: #fbfcfd;
  border-color: var(--ai-border);
}

.conta-empty-state-ok {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.20);
}

.conta-pendencia-atencao {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.22);
}

.conta-pendencia-bloqueado {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.20);
}

.global-notification-bell {
  background: #ffffff;
  border-color: var(--ai-border);
  color: var(--ai-gold-700);
}

.global-notification-bell:hover {
  background: rgba(202, 152, 86, 0.08);
  border-color: rgba(202, 152, 86, 0.34);
}

.global-notification-panel {
  border-color: var(--ai-border);
  border-radius: var(--ai-radius-lg);
  box-shadow: var(--ai-shadow-md);
}

.global-notification-panel-header {
  background: #fbfcfd;
  border-bottom-color: var(--ai-border);
}

.global-notification-panel-header strong {
  color: var(--ai-navy-900);
}

.global-notification-panel-header button,
.global-notification-link {
  color: var(--ai-gold-700);
}

.global-notification-item {
  border-color: var(--ai-border);
}

/* Round 1 internal visual polish: dashboard and property flows */
.content {
  background:
    radial-gradient(circle at 8% 0%, rgba(202, 152, 86, 0.10), transparent 28%),
    radial-gradient(circle at 96% 10%, rgba(58, 100, 149, 0.09), transparent 32%),
    var(--ai-bg);
}

.dashboard-smart-page,
.page-section {
  gap: 24px;
}

.dashboard-hero,
.page-section > .section-card:first-child,
.imovel-kenlo-form .section-card {
  position: relative;
}

.dashboard-hero {
  overflow: hidden;
}

.dashboard-hero {
  border-color: rgba(202, 152, 86, 0.22);
  background:
    radial-gradient(circle at 86% 8%, rgba(202, 152, 86, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: 0 24px 58px rgba(32, 42, 57, 0.10);
}

.dashboard-hero::after {
  content: '';
  position: absolute;
  right: -62px;
  top: -72px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(202, 152, 86, 0.14);
  pointer-events: none;
}

.dashboard-hero h1 {
  color: var(--ai-navy-950);
  font-weight: 950;
}

.dashboard-hero p {
  color: var(--ai-navy-700);
}

.dashboard-hero aside {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(circle at 92% 12%, rgba(214, 170, 104, 0.25), transparent 34%),
    linear-gradient(145deg, var(--ai-navy-900), var(--ai-navy-950));
  border-color: rgba(214, 170, 104, 0.24);
  box-shadow: 0 20px 44px rgba(32, 42, 57, 0.16);
}

.dashboard-hero aside span,
.dashboard-hero aside small {
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-hero aside strong {
  color: #ffffff;
}

.dashboard-kpi-card,
.dashboard-chart-card,
.dashboard-panel-card {
  border-color: rgba(217, 222, 231, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 252, 253, 0.96));
  box-shadow: 0 18px 42px rgba(32, 42, 57, 0.08);
}

.dashboard-kpi-card::after {
  content: '';
  position: absolute;
  inset: auto 18px 14px auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(202, 152, 86, 0.08);
  pointer-events: none;
}

.dashboard-kpi-card strong,
.dashboard-card-heading h2 {
  color: var(--ai-navy-950);
}

.dashboard-kpi-card span,
.dashboard-card-heading span {
  color: var(--ai-navy-700);
}

.dashboard-action-card,
.dashboard-insight-list li {
  border-color: var(--ai-border);
  background: linear-gradient(180deg, #ffffff, #fbfcfd);
  box-shadow: 0 10px 24px rgba(32, 42, 57, 0.05);
}

.filters-bar.imoveis-filters-form {
  padding: clamp(18px, 2vw, 24px);
  border-color: rgba(202, 152, 86, 0.20);
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 152, 86, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow: 0 18px 46px rgba(32, 42, 57, 0.07);
}

.filters-bar.imoveis-filters-form .imoveis-toolbar-top {
  margin-bottom: 20px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid rgba(217, 222, 231, 0.88);
  background: transparent;
  box-shadow: none;
}

.imoveis-toolbar-title {
  color: var(--ai-navy-950);
  font-size: 17px;
  font-weight: 950;
}

.additional-filters-trigger,
.filters-bar.imoveis-filters-form .btn-secondary {
  border-radius: 999px;
}

.additional-filters-menu {
  border-color: rgba(202, 152, 86, 0.22);
  box-shadow: 0 20px 48px rgba(32, 42, 57, 0.14);
}

.additional-filter-option {
  border: 1px solid transparent;
}

.additional-filter-option:hover {
  background: rgba(202, 152, 86, 0.08);
  border-color: rgba(202, 152, 86, 0.16);
  color: var(--ai-navy-900);
}

.filters-bar.imoveis-filters-form .form-group label,
.imovel-kenlo-form .form-group label {
  color: var(--ai-navy-900);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.filters-bar.imoveis-filters-form input,
.filters-bar.imoveis-filters-form select,
.imovel-kenlo-form input,
.imovel-kenlo-form select,
.imovel-kenlo-form textarea {
  border-color: rgba(217, 222, 231, 0.96);
  background: #ffffff;
  color: var(--ai-navy-900);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.filters-bar.imoveis-filters-form input:focus,
.filters-bar.imoveis-filters-form select:focus,
.imovel-kenlo-form input:focus,
.imovel-kenlo-form select:focus,
.imovel-kenlo-form textarea:focus {
  border-color: var(--ai-gold-500);
  box-shadow: 0 0 0 4px rgba(202, 152, 86, 0.14);
}

.active-filters-bar,
.imoveis-results-toolbar {
  border-color: rgba(217, 222, 231, 0.86);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 26px rgba(32, 42, 57, 0.05);
}

.active-filter-tag,
.imoveis-view-switcher {
  border-color: rgba(202, 152, 86, 0.18);
  background: rgba(202, 152, 86, 0.08);
}

.view-mode-btn.active {
  background: linear-gradient(135deg, var(--ai-navy-900), var(--ai-navy-800));
  box-shadow: inset 0 3px 0 var(--ai-gold-500);
}

.imoveis-table {
  overflow: hidden;
  border-radius: var(--ai-radius-lg);
}

.imoveis-table th {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 247, 249, 0.96));
  color: var(--ai-navy-900);
}

.imoveis-table tbody tr {
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.imoveis-table tbody tr:hover {
  background: rgba(202, 152, 86, 0.06);
}

.imovel-list-card,
.imovel-card-grid {
  border-color: rgba(217, 222, 231, 0.92);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(32, 42, 57, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.imovel-list-card:hover,
.imovel-card-grid:hover {
  border-color: rgba(202, 152, 86, 0.34);
  box-shadow: 0 24px 52px rgba(32, 42, 57, 0.11);
  transform: translateY(-2px);
}

.imovel-card-grid-body {
  min-height: 226px;
}

.imovel-card-grid-body h3,
.imovel-list-main h3 {
  color: var(--ai-navy-950);
  font-weight: 950;
}

.imovel-card-grid-body h3 {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.imovel-card-grid-price {
  margin-top: auto;
  color: var(--ai-gold-700);
  font-weight: 950;
}

.imovel-card-grid-metrics span,
.imovel-card-meta span,
.imovel-list-status-badge,
.imovel-update-badge,
.imovel-status-badge {
  border-radius: 999px;
  font-weight: 850;
}

.imovel-card-grid-metrics span,
.imovel-card-meta span {
  background: rgba(58, 100, 149, 0.08);
  border-color: rgba(58, 100, 149, 0.14);
  color: var(--ai-navy-800);
}

.imovel-mini-action {
  border: 1px solid rgba(217, 222, 231, 0.96);
  background: #ffffff;
  color: var(--ai-navy-900);
  box-shadow: 0 8px 18px rgba(32, 42, 57, 0.08);
}

.imovel-mini-action:hover {
  background: var(--ai-navy-900);
  border-color: var(--ai-navy-900);
  color: #ffffff;
}

.imoveis-pagination .pagination-btn {
  border-color: rgba(217, 222, 231, 0.92);
  background: #ffffff;
  color: var(--ai-navy-900);
  box-shadow: 0 8px 18px rgba(32, 42, 57, 0.05);
}

.imoveis-pagination .pagination-btn.active,
.imoveis-pagination .pagination-btn:hover {
  background: var(--ai-navy-900);
  border-color: var(--ai-navy-900);
  color: #ffffff;
}

.imovel-kenlo-form .section-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--ai-gold-600), rgba(58, 100, 149, 0.62), transparent);
}

.imovel-kenlo-form .section-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.imovel-kenlo-form .section-header h2::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ai-gold-500);
  box-shadow: 0 0 0 5px rgba(202, 152, 86, 0.14);
}

.imovel-kenlo-form .section-card-nested,
.photo-upload-dropzone,
.file-upload-dropzone {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.95));
  border-color: rgba(202, 152, 86, 0.20);
}

.photo-upload-dropzone:hover,
.file-upload-dropzone:hover {
  border-color: rgba(202, 152, 86, 0.42);
  box-shadow: 0 16px 34px rgba(202, 152, 86, 0.12);
}

.imovel-kenlo-actions {
  align-items: stretch;
}

.imovel-kenlo-actions .imovel-action-card,
.imovel-kenlo-actions a.imovel-action-card {
  min-height: 96px;
  justify-content: flex-start;
}

.imovel-kenlo-actions .imovel-action-card .imovel-action-icon {
  min-width: 42px;
  height: 34px;
  border-radius: 12px;
}

.imovel-status-panel {
  border-radius: var(--ai-radius-xl);
}

.imovel-status-panel-head {
  border-bottom: 1px solid rgba(217, 222, 231, 0.88);
  padding-bottom: 12px;
}

.imovel-status-panel-footer button {
  border-radius: 999px;
}

@media (max-width: 760px) {
  .imovel-kenlo-modal-box {
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .imovel-kenlo-modal-header {
    padding-inline: 18px;
  }

  .imovel-kenlo-tabs {
    padding-inline: 12px;
  }

  .permissions-table-wrapper {
    max-height: none;
    min-height: 0;
  }

  .dashboard-hero {
    padding: 20px;
  }

  .filters-bar.imoveis-filters-form {
    padding: 16px;
  }

  .imovel-card-grid-body {
    min-height: 0;
  }

  .imovel-kenlo-actions .imovel-action-card,
  .imovel-kenlo-actions a.imovel-action-card {
    min-height: 68px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  }

  .imovel-kenlo-actions .imovel-kenlo-photo {
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  }

  .imovel-kenlo-tabs {
    background: rgba(248, 250, 252, 0.96);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }

  .imovel-kenlo-tab {
    border-radius: 999px;
  }

  .imovel-modal-section {
    border-radius: 18px;
    border: 1px solid var(--ai-border);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  }
}

/* Round 2 visual polish: leads and relationship surfaces */
.partner-summary-grid article:nth-child(3),
.partner-summary-grid article:nth-child(4) {
  position: relative;
  overflow: hidden;
  border-color: rgba(202, 152, 86, 0.24);
  background:
    radial-gradient(circle at 88% 10%, rgba(202, 152, 86, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff, #fbfcfd);
}

.partner-summary-grid article:nth-child(3)::after,
.partner-summary-grid article:nth-child(4)::after,
#leads .partner-card::after {
  content: '';
  position: absolute;
  right: -42px;
  top: -58px;
  width: 142px;
  height: 142px;
  border-radius: 999px;
  background: rgba(202, 152, 86, 0.12);
  pointer-events: none;
}

.partner-summary-grid article:nth-child(3) strong,
.partner-summary-grid article:nth-child(4) strong {
  color: var(--ai-gold-700);
}

.partners-tab-button[data-partners-tab="leads"] {
  position: relative;
}

.partners-tab-button[data-partners-tab="leads"]::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ai-gold-500);
  box-shadow: 0 0 0 5px rgba(202, 152, 86, 0.14);
}

#leads .partner-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(202, 152, 86, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 152, 86, 0.14), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(58, 100, 149, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: 0 22px 54px rgba(32, 42, 57, 0.09);
}

#leads .partner-card-heading {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

#leads .partner-card-heading h2 {
  color: var(--ai-navy-950);
  font-weight: 950;
}

#leads .partner-card-heading p,
#leads .partner-muted {
  color: var(--ai-navy-700);
}

#leads .partner-lead-box {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 104px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(217, 222, 231, 0.92);
  border-radius: var(--ai-radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 243, 246, 0.84));
  box-shadow: 0 14px 32px rgba(32, 42, 57, 0.07);
}

#leads .partner-lead-box::before {
  content: '';
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, var(--ai-navy-900), var(--ai-navy-950));
  box-shadow: inset 0 4px 0 rgba(202, 152, 86, 0.72), 0 12px 24px rgba(32, 42, 57, 0.16);
}

#leads .partner-lead-box strong {
  grid-column: 1;
  grid-row: 1;
  place-self: center;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  z-index: 1;
}

#leads .partner-lead-box span {
  grid-column: 2;
  color: var(--ai-navy-800);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
}

#leads .partner-muted {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(58, 100, 149, 0.16);
  border-radius: var(--ai-radius-md);
  background: rgba(58, 100, 149, 0.08);
}

.dashboard-tone-violet::before,
.relatorios-coming-card:nth-child(1)::before,
.relatorios-coming-card:nth-child(3)::before,
.relatorios-coming-card:nth-child(10)::before {
  background: linear-gradient(90deg, var(--ai-gold-600), var(--ai-gold-500));
}

.relatorios-coming-card:nth-child(1),
.relatorios-coming-card:nth-child(3),
.relatorios-coming-card:nth-child(10) {
  border-color: rgba(202, 152, 86, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 152, 86, 0.12), transparent 28%),
    #ffffff;
}

@media (max-width: 760px) {
  #leads .partner-lead-box {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  #leads .partner-lead-box::before,
  #leads .partner-lead-box strong,
  #leads .partner-lead-box span {
    grid-column: 1;
  }

  #leads .partner-lead-box::before {
    grid-row: 1;
    margin: 0 auto;
  }

  #leads .partner-lead-box strong {
    grid-row: 1;
  }

  #leads .partner-lead-box span {
    grid-row: 2;
  }
}

/* Round 3 visual polish: operational modules */
.page-section.module-page,
.relatorios-page,
.config-page {
  color: var(--ai-navy-900);
}

.page-header,
.condominios-page-header,
.lancamentos-page-header,
.parceiros-page-header {
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(217, 222, 231, 0.86);
  border-radius: var(--ai-radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 152, 86, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  box-shadow: 0 18px 42px rgba(32, 42, 57, 0.08);
}

.page-header h1,
.condominios-page-header h1,
.lancamentos-page-header h1,
.parceiros-page-header h1 {
  color: var(--ai-navy-950);
  font-weight: 950;
  letter-spacing: 0;
}

.page-header p,
.condominios-page-header p,
.lancamentos-page-header p,
.parceiros-page-header p {
  color: var(--ai-navy-700);
  max-width: 820px;
}

.section-badge,
.saas-config-heading span,
.config-soon-pill {
  letter-spacing: 0.04em;
}

.filters-bar,
.module-filter-card,
.condominios-filters,
.lancamentos-filters {
  border-color: rgba(217, 222, 231, 0.9);
  border-radius: var(--ai-radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: 0 16px 34px rgba(32, 42, 57, 0.06);
}

.filters-bar .form-group label,
.module-filter-card .form-group label {
  color: var(--ai-navy-800);
  font-weight: 850;
}

.filters-bar input,
.filters-bar select,
.filters-bar textarea,
.module-filter-card input,
.module-filter-card select,
.module-filter-card textarea {
  border-color: rgba(185, 195, 208, 0.86);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ai-navy-900);
}

.filters-bar input:focus,
.filters-bar select:focus,
.filters-bar textarea:focus,
.module-filter-card input:focus,
.module-filter-card select:focus,
.module-filter-card textarea:focus {
  border-color: rgba(202, 152, 86, 0.74);
  box-shadow: 0 0 0 4px rgba(202, 152, 86, 0.14);
}

.filter-actions-inline {
  align-items: end;
  gap: 10px;
}

.filter-actions-inline .btn-primary,
.filter-actions-inline .btn-secondary {
  min-height: 44px;
}

.users-summary {
  align-items: stretch;
}

.users-summary .mini-stat,
.condominios-summary .mini-stat,
.lancamentos-summary .mini-stat {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(217, 222, 231, 0.9);
  border-radius: var(--ai-radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 152, 86, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 16px 32px rgba(32, 42, 57, 0.06);
}

.users-summary .mini-stat::before,
.condominios-summary .mini-stat::before,
.lancamentos-summary .mini-stat::before {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ai-gold-600), var(--ai-gold-500));
}

.users-summary .mini-stat strong,
.condominios-summary .mini-stat strong,
.lancamentos-summary .mini-stat strong {
  color: var(--ai-navy-950);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 950;
  line-height: 1;
}

.users-summary .mini-stat span,
.condominios-summary .mini-stat span,
.lancamentos-summary .mini-stat span {
  color: var(--ai-navy-700);
  font-weight: 750;
}

.table-responsive,
.lancamento-unidades-table-wrap {
  border: 1px solid rgba(217, 222, 231, 0.9);
  border-radius: var(--ai-radius-xl);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(32, 42, 57, 0.07);
}

.table,
.users-table,
.data-table,
.lancamento-unidades-table,
.relatorios-table {
  color: var(--ai-navy-850);
}

.table th,
.users-table th,
.data-table th,
.lancamento-unidades-table th,
.relatorios-table th {
  background: linear-gradient(180deg, #f7f9fc, #eef3f8);
  color: var(--ai-navy-800);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table td,
.users-table td,
.data-table td,
.lancamento-unidades-table td,
.relatorios-table td {
  border-top: 1px solid rgba(217, 222, 231, 0.72);
  color: var(--ai-navy-800);
  vertical-align: middle;
}

.table tbody tr:hover,
.users-table tbody tr:hover,
.data-table tbody tr:hover,
.lancamento-unidades-table tbody tr:hover,
.relatorios-table tbody tr:hover {
  background: rgba(202, 152, 86, 0.055);
}

.user-table-identity {
  gap: 12px;
}

.user-table-identity strong {
  color: var(--ai-navy-950);
  font-weight: 900;
}

.user-table-identity span,
.user-table-identity small {
  color: var(--ai-navy-650);
}

.user-avatar-table {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 20px rgba(32, 42, 57, 0.14);
}

.action-stack,
.inline-table-actions,
.condominio-card-actions,
.lancamento-card-actions,
.lancamento-unit-actions,
.partner-actions,
.partner-request-actions {
  gap: 9px;
}

.btn-table,
.btn-table-link,
.btn-table-light,
.btn-table-warning,
.btn-table-danger-soft,
.condominio-card-actions .btn-secondary,
.condominio-card-actions button,
.lancamento-card-actions .btn-secondary,
.lancamento-card-actions button,
.lancamento-unit-actions .btn-secondary,
.lancamento-unit-actions button,
.partner-request-actions button,
.partner-request-actions .btn-primary,
.partner-request-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1.1;
}

.btn-table-link,
.btn-table-light,
.condominio-card-actions .btn-secondary,
.lancamento-card-actions .btn-secondary,
.lancamento-unit-actions .btn-secondary {
  border-color: rgba(185, 195, 208, 0.78);
  background: #ffffff;
  color: var(--ai-navy-850);
}

.btn-table-link:hover,
.btn-table-light:hover,
.condominio-card-actions .btn-secondary:hover,
.lancamento-card-actions .btn-secondary:hover,
.lancamento-unit-actions .btn-secondary:hover {
  border-color: rgba(202, 152, 86, 0.48);
  background: rgba(202, 152, 86, 0.08);
  color: var(--ai-navy-950);
}

.config-menu {
  border-color: rgba(217, 222, 231, 0.88);
  border-radius: var(--ai-radius-xl);
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 18px 42px rgba(32, 42, 57, 0.07);
}

.config-menu-group {
  border-radius: 18px;
}

.config-menu-item {
  border-radius: 16px;
  color: var(--ai-navy-800);
  font-weight: 900;
}

.config-menu-item.active {
  background:
    linear-gradient(135deg, var(--ai-navy-900), var(--ai-navy-950));
  color: #ffffff;
  box-shadow: inset 0 4px 0 rgba(202, 152, 86, 0.72), 0 14px 26px rgba(32, 42, 57, 0.15);
}

.config-submenu-item {
  min-height: 42px;
  border-radius: 13px;
  color: var(--ai-navy-700);
  font-weight: 800;
}

.config-submenu-item.active {
  border-color: rgba(202, 152, 86, 0.42);
  background: rgba(202, 152, 86, 0.11);
  color: var(--ai-navy-950);
  box-shadow: inset 4px 0 0 var(--ai-gold-500);
}

.config-submenu-item.is-todo {
  color: var(--ai-navy-500);
  background: rgba(241, 243, 246, 0.92);
}

.config-card,
.config-operational-card,
.config-planned-card,
.section-card,
.lancamento-unidade-form {
  border-color: rgba(217, 222, 231, 0.9);
  border-radius: var(--ai-radius-xl);
  background:
    linear-gradient(180deg, #ffffff, #fbfcfd);
  box-shadow: 0 18px 44px rgba(32, 42, 57, 0.075);
}

.config-card.active {
  box-shadow: 0 22px 54px rgba(32, 42, 57, 0.09);
}

.config-planned-card {
  min-height: 220px;
}

.config-planned-hero {
  border-radius: var(--ai-radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 152, 86, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(29, 78, 216, 0.88));
  color: #ffffff;
}

.config-planned-note,
.config-live-preview,
.config-required-group,
.config-checkbox-stack label,
.config-checkbox-grid label,
.config-required-policy-row,
.config-status-selector label,
.settings-check,
.brand-asset-card,
.config-watermark-card,
.watermark-control-row {
  border-color: rgba(217, 222, 231, 0.88);
  border-radius: var(--ai-radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(32, 42, 57, 0.055);
}

.config-required-group h4,
.config-required-fields-wrap h3,
.config-card h2,
.config-operational-card h2,
.section-card h2 {
  color: var(--ai-navy-950);
  font-weight: 950;
}

.config-checkbox-stack label,
.config-checkbox-grid label,
.settings-check,
.config-status-selector label {
  color: var(--ai-navy-800);
}

.config-status-selector label:has(input:checked),
.config-checkbox-grid label:has(input:checked),
.config-checkbox-stack label:has(input:checked),
.settings-check:has(input:checked) {
  border-color: rgba(202, 152, 86, 0.42);
  background:
    linear-gradient(180deg, rgba(202, 152, 86, 0.11), rgba(255, 255, 255, 0.96));
}

.config-required-badge,
.status-badge,
.partner-status-pill,
.partner-quality,
.condominio-status-badge,
.lancamento-status-badge,
.lancamento-publicado-badge,
.lancamento-unidade-status,
.relatorios-status-pill {
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0;
}

.condominios-grid,
.lancamentos-grid,
.partner-properties-grid,
.relatorios-quick-grid,
.relatorios-coming-grid {
  align-items: stretch;
}

.condominio-card,
.lancamento-card,
.partner-property-card,
.relatorios-quick-card,
.relatorios-coming-card {
  border-color: rgba(217, 222, 231, 0.9);
  border-radius: var(--ai-radius-xl);
  background:
    linear-gradient(180deg, #ffffff, #fbfcfd);
  box-shadow: 0 18px 42px rgba(32, 42, 57, 0.075);
}

.condominio-card,
.lancamento-card,
.partner-property-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.condominio-card:hover,
.lancamento-card:hover,
.partner-property-card:hover,
.relatorios-quick-card:hover,
.relatorios-coming-card:hover {
  transform: translateY(-2px);
  border-color: rgba(202, 152, 86, 0.26);
  box-shadow: 0 24px 54px rgba(32, 42, 57, 0.105);
}

.condominio-card-media,
.lancamento-card-media,
.partner-property-media {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(202, 152, 86, 0.08));
}

.condominio-card-media img,
.lancamento-card-media img,
.partner-property-media img {
  transition: transform 0.22s ease;
}

.condominio-card:hover .condominio-card-media img,
.lancamento-card:hover .lancamento-card-media img,
.partner-property-card:hover .partner-property-media img {
  transform: scale(1.025);
}

.condominio-card-body,
.lancamento-card-body,
.partner-property-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.condominio-card-body h3,
.lancamento-card-body h3,
.partner-property-body h3,
.relatorios-quick-card strong,
.relatorios-coming-card strong {
  color: var(--ai-navy-950);
  font-weight: 950;
}

.condominio-card-body p,
.lancamento-card-body p,
.partner-property-body p,
.relatorios-quick-card p,
.relatorios-coming-card p {
  color: var(--ai-navy-700);
}

.condominio-card-meta,
.lancamento-card-meta,
.lancamento-unidades-mini,
.partner-meta-line {
  gap: 8px;
}

.condominio-card-meta span,
.lancamento-card-meta span,
.lancamento-unidades-mini span,
.partner-meta-line span {
  border-color: rgba(217, 222, 231, 0.86);
  background: rgba(248, 250, 252, 0.95);
  color: var(--ai-navy-700);
  font-weight: 800;
}

.condominio-card-actions,
.lancamento-card-actions,
.partner-property-body .partner-actions {
  margin-top: auto;
  padding-top: 8px;
}

.condominio-card-actions .btn-secondary,
.condominio-card-actions button,
.lancamento-card-actions .btn-secondary,
.lancamento-card-actions button,
.partner-property-body .partner-actions .btn-primary,
.partner-property-body .partner-actions .btn-secondary {
  min-height: 42px;
  padding-inline: 18px;
}

.condominio-feature-check {
  min-height: 46px;
  border-color: rgba(217, 222, 231, 0.86);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ai-navy-800);
  font-weight: 800;
}

.condominio-feature-check:has(input:checked) {
  border-color: rgba(202, 152, 86, 0.42);
  background: rgba(202, 152, 86, 0.1);
}

.condominio-photo-item,
.lancamento-files-list .file-preview {
  border-color: rgba(217, 222, 231, 0.86);
  border-radius: var(--ai-radius-lg);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(32, 42, 57, 0.055);
}

.lancamento-unidade-form .settings-check {
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
}

.lancamento-unidades-table small {
  display: block;
  margin-top: 4px;
  color: var(--ai-navy-500);
}

.lancamento-unit-actions {
  flex-wrap: wrap;
}

.lancamento-unidades-page {
  display: grid;
  gap: 22px;
}

.lancamento-unidade-editor {
  display: grid;
  gap: 18px;
  margin-top: 0;
  padding: 24px;
}

.lancamento-unidade-editor .section-header {
  align-items: flex-start;
  margin-bottom: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(217, 222, 231, 0.78);
}

.lancamento-unidade-editor .section-header p {
  margin: 6px 0 0;
  color: var(--ai-navy-650);
  line-height: 1.5;
}

.lancamento-planta-picker {
  grid-column: span 2;
}

.lancamento-planta-preview {
  display: grid;
  min-height: 98px;
  align-items: center;
  border: 1px dashed rgba(185, 195, 208, 0.92);
  border-radius: var(--ai-radius-lg);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), #ffffff);
  padding: 12px;
  color: var(--ai-navy-600);
  font-weight: 800;
}

.lancamento-planta-preview a {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--ai-navy-850);
  text-decoration: none;
}

.lancamento-planta-preview img {
  width: 96px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(217, 222, 231, 0.88);
  background: #ffffff;
}

.lancamento-planta-preview span {
  color: inherit;
}

.lancamento-unidades-table-wrap {
  overflow: hidden;
}

.lancamento-unidades-table {
  min-width: 980px;
}

.lancamento-unidades-table td:first-child strong {
  color: var(--ai-navy-950);
  font-weight: 950;
}

.lancamento-unit-actions {
  display: flex;
  align-items: center;
}

.lancamento-unit-actions .inline-form {
  display: inline-flex;
  margin: 0;
}

.lancamento-unit-actions .btn-table-link,
.lancamento-unit-actions .btn-table-light,
.lancamento-unit-actions .btn-table-danger-soft,
.lancamento-planta-view {
  min-height: 38px;
  padding: 9px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.lancamento-unit-actions .btn-table-link {
  border-color: rgba(202, 152, 86, 0.54);
  background: linear-gradient(180deg, rgba(202, 152, 86, 0.14), #ffffff);
  color: var(--ai-navy-950);
}

.lancamento-planta-modal[hidden] {
  display: none !important;
}

.lancamento-planta-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
}

.lancamento-planta-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(8px);
}

.lancamento-planta-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(1080px, 96vw);
  max-height: 92vh;
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(217, 222, 231, 0.88);
  border-radius: var(--ai-radius-xl);
  background: #ffffff;
  box-shadow: 0 34px 90px rgba(11, 18, 32, 0.32);
}

.lancamento-planta-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 222, 231, 0.9);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ai-navy-950);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(32, 42, 57, 0.12);
}

.lancamento-planta-modal-close:hover {
  transform: translateY(-1px);
  border-color: rgba(202, 152, 86, 0.56);
  background: rgba(202, 152, 86, 0.08);
}

.lancamento-planta-modal-heading {
  padding-right: 56px;
}

.lancamento-planta-modal-heading h2 {
  margin: 8px 0 4px;
  color: var(--ai-navy-950);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 950;
}

.lancamento-planta-modal-heading p {
  margin: 0;
  color: var(--ai-navy-650);
}

.lancamento-planta-modal-media {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px solid rgba(217, 222, 231, 0.88);
  border-radius: var(--ai-radius-lg);
  background:
    linear-gradient(45deg, rgba(232, 237, 245, 0.7) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(232, 237, 245, 0.7) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(232, 237, 245, 0.7) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(232, 237, 245, 0.7) 75%),
    #ffffff;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  overflow: hidden;
}

.lancamento-planta-modal-media img {
  display: block;
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
}

.lancamento-planta-modal-actions {
  display: flex;
  justify-content: flex-end;
}

body.lancamento-planta-modal-open {
  overflow: hidden;
}

.table-muted {
  color: var(--ai-navy-500);
  font-size: 12px;
  font-weight: 800;
}

.partner-summary-grid article {
  min-height: 124px;
}

.partners-tabs,
.partner-tabs {
  padding: 8px;
  border: 1px solid rgba(217, 222, 231, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(32, 42, 57, 0.06);
}

.partners-tab-button,
.partner-tabs a {
  border-radius: 999px;
  color: var(--ai-navy-700);
  font-weight: 900;
}

.partners-tab-button.is-active,
.partner-tabs a.active {
  background:
    linear-gradient(135deg, var(--ai-navy-900), var(--ai-navy-950));
  color: #ffffff;
  box-shadow: inset 0 3px 0 rgba(202, 152, 86, 0.7);
}

.partner-card,
.partner-requests-shell,
.partner-request-row {
  border-color: rgba(217, 222, 231, 0.9);
  border-radius: var(--ai-radius-xl);
}

.partner-request-row {
  background: #ffffff;
}

.partner-request-row.needs-action {
  border-color: rgba(202, 152, 86, 0.34);
  background:
    linear-gradient(180deg, rgba(202, 152, 86, 0.08), #ffffff);
}

.partner-request-stats button {
  border-radius: var(--ai-radius-lg);
}

.partner-code-display {
  border-radius: var(--ai-radius-lg);
  background:
    linear-gradient(135deg, var(--ai-navy-900), var(--ai-navy-950));
  color: #ffffff;
  box-shadow: inset 0 4px 0 rgba(202, 152, 86, 0.72);
}

.partner-form .form-group input,
.partner-form .form-group select,
.partner-form .form-group textarea,
.section-card input,
.section-card select,
.section-card textarea,
.lancamento-unidade-form input,
.lancamento-unidade-form select,
.lancamento-unidade-form textarea {
  border-color: rgba(185, 195, 208, 0.86);
  border-radius: 13px;
}

.relatorios-page .dashboard-hero {
  border-color: rgba(202, 152, 86, 0.2);
  background:
    radial-gradient(circle at 92% 14%, rgba(202, 152, 86, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fafc);
}

.relatorios-section,
.relatorios-module-panel,
.relatorios-coming-section {
  border-color: rgba(217, 222, 231, 0.9);
  border-radius: var(--ai-radius-xl);
  box-shadow: 0 18px 42px rgba(32, 42, 57, 0.07);
}

.relatorios-quick-card,
.relatorios-coming-card {
  min-height: 144px;
}

.relatorios-coming-card {
  position: relative;
  overflow: hidden;
}

.relatorios-coming-card::after {
  content: '';
  position: absolute;
  right: -38px;
  top: -48px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: rgba(202, 152, 86, 0.1);
}

@media (max-width: 980px) {
  .page-header,
  .condominios-page-header,
  .lancamentos-page-header,
  .parceiros-page-header {
    flex-direction: column;
  }

  .page-header .btn-primary,
  .page-header .btn-secondary,
  .condominios-page-header .btn-primary,
  .lancamentos-page-header .btn-primary,
  .lancamentos-page-header .btn-secondary,
  .parceiros-page-header .btn-primary,
  .parceiros-page-header .btn-secondary {
    width: 100%;
  }

  .partners-tabs,
  .partner-tabs {
    border-radius: var(--ai-radius-lg);
  }
}

@media (max-width: 760px) {
  .page-header,
  .condominios-page-header,
  .lancamentos-page-header,
  .parceiros-page-header,
  .filters-bar,
  .module-filter-card,
  .config-card,
  .section-card,
  .partner-card,
  .partner-requests-shell,
  .relatorios-section,
  .relatorios-module-panel,
  .relatorios-coming-section {
    padding: 16px;
    border-radius: var(--ai-radius-lg);
  }

  .users-summary .mini-stat,
  .condominios-summary .mini-stat,
  .lancamentos-summary .mini-stat {
    min-height: 96px;
  }

  .filter-actions-inline {
    align-items: stretch;
  }

  .filter-actions-inline .btn-primary,
  .filter-actions-inline .btn-secondary,
  .condominio-card-actions .btn-secondary,
  .condominio-card-actions button,
  .lancamento-card-actions .btn-secondary,
  .lancamento-card-actions button,
  .partner-property-body .partner-actions .btn-primary,
  .partner-property-body .partner-actions .btn-secondary {
    width: 100%;
  }

  .config-menu {
    box-shadow: none;
  }

  .partners-tabs,
  .partner-tabs {
    align-items: stretch;
  }

  .partners-tab-button,
  .partner-tabs a {
    justify-content: center;
  }

  .lancamento-planta-picker,
  .lancamento-planta-preview {
    grid-column: 1 / -1;
  }

  .lancamento-planta-preview a {
    grid-template-columns: 1fr;
  }

  .lancamento-planta-preview img {
    width: 100%;
    height: 150px;
  }

  .lancamento-unit-actions {
    align-items: stretch;
  }

  .lancamento-unit-actions .inline-form,
  .lancamento-unit-actions .btn-table-link,
  .lancamento-unit-actions .btn-table-light,
  .lancamento-unit-actions .btn-table-danger-soft {
    width: 100%;
  }

  .lancamento-planta-modal {
    padding: 12px;
  }

  .lancamento-planta-modal-panel {
    width: 100%;
    max-height: 94vh;
    padding: 16px;
    border-radius: var(--ai-radius-lg);
  }

  .lancamento-planta-modal-heading {
    padding-right: 48px;
  }

  .lancamento-planta-modal-media {
    min-height: 240px;
  }

  .lancamento-planta-modal-actions,
  .lancamento-planta-modal-actions .btn-secondary {
    width: 100%;
  }
}

/* Final visual completion: help center, sidebar and settings */
.sidebar {
  width: 268px;
  padding: 22px 16px;
  background:
    radial-gradient(circle at 18% -4%, rgba(202, 152, 86, 0.24), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(58, 100, 149, 0.18), transparent 34%),
    linear-gradient(180deg, #0b1220, var(--ai-navy-950) 44%, var(--ai-navy-900));
  border-right: 1px solid rgba(202, 152, 86, 0.18);
  box-shadow: 18px 0 42px rgba(15, 23, 42, 0.18);
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(202, 152, 86, 0.42);
  background-clip: content-box;
}

.sidebar-brand {
  margin-bottom: 24px;
  padding: 8px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-logo-frame,
.sidebar-brand-fallback {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 18px;
}

.sidebar-brand h2 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
}

.sidebar-brand span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.sidebar-menu {
  gap: 6px;
}

.sidebar-menu a,
.sidebar-section a,
.logout-link {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 760;
  line-height: 1.22;
}

.sidebar-section a {
  padding: 11px 12px 11px 24px;
}

.sidebar-menu a:hover:not(.active),
.sidebar-menu a:focus-visible:not(.active) {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.075);
  color: #ffffff;
}

.sidebar-menu a.active,
.sidebar-main-link.active,
.sidebar-section-admin a.active {
  border-color: rgba(202, 152, 86, 0.34);
  background:
    linear-gradient(135deg, rgba(202, 152, 86, 0.24), rgba(58, 100, 149, 0.18)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 4px 0 0 var(--ai-gold-500), 0 14px 28px rgba(0, 0, 0, 0.2);
  color: #ffffff !important;
}

.sidebar-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top-color: rgba(255, 255, 255, 0.09);
}

.sidebar-section-title {
  padding: 0 8px 8px;
  color: rgba(214, 170, 104, 0.86);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.sidebar-section a::before {
  left: 10px;
  width: 5px;
  height: 5px;
  background: rgba(202, 152, 86, 0.54);
}

.sidebar-section a.active::before {
  background: #ffffff;
}

.sidebar-approval-badge {
  margin: 7px 10px 8px;
  padding: 9px 11px;
  border: 1px solid rgba(202, 152, 86, 0.34);
  border-radius: 12px;
  background: rgba(202, 152, 86, 0.16);
  color: #fdeccf;
}

.sidebar-section-support {
  margin-top: 18px;
  padding: 14px 10px 10px;
  border: 1px solid rgba(202, 152, 86, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.sidebar-section-support .sidebar-section-title {
  color: rgba(255, 255, 255, 0.72);
}

.logout-link {
  margin-top: 16px;
  border-color: rgba(248, 113, 113, 0.22);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca !important;
}

.logout-link:hover {
  border-color: rgba(248, 113, 113, 0.38);
  background: rgba(248, 113, 113, 0.18);
  color: #ffffff !important;
}

.topbar {
  min-height: 82px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 222, 231, 0.86);
  box-shadow: 0 12px 34px rgba(32, 42, 57, 0.055);
}

.topbar-title h1 {
  color: var(--ai-navy-950);
  font-weight: 950;
}

.topbar-title span,
.topbar-user span {
  color: var(--ai-navy-600);
}

.topbar-profile,
.global-notification-bell,
.menu-toggle,
.topbar-approval-badge {
  border-radius: 16px;
}

.topbar-profile {
  padding: 7px 10px;
  border: 1px solid rgba(217, 222, 231, 0.84);
  background: rgba(248, 250, 252, 0.9);
}

.help-center-page {
  gap: 24px;
}

.help-hero,
.help-section,
.help-support-card {
  border-color: rgba(217, 222, 231, 0.9);
  border-radius: var(--ai-radius-xl);
  box-shadow: 0 20px 48px rgba(32, 42, 57, 0.08);
}

.help-hero {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background:
    radial-gradient(circle at 95% 8%, rgba(202, 152, 86, 0.25), transparent 34%),
    radial-gradient(circle at 10% 100%, rgba(58, 100, 149, 0.22), transparent 34%),
    linear-gradient(135deg, var(--ai-navy-950), var(--ai-navy-900));
}

.help-hero::after {
  content: '';
  position: absolute;
  right: -54px;
  bottom: -86px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(202, 152, 86, 0.14);
  pointer-events: none;
}

.help-hero > * {
  position: relative;
  z-index: 1;
}

.help-eyebrow,
.help-section-heading span,
.help-guide-card span,
.help-video-card span {
  color: var(--ai-gold-700);
  background: rgba(202, 152, 86, 0.14);
  letter-spacing: 0.05em;
}

.help-hero .help-eyebrow {
  color: #fff7df;
  background: rgba(202, 152, 86, 0.22);
}

.help-hero h1 {
  max-width: 720px;
  color: #ffffff;
  font-weight: 950;
}

.help-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.help-search {
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: var(--ai-radius-lg);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.help-search input {
  border-radius: 14px;
  border-color: rgba(217, 222, 231, 0.86);
}

.help-search button,
.help-support-actions a:first-child,
.help-shortcuts a:first-child {
  background: linear-gradient(135deg, var(--ai-gold-600), var(--ai-gold-500));
  box-shadow: var(--ai-shadow-gold);
}

.help-section {
  padding: 26px;
  background:
    linear-gradient(180deg, #ffffff, #fbfcfd);
}

.help-evolution-note {
  border-color: rgba(202, 152, 86, 0.28);
  color: var(--ai-navy-800);
  background:
    linear-gradient(135deg, rgba(202, 152, 86, 0.14), rgba(255, 255, 255, 0.98));
}

.help-section-heading h2,
.help-support-card h2,
.help-card h3,
.help-guide-card h3,
.help-structure-grid h3,
.help-faq-question {
  color: var(--ai-navy-950);
  font-weight: 950;
}

.help-section-heading p,
.help-support-card p,
.help-card p,
.help-guide-card p {
  color: var(--ai-navy-700);
}

.help-card,
.help-guide-card,
.help-video-card,
.help-structure-grid article,
.help-faq-item {
  border-color: rgba(217, 222, 231, 0.9);
  border-radius: var(--ai-radius-lg);
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 14px 32px rgba(32, 42, 57, 0.055);
}

.help-card:hover,
.help-guide-card:hover,
.help-video-card:hover,
.help-structure-grid article:hover,
.help-faq-item:hover {
  border-color: rgba(202, 152, 86, 0.32);
  box-shadow: 0 22px 48px rgba(32, 42, 57, 0.09);
}

.help-card-icon,
.help-card-index,
.help-faq-item summary::after {
  color: var(--ai-gold-700);
  background: rgba(202, 152, 86, 0.14);
}

.help-copy-link,
.help-shortcuts a,
.help-support-actions a:nth-child(2),
.help-support-actions .help-support-email-button {
  border-color: rgba(217, 222, 231, 0.88);
  color: var(--ai-navy-800);
  background: #ffffff;
}

.help-copy-link:hover,
.help-copy-link:focus,
.help-shortcuts a:hover,
.help-support-actions a:nth-child(2):hover,
.help-support-actions .help-support-email-button:hover {
  border-color: rgba(202, 152, 86, 0.34);
  background: rgba(202, 152, 86, 0.1);
  color: var(--ai-navy-950);
}

.help-faq-item[open] {
  border-color: rgba(202, 152, 86, 0.36);
  background: #ffffff;
  box-shadow: 0 22px 46px rgba(202, 152, 86, 0.12);
}

.help-faq-item p {
  color: var(--ai-navy-800);
}

.help-answer-label {
  color: var(--ai-navy-950);
}

.help-support-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 152, 86, 0.16), transparent 30%),
    #ffffff;
}

.config-wrapper {
  align-items: start;
  gap: 24px;
}

.config-wrapper > .config-menu {
  position: sticky;
  top: 98px;
  max-height: calc(100vh - 116px);
  overflow: auto;
  padding: 14px;
}

.config-wrapper > .config-menu::-webkit-scrollbar {
  width: 8px;
}

.config-wrapper > .config-menu::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(202, 152, 86, 0.42);
  background-clip: content-box;
}

.config-menu-group {
  padding: 5px;
  border: 1px solid transparent;
}

.config-menu-group.active {
  border-color: rgba(202, 152, 86, 0.18);
  background: rgba(202, 152, 86, 0.055);
}

.config-mini-panel,
.config-operational-grid .config-mini-panel,
.brand-sidebar-mode-panel,
.brand-main-grid .brand-asset-card,
.config-info-card {
  border-color: rgba(217, 222, 231, 0.9);
  border-radius: var(--ai-radius-lg);
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 14px 32px rgba(32, 42, 57, 0.055);
}

.config-mini-panel-title span {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ai-gold-600), var(--ai-gold-500));
  box-shadow: 0 10px 20px rgba(202, 152, 86, 0.18);
}

.brand-sidebar-mode-option {
  border-color: rgba(217, 222, 231, 0.88);
  border-radius: var(--ai-radius-lg);
}

.brand-sidebar-mode-option.is-selected {
  border-color: rgba(202, 152, 86, 0.42);
  background: rgba(202, 152, 86, 0.11);
}

body.password-access-body {
  background:
    radial-gradient(circle at 12% 0%, rgba(202, 152, 86, 0.26), transparent 30%),
    radial-gradient(circle at 86% 20%, rgba(58, 100, 149, 0.24), transparent 36%),
    linear-gradient(135deg, var(--ai-navy-950), var(--ai-navy-900));
}

.password-access-wrapper {
  max-width: 980px;
}

.password-access-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.28);
}

.password-access-card .brand-box {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(202, 152, 86, 0.20), transparent 28%),
    linear-gradient(135deg, var(--ai-navy-900), var(--ai-navy-950));
}

.password-access-card .brand-box::after {
  content: '';
  position: absolute;
  right: -64px;
  bottom: -88px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: rgba(202, 152, 86, 0.14);
  pointer-events: none;
}

.password-access-logo {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 190px;
  height: auto;
  max-height: 78px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.password-access-card .brand-box h1,
.password-access-card .brand-box p {
  position: relative;
  z-index: 1;
}

.password-access-card .brand-box h1 {
  font-weight: 950;
}

.password-access-card .login-form h2 {
  color: var(--ai-navy-950);
  font-weight: 950;
}

.password-access-card .form-group label {
  color: var(--ai-navy-800);
}

.password-access-card .form-group input {
  border-color: rgba(185, 195, 208, 0.88);
  border-radius: 14px;
}

.password-access-card .form-group input:focus {
  border-color: rgba(202, 152, 86, 0.72);
  box-shadow: 0 0 0 4px rgba(202, 152, 86, 0.14);
}

.password-access-card .btn-login {
  background: linear-gradient(135deg, var(--ai-gold-600), var(--ai-gold-500));
  box-shadow: var(--ai-shadow-gold);
}

.password-access-card .btn-login:hover {
  background: linear-gradient(135deg, var(--ai-gold-500), var(--ai-gold-600));
}

.password-access-card .back-link {
  color: var(--ai-navy-700);
  font-weight: 850;
}

.password-access-card .back-link:hover {
  color: var(--ai-gold-700);
}

@media (max-width: 1024px) {
  .config-wrapper > .config-menu {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .sidebar {
    width: 284px;
  }

  .topbar {
    min-height: 76px;
  }

  .help-hero,
  .help-section,
  .help-support-card {
    border-radius: var(--ai-radius-lg);
  }

  .help-section {
    padding: 18px;
  }
}

/* SaaS master dashboard completion */
.dashboard-saas-page {
  --saas-blue: #244f8f;
  --saas-ink: #071226;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 28px);
}

.dashboard-saas-page .dashboard-hero-master {
  min-height: 286px;
  align-items: stretch;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(202, 152, 86, 0.34);
  background:
    radial-gradient(circle at 12% 18%, rgba(214, 170, 104, 0.28), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(61, 102, 151, 0.34), transparent 34%),
    linear-gradient(135deg, #071226 0%, #10213d 48%, #162b4c 100%);
  color: #ffffff;
  box-shadow: 0 32px 78px rgba(7, 18, 38, 0.22);
}

.dashboard-saas-page .dashboard-hero-master::after {
  right: -88px;
  top: -92px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(214, 170, 104, 0.24), rgba(214, 170, 104, 0.05) 62%, transparent 64%);
}

.dashboard-saas-page .dashboard-hero-master::before {
  content: '';
  position: absolute;
  inset: auto 42px 34px auto;
  width: min(320px, 32vw);
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(202, 152, 86, 0.22));
  filter: blur(28px);
  pointer-events: none;
}

.dashboard-saas-page .dashboard-hero-master h1 {
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}

.dashboard-saas-page .dashboard-hero-master p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.4vw, 18px);
}

.dashboard-saas-page .dashboard-hero-master .dashboard-eyebrow {
  width: fit-content;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(214, 170, 104, 0.38);
  color: #f7d7a8;
}

.dashboard-saas-page .dashboard-hero-master aside {
  min-width: min(360px, 100%);
  align-self: stretch;
  justify-content: center;
  background:
    radial-gradient(circle at 88% 8%, rgba(214, 170, 104, 0.22), transparent 30%),
    rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 20px 46px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.dashboard-saas-page .dashboard-hero-master aside span,
.dashboard-saas-page .dashboard-hero-master aside small {
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-saas-page .dashboard-hero-master aside strong {
  color: #ffffff;
  font-size: clamp(28px, 3.2vw, 42px);
}

.dashboard-saas-page .dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-saas-page .dashboard-kpi-card {
  min-height: 150px;
  padding: 22px;
  overflow: hidden;
  border-color: rgba(202, 152, 86, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 152, 86, 0.14), transparent 32%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-saas-page .dashboard-kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(202, 152, 86, 0.42);
  box-shadow: 0 24px 54px rgba(32, 42, 57, 0.12);
}

.dashboard-saas-page .dashboard-kpi-card::before {
  width: 42px;
  height: 4px;
  border-radius: 999px;
}

.dashboard-saas-page .dashboard-kpi-card::after {
  right: -14px;
  bottom: -18px;
  width: 96px;
  height: 96px;
  background: rgba(36, 79, 143, 0.08);
}

.dashboard-saas-page .dashboard-kpi-card span {
  max-width: 160px;
  color: var(--ai-navy-700);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-saas-page .dashboard-kpi-card strong {
  margin-top: auto;
  color: var(--ai-navy-950);
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1;
}

.dashboard-saas-page .dashboard-kpi-card small {
  color: var(--ai-text-muted);
  font-weight: 700;
}

.dashboard-saas-page .dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-saas-page .dashboard-chart-card,
.dashboard-saas-page .dashboard-panel-card {
  padding: clamp(20px, 2vw, 26px);
  border-color: rgba(217, 222, 231, 0.86);
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 79, 143, 0.07), transparent 32%),
    linear-gradient(180deg, #ffffff, #fbfcfd);
}

.dashboard-saas-page .dashboard-card-heading {
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(217, 222, 231, 0.76);
}

.dashboard-saas-page .dashboard-card-heading span {
  color: var(--ai-gold-700);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-saas-page .dashboard-card-heading h2 {
  color: var(--ai-navy-950);
  font-size: clamp(18px, 1.8vw, 24px);
}

.dashboard-saas-page .dashboard-line-chart {
  min-height: 190px;
  align-items: end;
  padding: 14px 8px 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.74), rgba(255, 255, 255, 0));
}

.dashboard-saas-page .dashboard-line-column i {
  width: 18px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--ai-gold-500), var(--saas-blue));
  box-shadow: 0 12px 22px rgba(36, 79, 143, 0.16);
}

.dashboard-saas-page .dashboard-line-value,
.dashboard-saas-page .dashboard-line-column small {
  color: var(--ai-navy-700);
  font-weight: 850;
}

.dashboard-saas-page .dashboard-bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(217, 222, 231, 0.72);
}

.dashboard-saas-page .dashboard-bar-track i {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--saas-blue), var(--ai-gold-500));
}

.dashboard-saas-page .dashboard-donut {
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.78), 0 18px 36px rgba(32, 42, 57, 0.10);
}

.dashboard-saas-page .dashboard-donut-legend div,
.dashboard-saas-page .dashboard-insight,
.dashboard-saas-page .dashboard-action-card {
  border: 1px solid rgba(217, 222, 231, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.dashboard-saas-page .dashboard-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
}

.dashboard-saas-page .dashboard-insight-list,
.dashboard-saas-page .dashboard-action-list {
  gap: 12px;
}

.dashboard-saas-page .dashboard-insight {
  padding: 16px;
}

.dashboard-saas-page .dashboard-insight strong,
.dashboard-saas-page .dashboard-action-card strong {
  color: var(--ai-navy-950);
}

.dashboard-saas-page .dashboard-insight p,
.dashboard-saas-page .dashboard-action-card small {
  color: var(--ai-text-muted);
}

.dashboard-saas-page .dashboard-action-card {
  min-height: 104px;
  padding: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-saas-page .dashboard-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(202, 152, 86, 0.44);
  box-shadow: 0 18px 38px rgba(32, 42, 57, 0.10);
}

.dashboard-saas-page .dashboard-action-card span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(202, 152, 86, 0.12);
  color: var(--ai-gold-700);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

@media (max-width: 1260px) {
  .dashboard-saas-page .dashboard-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dashboard-saas-page .dashboard-chart-grid,
  .dashboard-saas-page .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dashboard-saas-page .dashboard-hero-master {
    min-height: 0;
    padding: 22px;
  }

  .dashboard-saas-page .dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-saas-page .dashboard-hero-master aside {
    min-width: 0;
  }
}

.btn-primary.btn-disabled,
.btn-primary.btn-disabled:hover,
.action-disabled {
  align-items: center;
  background: #e5e7eb;
  border: 1px solid #cbd5e1;
  box-shadow: none;
  color: #64748b;
  cursor: not-allowed;
  display: inline-flex;
  justify-content: center;
  pointer-events: none;
}

.limit-blocked-card {
  align-items: flex-start;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 70%);
  border: 1px solid rgba(201, 150, 76, 0.28);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 16px 0 22px;
  padding: 18px 20px;
}

.limit-blocked-card-large {
  align-items: center;
  margin: 0;
}

.limit-blocked-kicker {
  background: rgba(201, 150, 76, 0.14);
  border-radius: 999px;
  color: #9a6a24;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding: 5px 10px;
  text-transform: uppercase;
}

.limit-blocked-card strong {
  color: #0f172a;
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.limit-blocked-card p {
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.limit-blocked-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.sidebar-disabled-link {
  align-items: flex-start;
  border-radius: 10px;
  color: rgba(226, 232, 240, 0.58);
  cursor: not-allowed;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 700;
  gap: 3px;
  line-height: 1.2;
  padding: 9px 12px;
}

.sidebar-disabled-link::before {
  display: none;
}

.sidebar-disabled-link small {
  color: #d6a354;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .limit-blocked-card,
  .limit-blocked-card-large {
    align-items: stretch;
    flex-direction: column;
  }

  .limit-blocked-actions,
  .limit-blocked-actions .btn-primary,
  .limit-blocked-actions .btn-secondary {
    width: 100%;
  }
}

/* Operational account alert polish */
.operational-status-alert {
  margin: 16px clamp(16px, 2vw, 28px) 0;
  padding: 16px 18px;
  border-color: rgba(36, 79, 143, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 96% 0%, rgba(202, 152, 86, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.92));
  color: var(--ai-navy-800);
  box-shadow: 0 18px 42px rgba(32, 42, 57, 0.08);
}

.operational-status-alert-atencao {
  border-color: rgba(202, 152, 86, 0.26);
  background:
    radial-gradient(circle at 96% 0%, rgba(202, 152, 86, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.92));
  color: #8a5a12;
}

.operational-status-alert-bloqueado {
  border-color: rgba(220, 38, 38, 0.20);
  background:
    radial-gradient(circle at 96% 0%, rgba(220, 38, 38, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(254, 242, 242, 0.96), rgba(255, 255, 255, 0.92));
  color: #991b1b;
}

.operational-status-alert-content strong {
  color: var(--ai-navy-900);
  font-weight: 950;
}

.operational-status-alert-content span {
  color: var(--ai-navy-700);
  opacity: 1;
}

.operational-status-alert-actions a {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--ai-navy-800);
  box-shadow: 0 10px 24px rgba(32, 42, 57, 0.06);
}

.operational-status-alert-actions a:hover {
  border-color: rgba(202, 152, 86, 0.44);
  color: var(--ai-gold-700);
}

/* Operational dashboards completion */
.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) {
  --dash-op-blue: #244f8f;
  --dash-op-ink: #071226;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 28px);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-hero {
  min-height: 260px;
  align-items: stretch;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid rgba(202, 152, 86, 0.30);
  background:
    radial-gradient(circle at 14% 14%, rgba(214, 170, 104, 0.25), transparent 24%),
    radial-gradient(circle at 92% 10%, rgba(61, 102, 151, 0.34), transparent 34%),
    linear-gradient(135deg, #071226 0%, #10213d 52%, #173052 100%);
  color: #ffffff;
  box-shadow: 0 30px 72px rgba(7, 18, 38, 0.20);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-hero::after {
  right: -78px;
  top: -84px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(214, 170, 104, 0.22), rgba(214, 170, 104, 0.05) 62%, transparent 64%);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-hero::before {
  content: '';
  position: absolute;
  inset: auto 36px 30px auto;
  width: min(280px, 30vw);
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(202, 152, 86, 0.20));
  filter: blur(26px);
  pointer-events: none;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-hero > div,
.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-hero aside {
  position: relative;
  z-index: 1;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-hero h1 {
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(31px, 3.8vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.3vw, 18px);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(214, 170, 104, 0.38);
  color: #f7d7a8;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-hero aside {
  align-self: stretch;
  justify-content: center;
  background:
    radial-gradient(circle at 90% 8%, rgba(214, 170, 104, 0.22), transparent 30%),
    rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 20px 44px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-hero aside span,
.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-hero aside small {
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-hero aside strong {
  color: #ffffff;
  font-size: clamp(27px, 3vw, 40px);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-kpi-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  border-color: rgba(202, 152, 86, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 152, 86, 0.14), transparent 32%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(202, 152, 86, 0.42);
  box-shadow: 0 24px 54px rgba(32, 42, 57, 0.12);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-kpi-card::before {
  width: 42px;
  height: 4px;
  border-radius: 999px;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-kpi-card::after {
  right: -14px;
  bottom: -18px;
  width: 96px;
  height: 96px;
  background: rgba(36, 79, 143, 0.08);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-kpi-card span {
  max-width: 170px;
  color: var(--ai-navy-700);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-kpi-card strong {
  margin-top: auto;
  color: var(--ai-navy-950);
  font-size: clamp(26px, 2.3vw, 38px);
  line-height: 1;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-kpi-card small {
  color: var(--ai-text-muted);
  font-weight: 700;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-chart-card,
.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-panel-card,
.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .growth-suggestions-section {
  padding: clamp(20px, 2vw, 26px);
  border-color: rgba(217, 222, 231, 0.86);
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 79, 143, 0.07), transparent 32%),
    linear-gradient(180deg, #ffffff, #fbfcfd);
  box-shadow: 0 18px 44px rgba(32, 42, 57, 0.08);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-card-heading {
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(217, 222, 231, 0.76);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-card-heading span {
  color: var(--ai-gold-700);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-card-heading h2 {
  color: var(--ai-navy-950);
  font-size: clamp(18px, 1.7vw, 24px);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-line-chart {
  min-height: 190px;
  align-items: end;
  padding: 14px 8px 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.74), rgba(255, 255, 255, 0));
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-line-column i {
  width: 18px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--ai-gold-500), var(--dash-op-blue));
  box-shadow: 0 12px 22px rgba(36, 79, 143, 0.16);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-line-value,
.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-line-column small {
  color: var(--ai-navy-700);
  font-weight: 850;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(217, 222, 231, 0.72);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-bar-track i {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dash-op-blue), var(--ai-gold-500));
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-donut {
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.78), 0 18px 36px rgba(32, 42, 57, 0.10);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-donut-legend div,
.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-insight,
.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-action-card,
.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .growth-suggestion-card {
  border: 1px solid rgba(217, 222, 231, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-insight-list,
.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-action-list {
  gap: 12px;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-insight {
  padding: 16px;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-insight-success {
  border-color: rgba(16, 185, 129, 0.28);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.88));
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-insight-warning {
  border-color: rgba(245, 158, 11, 0.30);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.88));
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-insight-danger {
  border-color: rgba(239, 68, 68, 0.26);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.88));
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-insight-info {
  border-color: rgba(37, 99, 235, 0.24);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.88));
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-insight strong,
.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-action-card strong,
.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .growth-suggestion-card strong {
  color: var(--ai-navy-950);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-insight p,
.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-action-card small,
.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .growth-suggestion-card p {
  color: var(--ai-text-muted);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-action-card,
.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .growth-suggestion-card {
  min-height: 106px;
  padding: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-action-card:hover,
.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .growth-suggestion-card:hover {
  transform: translateY(-2px);
  border-color: rgba(202, 152, 86, 0.44);
  box-shadow: 0 18px 38px rgba(32, 42, 57, 0.10);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-action-card span,
.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .growth-suggestion-badge {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(202, 152, 86, 0.12);
  color: var(--ai-gold-700);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .growth-suggestions-grid {
  gap: 16px;
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .growth-suggestion-card a {
  border-radius: 999px;
  background: rgba(36, 79, 143, 0.10);
  color: var(--dash-op-blue);
}

.dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .growth-suggestion-card a:hover {
  background: var(--dash-op-blue);
  color: #ffffff;
}

@media (max-width: 1260px) {
  .dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-chart-grid,
  .dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-hero {
    min-height: 0;
    padding: 22px;
  }

  .dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-kpi-grid,
  .dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .growth-suggestions-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-smart-page:not(.dashboard-saas-page):not(.relatorios-page) .dashboard-hero aside {
    min-width: 0;
  }
}

/* Empreendimentos premium refresh */
.module-page-condominios,
.module-page-lancamentos {
  --enterprise-blue: #244f8f;
  --enterprise-ink: #071226;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 28px);
}

.module-page-condominios > .page-header,
.module-page-lancamentos > .page-header {
  position: relative;
  overflow: hidden;
  align-items: stretch;
  min-height: 246px;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid rgba(202, 152, 86, 0.30);
  border-radius: var(--ai-radius-xl);
  background:
    radial-gradient(circle at 12% 18%, rgba(214, 170, 104, 0.25), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(61, 102, 151, 0.34), transparent 34%),
    linear-gradient(135deg, #071226 0%, #10213d 52%, #173052 100%);
  color: #ffffff;
  box-shadow: 0 30px 72px rgba(7, 18, 38, 0.20);
}

.module-page-condominios > .page-header::after,
.module-page-lancamentos > .page-header::after {
  content: '';
  position: absolute;
  right: -78px;
  top: -84px;
  width: 250px;
  height: 250px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(214, 170, 104, 0.22), rgba(214, 170, 104, 0.05) 62%, transparent 64%);
  pointer-events: none;
}

.module-page-condominios > .page-header::before,
.module-page-lancamentos > .page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(214, 170, 104, 0.14) 42% 45%, transparent 45% 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 86px 86px, 86px 86px;
  opacity: 0.42;
  pointer-events: none;
}

.module-page-condominios > .page-header > div,
.module-page-condominios > .page-header > a,
.module-page-lancamentos > .page-header > div,
.module-page-lancamentos > .page-header > a {
  position: relative;
  z-index: 1;
}

.module-page-condominios > .page-header > div,
.module-page-lancamentos > .page-header > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 820px;
}

.module-page-condominios > .page-header .section-badge,
.module-page-lancamentos > .page-header .section-badge {
  width: fit-content;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(214, 170, 104, 0.38);
  color: #f7d7a8;
}

.module-page-condominios > .page-header h1,
.module-page-lancamentos > .page-header h1 {
  margin: 12px 0 12px;
  color: #ffffff;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
}

.module-page-condominios > .page-header p,
.module-page-lancamentos > .page-header p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.62;
}

.module-page-condominios > .page-header .btn-primary,
.module-page-lancamentos > .page-header .btn-primary {
  align-self: center;
  min-height: 50px;
  padding-inline: 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ai-gold-600), var(--ai-gold-500));
  box-shadow: var(--ai-shadow-gold);
  color: #ffffff;
  white-space: nowrap;
}

.module-page-condominios > .page-header .btn-primary:hover,
.module-page-lancamentos > .page-header .btn-primary:hover {
  background: linear-gradient(135deg, var(--ai-gold-500), var(--ai-gold-600));
  transform: translateY(-1px);
}

.module-page-condominios .module-filter-card,
.module-page-lancamentos .module-filter-card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2vw, 24px);
  border-color: rgba(202, 152, 86, 0.20);
  border-radius: var(--ai-radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 152, 86, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: 0 18px 46px rgba(32, 42, 57, 0.07);
}

.module-page-condominios .module-filter-card .form-grid,
.module-page-lancamentos .module-filter-card .form-grid {
  gap: 16px;
  align-items: end;
}

.module-page-condominios .module-filter-card .form-group label,
.module-page-lancamentos .module-filter-card .form-group label {
  color: var(--ai-navy-900);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.module-page-condominios .module-filter-card input,
.module-page-condominios .module-filter-card select,
.module-page-lancamentos .module-filter-card input,
.module-page-lancamentos .module-filter-card select {
  min-height: 46px;
  border-color: rgba(217, 222, 231, 0.96);
  background: #ffffff;
  color: var(--ai-navy-900);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.module-page-condominios .filter-actions-inline,
.module-page-lancamentos .filter-actions-inline {
  display: flex;
  align-items: end;
  gap: 10px;
}

.module-page-condominios .filter-actions-inline .btn-primary,
.module-page-lancamentos .filter-actions-inline .btn-primary {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ai-gold-600), var(--ai-gold-500));
  box-shadow: 0 12px 26px rgba(202, 152, 86, 0.22);
  color: #ffffff;
}

.module-page-condominios .filter-actions-inline .btn-secondary,
.module-page-lancamentos .filter-actions-inline .btn-secondary {
  border-radius: 999px;
  background: #ffffff;
  border-color: rgba(185, 195, 208, 0.78);
  color: var(--ai-navy-850);
}

.module-page-condominios .users-summary,
.module-page-lancamentos .users-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.module-page-lancamentos .users-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.module-page-condominios .mini-stat,
.module-page-lancamentos .mini-stat {
  position: relative;
  display: flex;
  min-height: 150px;
  flex-direction: column;
  overflow: hidden;
  padding: 22px;
  border-color: rgba(202, 152, 86, 0.22);
  border-radius: var(--ai-radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 152, 86, 0.14), transparent 32%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 18px 44px rgba(32, 42, 57, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.module-page-condominios .mini-stat:hover,
.module-page-lancamentos .mini-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(202, 152, 86, 0.42);
  box-shadow: 0 24px 54px rgba(32, 42, 57, 0.12);
}

.module-page-condominios .mini-stat::before,
.module-page-lancamentos .mini-stat::before {
  width: 42px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ai-gold-600), var(--enterprise-blue));
}

.module-page-condominios .mini-stat::after,
.module-page-lancamentos .mini-stat::after {
  content: '';
  position: absolute;
  right: -14px;
  bottom: -18px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(36, 79, 143, 0.08);
  pointer-events: none;
}

.module-page-condominios .mini-stat strong,
.module-page-lancamentos .mini-stat strong {
  margin-top: auto;
  color: var(--ai-navy-950);
  font-size: clamp(27px, 2.4vw, 38px);
  line-height: 1;
}

.module-page-condominios .mini-stat span,
.module-page-lancamentos .mini-stat span {
  max-width: 190px;
  color: var(--ai-navy-700);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.module-page-condominios .condominios-grid,
.module-page-lancamentos .lancamentos-grid {
  gap: 20px;
  margin-top: 0;
}

.module-page-condominios .condominio-card,
.module-page-lancamentos .lancamento-card {
  border-color: rgba(217, 222, 231, 0.86);
  border-radius: var(--ai-radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 79, 143, 0.06), transparent 28%),
    linear-gradient(180deg, #ffffff, #fbfcfd);
  box-shadow: 0 18px 44px rgba(32, 42, 57, 0.08);
}

.module-page-condominios .condominio-card-media,
.module-page-lancamentos .lancamento-card-media {
  background:
    radial-gradient(circle at 84% 12%, rgba(202, 152, 86, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(7, 18, 38, 0.10), rgba(36, 79, 143, 0.10));
}

.module-page-condominios .condominio-card-placeholder,
.module-page-lancamentos .lancamento-card-placeholder {
  color: var(--ai-navy-700);
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.92), rgba(232, 237, 245, 0.92));
}

.module-page-condominios .condominio-card-body,
.module-page-lancamentos .lancamento-card-body {
  padding: 20px;
}

.module-page-condominios .condominio-card-body h3,
.module-page-lancamentos .lancamento-card-body h3 {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.15;
}

.module-page-condominios .condominio-card-actions,
.module-page-lancamentos .lancamento-card-actions {
  gap: 10px;
}

.module-page-condominios .condominio-card-actions .btn-secondary,
.module-page-condominios .condominio-card-actions button,
.module-page-lancamentos .lancamento-card-actions .btn-secondary,
.module-page-lancamentos .lancamento-card-actions button {
  min-height: 42px;
  border-radius: 999px;
  font-weight: 900;
}

.module-page-lancamentos .lancamento-card-actions .lancamento-card-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(202, 152, 86, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  color: var(--ai-navy-950);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(32, 42, 57, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.module-page-lancamentos .lancamento-card-actions .lancamento-card-action::after {
  content: ">";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 9px;
  border-radius: 999px;
  background: rgba(202, 152, 86, 0.16);
  color: var(--ai-navy-950);
  font-size: 11px;
  font-weight: 950;
}

.module-page-lancamentos .lancamento-card-actions .lancamento-card-action:hover,
.module-page-lancamentos .lancamento-card-actions .lancamento-card-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(202, 152, 86, 0.68);
  background:
    linear-gradient(135deg, rgba(202, 152, 86, 0.18), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 38px rgba(32, 42, 57, 0.14);
}

.module-page-lancamentos .lancamento-card-actions .lancamento-card-action-edit {
  background:
    linear-gradient(135deg, var(--ai-navy-950), var(--enterprise-blue));
  border-color: rgba(16, 33, 57, 0.82);
  color: #ffffff;
}

.module-page-lancamentos .lancamento-card-actions .lancamento-card-action-edit::after {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.module-page-lancamentos .lancamento-card-actions .lancamento-card-action-units {
  background:
    linear-gradient(135deg, rgba(202, 152, 86, 0.92), var(--ai-gold-600));
  border-color: rgba(202, 152, 86, 0.74);
  color: var(--ai-navy-950);
}

.module-page-lancamentos .lancamento-card-actions .lancamento-card-action-site {
  border-color: rgba(29, 185, 122, 0.36);
  background:
    linear-gradient(135deg, rgba(220, 252, 231, 0.96), #ffffff);
  color: #0f6b46;
}

.module-page-lancamentos .lancamento-card-actions .lancamento-card-action-site::after {
  background: rgba(29, 185, 122, 0.16);
  color: #0f6b46;
}

.module-page-condominios .module-empty-state,
.module-page-lancamentos .module-empty-state {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: clamp(26px, 3vw, 36px);
  border: 1px dashed rgba(202, 152, 86, 0.42);
  border-radius: var(--ai-radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 152, 86, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  box-shadow: 0 18px 44px rgba(32, 42, 57, 0.07);
}

.module-page-condominios .module-empty-state::before,
.module-page-lancamentos .module-empty-state::before {
  content: '';
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ai-gold-600), var(--enterprise-blue));
}

.module-page-condominios .module-empty-state strong,
.module-page-lancamentos .module-empty-state strong {
  color: var(--ai-navy-950);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 950;
}

.module-page-condominios .module-empty-state span,
.module-page-lancamentos .module-empty-state span {
  max-width: 720px;
  color: var(--ai-navy-700);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .module-page-lancamentos .users-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .module-page-condominios > .page-header,
  .module-page-lancamentos > .page-header {
    min-height: 0;
  }

  .module-page-condominios > .page-header .btn-primary,
  .module-page-lancamentos > .page-header .btn-primary {
    align-self: stretch;
    width: 100%;
  }

  .module-page-condominios .users-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .module-page-condominios > .page-header,
  .module-page-lancamentos > .page-header,
  .module-page-condominios .module-filter-card,
  .module-page-lancamentos .module-filter-card,
  .module-page-condominios .module-empty-state,
  .module-page-lancamentos .module-empty-state {
    padding: 18px;
    border-radius: var(--ai-radius-lg);
  }

  .module-page-condominios > .page-header h1,
  .module-page-lancamentos > .page-header h1 {
    font-size: 32px;
  }

  .module-page-condominios .users-summary,
  .module-page-lancamentos .users-summary {
    grid-template-columns: 1fr;
  }

  .module-page-condominios .filter-actions-inline,
  .module-page-lancamentos .filter-actions-inline {
    align-items: stretch;
    flex-direction: column;
  }

  .module-page-condominios .filter-actions-inline .btn-primary,
  .module-page-condominios .filter-actions-inline .btn-secondary,
  .module-page-lancamentos .filter-actions-inline .btn-primary,
  .module-page-lancamentos .filter-actions-inline .btn-secondary {
    width: 100%;
  }
}

/* Final spacing pass: empreendimentos and parceiros */
.content-area > .module-page-condominios,
.content-area > .module-page-lancamentos,
.content-area > .module-page-parceiros {
  box-sizing: border-box;
  padding: clamp(18px, 2vw, 28px) clamp(18px, 2.3vw, 32px) clamp(30px, 3vw, 44px);
}

.module-page-condominios,
.module-page-lancamentos,
.module-page-parceiros {
  --enterprise-blue: #244f8f;
  --enterprise-ink: #071226;
  gap: clamp(20px, 2.2vw, 30px);
}

.module-page-condominios > .page-header,
.module-page-lancamentos > .page-header,
.module-page-parceiros > .parceiros-page-header {
  margin: 0;
}

.module-page-parceiros > .parceiros-page-header {
  position: relative;
  overflow: hidden;
  align-items: stretch;
  min-height: 246px;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid rgba(202, 152, 86, 0.30);
  border-radius: var(--ai-radius-xl);
  background:
    radial-gradient(circle at 12% 18%, rgba(214, 170, 104, 0.25), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(61, 102, 151, 0.34), transparent 34%),
    linear-gradient(135deg, #071226 0%, #10213d 52%, #173052 100%);
  color: #ffffff;
  box-shadow: 0 30px 72px rgba(7, 18, 38, 0.20);
}

.module-page-parceiros > .parceiros-page-header::after {
  content: '';
  position: absolute;
  right: -78px;
  top: -84px;
  width: 250px;
  height: 250px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(214, 170, 104, 0.22), rgba(214, 170, 104, 0.05) 62%, transparent 64%);
  pointer-events: none;
}

.module-page-parceiros > .parceiros-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(214, 170, 104, 0.14) 42% 45%, transparent 45% 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 86px 86px, 86px 86px;
  opacity: 0.42;
  pointer-events: none;
}

.module-page-parceiros > .parceiros-page-header > div,
.module-page-parceiros > .parceiros-page-header > a {
  position: relative;
  z-index: 1;
}

.module-page-parceiros > .parceiros-page-header > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 820px;
}

.module-page-parceiros > .parceiros-page-header .section-badge {
  width: fit-content;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(214, 170, 104, 0.38);
  color: #f7d7a8;
}

.module-page-parceiros > .parceiros-page-header h1 {
  margin: 12px 0 12px;
  color: #ffffff;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
}

.module-page-parceiros > .parceiros-page-header p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.62;
}

.module-page-parceiros > .parceiros-page-header .btn-primary {
  align-self: center;
  min-height: 50px;
  padding-inline: 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ai-gold-600), var(--ai-gold-500));
  box-shadow: var(--ai-shadow-gold);
  color: #ffffff;
  white-space: nowrap;
}

.module-page-condominios .module-filter-card,
.module-page-lancamentos .module-filter-card {
  margin: 0;
  padding: clamp(16px, 1.8vw, 22px);
}

.module-page-condominios .module-filter-card .form-grid,
.module-page-lancamentos .module-filter-card .form-grid {
  margin-top: 0;
}

.module-page-condominios .module-filter-card .form-group,
.module-page-lancamentos .module-filter-card .form-group {
  min-width: 0;
}

.module-page-condominios .filter-actions-inline,
.module-page-lancamentos .filter-actions-inline {
  justify-content: flex-end;
  min-width: 0;
}

.module-page-condominios .filter-actions-inline label,
.module-page-lancamentos .filter-actions-inline label {
  display: none;
}

.module-page-condominios .filter-actions-inline .btn-primary,
.module-page-condominios .filter-actions-inline .btn-secondary,
.module-page-lancamentos .filter-actions-inline .btn-primary,
.module-page-lancamentos .filter-actions-inline .btn-secondary {
  min-height: 46px;
}

.module-page-condominios .users-summary,
.module-page-lancamentos .users-summary {
  margin: 0;
}

.module-page-parceiros .partner-summary-grid,
.module-page-parceiros .partner-grid,
.module-page-parceiros .partner-properties-grid,
.module-page-parceiros .partner-section-grid {
  gap: 20px;
}

.module-page-parceiros .partner-summary-grid article,
.module-page-parceiros .partner-card,
.module-page-parceiros .partner-property-card,
.module-page-parceiros .partner-requests-shell {
  position: relative;
  overflow: hidden;
  border-color: rgba(217, 222, 231, 0.9);
  border-radius: var(--ai-radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 152, 86, 0.10), transparent 28%),
    linear-gradient(180deg, #ffffff, #fbfcfd);
  box-shadow: 0 18px 44px rgba(32, 42, 57, 0.08);
}

.module-page-parceiros .partner-summary-grid article {
  min-height: 142px;
  padding: 22px;
}

.module-page-parceiros .partner-summary-grid article::before {
  content: '';
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ai-gold-600), var(--enterprise-blue));
}

.module-page-parceiros .partner-summary-grid strong {
  color: var(--ai-navy-950);
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 950;
}

.module-page-parceiros .partner-summary-grid span,
.module-page-parceiros .partner-summary-grid small,
.module-page-parceiros .partner-muted {
  color: var(--ai-navy-700);
}

.module-page-parceiros .partners-tabs {
  margin: 0;
  border-color: rgba(202, 152, 86, 0.20);
  border-radius: var(--ai-radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 152, 86, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: 0 16px 34px rgba(32, 42, 57, 0.06);
}

.module-page-parceiros .partners-tab-button {
  min-height: 42px;
  padding-inline: 16px;
}

.module-page-parceiros .partner-card,
.module-page-parceiros .partner-requests-shell {
  padding: clamp(20px, 2vw, 26px);
}

.module-page-parceiros .partner-card-heading {
  margin-bottom: 18px;
}

.module-page-parceiros .partner-card-heading h2,
.module-page-parceiros .partner-card-heading h3,
.module-page-parceiros .partner-requests-header h2 {
  color: var(--ai-navy-950);
  font-weight: 950;
}

.module-page-parceiros .partner-card-heading p,
.module-page-parceiros .partner-requests-header p {
  color: var(--ai-navy-700);
}

.module-page-parceiros .partner-property-card {
  min-height: 100%;
}

.module-page-parceiros .partner-property-media {
  background:
    radial-gradient(circle at 84% 12%, rgba(202, 152, 86, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(7, 18, 38, 0.10), rgba(36, 79, 143, 0.10));
}

.module-page-parceiros .partner-property-body {
  padding: 20px;
}

.module-page-parceiros .partner-property-body h3 {
  color: var(--ai-navy-950);
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 950;
  line-height: 1.15;
}

.module-page-parceiros .partner-meta-line {
  margin: 0;
}

.module-page-parceiros .partner-quality {
  width: 100%;
  justify-content: center;
}

.module-page-parceiros .partner-property-body .partner-actions {
  margin-top: auto;
  padding-top: 8px;
}

.module-page-parceiros .partner-property-body .partner-actions .btn-primary,
.module-page-parceiros .partner-property-body .partner-actions .btn-secondary {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 999px;
  font-weight: 900;
}

.module-page-parceiros .partner-requests-list {
  gap: 12px;
}

.module-page-parceiros .partner-request-row {
  border-color: rgba(217, 222, 231, 0.86);
  border-radius: var(--ai-radius-lg);
}

.module-page-parceiros .partner-request-stats button {
  min-height: 38px;
}

.module-page-parceiros .partner-indications-history-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.module-page-parceiros .partner-indications-history-list {
  display: grid;
  gap: 10px;
  max-height: clamp(260px, 42vh, 430px);
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
}

.module-page-parceiros .partner-indications-history-list article {
  min-width: 0;
}

.module-page-parceiros .partner-indications-history-list strong,
.module-page-parceiros .partner-indications-history-list span,
.module-page-parceiros .partner-indications-history-list small {
  overflow-wrap: anywhere;
}

.module-page-parceiros .partner-indications-history-list::-webkit-scrollbar {
  width: 8px;
}

.module-page-parceiros .partner-indications-history-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(32, 42, 57, 0.24);
}

.module-page-parceiros .partner-indications-history-list::-webkit-scrollbar-track {
  background: rgba(232, 236, 243, 0.66);
  border-radius: 999px;
}

@media (max-width: 980px) {
  .module-page-parceiros > .parceiros-page-header {
    min-height: 0;
  }

  .module-page-parceiros > .parceiros-page-header .btn-primary {
    align-self: stretch;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .content-area > .module-page-condominios,
  .content-area > .module-page-lancamentos,
  .content-area > .module-page-parceiros {
    padding: 16px;
  }

  .module-page-parceiros > .parceiros-page-header,
  .module-page-parceiros .partner-card,
  .module-page-parceiros .partner-requests-shell {
    padding: 18px;
    border-radius: var(--ai-radius-lg);
  }

  .module-page-parceiros > .parceiros-page-header h1 {
    font-size: 32px;
  }

  .module-page-parceiros .partner-indications-history-list {
    max-height: 320px;
    padding-right: 2px;
  }
}

.urgent-email-form {
  display: grid;
  gap: 20px;
}

.urgent-email-test-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.urgent-email-test-form h2 {
  margin: 0 0 6px;
}

.urgent-email-test-form p {
  margin: 0;
  color: var(--ai-muted, #52627a);
}

@media (max-width: 760px) {
  .urgent-email-test-form {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Condominios: detalhes, acoes e fotos */
.module-page-condominios .condominio-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.module-page-condominios .condominio-card-actions .inline-form {
  margin: 0;
}

.module-page-condominios .condominio-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid rgba(185, 195, 208, 0.84);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ai-navy-900);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.module-page-condominios .condominio-card-action:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(32, 42, 57, 0.10);
}

.module-page-condominios .condominio-card-action-primary {
  border-color: rgba(202, 152, 86, 0.58);
  background: linear-gradient(135deg, var(--ai-gold-600), var(--ai-gold-500));
  color: #ffffff;
  box-shadow: var(--ai-shadow-gold);
}

.module-page-condominios .condominio-card-action-edit {
  border-color: rgba(36, 79, 143, 0.24);
  background: rgba(36, 79, 143, 0.08);
  color: var(--ai-navy-950);
}

.module-page-condominios .condominio-card-action-muted {
  background: rgba(248, 250, 252, 0.96);
  color: var(--ai-navy-700);
}

.condominio-photo-preview-grid {
  margin-top: 18px;
}

.module-page-condominios .condominio-photo-upload-box .photo-input-hidden {
  pointer-events: none;
}

.condominio-photo-preview-grid .photo-empty-state {
  grid-column: 1 / -1;
  margin-top: 0;
}

.condominio-photo-preview-grid .photo-card-image-wrap {
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.92), rgba(232, 237, 245, 0.92));
}

.condominio-photo-preview-grid .photo-card-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.condominio-detail-page {
  --condominio-detail-gap: clamp(18px, 2vw, 26px);
}

.condominio-detail-hero {
  min-height: 220px;
}

.condominio-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.module-page-condominios > .page-header > .condominio-detail-actions {
  max-width: none;
  flex: 0 0 auto;
  flex-direction: row;
  justify-content: flex-end;
}

.condominio-detail-grid,
.condominio-info-grid {
  display: grid;
  gap: var(--condominio-detail-gap);
}

.condominio-detail-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.condominio-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.condominio-detail-card {
  border: 1px solid rgba(217, 222, 231, 0.88);
  border-radius: var(--ai-radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 79, 143, 0.05), transparent 30%),
    linear-gradient(180deg, #ffffff, #fbfcfd);
  box-shadow: 0 18px 44px rgba(32, 42, 57, 0.08);
  padding: clamp(18px, 2vw, 24px);
}

.condominio-detail-card h2 {
  margin: 8px 0 10px;
  color: var(--ai-navy-950);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 950;
}

.condominio-detail-card p {
  margin: 0;
  color: var(--ai-navy-700);
  line-height: 1.65;
}

.condominio-detail-gallery {
  display: grid;
  gap: 14px;
}

.condominio-detail-main-photo {
  overflow: hidden;
  border-radius: var(--ai-radius-lg);
  background: linear-gradient(135deg, rgba(7, 18, 38, 0.08), rgba(36, 79, 143, 0.08));
  aspect-ratio: 16 / 9;
}

.condominio-detail-main-photo img,
.condominio-linked-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.condominio-detail-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--ai-navy-700);
  font-weight: 900;
}

.condominio-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.condominio-detail-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(217, 222, 231, 0.9);
  border-radius: 14px;
}

.condominio-detail-side {
  display: grid;
  align-content: start;
  gap: var(--condominio-detail-gap);
}

.condominio-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.condominio-detail-stats div {
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(217, 222, 231, 0.88);
  border-radius: var(--ai-radius-lg);
  background: rgba(248, 250, 252, 0.92);
}

.condominio-detail-stats strong {
  display: block;
  color: var(--ai-navy-950);
  font-size: 30px;
  line-height: 1;
}

.condominio-detail-stats span {
  display: block;
  margin-top: 8px;
  color: var(--ai-navy-700);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.condominio-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.condominio-feature-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(217, 222, 231, 0.88);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  color: var(--ai-navy-800);
  font-size: 12px;
  font-weight: 900;
}

.condominio-linked-section {
  display: grid;
  gap: 18px;
}

.condominio-linked-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.condominio-linked-card {
  overflow: hidden;
  border: 1px solid rgba(217, 222, 231, 0.88);
  border-radius: var(--ai-radius-lg);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(32, 42, 57, 0.07);
}

.condominio-linked-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(7, 18, 38, 0.08), rgba(202, 152, 86, 0.08));
}

.condominio-linked-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.condominio-linked-body h3 {
  margin: 0;
  color: var(--ai-navy-950);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.2;
}

.condominio-linked-body p,
.condominio-linked-body strong {
  margin: 0;
  color: var(--ai-navy-700);
  font-size: 13px;
  line-height: 1.4;
}

.condominio-linked-body strong {
  color: var(--ai-navy-950);
  font-weight: 950;
}

.condominio-linked-code {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(202, 152, 86, 0.14);
  color: var(--ai-gold-700);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .condominio-detail-grid,
  .condominio-info-grid,
  .condominio-linked-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .module-page-condominios .condominio-card-actions,
  .condominio-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .module-page-condominios .condominio-card-action,
  .condominio-detail-actions .btn-primary,
  .condominio-detail-actions .btn-secondary {
    width: 100%;
  }

  .condominio-detail-stats,
  .condominio-detail-thumbs {
    grid-template-columns: 1fr;
  }
}

/* Production validation: keep internal pages from creating body-level horizontal overflow. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.main-content,
.content,
.content-area,
.page-section,
.module-page,
.dashboard-smart-page,
.parceiros-page,
.relatorios-page,
.users-page,
.section-card,
.config-card,
.filters-card,
.filters-grid,
.summary-grid,
.cards-grid,
.stats-grid,
.dashboard-grid,
.relatorios-grid,
.relatorios-section,
.relatorios-chart-card {
  max-width: 100%;
  min-width: 0;
}

.topbar,
.topbar-title,
.topbar-right,
.topbar-profile,
.topbar-user {
  min-width: 0;
}

.topbar {
  flex-wrap: wrap;
}

.topbar-title h1,
.topbar-title span,
.topbar-user strong,
.topbar-user span,
.topbar-profile {
  overflow-wrap: anywhere;
}

.table-responsive,
.relatorios-table-wrap,
.saas-logs-table-wrap,
.saas-audit-table-wrap,
.saas-migration-table-wrap,
.lancamento-unidades-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive > table,
.relatorios-table-wrap > table,
.saas-logs-table-wrap > table,
.saas-audit-table-wrap > table,
.saas-migration-table-wrap > table,
.lancamento-unidades-table-wrap > table {
  width: 100%;
}

.users-table,
.imoveis-table,
.relatorios-table,
.lancamento-unidades-table {
  min-width: min(920px, 100vw);
}

.filter-row,
.filters-grid,
.imoveis-filters,
.users-filters,
.relatorios-filters {
  align-items: end;
  min-width: 0;
}

.filter-row > *,
.filters-grid > *,
.imoveis-filters > *,
.users-filters > *,
.relatorios-filters > * {
  min-width: 0;
}

[data-partners-flash] {
  transition: opacity .22s ease, transform .22s ease;
}

[data-partners-flash].is-dismissing {
  opacity: 0;
  transform: translateY(-6px);
}

@media (max-width: 900px) {
  .topbar {
    gap: 12px;
  }

  .topbar-right {
    justify-content: flex-start;
    width: 100%;
  }

  .topbar-profile {
    max-width: 100%;
  }

  .users-table,
  .imoveis-table,
  .relatorios-table,
  .lancamento-unidades-table {
    min-width: 720px;
  }
}

@media (max-width: 520px) {
  .content,
  .content-area {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar-right {
    align-items: stretch;
  }

  .topbar-profile {
    width: 100%;
  }

  .users-table,
  .imoveis-table,
  .relatorios-table,
  .lancamento-unidades-table {
    min-width: 640px;
  }
}
/* SaaS Leads CRM */
.saas-leads-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.saas-leads-hero {
  overflow: hidden;
}

.saas-lead-kpi-grid,
.saas-lead-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.saas-leads-filters,
.saas-lead-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px;
  align-items: end;
}

.saas-leads-filters label,
.saas-lead-form label,
.saas-lead-side-form label,
.saas-lead-note-form label,
.saas-tag-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.78rem;
}

.saas-leads-filters label span,
.saas-lead-form label span,
.saas-lead-side-form label span,
.saas-lead-note-form label span,
.saas-tag-form label span {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #334155;
}

.saas-leads-filters input,
.saas-leads-filters select,
.saas-lead-form input,
.saas-lead-form select,
.saas-lead-form textarea,
.saas-lead-side-form input,
.saas-lead-side-form select,
.saas-lead-note-form textarea,
.saas-lead-note-form select,
.saas-tag-form input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 13px 14px;
  color: #0f172a;
  background: rgba(255,255,255,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.saas-leads-filters input:focus,
.saas-leads-filters select:focus,
.saas-lead-form input:focus,
.saas-lead-form select:focus,
.saas-lead-form textarea:focus,
.saas-lead-side-form input:focus,
.saas-lead-side-form select:focus,
.saas-lead-note-form textarea:focus {
  outline: none;
  border-color: #c9964c;
  box-shadow: 0 0 0 4px rgba(201,150,76,.16);
}

.saas-leads-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.saas-leads-view-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid #dbe4f0;
  background: rgba(255,255,255,.88);
}

.saas-leads-view-toggle a {
  color: #334155;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
}

.saas-leads-view-toggle a.active {
  background: #111827;
  color: #fff;
  box-shadow: 0 12px 24px rgba(15,23,42,.16);
}

.saas-lead-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.saas-lead-tags span,
.saas-tags-list > span,
.saas-lead-tag-picker label span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #0f172a;
  background: color-mix(in srgb, var(--tag-color, #c9964c) 16%, #fff);
  border: 1px solid color-mix(in srgb, var(--tag-color, #c9964c) 34%, #e5e7eb);
  font-size: .76rem;
  font-weight: 800;
}

.saas-lead-kanban {
  display: grid;
  grid-template-columns: repeat(7, minmax(250px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.saas-kanban-column {
  min-height: 360px;
  border: 1px solid #dbe4f0;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.9));
  padding: 14px;
}

.saas-kanban-column.is-over {
  border-color: #c9964c;
  box-shadow: 0 0 0 4px rgba(201,150,76,.12);
}

.saas-kanban-column header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #0f172a;
}

.saas-kanban-column header span {
  border-radius: 999px;
  background: #e8eff9;
  padding: 4px 9px;
  font-size: .76rem;
  font-weight: 900;
}

.saas-kanban-dropzone {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
}

.saas-kanban-card {
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 16px 34px rgba(15,23,42,.09);
  cursor: grab;
}

.saas-kanban-card.is-dragging {
  opacity: .55;
}

.saas-kanban-card a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 900;
}

.saas-kanban-card p {
  margin: 6px 0 10px;
  color: #475569;
}

.saas-lead-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.saas-lead-card-meta span,
.saas-return-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f1f5f9;
  color: #334155;
  font-size: .74rem;
  font-weight: 900;
}

.lead-temp-quente,
.return-atrasado {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

.lead-temp-morno,
.return-hoje {
  background: #fef3c7 !important;
  color: #92400e !important;
}

.lead-temp-frio,
.return-agendado {
  background: #dbeafe !important;
  color: #1e40af !important;
}

.return-sem_retorno {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.saas-kanban-fallback {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.saas-kanban-fallback select,
.saas-kanban-fallback button {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
  font-weight: 800;
}

.saas-kanban-fallback button {
  background: #111827;
  color: #fff;
  cursor: pointer;
}

.saas-leads-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.saas-leads-pagination a {
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 9px 13px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 900;
  background: #fff;
}

.saas-leads-pagination a.active {
  background: #111827;
  color: #fff;
}

.saas-tags-manager {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 22px;
}

.saas-tag-form {
  display: grid;
  grid-template-columns: 1fr 96px auto;
  gap: 12px;
  align-items: end;
}

.saas-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.saas-tags-list > span {
  padding-right: 6px;
}

.saas-tags-list > span.is-inactive {
  opacity: .45;
}

.saas-tags-list form {
  margin: 0;
}

.saas-tags-list button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}

.saas-lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.saas-lead-form-full {
  grid-column: 1 / -1;
}

.saas-lead-tag-picker {
  margin-top: 18px;
}

.saas-lead-tag-picker > strong {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
}

.saas-lead-tag-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.saas-lead-tag-picker input {
  width: auto;
}

.saas-lead-form-actions,
.saas-lead-contact-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.saas-lead-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
}

.saas-lead-detail-card {
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  padding: 16px;
}

.saas-lead-detail-card span,
.saas-lead-info-grid span {
  display: block;
  color: #64748b;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.saas-lead-detail-card strong {
  display: block;
  margin-top: 7px;
  color: #0f172a;
  font-size: 1.16rem;
}

.saas-lead-detail-card small {
  display: block;
  margin-top: 4px;
  color: #475569;
}

.saas-lead-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.saas-lead-info-grid div {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  background: #f8fafc;
}

.saas-lead-info-grid strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
}

.saas-lead-side-form,
.saas-lead-note-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.saas-lead-observations {
  margin-top: 22px;
  color: #334155;
}

.saas-lead-observations h3 {
  margin: 18px 0 8px;
  color: #0f172a;
}

.saas-lead-timeline,
.saas-lead-activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.saas-lead-timeline article,
.saas-lead-activity-list article {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.saas-lead-timeline article span,
.saas-lead-activity-list article span,
.saas-lead-activity-list article small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: .82rem;
}

@media (max-width: 1200px) {
  .saas-leads-filters,
  .saas-lead-form-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .saas-lead-detail-layout,
  .saas-tags-manager {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .saas-leads-filters,
  .saas-lead-form-grid,
  .saas-lead-info-grid,
  .saas-tag-form {
    grid-template-columns: 1fr;
  }

  .saas-lead-kanban {
    grid-template-columns: repeat(7, minmax(230px, 82vw));
  }

  .saas-leads-view-toggle,
  .saas-lead-form-actions,
  .saas-lead-contact-actions {
    width: 100%;
  }

  .saas-leads-view-toggle a,
  .saas-lead-form-actions .btn-primary,
  .saas-lead-form-actions .btn-secondary {
    flex: 1;
    text-align: center;
  }
}

/* General settings visual pass: keep every subsection readable at mixed widths. */
.config-page,
.config-wrapper,
.config-content,
.config-section,
.config-card,
.config-operational-card,
.config-planned-card,
.config-mini-panel,
.config-switch-card,
.config-status-selector label,
.config-live-preview,
.config-info-panel {
  min-width: 0;
  max-width: 100%;
}

.config-content {
  overflow-x: hidden;
}

.config-card.active {
  width: 100%;
  overflow: hidden;
}

.config-card *,
.config-menu *,
.config-planned-card * {
  min-width: 0;
}

.config-card h2,
.config-card h3,
.config-card h4,
.config-card p,
.config-card small,
.config-card strong,
.config-card span,
.config-card label,
.config-card li,
.config-submenu-item,
.config-menu-item {
  overflow-wrap: anywhere;
}

.config-operational-card .saas-config-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(217, 222, 231, 0.8);
}

.config-operational-grid,
.config-permission-switch-grid,
.config-sensitive-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  align-items: stretch;
}

.config-operational-grid > .config-mini-panel,
.config-operational-grid > .config-switch-card {
  width: 100%;
}

.config-mini-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: clamp(14px, 2vw, 18px);
}

.config-mini-panel-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.config-mini-panel-title span {
  flex: 0 0 auto;
}

.config-mini-panel-title strong {
  line-height: 1.25;
}

.config-mini-panel .form-grid,
.config-mini-panel .form-grid.cols-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr));
  gap: 12px;
}

.config-mini-panel .form-group {
  min-width: 0;
}

.config-mini-panel input,
.config-mini-panel select,
.config-mini-panel textarea {
  width: 100%;
  max-width: 100%;
}

.config-checkbox-stack {
  gap: 10px;
}

.config-checkbox-stack label,
.checkbox-line,
.config-switch-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
}

.config-checkbox-stack label,
.checkbox-line {
  background: rgba(248, 250, 252, 0.86);
}

.config-checkbox-stack label:has(input:checked),
.checkbox-line:has(input:checked) {
  background: linear-gradient(180deg, rgba(202, 152, 86, 0.12), rgba(255, 255, 255, 0.96));
}

.config-checkbox-stack input,
.checkbox-line input,
.config-switch-card input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.saas-demo-account-option {
  align-items: flex-start;
  border: 1px solid rgba(202, 152, 86, 0.26);
  padding: 14px 16px;
}

.saas-demo-account-option span {
  display: grid;
  gap: 4px;
}

.saas-demo-account-option small {
  color: #52627a;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
}

.config-checkbox-stack p,
.field-helper,
.config-mini-panel p {
  margin: 0;
  line-height: 1.45;
}

.config-provisorio-preview-row {
  gap: 8px;
}

.config-provisorio-preview-row .imovel-update-badge {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.config-status-selector,
.config-profile-selector {
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.config-status-selector label {
  min-height: 0;
  height: auto;
}

.config-profile-selector label {
  min-height: 190px;
}

.config-profile-capabilities {
  margin-top: 8px;
}

.config-live-preview {
  width: 100%;
}

.config-provisorio-summary-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.config-provisorio-summary-preview > span {
  margin: 0;
}

.config-planned-card {
  display: none;
}

.config-planned-card.active {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 0;
}

.config-planned-hero {
  width: 100%;
  max-width: none;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(202, 152, 86, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 152, 86, 0.2), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.92));
}

.config-planned-hero h2,
.config-planned-hero p {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.22);
}

.config-planned-note {
  margin-top: 0;
  color: var(--ai-navy-900);
}

.config-submenu-item.is-todo {
  gap: 8px;
}

.config-submenu-item.is-todo::after {
  flex: 0 0 auto;
  margin-left: auto;
}

.saas-imob-list-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.5vw, 26px);
  overflow: hidden;
}

.saas-imob-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.saas-imob-list-header h2 {
  margin: 8px 0 6px;
  color: var(--ai-navy-900);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.saas-imob-list-header p {
  max-width: 720px;
  margin: 0;
  color: var(--ai-muted);
}

.saas-imob-list-summary {
  min-width: 136px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.95));
  text-align: right;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.saas-imob-list-summary strong,
.saas-imob-list-summary span {
  display: block;
}

.saas-imob-list-summary strong {
  color: var(--ai-blue-700);
  font-size: 1.55rem;
  line-height: 1;
}

.saas-imob-list-summary span {
  margin-top: 5px;
  color: var(--ai-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.saas-imob-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.saas-imob-list-grid .saas-imob-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(240px, 1.3fr) minmax(280px, 1.4fr);
  align-items: start;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
}

.saas-imob-list-grid .saas-imob-card-top {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.saas-imob-list-grid .saas-imob-card-top > .status-badge {
  grid-column: 1 / -1;
  justify-self: start;
}

.saas-imob-list-grid .saas-imob-card h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.saas-imob-list-grid .saas-imob-card p {
  margin: 0;
}

.saas-imob-list-grid .saas-imob-badges {
  align-content: start;
  margin: 0;
}

.saas-imob-list-grid .saas-imob-metrics {
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  margin: 0;
}

.saas-imob-list-grid .saas-imob-links {
  min-height: 100%;
  margin: 0;
}

.saas-imob-list-grid .saas-imob-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.saas-imob-list-grid .saas-imob-actions form {
  margin: 0;
}

.saas-imob-list-pagination {
  margin-top: 4px;
}

.saas-imob-list-pagination .pagination-btn.disabled {
  pointer-events: none;
  opacity: 0.45;
}

@media (max-width: 1240px) {
  .saas-imob-list-grid .saas-imob-card {
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 1fr);
  }

  .saas-imob-list-grid .saas-imob-links,
  .saas-imob-list-grid .saas-imob-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .saas-imob-list-header {
    flex-direction: column;
  }

  .saas-imob-list-summary {
    width: 100%;
    text-align: left;
  }

  .saas-imob-list-grid .saas-imob-card {
    grid-template-columns: 1fr;
  }

  .saas-imob-list-grid .saas-imob-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .config-wrapper {
    gap: 18px;
  }

  .config-wrapper > .config-menu {
    width: clamp(236px, 30vw, 292px);
  }
}

@media (max-width: 980px) {
  .config-wrapper {
    flex-direction: column;
  }

  .config-wrapper > .config-menu {
    position: static;
    width: 100%;
    max-height: none;
  }
}

@media (max-width: 680px) {
  .config-operational-card .saas-config-heading {
    margin-bottom: 16px;
  }

  .config-wrapper > .config-menu {
    max-height: min(520px, 58vh);
    overflow-y: auto;
    padding-top: 64px;
  }

  .config-card,
  .config-planned-card {
    padding: 16px;
  }

  .config-provisorio-summary-preview {
    grid-template-columns: 1fr;
  }

  .config-submenu-item.is-todo::after {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .mobile-filter-toggle-wrap {
    display: block;
    margin: 10px 0 14px;
  }

  .mobile-filter-toggle {
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    justify-content: center;
  }

  .has-mobile-collapsible-filters .mobile-collapsible-filter:not(.is-open) {
    display: none !important;
  }

  .has-mobile-collapsible-filters .mobile-collapsible-filter.is-open {
    display: block !important;
  }

  .mobile-summary-hidden,
  .mobile-filter-status-bar {
    display: none !important;
  }
}
