.ranking-card {
  position: relative;
  background: linear-gradient(155deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform 200ms ease, border 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
  margin-bottom: 1rem;
}

.ranking-card::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at -20% 50%, rgba(79,70,229,0.18), transparent 40%);
  opacity: 0.8;
  pointer-events: none;
  border-radius: inherit;
}

.ranking-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79,70,229,0.4);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.ranking-card.expanded {
  border-color: rgba(22,169,250,0.5);
  box-shadow: 0 22px 38px rgba(0,0,0,0.55);
}

.card-main {
  position: relative;
  display: grid;
  grid-template-columns: 32px auto 1fr auto;
  align-items: center;
  gap: 1.35rem;
  padding: 1.25rem 1.6rem;
  z-index: 1;
}

.selecao-checkbox {
  position: relative;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.selecao-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.selecao-checkbox .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--stroke);
  border-radius: 6px;
  transition: all 200ms ease;
}

.selecao-checkbox:hover .checkmark {
  border-color: var(--accent);
  background: rgba(79, 70, 229, 0.1);
}

.selecao-checkbox input:checked ~ .checkmark {
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  border-color: var(--accent);
}

.selecao-checkbox .checkmark::after {
  content: '';
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.selecao-checkbox input:checked ~ .checkmark::after {
  display: block;
}

.ranking-card.selecionado {
  border-color: rgba(79, 70, 229, 0.6);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3), 0 15px 35px rgba(0, 0, 0, 0.4);
}

.ranking-card.selecionado::before {
  background: radial-gradient(circle at -20% 50%, rgba(79, 70, 229, 0.3), transparent 40%);
}

.rank {
  min-width: 62px;
  width: auto;
  height: 62px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--text);
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  padding: 0 10px;
}

.rank-number {
  font-size: 1.35rem;
  white-space: nowrap;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.rank-number.rank-digits-4 {
  font-size: 1.1rem;
}

.rank-number.rank-digits-5 {
  font-size: 0.9rem;
}

.rank-number.rank-digits-6 {
  font-size: 0.75rem;
}

.rank-number.rank-digits-7 {
  font-size: 0.65rem;
}

.rank-1 {
  background: linear-gradient(145deg, #fbbf24, #f59e0b);
  color: #0f172a;
}

.rank-2 {
  background: linear-gradient(145deg, #cbd5e1, #94a3b8);
  color: #0f172a;
}

.rank-3 {
  background: linear-gradient(145deg, #fb923c, #f97316);
  color: #0f172a;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.consultant-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.consultant-area {
  color: var(--muted);
  font-size: 0.95rem;
}

.badge {
  font-size: 0.72rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.4px;
  border: 1px solid rgba(255,255,255,0.25);
  text-transform: uppercase;
  font-weight: 600;
}

.badge-ativo {
  background: linear-gradient(120deg, var(--success), #16a34a);
  color: #fff;
}

.badge-historico {
  background: linear-gradient(120deg, #64748b, #475569);
  color: #fff;
}

.badge-veterano {
  background: linear-gradient(120deg, var(--gold), #f59e0b);
  color: #0f172a;
}

.badge-premiado {
  background: linear-gradient(120deg, #fbbf24, #f59e0b);
  color: #0f172a;
  font-size: 0.85rem;
  padding: 0.15rem 0.35rem;
  border: none;
}

.card-stats {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: rgba(255,255,255,0.04);
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--stroke);
}

.stat {
  text-align: center;
  min-width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value,
.score-value {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}

.score-value {
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-raw-data {
  padding: 0.4rem 0.6rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  color: #a5b4fc;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}

.btn-raw-data:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  color: #c7d2fe;
  transform: scale(1.05);
}

.btn-raw-data:active {
  transform: scale(0.95);
}

.rank {
  position: relative;
}

.btn-insights {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  padding: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 1;
}

.btn-insights:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 8px rgba(99, 102, 241, 0.4);
}

.btn-insights:active {
  transform: scale(0.95);
}

.insights-modal {
  max-width: 420px;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.insight-icone {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.insight-texto {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.insights-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--stroke);
  text-align: center;
  color: var(--muted);
}

.expand-icon {
  margin-left: 0.5rem;
  color: var(--muted);
  transition: transform 200ms ease, color 200ms ease;
  font-size: 0.9rem;
}

.ranking-card:hover .expand-icon {
  color: var(--accent-2);
}

.ranking-card.expanded .expand-icon {
  transform: rotate(180deg);
  color: var(--accent-2);
}

.card-details {
  padding: 0 1.6rem 1.35rem;
  border-top: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  position: relative;
  overflow: visible;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.1rem 1.25rem;
  padding-top: 1.1rem;
}

.detail-section {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.9rem 1rem 0.75rem;
  overflow: visible;
}

.detail-section h4 {
  color: var(--accent-2);
  font-size: 0.78rem;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.score-breakdown,
.score-breakdown-total {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
  overflow: visible;
  position: relative;
}

.score-breakdown .score-item,
.score-breakdown-total .score-item,
.score-breakdown .score-item-wrapper .score-item,
.score-breakdown-total .score-item-wrapper .score-item {
  width: 100%;
  height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.score-item {
  background: var(--bg-veil);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  text-align: center;
}

.score-item.score-total {
  background: linear-gradient(145deg, rgba(79,70,229,0.2), rgba(22,169,250,0.2));
  border-color: rgba(79,70,229,0.5);
  cursor: pointer;
}

.score-item-value {
  font-size: 1.05rem;
  font-weight: 700;
}

.score-item-label {
  font-size: 0.55rem;
  letter-spacing: 0;
  color: var(--muted);
  max-width: 100%;
  padding: 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-item-wrapper {
  position: relative;
  flex: 0 0 calc(33.333% - 0.3rem);
  max-width: calc(33.333% - 0.3rem);
}

.score-breakdown-5cols .score-item-wrapper {
  flex: 0 0 calc(33.333% - 0.3rem);
  max-width: calc(33.333% - 0.3rem);
}

.score-item-wrapper .score-item {
  cursor: help;
  transition: transform 150ms ease, border-color 150ms ease;
}

.score-item-wrapper:hover .score-item {
  transform: scale(1.05);
  border-color: var(--accent);
}

.score-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text);
  white-space: pre-line;
  min-width: 180px;
  max-width: 280px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
  z-index: 100;
  pointer-events: none;
}

.score-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--accent);
}

.score-item-wrapper:hover .score-tooltip {
  opacity: 1;
  visibility: visible;
}

.score-item-wrapper:first-child .score-tooltip {
  left: 0;
  transform: translateX(0);
}

.score-item-wrapper:first-child .score-tooltip::after {
  left: 29px;
  transform: translateX(0);
}

.score-item-wrapper:last-child .score-tooltip {
  left: auto;
  right: 0;
  transform: translateX(0);
}

.score-item-wrapper:last-child .score-tooltip::after {
  left: auto;
  right: 20px;
  transform: translateX(0);
}

.extra-details {
  margin-top: 1.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 1rem;
}

.extra-details h4 {
  color: var(--accent-2);
  font-size: 0.82rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.list-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  font-size: 0.85rem;
}

.list-item .muted {
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.list-item .pontos {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 50px;
}

.list-item .ies-nome {
  flex: 1;
  color: var(--text);
  font-weight: 500;
  font-size: 0.85rem;
}

.list-item-clicavel {
  cursor: pointer;
  transition: all 0.2s ease;
}

.list-item-clicavel:hover {
  background: rgba(6, 182, 212, 0.1);
  border-left: 3px solid var(--accent-2);
  padding-left: calc(0.5rem - 3px);
}

.modal-detalhe-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.modal-detalhe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.modal-detalhe-row:last-child {
  border-bottom: none;
}

.modal-detalhe-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.modal-detalhe-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 120px;
  flex-shrink: 0;
}

.modal-detalhe-value {
  color: var(--text);
  font-size: 0.9rem;
  text-align: right;
  flex: 1;
}

.modal-detalhe-value.pontos {
  color: var(--accent-2);
  font-weight: 700;
}

.modal-detalhe-value.muted {
  color: var(--muted);
  font-style: italic;
}

.modal-titulo-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-titulo-icone {
  font-size: 1.2rem;
}

.modal-empty {
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}

@media (max-width: 1200px) {
  .details-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .card-main {
    grid-template-columns: 28px auto 1fr;
    align-items: flex-start;
  }

  .rank {
    min-width: 56px;
    height: 56px;
    padding: 0 8px;
  }

  .rank-number {
    font-size: 1.1rem;
  }

  .rank-number.rank-digits-5,
  .rank-number.rank-digits-6,
  .rank-number.rank-digits-7 {
    font-size: 0.85rem;
  }

  .card-stats {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.65rem;
    grid-column: 1 / -1;
  }

  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .selecao-checkbox {
    width: 20px;
    height: 20px;
  }

  .selecao-checkbox .checkmark {
    width: 20px;
    height: 20px;
  }

  .selecao-checkbox .checkmark::after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
  }
}

@media (max-width: 640px) {
  .card-stats {
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  .stat {
    flex: 1 1 40%;
  }

  .score-value {
    font-size: 1.6rem;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }
}

.selos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.selos-container.selos-compacto {
  display: inline-flex;
  margin-left: 0.5rem;
  gap: 0.4rem;
}

.selos-compacto .selo {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  padding: 0.25rem 0.45rem;
  gap: 0.25rem;
  font-size: 0.7rem;
}

.selos-compacto .selo:hover {
  background: rgba(148, 163, 184, 0.25);
  border-color: rgba(148, 163, 184, 0.5);
  color: #cbd5e1;
}

.selos-compacto .selo:hover .selo-icone {
  filter: none;
  opacity: 1;
}

.selos-compacto .selo-icone {
  filter: grayscale(100%) brightness(1.2);
  opacity: 0.9;
  font-size: 0.9rem;
  transition: filter 150ms ease, opacity 150ms ease;
}

.selos-compacto .selo-qtd {
  background: rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  font-size: 0.6rem;
  padding: 0.1rem 0.25rem;
}

.selo {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 500;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.selo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.selo-icone {
  font-size: 0.85rem;
  line-height: 1;
}

.selo-label {
  font-size: 0.68rem;
  letter-spacing: 0.2px;
}

.selo-qtd {
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  margin-left: 0.15rem;
}

.selo-mais {
  background: rgba(255, 255, 255, 0.05);
  border-style: dashed;
  font-size: 0.55rem;
  color: var(--muted);
  padding: 0.1rem 0.2rem;
}

.selo-coord {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.1));
  border-color: rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
}

.selo-camara {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.1));
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.selo-bpq {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.1));
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.selo-gp {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(251, 191, 36, 0.15));
  border-color: rgba(251, 191, 36, 0.6);
  color: #fcd34d;
}

.selo-premio {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(249, 115, 22, 0.1));
  border-color: rgba(249, 115, 22, 0.4);
  color: #fdba74;
}

.selo-mencao {
  background: linear-gradient(135deg, rgba(203, 213, 225, 0.2), rgba(203, 213, 225, 0.08));
  border-color: rgba(203, 213, 225, 0.35);
  color: #e2e8f0;
}

.selo-orient {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.08));
  border-color: rgba(14, 165, 233, 0.35);
  color: #7dd3fc;
}

.selo-orient-prem,
.selo-orient-premio {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(249, 115, 22, 0.2));
  border-color: rgba(249, 115, 22, 0.5);
  color: #fdba74;
}

.selo-orient-mencao {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(203, 213, 225, 0.15));
  border-color: rgba(203, 213, 225, 0.4);
  color: #e2e8f0;
}

.selo-coorient {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.08));
  border-color: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}

.selo-coorient-prem,
.selo-coorient-premio {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(249, 115, 22, 0.2));
  border-color: rgba(249, 115, 22, 0.5);
  color: #fdba74;
}

.selo-coorient-mencao {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(203, 213, 225, 0.15));
  border-color: rgba(203, 213, 225, 0.4);
  color: #e2e8f0;
}

.tipos-section {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.tipos-section h4 {
  color: var(--accent-2);
}

.tipos-section .tipos-atuacao-container {
  gap: 0.5rem;
}

.tipos-expandido .tipo-atuacao {
  padding: 0.35rem 0.6rem;
  font-size: 0.7rem;
}

.tipos-expandido .tipo-icone {
  font-size: 1rem;
}

.tipos-expandido .tipo-label {
  font-size: 0.72rem;
}

.selos-section {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.selos-section .selos-container {
  gap: 0.5rem;
}

.selos-section .selo {
  padding: 0.35rem 0.6rem;
}

.selos-section .selo-icone {
  font-size: 1rem;
}

.selos-section .selo-label {
  font-size: 0.72rem;
}

@media (max-width: 900px) {
  .selos-container.selos-compacto {
    display: none;
  }
}

.link-atuacapes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  border-radius: 6px;
  text-decoration: none;
  transition: all 200ms ease;
  cursor: pointer;
}

.link-atuacapes:hover {
  color: var(--accent-2);
  background: rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.4);
  transform: scale(1.1);
}

.tipos-atuacao-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.tipo-atuacao {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 500;
  transition: all 150ms ease;
}

.tipo-atuacao:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.25);
}

.tipo-icone {
  font-size: 0.7rem;
  line-height: 1;
  opacity: 0.9;
}

.tipo-label {
  font-size: 0.6rem;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.tipo-mais {
  background: rgba(255, 255, 255, 0.03);
  border-style: dashed;
  font-size: 0.55rem;
  padding: 0.1rem 0.25rem;
}

.tipo-coordenador {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.08));
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.tipo-consultor {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.08));
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.tipo-avaliador {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.08));
  border-color: rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
}

.tipo-premiado {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(251, 191, 36, 0.1));
  border-color: rgba(251, 191, 36, 0.4);
  color: #fcd34d;
}

.tipo-orientador {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.08));
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.tipo-bolsista {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.08));
  border-color: rgba(14, 165, 233, 0.35);
  color: #7dd3fc;
}

.tipo-inscrito {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.08));
  border-color: rgba(249, 115, 22, 0.35);
  color: #fdba74;
}

.tipo-projeto {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.08));
  border-color: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}

.tipo-evento {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.08));
  border-color: rgba(236, 72, 153, 0.35);
  color: #f9a8d4;
}

.tipo-docente {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(20, 184, 166, 0.08));
  border-color: rgba(20, 184, 166, 0.35);
  color: #5eead4;
}

.tipo-default {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

@media (max-width: 900px) {
  .tipos-atuacao-container {
    margin-top: 0.3rem;
  }

  .tipo-atuacao {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
  }

  .tipo-label {
    font-size: 0.55rem;
  }
}

.tipo-clicavel,
.selo-clicavel {
  cursor: pointer;
}

.tipo-clicavel:hover,
.selo-clicavel:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tipo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.tipo-modal {
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tipo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}

.tipo-modal-header .tipo-atuacao {
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
}

.tipo-modal-header .tipo-icone {
  font-size: 1rem;
}

.tipo-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  color: var(--muted);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: all 200ms ease;
}

.tipo-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.tipo-modal-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--stroke);
  font-size: 0.85rem;
}

.modal-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.modal-item-main {
  flex: 1;
  color: var(--text);
  font-weight: 500;
}

.modal-summary {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.modal-summary strong {
  color: var(--accent-2);
}

.modal-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
  font-size: 0.9rem;
}

.tipo-modal-body h5 {
  color: var(--accent-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 1rem 0 0.5rem;
}

.score-item-clicavel {
  cursor: pointer;
}

.score-item-clicavel .score-item {
  cursor: pointer;
}

.score-item-clicavel:hover .score-item {
  transform: scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.modal-formula-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stroke);
}

.modal-formula-section .modal-detalhe-label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent-2);
  font-weight: 600;
}

.modal-formula-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
}

.modal-formula-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-formula-line:last-child {
  border-bottom: none;
}

.formula-label {
  color: var(--muted);
  min-width: 80px;
}

.formula-calc {
  color: var(--text);
  text-align: right;
}

.modal-formula-line.formula-subtotal {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--stroke);
}

.modal-formula-line.formula-subtotal .formula-label,
.modal-formula-line.formula-subtotal .formula-calc {
  color: var(--muted);
  font-weight: 500;
}

.modal-formula-line.formula-total {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--accent);
  background: rgba(79, 70, 229, 0.1);
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 0 0 7px 7px;
}

.modal-formula-line.formula-total .formula-label {
  color: var(--accent-2);
  font-weight: 700;
}

.modal-formula-line.formula-total .formula-calc {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 1rem;
}

.modal-atuacoes-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stroke);
}

.modal-atuacoes-section .modal-detalhe-label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent-2);
  font-weight: 600;
}

.modal-atuacoes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-atuacao-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.modal-atuacao-item .badge {
  font-size: 0.7rem;
}

.modal-atuacao-valor {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.85rem;
}

.modal-atuacao-detalhe {
  color: var(--muted);
  font-size: 0.75rem;
}
