@import url("/css/page-loading-owl.css");
@import url("/css/loading-skeleton.css");
@import url("/css/components/verified-badge.css");

:root {
    --ink: #000000;
    --paper: #ffffff;
    --bg: #f2fbf6;
    --card: #ffffff;
    --text: #000000;
    --muted: #3d5248;
    --primary: #00d66f;
    --primary-hover: #00bf62;
    --secondary: #bbff65;
    /* Verde principal mais claro (hover/active no CTA do card) */
    --primary-light: #8ef5c4;
    --primary-light-strong: #b8fad9;
    --primary-text: #000000;
    --border: #cfe8d9;
    --surface-hover: #e4f6ec;
    --accent-soft: rgba(187, 255, 101, 0.42);
    --radius: 14px;
    /* Logos SVG em /css/logos/: logo_preto (fundo claro), logo_branco (fundo escuro),
       logo_verde (#00d66f em fundo claro), logo_original (#bbff65 em fundo escuro ou destaque). */
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--text);
    background: var(--bg);
}

/* Candidatura (sem sessão) → login: saída e entrada suaves */
html.emprega-exit-to-login body {
    opacity: 0;
    transition: opacity 0.32s ease;
}

html.emprega-login-enter body {
    opacity: 0;
    animation: emprega-login-body-in 0.48s ease forwards;
}

@keyframes emprega-login-body-in {
    to {
        opacity: 1;
    }
}

a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 92%); margin: 0 auto; padding: 16px 0 28px; }
.container.compact { width: min(560px, 92%); }

.topbar {
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 500;
}

.topbar--spread {
    flex-wrap: wrap;
    gap: 10px;
}

/* Home: faixa um pouco mais baixa para caber marca maior sem “inflar” o topo */
.topbar.topbar--with-mobile-nav {
    padding-block: 10px;
}

#auth-slot {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.home-topbar-login.btn-primary {
    background: linear-gradient(145deg, #2be88f 0%, var(--primary) 42%, #00b359 100%);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 214, 111, 0.38);
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease,
        filter 0.2s ease;
}

.home-topbar-login.btn-primary:hover:not(:disabled) {
    background: linear-gradient(145deg, #45f09e 0%, #00e06c 45%, #00c853 100%);
    filter: brightness(1.02);
    box-shadow: 0 6px 22px rgba(0, 214, 111, 0.48);
    transform: translateY(-1px);
}

.home-topbar-login.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    filter: brightness(0.98);
}

/* Detalhe da vaga: só o CTA (sem logo duplicada); evita dois sticky no mesmo top */
.topbar.vaga-page-cta-bar {
    justify-content: flex-end;
    position: relative;
    top: auto;
}

/* Mesmo bloco de aceite (checkbox nativo) do cadastro: caixa, borda e alinhamento */
.signup-policies-accept {
    margin: 4px 0 0;
    padding: 10px 11px;
    border-radius: var(--radius);
    border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
    background: color-mix(in srgb, var(--card) 96%, var(--bg));
}

.signup-policies-accept__label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--ink);
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

.signup-policies-accept__label:not(.cosmic-checkbox) input {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.signup-policies-accept__label.cosmic-checkbox {
    width: 100%;
}

.signup-policies-accept__text a {
    color: var(--primary-hover);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.signup-policies-accept__text a:hover {
    color: var(--ink);
}

.signup-policies-error {
    margin: 8px 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #b91c1c;
    font-weight: 600;
}

.home-topbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.brand {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text);
}

.brand.brand--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    line-height: 0;
    min-width: 0;
}

.brand__img {
    display: block;
    height: auto;
    width: auto;
    max-height: clamp(40px, 7.5vw, 50px);
    max-width: min(288px, 74vw);
    object-fit: contain;
    object-position: center center;
}

.brand:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 6px;
}

.route-pending-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 248, 251, 0.92);
    backdrop-filter: blur(4px);
}

.route-pending-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    max-width: 22rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.route-pending-title { font-weight: 700; margin: 0 0 0.35rem; }
.route-pending-sub { margin: 0; font-size: 0.9rem; }

.hero h1 { margin: 8px 0 6px; font-size: 1.6rem; }
.hero p { margin: 0; color: var(--muted); }

.btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 14px;
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-text);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-outline { border-color: var(--border); background: var(--card); color: var(--text); }

/* ---------- Ícones SVG Emprega BP (/assets/icons) ---------- */
.emprega-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.emprega-icon-img {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

.emprega-icon-label {
    display: inline;
}

.btn .emprega-icon-wrap {
    margin-inline-end: 0.42em;
}

.btn.btn-outline .emprega-icon-wrap:last-child,
.btn.btn-primary .emprega-icon-wrap:last-child {
    margin-inline-end: 0;
}

.btn--icon-leading .emprega-icon-wrap:first-child {
    margin-inline-end: 0.45em;
}

.public-site-header__link,
.profile-shell__nav-a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.public-site-header__nav-text,
.profile-shell__nav-a .emprega-icon-label {
    line-height: 1.25;
}

.public-site-header__nav-ico .emprega-icon-img {
    width: 1.05rem;
    height: 1.05rem;
    opacity: 0.92;
}

.public-site-header__link.is-active .public-site-header__nav-ico .emprega-icon-img,
.profile-shell__nav-a.is-active .emprega-icon-img {
    opacity: 1;
}

.emprega-mobile-drawer__ico {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.emprega-mobile-drawer__ico .emprega-icon-img {
    width: 1.2rem;
    height: 1.2rem;
    min-width: 1.2rem;
    min-height: 1.2rem;
    display: block;
    object-fit: contain;
    opacity: 0.9;
}

.emprega-mobile-drawer__label {
    line-height: 1.35;
    min-width: 0;
}

.btn-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    /* Acima do banner de cookies (6000), do drawer mobile e da topbar sticky */
    z-index: 6200;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--ink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.btn-back-to-top[hidden] {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    display: flex !important; /* Override hidden */
}

.btn-back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-back-to-top:active {
    transform: translateY(0);
}

.btn-back-to-top img {
    display: block;
}

.empresa-shell__nav-ico,
.empresa-shell__footer-ico {
    flex-shrink: 0;
}

.empresa-shell__nav-ico .emprega-icon-img {
    width: 1.15rem;
    height: 1.15rem;
    opacity: 0.88;
}

.empresa-shell__nav-link.is-active .empresa-shell__nav-ico .emprega-icon-img {
    opacity: 1;
}

.empresa-shell__footer-link,
.empresa-shell__sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
}

.empresa-shell__footer-ico .emprega-icon-img {
    width: 1.1rem;
    height: 1.1rem;
}

.job-card__salary-pill-ico .emprega-icon-img {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}

.job-card__meta-ico-svg .emprega-icon-img {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 2px;
    opacity: 0.88;
}

.job-card__meta-ico-svg--muted .emprega-icon-img {
    opacity: 0.72;
}

.job-card__pub-ico .emprega-icon-img {
    width: 0.95rem;
    height: 0.95rem;
    opacity: 0.75;
    flex-shrink: 0;
}

.job-card__cta-ico .emprega-icon-img {
    width: 1.27rem;
    height: 1.27rem;
}

.dashboard-job-actions .emprega-icon-wrap {
    margin-inline-end: 0.35em;
}

.dashboard-job-actions .emprega-icon-wrap:last-child {
    margin-inline-end: 0;
}

.auth-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.filters-section, .job-card, .job-detail-card, .form-card, .wizard-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.filters-grid {
    padding: 12px;
    display: grid;
    gap: 8px;
}

input, select, textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: var(--paper);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

textarea { min-height: 120px; resize: vertical; }

.jobs-grid {
    margin-top: 14px;
    display: grid;
    gap: 12px;
    justify-items: stretch;
}

/* Mobile / tablet: um card por linha, centralizado (home e painel de vagas salvas) */
@media (max-width: 959px) {
    .jobs-grid {
        justify-items: center;
        /*
         Coluna flexível com piso zero: sem isso o trilho implícito `auto`
         pode crescer além da largura do container (min-content dos filhos),
         deslocando visualmente os cards ou gerando overflow lateral — sobretudo
         no rodapé do card (`flex-wrap: nowrap` + CTA fixo).
        */
        grid-template-columns: minmax(0, 1fr);
    }

    .jobs-grid > .job-card {
        width: 100%;
        max-width: min(420px, 100%);
        min-width: 0;
        justify-self: center;
        margin-inline: auto;
        box-sizing: border-box;
    }
}

/* Card de vaga — listagem home (link inteiro clicável) */
.job-card {
    padding: 0;
    display: block;
}

.job-card--interactive {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    background: var(--card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
    cursor: pointer;
    will-change: transform;
}

.job-card--interactive:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px) scale(1.01);
}

.job-card--interactive:active {
    transform: translateY(-1px) scale(1.01);
}

.job-card--interactive:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Inner Tint (Colored Area) */
.job-card__inner-tint {
    border-radius: 12px;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 12px;
}

.job-card__inner-tint--0 { background-color: #d1fae5; } /* emerald-100 */
.job-card__inner-tint--1 { background-color: #e0e7ff; } /* blue-100 */
.job-card__inner-tint--2 { background-color: #fef08a; } /* yellow-200 */
.job-card__inner-tint--3 { background-color: #fce7f3; } /* pink-100 */
.job-card__inner-tint--4 { background-color: #ffedd5; } /* orange-100 */
.job-card__inner-tint--5 { background-color: #e0f2fe; } /* sky-100 */
.job-card__inner-tint--6 { background-color: #f3e8ff; } /* fuchsia-100 */
.job-card__inner-tint--7 { background-color: #dcfce7; } /* green-100 */

.job-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.job-card__urgency-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.job-card__save-btn {
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
    color: var(--ink);
}

.job-card__save-btn:hover {
    transform: scale(1.1);
}

.job-card__save-btn.is-saved {
    background: var(--ink);
    color: var(--paper);
}

.job-card__save-btn.is-saved .emprega-icon-img {
    filter: invert(1);
}

.job-card__title {
    margin: 4px 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.job-card__location {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink);
    opacity: 0.85;
}

.job-card__pills-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    gap: 10px 12px;
    margin-top: 2px;
    row-gap: 10px;
}

.job-card__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    flex: 0 1 auto;
}

/* Footer Bar (Company + Button) */
.job-card__footer-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 4px 8px 4px 4px;
}

.job-card__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.job-card__logo-wrap {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muted);
}

.job-card__logo-wrap--placeholder {
    background: linear-gradient(145deg, #e4f6ec, #cfe8d9);
    color: var(--ink);
}

.job-card__logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.job-card__company-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    flex: 1 1 auto;
}

/* Nome + selo como um bloco só: ícone junto ao último caractere quando o nome é curto. */
.job-card__company-cluster {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
}

.job-card__company-text {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.job-card__company {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.job-card__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    width: auto;
    max-width: min(46%, 157px);
    min-width: 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--primary-text);
    font-weight: 700;
    font-size: 0.84rem;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.job-card__cta-btn:hover {
    background: var(--primary-light);
    color: var(--ink);
}

.job-card__cta-btn:active {
    background: var(--primary-light-strong);
    transform: scale(0.97);
}

/* Ícone do CTA «Candidatar-se» à direita do texto (listagem, detalhe da vaga) */
.job-card__cta-btn--icon-end {
    gap: 8px;
}

.job-card--interactive:hover .job-card__cta-btn:not(:active) {
    transform: translateY(-1px);
}

.job-card--interactive:hover .job-card__cta-btn:active {
    transform: scale(0.97);
}

.job-card__urgency {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    line-height: 1.2;
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.job-card__urgency-content {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.job-card__urgency-ico .emprega-icon-img {
    width: 14px;
    height: 14px;
    display: block;
}

/* Badge variants */
.job-card__urgency--match {
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    color: #fff;
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.32);
}
.job-card__urgency--match .emprega-icon-img {
    filter: brightness(0) invert(1);
}

.job-card__urgency--recomendado {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    color: #fff;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.30);
}
.job-card__urgency--recomendado .emprega-icon-img {
    filter: brightness(0) invert(1);
}

.job-card__urgency--nova {
    background: linear-gradient(135deg, #00695c, #00897b);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 105, 92, 0.25);
}
.job-card__urgency--nova .emprega-icon-img {
    filter: brightness(0) invert(1);
}

.job-card__urgency--destaque {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.35);
}
.job-card__urgency--destaque .emprega-icon-img {
    filter: brightness(0) invert(1);
}

/* Banco de Talentos — igual à home (`index`) em qualquer página com `job-card` */
.job-card__urgency--banco-talentos {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 5px 10px 5px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.job-card__urgency--banco-talentos .emprega-icon-img {
    filter: brightness(0) invert(1);
}

.job-card__urgency--banco-talentos .job-card__urgency-label {
    font-size: 0.82rem;
}

.job-detail__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-detail__title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.job-detail__logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--surface-hover);
}

.job-detail__title-row h2 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Detalhe da vaga — ícones da pasta /assets/icons/detalhes da vaga/ */
.job-detail__meta-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}

.job-detail__meta-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.job-detail__meta-ico {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    margin-top: 0.12em;
}

.job-detail__meta-ico .emprega-icon-img {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    display: block;
    object-fit: contain;
}

.job-detail__meta-line {
    margin: 0;
    line-height: 1.5;
    font-size: 0.98rem;
    color: var(--text);
    flex: 1;
    min-width: 0;
}

.job-detail__meta-line strong {
    font-weight: 700;
    color: var(--ink);
}

.job-detail__meta-value {
    font-weight: 500;
}

.job-detail__meta-value--with-seal {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.job-detail__section {
    margin-top: 1.25rem;
}

.job-detail__section-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--ink);
}

.job-detail__section-ico {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.job-detail__section-ico .emprega-icon-img {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    display: block;
    object-fit: contain;
}

.job-detail__section-title-text {
    flex: 1;
    min-width: 0;
}

.job-detail__prose {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--text);
}

.job-detail__prose p {
    margin: 0;
}

.job-detail__cta-wrap {
    margin: 4px 0 0;
}

.job-detail__cta.btn {
    gap: 8px;
}

.job-detail__cta.btn .emprega-icon-wrap {
    margin-inline-end: 0;
}

.job-detail__cta-ico .emprega-icon-img {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    display: block;
    object-fit: contain;
}

.job-card__salary-pill {
    display: inline-flex;
    align-self: start;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
    box-sizing: border-box;
}

.job-card__salary-pill-text {
    word-break: break-word;
}

.job-card__salary-pill--range {
    background: rgba(0, 214, 111, 0.16);
    color: #064e3b;
    border: 1px solid rgba(0, 214, 111, 0.38);
}

.job-card__salary-pill--fixed {
    background: rgba(0, 214, 111, 0.12);
    color: var(--ink);
    border: 1px solid rgba(0, 214, 111, 0.28);
}

.job-card__salary-pill--negotiate {
    background: #f0fdf4;
    color: var(--muted);
    border: 1px dashed var(--border);
}

.job-card__salary-pill--muted {
    background: var(--surface-hover);
    color: var(--muted);
    border: 1px solid var(--border);
}

.job-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.job-card__chip {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 8px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    color: var(--muted);
    line-height: 1.2;
}

.job-card__chip--remote {
    background: rgba(59, 130, 246, 0.12);
    color: #1e3a8a;
    border-color: rgba(59, 130, 246, 0.25);
}

.job-card__pref {
    margin: 0;
}

.job-card__meta-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px 14px;
    grid-template-columns: 1fr;
}

.job-card__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.35;
    min-width: 0;
}

.job-card__meta-item span:last-child {
    min-width: 0;
    word-break: break-word;
}

.job-card__meta-ico {
    flex-shrink: 0;
    line-height: 1.2;
    font-size: 1rem;
}

.job-card__response {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.job-card__footer {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.job-card__rule {
    margin: 0;
    border: none;
    border-top: 1px solid var(--border);
}

.job-card__pub-row {
    margin: 0;
}

.job-card__published {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

.job-card__pub-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.job-card__pub-dot--fresh {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.job-card__pub-dot--warm {
    background: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.job-card__pub-dot--cool {
    background: #94a3b8;
}

.job-card__cta-arrow {
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.job-card--interactive:hover .job-card__cta-arrow {
    transform: translateX(4px);
}

@media (min-width: 640px) {
    .job-card__meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.job-schedule-line {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
    word-break: break-word;
}
.job-meta, .job-response { color: var(--muted); margin: 0; font-size: 0.93rem; }
.job-salary { margin: 0; font-weight: 700; }

.job-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.company-name { margin: 0; color: var(--muted); font-size: 0.9rem; }
.badge { border-radius: 999px; padding: 4px 10px; font-size: 0.78rem; font-weight: 700; border: 1px solid var(--border); }
.badge-success { background: rgba(0, 214, 111, 0.18); color: #065f46; }
.badge-warning { background: #fff4cc; color: #7c4d00; }

.empty-state {
    margin: 14px 0;
    padding: 12px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    color: var(--muted);
}

.form-card { padding: 14px; display: grid; gap: 10px; }
.inline-label { display: flex; align-items: center; gap: 8px; }

.wizard-progress { color: var(--muted); margin: 0 0 6px; }
.wizard-card { padding: 14px; }
.wizard-body { margin: 10px 0 14px; }
.wizard-field-stack { display: grid; gap: 6px; }
.wizard-field-label {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 6px;
}
.wizard-field-label:first-of-type { margin-top: 0; }
.wizard-urgent-block {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

/* Checkbox cósmica (passos Jornada e Salário): ícone e texto na mesma linha, alinhados ao centro */
.wizard-field-stack .signup-policies-accept__label.cosmic-checkbox,
.wizard-salario-stack .signup-policies-accept__label.cosmic-checkbox {
    align-items: center;
}

.wizard-field-stack .signup-policies-accept .cosmic-checkbox .checkbox-container,
.wizard-salario-stack .signup-policies-accept .cosmic-checkbox .checkbox-container {
    align-items: center;
}

.wizard-field-stack .signup-policies-accept .cosmic-checkbox .checkbox-box,
.wizard-salario-stack .signup-policies-accept .cosmic-checkbox .checkbox-box {
    margin-top: 0;
}

/* Checkboxes do wizard — caixa + texto alinhados (tema Emprega BP) */
.wizard-checkbox {
    position: relative;
    display: block;
    margin: 0;
    padding: 2px 0;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.wizard-checkbox__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.wizard-checkbox__label {
    position: relative;
    display: block;
    padding: 2px 0 2px 30px;
    margin: 0;
    line-height: 1.4;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
}

.wizard-checkbox__label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--paper);
    border: 2px solid var(--border);
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.wizard-checkbox__label::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    width: 5px;
    height: 9px;
    border: solid var(--paper);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.wizard-checkbox__input:checked + .wizard-checkbox__label::before {
    background: linear-gradient(145deg, #2be88f 0%, var(--primary) 45%, #00b359 100%);
    border-color: var(--primary-hover);
    box-shadow: 0 2px 10px rgba(0, 214, 111, 0.28);
}

.wizard-checkbox__input:checked + .wizard-checkbox__label::after {
    transform: rotate(45deg) scale(1);
    opacity: 1;
}

.wizard-checkbox__input:focus-visible + .wizard-checkbox__label::before {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.wizard-checkbox:hover .wizard-checkbox__label::before {
    border-color: rgba(0, 214, 111, 0.5);
    box-shadow: 0 2px 8px rgba(0, 214, 111, 0.12);
}

.wizard-checkbox__text {
    display: inline;
}

.wizard-checkbox__text strong {
    font-weight: 700;
    color: var(--ink);
}

.wizard-checkbox__hint {
    font-weight: 500;
    font-size: 0.86rem;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .wizard-checkbox__hint {
        white-space: normal;
    }
}

.wizard-salario-stack {
    display: grid;
    gap: 14px;
}

.wizard-salario-value {
    display: grid;
    gap: 6px;
}

.wizard-salario-value__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    margin: 0;
}
.wizard-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.wizard-actions .btn { gap: 8px; }

/* Alerta de validação do wizard embutido — espaço antes da barra Voltar/Próximo (não aplicar na página nova-vaga, que usa nova-vaga.css) */
.wizard-card:not(.nova-vaga-wizard__card) > [data-wizard-feedback]:not([hidden]) {
    margin: 12px 0 18px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff4cc;
    border: 1px solid #fde68a;
    color: #7c4d00;
    font-size: 0.88rem;
    line-height: 1.45;
}

.company-jobs-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.job-row {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    display: grid;
    gap: 4px;
}

.job-row > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}

.success-box {
    border: 1px solid #86efac;
    background: #f0fdf4;
    border-radius: 10px;
    padding: 12px;
    color: #166534;
}

.cbo-interest { display: grid; gap: 8px; }
.cbo-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; }
.cbo-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 0.88rem;
}
.cbo-chip-remove {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 2px;
    color: var(--muted);
}
.cbo-suggestions {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    max-height: 220px;
    overflow-y: auto;
}
.cbo-suggestions li { margin: 0; padding: 0; }
.cbo-suggest-item {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 8px 12px;
    font: inherit;
    cursor: pointer;
}
.cbo-suggest-item:hover { background: var(--surface-hover); }

.wizard-suggest {
    list-style: none;
    margin: 8px 0 0;
    padding: 4px 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    max-height: 240px;
    overflow-y: auto;
}
.wizard-suggest li { margin: 0; padding: 0; }

.filter-autocomplete {
    position: relative;
    width: 100%;
    min-width: 0;
}

.filter-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    max-height: min(52vh, 300px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-suggest li { margin: 0; padding: 0; }

.filter-suggest-btn {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font: inherit;
    text-align: left;
    color: var(--text);
    cursor: pointer;
}

.filter-suggest li:last-child .filter-suggest-btn { border-bottom: none; }

.filter-suggest-btn:active { background: var(--surface-hover); }

.filter-suggest-empty {
    margin: 0;
    padding: 12px 14px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

/* ---------- Portal empresa: menu lateral + barra superior ---------- */
.empresa-shell__grid {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.empresa-shell__sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--card);
    border-right: 1px solid var(--border);
    padding: 16px 12px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.empresa-shell__sidebar > nav:first-of-type {
    flex: none;
    min-height: 0;
}

.empresa-shell__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.empresa-shell__nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--text);
    font-size: 0.95rem;
}

.empresa-shell__nav-link:hover {
    background: var(--surface-hover);
}

.empresa-shell__nav-link.is-active {
    background: var(--accent-soft);
    border: 1px solid var(--primary);
}

@media (min-width: 1024px) {
    .empresa-shell__sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        padding-top: 20px;
        padding-bottom: 28px;
    }

    .empresa-shell__sidebar > nav:first-of-type {
        display: flex;
        flex-direction: column;
    }

    .empresa-shell__nav-list {
        flex: none;
    }
}

.empresa-logo-preview {
    display: block;
    max-width: 160px;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    border: 1px solid var(--border);
    background: var(--bg);
    margin-bottom: 12px;
}

.empresa-shell__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.empresa-shell__header {
    position: sticky;
    top: 0;
    z-index: 6;
}

.empresa-shell__topbar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.empresa-shell__topbar-row .emprega-menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 1.1rem;
    cursor: pointer;
}

.empresa-shell__topbar-spacer {
    flex: 1;
}

.empresa-shell__sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 10px;
}

.empresa-shell__footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--text);
    text-decoration: none;
}

.empresa-shell__footer-link:hover {
    background: var(--surface-hover);
}

.empresa-shell__sidebar-logout {
    width: 100%;
    justify-content: center;
}

.emprega-mobile-drawer__logout {
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
    border: none;
    background: transparent;
    color: inherit;
}

.auth-avatar--image {
    padding: 0;
    overflow: hidden;
}

.auth-avatar--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .empresa-shell__grid {
        flex-direction: column;
    }

    .empresa-shell__sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
    }

    body.emprega-sidebar-open .empresa-shell__sidebar {
        transform: translateX(0);
    }

    .empresa-shell__topbar-row .emprega-menu-toggle {
        display: inline-flex;
    }
}

/* ---------- Perfil + navegação mobile (drawer, scrim) ---------- */
.profile-shell__header {
    position: sticky;
    top: 0;
    z-index: 60;
    padding-block: 10px;
}

.profile-shell__topbar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
    min-height: 44px;
}

.profile-shell__spacer {
    flex: 1;
    min-width: 8px;
}

.profile-shell__nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
}

.profile-shell__nav--inline {
    display: none;
}

.profile-shell__nav-a,
.public-site-header__link {
    font-weight: 600;
    font-size: 0.92rem;
    padding: 6px 4px;
    border-radius: 8px;
}

.profile-shell__nav-a:hover,
.public-site-header__link:hover {
    text-decoration: underline;
}

.profile-shell__nav-a.is-active,
.public-site-header__link.is-active {
    color: var(--primary-text);
    background: var(--primary);
    padding: 6px 10px;
    text-decoration: none;
}

.topbar--with-mobile-nav {
    flex-wrap: nowrap;
    gap: 8px;
}

.emprega-menu-toggle--public {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    min-width: 44px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 10px;
    padding: 0 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.emprega-menu-toggle__ico {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.emprega-menu-toggle__ico .emprega-icon-img {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    display: block;
    object-fit: contain;
}

.emprega-menu-toggle__label {
    line-height: 1.2;
    white-space: nowrap;
}

@media (min-width: 720px) {
    .emprega-menu-toggle--public {
        display: none !important;
    }

    .profile-shell__nav--inline {
        display: flex;
        flex: 1;
        flex-wrap: wrap;
        justify-content: center;
        min-width: 0;
    }

    .public-site-header__nav--desktop {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px 14px;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
    }

    #profile-drawer.emprega-mobile-drawer,
    #emprega-public-drawer.emprega-mobile-drawer,
    #home-mobile-drawer.emprega-mobile-drawer {
        display: none !important;
    }

    .emprega-mobile-scrim {
        display: none !important;
    }
}

@media (max-width: 719px) {
    .public-site-header__nav--desktop {
        display: none !important;
    }

    .home-topbar-nav {
        display: none !important;
    }
}

.public-site-header__row--responsive {
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
}

/* Mobile: acima do cabeçalho sticky (.topbar, z-index 500) para o painel e o botão Fechar não serem recortados */
.emprega-mobile-scrim {
    position: fixed;
    inset: 0;
    z-index: 5200;
    background: rgba(15, 23, 42, 0.45);
    border: none;
    padding: 0;
    margin: 0;
}

.emprega-mobile-drawer {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 5300;
    max-height: 100dvh;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.emprega-mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.emprega-mobile-drawer__head .emprega-mobile-drawer__title {
    margin: 0;
    flex: 1;
}

.emprega-mobile-drawer__title {
    margin: 0 0 10px;
    font-weight: 800;
    font-size: 1rem;
}

.emprega-drawer-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    padding: 8px 14px;
    min-height: 40px;
}

.emprega-drawer-close__ico {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.emprega-drawer-close__ico .emprega-icon-img {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    display: block;
    object-fit: contain;
}

.emprega-drawer-close__label {
    line-height: 1.25;
    white-space: nowrap;
}

/* .btn aplica margem ao .emprega-icon-wrap; aqui o gap do flex já separa ícone e texto. */
.emprega-drawer-close.btn .emprega-icon-wrap {
    margin-inline-end: 0;
}

.emprega-mobile-drawer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.emprega-mobile-drawer__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    border: 1px solid transparent;
}

.emprega-mobile-drawer__link:hover {
    background: var(--surface-hover);
}

.emprega-mobile-drawer__link.is-active {
    background: var(--accent-soft);
    border-color: var(--primary);
}

body.emprega-drawer-open {
    overflow: hidden;
}

.emprega-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;
}

.btn-primary:disabled,
.btn-outline:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Portal empresa: bloqueio em ecrãs estreitos (só desktop) */
.empresa-desktop-only-gate {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.empresa-desktop-only-gate--visible {
    display: flex;
}

.empresa-desktop-only-gate__card {
    max-width: 420px;
    background: var(--card);
    border-radius: 16px;
    padding: 24px 22px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.empresa-desktop-only-gate__title {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.empresa-desktop-only-gate__text {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.45;
}

html.empresa-portal-locked body.empresa-shell {
    overflow: hidden;
}

/* ---------- Cabeçalho simples (login / cadastro / candidatura) ---------- */
.public-site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 55;
}

.public-site-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    max-width: 1120px;
    margin: 0 auto;
    min-height: 44px;
}

.public-site-header__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}

.profile-photo-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--surface-hover);
    display: block;
}

/* Página perfil — títulos e botões com ícones (/assets/icons/perfil/) */
.layout-profile .profile-heading {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin: 0 0 1rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.25;
}

.layout-profile .profile-heading--page {
    font-size: 1.55rem;
    margin-bottom: 1.1rem;
}

.layout-profile .profile-heading--section {
    font-size: 1.12rem;
    margin-bottom: 0.85rem;
}

.layout-profile .profile-heading__ico {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.layout-profile .profile-heading__img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}

.layout-profile .profile-heading--section .profile-heading__img {
    width: 24px;
    height: 24px;
}

.layout-profile .profile-heading__label {
    flex: 1;
    min-width: 0;
}

.layout-profile .profile-btn-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.layout-profile .profile-btn-ico .profile-btn-ico__wrap {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.layout-profile .profile-btn-ico__img {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    display: block;
    object-fit: contain;
}

.layout-profile .profile-btn-ico.btn .profile-btn-ico__wrap {
    margin-inline-end: 0;
}

.layout-profile .profile-btn-ico [data-btn-label] {
    line-height: 1.25;
}

.profile-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.pipeline-filter-banner {
    margin-bottom: 1rem;
}

.pipeline-filter-banner p:last-child {
    margin-bottom: 0;
}

/* Pipeline de candidatos (portal empresa) */
.pipeline-table th,
.pipeline-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.pipeline-table__resume {
    white-space: normal;
    min-width: 140px;
}

.pipeline-resume-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pipeline-resume-actions .btn {
    font-size: 0.85rem;
    padding: 6px 12px;
}

/* Perfil — lista de candidaturas + linha do tempo (dialog) */
.applications-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0;
}

.applications-list__item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.applications-list__item:last-child {
    border-bottom: none;
}

.applications-list__main {
    flex: 1;
    min-width: 0;
}

.application-stepper-dialog {
    max-width: min(560px, 96vw);
    width: calc(100vw - 32px);
    padding: 0;
    border: none;
    border-radius: 16px;
    background: var(--card);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.application-stepper-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

.application-stepper-dialog__inner {
    padding: 22px 24px 26px;
}

.application-stepper-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding-top: 2px;
}

.application-stepper-dialog__head h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.application-stepper-dialog__body {
    max-height: min(72vh, 580px);
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding-right: 4px;
}

.application-stepper-dialog__intro {
    margin-bottom: 16px;
}

.application-stepper-dialog__intro p {
    margin: 0 0 8px;
}

.candidatura-stepper-box {
    background: linear-gradient(165deg, rgba(0, 214, 111, 0.06), transparent 42%), var(--surface-hover, var(--card));
    border-radius: 16px;
    padding: 0;
    border: 1px solid var(--border);
    overflow: hidden;
}

.candidatura-stepper-box__inner {
    padding: 24px 22px 22px 26px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.candidatura-stepper-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0 16px;
    align-items: flex-start;
    position: relative;
    padding-bottom: 22px;
    margin-bottom: 0;
}

.candidatura-stepper-step:last-child {
    padding-bottom: 0;
}

.candidatura-stepper-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 52px;
    flex-shrink: 0;
}

.candidatura-stepper-line {
    flex: 1;
    width: 3px;
    min-height: 20px;
    margin-top: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--border), rgba(0, 214, 111, 0.35));
    z-index: 1;
}

.candidatura-stepper-step:last-child .candidatura-stepper-line {
    display: none;
}

.candidatura-stepper-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.candidatura-stepper-check {
    display: block;
}

.candidatura-stepper-completed .candidatura-stepper-circle {
    background: var(--text);
    color: #fff;
}

.candidatura-stepper-active .candidatura-stepper-circle {
    border: 2px solid var(--text);
    color: var(--text);
    background: var(--card);
}

.candidatura-stepper-pending .candidatura-stepper-circle {
    border: 2px solid var(--border);
    color: var(--muted);
    background: var(--card);
}

.candidatura-stepper-content {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.candidatura-stepper-title {
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.35;
}

.candidatura-stepper-completed .candidatura-stepper-title {
    color: var(--text);
}

.candidatura-stepper-active .candidatura-stepper-title {
    color: var(--text);
}

.candidatura-stepper-pending .candidatura-stepper-title {
    color: var(--muted);
}

.candidatura-stepper-status {
    font-size: 0.82rem;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    margin-top: 2px;
}

.candidatura-stepper-completed .candidatura-stepper-status {
    background: #dcfce7;
    color: #166534;
}

.candidatura-stepper-active .candidatura-stepper-status {
    background: #dbeafe;
    color: #1d4ed8;
}

.candidatura-stepper-pending .candidatura-stepper-status {
    background: #f1f5f9;
    color: #64748b;
}

.candidatura-stepper-time {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.35;
}

/* ---------- Home: salvar vaga sem sessão (convidado) ---------- */
.save-job-guest-dialog {
    padding: 0;
    border: none;
    border-radius: calc(var(--radius) + 2px);
    max-width: min(420px, 94vw);
    background: transparent;
    box-shadow: none;
}

.save-job-guest-dialog::backdrop {
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(3px);
}

.save-job-guest-dialog__card {
    padding: 1.35rem 1.2rem 1.2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 2px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.save-job-guest-dialog__title {
    margin: 0 0 0.45rem;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.save-job-guest-dialog__text {
    margin: 0 0 1.05rem;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.45;
}

.save-job-guest-dialog__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.save-job-guest-dialog__ghost {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
}

.save-job-guest-dialog__ghost:hover:not(:disabled) {
    background: var(--surface-hover);
    color: var(--text);
}

/* ----- Botão "Carregar mais": rotação contínua do SVG durante o carregamento ----- */
@keyframes emprega-load-more-spin {
    to {
        transform: rotate(360deg);
    }
}

button.is-loading-more:disabled {
    opacity: 1;
    cursor: wait;
}

/* Rotação no wrapper: pinta de forma confiável e evita quirks de transform em <img> externo. */
button.is-loading-more .emprega-icon-wrap,
button.is-loading-more .profile-btn-ico__wrap {
    transform-origin: 50% 50%;
    animation: emprega-load-more-spin 0.85s linear infinite;
}

/* ----- Alertas in-app (sino SVG + contador circular) ----- */
.emprega-inapp-nav-entry,
.empresa-shell__nav-link.empresa-inapp-nav-entry {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
}

.emprega-mobile-drawer__link.emprega-inapp-nav-entry {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    box-sizing: border-box;
}

.empresa-shell__nav-link.empresa-inapp-nav-entry {
    box-sizing: border-box;
}

.emprega-inapp-nav-entry .public-site-header__nav-text,
.emprega-inapp-nav-entry .emprega-mobile-drawer__label {
    flex: 1 1 auto;
    min-width: 0;
}

.emprega-inapp-bell-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.emprega-inapp-bell {
    display: block;
    object-fit: contain;
    vertical-align: middle;
}

.emprega-inapp-count-pill {
    /* Com [hidden], o browser põe display:none, mas qualquer display no author stylesheet
       pode sobrepor — manter escondido por defeito e só mostrar quando não há hidden. */
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 1.38rem;
    height: 1.38rem;
    padding: 0 6px;
    border-radius: 999px;
    background: #c62828;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

.emprega-inapp-count-pill[hidden] {
    display: none !important;
}

.emprega-inapp-count-pill:not([hidden]) {
    display: inline-flex !important;
}

.empresa-shell__nav-link.empresa-inapp-nav-entry .emprega-inapp-count-pill,
.emprega-mobile-drawer__link.emprega-inapp-nav-entry .emprega-inapp-count-pill {
    margin-left: auto;
}

.inapp-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

.inapp-page__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 1rem 0 1.25rem;
}

.inapp-page__head-leading {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.inapp-page__head-leading .inapp-page__title {
    min-width: 0;
}

.inapp-page__mobile-back {
    display: none;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
}

@media (max-width: 720px) {
    .layout-profile.page-notificacoes .inapp-page__mobile-back {
        display: inline-flex;
    }
}

.inapp-page__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.inapp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inapp-item {
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border, #e6e8eb);
    background: var(--surface, #fff);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.inapp-item__layout {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.inapp-item__ico-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary, #0d9488) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.inapp-item__ico {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.92;
}

.inapp-item__main {
    flex: 1;
    min-width: 0;
}

.inapp-item__chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--primary, #0d9488);
    background: color-mix(in srgb, var(--primary, #0d9488) 14%, transparent);
}

.inapp-item__when {
    font-size: 0.75rem;
    color: var(--muted, #5c6b7a);
}

a.inapp-item--tap {
    cursor: pointer;
}

.inapp-item:visited {
    color: inherit;
}

.inapp-item:hover {
    background: var(--surface-hover, #f4f6f8);
}

.inapp-item--unread {
    border-left: 4px solid var(--primary, #0d9488);
}

.inapp-item__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--muted, #5c6b7a);
    margin-bottom: 6px;
}

.inapp-item__title {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 6px;
}

.inapp-item__msg {
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
    color: var(--text, #1a1f24);
}

.inapp-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muted, #5c6b7a);
}

