/* Pipeline de Candidatos — estilos dedicados */

/* =========================================================
   LAYOUT PRINCIPAL
   ========================================================= */

.candidatos-main {
    width: min(1160px, 94%);
    margin: 0 auto;
    padding: 20px 0 40px;
}

/* Área rolável da coluna principal: overlay de busca fica aqui (sidebar fica de fora) */
.page-candidatos .empresa-shell__body {
    position: relative;
    flex: 1;
    min-height: 0;
}

/* =========================================================
   CABEÇALHO DA PÁGINA
   ========================================================= */

.candidatos-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.candidatos-page-header__left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.candidatos-page-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.2;
}

.candidatos-page-subtitle {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}

.candidatos-page-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* =========================================================
   BARRA DE FILTROS (VAGA + BUSCA)
   ========================================================= */

.candidatos-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.candidatos-filter-bar__label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.candidatos-job-select {
    flex: 1;
    min-width: 180px;
    max-width: 360px;
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233d5248' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.candidatos-job-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 214, 111, 0.15);
}

.candidatos-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(0, 214, 111, 0.12);
    border: 1px solid rgba(0, 214, 111, 0.3);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink);
}

/* =========================================================
   TELA OVERLAY INICIAL (SOBREPÕE TUDO)
   ========================================================= */

.candidatos-search-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.candidatos-search-overlay[hidden] {
    display: none;
}

.candidatos-search-overlay__card {
    width: 100%;
    max-width: 520px;
    padding: 48px 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04);
    text-align: center;
    animation: candidatosOverlayFadeIn 0.3s ease;
}

@keyframes candidatosOverlayFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.candidatos-search-overlay__title {
    margin: 0 0 8px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1.2;
}

.candidatos-search-overlay__subtitle {
    margin: 0 0 36px;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.5;
}

.candidatos-search-overlay__filters {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
    text-align: left;
}

.candidatos-search-overlay__field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.candidatos-search-overlay__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.candidatos-search-overlay__select,
.candidatos-search-overlay__input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    transition: all 0.2s ease;
}

.candidatos-search-overlay__select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233d5248' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    appearance: none;
    cursor: pointer;
}

.candidatos-search-overlay__input {
    cursor: text;
}

.candidatos-search-overlay__input::placeholder {
    color: var(--muted);
    opacity: 0.6;
}

.candidatos-search-overlay__select:focus,
.candidatos-search-overlay__input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 214, 111, 0.12);
}

.candidatos-search-overlay__suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
    z-index: 10;
}

.candidatos-search-overlay__suggestion-item {
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--border);
}

.candidatos-search-overlay__suggestion-item:last-child {
    border-bottom: none;
}

.candidatos-search-overlay__suggestion-item:hover {
    background: rgba(0, 214, 111, 0.06);
}

.candidatos-search-overlay__suggestion-item--empty {
    color: var(--muted);
    font-style: italic;
    cursor: default;
}

.candidatos-search-overlay__suggestion-item--empty:hover {
    background: transparent;
}

.candidatos-search-overlay__btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.candidatos-search-overlay__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 214, 111, 0.25);
}

.candidatos-search-overlay__btn:active {
    transform: translateY(0);
}

#candidatos-filter-apply {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 640px) {
    .candidatos-search-overlay__card {
        padding: 36px 28px;
    }
    
    .candidatos-search-overlay__title {
        font-size: 1.4rem;
    }
    
    .candidatos-search-overlay__filters {
        gap: 20px;
        margin-bottom: 28px;
    }
}

.candidatos-filter-badge__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: var(--ink);
    font: inherit;
    font-size: 0.7rem;
    font-weight: 900;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.candidatos-filter-badge__clear:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* =========================================================
   AVISO DE BANNER (filtro de vaga ativo / erro)
   ========================================================= */

.pipeline-filter-banner {
    padding: 12px 16px;
    background: rgba(0, 214, 111, 0.08);
    border: 1px solid rgba(0, 214, 111, 0.25);
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.88rem;
}

.pipeline-filter-banner p {
    margin: 0 0 6px;
}

.pipeline-filter-banner p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   ABAS DE ETAPAS (PIPELINE TABS)
   ========================================================= */

.candidatos-stages {
    display: flex;
    align-items: stretch;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.candidatos-stage-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

.candidatos-stage-tab:hover {
    border-color: var(--primary);
    background: var(--surface-hover);
    color: var(--ink);
}

.candidatos-stage-tab[aria-selected="true"] {
    border-color: var(--primary);
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 14px rgba(0, 214, 111, 0.3);
}

.candidatos-stage-tab__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.candidatos-stage-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.1);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.candidatos-stage-tab[aria-selected="true"] .candidatos-stage-tab__count {
    background: rgba(0, 0, 0, 0.15);
}

/* Cores dos dots por etapa */
.dot-all      { background: var(--muted); }
.dot-enviado  { background: #3b82f6; }
.dot-analise  { background: #f59e0b; }
.dot-final    { background: #8b5cf6; }
.dot-aprovado { background: #10b981; }
.dot-reprovado{ background: #ef4444; }

/* =========================================================
   GRID DE CARDS
   ========================================================= */

.candidatos-grid {
    display: grid;
    gap: 12px;
}

@media (min-width: 700px) {
    .candidatos-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}

@media (min-width: 1100px) {
    .candidatos-grid {
        grid-template-columns: repeat(2, minmax(440px, 1fr));
    }
}

/* =========================================================
   CARD DO CANDIDATO
   ========================================================= */

.candidato-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    display: flex;
    flex-direction: column;
}

.candidato-card:hover {
    border-color: rgba(0, 214, 111, 0.4);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

/* Borda superior colorida por status */
.candidato-card[data-status="enviado"]   { border-top: 3px solid #3b82f6; }
.candidato-card[data-status="em_analise"]{ border-top: 3px solid #f59e0b; }
.candidato-card[data-status="etapa_final"]{ border-top: 3px solid #8b5cf6; }
.candidato-card[data-status="aprovado"]  { border-top: 3px solid #10b981; }
.candidato-card[data-status="reprovado"] { border-top: 3px solid #ef4444; }
.candidato-card[data-status="recusado"]  { border-top: 3px solid #ef4444; }

/* ── Topo do card ── */
.candidato-card__head-wrap {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px 12px;
    padding: 12px 16px 0;
}

.candidato-card__head-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.candidato-rank {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
}

.candidato-rank__medal-ico {
    width: 48px;
    height: 48px;
    display: block;
    filter: drop-shadow(0 3px 8px rgba(15, 23, 42, 0.15));
}

.candidato-rank--plain {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 2px 8px rgba(15, 23, 42, 0.08);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.candidato-rank__n {
    font-size: 1.12rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.candidato-rank__suf {
    font-size: 0.62em;
    font-weight: 800;
    color: #64748b;
    margin-left: 0.02em;
}

.candidato-card--ranking .candidato-card__head {
    padding: 0;
}

.candidato-card__score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 214, 111, 0.1), rgba(187, 255, 101, 0.2));
    border: 1px solid rgba(0, 214, 111, 0.3);
    box-shadow: 0 2px 10px rgba(0, 214, 111, 0.12);
}

.candidato-card__score-k {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.candidato-card__score-v {
    font-size: 1.15rem;
    font-weight: 900;
    color: #065f46;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.candidato-card__score-unit {
    font-size: 0.78rem;
    font-weight: 700;
    color: #047857;
    margin-left: 2px;
}

.candidato-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 0 0 2px 0;
}

.candidato-card__info {
    flex: 1;
    min-width: 0;
}

.candidato-card__name {
    margin: 0 0 2px;
    font-size: 0.97rem;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.candidato-card__job {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.candidato-card__status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Badges por status */
.badge-enviado   { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.badge-em_analise{ background: rgba(245, 158, 11, 0.12); color: #92400e; }
.badge-etapa_final{ background: rgba(139, 92, 246, 0.12); color: #5b21b6; }
.badge-aprovado  { background: rgba(16, 185, 129, 0.12); color: #065f46; }
.badge-reprovado { background: rgba(239, 68, 68, 0.12);  color: #991b1b; }
.badge-recusado  { background: rgba(239, 68, 68, 0.12);  color: #991b1b; }

/* ── Meta (data + email) ── */
.candidato-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 16px 10px;
    font-size: 0.76rem;
    color: var(--muted);
    font-weight: 500;
}

.candidato-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Reserva o espaço da meta (data/e-mail) quando o card é de formulário pontuado */
.candidato-card__meta-spacer {
    padding: 0 16px 10px;
    min-height: 1.35rem;
    box-sizing: border-box;
    pointer-events: none;
}

/* ── Telefone / WhatsApp ── */
.candidato-card__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px 16px 10px;
}

.candidato-card__phone-num {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    color: var(--text-muted, #6b7280);
}

.candidato-card__phone-num svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    opacity: .7;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    background: #25d366;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s, box-shadow .18s;
}

.btn-whatsapp:hover {
    background: #1da851;
    box-shadow: 0 3px 10px rgba(37, 211, 102, .35);
}

.btn-whatsapp svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
}

/* ── Divisor ── */
.candidato-card__divider {
    height: 1px;
    background: var(--border);
    margin: 0 16px;
}

/* ── Currículo ── */
.candidato-card__resume {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.candidato-card__resume-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 2px;
}

.candidato-card__resume-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-resume {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.btn-resume:hover {
    border-color: var(--primary);
    background: var(--surface-hover);
}

.btn-resume svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* ── Rodapé com ações ── */
.candidato-card__footer {
    margin-top: auto;
    padding: 10px 16px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    background: rgba(242, 251, 246, 0.5);
}

.candidato-card__footer-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: 100%;
    margin-bottom: 2px;
}

.btn-pipeline-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: opacity 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

.btn-pipeline-action:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.btn-pipeline-action:active:not(:disabled) {
    transform: scale(0.97);
}

.btn-pipeline-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-pipeline-action svg,
.btn-pipeline-action__ico {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* Variante: avançar (azul/verde) */
.btn-pipeline-advance {
    background: rgba(0, 214, 111, 0.12);
    border-color: rgba(0, 214, 111, 0.35);
    color: #065f46;
}

.btn-pipeline-advance:hover:not(:disabled) {
    background: rgba(0, 214, 111, 0.22);
    border-color: var(--primary);
}

/* Variante: aprovar (verde sólido) */
.btn-pipeline-approve {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.btn-pipeline-approve:hover:not(:disabled) {
    background: var(--primary-hover);
}

/* Variante: reprovar (vermelho) */
.btn-pipeline-reject {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.btn-pipeline-reject:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

/* Status final (sem ações) */
.candidato-card__final-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.candidato-card__final-badge--aprovado {
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
}

.candidato-card__final-badge--reprovado {
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
}

/* Feedback inline (a gravar...) */
.candidato-card__action-feedback {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
    padding: 4px 0;
    min-height: 20px;
    width: 100%;
    margin-top: 4px;
}

/* =========================================================
   ESTADO VAZIO / ERRO
   ========================================================= */

.candidatos-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 24px;
    text-align: center;
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--muted);
}

.candidatos-empty__icon {
    font-size: 2.4rem;
    line-height: 1;
}

.candidatos-empty__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
}

.candidatos-empty__desc {
    margin: 0;
    font-size: 0.82rem;
    max-width: 320px;
}

/* =========================================================
   RODAPÉ (CARREGAR MAIS)
   ========================================================= */

.candidatos-load-more-wrap {
    margin-top: 20px;
    text-align: center;
}

/* =========================================================
   INLINE LOADING (skeleton)
   ========================================================= */

@keyframes candidatos-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.candidatos-skeleton {
    background: linear-gradient(90deg, var(--surface-hover) 25%, var(--border) 50%, var(--surface-hover) 75%);
    background-size: 800px 100%;
    animation: candidatos-shimmer 1.4s infinite linear;
    border-radius: 8px;
    height: 14px;
}

/* —— Formulário adicional: botão Ver respostas —— */
.candidato-card__qa-cta {
    padding: 12px 16px 10px;
    margin-top: 0;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(0, 214, 111, 0.04), transparent);
}

.btn-ver-respostas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #064e3b;
    background: linear-gradient(135deg, rgba(0, 214, 111, 0.18) 0%, rgba(187, 255, 101, 0.35) 100%);
    border: 1px solid rgba(0, 214, 111, 0.45);
    box-shadow: 0 2px 10px rgba(0, 214, 111, 0.15);
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.btn-ver-respostas:hover {
    background: linear-gradient(135deg, rgba(0, 214, 111, 0.26) 0%, rgba(187, 255, 101, 0.45) 100%);
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 214, 111, 0.22);
    transform: translateY(-1px);
}

.btn-ver-respostas:active {
    transform: translateY(0);
}

.btn-ver-respostas__ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
    opacity: 0.9;
}

/* —— Modal full screen: respostas do formulário —— */
.candidatos-answers-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.candidatos-answers-modal[hidden] {
    display: none !important;
}

.candidatos-answers-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.candidatos-answers-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--card);
    box-shadow: 0 0 0 1px var(--border);
    animation: candidatos-answers-in 0.3s ease;
}

@media (min-width: 640px) {
    .candidatos-answers-modal {
        padding: 24px 16px;
        align-items: center;
    }

    .candidatos-answers-modal__panel {
        max-width: min(720px, 100%);
        min-height: min(92dvh, 900px);
        max-height: 92dvh;
        border-radius: calc(var(--radius) + 6px);
        overflow: hidden;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    }
}

@keyframes candidatos-answers-in {
    from {
        opacity: 0.85;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .candidatos-answers-modal__panel {
        animation: none;
    }
}

.candidatos-answers-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(187, 255, 101, 0.12), transparent);
    flex-shrink: 0;
}

.candidatos-answers-modal__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.2;
    padding-right: 8px;
}

.candidatos-answers-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    font: inherit;
    cursor: pointer;
    color: var(--ink);
    flex-shrink: 0;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.candidatos-answers-modal__close:hover {
    background: var(--surface-hover);
    border-color: rgba(0, 214, 111, 0.4);
}

.candidatos-answers-modal__close-img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.9;
}

.candidatos-answers-modal__close:hover .candidatos-answers-modal__close-img {
    opacity: 1;
}

.candidatos-answers-modal__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 18px 32px;
}

.candidatos-answers-modal__summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-hover);
}

.candidatos-answers-modal__line {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--ink);
}

.candidatos-answers-modal__k {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.candidatos-answers-modal__v {
    font-weight: 600;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.candidatos-answers-modal__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.candidatos-answers-modal__card {
    padding: 14px 16px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.candidatos-answers-modal__q-label,
.candidatos-answers-modal__a-label {
    margin: 0 0 4px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
}

.candidatos-answers-modal__a-label {
    margin-top: 12px;
}

.candidatos-answers-modal__q-text {
    margin: 0 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.candidatos-answers-modal__a-text {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.candidatos-answers-modal__card--scored .candidatos-answers-modal__scored-pts {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #065f46;
}

.candidatos-answers-modal__card--scored .candidatos-answers-modal__scored-pts span {
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
}

.candidatos-answers-modal__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 8px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(0, 214, 111, 0.35);
    background: linear-gradient(135deg, rgba(0, 214, 111, 0.12), rgba(187, 255, 101, 0.18));
    box-shadow: 0 4px 20px rgba(0, 214, 111, 0.12);
}

.candidatos-answers-modal__total-label {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #065f46;
}

.candidatos-answers-modal__total-value {
    font-size: 1.35rem;
    font-weight: 900;
    color: #064e3b;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.candidatos-answers-modal__empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
    padding: 24px 12px;
}

body.candidatos-modal-open {
    overflow: hidden;
    touch-action: none;
}

/* =========================================================
   AÇÕES ENTRE CURRÍCULO E PIPELINE (chat + ver respostas)
   ========================================================= */

.candidatos-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.candidato-card__mid-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px 10px;
    margin-top: 0;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(0, 214, 111, 0.04), transparent);
}

.candidato-card__mid-actions--split {
    gap: 10px;
}

.candidato-card__mid-actions--split .candidato-card__qa-cta,
.candidato-card__mid-actions--split .candidato-card__score-cta,
.candidato-card__mid-actions--split .candidato-card__chat-cta {
    flex: 1 1 calc(50% - 5px);
    min-width: min(100%, 160px);
}

@media (max-width: 480px) {
    .candidato-card__mid-actions--split .candidato-card__qa-cta,
    .candidato-card__mid-actions--split .candidato-card__score-cta,
    .candidato-card__mid-actions--split .candidato-card__chat-cta {
        flex: 1 1 100%;
    }
}

.candidato-card__mid-actions .candidato-card__qa-cta {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
}

.candidato-card__chat-cta {
    min-width: 0;
}

.btn-iniciar-chat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.btn-iniciar-chat:hover {
    border-color: rgba(0, 214, 111, 0.45);
    box-shadow: 0 4px 16px rgba(0, 214, 111, 0.14);
    transform: translateY(-1px);
}

.btn-iniciar-chat:active {
    transform: translateY(0);
}

.btn-iniciar-chat:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-iniciar-chat__ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
    opacity: 0.88;
}

/* =========================================================
   MODAL: chat recrutador ↔ candidato
   ========================================================= */

.candidatos-chat-modal {
    position: fixed;
    inset: 0;
    z-index: 12050;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.candidatos-chat-modal[hidden] {
    display: none !important;
}

.candidatos-chat-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.candidatos-chat-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    flex: 1;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--card);
    box-shadow: 0 0 0 1px var(--border);
    animation: candidatos-chat-in 0.32s ease;
}

@media (min-width: 520px) {
    .candidatos-chat-modal {
        padding: 20px 14px;
        align-items: center;
    }

    .candidatos-chat-modal__panel {
        flex: 0 1 auto;
        max-width: min(440px, 100%);
        min-height: min(560px, 92dvh);
        max-height: 92dvh;
        border-radius: calc(var(--radius) + 6px);
        overflow: hidden;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    }
}

@keyframes candidatos-chat-in {
    from {
        opacity: 0.88;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .candidatos-chat-modal__panel {
        animation: none;
    }
}

.candidatos-chat-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(187, 255, 101, 0.12), transparent);
    flex-shrink: 0;
}

.candidatos-chat-modal__head-text {
    min-width: 0;
    flex: 1;
}

.candidatos-chat-modal__kicker {
    margin: 0 0 2px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.candidatos-chat-modal__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.25;
    word-break: break-word;
}

.candidatos-chat-modal__head-actions {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-shrink: 0;
}

.candidatos-chat-modal__menu-wrap {
    position: relative;
}

.candidatos-chat-modal__menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    cursor: pointer;
    color: var(--ink);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.candidatos-chat-modal__menu-btn:hover,
.candidatos-chat-modal__menu-btn[aria-expanded="true"] {
    background: var(--surface-hover);
    border-color: rgba(0, 214, 111, 0.4);
}

.candidatos-chat-modal__menu-dots {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

.candidatos-chat-modal__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    padding: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.15);
    z-index: 2;
}

.candidatos-chat-modal__menu[hidden] {
    display: none !important;
}

.candidatos-chat-modal__menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    color: #991b1b;
    cursor: pointer;
    transition: background 0.15s ease;
}

.candidatos-chat-modal__menu-item:hover {
    background: rgba(239, 68, 68, 0.1);
}

.candidatos-chat-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    font: inherit;
    cursor: pointer;
    color: var(--ink);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.candidatos-chat-modal__close:hover {
    background: var(--surface-hover);
    border-color: rgba(0, 214, 111, 0.4);
}

.candidatos-chat-modal__close-img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.9;
}

.candidatos-chat-modal__close:hover .candidatos-chat-modal__close-img {
    opacity: 1;
}

.candidatos-chat-modal__body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg);
}

.candidatos-chat-modal__loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(242, 251, 246, 0.72);
    backdrop-filter: blur(1px);
}

.candidatos-chat-modal__loading[hidden] {
    display: none !important;
}

.candidatos-chat-modal__loading-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(0, 214, 111, 0.25);
    border-top-color: var(--primary);
    animation: candidatos-chat-spin 0.75s linear infinite;
}

@keyframes candidatos-chat-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .candidatos-chat-modal__loading-spinner {
        animation: none;
        border-top-color: rgba(0, 214, 111, 0.45);
    }
}

.candidatos-chat-modal__loading-text {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--muted);
}

.candidatos-chat-modal__error {
    margin: 0;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #991b1b;
    background: rgba(239, 68, 68, 0.1);
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.candidatos-chat-modal__error[hidden] {
    display: none !important;
}

.candidatos-chat-modal__messages {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.candidatos-chat-modal__empty-hint {
    margin: auto 0;
    text-align: center;
    font-size: 0.86rem;
    color: var(--muted);
    font-weight: 600;
    padding: 24px 12px;
}

.candidatos-chat-msg {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 92%;
}

.candidatos-chat-msg--recruiter {
    align-self: flex-end;
    align-items: flex-end;
}

.candidatos-chat-msg--candidate {
    align-self: flex-start;
}

.candidatos-chat-msg__bubble {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 500;
    color: var(--ink);
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--border);
    background: var(--card);
}

.candidatos-chat-msg--recruiter .candidatos-chat-msg__bubble {
    background: linear-gradient(135deg, rgba(0, 214, 111, 0.2) 0%, rgba(187, 255, 101, 0.35) 100%);
    border-color: rgba(0, 214, 111, 0.35);
}

.candidatos-chat-msg__time {
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
}

.candidatos-chat-modal__footer {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 14px 16px;
    border-top: 1px solid var(--border);
    background: var(--card);
}

.candidatos-chat-modal__input {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    resize: vertical;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    font: inherit;
    font-size: 0.88rem;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.candidatos-chat-modal__input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 214, 111, 0.15);
}

.candidatos-chat-modal__send {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #000;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 214, 111, 0.28);
    transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.candidatos-chat-modal__send:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.candidatos-chat-modal__send:active:not(:disabled) {
    transform: translateY(0);
}

.candidatos-chat-modal__send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.candidatos-chat-modal__send.is-sending {
    pointer-events: none;
    opacity: 0.65;
}

.candidatos-chat-modal__send-ico {
    display: block;
    flex-shrink: 0;
}

@media (max-width: 519px) {
    .candidatos-chat-modal__send-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .candidatos-chat-modal__send {
        width: 48px;
        padding: 0;
    }
}

/* ============================================================================
   PLATFORM SCORE VERIFICATION — CARD HIGHLIGHT
   ============================================================================ */

.candidato-card--verified-score {
    border-left: 4px solid #00b894 !important;
    box-shadow: 0 2px 12px rgba(0, 184, 148, 0.18), 0 8px 28px rgba(15, 23, 42, 0.08) !important;
    background: linear-gradient(135deg, rgba(0, 214, 111, 0.02), var(--card));
}

.candidato-card--verified-score:hover {
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.22), 0 12px 36px rgba(15, 23, 42, 0.12) !important;
}

.score-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #00d66f, #00b894);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
    margin-left: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 214, 111, 0.3);
}

/* Ver Score Button - Padronizado com os demais botões */
.btn-ver-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.btn-ver-score:hover {
    border-color: rgba(0, 214, 111, 0.45);
    box-shadow: 0 4px 16px rgba(0, 214, 111, 0.14);
    transform: translateY(-1px);
}

.btn-ver-score:active {
    transform: translateY(0);
}

.btn-ver-score:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-ver-score__ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
    opacity: 0.88;
}

.candidato-card__score-cta {
    flex: 1;
    min-width: min(100%, 148px);
}

/* ============================================================================
   CANDIDATE SCORE MODAL - REDESIGN IMPACTANTE E PROFISSIONAL
   ============================================================================ */

.candidate-score-modal {
    border: none;
    border-radius: 20px;
    padding: 0;
    max-width: 680px;
    width: 92vw;
    box-shadow: 
        0 0 0 1px rgba(0, 214, 111, 0.1),
        0 20px 60px rgba(15, 23, 42, 0.25),
        0 40px 100px rgba(0, 214, 111, 0.15);
    background: linear-gradient(180deg, rgba(242, 251, 246, 0.95), #ffffff);
    overflow: hidden;
}

.candidate-score-modal::backdrop {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.candidate-score-modal__content {
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    overflow: hidden;
}

.candidate-score-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px 24px;
    background: linear-gradient(135deg, rgba(0, 214, 111, 0.08) 0%, rgba(187, 255, 101, 0.12) 100%);
    border-bottom: 2px solid rgba(0, 214, 111, 0.15);
    position: relative;
}

.candidate-score-modal__header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #00b894, var(--primary));
}

.candidate-score-modal__header h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 12px;
}

.candidate-score-modal__header h2::before {
    content: "★";
    display: inline-block;
    font-size: 1.6rem;
    color: var(--primary);
    filter: drop-shadow(0 2px 4px rgba(0, 214, 111, 0.3));
}

.candidate-score-modal__close {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
    flex-shrink: 0;
}

.candidate-score-modal__close:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
    color: var(--ink);
    transform: scale(1.05);
}

.candidate-score-modal__close img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.candidate-score-modal__close:hover img {
    opacity: 1;
}

.candidate-score-modal__body {
    padding: 32px;
    overflow-y: auto;
    background: #ffffff;
}

.candidate-score-modal__main {
    text-align: center;
    padding: 32px 20px;
    margin-bottom: 32px;
    border-radius: 20px;
    background: 
        radial-gradient(circle at 50% 0%, rgba(0, 214, 111, 0.12), transparent 65%),
        linear-gradient(180deg, rgba(187, 255, 101, 0.08), rgba(242, 251, 246, 0.4));
    border: 2px solid rgba(0, 214, 111, 0.15);
    box-shadow: 
        0 10px 40px rgba(0, 214, 111, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.candidate-score-modal__main::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(0, 214, 111, 0.06) 90deg,
        transparent 180deg,
        rgba(187, 255, 101, 0.08) 270deg,
        transparent 360deg
    );
    animation: score-modal-rotate 8s linear infinite;
    pointer-events: none;
}

@keyframes score-modal-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .candidate-score-modal__main::before {
        animation: none;
    }
}

.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.score-display__badge {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 
        0 8px 32px rgba(15, 23, 42, 0.12),
        0 20px 50px rgba(0, 214, 111, 0.15);
}

.score-display__badge::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.15;
    filter: blur(12px);
    z-index: -1;
}

.score-display__badge[data-level="none"] {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-color: #cbd5e1;
}

.score-display__badge[data-level="top"] {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: #10b981;
}

.score-display__badge[data-level="confiavel"] {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
}

.score-display__badge[data-level="consistente"] {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #3b82f6;
}

.score-display__badge[data-level="padrao"] {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    border-color: #f97316;
}

.score-display__badge[data-level="iniciante"] {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    border-color: #ec4899;
}

.score-display__badge[data-level="em_avaliacao"] {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-color: #818cf8;
}

.score-display__value {
    font-size: 3.2rem;
    font-weight: 900;
    color: #064e3b;
    line-height: 1;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-variant-numeric: tabular-nums;
}

.score-display__label {
    font-size: 1.25rem;
    font-weight: 800;
    color: #065f46;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.candidate-score-modal__sections {
    display: grid;
    gap: 24px;
}

.score-section {
    padding: 20px 24px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: 
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.score-section:hover {
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.score-section h3 {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-section h3::before {
    content: "";
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

.score-section__text {
    font-size: 1rem;
    color: var(--ink);
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.score-section__text strong {
    font-weight: 700;
    color: #064e3b;
}

.score-components-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.score-components-list li {
    padding: 14px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 214, 111, 0.04), rgba(242, 251, 246, 0.6));
    border: 1px solid rgba(0, 214, 111, 0.15);
    font-size: 0.95rem;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.5;
    transition: background 0.2s ease;
}

.score-components-list li:hover {
    background: linear-gradient(135deg, rgba(0, 214, 111, 0.08), rgba(242, 251, 246, 0.8));
}

.score-components-list strong {
    color: #065f46;
    font-weight: 700;
}

/* Seção especial: O que é o score (destaque) */
.score-section--highlight {
    background: linear-gradient(135deg, rgba(0, 214, 111, 0.06), rgba(187, 255, 101, 0.12));
    border: 2px solid rgba(0, 214, 111, 0.2);
    box-shadow: 
        0 4px 20px rgba(0, 214, 111, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.score-section--highlight h3 {
    color: #064e3b;
}

.score-section--highlight h3::before {
    background: linear-gradient(135deg, var(--primary), #00b894);
}

.score-section--highlight .score-section__text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #064e3b;
}

/* Responsividade */
@media (max-width: 640px) {
    .candidate-score-modal {
        width: 96vw;
        max-height: 94vh;
    }

    .candidate-score-modal__header {
        padding: 20px 20px 18px;
    }

    .candidate-score-modal__header h2 {
        font-size: 1.25rem;
    }

    .candidate-score-modal__body {
        padding: 24px 20px;
    }

    .score-display__badge {
        width: 120px;
        height: 120px;
    }

    .score-display__value {
        font-size: 2.6rem;
    }

    .score-display__label {
        font-size: 1.05rem;
    }
}
