.badge-tipo-pico {
  background: var(--tipo-pico-bg);
  color: var(--tipo-pico-text);
  border: 1px solid var(--tipo-pico-border);
  font-weight: 700;
}
.badge-tipo-polimento {
  background: var(--tipo-polimento-bg);
  color: var(--tipo-polimento-text);
  border: 1px solid var(--tipo-polimento-border);
  font-weight: 700;
}
.badge-tipo-transicao {
  background: var(--tipo-transicao-bg);
  color: var(--tipo-transicao-text);
  border: 1px solid var(--tipo-transicao-border);
  font-weight: 700;
}
.badge-tipo-especifico {
  background: var(--tipo-especifico-bg);
  color: var(--tipo-especifico-text);
  border: 1px solid var(--tipo-especifico-border);
  font-weight: 700;
}
.badge-tipo-prova {
  background: var(--tipo-prova-bg);
  color: var(--tipo-prova-text);
  border: 1px solid var(--tipo-prova-border);
  font-weight: 700;
}
.badge-tipo-teste {
  background: var(--tipo-teste-bg);
  color: var(--tipo-teste-text);
  border: 1px solid var(--tipo-teste-border);
  font-weight: 700;
}

/* SELEÇÃO DE FONTES */
.font-card-option input[type="radio"],
input[name="fontFamilyRadio"] {
  accent-color: var(--color-success) !important;
  cursor: pointer;
}

/* CARDS DE PLANOS & MODELO DE NEGÓCIO */
.modelo-radio-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--color-bg-surface);
  transition: all 0.2s ease;
}

.modelo-radio-card:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-subtle);
}

.modelo-radio-card.active {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 4%, transparent);
}

.plano-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s ease;
}

.plano-card:hover {
  box-shadow: var(--shadow-md);
}

.plano-card.destaque {
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

.plano-badge-destaque {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--color-primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.plano-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-main);
}

.plano-desc {
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.plano-features-list {
  list-style: none;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plano-features-list li {
  font-size: 13px;
  color: var(--color-text-main);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plano-features-list li svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* SELETORES DE PROVA ALVO, NÍVEL, DURAÇÃO & CATEGORIAS (FASE 5) */
.selector-prova-btn,
.selector-nivel-btn,
.selector-duracao-btn,
.btn-filter-cat {
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--sombra-card-subtle-04);
  user-select: none;
}

.selector-prova-btn:hover,
.selector-nivel-btn:hover,
.selector-duracao-btn:hover,
.btn-filter-cat:hover {
  border-color: var(--color-border);
  color: var(--color-text-main);
  background: var(--color-bg-subtle);
  transform: translateY(-1px);
}

.selector-prova-btn.active,
.selector-nivel-btn.active,
.selector-duracao-btn.active,
.btn-filter-cat.active {
  background: var(--color-primary) !important;
  color: var(--color-bg-surface) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--color-primary) 30%, transparent);
  font-weight: 700;
  transform: translateY(-1px);
}

.btn-filter-cat.btn-filter-suave.active {
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-bg-surface)) !important;
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  box-shadow: none !important;
  transform: none !important;
  font-weight: 700;
}

.btn-filter-cat.btn-filter-suave:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* BOTÕES ESPECÍFICOS DO MÓDULO DE PROVAS */
.btn-link-prova {
  background: none;
  border: none;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.btn-link-prova:hover {
  text-decoration: underline;
}

.btn-ver-participantes,
.btn-editar-prova,
.btn-excluir-prova,
.btn-editar-sugestao,
.btn-recusar-sugestao,
.btn-aprovar-sugestao,
.btn-definir-alvo,
.btn-definir-preparatoria {
  /* Seletores de ação padronizados no módulo de provas */
}

/* CONTAINER & CARDS DO SELETOR DE MOTOR DE IA (FASE 5) */
.ai-engine-selector-container {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.ai-engine-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
}

@media (max-width: 640px) {
  .ai-engine-cards-grid {
    grid-template-columns: 1fr !important;
  }
}

.ai-engine-card {
  background: var(--color-bg-subtle);
  border: 2px solid var(--color-border) !important;
  border-radius: var(--radius-md);
  padding: 26px 28px !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0.85;
  box-sizing: border-box !important;
}

.ai-engine-card:hover {
  border-color: var(--color-border) !important;
  background: var(--color-bg-surface);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ai-engine-card.active {
  background: var(--color-bg-surface) !important;
  border: 2.5px solid var(--color-primary) !important;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--color-primary) 15%, transparent), var(--sombra-card-subtle-05) !important;
  transform: translateY(-1px);
  opacity: 1 !important;
}

.ai-engine-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 14px;
  width: 100%;
}

.ai-engine-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-engine-icon.construtiva,
.ai-engine-icon.conversacional {
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
}

.ai-engine-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid color-mix(in srgb, var(--color-info) 35%, transparent);
  margin-left: auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.ai-engine-card.active .ai-engine-badge {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid color-mix(in srgb, var(--color-success) 35%, transparent);
  font-weight: 800;
}

.ai-engine-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.ai-engine-desc {
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}

.ai-engine-status-indicator {
  display: none !important;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-success) !important;
  background: var(--color-success-bg) !important;
  border: 1px solid color-mix(in srgb, var(--color-success) 35%, transparent) !important;
  padding: 4px 12px !important;
  border-radius: var(--radius-full) !important;
  width: fit-content;
  margin-top: auto;
  box-shadow: var(--sombra-card-subtle-04);
}

.ai-engine-card.active .ai-engine-status-indicator {
  display: inline-flex !important;
}

.ai-engine-card.active .ai-engine-status-indicator svg,
.ai-engine-status-indicator svg {
  color: var(--color-success) !important;
}

/* =============================================================================
   7. BARRA DE ABAS E ABA EVOLUÇÃO NO DRAWER (PRONTUÁRIO 360°)
   ============================================================================= */

.drawer-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-surface);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px;
  gap: 4px;
  position: relative;
  background-image:
    linear-gradient(to right, var(--color-bg-surface), var(--color-bg-surface)),
    linear-gradient(to right, var(--color-bg-surface), var(--color-bg-surface)),
    linear-gradient(to right, color-mix(in srgb, var(--color-text-main) 12%, transparent), transparent),
    linear-gradient(to left, color-mix(in srgb, var(--color-text-main) 12%, transparent), transparent);
  background-position: left center, right center, left center, right center;
  background-repeat: no-repeat;
  background-size: 20px 100%, 20px 100%, 12px 100%, 12px 100%;
  background-attachment: local, local, scroll, scroll;
}

.drawer-tabs::-webkit-scrollbar {
  display: none;
}

.drawer-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.drawer-tab-btn:hover:not(.active) {
  color: var(--color-text-main);
}

.drawer-tab-btn.active {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom-color: var(--color-primary);
}

.drawer-tab-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.evolucao-painel-drawer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.faixa-visao-atleta {
  background: var(--color-info-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.alerta-sem-permissao-evolucao {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13.5px;
}

.evolucao-blocos-pilha {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.evolucao-drawer-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-evolucao-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-drawer-categoria {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.card-evolucao-titulo {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0;
  width: 100%;
}

.evolucao-seletor-periodo {
  display: flex;
  gap: 6px;
  background: var(--color-bg-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.opcao-periodo {
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.opcao-periodo.active {
  background: var(--color-bg-surface);
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.evolucao-periodo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
}

.periodo-nav-rotulo {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  text-align: center;
}

.evolucao-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-quadro {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-quadro-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-main);
}

