/* Meu perfil — mobile-first, cartões e painéis em tela cheia */

.layout-profile.page-profile {
    background: var(--bg);
    min-height: 100dvh;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}

.layout-profile.page-profile .container.compact {
    width: min(520px, 94%);
    padding-top: 12px;
}

/* ---------- Hero: avatar + editar ---------- */
.profile-hero {
    text-align: center;
    margin: 0 0 20px;
}

.profile-hero__avatar-wrap {
    position: relative;
    display: block;
    width: 112px;
    height: 112px;
    margin: 0 auto 10px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
}

.profile-hero__avatar-wrap:focus-visible {
    outline: 2px solid var(--brand, #00d66f);
    outline-offset: 4px;
}

.layout-profile #profile-photo-preview.profile-photo-preview,
.profile-hero__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    box-sizing: border-box;
}

.layout-profile #profile-photo-preview.profile-photo-preview {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--paper);
    box-shadow: 0 8px 28px rgba(0, 214, 111, 0.18);
}

.layout-profile #profile-photo-preview.profile-photo-preview[hidden],
.profile-hero__placeholder[hidden] {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

.profile-hero__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--surface-hover), var(--border));
    border: 3px solid var(--paper);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--muted);
    line-height: 1;
}

.profile-hero__edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--surface-hover);
    color: var(--ink);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.profile-hero__edit:hover {
    background: rgba(0, 214, 111, 0.16);
    box-shadow: 0 2px 12px rgba(0, 214, 111, 0.15);
}

.profile-hero__edit img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.profile-hero__edit-hint {
    margin: 8px 0 0;
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.35;
    max-width: 280px;
    margin-inline: auto;
}

.profile-page-title {
    margin: 0 0 16px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.profile-page-title img {
    width: 28px;
    height: 28px;
}

/* ---------- Resumo (dl) ---------- */
.profile-summary {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 0 0 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.profile-summary dl {
    margin: 0;
    display: grid;
    gap: 10px;
}

.profile-summary dt {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 0;
}

.profile-summary dd {
    margin: 2px 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    word-break: break-word;
}

/* ---------- Score dial ---------- */
.profile-score-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 16px 16px;
    margin: 0 0 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.profile-score-card__title {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.profile-score-dial {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 12px;
}

.profile-score-dial__svg {
    width: 100%;
    height: 100%;
    display: block;
}

.profile-score-dial__track {
    fill: none;
    stroke: var(--border);
    stroke-width: 10;
}

.profile-score-dial__fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.55s ease, stroke 0.35s ease;
}

.profile-score-dial__fill--high {
    stroke: #00c853;
}

.profile-score-dial__fill--mid {
    stroke: #f97316;
}

.profile-score-dial__fill--low {
    stroke: #ef4444;
}

.profile-score-dial__center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    pointer-events: none;
}

.profile-score-dial__value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
}

.profile-score-dial__unit {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
}

.profile-score-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0 0 10px;
}

.profile-score-meta strong {
    color: var(--ink);
    font-weight: 700;
}

.profile-score-badge {
    margin: 0;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(0, 214, 111, 0.15);
    color: var(--ink);
}

/* ---------- Tiles (atalhos) ---------- */
.profile-tiles {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
}

.profile-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.profile-tile:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 214, 111, 0.12);
}

.profile-tile:active {
    transform: scale(0.99);
}

.profile-tile__ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-tile__ico img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.profile-tile__text {
    flex: 1;
    min-width: 0;
}

.profile-tile__label {
    display: block;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--ink);
}

.profile-tile__hint {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 2px;
}

.profile-tile__chev {
    flex-shrink: 0;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1;
}

/* ---------- Accordions ---------- */
.profile-acc {
    margin: 0 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.profile-acc__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: var(--ink);
}

.profile-acc__trigger:hover {
    background: var(--surface-hover);
}

.profile-acc__trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.profile-acc__ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-acc__ico img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.profile-acc__titles {
    flex: 1;
    min-width: 0;
}

.profile-acc__title {
    display: block;
    font-weight: 800;
    font-size: 0.92rem;
}

.profile-acc__sub {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 2px;
}

.profile-acc__chev {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: transform 0.25s ease;
}

.profile-acc__trigger[aria-expanded="true"] .profile-acc__chev {
    transform: rotate(180deg);
}

.profile-acc__panel {
    padding: 0 16px 16px;
    border-top: 1px solid var(--border);
    background: rgba(242, 251, 246, 0.5);
}

.profile-acc__panel[hidden] {
    display: none !important;
}

.profile-acc__panel .form-card,
.profile-acc__panel > form {
    margin-top: 12px;
}

.profile-acc__panel-inner {
    padding-top: 12px;
}

.profile-acc__panel-inner > p {
    margin: 0 0 8px;
}

.profile-acc__panel-inner > p:last-child {
    margin-bottom: 0;
}

/* Forms inside accordions — remove double card feel */
.profile-acc__panel form {
    display: grid;
    gap: 10px;
}

.profile-acc__panel .muted {
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Cargos de interesse (CBO) — largura contida, alinhada à coluna única dos cards da home */
.layout-profile #cbo-interests-profile-mount {
    width: 100%;
    max-width: min(520px, 100%);
    margin-inline: auto;
    box-sizing: border-box;
}

.layout-profile #cbo-interests-profile-mount .cbo-interest {
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 960px) {
    .layout-profile #cbo-interests-profile-mount {
        max-width: min(544px, 100%);
    }
}

/* Dados do colaborador no painel de integração com o ponto */
.profile-ponto-cadastro {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.profile-ponto-cadastro__title {
    margin: 0 0 8px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--ink);
}

.profile-ponto-cadastro__dl {
    margin: 0;
    display: grid;
    gap: 8px;
    font-size: 0.88rem;
}

.profile-ponto-cadastro__dl > div {
    display: grid;
    grid-template-columns: minmax(0, 110px) 1fr;
    gap: 8px 12px;
    align-items: baseline;
}

.profile-ponto-cadastro__dl dt {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.profile-ponto-cadastro__dl dd {
    margin: 0;
    word-break: break-word;
}

/* ---------- Fullsheet dialogs ---------- */
.profile-fullsheet {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: var(--bg);
}

.profile-fullsheet::backdrop {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
}

.profile-fullsheet__toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.profile-fullsheet__toolbar h2 {
    margin: 0;
    flex: 1;
    font-size: 1.05rem;
    font-weight: 800;
    min-width: 0;
}

.profile-fullsheet__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--paper);
    font: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.profile-fullsheet__close img {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.9;
}

.profile-fullsheet__close:hover {
    border-color: var(--primary);
    background: var(--surface-hover);
}

.profile-fullsheet__body {
    padding: 16px 14px max(24px, env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    max-height: calc(100dvh - 64px);
}

.profile-fullsheet__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.profile-fullsheet__jobs.jobs-grid {
    margin-top: 0;
}

/* Painel tela cheia: candidaturas e vagas salvas centralizados no desktop */
.profile-applications-shell {
    width: 100%;
    max-width: min(560px, 100%);
    margin-inline: auto;
    box-sizing: border-box;
    min-width: 0;
}

.layout-profile .applications-list-root {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
}

.profile-saved-jobs-shell {
    width: 100%;
    max-width: min(1120px, 100%);
    margin-inline: auto;
    box-sizing: border-box;
}

.profile-fullsheet__actions--applications {
    gap: 10px;
    margin-bottom: 18px;
}

@media (max-width: 959px) {
    .layout-profile .profile-saved-jobs-shell .profile-fullsheet__jobs.jobs-grid {
        justify-items: center;
    }

    .layout-profile .profile-saved-jobs-shell .jobs-grid > .job-card {
        width: 100%;
        max-width: min(420px, 100%);
    }
}

@media (min-width: 960px) {
    .layout-profile .profile-saved-jobs-shell .profile-fullsheet__jobs.jobs-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        justify-items: stretch;
    }

    .layout-profile .profile-saved-jobs-shell .jobs-grid > .job-card {
        max-width: none;
    }

    .layout-profile .profile-saved-jobs-shell .job-card--interactive {
        min-height: 220px;
        align-content: start;
    }
}

/* ---------- Logout ---------- */
.profile-logout-row {
    margin: 20px 0 8px;
    text-align: center;
}

/* ---------- Stepper dialog ---------- */
.layout-profile .application-stepper-dialog {
    max-width: min(560px, 96vw);
}

@media (min-width: 480px) {
    .profile-hero__avatar-wrap,
    .layout-profile #profile-photo-preview.profile-photo-preview,
    .profile-hero__placeholder {
        width: 120px;
        height: 120px;
    }

    .profile-score-dial {
        width: 160px;
        height: 160px;
    }

    .profile-score-dial__value {
        font-size: 2.25rem;
    }
}

/* ---------- Minhas candidaturas: lista em cards (sem badge na lista; status só no modal) ---------- */
.layout-profile .applications-list--cards {
    gap: 16px;
    width: 100%;
    min-width: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.layout-profile .application-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.layout-profile .application-card:hover {
    border-color: rgba(0, 214, 111, 0.35);
    box-shadow: 0 8px 28px rgba(0, 214, 111, 0.1);
}

.layout-profile .application-card:active {
    transform: scale(0.998);
}

.layout-profile .application-card__main {
    padding: 18px 18px 16px;
    min-width: 0;
    box-sizing: border-box;
}

.layout-profile .application-card__title {
    margin: 0;
    width: 100%;
    min-width: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: var(--ink);
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.layout-profile .application-card__company {
    margin: 10px 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.45;
    overflow-wrap: break-word;
    word-break: break-word;
}

.layout-profile .application-card__meta-wrap {
    margin-top: 14px;
    padding: 14px 14px 2px;
    border-radius: 12px;
    background: var(--surface-hover);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    min-width: 0;
}

.layout-profile .application-card__meta {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    padding: 0;
}

.layout-profile .application-card__meta-item {
    margin: 0;
    min-width: 0;
}

.layout-profile .application-card__meta dt {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.layout-profile .application-card__meta dd {
    margin: 6px 0 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 420px) {
    .layout-profile .application-card__meta {
        grid-template-columns: 1fr;
    }
}

.layout-profile .application-card__actions {
    display: flex;
    justify-content: stretch;
    padding: 14px 16px 16px;
    margin: 0;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
}

.layout-profile .application-card__details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.87rem;
    padding: 11px 20px;
    min-height: 44px;
    box-sizing: border-box;
    width: 100%;
}

@media (min-width: 421px) {
    .layout-profile .application-card__actions {
        justify-content: flex-end;
    }

    .layout-profile .application-card__details-btn {
        width: auto;
        min-width: 10rem;
    }
}

/* Sobrescreve lista “flat” do global: manter flex no próprio <li> (antes display:block quebrava o layout) */
.layout-profile .applications-list--cards .applications-list__item.application-card {
    border-bottom: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    max-width: 100%;
}

/* ---------- Modal candidatura: cabeçalho e ações com ícones ---------- */
.layout-profile .application-stepper-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.86rem;
}

.layout-profile .application-stepper-close-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.layout-profile .application-stepper-dialog__head {
    align-items: center;
}

.layout-profile .application-stepper-dialog__intro {
    margin-bottom: 20px;
    padding: 18px 18px 16px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.layout-profile .application-stepper-dialog__intro p {
    margin: 0;
}

.layout-profile .application-stepper-dialog__company {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.layout-profile .application-stepper-dialog__row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.layout-profile .application-stepper-dialog__row--muted .application-stepper-dialog__value {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.4;
}

.layout-profile .application-stepper-dialog__label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    min-width: 0;
}

.layout-profile .application-stepper-dialog__value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    word-break: break-word;
}

.layout-profile .application-stepper-dialog__pill {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 7px 14px;
    border-radius: 999px;
}

/* Cores do status só no modal (classes reutilizadas pelo JS) */
.layout-profile .application-stepper-dialog__pill.application-card__status--enviado {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.layout-profile .application-stepper-dialog__pill.application-card__status--analise {
    background: rgba(249, 115, 22, 0.16);
    color: #c2410c;
}

.layout-profile .application-stepper-dialog__pill.application-card__status--final {
    background: rgba(139, 92, 246, 0.14);
    color: #6d28d9;
}

.layout-profile .application-stepper-dialog__pill.application-card__status--aprovado {
    background: rgba(0, 200, 83, 0.18);
    color: #047857;
}

.layout-profile .application-stepper-dialog__pill.application-card__status--reprovado {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.layout-profile .application-stepper-dialog__pill.application-card__status--default {
    background: var(--surface-hover);
    color: var(--muted);
}

.layout-profile .application-stepper-dialog__cta {
    margin-top: 4px !important;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}

.layout-profile .application-stepper-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
}

.layout-profile .application-stepper-link__ico {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.92;
}

/* Linha do tempo: animação suave ao abrir o modal */
@media (prefers-reduced-motion: no-preference) {
    .layout-profile .candidatura-stepper-step {
        animation: profile-stepper-row-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
        animation-delay: calc(var(--step-index, 0) * 0.07s);
    }

    .layout-profile .candidatura-stepper-active .candidatura-stepper-circle {
        animation: profile-stepper-node-pulse 2.4s ease-in-out infinite;
    }
}

@keyframes profile-stepper-row-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes profile-stepper-node-pulse {
    0%,
    100% {
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    }
    50% {
        box-shadow:
            0 4px 14px rgba(29, 78, 216, 0.2),
            0 0 0 4px rgba(59, 130, 246, 0.12);
    }
}

/* ----- Exclusão de conta (candidato + empresa) — crítica e elegante ----- */
.layout-profile .profile-danger-zone,
.layout-profile.page-empresa-config .empresa-config-danger-zone {
    margin: 28px 0 0;
    padding: 20px 0 8px;
    border-top: 1px solid rgba(185, 28, 28, 0.15);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.layout-profile .btn-danger-emprega {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 12px;
    color: #991b1b;
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.95), rgba(254, 226, 226, 0.88));
    border: 1px solid rgba(220, 38, 38, 0.35);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 4px 18px rgba(185, 28, 28, 0.12);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.layout-profile .btn-danger-emprega:hover {
    color: #7f1d1d;
    background: linear-gradient(180deg, #fff1f2, #ffe4e6);
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 6px 22px rgba(185, 28, 28, 0.15);
}

.layout-profile .btn-danger-emprega:active {
    transform: translateY(1px);
}

.layout-profile .btn-danger-emprega img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.95;
    flex-shrink: 0;
}

.emprega-ad-dlg {
    max-width: min(440px, 94vw);
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 0;
    background: var(--paper, #fff);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.emprega-ad-dlg::backdrop {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
}

.emprega-ad-dlg__inner {
    padding: 24px 22px 22px;
}

.emprega-ad-dlg__title {
    font-size: 1.12rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.3;
    color: var(--text, #0f172a);
}

.emprega-ad-dlg__lead {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--muted, #64748b);
    margin: 0 0 20px;
}

.emprega-ad-dlg__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text, #0f172a);
    margin-bottom: 8px;
}

.emprega-ad-dlg__input {
    display: block;
    width: 100%;
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid var(--border, #e2e8f0);
    padding: 10px 12px;
    font-size: 0.95rem;
}

.emprega-ad-dlg__input:focus {
    outline: 2px solid rgba(0, 214, 111, 0.35);
    border-color: rgba(0, 214, 111, 0.55);
}

.emprega-ad-dlg__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.emprega-ad-dlg__actions .btn {
    min-height: 44px;
    padding-left: 16px;
    padding-right: 16px;
}

.emprega-ad-dlg__err {
    color: #b91c1c;
    font-size: 0.86rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.emprega-ad-btn-continue {
    background: var(--emprega-green, #00d36f) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700;
}

.emprega-ad-btn-continue:hover {
    filter: brightness(0.97);
}

#emprega-ad-full.emprega-ad-full {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-direction: column;
}

#emprega-ad-full.emprega-ad-full[hidden] {
    display: none !important;
}

.emprega-ad-full__card {
    text-align: center;
    max-width: 360px;
    padding: 0 20px;
}

.emprega-ad-full__title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 20px 0 8px;
    color: #0f172a;
}

.emprega-ad-full__sub {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.emprega-ad-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(0, 214, 111, 0.15);
    border-top-color: var(--emprega-green, #00d36f);
    animation: emprega-ad-spin 0.85s linear infinite;
    margin: 0 auto;
}

@keyframes emprega-ad-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Mensagens (candidato) — tela cheia, sem dialog ---------- */

.profile-messages-fullview {
    position: fixed;
    inset: 0;
    z-index: 15000;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    animation: profile-messages-in 0.28s ease;
    overflow: hidden;
    box-sizing: border-box;
}

.profile-messages-fullview[hidden] {
    display: none !important;
}

.profile-messages-shell {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 0 16px;
}

/* Garante um único painel visível (lista vs chat) */
.profile-messages-shell[data-profile-messages-view="list"] #profile-messages-chat-layer {
    display: none !important;
}

.profile-messages-shell[data-profile-messages-view="chat"] #profile-messages-list-layer {
    display: none !important;
}

@keyframes profile-messages-in {
    from {
        opacity: 0.88;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-messages-fullview {
        animation: none;
    }
}

.profile-messages-layer {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Lista: título centralizado; «Fechar» sai do painel (volta ao perfil) — sem «Voltar ao perfil». */
.profile-messages-list-head {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: minmax(4.5rem, 1fr) auto minmax(4.5rem, 1fr);
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    padding-top: max(14px, env(safe-area-inset-top, 0px));
    border-bottom: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    border-radius: 0 0 14px 14px;
}

.profile-messages-close {
    grid-column: 1;
    justify-self: start;
    margin: 0 0 0 10px;
    padding: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.profile-messages-close__ico {
    display: block;
    flex-shrink: 0;
    opacity: 0.72;
    transition: opacity 0.18s ease;
}

.profile-messages-close:hover {
    border-color: rgba(0, 214, 111, 0.45);
    background: var(--surface-hover);
    box-shadow: 0 2px 10px rgba(0, 214, 111, 0.12);
}

.profile-messages-close:hover .profile-messages-close__ico {
    opacity: 1;
}

.profile-messages-list-head__title {
    grid-column: 2;
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-align: center;
    justify-self: center;
}

.profile-messages-list-head__spacer {
    grid-column: 3;
    width: 100%;
    min-height: 1px;
}

.profile-messages-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.profile-messages-back:hover {
    border-color: rgba(0, 214, 111, 0.45);
    background: var(--surface-hover);
    box-shadow: 0 2px 10px rgba(0, 214, 111, 0.12);
}

.profile-messages-back img {
    flex-shrink: 0;
    display: block;
}

/* Cabeçalho do chat: voltar + nome da empresa */
.profile-messages-chat-head {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 0;
    padding-top: max(14px, env(safe-area-inset-top, 0px));
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.profile-messages-chat-head__title {
    order: 2;
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-messages-back--to-list {
    order: 1;
    align-self: flex-start;
    font-size: 0.8rem;
    padding: 8px 12px;
    gap: 8px;
    margin-left: 8px;
}

.profile-messages-back--to-list span {
    line-height: 1.25;
    text-align: left;
}

.profile-messages-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 4px max(24px, env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.profile-messages-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 20px;
    color: var(--muted);
}

.profile-messages-loading--embed {
    flex-shrink: 0;
    padding: 20px;
}

.profile-messages-loading[hidden] {
    display: none !important;
}

.profile-messages-loading__spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(0, 214, 111, 0.2);
    border-top-color: var(--primary);
    animation: profile-messages-spin 0.75s linear infinite;
}

@keyframes profile-messages-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-messages-loading__spinner {
        animation: none;
        border-top-color: rgba(0, 214, 111, 0.45);
    }
}

.profile-messages-loading__text {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
}

.profile-messages-banner {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

.profile-messages-banner--error {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.profile-messages-banner[hidden] {
    display: none !important;
}

.profile-messages-body .profile-messages-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 16px;
}

.profile-messages-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
}

.profile-messages-empty[hidden] {
    display: none !important;
}

.profile-messages-empty p {
    margin: 0;
}

.profile-messages-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    width: 100%;
}

.profile-messages-list[hidden] {
    display: none !important;
}

.profile-msg-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
}

.profile-msg-row__logo-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-msg-row__logo-wrap--ph {
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-hover) 100%);
    border: none;
    box-shadow: 0 2px 12px rgba(0, 214, 111, 0.35);
}

.profile-msg-row__logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-msg-row__logo-ph {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-text);
}

.profile-msg-row__main {
    flex: 1;
    min-width: 0;
}

.profile-msg-row__name {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.profile-msg-row__name-text {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-msg-row__badge {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.28);
    flex-shrink: 0;
}

.profile-msg-row__cta {
    flex-shrink: 0;
    margin: 0;
    padding: 8px 14px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(0, 214, 111, 0.45);
    background: rgba(0, 214, 111, 0.12);
    color: var(--ink);
    transition: background 0.18s ease, border-color 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-msg-row__cta-ico {
    flex-shrink: 0;
    display: block;
}

.profile-msg-row__cta:hover {
    background: rgba(0, 214, 111, 0.2);
    border-color: rgba(0, 214, 111, 0.65);
}

.profile-messages-chat-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 4px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--bg);
}

.profile-msg-bubble-row {
    display: flex;
    flex-direction: column;
    max-width: 88%;
}

.profile-msg-bubble-row--self {
    align-self: flex-end;
    align-items: flex-end;
}

.profile-msg-bubble-row--other {
    align-self: flex-start;
    align-items: flex-start;
}

.profile-msg-bubble {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.profile-msg-bubble-row--other .profile-msg-bubble {
    background: var(--card);
    color: var(--ink);
}

.profile-msg-bubble-row--self .profile-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);
    color: var(--ink);
}

.profile-msg-bubble__time {
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
}

.profile-messages-chat-empty {
    margin: auto 0;
    text-align: center;
    font-size: 0.86rem;
    color: var(--muted);
    font-weight: 600;
    padding: 24px 12px;
}

.profile-messages-chat-empty--loading {
    margin: 0;
    padding: 16px 8px;
}

.profile-messages-compose {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-top: 16px;
    padding: 0 0 max(24px, env(safe-area-inset-bottom, 0px));
    border: 0;
    background: transparent;
    box-shadow: none;
}

.profile-messages-input {
    flex: 1;
    min-height: 48px;
    max-height: 120px;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-messages-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 214, 111, 0.15);
}

.profile-messages-send {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #000;
    font: inherit;
    font-size: 0.84rem;
    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;
}

.profile-messages-send:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.profile-messages-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.profile-messages-send.is-sending {
    pointer-events: none;
    opacity: 0.65;
}

.profile-messages-send__ico {
    display: block;
    flex-shrink: 0;
}

@media (max-width: 420px) {
    .profile-messages-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;
    }

    .profile-messages-send {
        width: 48px;
        padding: 0;
    }
}

/* ---------- Campos de preferência de match no formulário de perfil ---------- */
.profile-salary-range {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 14px 10px;
    margin: 0 0 14px;
    background: var(--bg);
}

.profile-salary-range legend {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0 6px;
    color: var(--ink);
}

.profile-salary-range__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.profile-salary-range__row label {
    font-size: 0.78rem;
    margin: 0;
}

/* ============================================================================
   PLATFORM SCORE VISIBILITY CONTROL
   ============================================================================ */

.profile-score-visibility {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.profile-score-visibility__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.profile-score-visibility__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.profile-score-visibility__help-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.profile-score-visibility__help-btn:hover {
    color: #4a5bff;
}

.profile-score-visibility__body {
    display: grid;
    gap: 20px;
}

.profile-score-visibility__display {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 0;
}

.profile-score-visibility__display .profile-score-dial {
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
}

.platform-score-badge__label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin: 8px 0 4px;
}

.platform-score-description {
    font-size: 0.875rem;
    color: #666;
    margin: 8px 0 0;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch__slider {
    position: relative;
    width: 48px;
    height: 24px;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.3s;
    flex-shrink: 0;
}

.toggle-switch__slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-switch input:checked + .toggle-switch__slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-switch__slider::before {
    transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-switch__slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-switch__label {
    font-size: 0.938rem;
    font-weight: 500;
    color: #1a1a1a;
}

.profile-score-visibility__hint {
    font-size: 0.813rem;
    color: #666;
    margin: 8px 0 0;
}

.profile-score-visibility__hint.success {
    color: #4caf50;
}

.profile-score-visibility__hint.error {
    color: #f44336;
}

/* Foto de perfil — modal ampliado */
.profile-photo-modal {
    border: none;
    border-radius: 16px;
    padding: 0;
    max-width: min(420px, 94vw);
    width: 100%;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.22);
}

.profile-photo-modal::backdrop {
    background: rgba(15, 23, 42, 0.55);
}

.profile-photo-modal__content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.profile-photo-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.profile-photo-modal__header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}

.profile-photo-modal__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: var(--surface-hover);
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.profile-photo-modal__close:hover {
    background: rgba(0, 214, 111, 0.14);
}

.profile-photo-modal__body {
    padding: 20px 18px 12px;
    text-align: center;
}

.profile-photo-modal__preview-wrap {
    position: relative;
    width: min(280px, 72vw);
    height: min(280px, 72vw);
    margin: 0 auto 12px;
}

.profile-photo-modal__image,
.profile-photo-modal__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    box-sizing: border-box;
}

.profile-photo-modal__image {
    object-fit: cover;
    border: 3px solid var(--paper);
    box-shadow: 0 8px 28px rgba(0, 214, 111, 0.18);
}

.profile-photo-modal__image[hidden],
.profile-photo-modal__placeholder[hidden] {
    display: none !important;
}

.profile-photo-modal__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--surface-hover), var(--border));
    border: 3px solid var(--paper);
    font-size: 4rem;
    font-weight: 800;
    color: var(--muted);
}

.profile-photo-modal__status {
    margin: 0 0 8px;
    font-size: 0.88rem;
}

.profile-photo-modal__status:not([hidden]) {
    display: block;
}

.profile-photo-modal__status.error {
    color: var(--danger, #c62828);
}

.profile-photo-modal__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 12px 18px 18px;
}

.profile-photo-modal__footer .btn {
    min-width: 140px;
}

.profile-photo-modal__remove:not([hidden]) {
    display: inline-flex;
}

/* Score Info Modal */
.score-info-modal {
    border: none;
    border-radius: 12px;
    padding: 0;
    max-width: 560px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.score-info-modal::backdrop {
    background: rgba(0,0,0,0.5);
}

.score-info-modal__content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.score-info-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.score-info-modal__header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.score-info-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.score-info-modal__close:hover {
    background: var(--surface-hover);
}

.score-info-modal__close img {
    display: block;
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.score-info-modal__close:hover img {
    opacity: 1;
}

.score-info-modal__body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.score-info-modal__intro {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 20px;
}

.score-info-modal__body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin: 20px 0 10px;
}

.score-info-modal__factors {
    list-style: none;
    padding: 0;
    margin: 0;
}

.score-info-modal__factors li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    line-height: 1.5;
}

.score-info-modal__factors li:last-child {
    border-bottom: none;
}

.score-info-modal__transparency {
    background: rgba(0, 214, 111, 0.08);
    border-left: 4px solid var(--primary);
    padding: 14px;
    border-radius: 8px;
    margin-top: 20px;
}

.score-info-modal__transparency h3 {
    margin-top: 0;
}

.score-info-modal__transparency p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 8px 0;
}

.score-info-modal__note {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
}

.score-info-modal__footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

.score-info-modal__close-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--primary-text);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    font-size: 0.9rem;
}

.score-info-modal__close-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.score-info-modal__close-btn:active {
    transform: translateY(0);
}

/* Responsividade do modal */
@media (max-width: 640px) {
    .score-info-modal {
        width: 95vw;
        max-width: none;
    }

    .score-info-modal__header {
        padding: 16px;
    }

    .score-info-modal__header h2 {
        font-size: 1.05rem;
    }

    .score-info-modal__body {
        padding: 16px;
    }

    .score-info-modal__intro {
        font-size: 0.9rem;
    }

    .score-info-modal__body h3 {
        font-size: 0.9rem;
    }

    .score-info-modal__factors li {
        font-size: 0.85rem;
    }

    .score-info-modal__footer {
        padding: 12px 16px;
    }
}

@media (max-height: 700px) {
    .score-info-modal__content {
        max-height: 85vh;
    }
}
