html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin-bottom: 0;
}

body > .container {
  flex: 1 0 auto;
  width: 100%;
}

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, .1);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
  padding: 1rem 0;
}

.cookie-consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent-text {
  flex: 1 1 320px;
  min-width: 260px;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

@media (max-width: 575.98px) {
  .cookie-consent-actions {
    width: 100%;
  }
  .cookie-consent-actions .btn {
    flex: 1 1 auto;
  }
}

/* Tema escuro (requer cookies funcionais) */
[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="dark"] body {
  background-color: #1a1d21;
  color: #e9ecef;
}

[data-theme="dark"] .card {
  background-color: #25282c;
  border-color: #3d4248;
  color: #e9ecef;
}

[data-theme="dark"] .card-header,
[data-theme="dark"] .card-footer {
  background-color: #2d3136;
  border-color: #3d4248;
}

/* Bootstrap `.bg-white` uses !important, which forces a white background even in
   dark mode and leaves the light text unreadable. Re-map it on dark surfaces. */
[data-theme="dark"] .card-header.bg-white {
  background-color: #2d3136 !important;
  color: var(--ac-ink);
}

/* Bootstrap 5.1 hardcodes `.table { color: #212529 }` (no --bs-table-color var),
   so we must set the color explicitly on the table and its cells. */
[data-theme="dark"] .table {
  color: #e9ecef;
  border-color: #3d4248;
  --bs-table-color: #e9ecef;
  --bs-table-striped-color: #e9ecef;
  --bs-table-active-color: #e9ecef;
  --bs-table-hover-color: #e9ecef;
}

[data-theme="dark"] .table > :not(caption) > * > * {
  color: #e9ecef;
  border-color: #3d4248;
}

[data-theme="dark"] .table .text-muted,
[data-theme="dark"] .table small {
  color: #adb5bd !important;
}

[data-theme="dark"] .table-light,
[data-theme="dark"] .table-light > :not(caption) > * > * {
  --bs-table-bg: #2d3136;
  --bs-table-color: #e9ecef;
  --bs-table-border-color: #3d4248;
  background-color: #2d3136;
  color: #e9ecef;
}

/* Light theme: grid text is always dark for readability (no light fonts in grids). */
[data-theme="light"] .table {
  color: #212529;
}

[data-theme="light"] .table > :not(caption) > * > * {
  color: #212529;
}

[data-theme="light"] .table-light,
[data-theme="light"] .table-light > :not(caption) > * > * {
  color: #212529;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: #2d3136;
  border-color: #495057;
  color: #e9ecef;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background-color: #2d3136;
  color: #e9ecef;
}

[data-theme="dark"] .text-muted {
  color: #adb5bd !important;
}

[data-theme="dark"] .footer {
  background-color: #1a1d21;
  border-color: #3d4248 !important;
}

[data-theme="dark"] .cookie-consent-banner {
  background: #25282c;
  border-top-color: #3d4248;
  color: #e9ecef;
}

[data-theme="dark"] .modal-content {
  background-color: #25282c;
  color: #e9ecef;
}

[data-theme="dark"] .dropdown-menu {
  background-color: #25282c;
  border-color: #3d4248;
  color: #e9ecef;
  --bs-dropdown-color: #e9ecef;
  --bs-dropdown-link-color: #e9ecef;
  --bs-dropdown-link-hover-color: #fff;
  --bs-dropdown-link-hover-bg: #3d4248;
  --bs-dropdown-divider-bg: #3d4248;
}

[data-theme="dark"] .dropdown-menu .text-primary {
  color: #6ea0ff !important;
}

[data-theme="dark"] .dropdown-divider {
  border-color: #3d4248;
  opacity: 1;
}

[data-theme="dark"] .dropdown-item {
  color: #e9ecef;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
  background-color: #3d4248;
  color: #fff;
}

.ac-noti-dropdown__title {
  color: inherit;
}

[data-theme="dark"] .alert-secondary {
  background-color: #2d3136;
  border-color: #3d4248;
  color: #e9ecef;
}

/* Bootstrap `.alert-light` / `.bg-light` / `.text-bg-light` forçam fundo claro com
   texto escuro — ilegíveis no tema escuro. Re-mapeamos para superfícies escuras. */
[data-theme="dark"] .alert-light {
  background-color: #2d3136;
  border-color: #3d4248;
  color: #e9ecef;
}

[data-theme="dark"] .alert-info {
  background-color: #14313f;
  border-color: #1c4a5e;
  color: #cfe9f5;
}

[data-theme="dark"] .alert-warning {
  background-color: #3a3320;
  border-color: #5e5325;
  color: #f5e7c0;
}

[data-theme="dark"] .bg-light {
  background-color: #2d3136 !important;
  color: #e9ecef;
}

[data-theme="dark"] .text-bg-light {
  background-color: #2d3136 !important;
  color: #e9ecef !important;
}

/* ----- Responsáveis pela Certificação ----- */
.resp-card {
  background-color: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.resp-card--sugerido {
  border-color: rgba(13, 110, 253, .35) !important;
}

.ac-resp-avatar {
  background-color: #f1f3f5;
  color: #495057;
}

.ac-resp-cargo {
  background-color: #f1f3f5;
  color: #343a40;
}

.ac-resp-box {
  background-color: #f8f9fa;
}

[data-theme="dark"] .resp-card {
  background-color: #2a2e33;
  border-color: #3d4248;
}

[data-theme="dark"] .resp-card--sugerido {
  border-color: #6ea0ff !important;
}

[data-theme="dark"] .ac-resp-avatar {
  background-color: #343a40;
  color: #e9ecef;
}

[data-theme="dark"] .ac-resp-cargo {
  background-color: #343a40;
  color: #e9ecef;
  border-color: #495057 !important;
}

[data-theme="dark"] .ac-resp-box {
  background-color: #2d3136;
  border-color: #3d4248 !important;
}

[data-theme="dark"] .legal-doc {
  color: #e9ecef;
}

[data-theme="dark"] hr {
  border-color: #3d4248;
  opacity: 1;
}

/* Outline buttons legíveis no tema escuro (cores mais claras) */
[data-theme="dark"] .btn-outline-primary   { color: #6ea0ff; border-color: #6ea0ff; }
[data-theme="dark"] .btn-outline-secondary { color: #c2c9d2; border-color: #6c757d; }
[data-theme="dark"] .btn-outline-success   { color: #4ade80; border-color: #4ade80; }
[data-theme="dark"] .btn-outline-danger    { color: #f87171; border-color: #f87171; }
[data-theme="dark"] .btn-outline-warning   { color: #fbbf24; border-color: #fbbf24; }
[data-theme="dark"] .btn-outline-info      { color: #38bdf8; border-color: #38bdf8; }
[data-theme="dark"] .btn-outline-dark      { color: #d6dae0; border-color: #6c757d; }
[data-theme="dark"] .btn-outline-primary:hover   { background-color: #6ea0ff; border-color: #6ea0ff; color: #0b1220 !important; }
[data-theme="dark"] .btn-outline-secondary:hover { background-color: #6c757d; border-color: #6c757d; color: #fff !important; }
[data-theme="dark"] .btn-outline-success:hover   { background-color: #4ade80; border-color: #4ade80; color: #0b1220 !important; }
[data-theme="dark"] .btn-outline-danger:hover    { background-color: #f87171; border-color: #f87171; color: #0b1220 !important; }
[data-theme="dark"] .btn-outline-warning:hover   { background-color: #fbbf24; border-color: #fbbf24; color: #1f2937 !important; }
[data-theme="dark"] .btn-outline-info:hover      { background-color: #38bdf8; border-color: #38bdf8; color: #0b1220 !important; }
[data-theme="dark"] .btn-outline-dark:hover      { background-color: #d6dae0; border-color: #d6dae0; color: #0b1220 !important; }

/* Botões desativados continuam perceptíveis sem parecer "sumidos" */
[data-theme="dark"] .btn.disabled,
[data-theme="dark"] .btn:disabled { opacity: .5; }

#btnThemeToggle {
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

/* ==========================================================================
   Header — ícones de sino e tema (sempre brancos) + badge de notificações
   ========================================================================== */
.ac-icon {
  width: 1.2rem;
  height: 1.2rem;
  vertical-align: -0.18em;
  color: #ffffff;
}

/* Sino branco em qualquer tema, com leve animação no hover */
.ac-bell-link .ac-bell { color: #ffffff; transition: transform .25s ease; }
.ac-bell-link:hover .ac-bell { transform: rotate(-10deg) scale(1.05); }

/* Badge contador: vermelho, texto branco, circular, centralizado, negrito */
.ac-noti-badge {
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #dc3545;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.62rem;
  line-height: 1;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.18);
  /* Aproxima o contador do sino (sobrepõe levemente o ícone) */
  margin-left: -0.45rem;
  margin-top: 0.15rem;
}

/* KPIs de estatísticas: cores legíveis em ambos os temas */
.ac-stat-value { font-weight: 700; }
.ac-stat--primary { color: #2455d6; }
.ac-stat--success { color: #16a34a; }
.ac-stat--accent  { color: #d97706; }
.ac-stat--purple  { color: #7c3aed; }
[data-theme="dark"] .ac-stat--primary { color: #6ea0ff; }
[data-theme="dark"] .ac-stat--success { color: #4ade80; }
[data-theme="dark"] .ac-stat--accent  { color: #fbbf24; }
[data-theme="dark"] .ac-stat--purple  { color: #c4b5fd; }

/* Links dentro de tabelas: contraste garantido independente do branding */
.ac-table-link { color: #2455d6; }
.ac-table-link:hover { color: #1b3fa0; text-decoration: underline !important; }
[data-theme="dark"] .ac-table-link { color: #6ea0ff; }
[data-theme="dark"] .ac-table-link:hover { color: #9bc0ff; }
[data-theme="dark"] .table a { color: #6ea0ff; }

/* Alternador de tema branco + hover suave e transição animada */
.ac-theme-toggle {
  border-radius: 10px;
  transition: background-color .2s ease, transform .2s ease;
}
.ac-theme-toggle:hover { background-color: rgba(255, 255, 255, 0.16); transform: translateY(-1px); }
.ac-theme-toggle:focus,
.ac-theme-toggle:active,
.ac-theme-toggle:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}
.ac-theme-icon { display: inline-flex; align-items: center; }
.ac-theme-icon .ac-icon { transition: transform .3s ease, opacity .3s ease; }
.ac-theme-toggle:hover .ac-theme-icon .ac-icon { transform: rotate(15deg); }

/* Mostra lua no tema claro e sol no tema escuro */
.ac-theme-icon .ac-icon-sun { display: none; }
.ac-theme-icon .ac-icon-moon { display: inline-block; }
[data-theme="dark"] .ac-theme-icon .ac-icon-sun { display: inline-block; }
[data-theme="dark"] .ac-theme-icon .ac-icon-moon { display: none; }

/* ==========================================================================
   AlunoCertificado — Design System (UX humanizado)
   ========================================================================== */
:root {
  /* ---- Paleta oficial AlunoCertificado ---- */
  /* Azul = ação principal */
  --ac-primary: #2563EB;
  --ac-primary-dark: #1D4ED8;   /* hover */
  --ac-primary-active: #1E40AF; /* active */
  --ac-primary-rgb: 37, 99, 235;
  /* Verde = sucesso / certificação */
  --ac-success: #16A34A;
  --ac-success-hover: #15803D;
  --ac-success-active: #166534;
  --ac-success-rgb: 22, 163, 74;
  /* Laranja = atenção */
  --ac-accent: #F59E0B;
  --ac-accent-hover: #D97706;
  --ac-accent-rgb: 245, 158, 11;
  /* Vermelho = exclusão / perigo */
  --ac-danger: #DC2626;
  --ac-danger-hover: #B91C1C;
  --ac-danger-rgb: 220, 38, 38;
  /* Ciano = informação */
  --ac-info: #0891B2;
  --ac-info-hover: #0E7490;
  /* Neutros */
  --ac-teal: #14b8a6;
  --ac-ink: #0f172a;
  --ac-muted: #64748b;
  --ac-surface: #ffffff;
  --ac-soft: #f1f5fb;
  --ac-border: #e6ebf3;
  --ac-radius: 18px;
  --ac-radius-sm: 12px;
  --ac-shadow: 0 12px 34px rgba(15, 23, 42, .10);
  --ac-shadow-sm: 0 6px 18px rgba(15, 23, 42, .07);
  --ac-gradient: linear-gradient(135deg, #2563EB 0%, #3B82F6 45%, #14b8a6 100%);
  --ac-hero-overlay: linear-gradient(120deg, rgba(27,63,168,.92) 0%, rgba(36,85,214,.78) 40%, rgba(20,184,166,.55) 100%);
  --ac-gradient-warm: linear-gradient(135deg, #f59e0b 0%, #fb7185 100%);
  --ac-gradient-cert: linear-gradient(90deg, #16A34A 0%, #22C55E 100%);
  --ac-font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --ac-font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

body {
  font-family: var(--ac-font-body);
  color: var(--ac-ink);
  background-color: #fafbfe;
}

h1, h2, h3, h4, h5, .navbar-brand, .display-1, .display-2, .display-3, .display-4, .display-5 {
  font-family: var(--ac-font-head);
  letter-spacing: -.01em;
}

/* --- Rebrand Bootstrap utilities (no recompile needed) --- */
.text-primary { color: var(--ac-primary) !important; }
.bg-primary { background: var(--ac-gradient) !important; }
.btn-primary {
  background-color: var(--ac-primary);
  border-color: var(--ac-primary);
  box-shadow: 0 8px 20px rgba(var(--ac-primary-rgb), .25);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--ac-primary-dark) !important;
  border-color: var(--ac-primary-dark) !important;
}
.btn-outline-primary { color: var(--ac-primary); border-color: var(--ac-primary); }
.btn-outline-primary:hover { background-color: var(--ac-primary); border-color: var(--ac-primary); color: #fff; }
.btn-success { background-color: var(--ac-success); border-color: var(--ac-success); color: #fff; }
.btn-accent {
  background-color: var(--ac-accent); border-color: var(--ac-accent); color: #1f2937;
}
.btn-accent:hover { filter: brightness(.94); color: #1f2937; }

/* Badges de anúncio (Divulgação) — exibidos no corpo do card */
.badge.ac-badge-tipo {
  background-color: rgba(17, 24, 39, .85);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .25);
}
.badge.ac-badge-destaque {
  background-color: #fff;
  color: #1f2937;
  font-weight: 700;
  border: 1px solid #e2e8f0;
}
[data-theme="dark"] .badge.ac-badge-tipo {
  background-color: rgba(229, 231, 235, .14);
  border-color: rgba(255, 255, 255, .2);
}

/* Amarelo sólido com texto escuro (cor fixa, ignora branding do tenant) */
.btn-laranja {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #212529 !important;
  font-weight: 600;
}
.btn-laranja:hover,
.btn-laranja:focus,
.btn-laranja:active {
  background-color: #e0a800 !important;
  border-color: #d39e00 !important;
  color: #212529 !important;
}

/* ============================================================
   BOTÕES PADRONIZADOS — contraste acessível em ambos os temas
   ============================================================ */
/* Sólidos: garantir texto legível independente do tema */
.btn-primary,
.btn-success,
.btn-danger,
.btn-secondary,
.btn-dark { color: #fff !important; }

/* warning/info têm fundo claro: texto SEMPRE escuro */
.btn-warning,
.btn-info {
  color: #1f2937 !important;
}
.btn-warning:hover, .btn-warning:focus, .btn-warning:active,
.btn-info:hover, .btn-info:focus, .btn-info:active {
  color: #1f2937 !important;
}

/* Outline: ao passar o mouse OU receber foco, o texto fica branco SOBRE o
   preenchimento. É essencial garantir o background junto, senão no :focus
   (sem hover) o texto branco fica sobre fundo transparente e some. */
.btn-outline-success:hover, .btn-outline-success:focus,
.btn-outline-danger:hover, .btn-outline-danger:focus,
.btn-outline-secondary:hover, .btn-outline-secondary:focus,
.btn-outline-dark:hover, .btn-outline-dark:focus { color: #fff !important; }
.btn-outline-success:focus { background-color: var(--ac-success) !important; border-color: var(--ac-success) !important; }
.btn-outline-danger:focus { background-color: #dc3545 !important; border-color: #dc3545 !important; }
.btn-outline-secondary:focus { background-color: #6c757d !important; border-color: #6c757d !important; }
.btn-outline-dark:focus { background-color: #212529 !important; border-color: #212529 !important; }
.btn-outline-warning:hover, .btn-outline-warning:focus,
.btn-outline-info:hover, .btn-outline-info:focus { color: #1f2937 !important; }
.btn-outline-warning:focus { background-color: #ffc107 !important; border-color: #ffc107 !important; }
.btn-outline-info:focus { background-color: #0dcaf0 !important; border-color: #0dcaf0 !important; }
/* Remove o color: #fff forçado da .badge base do Bootstrap (herda a cor do contexto) */
.badge { color: inherit; }
.badge.text-bg-primary { background: var(--ac-primary) !important; color: #fff; }
.link-primary, a { color: var(--ac-primary); }
.navbar.bg-primary { box-shadow: 0 4px 18px rgba(var(--ac-primary-rgb), .25); }

.btn { border-radius: 10px; font-weight: 600; }
.btn-lg { border-radius: 12px; padding: .7rem 1.5rem; }
.card { border-radius: var(--ac-radius); border-color: var(--ac-border); }
.shadow-sm { box-shadow: var(--ac-shadow-sm) !important; }
.shadow { box-shadow: var(--ac-shadow) !important; }

/* --- Hero --- */
.ac-hero {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  background: var(--ac-gradient);
  box-shadow: var(--ac-shadow);
}
.ac-hero__media { position: absolute; inset: 0; z-index: 0; }
.ac-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.ac-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: var(--ac-hero-overlay);
}
.ac-hero__content { position: relative; z-index: 2; padding: clamp(2rem, 5vw, 4.5rem); }
.ac-hero h1, .ac-hero .display-4 { color: #fff; }
.ac-hero .lead { color: rgba(255,255,255,.92); }
.ac-hero--dependentes {
  --ac-hero-overlay: linear-gradient(120deg, rgba(109,40,217,.9) 0%, rgba(37,99,235,.82) 45%, rgba(219,39,119,.58) 100%);
}
.ac-cover--dependente {
  background: linear-gradient(135deg, rgba(109,40,217,.55) 0%, rgba(37,99,235,.65) 55%, rgba(219,39,119,.45) 100%) !important;
}
.ac-cert-card--dependente {
  border: 1px solid rgba(109, 40, 217, .22);
}
.ac-cert-card--dependente .ac-cover--dependente {
  border-bottom: 3px solid rgba(109, 40, 217, .45);
}
.ac-kpi--dependente {
  background: rgba(109, 40, 217, .08);
  border-color: rgba(109, 40, 217, .22);
}
.ac-kpi--dependente .ac-kpi__value { color: #6d28d9; }
[data-theme="dark"] .ac-kpi--dependente .ac-kpi__value { color: #a78bfa; }
.ac-modal-header--dependente {
  background: linear-gradient(90deg, rgba(109,40,217,.12), rgba(37,99,235,.08));
  border-bottom-color: rgba(109, 40, 217, .2);
}
.ac-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.18); color: #fff;
  padding: .35rem .85rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.ac-gradient-text {
  background: var(--ac-gradient); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}

/* --- Image helpers --- */
.ac-img-cover { width: 100%; height: 100%; object-fit: cover; }
.ac-rounded { border-radius: var(--ac-radius); overflow: hidden; }
.ac-shadow-float { box-shadow: var(--ac-shadow); }

/* --- Split (auth / cadastro) --- */
.ac-split { min-height: calc(100vh - 140px); }
.ac-split__media {
  position: relative; border-radius: 24px; overflow: hidden; min-height: 320px;
  background: var(--ac-gradient); color: #fff; box-shadow: var(--ac-shadow);
}
.ac-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.ac-split__media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(27,63,168,.85), rgba(20,184,166,.55));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem;
}
.ac-split__media-overlay--rich {
  justify-content: center;
  overflow-y: auto;
}
.ac-login-highlight {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
}
.ac-login-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.ac-login-list li {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: rgba(255, 255, 255, .95);
  font-weight: 500;
}
.ac-login-list li span { font-size: 1.15rem; line-height: 1; }

/* --- Separação de acesso por perfil (Empresa / Aluno) --- */
.ac-escolher-perfil { max-width: 960px; margin: 0 auto; }

.ac-profile-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--ac-radius);
  border: 1px solid var(--ac-border);
  background: var(--ac-surface);
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ac-profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ac-shadow);
  color: inherit;
}
.ac-profile-card--empresa { border-top: 4px solid var(--ac-primary); }
.ac-profile-card--aluno { border-top: 4px solid var(--ac-success, #198754); }
.ac-profile-card__icon { font-size: 2rem; margin-bottom: .75rem; }
.ac-profile-card__cta { align-self: flex-start; margin-top: auto; pointer-events: none; }

.ac-hero-profile-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .25rem;
  min-width: 220px;
  max-width: 280px;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.ac-hero-profile-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); color: inherit; }
.ac-hero-profile-btn__label { font-size: 1.15rem; font-weight: 700; }
.ac-hero-profile-btn__desc { font-size: .78rem; font-weight: 500; opacity: .88; line-height: 1.35; }
.ac-hero-profile-btn--empresa {
  background: #fff;
  color: var(--ac-primary) !important;
  border: 2px solid rgba(255,255,255,.9);
}
.ac-hero-profile-btn--aluno {
  background: #ffc107;
  color: #212529 !important;
  border: 2px solid rgba(255,255,255,.55);
}
.ac-hero-profile-btn--aluno:hover {
  background: #e0a800 !important;
  color: #212529 !important;
}
.ac-hero-profile-btn--aluno .ac-hero-profile-btn__desc { color: rgba(33, 37, 41, .82); }

.ac-hero__aside {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--ac-radius);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  backdrop-filter: blur(10px);
}
.ac-hero__aside-label {
  color: rgba(255, 255, 255, .88);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0;
}
.ac-hero__aside-ctas {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.ac-hero-profile-btn--aside {
  min-width: 0;
  max-width: none;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: .85rem;
  row-gap: .15rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
}
.ac-hero-profile-btn--aside .ac-hero-profile-btn__icon {
  grid-row: 1 / span 2;
  align-self: center;
}
.ac-hero-profile-btn__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.ac-split__media-overlay--empresa {
  background: linear-gradient(160deg, rgba(var(--ac-primary-rgb), .92) 0%, rgba(15, 23, 42, .88) 100%);
}
.ac-split__media-overlay--aluno {
  background: linear-gradient(160deg, rgba(25, 135, 84, .88) 0%, rgba(15, 23, 42, .88) 100%);
}
.ac-login-card--empresa { border-top: 4px solid var(--ac-primary); }
.ac-login-card--aluno { border-top: 4px solid #198754; }
.ac-login-footer p:last-of-type { margin-bottom: .5rem; }

/* --- Feature card with icon --- */
.ac-feature { border: 1px solid var(--ac-border); border-radius: var(--ac-radius); background: var(--ac-surface); height: 100%; transition: transform .2s, box-shadow .2s, border-color .2s; }
.ac-feature:hover { transform: translateY(-4px); box-shadow: var(--ac-shadow); }
.ac-feature--disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.ac-feature h3 { color: var(--ac-ink); }
.ac-feature__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; background: rgba(var(--ac-primary-rgb), .1); color: var(--ac-primary); margin-bottom: 1rem;
}

/* --- Home: novas seções (menores + quem pode utilizar) --- */
.ac-home-reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity .55s ease, transform .55s ease;
}
.ac-home-reveal.is-visible {
  opacity: 1;
  transform: none;
}
.ac-home-reveal--delay-1 { transition-delay: .08s; }
.ac-home-reveal--delay-2 { transition-delay: .16s; }
.ac-home-reveal--delay-3 { transition-delay: .24s; }

/* Home: blocos empilhados com espaçamento uniforme */
.ac-home-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.ac-hero + .ac-home-stack {
  margin-top: 0;
}
.ac-home-block {
  padding: 0;
  margin: 0;
}

/* Jornada */
.ac-home-journey__inner {
  border: 1px solid var(--ac-border);
  border-radius: calc(var(--ac-radius) + 4px);
  background: linear-gradient(180deg, rgba(var(--ac-primary-rgb), .04) 0%, var(--ac-surface) 100%);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.ac-home-journey__inner .ac-partners__grid {
  margin-bottom: 0 !important;
}
.ac-home-journey__inner--celebrate {
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
}
.ac-home-journey__inner--celebrate .ac-celebrate {
  border-radius: calc(var(--ac-radius) + 4px);
  box-shadow: none;
}
.ac-journey-steps { position: relative; }
@media (min-width: 768px) {
  .ac-journey-steps::before {
    content: "";
    position: absolute;
    top: 3.25rem;
    left: 16.666%;
    right: 16.666%;
    height: 2px;
    background: linear-gradient(90deg, rgba(var(--ac-primary-rgb), .15), rgba(var(--ac-primary-rgb), .45), rgba(var(--ac-primary-rgb), .15));
    z-index: 0;
  }
}
.ac-journey-step { position: relative; z-index: 1; }
.ac-journey-step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.ac-journey-step__num {
  font-family: var(--ac-font-head);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--ac-primary);
  background: rgba(var(--ac-primary-rgb), .12);
  padding: .25rem .55rem;
  border-radius: 999px;
}
.ac-feature--journey {
  border-color: rgba(var(--ac-primary-rgb), .12);
}
.ac-feature--journey:hover {
  border-color: rgba(var(--ac-primary-rgb), .35);
}
.ac-journey-step__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.ac-journey-step__bullets li {
  font-size: .85rem;
  color: var(--ac-muted);
  padding-left: 1.1rem;
  position: relative;
}
.ac-journey-step__bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--ac-primary);
  font-weight: 700;
}

.ac-home-minors__photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.ac-home-copy {
  border-left: 3px solid rgba(var(--ac-primary-rgb), .35);
  padding-left: 1rem;
}

/* Quem pode utilizar — grid de cards */
.ac-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.ac-audience-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--ac-border);
  border-radius: calc(var(--ac-radius) + 2px);
  background: var(--ac-surface);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ac-audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ac-shadow);
  border-color: rgba(var(--ac-primary-rgb), .28);
}
.ac-audience-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 88px;
  overflow: hidden;
}
.ac-audience-card__visual::before,
.ac-audience-card__visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ac-audience-card__visual::before {
  width: 120px;
  height: 120px;
  top: -40px;
  right: -24px;
  background: rgba(255, 255, 255, .18);
}
.ac-audience-card__visual::after {
  width: 72px;
  height: 72px;
  bottom: -20px;
  left: -12px;
  background: rgba(255, 255, 255, .12);
}
.ac-audience-card__emoji {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .12));
}
.ac-audience-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .5rem;
  padding: 1rem 1.1rem 1.15rem;
}
.ac-audience-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ac-ink);
  line-height: 1.3;
}
.ac-audience-card__desc {
  margin: 0;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--ac-muted);
}

.ac-audience-card__visual--educacao { background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%); }
.ac-audience-card__visual--esporte { background: linear-gradient(135deg, #059669 0%, #34d399 100%); }
.ac-audience-card__visual--empresas { background: linear-gradient(135deg, #475569 0%, #64748b 100%); }
.ac-audience-card__visual--publico { background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%); }
.ac-audience-card__visual--igrejas { background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%); }
.ac-audience-card__visual--organizacoes { background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%); }
.ac-audience-card__visual--jovens { background: linear-gradient(135deg, #db2777 0%, #f472b6 100%); }
.ac-audience-card__visual--social { background: linear-gradient(135deg, #dc2626 0%, #f87171 100%); }
.ac-audience-card__visual--tecnologia { background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%); }
.ac-audience-card__visual--cultura { background: linear-gradient(135deg, #c026d3 0%, #e879f9 100%); }
.ac-audience-card__visual--saude { background: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%); }
.ac-audience-card__visual--sustentabilidade { background: linear-gradient(135deg, #16a34a 0%, #4ade80 100%); }
.ac-audience-card__visual--empreendedorismo { background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%); }
.ac-audience-card__visual--premiacoes { background: linear-gradient(135deg, #ca8a04 0%, #facc15 100%); }
.ac-audience-card__visual--institucional { background: linear-gradient(135deg, #334155 0%, #64748b 100%); }

@media (max-width: 991.98px) {
  .ac-audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .ac-audience-grid { grid-template-columns: 1fr; }
}

[data-theme="dark"] .ac-audience-card {
  background: rgba(0, 0, 0, .22);
  border-color: rgba(var(--ac-primary-rgb), .22);
}
[data-theme="dark"] .ac-audience-card__title { color: #f1f3f5; }
[data-theme="dark"] .ac-audience-card__desc { color: #c4ccd4; }

[data-theme="dark"] .ac-home-journey__inner {
  background: linear-gradient(180deg, rgba(var(--ac-primary-rgb), .12) 0%, var(--ac-surface) 100%);
}

[data-theme="dark"] .ac-home-copy {
  border-left-color: rgba(var(--ac-primary-rgb), .5);
}
@media (max-width: 991.98px) {
  .ac-home-minors__photo { max-height: 320px; }
  .ac-hero__aside { margin-top: .5rem; }
}

/* --- KPI tiles --- */
.ac-kpi { border-radius: var(--ac-radius); border: 1px solid var(--ac-border); background: var(--ac-surface); padding: 1.25rem; height: 100%; }
.ac-kpi__value { font-family: var(--ac-font-head); font-size: 2rem; font-weight: 800; line-height: 1; color: var(--ac-ink); }
.ac-kpi__label { color: var(--ac-muted); font-size: .85rem; margin-top: .35rem; }
.ac-kpi__icon { font-size: 1.5rem; }
.ac-kpi--primary { background: rgba(var(--ac-primary-rgb), .08); border-color: rgba(var(--ac-primary-rgb), .18); }
.ac-kpi--accent { background: rgba(var(--ac-accent-rgb), .1); border-color: rgba(var(--ac-accent-rgb), .25); }

/* --- Cards de dependentes (inscrição) --- */
.ac-dep-card { border-width: 2px; border-style: solid; overflow: hidden; }
.ac-dep-card--primary { border-color: rgba(var(--ac-primary-rgb), .45); background: rgba(var(--ac-primary-rgb), .06); }
.ac-dep-card--success { border-color: rgba(22, 163, 74, .45); background: rgba(22, 163, 74, .06); }
.ac-dep-card--warning { border-color: rgba(234, 179, 8, .5); background: rgba(234, 179, 8, .08); }
.ac-dep-card--muted { border-color: var(--ac-border); background: var(--ac-surface); }
.ac-dep-card__selo {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: .2rem .55rem; border-radius: 999px;
  background: rgba(var(--ac-primary-rgb), .12); color: var(--ac-primary);
}

/* --- Achievements / badges --- */
.ac-achievement {
  display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem;
  border-radius: 14px; border: 1px solid var(--ac-border); background: var(--ac-surface);
}
.ac-achievement__emoji {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.5rem; background: var(--ac-gradient-warm); flex: 0 0 auto;
}
.ac-achievement--locked { opacity: .5; filter: grayscale(.6); }

/* --- Motivational quote --- */
.ac-quote {
  border-left: 4px solid var(--ac-accent); background: rgba(var(--ac-accent-rgb), .08);
  border-radius: 0 14px 14px 0; padding: 1rem 1.25rem; font-style: italic; color: var(--ac-ink);
}

/* --- Success / celebration banner --- */
.ac-celebrate {
  border-radius: 24px; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(135deg, #16a34a 0%, #14b8a6 60%, #2455d6 100%);
  padding: clamp(2rem, 5vw, 3.5rem); box-shadow: var(--ac-shadow);
}
.ac-celebrate h1, .ac-celebrate h2 { color: #fff; }

/* --- Parceiros / prova social --- */
.ac-partners__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.ac-partners__eyebrow {
  display: inline-block; font-size: 2rem; font-weight: 700;
  line-height: 1.2; color: var(--ac-primary);
}
[data-theme="dark"] .ac-partners__eyebrow { color: #6ea0ff; }
.ac-partners__grid--clients {
  grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
  justify-content: center; max-width: 960px; margin-left: auto; margin-right: auto;
}
.ac-partners__grid--clients .ac-partner-logo { min-height: 120px; background: #0a0a0a; }
.ac-partners__grid--clients .ac-partner-logo img { max-height: 80px; filter: none; opacity: 1; }
.ac-partners__grid--clients a.ac-partner-logo:hover img { filter: none; opacity: 1; }
.ac-partner-logo {
  display: grid; place-items: center; padding: 1rem; min-height: 110px;
  border: 1px solid var(--ac-border); border-radius: var(--ac-radius); background: var(--ac-surface);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ac-partner-logo img {
  max-width: 100%; max-height: 70px; object-fit: contain;
  filter: grayscale(100%); opacity: .75; transition: filter .2s, opacity .2s;
}
a.ac-partner-logo:hover { transform: translateY(-4px); box-shadow: var(--ac-shadow); border-color: var(--ac-primary); }
a.ac-partner-logo:hover img { filter: grayscale(0); opacity: 1; }
@media (max-width: 991.98px) { .ac-partners__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .ac-partners__grid { grid-template-columns: repeat(2, 1fr); } }

.ac-stat { border: 1px solid var(--ac-border); border-radius: var(--ac-radius); background: var(--ac-surface); }
.ac-stat__value { font-family: var(--ac-font-head); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1; color: var(--ac-primary); }
.ac-stat__label { color: #5b6470; font-weight: 600; margin-top: .35rem; }

[data-theme="dark"] .ac-partner-logo,
[data-theme="dark"] .ac-stat { background-color: #2b2f35; border-color: #3d4248; }
[data-theme="dark"] .ac-partner-logo img { opacity: .85; }
[data-theme="dark"] .ac-stat__value { color: #6ea0ff; }
[data-theme="dark"] .ac-stat__label { color: #c4ccd4; }

/* --- Avatar --- */
.ac-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--ac-shadow-sm); }
.ac-avatar--sm { width: 36px; height: 36px; border-width: 2px; }
.ac-avatar--lg { width: 140px; height: 140px; }
.ac-avatar--hero { width: 72px; height: 72px; border: 3px solid rgba(255, 255, 255, .7); flex-shrink: 0; }
.ac-avatar--iniciais {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #64748b;
  font-weight: 700;
  line-height: 1;
}
.ac-avatar--lg.ac-avatar--iniciais { font-size: 2.75rem; }
.ac-avatar--hero.ac-avatar--iniciais { font-size: 1.75rem; background: rgba(255, 255, 255, .22); color: #fff; border: 3px solid rgba(255, 255, 255, .7); }
.ac-avatar--sm.ac-avatar--iniciais { font-size: .85rem; }

/* --- Course cover --- */
.ac-cover { height: 170px; background: var(--ac-gradient); position: relative; }
.ac-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- Dark theme tokens --- */
[data-theme="dark"] {
  --ac-ink: #e9ecef;
  --ac-muted: #adb5bd;
  --ac-surface: #25282c;
  --ac-soft: #2d3136;
  --ac-border: #3d4248;
  --ac-shadow: 0 12px 34px rgba(0, 0, 0, .45);
  --ac-shadow-sm: 0 6px 18px rgba(0, 0, 0, .35);
}
[data-theme="dark"] body { background-color: #1a1d21; }
[data-theme="dark"] .ac-feature,
[data-theme="dark"] .ac-kpi,
[data-theme="dark"] .ac-achievement { background-color: #2b2f35; border-color: #3d4248; }
[data-theme="dark"] .ac-kpi__value { color: var(--ac-ink); }

/* Acesso rápido / feature cards no tema escuro: melhor legibilidade */
[data-theme="dark"] .ac-feature h3 { color: #f1f3f5; }
[data-theme="dark"] .ac-feature .text-muted { color: #c4ccd4 !important; }
[data-theme="dark"] .ac-feature__icon {
  background: rgba(var(--ac-primary-rgb), .22);
  color: #9bc0ff;
}
[data-theme="dark"] .ac-feature:hover {
  border-color: var(--ac-primary);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .55);
}
[data-theme="dark"] .ac-kpi__label { color: #c4ccd4; }

@media (max-width: 575.98px) {
  .ac-hero__content { padding: 1.75rem; }
}

/* --- Logo em destaque no hero da home --- */
.ac-hero__logo {
  display: block;
  height: 110px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .25));
}
@media (max-width: 991.98px) {
  .ac-hero__logo { height: 88px; }
}
@media (max-width: 575.98px) {
  .ac-hero__logo { height: 68px; }
}

/* --- Card de superfície adaptável (claro/escuro) --- */
.ac-soft-card {
  background-color: #f5f7fb;
  color: #1a1d21;
}
[data-theme="dark"] .ac-soft-card {
  background-color: var(--ac-soft, #2d3136);
  color: var(--ac-ink, #e8eaed);
}

/* --- Cards de contato --- */
.ac-contact-card {
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  border: 1px solid transparent !important;
  background-color: var(--ac-surface, #fff);
}
.ac-contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ac-shadow, 0 12px 34px rgba(16, 24, 40, .12));
}
.ac-contact-card--active {
  border-color: var(--bs-primary, #2455d6) !important;
  box-shadow: 0 0 0 .2rem rgba(36, 85, 214, .2);
}

/* Cards de oportunidade (Agenda de Capacitação e Eventos) */
.ac-op-card {
  transition: transform .15s ease, box-shadow .15s ease;
  overflow: hidden;
}
.ac-op-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ac-shadow, 0 12px 34px rgba(16, 24, 40, .14));
}

/* Opções de divulgação (formulário de anúncio) */
.ac-divulg-option {
  background-color: #f8fafc;
  border-color: var(--ac-border, #e6ebf3) !important;
}
.ac-divulg-option--premium {
  background: linear-gradient(135deg, rgba(245, 158, 11, .08), rgba(251, 191, 36, .04));
  border-color: rgba(245, 158, 11, .35) !important;
}
.ac-divulg-preview {
  background-color: #fff;
  border: 1px dashed var(--ac-border, #e6ebf3);
}
.ac-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--ac-primary, #2563EB);
  border-radius: 999px;
  cursor: help;
  margin-left: .25rem;
  line-height: 1;
}
[data-theme="dark"] .ac-divulg-option {
  background-color: #1b2533;
  border-color: #374151 !important;
}
[data-theme="dark"] .ac-divulg-option--premium {
  background: linear-gradient(135deg, rgba(245, 158, 11, .14), rgba(251, 191, 36, .05));
  border-color: rgba(251, 191, 36, .4) !important;
}
[data-theme="dark"] .ac-divulg-preview {
  background-color: #111827;
  border-color: #374151;
}

/* ==========================================================================
   DESIGN SYSTEM — Padrão de cores das ações (Tema Claro e Escuro)
   Azul = ação principal · Verde = sucesso/certificação · Laranja = atenção
   Vermelho = perigo · Cinza = secundário. Este bloco é o mais ao final do
   arquivo, portanto tem prioridade sobre as regras de botão acima.
   ========================================================================== */

/* ---- Botão Primário (Azul) — Salvar, Entrar, Confirmar, Criar ---- */
.btn-primary {
  background-color: var(--ac-primary);
  border-color: var(--ac-primary);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(var(--ac-primary-rgb), .25);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--ac-primary-dark) !important;
  border-color: var(--ac-primary-dark) !important;
  color: #fff !important;
}
.btn-primary:active,
.btn-primary.active {
  background-color: var(--ac-primary-active) !important;
  border-color: var(--ac-primary-active) !important;
  color: #fff !important;
}

/* ---- Botão Sucesso (Verde) — Aprovar, Publicar, Emitir/Liberar ---- */
.btn-success {
  background-color: var(--ac-success);
  border-color: var(--ac-success);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(var(--ac-success-rgb), .22);
}
.btn-success:hover,
.btn-success:focus {
  background-color: var(--ac-success-hover) !important;
  border-color: var(--ac-success-hover) !important;
  color: #fff !important;
}
.btn-success:active,
.btn-success.active {
  background-color: var(--ac-success-active) !important;
  border-color: var(--ac-success-active) !important;
  color: #fff !important;
}

/* ---- Botão Perigo (Vermelho) — Excluir, Bloquear, Revogar ---- */
.btn-danger {
  background-color: var(--ac-danger);
  border-color: var(--ac-danger);
  color: #fff !important;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
  background-color: var(--ac-danger-hover) !important;
  border-color: var(--ac-danger-hover) !important;
  color: #fff !important;
}

/* ---- Botão Atenção (Laranja) — Reprocessar, Reabrir, Solicitar Revisão ---- */
.btn-warning {
  background-color: var(--ac-accent);
  border-color: var(--ac-accent);
  color: #fff !important;
}
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  background-color: var(--ac-accent-hover) !important;
  border-color: var(--ac-accent-hover) !important;
  color: #fff !important;
}

/* ---- Botão Informação (Ciano) ---- */
.btn-info {
  background-color: var(--ac-info);
  border-color: var(--ac-info);
  color: #fff !important;
}
.btn-info:hover,
.btn-info:focus,
.btn-info:active {
  background-color: var(--ac-info-hover) !important;
  border-color: var(--ac-info-hover) !important;
  color: #fff !important;
}

/* ---- Botão Secundário (Cinza) — Voltar, Cancelar, Fechar ---- */
.btn-outline-secondary {
  color: var(--ac-muted);
  border-color: #cbd5e1;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  background-color: var(--ac-muted) !important;
  border-color: var(--ac-muted) !important;
  color: #fff !important;
}

/* ---- Outline Azul (alternativa de secundário com identidade) ---- */
.btn-outline-primary { color: var(--ac-primary); border-color: var(--ac-primary); }
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--ac-primary) !important;
  border-color: var(--ac-primary) !important;
  color: #fff !important;
}

/* ---- Botão exclusivo de Certificado (gradiente verde — ação central) ---- */
.btn-certificado {
  background: var(--ac-gradient-cert);
  border: none;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(var(--ac-success-rgb), .35);
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-certificado:hover,
.btn-certificado:focus {
  color: #fff !important;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(var(--ac-success-rgb), .45);
}
.btn-certificado:active { filter: brightness(.96); transform: translateY(0); }

/* ==========================================================================
   TEMA ESCURO — fundo #111827, cards #1F2937, botões mais luminosos
   ========================================================================== */
[data-theme="dark"] body {
  background-color: #111827;
  color: #e5e7eb;
}
[data-theme="dark"] .card {
  background-color: #1F2937;
  border-color: #374151;
  color: #e5e7eb;
}
[data-theme="dark"] .card-header,
[data-theme="dark"] .card-footer {
  background-color: #1b2533;
  border-color: #374151;
}
[data-theme="dark"] .card-header.bg-white {
  background-color: #1b2533 !important;
  color: #e5e7eb;
}

/* Sólidos no escuro: tons mais claros para destacar do fundo escuro */
[data-theme="dark"] .btn-primary {
  background-color: #3B82F6;
  border-color: #3B82F6;
  color: #fff !important;
}
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-primary:focus {
  background-color: #2563EB !important;
  border-color: #2563EB !important;
}
[data-theme="dark"] .btn-success {
  background-color: #22C55E;
  border-color: #22C55E;
  color: #06210f !important;
}
[data-theme="dark"] .btn-success:hover,
[data-theme="dark"] .btn-success:focus {
  background-color: #16A34A !important;
  border-color: #16A34A !important;
  color: #fff !important;
}
[data-theme="dark"] .btn-danger {
  background-color: #EF4444;
  border-color: #EF4444;
  color: #fff !important;
}
[data-theme="dark"] .btn-danger:hover,
[data-theme="dark"] .btn-danger:focus {
  background-color: #DC2626 !important;
  border-color: #DC2626 !important;
}
[data-theme="dark"] .btn-warning {
  background-color: #FBBF24;
  border-color: #FBBF24;
  color: #1f2937 !important;
}
[data-theme="dark"] .btn-warning:hover,
[data-theme="dark"] .btn-warning:focus {
  background-color: #F59E0B !important;
  border-color: #F59E0B !important;
  color: #1f2937 !important;
}
[data-theme="dark"] .btn-info {
  background-color: #22D3EE;
  border-color: #22D3EE;
  color: #08313b !important;
}
[data-theme="dark"] .btn-info:hover,
[data-theme="dark"] .btn-info:focus {
  background-color: #0891B2 !important;
  border-color: #0891B2 !important;
  color: #fff !important;
}
[data-theme="dark"] .btn-outline-primary { color: #93B4FF; border-color: #3B82F6; }
[data-theme="dark"] .btn-outline-primary:hover,
[data-theme="dark"] .btn-outline-primary:focus {
  background-color: #3B82F6 !important; border-color: #3B82F6 !important; color: #0b1220 !important;
}
[data-theme="dark"] .btn-outline-secondary { color: #cbd5e1; border-color: #4b5563; }
[data-theme="dark"] .btn-outline-secondary:hover,
[data-theme="dark"] .btn-outline-secondary:focus {
  background-color: #4b5563 !important; border-color: #4b5563 !important; color: #fff !important;
}
[data-theme="dark"] .btn-certificado {
  background: linear-gradient(90deg, #16A34A 0%, #22C55E 100%);
  color: #fff !important;
}

/* ==========================================================================
   AJUDA CONTEXTUAL — botão fixo, drawer, busca e tour guiado
   ========================================================================== */

/* Ícone inline ao lado do título da página */
.ac-ajuda-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--ac-primary-rgb, 37, 99, 235), .35);
  background: rgba(var(--ac-primary-rgb, 37, 99, 235), .08);
  color: var(--ac-primary, #2563EB);
  font-size: 1rem;
  line-height: 1;
  vertical-align: middle;
  transition: background .15s ease, transform .15s ease;
}
.ac-ajuda-icone:hover {
  background: rgba(var(--ac-primary-rgb, 37, 99, 235), .18);
  transform: translateY(-1px);
}

/* Botão flutuante fixo (presente em todas as telas com ajuda) */
.ac-ajuda-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1045;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: none;
  background: var(--ac-gradient, linear-gradient(135deg, #2563EB, #1d4ed8));
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.ac-ajuda-fab:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .32);
}
@media (max-width: 575.98px) {
  .ac-ajuda-fab { right: .85rem; bottom: .85rem; width: 2.9rem; height: 2.9rem; font-size: 1.2rem; }
}

/* Drawer */
.ac-ajuda-drawer { width: 420px; max-width: 92vw; }
.ac-ajuda-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .68rem;
  font-weight: 700;
  color: var(--ac-primary, #2563EB);
}
.ac-ajuda-objetivo { font-size: .95rem; }
.ac-ajuda-secao { margin-bottom: 1.25rem; }
.ac-ajuda-secao__titulo {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bs-secondary-color, #6b7280);
  margin-bottom: .6rem;
}
.ac-ajuda-lista { margin: 0; }
.ac-ajuda-item { margin-bottom: .55rem; }
.ac-ajuda-lista .ac-ajuda-item,
.ac-ajuda-dica {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
}
.ac-ajuda-item__icone { flex: 0 0 auto; width: 1.4rem; text-align: center; }
.ac-ajuda-dica {
  background: rgba(var(--ac-accent-rgb, 245, 158, 11), .12);
  border: 1px solid rgba(var(--ac-accent-rgb, 245, 158, 11), .25);
  border-radius: .6rem;
  padding: .6rem .75rem;
  font-size: .9rem;
}

[data-theme="dark"] .ac-ajuda-drawer { background-color: #1F2937; color: #e5e7eb; }
[data-theme="dark"] .ac-ajuda-drawer .offcanvas-header { border-color: #374151 !important; }
[data-theme="dark"] .ac-ajuda-drawer .accordion-item { background-color: #1F2937; border-color: #374151; }
[data-theme="dark"] .ac-ajuda-drawer .accordion-button { background-color: #1b2533; color: #e5e7eb; }
[data-theme="dark"] .ac-ajuda-drawer .accordion-button:not(.collapsed) { background-color: #243149; color: #fff; }

/* Tour guiado */
.ac-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(15, 23, 42, .55);
}
.ac-tour-alvo {
  position: relative;
  z-index: 1095;
  outline: 3px solid var(--ac-primary, #2563EB);
  outline-offset: 4px;
  border-radius: .5rem;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, .55);
  transition: outline-color .15s ease;
}
.ac-tour-pop {
  position: absolute;
  z-index: 1100;
  width: 320px;
  max-width: 90vw;
  background: #fff;
  color: #111827;
  border-radius: .75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  padding: 1rem 1.1rem;
}
[data-theme="dark"] .ac-tour-pop { background: #1F2937; color: #e5e7eb; }
.ac-tour-pop__passo {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ac-primary, #2563EB);
}
.ac-tour-pop__titulo { font-weight: 700; margin: .15rem 0 .35rem; }
.ac-tour-pop__texto { font-size: .92rem; margin-bottom: .85rem; }
.ac-tour-pop__acoes { display: flex; justify-content: flex-end; gap: .4rem; }

.ac-inscricao-page {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 767.98px) {
  .ac-inscricao-page .card-body {
    padding-bottom: 1.25rem;
  }
}

.ac-inscricao-card__tipo {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
}

.ac-inscricao-card__tipo-icone {
  font-size: 1.1rem;
  line-height: 1;
}

.ac-inscricao-card__titulo {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.375;
  min-height: calc(1.375em * 2);
  margin-bottom: .5rem;
}

.ac-table-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .25rem;
  flex-wrap: nowrap;
}

.ac-table-icon-btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ac-table-icon-btn svg {
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

.ac-icone-familia {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

.ac-icone-familia svg {
  width: 0.95rem;
  height: 0.95rem;
  pointer-events: none;
}

.ac-participante-nome {
  cursor: help;
}

/* --- Permissões (Pessoas / usuários) --- */
.ac-perm-panel {
  background: var(--ac-soft, #f8f9fb) !important;
}

.ac-perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}

.ac-perm-card {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 0;
  padding: .85rem 1rem;
  border: 2px solid var(--ac-border, #dee2e6);
  border-radius: var(--ac-radius, .5rem);
  background: var(--ac-surface, #fff);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.ac-perm-card:hover {
  border-color: rgba(var(--ac-primary-rgb, 36, 85, 214), .45);
  box-shadow: var(--ac-shadow-sm, 0 2px 8px rgba(0, 0, 0, .06));
}

.ac-perm-card.is-active {
  border-color: var(--ac-primary, #2455d6);
  background: rgba(var(--ac-primary-rgb, 36, 85, 214), .06);
  box-shadow: 0 0 0 1px rgba(var(--ac-primary-rgb, 36, 85, 214), .12);
}

.ac-perm-card.is-dimmed {
  opacity: .55;
}

.ac-perm-card.is-locked,
.ac-perm-card.is-readonly {
  opacity: .55;
  cursor: not-allowed;
}

.ac-perm-card.is-locked .ac-perm-lock {
  display: inline;
}

.ac-perm-lock {
  display: none;
}

.ac-perm-card.is-readonly input[type="checkbox"] {
  pointer-events: none;
}

.ac-perm-card input[type="checkbox"]:disabled {
  pointer-events: none;
}

.ac-perm-card input[type="checkbox"] {
  flex-shrink: 0;
  margin: .15rem 0 0;
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}

.ac-perm-card__body {
  flex: 1;
  min-width: 0;
}

.ac-perm-card__icon {
  font-size: 1.15rem;
  line-height: 1;
  margin-bottom: .2rem;
}

.ac-perm-card__titulo {
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.3;
}

.ac-perm-card__desc {
  font-size: .78rem;
  color: var(--ac-muted, #6c757d);
  margin-top: .2rem;
  line-height: 1.35;
}

.ac-perm-preset.is-active {
  background: var(--ac-primary, #2455d6);
  border-color: var(--ac-primary, #2455d6);
  color: #fff;
}

[data-theme="dark"] .ac-perm-panel { background: #2d3136 !important; }
[data-theme="dark"] .ac-perm-card { background: #25282c; border-color: #3d4248; }
[data-theme="dark"] .ac-perm-card.is-active { background: rgba(110, 160, 255, .12); border-color: #6ea0ff; }
[data-theme="dark"] .ac-perm-card__desc { color: #adb5bd; }

/* --- Tipo de acesso / unidades / perfil (Pessoas) --- */
.ac-acesso-panel {
  border: 1px solid var(--ac-border, #dee2e6);
  border-radius: var(--ac-radius, .5rem);
  padding: 1rem;
  background: var(--ac-soft, #f8f9fb);
}

.ac-acesso-tipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .75rem;
}

.ac-acesso-tipo-card,
.ac-unid-card,
.ac-perfil-card {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 0;
  padding: .9rem 1rem;
  border: 2px solid var(--ac-border, #dee2e6);
  border-radius: var(--ac-radius, .5rem);
  background: var(--ac-surface, #fff);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.ac-acesso-tipo-card:hover,
.ac-unid-card:hover,
.ac-perfil-card:hover {
  border-color: rgba(var(--ac-primary-rgb, 36, 85, 214), .45);
  box-shadow: var(--ac-shadow-sm, 0 2px 8px rgba(0, 0, 0, .06));
}

.ac-acesso-tipo-card.is-active,
.ac-unid-card.is-active,
.ac-perfil-card.is-active {
  border-color: var(--ac-primary, #2455d6);
  background: rgba(var(--ac-primary-rgb, 36, 85, 214), .06);
  box-shadow: 0 0 0 1px rgba(var(--ac-primary-rgb, 36, 85, 214), .12);
}

.ac-acesso-tipo-card input,
.ac-unid-card input,
.ac-perfil-card input {
  flex-shrink: 0;
  margin: .2rem 0 0;
  cursor: pointer;
}

.ac-acesso-tipo-card__body,
.ac-unid-card__body,
.ac-perfil-card__body {
  flex: 1;
  min-width: 0;
}

.ac-acesso-tipo-card__icon,
.ac-perfil-card__icon {
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: .25rem;
}

.ac-acesso-tipo-card__titulo,
.ac-unid-card__titulo,
.ac-perfil-card__titulo {
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
}

.ac-acesso-tipo-card__desc,
.ac-perfil-card__desc {
  font-size: .8rem;
  color: var(--ac-muted, #6c757d);
  margin-top: .25rem;
  line-height: 1.4;
}

.ac-unid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .5rem;
  max-height: 220px;
  overflow-y: auto;
  padding: .15rem;
}

.ac-unid-card {
  padding: .65rem .75rem;
}

.ac-unid-card__titulo {
  font-weight: 600;
  font-size: .88rem;
}

.ac-perfil-grid {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.ac-perfil-card__resumo {
  font-size: .75rem;
  color: var(--ac-muted, #6c757d);
  margin-top: .15rem;
}

.ac-escopo-unidade {
  border: 1px solid var(--ac-border, #dee2e6);
  border-radius: var(--ac-radius, .5rem);
  padding: 1rem 1.15rem;
  background: var(--ac-surface, #fff);
}

.ac-conta-panel {
  border: 1px solid var(--ac-border, #dee2e6);
  border-radius: var(--ac-radius, .5rem);
  padding: 1rem 1.25rem;
  background: var(--ac-soft, #f8f9fb);
}

.ac-conta-status,
.ac-conta-login {
  border: 1px solid var(--ac-border, #dee2e6);
  border-radius: var(--ac-radius, .5rem);
  padding: 1rem 1.15rem;
  background: var(--ac-surface, #fff);
}

.ac-conta-login {
  transition: border-color .15s ease, background-color .15s ease, opacity .15s ease;
}

.ac-conta-login.is-login-off {
  opacity: .85;
}

.ac-conta-senha {
  border-top: 1px dashed var(--ac-border, #dee2e6);
}

.ac-conta-panel .form-switch .form-check-input {
  width: 2.5em;
  height: 1.25em;
  cursor: pointer;
}

.ac-conta-panel .form-switch .form-check-label {
  cursor: pointer;
  padding-top: .1rem;
}

[data-theme="dark"] .ac-conta-panel,
[data-theme="dark"] .ac-conta-status,
[data-theme="dark"] .ac-conta-login {
  background: #2d3136;
  border-color: #3d4248;
}

[data-theme="dark"] .ac-escopo-unidade {
  background: #25282c;
  border-color: #3d4248;
}

[data-theme="dark"] .ac-acesso-panel { background: #2d3136; border-color: #3d4248; }
[data-theme="dark"] .ac-acesso-tipo-card,
[data-theme="dark"] .ac-unid-card,
[data-theme="dark"] .ac-perfil-card { background: #25282c; border-color: #3d4248; }
[data-theme="dark"] .ac-acesso-tipo-card.is-active,
[data-theme="dark"] .ac-unid-card.is-active,
[data-theme="dark"] .ac-perfil-card.is-active { background: rgba(110, 160, 255, .12); border-color: #6ea0ff; }
[data-theme="dark"] .ac-acesso-tipo-card__desc,
[data-theme="dark"] .ac-perfil-card__desc,
[data-theme="dark"] .ac-perfil-card__resumo { color: #adb5bd; }

/* ---- Planos / pricing (empresa) ---- */
.ac-plano-atual__card {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(37, 99, 235, .08);
  overflow: hidden;
}

.ac-plano-atual__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 1.35rem 1.5rem 1.15rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

.ac-plano-atual__eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: .35rem;
}

.ac-plano-atual__nome {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 .55rem;
  line-height: 1.15;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}

.ac-plano-atual__status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .28rem .7rem;
  line-height: 1.2;
}

.ac-plano-atual__status::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.ac-plano-atual__status--ativo {
  color: #166534;
  background: #dcfce7;
}

.ac-plano-atual__status--ativo::before { background: #22c55e; }

.ac-plano-atual__status--avencer {
  color: #92400e;
  background: #fef3c7;
}

.ac-plano-atual__status--avencer::before { background: #f59e0b; }

.ac-plano-atual__status--vencido {
  color: #991b1b;
  background: #fee2e2;
}

.ac-plano-atual__status--vencido::before { background: #ef4444; }

.ac-plano-atual__status--inativo {
  color: #475569;
  background: #f1f5f9;
}

.ac-plano-atual__status--inativo::before { background: #94a3b8; }

.ac-plano-atual__header-actions {
  flex-shrink: 0;
  align-self: center;
}

.ac-plano-atual__cta {
  font-weight: 700;
  border-radius: 10px;
  padding: .65rem 1.15rem;
  white-space: nowrap;
}

.ac-plano-atual__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fafbfc;
}

.ac-plano-atual__meta-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.ac-plano-atual__meta-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
}

.ac-plano-atual__meta-value {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.ac-plano-atual__uso {
  padding: 1.15rem 1.5rem 1.35rem;
}

.ac-plano-atual__uso-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
  margin: 0 0 .85rem;
}

.ac-plano-atual__uso-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 1.5rem;
}

@media (max-width: 767.98px) {
  .ac-plano-atual__uso-grid,
  .ac-plano-atual__meta {
    grid-template-columns: 1fr;
  }

  .ac-plano-atual__header-actions {
    width: 100%;
  }

  .ac-plano-atual__cta {
    width: 100%;
    text-align: center;
  }
}

.ac-plano-atual__uso-item {
  min-width: 0;
}

.ac-plano-atual__uso-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .4rem;
}

.ac-plano-atual__uso-label {
  font-size: .875rem;
  color: #475569;
  line-height: 1.3;
}

.ac-plano-atual__uso-value {
  font-size: .875rem;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.ac-usage-bar {
  height: .35rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.ac-usage-bar__fill {
  height: 100%;
  border-radius: inherit;
  transition: width .3s ease;
}

.ac-usage-bar--ok .ac-usage-bar__fill { background: #22c55e; }
.ac-usage-bar--warning .ac-usage-bar__fill { background: #f59e0b; }
.ac-usage-bar--danger .ac-usage-bar__fill { background: #ef4444; }

.ac-usage-bar--ilimitado {
  background: #ecfdf5;
}

.ac-usage-bar__fill--ilimitado {
  width: 100%;
  background: linear-gradient(90deg, #6ee7b7 0%, #34d399 50%, #6ee7b7 100%);
  opacity: .55;
}

.ac-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 991.98px) {
  .ac-pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }
}

.ac-pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.ac-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .1);
}

.ac-pricing-card--recomendado {
  border: 2px solid #2563eb;
  box-shadow: 0 12px 32px rgba(37, 99, 235, .18);
}

.ac-pricing-card--atual {
  border-color: #16a34a;
}

.ac-pricing-card__top {
  flex: 0 0 2.35rem;
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
}

.ac-pricing-card__top--ribbon {
  justify-content: center;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  padding: 0 .75rem;
}

.ac-pricing-card__ribbon {
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
  line-height: 1.2;
  text-align: center;
  width: 100%;
}

.ac-pricing-card__body {
  padding: 1.25rem 1.35rem 1.35rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ac-pricing-card__head {
  flex: 0 0 auto;
  min-height: 5.25rem;
  margin-bottom: .75rem;
  text-align: center;
}

.ac-pricing-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 .45rem;
  line-height: 1.2;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}

.ac-pricing-card__desc {
  font-size: .875rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
  min-height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ac-pricing-card__price-block {
  flex: 0 0 auto;
  min-height: 9.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
}

.ac-pricing-card__price-ref {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem .55rem;
  min-height: 1.4rem;
  margin-bottom: .35rem;
}

.ac-pricing-card__price-old {
  font-size: .8rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.ac-pricing-card__discount {
  font-size: .72rem;
  font-weight: 800;
  color: #fff;
  background: #0d9488;
  border-radius: 6px;
  padding: .15rem .45rem;
  line-height: 1.3;
}

.ac-pricing-card__price-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .2rem;
  flex-wrap: wrap;
  color: #2563eb;
  font-weight: 800;
  line-height: 1.05;
  min-height: 2.5rem;
  margin-bottom: .25rem;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}

.ac-pricing-card__price-main .ac-price-value {
  font-size: 2rem;
}

.ac-pricing-card__price-main .ac-price-suffix {
  font-size: .9rem;
  font-weight: 600;
  color: #64748b;
}

.ac-pricing-card__price-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .25rem;
  flex-wrap: wrap;
  line-height: 1.1;
  color: #2563eb;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}

.ac-pricing-card__price-line .ac-price-value {
  font-size: 1.65rem;
}

.ac-pricing-card__price-line--destaque .ac-price-value {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.ac-pricing-card__price-line--anual {
  margin-top: .35rem;
}

.ac-pricing-card__price-line--anual .ac-price-value {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.ac-pricing-card__price-line .ac-price-suffix {
  font-size: .85rem;
  font-weight: 600;
  color: #64748b;
}

.ac-pricing-card__price-main--gratuito .ac-price-value {
  font-size: 1.85rem;
  color: #16a34a;
}

.ac-pricing-card__price-total {
  font-size: .82rem;
  color: #64748b;
  min-height: 1.2rem;
  line-height: 1.3;
  margin-bottom: .35rem;
  text-align: center;
}

.ac-pricing-card__economia-slot {
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-pricing-card__economia {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: .45rem .75rem;
  line-height: 1.2;
}

.ac-pricing-card__consulta {
  font-size: .9rem;
  color: #64748b;
  min-height: 2.5rem;
  line-height: 1.4;
  text-align: center;
}

.ac-pricing-card__actions {
  flex: 0 0 auto;
  margin-bottom: 1.15rem;
}

.ac-pricing-card__cta {
  width: 100%;
  min-height: 2.75rem;
  font-weight: 700;
  padding: .65rem 1rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ac-pricing-card--recomendado .ac-pricing-card__cta.btn-primary {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #1e293b;
}

.ac-pricing-card--recomendado .ac-pricing-card__cta.btn-primary:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #1e293b;
}

.ac-pricing-card__features-wrap {
  flex: 0 0 auto;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.ac-pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .875rem;
  color: #334155;
}

.ac-pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .32rem 0;
  line-height: 1.35;
}

.ac-pricing-card__check {
  color: #16a34a;
  font-weight: 700;
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
}

.ac-pricing-card__features strong {
  color: #0d9488;
  font-weight: 700;
}

.ac-pricing-card__features-title {
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 .35rem;
  font-size: .875rem;
}

.ac-pricing-card__atual-badge {
  position: absolute;
  top: 2.85rem;
  right: .75rem;
  z-index: 2;
}

.ac-pricing-card--recomendado .ac-pricing-card__atual-badge {
  top: 2.85rem;
}

.ac-pricing-footnote {
  font-size: .75rem;
  color: #94a3b8;
  margin-top: .75rem;
}

[data-theme="dark"] .ac-pricing-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .ac-pricing-card__features-wrap {
  border-top-color: #334155;
}

[data-theme="dark"] .ac-pricing-card__title { color: #f1f5f9; }
[data-theme="dark"] .ac-pricing-card__desc,
[data-theme="dark"] .ac-pricing-card__price-total { color: #94a3b8; }
[data-theme="dark"] .ac-pricing-card__features { color: #cbd5e1; }
[data-theme="dark"] .ac-pricing-card__economia { color: #f1f5f9; border-color: #475569; }

[data-theme="dark"] .ac-plano-atual__card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .ac-plano-atual__header {
  background: linear-gradient(135deg, rgba(37, 99, 235, .15) 0%, #1e293b 100%);
  border-bottom-color: #334155;
}

[data-theme="dark"] .ac-plano-atual__nome,
[data-theme="dark"] .ac-plano-atual__meta-value,
[data-theme="dark"] .ac-plano-atual__uso-value { color: #f1f5f9; }

[data-theme="dark"] .ac-plano-atual__meta {
  background: #0f172a;
  border-bottom-color: #334155;
}

[data-theme="dark"] .ac-plano-atual__uso-label { color: #94a3b8; }

[data-theme="dark"] .ac-usage-bar { background: #334155; }

[data-theme="dark"] .ac-usage-bar--ilimitado { background: rgba(52, 211, 153, .12); }