:root {
    --vrh-primary: #0f4c81;
    --vrh-primary-dark: #0d3f6d;
    --vrh-accent: #1d4ed8;
    --vrh-surface: rgba(255, 255, 255, 0.92);
    --vrh-shadow: rgba(15, 23, 42, 0.08);
    --vrh-radius: 1rem;
    --vrh-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    background: radial-gradient(circle at 12% 8%, #e0edff 0%, transparent 42%),
        radial-gradient(circle at 88% 0%, #ede9fe 0%, transparent 38%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1f2937;
    font-family: "Inter", sans-serif;
    letter-spacing: -0.01em;
}

.site-body main {
    min-height: 50vh;
}

.navbar-brand {
    color: #0f172a !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    transition: color 0.2s var(--vrh-ease-out);
}

.navbar-brand:hover {
    color: var(--vrh-primary) !important;
}

.nav-professional {
    backdrop-filter: blur(12px);
    background: var(--vrh-surface) !important;
    border-bottom: 1px solid rgba(15, 76, 129, 0.08) !important;
    box-shadow: 0 4px 24px var(--vrh-shadow);
}

.nav-link {
    color: #334155;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: var(--vrh-primary);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--vrh-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s var(--vrh-ease-out);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.btn {
    border-radius: 0.65rem;
    font-weight: 600;
    transition: transform 0.2s var(--vrh-ease-out), box-shadow 0.2s var(--vrh-ease-out),
        background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--vrh-primary) 0%, var(--vrh-accent) 100%);
    border-color: var(--vrh-primary);
    box-shadow: 0 8px 22px rgba(29, 78, 216, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--vrh-primary-dark) 0%, #1e40af 100%);
    border-color: var(--vrh-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(29, 78, 216, 0.28);
}

.btn-outline-primary {
    border-width: 2px;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

.card {
    border-radius: var(--vrh-radius);
    transition: transform 0.28s var(--vrh-ease-out), box-shadow 0.28s var(--vrh-ease-out);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.11);
}

h1,
h2,
h3,
h4,
h5 {
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #e8f0ff 45%, #f0f4ff 100%);
    border-bottom: 1px solid rgba(15, 76, 129, 0.1);
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 56vw;
    max-width: 520px;
    height: 56vw;
    max-height: 520px;
    right: -12%;
    top: -28%;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.12) 0%, transparent 68%);
    pointer-events: none;
    animation: hero-glow 14s ease-in-out infinite alternate;
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 40vw;
    max-width: 380px;
    height: 40vw;
    max-height: 380px;
    left: -8%;
    bottom: -20%;
    background: radial-gradient(circle, rgba(15, 76, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: hero-glow 18s ease-in-out infinite alternate-reverse;
}

@keyframes hero-glow {
    0% {
        opacity: 0.65;
        transform: scale(1) translate(0, 0);
    }
    100% {
        opacity: 1;
        transform: scale(1.08) translate(2%, 2%);
    }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    animation: fade-in-up 0.65s var(--vrh-ease-out) both;
}

.hero-title {
    animation: fade-in-up 0.75s var(--vrh-ease-out) 0.06s both;
}

.hero-lead {
    animation: fade-in-up 0.8s var(--vrh-ease-out) 0.12s both;
}

.hero-cta {
    animation: fade-in-up 0.85s var(--vrh-ease-out) 0.18s both;
}

.hero-aside {
    animation: fade-in-up 0.9s var(--vrh-ease-out) 0.14s both;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-pill-soft {
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.1) 0%, rgba(29, 78, 216, 0.12) 100%);
    color: var(--vrh-primary);
    border: 1px solid rgba(15, 76, 129, 0.15);
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    letter-spacing: 0.01em;
}

.metric-card ul li {
    margin-bottom: 0.45rem;
    padding-left: 0.15rem;
    transition: transform 0.2s var(--vrh-ease-out);
}

.metric-card ul li::marker {
    color: var(--vrh-primary);
}

.metric-card:hover ul li {
    transform: translateX(2px);
}

.table thead th {
    color: #475569;
    font-weight: 600;
}

footer {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(10px);
}

footer a.text-muted:hover {
    color: var(--vrh-primary) !important;
}

.link-underline-hover {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.link-underline-hover:hover {
    border-bottom-color: rgba(15, 76, 129, 0.45);
    color: var(--vrh-primary) !important;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--vrh-ease-out), transform 0.6s var(--vrh-ease-out);
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

.reveal.reveal-stagger {
    transition-delay: calc(var(--reveal-d, 0) * 75ms + 0.04s);
}

.section-heading-accent {
    display: inline-block;
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--vrh-primary), var(--vrh-accent));
    margin-bottom: 0.75rem;
}

.value-pill {
    transition: transform 0.22s var(--vrh-ease-out), box-shadow 0.22s var(--vrh-ease-out);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.value-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

/* --- Confirmação de candidatura --- */
.success-candidate {
    min-height: 58vh;
}

.success-candidate-card {
    position: relative;
    border-radius: 1.35rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1px solid rgba(15, 76, 129, 0.12);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    animation: fade-in-up 0.7s var(--vrh-ease-out) both;
}

.success-candidate-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.15) 0%, rgba(15, 76, 129, 0.12) 100%);
    color: #15803d;
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.2);
}

.success-candidate-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vrh-primary);
}

.success-candidate-hint {
    border-radius: var(--vrh-radius);
    background: rgba(15, 76, 129, 0.06);
    border: 1px solid rgba(15, 76, 129, 0.1);
}

.btn-wa {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    border: none;
    color: #fff !important;
    font-weight: 600;
    border-radius: 0.85rem;
    box-shadow: 0 10px 24px rgba(18, 140, 126, 0.35);
    transition: transform 0.2s var(--vrh-ease-out), box-shadow 0.2s var(--vrh-ease-out);
}

.btn-wa:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(18, 140, 126, 0.45);
}

/* --- Barra do painel (sem menu do site) --- */
.panel-topbar .panel-brand-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--vrh-primary) 0%, var(--vrh-accent) 100%);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
    flex-shrink: 0;
}

.panel-topbar .panel-brand-mark {
    font-size: 1.15rem;
}

.panel-user-label {
    letter-spacing: 0.04em;
    font-size: 0.65rem;
}

.panel-user-name {
    line-height: 1.3;
}

.is-panel main > .container:first-of-type .alert {
    margin-bottom: 1rem;
}

/* --- Painel --- */
.panel-page .panel-section-nav .nav-link {
    border-radius: 2rem;
    padding: 0.45rem 1.1rem;
    color: #475569;
    font-weight: 600;
}

.panel-page .panel-section-nav .nav-link:hover {
    background: rgba(15, 76, 129, 0.08);
    color: var(--vrh-primary);
}

.panel-page .panel-section-nav .nav-link.active {
    background: linear-gradient(135deg, var(--vrh-primary) 0%, var(--vrh-accent) 100%);
    color: #fff !important;
}

.panel-help-card {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid rgba(15, 76, 129, 0.12) !important;
}

.panel-help-toggle {
    color: var(--vrh-primary) !important;
}

.panel-help-chevron {
    display: inline-block;
    transition: transform 0.2s var(--vrh-ease-out);
}

.panel-help-toggle[aria-expanded="true"] .panel-help-chevron {
    transform: rotate(90deg);
}

.panel-stat {
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.panel-table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.panel-budget-row-unread {
    box-shadow: inset 4px 0 0 0 #d97706;
    background-color: rgba(245, 158, 11, 0.07) !important;
}

[data-bs-theme="dark"] .panel-budget-row-unread {
    background-color: rgba(245, 158, 11, 0.12) !important;
    box-shadow: inset 4px 0 0 0 #fbbf24;
}

.budget-detail-header {
    background: linear-gradient(135deg, var(--vrh-primary) 0%, #1e3a5f 100%);
}

.budget-detail-message {
    background: rgba(15, 76, 129, 0.04);
    border-color: rgba(15, 76, 129, 0.12) !important;
    white-space: pre-wrap;
}

[data-bs-theme="dark"] .budget-detail-message {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(148, 163, 184, 0.2) !important;
    color: #e2e8f0;
}

/* --- Tema escuro --- */
[data-bs-theme="dark"] body {
    background: radial-gradient(circle at 12% 8%, rgba(30, 58, 138, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 90% 0%, rgba(76, 29, 149, 0.25) 0%, transparent 40%),
        linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .nav-professional {
    background: rgba(15, 23, 42, 0.94) !important;
    border-bottom-color: rgba(148, 163, 184, 0.15) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .navbar-brand {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .navbar-brand:hover {
    color: #93c5fd !important;
}

[data-bs-theme="dark"] .nav-link {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .nav-link:hover {
    color: #93c5fd;
}

[data-bs-theme="dark"] .nav-link::after {
    background: #60a5fa;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5 {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .card:hover {
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(145deg, #1e293b 0%, #172554 50%, #0f172a 100%);
    border-bottom-color: rgba(148, 163, 184, 0.15);
}

[data-bs-theme="dark"] footer {
    background: rgba(15, 23, 42, 0.92) !important;
    border-top-color: rgba(148, 163, 184, 0.15) !important;
}

[data-bs-theme="dark"] footer .text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .badge-pill-soft {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(129, 140, 248, 0.18) 100%);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.25);
}

[data-bs-theme="dark"] .success-candidate-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(96, 165, 250, 0.2);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .success-candidate-hint {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.2);
}

[data-bs-theme="dark"] .success-candidate-icon {
    color: #4ade80;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);
}

[data-bs-theme="dark"] .panel-help-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-color: rgba(96, 165, 250, 0.2) !important;
}

[data-bs-theme="dark"] .panel-page .panel-section-nav .nav-link {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .panel-page .panel-section-nav .nav-link:hover {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
}

[data-bs-theme="dark"] .table-light {
    --bs-table-bg: rgba(30, 41, 59, 0.95);
    --bs-table-color: #e2e8f0;
}

[data-bs-theme="dark"] .panel-table {
    --bs-table-border-color: rgba(148, 163, 184, 0.15);
}

[data-bs-theme="dark"] .theme-toggle {
    border-color: rgba(148, 163, 184, 0.35) !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .theme-toggle:hover {
    background: rgba(148, 163, 184, 0.15) !important;
}

[data-bs-theme="dark"] .navbar-toggler-icon {
    filter: invert(1);
}

/* --- Tema escuro: contraste (formulários, tabelas, botões, fundos claros) --- */
[data-bs-theme="dark"] {
    --bs-body-color: #e2e8f0;
    --bs-body-bg: #0f172a;
    --bs-secondary-color: #94a3b8;
    --bs-tertiary-color: #64748b;
    --bs-border-color: rgba(148, 163, 184, 0.22);
    --bs-heading-color: #f1f5f9;
}

[data-bs-theme="dark"] .text-body {
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.28);
    color: #f8fafc;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #64748b;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: rgba(30, 41, 59, 0.95);
    border-color: #60a5fa;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.22);
}

[data-bs-theme="dark"] .form-label,
[data-bs-theme="dark"] .col-form-label {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .form-check-label {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .form-check-input {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.4);
}

[data-bs-theme="dark"] .form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

[data-bs-theme="dark"] .table {
    color: #e2e8f0;
    --bs-table-bg: transparent;
    --bs-table-color: #e2e8f0;
}

[data-bs-theme="dark"] .table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: rgba(148, 163, 184, 0.18);
    color: inherit;
}

[data-bs-theme="dark"] .table-hover > tbody > tr:hover > * {
    --bs-table-color-state: #f1f5f9;
    --bs-table-bg-state: rgba(96, 165, 250, 0.09);
}

[data-bs-theme="dark"] .table a:not(.btn) {
    color: #7dd3fc;
    font-weight: 500;
}

[data-bs-theme="dark"] .table a:not(.btn):hover {
    color: #bae6fd;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.45);
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: rgba(148, 163, 184, 0.18);
    border-color: rgba(148, 163, 184, 0.55);
    color: #fff;
}

[data-bs-theme="dark"] .btn-outline-primary {
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.55);
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
    background-color: rgba(37, 99, 235, 0.35);
    border-color: #60a5fa;
    color: #fff;
}

[data-bs-theme="dark"] .btn-outline-danger {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.5);
}

[data-bs-theme="dark"] .btn-outline-danger:hover {
    background-color: rgba(220, 38, 38, 0.35);
    border-color: #f87171;
    color: #fff;
}

[data-bs-theme="dark"] .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.65;
}

[data-bs-theme="dark"] .btn-close:hover {
    opacity: 1;
}

[data-bs-theme="dark"] .alert {
    border-width: 1px;
}

[data-bs-theme="dark"] .alert-success {
    background-color: rgba(22, 163, 74, 0.18);
    border-color: rgba(74, 222, 128, 0.35);
    color: #bbf7d0;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: rgba(220, 38, 38, 0.2);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fecaca;
}

[data-bs-theme="dark"] .alert-warning {
    background-color: rgba(202, 138, 4, 0.2);
    border-color: rgba(250, 204, 21, 0.4);
    color: #fef08a;
}

[data-bs-theme="dark"] .alert-info {
    background-color: rgba(37, 99, 235, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
    color: #bfdbfe;
}

[data-bs-theme="dark"] .bg-light {
    background-color: rgba(30, 41, 59, 0.65) !important;
    color: #e2e8f0 !important;
    border-color: rgba(148, 163, 184, 0.15) !important;
}

[data-bs-theme="dark"] hr {
    border-color: rgba(148, 163, 184, 0.22);
    opacity: 1;
}

[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .card {
    border-color: rgba(148, 163, 184, 0.16) !important;
}

[data-bs-theme="dark"] .list-group-item {
    background-color: rgba(30, 41, 59, 0.6);
    border-color: rgba(148, 163, 184, 0.15);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .page-link {
    background-color: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.25);
    color: #93c5fd;
}

[data-bs-theme="dark"] .page-link:hover {
    background-color: rgba(96, 165, 250, 0.15);
    color: #e0f2fe;
}

[data-bs-theme="dark"] .panel-topbar .panel-user-name {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .panel-topbar .panel-user-label {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .panel-topbar .navbar-text {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .panel-stat small.text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .panel-page .panel-section-nav .nav-link:not(.active) {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .panel-help-toggle {
    color: #93c5fd !important;
}

[data-bs-theme="dark"] .panel-help-list,
[data-bs-theme="dark"] .panel-help-list strong {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .success-candidate .lead strong {
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .success-candidate-eyebrow {
    color: #93c5fd;
}

[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.navbar-brand):not(.page-link):not(.dropdown-item) {
    color: #7dd3fc;
}

[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.navbar-brand):not(.page-link):not(.dropdown-item):hover {
    color: #bae6fd;
}

[data-bs-theme="dark"] footer a.text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] footer a.text-muted:hover {
    color: #7dd3fc !important;
}

[data-bs-theme="dark"] .link-underline-hover:hover {
    color: #bae6fd !important;
}

[data-bs-theme="dark"] .badge.text-bg-light {
    background-color: rgba(148, 163, 184, 0.22) !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .text-bg-secondary {
    background-color: #475569 !important;
    color: #f1f5f9 !important;
}

/* --- Site público: visual e animações --- */
.public-hero {
    position: relative;
}

.public-hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.public-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
    opacity: 0.55;
    animation: public-float 9s ease-in-out infinite;
}

.public-hero-orb--1 {
    width: min(42vw, 340px);
    height: min(42vw, 340px);
    background: radial-gradient(circle, rgba(29, 78, 216, 0.2) 0%, transparent 68%);
    right: -8%;
    top: -18%;
}

.public-hero-orb--2 {
    width: min(36vw, 280px);
    height: min(36vw, 280px);
    background: radial-gradient(circle, rgba(15, 76, 129, 0.18) 0%, transparent 70%);
    left: -6%;
    bottom: -12%;
    animation-delay: -2s;
    animation-duration: 11s;
}

.public-hero-orb--3 {
    width: min(28vw, 220px);
    height: min(28vw, 220px);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 72%);
    left: 40%;
    top: 40%;
    animation-delay: -4s;
    animation-duration: 13s;
}

@keyframes public-float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(2%, -3%) scale(1.04);
    }
}

.public-gradient-headline {
    background: linear-gradient(120deg, #0f172a 0%, #0f4c81 38%, #1d4ed8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.float-slow {
    animation: public-float-card 8s ease-in-out infinite;
}

@keyframes public-float-card {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.public-mini-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vrh-primary), var(--vrh-accent));
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.15);
}

.public-segment-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: padding-left 0.25s var(--vrh-ease-out);
}

.public-segment-list li:last-child {
    border-bottom: none;
}

.metric-card:hover .public-segment-list li {
    padding-left: 0.25rem;
}

.btn-public-pulse {
    position: relative;
    overflow: hidden;
}

.btn-public-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: public-shine 4.5s ease-in-out infinite;
}

@keyframes public-shine {
    0%,
    60% {
        transform: translateX(-100%);
    }
    85% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.public-profile-card img {
    transition: transform 0.45s var(--vrh-ease-out);
}

.public-profile-img-wrap {
    overflow: hidden;
    border-radius: 0.65rem;
}

.public-profile-card:hover img {
    transform: scale(1.03);
}

.public-mvv-card {
    position: relative;
    overflow: hidden;
}

.public-mvv-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(55%, 320px);
    height: 100%;
    background: linear-gradient(200deg, rgba(29, 78, 216, 0.06) 0%, transparent 55%);
    pointer-events: none;
}

.value-pill-anim {
    transition: transform 0.25s var(--vrh-ease-out), box-shadow 0.25s var(--vrh-ease-out);
}

.value-pill-anim:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.public-check-list {
    list-style: none;
    padding-left: 0;
}

.public-check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.public-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vrh-primary), var(--vrh-accent));
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.public-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vrh-primary);
}

.jobs-list-hero {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.65) 100%);
    border-bottom: 1px solid rgba(15, 76, 129, 0.08);
}

.job-card {
    transition: transform 0.35s var(--vrh-ease-out), box-shadow 0.35s var(--vrh-ease-out);
    border: 1px solid rgba(15, 23, 42, 0.05) !important;
}

.job-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12) !important;
}

.job-model-badge {
    font-weight: 600;
    font-size: 0.7rem;
}

.job-card-cta {
    border-radius: 0.65rem;
}

.public-back-link {
    color: var(--vrh-primary);
    font-weight: 600;
    transition: gap 0.2s ease, color 0.2s ease;
}

.public-back-link:hover {
    color: var(--vrh-accent);
}

.job-detail-card {
    border-radius: 1.15rem;
}

[data-bs-theme="dark"] .public-gradient-headline {
    background: linear-gradient(120deg, #f8fafc 0%, #93c5fd 45%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-bs-theme="dark"] .public-eyebrow {
    color: #93c5fd;
}

[data-bs-theme="dark"] .jobs-list-hero {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.85) 100%);
    border-bottom-color: rgba(148, 163, 184, 0.15);
}

[data-bs-theme="dark"] .public-back-link {
    color: #7dd3fc;
}

[data-bs-theme="dark"] .public-back-link:hover {
    color: #bae6fd;
}

[data-bs-theme="dark"] .public-segment-list li {
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

[data-bs-theme="dark"] .panel-topbar .btn-primary {
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .public-hero-orb,
    .float-slow,
    .btn-public-pulse::after,
    .public-profile-card:hover img,
    .value-pill-anim:hover,
    .job-card:hover {
        animation: none !important;
        transform: none !important;
    }

    .job-card:hover {
        box-shadow: inherit !important;
    }
}
