.header {
  padding: 1.5rem 1.25rem 1.75rem;
  background: linear-gradient(145deg, rgba(79,70,229,0.18), rgba(22,169,250,0.14));
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 0%, rgba(255,255,255,0.18), transparent 35%);
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 1;
}

.header-title-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.header-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.header h1 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4)) drop-shadow(0 0 40px rgba(96, 165, 250, 0.2));
}

.subtitle {
  color: var(--silver);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0.3rem;
  margin-bottom: 0.8rem;
  opacity: 0.85;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(96, 165, 250, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e0e7ff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.criteria-box {
  background: rgba(79,70,229,0.1);
  border: 1px solid rgba(79,70,229,0.3);
  border-radius: 12px;
  padding: 0.875rem;
  margin-top: 1.25rem;
}

.criteria-box h3 {
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.875rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.criteria-box h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
}

.criteria-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.criteria-row:last-child {
  margin-bottom: 0;
}

.criteria-section {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.5rem 0.5rem 0.5rem 0.4rem;
  position: relative;
  overflow: hidden;
  flex: 1;
}

.criteria-section.wide {
  flex: 1 1 100%;
}

.criteria-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 10px 10px 0 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  flex-wrap: nowrap;
}

.criteria-section h4 {
  color: var(--accent-2);
  font-size: 0.8rem;
  margin: 0;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.max-pts {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.table-columns {
  display: flex;
  gap: 0.5rem;
}

.table-columns .criteria-table {
  flex: 1;
}

.criteria-table {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  border-collapse: collapse;
}

.criteria-table.compact {
  font-size: 0.7rem;
}

.criteria-table th {
  text-align: center;
  color: var(--silver);
  font-weight: 500;
  padding: 0.15rem 0.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.criteria-table th:first-child {
  text-align: left;
}

.criteria-table td {
  padding: 0.15rem 0.2rem;
  color: var(--muted);
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  white-space: nowrap;
}

.criteria-table tr:last-child td {
  border-bottom: none;
}

.criteria-table td:first-child {
  color: var(--silver);
  font-weight: 500;
}

.criteria-table td:not(:first-child) {
  text-align: center;
}

.criteria-note {
  margin-top: 0.3rem;
  padding-top: 0.25rem;
  border-top: 1px dashed rgba(255,255,255,0.1);
  font-size: 0.65rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* Bloco A */
.criteria-section.bloco-a {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(255,255,255,0.02) 100%);
}

.criteria-section.bloco-a::before {
  background: linear-gradient(90deg, #6366f1, #818cf8, #6366f1);
}

.criteria-section.bloco-a h4 {
  color: #a5b4fc;
}

.bloco-a .max-pts {
  background: rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.bloco-a .criteria-table td:not(:first-child) {
  color: #a5b4fc;
}

/* Bloco B */
.criteria-section.bloco-b {
  border-color: rgba(234, 179, 8, 0.3);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.08) 0%, rgba(255,255,255,0.02) 100%);
}

.criteria-section.bloco-b::before {
  background: linear-gradient(90deg, #eab308, #fbbf24, #eab308);
}

.criteria-section.bloco-b h4 {
  color: #fcd34d;
}

.bloco-b .max-pts {
  background: rgba(234, 179, 8, 0.2);
  color: #fef08a;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.bloco-b .criteria-table td:not(:first-child) {
  color: #fcd34d;
}

/* Bloco C */
.criteria-section.bloco-c {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(255,255,255,0.02) 100%);
}

.criteria-section.bloco-c::before {
  background: linear-gradient(90deg, #10b981, #34d399, #10b981);
}

.criteria-section.bloco-c h4 {
  color: #6ee7b7;
}

.bloco-c .max-pts {
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.bloco-c .criteria-table td:not(:first-child) {
  color: #6ee7b7;
}

/* Bloco D */
.criteria-section.bloco-d {
  border-color: rgba(217, 119, 6, 0.3);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.08) 0%, rgba(255,255,255,0.02) 100%);
}

.criteria-section.bloco-d::before {
  background: linear-gradient(90deg, #d97706, #f59e0b, #d97706);
}

.criteria-section.bloco-d h4 {
  color: #fbbf24;
}

.bloco-d .max-pts {
  background: rgba(217, 119, 6, 0.2);
  color: #fed7aa;
  border: 1px solid rgba(217, 119, 6, 0.4);
}

.bloco-d .criteria-table td:not(:first-child) {
  color: #fbbf24;
}

/* Bloco E */
.criteria-section.bloco-e {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, rgba(255,255,255,0.02) 100%);
}

.criteria-section.bloco-e::before {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa, #8b5cf6);
}

.criteria-section.bloco-e h4 {
  color: #c4b5fd;
}

.bloco-e .max-pts {
  background: rgba(139, 92, 246, 0.2);
  color: #ddd6fe;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.bloco-e .criteria-table td:not(:first-child) {
  color: #c4b5fd;
}

/* Selos na Legenda */
.selos-table th:last-child,
.selos-table td:last-child {
  text-align: center;
  width: 2.5rem;
}

.selo-legenda {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  line-height: 1;
}

.selo-legenda.selo-orient {
  background: rgba(34, 211, 238, 0.2);
  border: 1px solid rgba(34, 211, 238, 0.4);
}

.selo-legenda.selo-coorient {
  background: rgba(96, 165, 250, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.4);
}

.selo-legenda.selo-banca {
  background: rgba(167, 139, 250, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.4);
}

.selo-legenda.selo-bpq {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.selo-legenda.selo-proj {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.selo-legenda.selo-evento {
  background: rgba(251, 146, 60, 0.2);
  border: 1px solid rgba(251, 146, 60, 0.4);
}

.selo-legenda.selo-coord {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.selo-legenda.selo-camara {
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.selo-legenda.selo-gp {
  background: rgba(234, 179, 8, 0.25);
  border: 1px solid rgba(234, 179, 8, 0.5);
}

.selo-legenda.selo-premio {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.selo-legenda.selo-mencao {
  background: rgba(156, 163, 175, 0.2);
  border: 1px solid rgba(156, 163, 175, 0.4);
}

.selo-legenda.selo-orient-premio {
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.selo-legenda.selo-orient-mencao {
  background: rgba(148, 163, 184, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.selo-legenda.selo-coorient-premio {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.selo-legenda.selo-coorient-mencao {
  background: rgba(107, 114, 128, 0.2);
  border: 1px solid rgba(107, 114, 128, 0.4);
}

@media (max-width: 900px) {
  .criteria-row {
    flex-wrap: wrap;
  }

  .criteria-section {
    flex: 1 1 calc(50% - 0.3rem);
    min-width: calc(50% - 0.3rem);
  }

  .criteria-section.wide {
    flex: 1 1 100%;
  }

  .table-columns {
    flex-wrap: wrap;
  }

  .table-columns .criteria-table {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  .criteria-section {
    flex: 1 1 100%;
  }

  .header-title-row {
    gap: 0.75rem;
  }

  .header-logo {
    width: 48px;
    height: 48px;
    padding: 4px;
  }
}
