/* Nova vaga — desktop-first, alinhado ao painel da empresa (empresa-dashboard.css) */

.page-nova-vaga .empresa-shell__body {
    background:
        radial-gradient(120% 55% at 12% -8%, rgba(187, 255, 101, 0.28), transparent 52%),
        radial-gradient(80% 45% at 100% 0%, rgba(0, 214, 111, 0.1), transparent 48%),
        var(--bg);
}

.nova-vaga-main {
    width: min(920px, 94%);
    margin: 0 auto;
    padding: 24px 0 48px;
}

/* Hero */
.nova-vaga-hero {
    margin: 0 0 22px;
    padding: 22px 22px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px 24px;
    align-items: start;
}

@media (max-width: 720px) {
    .nova-vaga-hero {
        grid-template-columns: 1fr;
    }
}

.nova-vaga-hero__text {
    min-width: 0;
}

.nova-vaga-hero__eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.nova-vaga-hero__title {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 2.2vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink);
}

.nova-vaga-hero__lead {
    margin: 0;
    font-size: 0.94rem;
    color: var(--muted);
    line-height: 1.5;
    max-width: 36rem;
}

.nova-vaga-hero__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.nova-vaga-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-hover);
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.nova-vaga-hero__back:hover {
    background: rgba(0, 214, 111, 0.14);
    color: var(--ink);
    box-shadow: 0 2px 12px rgba(0, 214, 111, 0.12);
}

.nova-vaga-hero__back img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.85;
}

.nova-vaga-hero__deco {
    width: 120px;
    height: auto;
    opacity: 0.92;
    filter: drop-shadow(0 8px 20px rgba(0, 214, 111, 0.2));
    animation: nova-vaga-deco-float 4.5s ease-in-out infinite;
}

@keyframes nova-vaga-deco-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.nova-vaga-feedback {
    margin: 0 0 16px;
    min-height: 1.25em;
    font-size: 0.9rem;
}

.nova-vaga-wizard-mount {
    min-height: 120px;
}

/* Wizard shell (inject) */
.nova-vaga-wizard {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Barra de progresso */
.nova-vaga-progress {
    height: 6px;
    border-radius: 999px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    overflow: hidden;
}

.nova-vaga-progress__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-light-strong), var(--primary) 55%, #00b359);
    box-shadow: 0 0 14px rgba(0, 214, 111, 0.35);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Trilho de passos */
.nova-vaga-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 6px 4px;
}

@media (max-width: 1100px) {
    .nova-vaga-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.nova-vaga-track__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 8px 4px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.nova-vaga-track__step.is-current {
    background: rgba(187, 255, 101, 0.22);
    border-color: rgba(0, 214, 111, 0.35);
}

.nova-vaga-track__step.is-complete {
    background: rgba(0, 214, 111, 0.08);
}

.nova-vaga-track__step.is-complete .nova-vaga-track__dot {
    background: var(--primary);
    color: var(--primary-text);
    border-color: var(--primary);
}

.nova-vaga-track__dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--card);
    border: 2px solid var(--border);
    color: var(--muted);
    flex-shrink: 0;
}

.nova-vaga-track__step.is-current .nova-vaga-track__dot {
    border-color: var(--primary);
    color: var(--ink);
    box-shadow: 0 0 0 3px rgba(0, 214, 111, 0.2);
}

.nova-vaga-track__name {
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nova-vaga-track__step.is-current .nova-vaga-track__name {
    color: var(--ink);
}

/* Cartão do passo */
.nova-vaga-wizard .wizard-card {
    padding: 0;
    overflow: hidden;
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid var(--border);
    box-shadow: 0 12px 44px rgba(15, 23, 42, 0.08);
    animation: nova-vaga-step-in 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes nova-vaga-step-in {
    from {
        opacity: 0.72;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nova-vaga-wizard__card-inner {
    padding: 22px 24px 20px;
}

.nova-vaga-wizard__head {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.nova-vaga-wizard .wizard-progress {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.nova-vaga-wizard__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.nova-vaga-wizard__title-row h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    flex: 1;
    min-width: 0;
}

.nova-vaga-wizard__lead {
    margin: 10px 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 52rem;
}

/* Tooltip ajuda (? ) */
.wizard-help-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    outline: none;
}

.wizard-help-wrap__btn {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-hover);
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    font-size: 0.88rem;
    line-height: 1;
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.wizard-help-wrap:hover .wizard-help-wrap__btn,
.wizard-help-wrap:focus-within .wizard-help-wrap__btn {
    background: rgba(0, 214, 111, 0.18);
    color: var(--ink);
    box-shadow: 0 2px 12px rgba(0, 214, 111, 0.15);
}

.wizard-help-wrap__pop {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(360px, calc(100vw - 48px));
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s;
    pointer-events: none;
    text-align: left;
}

.wizard-help-wrap:hover .wizard-help-wrap__pop,
.wizard-help-wrap:focus-within .wizard-help-wrap__pop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nova-vaga-wizard .wizard-body {
    margin: 0;
}

.nova-vaga-wizard .wizard-actions {
    margin: 0;
    padding: 18px 24px 22px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(242, 251, 246, 0.45), var(--card));
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.nova-vaga-wizard .wizard-actions .btn {
    min-height: 44px;
    padding-inline: 18px;
}

.nova-vaga-btn-prev,
.nova-vaga-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nova-vaga-btn-prev img,
.nova-vaga-btn-next img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.nova-vaga-btn-next.btn-primary {
    box-shadow: 0 4px 18px rgba(0, 214, 111, 0.32);
}

.nova-vaga-wizard [data-wizard-feedback]:not([hidden]) {
    margin: 12px 24px 20px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff4cc;
    border: 1px solid #fde68a;
    color: #7c4d00;
    font-size: 0.88rem;
    line-height: 1.45;
}

/* —— Passo 8: Formulário adicional (construtor) —— */
.nv-tipo-candidatura {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nv-addform-tipo-sel {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
}

.nv-addform-builder {
    margin-top: 8px;
    padding: 20px 18px 18px;
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid var(--border);
    background: linear-gradient(165deg, rgba(0, 214, 111, 0.06), rgba(187, 255, 101, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nv-addform-builder.is-hidden {
    display: none;
}

.nv-addform-builder__head {
    margin-bottom: 16px;
}

.nv-addform-builder__title {
    margin: 0 0 6px;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.nv-addform-builder__lead {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.nv-addform-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nv-addform-card {
    padding: 18px 18px 16px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.nv-addform-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.nv-addform-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink);
    background: rgba(187, 255, 101, 0.45);
    border: 1px solid rgba(0, 214, 111, 0.3);
}

.nv-addform-remove-q {
    font-size: 0.8rem;
    min-height: 36px;
    padding: 6px 12px;
    border-color: rgba(15, 23, 42, 0.12);
}

.nv-addform-input,
.nv-addform-input:focus {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    font: inherit;
    font-size: 0.92rem;
    color: var(--ink);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    box-sizing: border-box;
}

.nv-addform-input:focus {
    outline: none;
    border-color: rgba(0, 214, 111, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 214, 111, 0.18);
}

.nv-addform-input--preview {
    opacity: 0.85;
    background: var(--surface-hover);
    cursor: not-allowed;
}

.nv-addform-subfield {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(0, 214, 111, 0.25);
}

.nv-addform-subfield__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 8px;
}

.nv-addform-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nv-addform-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-hover);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    user-select: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.nv-addform-pill:hover {
    background: rgba(0, 214, 111, 0.1);
    border-color: rgba(0, 214, 111, 0.35);
}

.nv-addform-pill:has(:checked) {
    background: rgba(0, 214, 111, 0.16);
    border-color: rgba(0, 214, 111, 0.45);
    box-shadow: 0 2px 10px rgba(0, 214, 111, 0.12);
}

.nv-addform-pill input {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #00a854;
}

.nv-addform-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.nv-addform-option-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.nv-addform-option-row .nv-addform-option-input {
    flex: 1 1 12rem;
    min-width: 0;
}

.nv-addform-option-grip {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.5;
}

.nv-addform-opt-remove {
    flex-shrink: 0;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.nv-addform-add-option,
.nv-addform-new-q {
    min-height: 44px;
    font-weight: 700;
}

/* Passo 8: botões com ícone + rótulo visível */
.nv-addform-icon-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.nv-addform-icon-btn__label {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    white-space: normal;
    text-align: left;
}

.nv-addform-icon-btn__img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.nv-addform-icon-btn.nv-addform-new-q.btn-primary .nv-addform-icon-btn__label,
.nv-addform-icon-btn.nv-score-new-q.btn-primary .nv-addform-icon-btn__label {
    color: var(--primary-text, #0f172a);
}

.nv-addform-icon-btn.nv-addform-new-q.btn-primary,
.nv-addform-icon-btn.nv-score-new-q.btn-primary {
    padding: 10px 16px;
    box-shadow: 0 4px 16px rgba(0, 214, 111, 0.28);
}

.nv-addform-icon-btn.nv-addform-new-q:hover:not(:disabled),
.nv-addform-icon-btn.nv-score-new-q:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 214, 111, 0.32);
}

.nv-addform-icon-btn.nv-addform-remove-q {
    padding: 8px 12px;
    min-width: 40px;
    min-height: 40px;
    border-color: rgba(15, 23, 42, 0.12);
}

.nv-addform-icon-btn.nv-addform-remove-q .nv-addform-icon-btn__label {
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--ink);
}

.nv-addform-icon-btn.nv-addform-remove-q:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.35);
    color: #b91c1c;
}

.nv-addform-icon-btn.nv-addform-remove-q:hover:not(:disabled) .nv-addform-icon-btn__img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(86%) saturate(1850%) hue-rotate(330deg);
}

.nv-addform-icon-btn.nv-addform-remove-q:hover:not(:disabled) .nv-addform-icon-btn__label {
    color: #b91c1c;
}

.nv-addform-icon-btn.nv-addform-add-option {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    justify-content: center;
    border-color: rgba(0, 214, 111, 0.28);
    background: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.nv-addform-icon-btn.nv-addform-add-option .nv-addform-icon-btn__label {
    font-size: 0.88rem;
    color: var(--ink);
}

.nv-addform-icon-btn.nv-addform-add-option:hover:not(:disabled) {
    background: rgba(0, 214, 111, 0.08);
    border-color: rgba(0, 214, 111, 0.45);
}

.nv-addform-icon-btn.nv-addform-opt-remove {
    min-width: auto;
    font-size: inherit;
    font-weight: 700;
}

.nv-addform-icon-btn.nv-addform-opt-remove .nv-addform-icon-btn__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
}

.nv-addform-footer {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.nv-addform-limit {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--muted);
}

.nv-addform-limit--visible {
    color: #92400e;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 8px 12px;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .nv-addform-builder {
        padding: 16px 14px 14px;
    }

    .nv-addform-card {
        padding: 16px 14px 14px;
    }
}

/* —— Passo 8: Candidatura com pontuação —— */
.nv-score-builder {
    margin-top: 8px;
    padding: 20px 18px 18px;
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid var(--border);
    background: linear-gradient(165deg, rgba(0, 100, 80, 0.06), rgba(0, 214, 111, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nv-score-builder.is-hidden {
    display: none;
}

.nv-score-builder__head {
    margin-bottom: 16px;
}

.nv-score-builder__lead {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.nv-score-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nv-score-card {
    padding: 18px 18px 16px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.nv-score-opts {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nv-score-opt-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) minmax(88px, 120px);
    align-items: end;
    gap: 10px 12px;
    padding: 12px 12px 12px 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(0, 214, 111, 0.05), var(--card));
    border: 1px solid rgba(0, 214, 111, 0.18);
}

.nv-score-opt-badge {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--ink);
    background: rgba(187, 255, 101, 0.5);
    border: 1px solid rgba(0, 214, 111, 0.35);
    justify-self: center;
    margin-bottom: 2px;
}

.nv-score-opt-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nv-score-opt-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
}

.nv-score-opt-scorebox {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nv-score-opt-scorebox__label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    text-align: center;
}

.nv-score-opt-score {
    min-height: 42px;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    padding-left: 8px;
    padding-right: 8px;
    color: var(--ink);
    /* Oculta setas em alguns browsers; número vem de min/max + validação */
    -moz-appearance: textfield;
}

.nv-score-opt-score::-webkit-outer-spin-button,
.nv-score-opt-score::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.nv-score-limit {
    text-align: left;
}

@media (max-width: 640px) {
    .nv-score-opt-row {
        grid-template-columns: 1fr;
        padding: 12px 12px 14px;
    }

    .nv-score-opt-badge {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        margin-bottom: 0;
    }

    .nv-score-opt-row {
        align-items: stretch;
    }

    .nv-score-opt-badge {
        justify-self: start;
    }
}

/* —— Publicação: overlay fullscreen pós "Publicar vaga" —— */
body.nv-publicacao-flow-active {
    overflow: hidden;
}

.nv-publicacao-flow {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top, 0) 16px env(safe-area-inset-bottom, 0);
    box-sizing: border-box;
    pointer-events: auto;
}

.nv-publicacao-flow[hidden] {
    display: none !important;
}

.nv-publicacao-flow--visible .nv-pf__backdrop {
    position: absolute;
    inset: 0;
    background: #ffffff;
    z-index: 0;
}

.nv-publicacao-flow--visible .nv-pf__panel {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    max-height: min(92dvh, 900px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 32px 24px 40px;
    text-align: center;
    color: var(--ink);
}

.nv-pf__panel--loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: min(60vh, 480px);
}

/* Loader */
.nv-pf__loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 0 28px;
    flex-shrink: 0;
}

.nv-pf__spinner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(0, 214, 111, 0.2);
    border-top-color: var(--primary, #00d66f);
    animation: nv-pf-spin 0.85s linear infinite;
    box-shadow: 0 0 24px rgba(0, 214, 111, 0.15);
}

.nv-pf__pulse {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(187, 255, 101, 0.45), rgba(0, 214, 111, 0.2));
    animation: nv-pf-pulse 1.4s ease-in-out infinite;
}

@keyframes nv-pf-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes nv-pf-pulse {
    0%,
    100% {
        transform: scale(0.92);
        opacity: 0.65;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.nv-pf__title {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 4.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--ink);
}

.nv-pf__sub {
    margin: 0 auto;
    max-width: 26rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--muted);
}

/* Sucesso: check */
.nv-pf__success-anim {
    margin: 0 auto 20px;
    color: var(--primary, #00d66f);
    animation: nv-pf-success-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nv-pf__check {
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 6px 20px rgba(0, 214, 111, 0.25));
}

.nv-pf__check-ring {
    color: var(--primary, #00d66f);
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: nv-pf-ring-draw 0.55s ease forwards 0.05s;
}

.nv-pf__check-mark {
    color: #00a854;
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: nv-pf-check-draw 0.45s ease forwards 0.35s;
}

@keyframes nv-pf-success-in {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes nv-pf-ring-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes nv-pf-check-draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Card compartilhar */
.nv-pf__card {
    margin: 28px 0 0;
    padding: 22px 20px 20px;
    text-align: left;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 6px);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.07);
    animation: nv-pf-card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.nv-pf__card-title {
    margin: 0 0 8px;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.nv-pf__card-text {
    margin: 0 0 18px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--muted);
}

.nv-pf__copy-btn {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 214, 111, 0.28);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

/* Texto e ícone alinhados ao verde do primário: contraste com branco */
.nv-publicacao-flow--visible .btn.btn-primary.nv-pf__copy-btn,
.nv-publicacao-flow--visible .btn.btn-primary.nv-pf__copy-btn .nv-pf__copy-btn-text {
    color: #ffffff;
}

.nv-pf__copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 214, 111, 0.32);
}

.nv-pf__copy-btn--ok {
    animation: nv-pf-copy-pulse 0.55s ease;
}

.nv-pf__copy-ico {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
    opacity: 0.95;
}

@keyframes nv-pf-copy-pulse {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

.nv-pf__copy-feedback {
    margin: 12px 0 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: #00a854;
    text-align: center;
    animation: nv-pf-fade-in 0.3s ease;
}

@keyframes nv-pf-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes nv-pf-card-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Artes */
.nv-pf__art {
    margin: 20px 0 0;
    padding: 20px 18px 18px;
    text-align: left;
    background: linear-gradient(180deg, rgba(187, 255, 101, 0.12), rgba(0, 214, 111, 0.06));
    border: 1px solid rgba(0, 214, 111, 0.22);
    border-radius: calc(var(--radius) + 6px);
    animation: nv-pf-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.nv-pf__art-title {
    margin: 0 0 6px;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.nv-pf__art-lead {
    margin: 0 0 16px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--muted);
}

.nv-pf__art-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 520px) {
    .nv-pf__art-actions {
        grid-template-columns: 1fr;
    }
}

.nv-pf__art-btn {
    min-height: 64px;
    padding: 12px 14px;
    border-radius: 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 800;
    text-align: left;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.nv-pf__art-btn-ico {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.95;
}

.nv-pf__art-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

.nv-pf__art-btn:hover {
    transform: translateY(-1px);
    background: rgba(0, 214, 111, 0.08);
    border-color: rgba(0, 214, 111, 0.45);
}

.nv-pf__art-btn-label {
    font-size: 0.92rem;
}

.nv-pf__art-dim {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.nv-pf__dash {
    margin: 24px 0 0;
}

.nv-pf__dash-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.nv-pf__dash-link-ico {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.88;
}

.nv-pf__dash-link:hover {
    color: var(--ink);
    border-bottom-color: rgba(0, 214, 111, 0.45);
}

/* Etapa final: refinamento visual */
.nv-pf__panel--success {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(240, 253, 244, 0.4) 100%);
    border-radius: 20px;
}
