:root {
    --brand: #7a1393;
    --brand-dark: #4d0f63;
    --brand-light: #ecd7ff;
    --accent: #3dd2ff;
    --ink: #150226;
    --ink-soft: #3a2a4d;
    --bg: #f7f4fa;
    --white: #ffffff;
    --border: rgba(122, 19, 147, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-soft: 0 24px 45px rgba(21, 2, 38, 0.12);
    --shadow-card: 0 18px 32px rgba(21, 2, 38, 0.1);
    --transition: all 0.24s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skip link para acessibilidade */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--brand);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 20px;
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid rgba(122, 19, 147, 0.5);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Melhorar visibilidade do foco em todos os elementos interativos */
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(122, 19, 147, 0.5);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Lazy loading de imagens */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Estados de loading para melhor UX */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Esconder btn-spinner quando btn-loading estiver ativo (evitar duplicação) */
.btn-loading .btn-spinner {
    display: none !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

@media (max-width: 640px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    background: linear-gradient(135deg, rgba(122, 19, 147, 0.08), rgba(247, 244, 250, 0.92));
    border-bottom: 1px solid rgba(122, 19, 147, 0.08);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--brand);
    padding: 6px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
    box-shadow: 0 18px 32px rgba(21, 2, 38, 0.08);
    backdrop-filter: blur(6px);
}

.logo-img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 6px 16px rgba(21, 2, 38, 0.24));
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

.logo-symbol {
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.logo-text {
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--brand);
}

.nav-link-strong {
    font-weight: 600;
    color: var(--brand);
}

.nav-link-strong:hover {
    color: var(--brand-dark);
}

.nav-link-danger {
    color: #dc2626 !important;
    font-weight: 600;
}

.nav-link-danger:hover {
    color: #991b1b !important;
}

.main-nav.portal-nav {
    gap: 22px;
}

.nav-cta {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: var(--white);
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.94rem;
    box-shadow: var(--shadow-card);
}

.nav-cta-portal {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.nav-cta-portal:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 36px rgba(122, 19, 147, 0.22);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    z-index: 100;
    position: relative;
}

.menu-toggle:hover {
    background: rgba(122, 19, 147, 0.08);
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--brand);
    border-radius: 999px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.hero {
    padding: clamp(80px, 15vh, 110px) 0 clamp(60px, 10vh, 80px);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(122, 19, 147, 0.16), transparent 45%),
        radial-gradient(circle at bottom right, rgba(77, 15, 99, 0.18), transparent 40%);
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 120px -180px -180px -180px;
    background: linear-gradient(135deg, rgba(122, 19, 147, 0.14), rgba(61, 210, 255, 0.1));
    filter: blur(120px);
    z-index: -3;
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(40px, 8vw, 60px);
}

.hero-copy h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-copy p {
    font-size: clamp(1rem, 2.5vw, 1.08rem);
    color: var(--ink-soft);
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 600;
    padding: 14px 24px;
    transition: var(--transition);
    gap: 10px;
    border: none;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1rem);
    min-height: 48px;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 3px solid rgba(122, 19, 147, 0.4);
    outline-offset: 3px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.24s ease;
}

.btn-icon svg[fill="none"] {
    fill: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: var(--white);
    box-shadow: var(--shadow-card);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 28px 36px rgba(122, 19, 147, 0.22);
}

.btn-secondary {
    background: var(--white);
    color: var(--brand);
    border: 1px solid rgba(122, 19, 147, 0.24);
}

.btn-secondary:hover {
    background: var(--brand-light);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    border: 1px solid #1ebe5d;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    color: var(--white);
}

.btn-ghost {
    background: rgba(122, 19, 147, 0.08);
    color: var(--brand);
    border: 1px solid rgba(122, 19, 147, 0.18);
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
}

.btn-ghost:hover {
    background: rgba(122, 19, 147, 0.16);
    transform: translateY(-1px);
}

.btn-ghost:hover .btn-icon svg {
    transform: scale(1.1) rotate(-8deg);
}

.btn-ghost .btn-spinner {
    border-color: rgba(122, 19, 147, 0.32);
    border-top-color: var(--brand);
}

.btn-light {
    background: var(--white);
    color: var(--brand);
    box-shadow: var(--shadow-card);
}

.btn-light:hover {
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
}

.btn-link {
    font-weight: 600;
    color: var(--brand);
}

.btn-full {
    width: 100%;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.inline-link {
    background: none;
    border: none;
    color: var(--brand);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.inline-link:hover {
    text-decoration: none;
}

.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(21, 2, 38, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    z-index: 100;
}

.auth-modal.open {
    display: flex;
}

.auth-modal-dialog {
    background: var(--white);
    border-radius: 28px;
    width: min(420px, 92vw);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(122, 19, 147, 0.14);
    display: grid;
    grid-template-rows: auto 1fr;
}

.auth-modal-header {
    padding: 22px 28px;
    border-bottom: 1px solid rgba(122, 19, 147, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.auth-modal-header h2 {
    font-size: 1.4rem;
}

.auth-modal-close {
    border: none;
    background: none;
    font-size: 1.8rem;
    color: var(--ink-soft);
    cursor: pointer;
}

.auth-modal-body {
    padding: 26px 28px 32px;
    display: grid;
    gap: 18px;
}

.auth-modal-body p {
    color: var(--ink-soft);
    line-height: 1.5;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hero-metrics {
    display: flex;
    gap: 28px;
    align-items: baseline;
}

.hero-metrics div strong {
    font-size: 1.6rem;
    color: var(--brand);
}

.hero-metrics span {
    display: block;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.hero-visual {
    position: relative;
}

.device-card {
    background: var(--ink);
    color: var(--white);
    border-radius: 32px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    max-width: 340px;
    margin-left: auto;
    width: 100%;
    box-sizing: border-box;
    min-width: 280px;
    overflow: hidden;
}

.device-header {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.device-header span {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.device-body h2 {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.match-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    margin: 18px 0;
}

.match-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3dd2ff, #b4ff9f);
}

.candidate-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.candidate-card h3 {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.candidate-card ul {
    list-style: none;
    font-size: clamp(0.8rem, 2vw, 0.86rem);
    color: rgba(255, 255, 255, 0.8);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.candidate-card ul li+li {
    margin-top: 4px;
}

.ai-chip {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(122, 19, 147, 0.32);
    font-size: clamp(0.7rem, 2vw, 0.78rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.floating-badge {
    position: absolute;
    bottom: -24px;
    right: 40px;
    background: var(--white);
    padding: 12px 18px;
    border-radius: 999px;
    color: var(--brand);
    font-weight: 600;
    box-shadow: var(--shadow-card);
    transform: rotate(-3deg);
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(122, 19, 147, 0.16);
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pill-light {
    background: rgba(122, 19, 147, 0.08);
    color: var(--brand-dark);
}

.companies {
    padding: 40px 0 20px;
}

.companies p {
    margin: 12px 0 24px;
    color: var(--ink-soft);
}

.logos {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: rgba(21, 2, 38, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.modules {
    padding: 24px 0 20px 0;
}

.section-head {
    max-width: 620px;
    margin-bottom: 16px;
}

.section-head h2 {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    margin-bottom: 6px;
    margin-top: 0;
    line-height: 1.2;
}

.section-head p {
    color: var(--ink-soft);
    margin-bottom: 0;
    line-height: 1.5;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .module-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .module-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.module-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: clamp(18px, 3.5vw, 22px);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(122, 19, 147, 0.08);
    transition: var(--transition);
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px rgba(122, 19, 147, 0.16);
    border-color: rgba(122, 19, 147, 0.2);
}

.module-card h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.3;
}

.module-card p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
}

.module-card .tag {
    align-self: flex-start;
    padding: 8px 14px;
    background: rgba(61, 210, 255, 0.12);
    color: #1689aa;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: auto;
}

.home-jobs {
    padding: 90px 0;
    background: linear-gradient(180deg,
            rgba(122, 19, 147, 0.08) 0%,
            rgba(61, 210, 255, 0.05) 50%,
            rgba(247, 244, 250, 0.6) 100%);
    position: relative;
    overflow: hidden;
}

.home-jobs::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(122, 19, 147, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.home-jobs::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(61, 210, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.home-job-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
}

.home-job-track {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    scroll-behavior: smooth;
    display: flex;
    gap: 24px;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 0;
}

.home-job-track::-webkit-scrollbar {
    display: none;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-job-card {
    background: var(--white);
    border-radius: 24px;
    padding: clamp(24px, 3vw, 28px);
    box-shadow: 0 8px 32px rgba(122, 19, 147, 0.12);
    border: 1px solid rgba(122, 19, 147, 0.08);
    display: grid;
    gap: 20px;
    flex: 0 0 calc(33.333% - 16px);
    min-width: 320px;
    scroll-snap-align: start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: cardSlideIn 0.5s ease-out backwards;
}

.home-job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-job-card:hover::before {
    transform: scaleX(1);
}

.home-job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(122, 19, 147, 0.2),
        0 0 0 1px rgba(122, 19, 147, 0.1);
    border-color: rgba(122, 19, 147, 0.16);
}

.home-job-card:nth-child(2) {
    animation-delay: 0.1s;
}

.home-job-card:nth-child(3) {
    animation-delay: 0.2s;
}

.home-job-card:nth-child(4) {
    animation-delay: 0.3s;
}

@media (max-width: 1024px) {
    .home-job-card {
        flex: 0 0 calc(50% - 12px);
        min-width: 280px;
    }
}

@media (max-width: 640px) {
    .home-job-card {
        flex: 0 0 calc(90vw);
        min-width: 280px;
    }
}

.home-job-nav {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, rgba(122, 19, 147, 0.9) 0%, rgba(77, 15, 99, 0.95) 100%);
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(122, 19, 147, 0.3);
    position: relative;
    z-index: 10;
}

.home-job-nav::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.home-job-nav:focus-visible {
    outline: 3px solid rgba(122, 19, 147, 0.4);
    outline-offset: 4px;
}

.home-job-nav[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: 0 4px 12px rgba(122, 19, 147, 0.15);
}

.home-job-nav:not([disabled]):hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(122, 19, 147, 0.4);
}

.home-job-nav:not([disabled]):hover::before {
    opacity: 1;
}

.home-job-nav:not([disabled]):active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .home-job-nav {
        display: none;
    }

    .home-job-carousel {
        gap: 0;
    }
}

.home-job-card header {
    position: relative;
}

.home-job-card header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
    margin: 8px 0 6px;
}

.home-job-card header p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 500;
}

.home-job-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(61, 210, 255, 0.15) 0%, rgba(61, 210, 255, 0.25) 100%);
    color: #0d5a6f;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid rgba(61, 210, 255, 0.3);
}

.home-job-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.home-job-meta div {
    background: linear-gradient(135deg, rgba(122, 19, 147, 0.04) 0%, rgba(122, 19, 147, 0.08) 100%);
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(122, 19, 147, 0.08);
    transition: all 0.2s ease;
}

.home-job-meta div:hover {
    background: linear-gradient(135deg, rgba(122, 19, 147, 0.08) 0%, rgba(122, 19, 147, 0.12) 100%);
    border-color: rgba(122, 19, 147, 0.15);
}

.home-job-meta dt {
    font-size: 0.72rem;
    color: rgba(21, 2, 38, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    font-weight: 600;
}

.home-job-meta dd {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--ink);
}

.home-job-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

.home-job-actions a[target="_blank"]::after {
    content: ' ↗';
    display: inline-block;
    margin-left: 4px;
    font-size: 0.85em;
    opacity: 0.7;
}

.home-job-placeholder {
    font-size: 0.88rem;
    color: var(--ink-soft);
    font-style: italic;
}

/* Indicadores do carrossel */
.home-job-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    padding: 12px;
}

.home-job-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0.3;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.home-job-indicator:hover {
    opacity: 0.6;
    transform: scale(1.2);
}

.home-job-indicator.active {
    background: var(--brand);
    opacity: 1;
    width: 32px;
    border-radius: 12px;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(122, 19, 147, 0.4);
}

.home-job-indicator:focus-visible {
    outline: 2px solid rgba(122, 19, 147, 0.5);
    outline-offset: 3px;
}

.home-job-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    background: linear-gradient(135deg, var(--ink) 0%, var(--brand-dark) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: 28px;
    box-shadow: 0 24px 56px rgba(21, 2, 38, 0.24);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-job-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(61, 210, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.home-job-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.home-job-cta p {
    opacity: 0.9;
    line-height: 1.6;
}

.home-app-buttons {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

.app-btn {
    padding: 14px 28px;
    border-radius: 14px;
    background: var(--white);
    color: var(--brand);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
}

.app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.app-btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.app-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .home-job-cta {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .home-app-buttons {
        flex-direction: column;
        width: 100%;
    }

    .app-btn {
        width: 100%;
    }
}

.candidates-wrapper {
    padding: 120px 0 140px;
}

.candidates-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 36px;
}

.candidates-head-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.candidates-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.candidates-filters {
    margin-bottom: 32px;
}

.candidate-filter-form {
    background: var(--white);
    border-radius: 24px;
    border: 1px solid rgba(122, 19, 147, 0.12);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 20px;
}

.candidate-filter-form .filter-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.candidate-filter-form label {
    display: grid;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.candidate-filter-form select,
.candidate-filter-form input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(21, 2, 38, 0.14);
    background: var(--bg);
}

.candidate-filter-form select:focus,
.candidate-filter-form input:focus {
    outline: 2px solid rgba(122, 19, 147, 0.28);
    background: var(--white);
}

.candidate-filter-form .filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.candidate-stat {
    background: rgba(122, 19, 147, 0.08);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(122, 19, 147, 0.12);
    box-shadow: var(--shadow-card);
}

.candidate-stat strong {
    display: block;
    font-size: 1.6rem;
    color: var(--brand);
}

.candidate-stat span {
    font-size: 0.86rem;
    color: var(--ink-soft);
}

.candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.candidate-grid.loading {
    position: relative;
}

.candidate-skeleton {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(122, 19, 147, 0.12);
    background: linear-gradient(90deg, rgba(122, 19, 147, 0.08) 0%, rgba(247, 244, 250, 0.8) 50%, rgba(122, 19, 147, 0.08) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    height: 320px;
}

.candidate-skeleton::before,
.candidate-skeleton::after {
    content: '';
    display: block;
}

.candidate-skeleton::before {
    height: 100%;
}

.candidate-skeleton::after {
    height: 16px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.candidate-grid .candidate-card {
    background: var(--white);
    border-radius: 24px;
    border: 1px solid rgba(122, 19, 147, 0.1);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    display: grid;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.candidate-grid .candidate-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(122, 19, 147, 0.08), rgba(61, 210, 255, 0.12));
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.candidate-grid .candidate-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 48px rgba(21, 2, 38, 0.18);
    border-color: rgba(122, 19, 147, 0.26);
}

.candidate-grid .candidate-card:hover::before {
    opacity: 1;
}

.candidate-grid .candidate-card header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.candidate-grid .candidate-card h2 {
    font-size: 1.1rem;
}

.candidate-grid .candidate-location {
    display: block;
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-top: 6px;
}

.candidate-grid .candidate-score {
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(61, 210, 255, 0.18);
    color: #126781;
    font-weight: 700;
    font-size: 0.82rem;
}

.candidate-grid .candidate-body {
    display: grid;
    gap: 16px;
}

.candidate-grid .candidate-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.candidate-grid .candidate-tags span {
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(122, 19, 147, 0.1);
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 600;
}

.candidate-grid .tag-empty {
    background: rgba(21, 2, 38, 0.08) !important;
    color: var(--ink-soft) !important;
}

.candidate-grid .candidate-about {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.candidate-grid .candidate-matches ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.candidate-grid .candidate-matches li {
    background: rgba(122, 19, 147, 0.08);
    border-radius: 16px;
    padding: 12px 16px;
    border: 1px solid rgba(122, 19, 147, 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.candidate-grid .candidate-matches li p {
    color: var(--ink-soft);
}

.candidate-grid .candidate-matches li div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--ink);
}

.candidate-grid .match-score {
    color: var(--brand);
}

.candidate-grid .candidate-matches li:hover {
    transform: translateX(6px);
    border-color: rgba(122, 19, 147, 0.3);
    background: rgba(122, 19, 147, 0.14);
}

.candidate-grid .candidate-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.candidate-grid .candidate-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.candidate-grid .candidate-link {
    font-size: 0.85rem;
    color: var(--brand);
    font-weight: 600;
}

.candidate-empty {
    padding: 48px;
    border-radius: 24px;
    background: rgba(247, 244, 250, 0.72);
    border: 1px dashed rgba(122, 19, 147, 0.28);
    text-align: center;
    color: var(--ink-soft);
}

.candidate-empty h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--brand);
}

.share-result {
    margin-top: 24px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(122, 19, 147, 0.16);
    background: rgba(122, 19, 147, 0.08);
    display: grid;
    gap: 16px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .candidates-head {
        flex-direction: column;
        align-items: stretch;
    }

    .candidate-grid .candidate-card {
        padding: 20px;
    }

    .register-layout {
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .candidates-dashboard {
        grid-template-columns: 1fr;
    }

    .candidate-grid {
        grid-template-columns: 1fr;
    }

    .register-form-card {
        padding: 24px;
    }
}

.home-app-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.app-btn {
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--white);
    color: var(--brand);
    font-weight: 600;
    box-shadow: var(--shadow-card);
}

.app-btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.app-btn-outline:hover {
    background: rgba(255, 255, 255, 0.16);
}

.register-page {
    background: linear-gradient(180deg, rgba(122, 19, 147, 0.08), #f7f4fa 40%, #ffffff);
}

.register-wrapper {
    padding: 120px 0 140px;
}

.register-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    align-items: start;
}

.register-intro h1 {
    font-size: clamp(2.4rem, 4vw, 3.1rem);
    margin-bottom: 18px;
}

.register-intro p {
    font-size: 1.08rem;
    color: var(--ink-soft);
    max-width: 520px;
}

.register-metrics {
    margin-top: 32px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.register-metrics div {
    background: var(--white);
    border-radius: 20px;
    padding: 18px 22px;
    border: 1px solid rgba(122, 19, 147, 0.12);
    box-shadow: var(--shadow-card);
    min-width: 140px;
}

.register-metrics strong {
    display: block;
    font-size: 1.6rem;
    color: var(--brand);
}

.register-metrics span {
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.register-form-card {
    background: var(--white);
    padding: 32px;
    border-radius: 28px;
    border: 1px solid rgba(122, 19, 147, 0.14);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 22px;
}

.register-subtitle {
    color: var(--ink-soft);
}

.register-form .form-hint {
    margin-top: 6px;
    font-size: 0.78rem;
}

.register-footnote {
    font-size: 0.86rem;
    color: var(--ink-soft);
    text-align: center;
}

.register-footnote a {
    color: var(--brand);
    font-weight: 600;
}

.register-form-card h2 {
    font-size: 1.6rem;
}

.register-form-card .alert {
    margin-bottom: 0;
}

/* Role switch (login selector) */
.role-switch {
    display: flex;
    gap: 6px;
    background: var(--white);
    border: 1px solid rgba(122, 19, 147, 0.14);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}

.role-option {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    color: var(--brand);
    transition: var(--transition);
}

.role-option:hover {
    background: rgba(122, 19, 147, 0.08);
}

.role-active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: var(--white);
    box-shadow: var(--shadow-card);
    pointer-events: none;
}

.experience {
    padding: 90px 0;
}

.experience-alt {
    background: linear-gradient(180deg, rgba(122, 19, 147, 0.06), transparent);
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    align-items: start;
}

.feature-list {
    list-style: none;
    margin: 28px 0;
    display: grid;
    gap: 14px;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    color: var(--ink-soft);
}

.feature-list li::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.card-form {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(122, 19, 147, 0.12);
}

.card-form h3 {
    margin-bottom: 18px;
}

.portal-preview {
    background: linear-gradient(165deg, rgba(122, 19, 147, 0.08), rgba(255, 255, 255, 0.98));
}

.portal-fields {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 22px 0 26px;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.portal-fields li {
    position: relative;
    padding-left: 28px;
}

.portal-fields li::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.portal-note {
    display: block;
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.portal-note a {
    color: var(--brand);
    font-weight: 600;
}

.form {
    display: grid;
    gap: 18px;
}

.form label {
    display: grid;
    gap: 8px;
    font-size: clamp(0.88rem, 2vw, 0.92rem);
    color: var(--ink-soft);
    font-weight: 500;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: clamp(12px, 2.5vw, 14px);
    border-radius: 12px;
    border: 1px solid rgba(21, 2, 38, 0.14);
    font: inherit;
    font-size: clamp(0.95rem, 2vw, 1rem);
    background: var(--bg);
    transition: var(--transition);
    min-height: 48px;
}

.form input:hover,
.form select:hover,
.form textarea:hover {
    border-color: rgba(122, 19, 147, 0.24);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: 3px solid rgba(122, 19, 147, 0.32);
    outline-offset: 2px;
    background: var(--white);
    border-color: var(--brand);
}

.form textarea {
    min-height: 120px;
    resize: vertical;
}

.form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%237a1393' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.input-password .password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-password input {
    padding-right: 110px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    font-weight: 600;
    color: var(--brand);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 999px;
    transition: var(--transition);
}

.toggle-password:hover,
.toggle-password:focus-visible {
    background: rgba(122, 19, 147, 0.12);
    outline: none;
}

.ai-match {
    padding: 100px 0;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    align-items: start;
}

.ai-card {
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.ai-card::after {
    content: '';
    position: absolute;
    inset: -40px -80px 120px -80px;
    background: linear-gradient(45deg, rgba(122, 19, 147, 0.3), rgba(61, 210, 255, 0.18));
    filter: blur(80px);
    z-index: -1;
}

.steps {
    list-style: none;
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.steps li strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.steps p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
}

.badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.badges span {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(122, 19, 147, 0.18);
    color: var(--brand-dark);
    font-size: 0.8rem;
    font-weight: 600;
}

.stories {
    padding: 90px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.story-card {
    background: var(--white);
    padding: 26px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(122, 19, 147, 0.12);
}

.story-card header span {
    display: block;
    font-size: 0.86rem;
    color: var(--brand);
    margin-top: 4px;
}

.story-card p {
    margin-top: 16px;
    color: var(--ink-soft);
}

.cta-final {
    padding: 80px 0 100px;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: var(--white);
}

.cta-final-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-final-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.main-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.82);
    padding: clamp(50px, 8vh, 60px) 0;
    margin-top: clamp(60px, 10vh, 80px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: clamp(28px, 5vw, 40px);
    flex-wrap: wrap;
}

.footer-content h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 12px;
    color: var(--white);
}

.footer-content p {
    line-height: 1.7;
}

.footer-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.footer-links {
    display: flex;
    gap: clamp(14px, 3vw, 18px);
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

body.portal-body {
    background: linear-gradient(180deg, rgba(122, 19, 147, 0.08), #f7f4fa 48%, #ffffff);
}

.portal-hero {
    padding: 140px 0 120px;
}

.login-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 60px;
}

.login-copy h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 18px;
}

.login-copy p {
    color: var(--ink-soft);
    margin-bottom: 20px;
    max-width: 520px;
}

.portal-form-card {
    max-width: 520px;
}

.portal-form-card .form-intro {
    margin-bottom: 18px;
    color: var(--ink-soft);
}

.portal-user {
    margin: 14px 0 6px;
    font-weight: 600;
    color: var(--brand);
}

.portal-benefits {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 22px 0;
    color: var(--ink-soft);
}

.portal-benefits li {
    position: relative;
    padding-left: 26px;
}

.portal-benefits li::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(61, 210, 255, 0.18);
}

.portal-wrapper {
    padding: 120px 0 140px;
}

.profile-wrapper {
    padding: 140px 0 160px;
}

.profile-layout {
    max-width: 760px;
    margin: 0 auto;
}

.profile-card {
    background: var(--white);
    border-radius: 32px;
    padding: clamp(32px, 6vw, 52px);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(122, 19, 147, 0.12);
    display: grid;
    gap: 26px;
}

.profile-card h1 {
    margin-top: 6px;
    margin-bottom: 12px;
    font-size: clamp(2rem, 3.6vw, 2.6rem);
    font-weight: 700;
    text-align: center;
}

.candidate-dashboard {
    padding: clamp(130px, 12vw, 180px) 0 160px;
}

.candidate-dashboard-layout {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: clamp(36px, 6vw, 52px);
}

.candidate-welcome {
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-radius: 36px;
    padding: clamp(36px, 6vw, 54px);
    box-shadow: 0 28px 60px rgba(122, 19, 147, 0.12);
    border: 1px solid rgba(122, 19, 147, 0.1);
    display: grid;
    gap: 18px;
}

.candidate-welcome .pill {
    align-self: center;
}

.candidate-welcome h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 6px;
}

.candidate-welcome p {
    color: var(--ink-soft);
    max-width: 540px;
    margin: 0 auto;
}

.candidate-welcome-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.candidate-welcome-actions .btn {
    min-width: 180px;
}

.candidate-summary {
    display: grid;
    gap: clamp(18px, 4vw, 28px);
}

.summary-card {
    background: var(--white);
    border-radius: 24px;
    padding: clamp(24px, 5vw, 34px);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(122, 19, 147, 0.08);
    display: grid;
    gap: 16px;
}

.summary-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.summary-card dl {
    display: grid;
    gap: 16px;
    margin: 0;
}

.summary-card dt {
    font-weight: 600;
    color: var(--ink);
}

.summary-card dd {
    margin: 6px 0 0;
    color: var(--ink-soft);
}

.summary-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    color: var(--ink-soft);
}

.candidate-opportunities {
    background: var(--white);
    border-radius: 28px;
    padding: clamp(28px, 5vw, 40px);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(122, 19, 147, 0.08);
    display: grid;
    gap: 20px;
    text-align: left;
}

.candidate-opportunities .opportunities-head {
    text-align: center;
    display: grid;
    gap: 12px;
}

.candidate-opportunities .opportunities-head p {
    color: var(--ink-soft);
    margin: 0 auto;
    max-width: 520px;
}

.candidate-opportunities-list {
    display: grid;
    gap: 18px;
}

.candidate-opportunity-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    border: 1px solid rgba(122, 19, 147, 0.08);
    padding: clamp(20px, 4vw, 26px);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 16px;
}

.candidate-opportunity-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.candidate-opportunity-head h3 {
    margin: 0;
    flex: 1 1 240px;
}

.candidate-opportunity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.match-badge {
    background: var(--brand-light);
    color: var(--brand);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.candidate-opportunity-meta p {
    margin: 0;
    color: var(--ink-soft);
}

.candidate-opportunity-meta p+p {
    margin-top: 6px;
}

.candidate-opportunity-summary {
    margin-top: 12px;
    color: var(--ink-soft);
}

.candidate-opportunity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.candidate-opportunity-actions .btn {
    min-width: 0;
}

.candidate-opportunity-fallback {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.opportunities-empty {
    text-align: center;
    display: grid;
    gap: 12px;
    color: var(--ink-soft);
}

.opportunities-empty p {
    margin: 0 auto;
    max-width: 520px;
}

.candidate-dashboard .btn {
    justify-self: center;
    min-width: 180px;
}

@media (min-width: 768px) {
    .candidate-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.profile-form .form-section {
    display: grid;
    gap: 18px;
    padding: clamp(18px, 5vw, 28px);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    border: 1px solid rgba(122, 19, 147, 0.08);
    box-shadow: var(--shadow-soft);
}

.profile-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.field-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.phone-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.phone-grid label {
    flex: 1 1 130px;
    font-size: 0.88rem;
}

.phone-grid .phone-country-field {
    flex: 0 0 130px;
    max-width: 160px;
}

.phone-grid .phone-local-group {
    display: flex;
    gap: 12px;
    flex: 1 1 260px;
}

.phone-grid .phone-local-group label {
    flex: 1 1 130px;
}

.phone-grid .phone-ddd-field {
    flex: 0 0 110px;
    max-width: 140px;
}

.phone-grid .phone-number-field {
    flex: 1 1 220px;
}

.phone-grid input {
    width: 100%;
}

.toggle-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid rgba(21, 2, 38, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    transition: var(--transition);
    cursor: pointer;
}

.toggle-option:hover {
    border-color: rgba(122, 19, 147, 0.32);
    box-shadow: 0 10px 28px rgba(122, 19, 147, 0.12);
}

.toggle-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.module-grid {
    display: grid;
    gap: 20px;
}

.module-block {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    border: 1px solid rgba(122, 19, 147, 0.08);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 16px;
    padding: clamp(18px, 4vw, 26px);
}

.module-block h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand);
}

.module-block .form-grid.columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (min-width: 1024px) {
    .module-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.profile-card>p {
    margin-bottom: 10px;
    color: var(--ink-soft);
    max-width: 520px;
    justify-self: center;
    text-align: center;
}

.profile-card>.pill {
    justify-self: center;
}

.profile-form {
    display: grid;
    gap: 24px;
}

.profile-form .form-grid {
    gap: 18px;
}

.profile-form label {
    display: grid;
    gap: 10px;
}

.profile-form input {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(21, 2, 38, 0.12);
    padding: 12px 14px;
    font-size: 0.96rem;
    transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.profile-form input:focus {
    outline: none;
    border-color: rgba(122, 19, 147, 0.45);
    box-shadow: 0 0 0 4px rgba(122, 19, 147, 0.12);
}

.profile-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.profile-meta strong {
    color: var(--ink);
}

.profile-form .btn {
    align-self: flex-start;
    padding: 12px 28px;
    font-size: 0.95rem;
    border-radius: 999px;
}

.profile-form .btn .btn-spinner {
    width: 16px;
    height: 16px;
}

.profile-form .alert {
    margin-top: -6px;
}

/* Profile Score Section */
.profile-score-section {
    background: linear-gradient(135deg, rgba(122, 19, 147, 0.05), rgba(61, 210, 255, 0.05));
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 40px;
}

.profile-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.profile-score-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.profile-score-header p {
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0;
}

.profile-score-bar {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 24px;
    box-shadow: 0 4px 12px rgba(21, 2, 38, 0.08);
}

.score-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.score-value strong {
    font-size: 48px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
}

.score-value span {
    font-size: 24px;
    color: var(--ink-soft);
    font-weight: 600;
}

.score-progress {
    width: 100%;
    height: 16px;
    background: var(--bg);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.score-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-label {
    display: block;
    font-size: 14px;
    color: var(--ink-soft);
    font-weight: 600;
}

.profile-evaluation {
    margin-top: 24px;
    display: grid;
    gap: 20px;
}

.evaluation-section {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(21, 2, 38, 0.06);
}

.evaluation-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}

.evaluation-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.evaluation-section li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
}

.evaluation-section li:last-child {
    border-bottom: none;
}

/* Progress Bar de Avaliação */
.evaluation-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg);
    z-index: 9999;
    overflow: hidden;
}

.evaluation-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
    background-size: 200% 100%;
    animation: progressShine 2s ease-in-out infinite;
    width: 0%;
    transition: width 0.3s ease;
}

@keyframes progressShine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.evaluation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 2, 38, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.evaluation-modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 24px 48px rgba(21, 2, 38, 0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.evaluation-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border: 4px solid var(--bg);
    border-top: 4px solid var(--brand);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.evaluation-modal h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}

.evaluation-modal p {
    font-size: 16px;
    color: var(--ink-soft);
    margin: 0;
}

.evaluation-steps {
    margin-top: 24px;
    text-align: left;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.evaluation-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--ink-soft);
}

.evaluation-step.active {
    color: var(--brand);
    font-weight: 600;
}

.evaluation-step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.evaluation-step.active .evaluation-step-icon {
    background: var(--brand);
    color: var(--white);
    animation: pulse 1.5s ease-in-out infinite;
}

.evaluation-step.completed .evaluation-step-icon {
    background: #4caf50;
    color: var(--white);
}

@media (max-width: 768px) {
    .profile-score-section {
        padding: 20px;
    }

    .profile-score-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .score-value strong {
        font-size: 36px;
    }

    .score-value span {
        font-size: 18px;
    }

    .evaluation-modal-content {
        padding: 32px 24px;
        margin: 20px;
    }
}

.portal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 48px;
    align-items: flex-start;
}

.portal-aside {
    position: sticky;
    top: 140px;
}

.portal-aside-card {
    background: linear-gradient(165deg, #3d0951, #5d1175);
    color: #ffffff;
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.portal-candidate-preview {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(122, 19, 147, 0.12);
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

.candidate-preview-head h2 {
    font-size: 1.18rem;
    margin-bottom: 6px;
}

.candidate-preview-head p {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.candidate-preview-body {
    display: grid;
    gap: 14px;
}

.candidate-preview-summary {
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.candidate-preview-placeholder {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.candidate-match-list {
    display: grid;
    gap: 12px;
    list-style: none;
}

.candidate-match-item {
    border: 1px solid rgba(122, 19, 147, 0.12);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: grid;
    gap: 10px;
    background: rgba(247, 244, 250, 0.6);
}

.candidate-match-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
}

.candidate-match-top strong {
    font-size: 1rem;
}

.candidate-match-score {
    font-weight: 700;
    color: var(--brand);
    font-size: 1.05rem;
}

.candidate-match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.candidate-match-meta span {
    background: var(--white);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(122, 19, 147, 0.08);
}

.candidate-preview-skeleton {
    height: 72px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, rgba(247, 244, 250, 0.6) 0%, rgba(232, 220, 244, 0.9) 50%, rgba(247, 244, 250, 0.6) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.1s ease-in-out infinite;
}

.portal-aside-card .portal-benefits {
    color: #f5f5f5;
    font-size: 0.95rem;
    line-height: 1.65;
}

.portal-aside-card h2 {
    color: #ffffff;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 1.3rem;
}

.portal-aside-card p {
    color: #f0f0f0;
    line-height: 1.7;
    font-size: 0.96rem;
}

.portal-aside-card .portal-benefits li::before {
    background: #3dd2ff;
    box-shadow: 0 0 0 4px rgba(61, 210, 255, 0.25);
}

.portal-aside-card .portal-note {
    color: #f0f0f0;
    margin-top: 20px;
    line-height: 1.6;
}

.portal-aside-card .portal-note a {
    color: #7de3ff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(125, 227, 255, 0.4);
    transition: all 0.24s ease;
}

.portal-aside-card .portal-note a:hover {
    color: #a8edff;
    text-decoration-color: rgba(168, 237, 255, 0.8);
}

.portal-jobs-card {
    margin-top: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(122, 19, 147, 0.12);
    display: grid;
    gap: 18px;
}

.portal-jobs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.portal-jobs-head h2 {
    font-size: 1.2rem;
}

.portal-jobs-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(122, 19, 147, 0.16);
    color: var(--brand);
    font-weight: 600;
    font-size: 0.82rem;
}

.portal-jobs-list {
    list-style: none;
    display: grid;
    gap: 16px;
}

.portal-job-item {
    border: 1px solid rgba(122, 19, 147, 0.1);
    border-radius: var(--radius-md);
    padding: 18px;
    display: grid;
    gap: 14px;
    background: rgba(247, 244, 250, 0.6);
}

.portal-job-item header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.portal-job-item h3 {
    font-size: 1.02rem;
    line-height: 1.4;
}

.portal-job-pill {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(61, 210, 255, 0.16);
    color: #126781;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.portal-job-description {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.portal-job-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.portal-job-meta div {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    border: 1px solid rgba(122, 19, 147, 0.08);
}

.portal-job-meta dt {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(21, 2, 38, 0.6);
    margin-bottom: 6px;
}

.portal-job-meta dd {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink);
}

.portal-job-dates {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.portal-job-dates strong {
    color: var(--brand);
}

.portal-job-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.portal-job-footer>div {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.portal-job-link {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(122, 19, 147, 0.2);
    font-weight: 600;
    color: var(--brand);
}

.portal-job-link:hover {
    background: rgba(122, 19, 147, 0.12);
}

.portal-note-light {
    color: var(--ink-soft);
}

.vacancies-wrapper {
    padding: 120px 0 140px;
}

.vacancies-head {
    background: linear-gradient(135deg, rgba(122, 19, 147, 0.08), rgba(61, 210, 255, 0.12));
    border-radius: var(--radius-lg);
    padding: 36px;
    display: grid;
    gap: 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(122, 19, 147, 0.12);
}

.vacancies-head h1 {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
}

.vacancies-stats {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.vacancy-stat {
    min-width: 160px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(122, 19, 147, 0.1);
}

.vacancy-stat strong {
    display: block;
    font-size: 1.6rem;
    color: var(--brand);
}

.vacancy-stat span {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.vacancies-toolbar {
    margin-top: 36px;
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}


.vacancies-search {
    position: relative;
    flex: 1 1 420px;
    min-width: 320px;
}

.vacancies-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border-radius: 999px;
    border: 1px solid rgba(122, 19, 147, 0.16);
    background: var(--white);
}

.vacancies-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: var(--brand);
}

.vacancies-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(122, 19, 147, 0.18);
    background: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand);
    cursor: pointer;
    transition: var(--transition);
}

.filter-chip.active,
.filter-chip:hover {
    background: rgba(122, 19, 147, 0.16);
}

.vacancies-grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.vacancy-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(122, 19, 147, 0.12);
    padding: 26px;
    background: var(--white);
    display: grid;
    gap: 18px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.vacancy-card header {
    display: grid;
    gap: 12px;
}

.vacancy-matching {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(122, 19, 147, 0.08), rgba(61, 210, 255, 0.08));
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.vacancy-matching .matching-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}

.vacancy-matching .matching-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--brand);
}

.vacancy-matching .matching-spinner {
    font-size: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.vacancy-card .badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(61, 210, 255, 0.16);
    color: #126781;
    font-weight: 600;
    font-size: 0.8rem;
}


.vacancy-card .description {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.vacancy-card dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.vacancy-card dt {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(21, 2, 38, 0.55);
}

.vacancy-card dd {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: var(--ink);
}

.vacancy-dates {
    list-style: none;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.86rem;
    color: var(--ink-soft);
}

.vacancy-dates strong {
    color: var(--brand);
}

.vacancy-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.vacancy-contact {
    display: grid;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.vacancy-actions {
    display: flex;
    gap: 10px;
}

.vacancy-actions button,
.vacancy-actions a {
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.vacancy-actions .btn-edit {
    background: rgba(122, 19, 147, 0.12);
    color: var(--brand);
    border-color: rgba(122, 19, 147, 0.24);
}

.vacancy-actions .btn-edit:hover {
    background: rgba(122, 19, 147, 0.2);
}

.vacancy-actions .btn-delete {
    background: rgba(236, 86, 120, 0.12);
    color: #8f1a3c;
    border-color: rgba(236, 86, 120, 0.3);
}

.vacancy-actions .btn-delete:hover {
    background: rgba(236, 86, 120, 0.2);
}

.vacancy-empty {
    padding: 60px;
    text-align: center;
    background: rgba(247, 244, 250, 0.7);
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(122, 19, 147, 0.3);
    color: var(--ink-soft);
}

.vacancy-empty h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.vacancy-empty p {
    margin-bottom: 18px;
}

.vacancy-empty .btn {
    margin-top: 10px;
}

.portal-modal {
    position: fixed;
    inset: 0;
    background: rgba(21, 2, 38, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    z-index: 100;
}

.portal-modal.open {
    display: flex;
}

.portal-modal-dialog {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 720px;
    width: 100%;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(122, 19, 147, 0.16);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
}

.portal-modal-header {
    padding: 22px 28px;
    border-bottom: 1px solid rgba(122, 19, 147, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.modal-title-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.portal-modal-header h2 {
    font-size: 1.4rem;
    margin: 0;
}

.candidates-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--ink-soft);
    background: rgba(16, 185, 129, 0.08);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 185, 129, 0.2);
    width: fit-content;
}

.counter-label {
    font-weight: 600;
    color: var(--ink-base);
}

.counter-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.portal-modal-close {
    border: none;
    background: none;
    font-size: 1.8rem;
    color: var(--ink-soft);
    cursor: pointer;
}

.portal-modal-body {
    padding: 26px 28px 32px;
    max-height: min(70vh, 600px);
    overflow-y: auto;
}

.vacancy-update-actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.vacancy-update-actions .btn-secondary {
    background: rgba(122, 19, 147, 0.1);
    border-color: rgba(122, 19, 147, 0.22);
}

.portal-jobs-card {
    margin-top: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(122, 19, 147, 0.12);
    display: grid;
    gap: 18px;
}

.portal-jobs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.portal-jobs-head h2 {
    font-size: 1.2rem;
}

.portal-jobs-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(122, 19, 147, 0.16);
    color: var(--brand);
    font-weight: 600;
    font-size: 0.82rem;
}

.portal-jobs-list {
    list-style: none;
    display: grid;
    gap: 16px;
}

.portal-job-item {
    border: 1px solid rgba(122, 19, 147, 0.1);
    border-radius: var(--radius-md);
    padding: 18px;
    display: grid;
    gap: 14px;
    background: rgba(247, 244, 250, 0.6);
}

.portal-job-item header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.portal-job-item h3 {
    font-size: 1.02rem;
    line-height: 1.4;
}

.portal-job-pill {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(61, 210, 255, 0.16);
    color: #126781;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.portal-job-description {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.portal-job-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.portal-job-meta div {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    border: 1px solid rgba(122, 19, 147, 0.08);
}

.portal-job-meta dt {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(21, 2, 38, 0.6);
    margin-bottom: 6px;
}

.portal-job-meta dd {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink);
}

.portal-job-dates {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.portal-job-dates strong {
    color: var(--brand);
}

.portal-job-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.portal-job-footer>div {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.portal-job-link {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(122, 19, 147, 0.2);
    font-weight: 600;
    color: var(--brand);
}

.portal-job-link:hover {
    background: rgba(122, 19, 147, 0.12);
}

.portal-note-light {
    color: var(--ink-soft);
}

.portal-job-form {
    display: grid;
    gap: 22px;
}

.form-grid.columns-2 {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid.columns-3 {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.portal-job-form select[multiple] {
    min-height: 160px;
    background: var(--white);
}

.portal-job-form textarea {
    min-height: 160px;
    resize: vertical;
}

.textarea-label {
    display: grid;
    gap: 12px;
}

.label-title {
    font-weight: 600;
    font-size: 0.98rem;
}

.description-ai-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.description-ai-actions .form-hint {
    margin: 0;
}

.ai-feedback {
    margin-top: -6px;
    color: var(--ink-soft);
}

.ai-feedback-success {
    color: #1b7f5f;
}

.ai-feedback-error {
    color: #c62828;
}

.ai-feedback-loading {
    color: var(--brand);
}

.ai-counter-warning {
    color: #c62828;
    font-weight: 600;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-top: 6px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    font-size: 0.9rem;
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    box-shadow: 0 12px 30px -18px rgba(36, 12, 46, 0.48);
    transition: opacity 0.34s ease, transform 0.34s ease;
}

.alert.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.alert-success {
    background: linear-gradient(135deg, rgba(66, 193, 110, 0.18), rgba(66, 193, 110, 0.08));
    color: #1c6b3c;
    border: 1px solid rgba(66, 193, 110, 0.32);
    position: relative;
    overflow: hidden;
}

.alert-success::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: success-sparkle 20s linear infinite;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes success-sparkle {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 50px) rotate(360deg);
    }
}

.alert-error {
    background: rgba(236, 86, 120, 0.14);
    color: #8f1a3c;
    border: 1px solid rgba(236, 86, 120, 0.28);
}

.alert .alert-icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.6);
    color: inherit;
    box-shadow: 0 6px 16px -10px rgba(36, 12, 46, 0.65);
    position: relative;
    z-index: 1;
}

.alert-success .alert-icon {
    background: rgba(66, 193, 110, 0.22);
    color: #1c6b3c;
    animation: success-icon-pulse 2s ease-in-out infinite;
}

@keyframes success-icon-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 6px 16px -10px rgba(66, 193, 110, 0.65);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 24px -10px rgba(66, 193, 110, 0.85);
    }
}

.alert-error .alert-icon {
    background: rgba(236, 86, 120, 0.2);
    color: #8f1a3c;
}

.alert-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alert-body strong {
    font-size: 1rem;
    color: var(--ink);
}

.alert-body p {
    margin: 0;
    line-height: 1.45;
}

.alert-body #countdown {
    display: inline-block;
    font-weight: 700;
    font-size: 1.15em;
    color: #1c6b3c;
    animation: countdown-pulse 1s ease-in-out infinite;
}

@keyframes countdown-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    color: var(--ink);
    border: 1px solid rgba(36, 12, 46, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    min-width: 280px;
    max-width: 420px;
    box-shadow: 0 14px 36px -18px rgba(36, 12, 46, 0.35);
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-color: rgba(66, 193, 110, 0.32);
    background: linear-gradient(135deg, rgba(66, 193, 110, 0.1), rgba(66, 193, 110, 0.04));
    color: #1c6b3c;
}

.toast-error {
    border-color: rgba(236, 86, 120, 0.28);
    background: linear-gradient(135deg, rgba(236, 86, 120, 0.1), rgba(236, 86, 120, 0.04));
    color: #8f1a3c;
}

.toast .toast-icon {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.7);
    color: inherit;
    box-shadow: 0 6px 16px -10px rgba(36, 12, 46, 0.45);
}

.toast-success .toast-icon {
    background: rgba(66, 193, 110, 0.2);
}

.toast-error .toast-icon {
    background: rgba(236, 86, 120, 0.2);
}

.toast-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-body strong {
    font-size: 0.95rem;
}

.toast-body p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast-body #countdown {
    display: inline-block;
    font-weight: 700;
    font-size: 1.05em;
    color: inherit;
    animation: countdown-pulse 1s ease-in-out infinite;
}

.toast-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    padding: 2px 6px;
}

.toast-close:focus-visible {
    outline: 3px solid rgba(66, 193, 110, 0.35);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        align-items: flex-end;
    }

    .toast {
        width: 100%;
        max-width: none;
    }
}

.alert-body ul {
    margin: 0;
    padding-left: 18px;
}

.alert-body li+li {
    margin-top: 4px;
}

.alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.alert-action {
    animation: alert-action-pop 0.5s ease;
    text-decoration: none;
}

.alert-action.btn {
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.85rem;
    box-shadow: 0 10px 24px -14px rgba(36, 12, 46, 0.65);
}

.alert-action:focus-visible {
    outline: 3px solid rgba(66, 193, 110, 0.35);
    outline-offset: 3px;
}

.alert-shake {
    animation: alert-shake 0.44s ease;
}

.alert-pop-icon {
    animation: alert-pop 0.52s ease;
}

@keyframes alert-action-pop {
    0% {
        transform: translateY(12px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.field-error input,
.field-error select,
.field-error textarea {
    border-color: rgba(236, 86, 120, 0.68);
    box-shadow: 0 0 0 2px rgba(236, 86, 120, 0.12);
}

.field-error input[type="checkbox"] {
    box-shadow: 0 0 0 2px rgba(236, 86, 120, 0.12);
}

.field-error-message {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #8f1a3c;
}

@keyframes alert-pop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    70% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.alert.fade-out {
    opacity: 0;
    transform: translateY(-8px);
}

@keyframes alert-shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-3px);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 1024px) {

    .hero-content,
    .split,
    .ai-grid,
    .cta-final-content,
    .portal-layout,
    .login-layout {
        grid-template-columns: 1fr;
        display: grid;
    }

    .cta-final-content,
    .hero-content {
        gap: 40px;
    }

    .modules {
        padding: 20px 0 18px 0;
    }

    .section-head {
        margin-bottom: 14px;
    }

    .hero-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .device-card {
        max-width: 100%;
        margin: 0 auto;
        padding: clamp(20px, 4vw, 28px);
    }

    .portal-aside {
        order: -1;
        position: static;
        top: auto;
    }

    .vacancies-head {
        padding: 28px;
    }

    .vacancies-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .vacancy-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .home-job-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .home-job-card {
        flex: 0 0 calc(50% - 12px);
    }

    .section-head {
        text-align: center;
    }

    .section-head h2 {
        font-size: clamp(1.8rem, 4vw, 2.4rem);
    }
}

@media (max-width: 860px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(85vw, 380px);
        height: 100vh;
        background: var(--white);
        padding: 100px 32px 32px;
        flex-direction: column;
        gap: 8px;
        box-shadow: -24px 0 50px rgba(21, 2, 38, 0.18);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 99;
    }

    .main-nav.open {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-link {
        padding: 14px 18px;
        border-radius: var(--radius-sm);
        transition: var(--transition);
        font-size: 1rem;
    }

    .nav-link:hover {
        background: var(--brand-light);
    }

    .nav-cta {
        align-self: stretch;
        text-align: center;
        margin-top: 12px;
        padding: 14px 24px;
    }

    .main-nav::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(21, 2, 38, 0.6);
        backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .main-nav.open::before {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 90px;
        padding-bottom: 50px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-metrics {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .hero-metrics>div {
        flex: 1 1 calc(50% - 8px);
        min-width: 140px;
    }

    .floating-badge {
        right: 0;
        bottom: -18px;
        transform: rotate(0);
        font-size: 0.85rem;
        padding: 10px 16px;
    }

    .device-card {
        max-width: 100%;
        padding: 20px;
        border-radius: 24px;
    }

    .candidate-card {
        padding: 16px;
    }

    .ai-chip {
        padding: 8px 14px;
        font-size: 0.72rem;
    }

    .logos {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logos span {
        font-size: 0.9rem;
    }

    .card-form {
        padding: 24px;
    }

    .portal-hero {
        padding: 110px 0 100px;
    }

    .portal-wrapper {
        padding: 100px 0 110px;
    }

    .vacancies-head {
        padding: 24px;
    }

    .vacancies-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .vacancies-search,
    .vacancies-filters,
    .vacancies-scope {
        width: 100%;
    }

    .vacancies-search {
        min-width: 0;
    }

    .vacancy-card {
        padding: 22px;
    }

    .home-job-grid {
        grid-template-columns: 1fr;
    }

    .home-job-cta {
        padding: 24px;
        gap: 24px;
    }

    .home-job-card {
        flex: 0 0 100%;
    }

    .footer-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Media queries adicionais para tablets */
@media (max-width: 768px) and (min-width: 641px) {
    .hero-content {
        gap: 36px;
    }

    .module-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn {
        padding: 12px 20px;
    }

    .device-card {
        max-width: 420px;
        margin: 0 auto;
    }
}

/* Melhorias para telas muito pequenas */
@media (max-width: 360px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding-top: 70px;
        padding-bottom: 40px;
    }

    .btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .hero-copy h1 {
        font-size: 1.8rem;
    }

    .section-head h2 {
        font-size: 1.5rem;
    }

    .section-head {
        margin-bottom: 12px;
    }

    .modules {
        padding: 16px 0 14px 0;
    }

    .module-card {
        padding: 16px;
    }

    .device-card {
        padding: 16px;
        border-radius: 20px;
        min-width: 240px;
    }

    .device-body h2 {
        font-size: 1rem;
    }

    .candidate-card {
        padding: 14px;
    }

    .candidate-card h3 {
        font-size: 0.9rem;
    }

    .candidate-card ul {
        font-size: 0.8rem;
    }
}

/* Landscape mode para dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding-top: 60px;
        padding-bottom: 40px;
    }

    .portal-hero {
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .device-card {
        padding: 16px;
        border-radius: 20px;
    }

    .candidate-card {
        padding: 12px;
        margin-bottom: 12px;
    }
}

/* Print styles */
@media print {

    .main-header,
    .menu-toggle,
    .main-nav,
    .hero-visual,
    .floating-badge,
    .footer-actions,
    .btn,
    .skip-link {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        width: 100%;
    }

    a {
        text-decoration: underline;
    }
}

/* Respeitar preferências de movimento reduzido */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Melhorias de performance para animações */
@media (prefers-reduced-motion: no-preference) {

    .btn,
    .module-card,
    .home-job-card,
    .nav-link,
    .menu-toggle {
        will-change: transform;
    }

    .btn:hover,
    .module-card:hover,
    .home-job-card:hover {
        will-change: auto;
    }
}

body.nav-open,
body.modal-open {
    overflow: hidden;
}

.home-job-empty {
    padding: 48px 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px dashed rgba(122, 19, 147, 0.3);
    color: var(--ink-soft);
    margin-bottom: 36px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.6;
    box-shadow: 0 8px 24px rgba(122, 19, 147, 0.08);
}

.contact-grid {
    display: grid;
    gap: 16px;
}

.contact-grid label,
.contact-grid .field-group {
    width: 100%;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.contact-grid label input[type="url"] {
    max-width: 100%;
}

body.portal-candidate-vacancies .candidate-vacancies {
    padding: clamp(130px, 12vw, 180px) 0 160px;
}

body.portal-candidate-vacancies .candidate-vacancies-layout {
    max-width: 940px;
    margin: 0 auto;
    display: grid;
    gap: clamp(32px, 6vw, 48px);
}

body.portal-candidate-vacancies .candidate-vacancies-intro {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border-radius: 36px;
    padding: clamp(36px, 6vw, 58px);
    box-shadow: 0 28px 60px rgba(122, 19, 147, 0.12);
    border: 1px solid rgba(122, 19, 147, 0.1);
    display: grid;
    gap: 18px;
}

body.portal-candidate-vacancies .candidate-vacancies-intro p {
    color: var(--ink-soft);
    max-width: 560px;
    margin: 0 auto;
}

body.portal-candidate-vacancies .candidate-vacancies-filters .filters-form {
    background: var(--white);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(122, 19, 147, 0.12);
    padding: clamp(24px, 5vw, 32px);
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: end;
}

body.portal-candidate-vacancies .candidate-vacancies-filters .filter-group {
    display: grid;
    gap: 10px;
}

body.portal-candidate-vacancies .candidate-vacancies-filters label {
    font-weight: 600;
    color: var(--ink);
}

body.portal-candidate-vacancies .candidate-vacancies-filters select {
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(122, 19, 147, 0.18);
    padding: 0 14px;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
    transition: var(--transition);
}

body.portal-candidate-vacancies .candidate-vacancies-filters select:focus {
    outline: 2px solid rgba(122, 19, 147, 0.25);
    outline-offset: 2px;
}

body.portal-candidate-vacancies .candidate-vacancies-filters .filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

body.portal-candidate-vacancies .candidate-vacancies-filters .filter-actions .btn {
    min-width: 160px;
    justify-content: center;
}

body.portal-candidate-vacancies .candidate-vacancies .active-filters {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(122, 19, 147, 0.08);
    border-radius: 18px;
    padding: 12px 18px;
    color: var(--ink);
    font-size: 0.9rem;
}

body.portal-candidate-vacancies .candidate-vacancies .active-filters ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

body.portal-candidate-vacancies .candidate-vacancies .results-head {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
}

body.portal-candidate-vacancies .candidate-vacancies .results-head h2 {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 700;
}

body.portal-candidate-vacancies .candidate-vacancies .results-head p {
    color: var(--ink-soft);
}

body.portal-candidate-vacancies .candidate-vacancies .vacancies-list {
    display: grid;
    gap: 24px;
}

body.portal-candidate-vacancies .candidate-vacancies .vacancy-card-head {
    display: grid;
    gap: 10px;
}

body.portal-candidate-vacancies .candidate-vacancies .vacancy-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body.portal-candidate-vacancies .candidate-vacancies .vacancy-tags .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(61, 210, 255, 0.16);
    color: #126781;
    font-size: 0.8rem;
    font-weight: 600;
}

body.portal-candidate-vacancies .candidate-vacancies .vacancy-meta p {
    margin: 4px 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

body.portal-candidate-vacancies .candidate-vacancies .vacancy-meta strong {
    color: var(--ink);
}

body.portal-candidate-vacancies .candidate-vacancies .vacancy-summary {
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.6;
}

body.portal-candidate-vacancies .candidate-vacancies .vacancy-details {
    background: rgba(122, 19, 147, 0.05);
    border-radius: 18px;
    padding: 12px 18px;
}

body.portal-candidate-vacancies .candidate-vacancies .vacancy-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 8px;
    list-style: none;
}

body.portal-candidate-vacancies .candidate-vacancies .vacancy-details[open] summary {
    margin-bottom: 12px;
}

body.portal-candidate-vacancies .candidate-vacancies .vacancy-details p {
    margin: 0;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.6;
}

body.portal-candidate-vacancies .candidate-vacancies .vacancy-card-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.portal-candidate-vacancies .candidate-vacancies .vacancy-contact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

body.portal-candidate-vacancies .candidate-vacancies .vacancies-empty {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 28px;
    padding: clamp(28px, 5vw, 40px);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 12px;
    text-align: center;
}

@media (max-width: 720px) {
    body.portal-candidate-vacancies .candidate-vacancies {
        padding-top: 120px;
    }

    body.portal-candidate-vacancies .candidate-vacancies-intro {
        padding: 28px;
    }

    body.portal-candidate-vacancies .candidate-vacancies-filters .filters-form {
        grid-template-columns: 1fr;
    }

    body.portal-candidate-vacancies .candidate-vacancies-filters .filter-actions {
        justify-content: flex-start;
    }

    body.portal-candidate-vacancies .candidate-vacancies .vacancy-contact .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== JOB DETAILS PAGE ===== */
.job-details-wrapper {
    padding: 60px 0 100px;
    background: linear-gradient(180deg, rgba(122, 19, 147, 0.04) 0%, var(--bg) 100%);
    min-height: calc(100vh - 200px);
}

.job-details-header {
    margin-bottom: 32px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(122, 19, 147, 0.06);
}

.back-link:hover {
    background: rgba(122, 19, 147, 0.12);
    gap: 12px;
    transform: translateX(-4px);
}

.back-link svg {
    transition: transform 0.2s ease;
}

.back-link:hover svg {
    transform: translateX(-2px);
}

/* Error State */
.job-details-error {
    background: var(--white);
    border-radius: 24px;
    padding: 64px 48px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(122, 19, 147, 0.08);
}

.job-details-error .error-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.job-details-error h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--ink);
}

.job-details-error p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

/* Content Layout */
.job-details-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .job-details-content {
        grid-template-columns: 1fr;
    }
}

/* Main Content */
.job-details-main {
    display: grid;
    gap: 24px;
}

.job-header-card {
    background: linear-gradient(135deg, var(--white) 0%, rgba(247, 244, 250, 0.8) 100%);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 8px 32px rgba(122, 19, 147, 0.12);
    border: 1px solid rgba(122, 19, 147, 0.08);
    position: relative;
    overflow: hidden;
}

.job-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
}

.job-module-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(61, 210, 255, 0.15) 0%, rgba(61, 210, 255, 0.25) 100%);
    color: #0d5a6f;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid rgba(61, 210, 255, 0.3);
    margin-bottom: 20px;
}

.job-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 20px;
}

.job-company {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 12px;
}

.job-company svg {
    flex-shrink: 0;
}

.job-location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--ink-soft);
}

.job-location svg {
    flex-shrink: 0;
}

/* Info Grid */
.job-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.job-info-card {
    background: var(--white);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(122, 19, 147, 0.08);
    border: 1px solid rgba(122, 19, 147, 0.06);
    transition: all 0.2s ease;
}

.job-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(122, 19, 147, 0.14);
    border-color: rgba(122, 19, 147, 0.12);
}

.job-info-card dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(21, 2, 38, 0.6);
    font-weight: 700;
    margin-bottom: 8px;
}

.job-info-card dd {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
}

/* Description Card */
.job-description-card {
    background: var(--white);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 8px 32px rgba(122, 19, 147, 0.1);
    border: 1px solid rgba(122, 19, 147, 0.08);
}

.job-description-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(122, 19, 147, 0.1);
}

.job-description-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink-soft);
}

/* Sidebar */
.job-details-sidebar {
    display: grid;
    gap: 24px;
    position: sticky;
    top: 100px;
}

@media (max-width: 1024px) {
    .job-details-sidebar {
        position: static;
    }
}

/* Contact Card */
.job-contact-card {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 16px 48px rgba(122, 19, 147, 0.3);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.job-contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(61, 210, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.job-contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.job-contact-card>p {
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.6;
}

.job-contact-card .btn {
    margin-bottom: 12px;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
}

.job-contact-card .btn svg {
    flex-shrink: 0;
}

/* Apply Buttons - Destaque especial para candidatura */
.btn-apply-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: var(--white) !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 24px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-apply-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-apply-primary:hover::before {
    left: 100%;
}

.btn-apply-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-apply-primary:active {
    transform: translateY(-1px);
}

.btn-apply-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: var(--white) !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 24px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-apply-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-apply-whatsapp:hover::before {
    left: 100%;
}

.btn-apply-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-apply-whatsapp:active {
    transform: translateY(-1px);
}

.contact-hint {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: -6px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact-hint strong {
    font-weight: 700;
    opacity: 1;
}

.contact-email {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 8px;
    word-break: break-all;
}

.no-contact-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.no-contact-info p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
}

/* Deadline Card */
.job-deadline-card {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, var(--white) 100%);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.15);
    border: 2px solid rgba(255, 193, 7, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.job-deadline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 193, 7, 0.25);
    border-color: rgba(255, 193, 7, 0.5);
}

.deadline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.25) 100%);
    border-radius: 50%;
    color: #f57c00;
    transition: all 0.3s ease;
}

.job-deadline-card:hover .deadline-icon {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25) 0%, rgba(255, 193, 7, 0.35) 100%);
}

.deadline-icon svg {
    display: block;
}

.job-deadline-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}

.deadline-date {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand);
}

/* Share Card */
.job-share-card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(122, 19, 147, 0.1);
    border: 1px solid rgba(122, 19, 147, 0.08);
}

.job-share-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
    text-align: center;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(122, 19, 147, 0.2);
    background: rgba(122, 19, 147, 0.06);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: var(--brand);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(122, 19, 147, 0.3);
}

.share-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .job-details-wrapper {
        padding: 40px 0 60px;
    }

    .job-title {
        font-size: 1.6rem;
    }

    .job-header-card {
        padding: 28px 24px;
    }

    .job-description-card {
        padding: 28px 24px;
    }

    .job-info-grid {
        grid-template-columns: 1fr;
    }

    .job-contact-card {
        padding: 28px 24px;
    }
}

/* ===== MATCHED CANDIDATES MODAL ===== */
.btn-view-candidates {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-view-candidates:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-view-candidates:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.matched-candidates-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.matched-candidates-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.matched-candidates-header {
    padding: 2rem;
    border-bottom: 2px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.matched-candidates-header h2 {
    font-size: 1.75rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.matched-candidates-header .vacancy-info {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.matched-candidates-header .ai-suggestion {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.matched-candidates-header .ai-suggestion strong {
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.matched-candidates-header .ai-suggestion p {
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.matched-candidates-header .ai-processing {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #1e40af;
}

.matched-candidates-header .ai-processing .spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.matched-candidates-loading {
    padding: 3rem;
    text-align: center;
}

.matched-candidates-loading .spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.matched-candidates-loading p {
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.matched-candidates-body {
    padding: 2rem;
}

.matched-candidates-list {
    display: grid;
    gap: 1.5rem;
}

.matched-candidate-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.matched-candidate-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.matched-candidate-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.matched-candidate-card:hover::before {
    opacity: 1;
}

.matched-candidate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.matched-candidate-header h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.matched-candidate-header .location {
    color: #6b7280;
    font-size: 0.9rem;
}

.match-score-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.match-score-badge.high {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.match-score-badge.medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.match-score-badge.low {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.match-score-badge.pending {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    animation: pulse-badge 1.5s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

@keyframes pulse-badge {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.matched-candidate-body {
    margin-bottom: 1rem;
}

.matched-candidate-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item strong {
    color: #374151;
    font-size: 0.85rem;
    font-weight: 600;
}

.info-item span {
    color: #6b7280;
    font-size: 0.9rem;
}

.info-item .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.info-item .tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.fit-reason {
    background: #f9fafb;
    border-left: 3px solid #667eea;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.fit-reason strong {
    color: #667eea;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.fit-reason p {
    color: #4b5563;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.candidates-stats {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #38bdf8;
    border-radius: 12px;
    text-align: center;
}

.candidates-stats p {
    margin: 0.5rem 0;
    color: #0c4a6e;
    font-weight: 600;
}

.candidates-stats .stats-detail {
    font-size: 0.85rem;
    color: #075985;
    font-weight: 400;
    line-height: 1.6;
    margin-top: 0.75rem;
}

.candidates-pagination {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pagination-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-info {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    padding: 0 1rem;
}

.matched-candidate-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-contact.secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-contact.secondary:hover {
    background: #f3f4f6;
}

.matched-candidates-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.matched-candidates-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.matched-candidates-empty {
    text-align: center;
    padding: 3rem;
}

.matched-candidates-empty h3 {
    color: #6b7280;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.matched-candidates-empty p {
    color: #9ca3af;
    font-size: 0.95rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .matched-candidates-modal {
        padding: 1rem;
    }

    .matched-candidates-header,
    .matched-candidates-body {
        padding: 1.5rem;
    }

    .matched-candidate-header {
        flex-direction: column;
        gap: 1rem;
    }

    .matched-candidate-info {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   RESPONSIVE IMPROVEMENTS FOR VACANCIES PAGE
   ============================================================================ */

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
    .vacancies-wrapper {
        padding: 80px 0 100px;
    }

    .vacancies-head {
        padding: 28px;
        gap: 16px;
    }

    .vacancies-head h1 {
        font-size: clamp(1.75rem, 4vw, 2.2rem);
    }

    .vacancies-stats {
        gap: 16px;
    }

    .vacancy-stat {
        min-width: 140px;
        padding: 14px;
    }

    .vacancy-stat strong {
        font-size: 1.4rem;
    }

    .vacancy-stat span {
        font-size: 0.8rem;
    }

    .vacancies-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }

    .vacancy-card {
        padding: 22px;
    }

    .portal-modal {
        padding: 20px 12px;
    }

    .portal-modal-body {
        max-height: min(65vh, 500px);
    }
}

/* Mobile landscape and below (768px) */
@media (max-width: 768px) {
    .vacancies-wrapper {
        padding: 60px 0 80px;
    }

    .vacancies-head {
        padding: 24px;
        gap: 14px;
    }

    .vacancies-head h1 {
        font-size: clamp(1.5rem, 5vw, 1.9rem);
    }

    .vacancies-head p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .vacancies-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .vacancy-stat {
        min-width: 0;
        padding: 12px;
    }

    .vacancy-stat strong {
        font-size: 1.3rem;
    }

    .vacancy-stat span {
        font-size: 0.75rem;
    }

    .vacancies-toolbar {
        margin-top: 24px;
        margin-bottom: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .vacancies-search {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
    }

    .vacancies-search input {
        padding: 11px 14px 11px 40px;
        font-size: 0.95rem;
    }

    .vacancies-search svg {
        left: 14px;
        width: 16px;
        height: 16px;
    }

    .vacancies-filters {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .filter-chip {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    .vacancies-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 24px;
    }

    .vacancy-card {
        padding: 20px;
        gap: 16px;
    }

    .vacancy-card header {
        gap: 10px;
    }

    .vacancy-card h2 {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .vacancy-card .badge {
        padding: 5px 12px;
        font-size: 0.75rem;
    }

    .vacancy-matching {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
    }

    .vacancy-matching .matching-label {
        font-size: 12px;
    }

    .vacancy-matching .matching-count {
        font-size: 16px;
    }

    .btn-view-candidates {
        font-size: 0.85rem;
        padding: 8px 14px;
        width: 100%;
        text-align: center;
    }

    .vacancy-card .description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .vacancy-card dl {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .vacancy-card dt {
        font-size: 0.72rem;
    }

    .vacancy-card dd {
        font-size: 0.88rem;
    }

    .vacancy-dates {
        flex-direction: column;
        gap: 8px;
        font-size: 0.84rem;
    }

    .vacancy-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .vacancy-contact {
        gap: 5px;
        font-size: 0.83rem;
    }

    .vacancy-actions {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }

    .vacancy-actions button,
    .vacancy-actions a {
        padding: 9px 16px;
        font-size: 0.83rem;
        flex: 1 1 auto;
        min-width: 100px;
    }

    .vacancy-empty {
        padding: 40px 20px;
    }

    .vacancy-empty h2 {
        font-size: 1.4rem;
    }

    .vacancy-empty p {
        font-size: 0.95rem;
    }

    .portal-modal {
        padding: 16px 8px;
    }

    .portal-modal-dialog {
        max-width: 100%;
        margin: 0;
    }

    .portal-modal-header {
        padding: 18px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .modal-title-section {
        width: 100%;
    }

    .portal-modal-header h2 {
        font-size: 1.25rem;
    }

    .candidates-counter {
        font-size: 0.88rem;
        padding: 7px 10px;
        width: 100%;
    }

    .counter-value {
        font-size: 1rem;
    }

    .portal-modal-close {
        position: absolute;
        top: 18px;
        right: 20px;
        font-size: 1.6rem;
    }

    .portal-modal-body {
        padding: 20px 20px 28px;
        max-height: min(60vh, 450px);
    }

    .form-grid.columns-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vacancy-update-actions {
        flex-direction: column;
        gap: 10px;
    }

    .vacancy-update-actions button {
        width: 100%;
        padding: 12px;
    }

    .portal-jobs-card {
        padding: 20px;
        gap: 16px;
    }

    .portal-jobs-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .portal-job-item {
        padding: 16px;
        gap: 12px;
    }

    .portal-job-item header {
        flex-direction: column;
        gap: 10px;
    }

    .portal-job-pill {
        align-self: flex-start;
    }

    .portal-job-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .portal-job-dates {
        flex-direction: column;
        gap: 8px;
    }

    .portal-job-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .portal-job-footer>div {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .portal-job-link {
        text-align: center;
        padding: 10px 16px;
    }
}

/* Mobile portrait (640px and below) */
@media (max-width: 640px) {
    .vacancies-wrapper {
        padding: 50px 0 60px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .vacancies-head {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .vacancies-head h1 {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
        line-height: 1.2;
    }

    .vacancies-head p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .pill {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .vacancies-stats {
        gap: 10px;
    }

    .vacancy-stat {
        padding: 10px;
    }

    .vacancy-stat strong {
        font-size: 1.2rem;
    }

    .vacancy-stat span {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .vacancies-toolbar {
        margin-top: 20px;
        margin-bottom: 16px;
        gap: 12px;
    }

    .vacancies-search input {
        padding: 10px 12px 10px 38px;
        font-size: 0.9rem;
    }

    .vacancies-search svg {
        left: 12px;
        width: 15px;
        height: 15px;
    }

    .filter-chip {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .vacancies-grid {
        gap: 16px;
        margin-top: 20px;
    }

    .vacancy-card {
        padding: 18px;
        gap: 14px;
        border-radius: var(--radius-md);
    }

    .vacancy-card h2 {
        font-size: 1.1rem;
        word-break: break-word;
    }

    .vacancy-card .badge {
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .vacancy-matching {
        padding: 10px 12px;
        gap: 8px;
    }

    .vacancy-matching .matching-label {
        font-size: 11px;
    }

    .vacancy-matching .matching-count {
        font-size: 15px;
    }

    .btn-view-candidates {
        font-size: 0.8rem;
        padding: 7px 12px;
    }

    .vacancy-card .description {
        font-size: 0.88rem;
    }

    .vacancy-card dt {
        font-size: 0.7rem;
    }

    .vacancy-card dd {
        font-size: 0.86rem;
        word-break: break-word;
    }

    .vacancy-dates {
        gap: 6px;
        font-size: 0.82rem;
    }

    .vacancy-contact {
        font-size: 0.81rem;
        gap: 4px;
        word-break: break-word;
    }

    .vacancy-actions {
        gap: 6px;
    }

    .vacancy-actions button,
    .vacancy-actions a {
        padding: 8px 14px;
        font-size: 0.8rem;
        border-radius: var(--radius-md);
    }

    .vacancy-empty {
        padding: 30px 16px;
        border-radius: var(--radius-md);
    }

    .vacancy-empty h2 {
        font-size: 1.25rem;
    }

    .vacancy-empty p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .portal-modal-header {
        padding: 16px 18px;
    }

    .portal-modal-header h2 {
        font-size: 1.15rem;
    }

    .candidates-counter {
        font-size: 0.85rem;
        padding: 6px 8px;
    }

    .counter-value {
        font-size: 0.95rem;
    }

    .portal-modal-close {
        top: 16px;
        right: 18px;
        font-size: 1.5rem;
    }

    .portal-modal-body {
        padding: 18px 18px 24px;
        max-height: min(55vh, 400px);
    }

    .form-grid.columns-2,
    .form-grid.columns-3 {
        gap: 14px;
    }

    .vacancy-update-actions {
        margin-top: 18px;
        gap: 8px;
    }

    .vacancy-update-actions button {
        padding: 11px;
        font-size: 0.9rem;
    }
}

/* Extra small mobile (480px and below) */
@media (max-width: 480px) {
    .vacancies-wrapper {
        padding: 40px 0 50px;
    }

    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .vacancies-head {
        padding: 18px;
    }

    .vacancies-head h1 {
        font-size: 1.3rem;
    }

    .vacancies-head p {
        font-size: 0.85rem;
    }

    .vacancies-stats {
        gap: 8px;
    }

    .vacancy-stat {
        padding: 8px;
    }

    .vacancy-stat strong {
        font-size: 1.1rem;
    }

    .vacancy-stat span {
        font-size: 0.68rem;
    }

    .vacancies-toolbar {
        margin-top: 18px;
        margin-bottom: 14px;
        gap: 10px;
    }

    .vacancies-search input {
        padding: 9px 10px 9px 36px;
        font-size: 0.88rem;
    }

    .filter-chip {
        padding: 5px 10px;
        font-size: 0.72rem;
    }

    .vacancies-grid {
        gap: 14px;
        margin-top: 18px;
    }

    .vacancy-card {
        padding: 16px;
        gap: 12px;
    }

    .vacancy-card h2 {
        font-size: 1.05rem;
    }

    .vacancy-matching {
        padding: 9px 10px;
    }

    .vacancy-actions button,
    .vacancy-actions a {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    .portal-modal {
        padding: 12px 6px;
    }

    .portal-modal-header {
        padding: 14px 16px;
    }

    .portal-modal-body {
        padding: 16px 16px 20px;
    }
}

/* Very small screens (360px and below) */
@media (max-width: 360px) {
    .vacancies-head h1 {
        font-size: 1.2rem;
    }

    .vacancies-stats {
        grid-template-columns: 1fr;
    }

    .vacancy-stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .vacancy-stat strong {
        font-size: 1.3rem;
        order: 2;
    }

    .vacancy-stat span {
        font-size: 0.75rem;
        order: 1;
    }

    .vacancy-card h2 {
        font-size: 1rem;
    }

    .vacancy-actions {
        flex-direction: column;
    }

    .vacancy-actions button,
    .vacancy-actions a {
        width: 100%;
        text-align: center;
        padding: 9px 14px;
    }

    .filter-chip {
        flex: 1 1 auto;
        text-align: center;
        min-width: calc(50% - 5px);
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .vacancies-wrapper {
        padding: 30px 0 40px;
    }

    .vacancies-head {
        padding: 16px;
    }

    .vacancies-head h1 {
        font-size: 1.3rem;
    }

    .vacancies-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .portal-modal-body {
        max-height: 60vh;
    }

    .vacancy-card {
        padding: 16px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    .vacancy-actions button,
    .vacancy-actions a,
    .filter-chip,
    .btn-view-candidates {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .vacancies-search input {
        min-height: 44px;
    }

    .portal-modal-close {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Prevent horizontal scroll */
.vacancies-wrapper,
.vacancies-head,
.vacancies-toolbar,
.vacancies-grid,
.vacancy-card,
.portal-modal-dialog {
    max-width: 100%;
    overflow-x: hidden;
}

.vacancy-card *,
.portal-modal * {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
