:root {
    --primary-color: #211F60;
    --secondary-color: #F36C21;
    --primary-soft: #f0efff;
    --secondary-soft: #fff2ea;
    --ink-color: #17152f;
    --muted-color: #6f7285;
    --border-color: #e7e8f1;
    --surface-color: #ffffff;
    --page-bg: #f7f8fc;
    --success-color: #16a34a;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow-sm: 0 10px 30px rgba(33, 31, 96, 0.08);
    --shadow-md: 0 18px 55px rgba(33, 31, 96, 0.14);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink-color);
    background: var(--page-bg);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.page-shell {
    padding-top: 88px;
}

.navbar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(231, 232, 241, 0.8);
    backdrop-filter: blur(16px);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color) !important;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color), #3b36a1);
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(33, 31, 96, 0.24);
}

.nav-link {
    color: #36345f;
    font-weight: 700;
    border-radius: 999px;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--primary-color);
    background: var(--primary-soft);
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.dropdown-item {
    font-weight: 700;
    color: #38365f;
    border-radius: 12px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--primary-color);
    background: var(--primary-soft);
}

.btn-primary-custom {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #17154a;
    --bs-btn-hover-border-color: #17154a;
    --bs-btn-focus-shadow-rgb: 33, 31, 96;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #151343;
    --bs-btn-active-border-color: #151343;
    border-radius: 999px;
    font-weight: 800;
    padding: 0.8rem 1.25rem;
}

.btn-secondary-custom {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--secondary-color);
    --bs-btn-border-color: var(--secondary-color);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #db5d18;
    --bs-btn-hover-border-color: #db5d18;
    --bs-btn-focus-shadow-rgb: 243, 108, 33;
    border-radius: 999px;
    font-weight: 800;
    padding: 0.8rem 1.25rem;
}

.btn-soft-primary {
    color: var(--primary-color);
    background: var(--primary-soft);
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    padding: 0.8rem 1.15rem;
}

.btn-soft-primary:hover {
    color: #ffffff;
    background: var(--primary-color);
}

.btn-soft-secondary {
    color: var(--secondary-color);
    background: var(--secondary-soft);
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    padding: 0.8rem 1.15rem;
}

.btn-soft-secondary:hover {
    color: #ffffff;
    background: var(--secondary-color);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    background: var(--secondary-soft);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.85rem;
}

.hero-card,
.content-card,
.filter-card,
.top-employers-card,
.login-card,
.job-card,
.profile-card {
    background: var(--surface-color);
    border: 1px solid rgba(231, 232, 241, 0.95);
    box-shadow: var(--shadow-sm);
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 4rem);
}

.hero-card::before {
    position: absolute;
    inset: auto -80px -120px auto;
    width: 280px;
    height: 280px;
    content: "";
    background: radial-gradient(circle, rgba(243, 108, 33, 0.23), transparent 68%);
}

.hero-title {
    color: var(--primary-color);
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.hero-subtitle {
    max-width: 680px;
    color: var(--muted-color);
    font-size: 1.08rem;
    line-height: 1.8;
}


.job-search-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.25rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5.75rem);
    background:
        radial-gradient(circle at 18% 20%, rgba(243, 108, 33, 0.16), transparent 30%),
        radial-gradient(circle at 82% 28%, rgba(33, 31, 96, 0.16), transparent 32%),
        linear-gradient(135deg, #eef3ff 0%, #eefbf3 58%, #fff5ef 100%);
}

.job-search-hero::before,
.job-search-hero::after {
    position: absolute;
    content: "";
    border-radius: 999px;
    pointer-events: none;
}

.job-search-hero::before {
    top: 18%;
    left: -90px;
    width: 220px;
    height: 220px;
    background: rgba(33, 31, 96, 0.08);
}

.job-search-hero::after {
    right: -120px;
    bottom: -120px;
    width: 300px;
    height: 300px;
    background: rgba(243, 108, 33, 0.12);
}

.hero-centered-content {
    position: relative;
    z-index: 1;
    max-width: 980px;
}

.hero-search-box {
    display: grid;
    max-width: 800px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(33, 31, 96, 0.12);
    backdrop-filter: blur(14px);
}

.hero-search-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 58px;
    padding: 0 1rem;
    color: #6f7894;
    background: #f7f8fc;
    border-radius: 18px;
}

.hero-search-field i {
    color: var(--primary-color);
    font-size: 1.15rem;
    opacity: 0.72;
}

.hero-search-field .form-control,
.hero-search-field .form-select {
    width: 100%;
    padding: 0;
    font-weight: 650;
    color: var(--ink-color);
    background-color: transparent;
    border: 0;
    box-shadow: none;
}

.hero-search-submit {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--secondary-color);
    border: 0;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(243, 108, 33, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search-submit:hover,
.hero-search-submit:focus {
    background: #db5d18;
    box-shadow: 0 18px 38px rgba(243, 108, 33, 0.34);
    transform: translateY(-2px);
}

.hero-search-submit i {
    font-size: 1.35rem;
}

.hero-quick-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem 1.25rem;
}

.hero-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1.05rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(33, 31, 96, 0.1);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.hero-stat-pill strong {
    color: var(--secondary-color);
    font-size: 1.35rem;
    line-height: 1;
}

.hero-stat-pill span {
    font-size: 0.9rem;
    font-weight: 800;
}

.hero-link-action,
.hero-ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
}

.hero-link-action {
    color: var(--primary-color);
}

.hero-link-action i {
    color: var(--secondary-color);
}

.hero-ai-chip {
    padding: 0.65rem 0.95rem;
    color: var(--secondary-color);
    background: rgba(255, 242, 234, 0.9);
    border: 1px solid rgba(243, 108, 33, 0.16);
    border-radius: 999px;
}

.gradient-panel {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(145deg, var(--primary-color), #3832a0 60%, var(--secondary-color));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.gradient-panel::before,
.gradient-panel::after {
    position: absolute;
    content: "";
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.gradient-panel::before {
    width: 180px;
    height: 180px;
    top: -60px;
    right: -50px;
}

.gradient-panel::after {
    width: 110px;
    height: 110px;
    bottom: 28px;
    left: -42px;
}

.login-page {
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
    background:
        radial-gradient(circle at top left, rgba(243, 108, 33, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(33, 31, 96, 0.14), transparent 34%),
        var(--page-bg);
}

.login-card {
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-label {
    color: #34325c;
    font-weight: 800;
}

.form-control,
.form-select {
    min-height: 52px;
    border-color: var(--border-color);
    border-radius: 16px;
    font-weight: 700;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(33, 31, 96, 0.35);
    box-shadow: 0 0 0 0.25rem rgba(33, 31, 96, 0.12);
}

.input-group-text {
    color: var(--primary-color);
    background: var(--primary-soft);
    border-color: var(--border-color);
    border-radius: 16px;
}

.filter-card,
.content-card,
.top-employers-card,
.profile-card {
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.job-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.job-card:hover {
    border-color: rgba(243, 108, 33, 0.42);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.job-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    content: "";
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

.company-logo {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #ffffff;
    background: linear-gradient(145deg, var(--primary-color), #5c57d6);
    border-radius: 18px;
    font-size: 1.25rem;
    font-weight: 800;
}

.company-logo.logo-secondary {
    background: linear-gradient(145deg, var(--secondary-color), #ff9d66);
}

.company-logo.logo-green {
    background: linear-gradient(145deg, #0f766e, #2dd4bf);
}

.company-logo.logo-blue {
    background: linear-gradient(145deg, #2563eb, #38bdf8);
}


.top-employer-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--ink-color);
    background: #fafbff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-employer-item:hover,
.top-employer-item:focus {
    color: var(--ink-color);
    border-color: rgba(243, 108, 33, 0.42);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.top-employer-logo {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #ffffff;
    background: linear-gradient(145deg, var(--primary-color), #5c57d6);
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 800;
}

.top-employer-logo.logo-secondary {
    background: linear-gradient(145deg, var(--secondary-color), #ff9d66);
}

.top-employer-logo.logo-green {
    background: linear-gradient(145deg, #0f766e, #2dd4bf);
}

.top-employer-name,
.top-employer-meta {
    display: block;
}

.top-employer-name {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 800;
}

.top-employer-meta {
    color: var(--muted-color);
    font-size: 0.8rem;
    font-weight: 700;
}

.top-employer-match {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    color: var(--secondary-color);
    background: var(--secondary-soft);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.4rem 0.55rem;
}

.top-employer-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--muted-color);
    background: linear-gradient(135deg, rgba(33, 31, 96, 0.05), rgba(243, 108, 33, 0.08));
    border-radius: 16px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.5;
    padding: 0.95rem;
}

.top-employer-note i {
    color: var(--secondary-color);
}

.job-title {
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 800;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.meta-item i {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: var(--primary-soft);
    border-radius: 10px;
}

.match-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--secondary-color), #ff9c63);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
}

.match-panel {
    background: linear-gradient(135deg, var(--primary-color), #3731a0);
    border-radius: var(--radius-md);
    color: #ffffff;
    padding: 1.25rem;
}

.match-score {
    font-size: clamp(2.3rem, 6vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}

.progress {
    height: 12px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.progress-bar {
    background: var(--secondary-color);
    border-radius: 999px;
}

.badge-soft-primary,
.badge-soft-secondary,
.badge-soft-success,
.badge-soft-warning {
    border-radius: 999px;
    font-weight: 800;
    padding: 0.55rem 0.75rem;
}

.badge-soft-primary {
    color: var(--primary-color);
    background: var(--primary-soft);
}

.badge-soft-secondary {
    color: var(--secondary-color);
    background: var(--secondary-soft);
}

.badge-soft-success {
    color: var(--success-color);
    background: #e9f9ef;
}

.badge-soft-warning {
    color: #b45309;
    background: #fff7df;
}

.popover {
    max-width: 320px;
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

.popover-header {
    color: var(--primary-color);
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    border-radius: 18px 18px 0 0;
    font-weight: 800;
}

.popover-body {
    color: var(--muted-color);
    font-weight: 650;
    line-height: 1.55;
}

.stat-card {
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.1rem;
}

.stat-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    background: var(--secondary-soft);
    border-radius: 15px;
    font-size: 1.15rem;
}

.timeline-list {
    position: relative;
    padding-left: 0;
    list-style: none;
}

.timeline-list li {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1.15rem;
}

.timeline-list li::before {
    position: absolute;
    top: 0.35rem;
    left: 0;
    width: 12px;
    height: 12px;
    content: "";
    background: var(--secondary-color);
    border: 3px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 0 0 4px var(--secondary-soft);
}

.timeline-list li::after {
    position: absolute;
    top: 1.2rem;
    bottom: -0.1rem;
    left: 5px;
    width: 2px;
    content: "";
    background: var(--border-color);
}

.timeline-list li:last-child::after {
    display: none;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ebeaff, #fff2ea);
}

.gallery-card.tall {
    min-height: 440px;
}

.gallery-card.photo-1 {
    background:
        linear-gradient(rgba(33, 31, 96, 0.2), rgba(33, 31, 96, 0.68)),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1100&q=80") center/cover;
}

.gallery-card.photo-2 {
    background:
        linear-gradient(rgba(33, 31, 96, 0.15), rgba(33, 31, 96, 0.62)),
        url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1100&q=80") center/cover;
}

.gallery-card.photo-3 {
    background:
        linear-gradient(rgba(33, 31, 96, 0.12), rgba(33, 31, 96, 0.64)),
        url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1100&q=80") center/cover;
}

.gallery-card.video-card {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background:
        linear-gradient(rgba(33, 31, 96, 0.18), rgba(33, 31, 96, 0.72)),
        url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1100&q=80") center/cover;
}

.gallery-caption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    color: #ffffff;
}

.play-button {
    display: inline-flex;
    width: 74px;
    height: 74px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(243, 108, 33, 0.92);
    border: 0;
    border-radius: 999px;
    font-size: 2rem;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.video-placeholder {
    display: flex;
    min-height: 340px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color), #3b36a1 70%, var(--secondary-color));
    border-radius: var(--radius-md);
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-stack span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
    color: #ffffff;
    background: var(--primary-color);
    border: 3px solid #ffffff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.avatar-stack span:first-child {
    margin-left: 0;
    background: var(--secondary-color);
}

.avatar-stack span:nth-child(2) {
    background: #0f766e;
}

.avatar-stack span:nth-child(3) {
    background: #2563eb;
}

.footer-note {
    color: var(--muted-color);
    font-size: 0.92rem;
    font-weight: 650;
}

@media (max-width: 991.98px) {
    .page-shell {
        padding-top: 78px;
    }

    .navbar-collapse {
        padding-top: 1rem;
    }

    .nav-link {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

@media (max-width: 767.98px) {
    .meta-grid {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .filter-card,
    .content-card,
    .top-employers-card,
    .profile-card,
    .login-card {
        border-radius: 22px;
    }

    .gallery-card.tall {
        min-height: 260px;
    }

    .job-search-hero {
        padding-top: 2.75rem;
        padding-bottom: 3rem;
    }

    .hero-search-box {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .hero-search-submit {
        width: 100%;
    }
}

.upload-dropzone {
    display: flex;
    min-height: 230px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(33, 31, 96, 0.35), rgba(243, 108, 33, 0.35)) border-box;
    border: 2px dashed transparent;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus-within,
.upload-dropzone.is-uploaded {
    border-color: rgba(243, 108, 33, 0.65);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.upload-icon {
    display: inline-flex;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: var(--primary-soft);
    border-radius: 24px;
    font-size: 2.2rem;
}

.ai-generation-panel,
.cv-insight-card,
.editable-section,
.profile-field-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.ai-generation-panel {
    background: linear-gradient(135deg, rgba(33, 31, 96, 0.05), rgba(243, 108, 33, 0.08));
}

.ai-orbit {
    position: relative;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border: 2px solid rgba(33, 31, 96, 0.16);
    border-radius: 999px;
}

.ai-orbit::before {
    position: absolute;
    inset: 8px;
    content: "";
    background: var(--primary-soft);
    border-radius: 999px;
}

.ai-orbit span {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    background: var(--secondary-color);
    border: 3px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(243, 108, 33, 0.32);
    transform-origin: 7px 32px;
    animation: orbitSpin 1.1s linear infinite;
}

.step-pill {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 800;
}

.portrait-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.portrait-preview {
    display: inline-flex;
    width: 112px;
    height: 112px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(145deg, var(--primary-color), #625df2);
    border: 5px solid #ffffff;
    border-radius: 34px;
    box-shadow: var(--shadow-sm);
    font-size: 2rem;
    font-weight: 800;
}

.portrait-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--primary-color);
    background: var(--primary-soft);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 0.6rem 0.85rem;
}

.skill-chip::before {
    width: 8px;
    height: 8px;
    content: "";
    background: var(--secondary-color);
    border-radius: 999px;
}

.language-level {
    height: 100%;
    background: #fafbff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.cv-insight-card {
    background: linear-gradient(135deg, rgba(33, 31, 96, 0.04), rgba(243, 108, 33, 0.06));
}

@keyframes orbitSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767.98px) {
    .upload-dropzone {
        min-height: 190px;
        padding: 1.5rem;
    }

    .portrait-upload {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* Landing page career upgrade section */
.career-upgrade-section {
    padding: clamp(4rem, 7vw, 6rem) 0;
    background: #ffffff;
}

.landing-section-title {
    color: var(--primary-color);
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.landing-section-subtitle {
    max-width: 640px;
    color: #566288;
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.75;
}

.career-section-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.career-control-btn {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: var(--primary-soft);
    border: 0;
    border-radius: 999px;
    font-size: 1.1rem;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.career-control-btn:hover,
.career-control-btn:focus {
    color: #ffffff;
    background: var(--primary-color);
    transform: translateY(-2px);
}

.career-upgrade-card {
    position: relative;
    display: flex;
    min-height: 255px;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(11, 10, 40, 0.05) 0%, rgba(11, 10, 40, 0.92) 100%),
        linear-gradient(135deg, var(--primary-color), #5a54d6);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(33, 31, 96, 0.16);
    padding: 1.25rem;
    isolation: isolate;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.career-upgrade-card::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.22), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.16), transparent 25%);
}

.career-upgrade-card::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(180deg, rgba(12, 11, 42, 0.06), rgba(12, 11, 42, 0.88));
}

.career-upgrade-card.card-secondary {
    background:
        linear-gradient(180deg, rgba(11, 10, 40, 0.04) 0%, rgba(11, 10, 40, 0.88) 100%),
        linear-gradient(135deg, #F36C21, #ffb36f);
}

.career-upgrade-card.card-green {
    background:
        linear-gradient(180deg, rgba(11, 10, 40, 0.04) 0%, rgba(11, 10, 40, 0.88) 100%),
        linear-gradient(135deg, #0f766e, #42d6ba);
}

.career-upgrade-card.card-blue {
    background:
        linear-gradient(180deg, rgba(11, 10, 40, 0.04) 0%, rgba(11, 10, 40, 0.88) 100%),
        linear-gradient(135deg, #2563eb, #70c7ff);
}

.career-upgrade-card.card-purple {
    background:
        linear-gradient(180deg, rgba(11, 10, 40, 0.04) 0%, rgba(11, 10, 40, 0.88) 100%),
        linear-gradient(135deg, #6d28d9, #c4a1ff);
}

.career-upgrade-card.card-orange {
    background:
        linear-gradient(180deg, rgba(11, 10, 40, 0.04) 0%, rgba(11, 10, 40, 0.88) 100%),
        linear-gradient(135deg, #ea580c, #facc15);
}

.career-upgrade-card:hover,
.career-upgrade-card:focus {
    color: #ffffff;
    box-shadow: 0 26px 60px rgba(33, 31, 96, 0.24);
    transform: translateY(-6px);
}

.career-card-glow {
    position: absolute;
    top: -38px;
    right: -42px;
    z-index: -1;
    width: 145px;
    height: 145px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.career-upgrade-icon {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    font-size: 1.75rem;
    backdrop-filter: blur(10px);
}

.career-upgrade-content,
.career-upgrade-title,
.career-upgrade-text {
    display: block;
}

.career-upgrade-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.career-upgrade-text {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.45;
}

/* Landing page footer */
.site-footer {
    padding: 4rem 0 2rem;
    color: rgba(255, 255, 255, 0.84);
    background:
        radial-gradient(circle at 8% 0%, rgba(243, 108, 33, 0.35), transparent 30%),
        linear-gradient(135deg, #17154a, var(--primary-color));
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
}

.footer-brand:hover,
.footer-brand:focus {
    color: #ffffff;
}

.footer-social {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.footer-social:hover,
.footer-social:focus {
    color: #ffffff;
    background: var(--secondary-color);
}

.site-footer .footer-note {
    color: rgba(255, 255, 255, 0.72);
}

.footer-heading {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-links {
    display: grid;
    gap: 0.7rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links a,
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus,
.footer-bottom-links a:hover,
.footer-bottom-links a:focus {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.92rem;
    font-weight: 700;
}

.footer-bottom-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Chatbot contact admin popup */
.chatbot-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    display: grid;
    justify-items: end;
    gap: 0.9rem;
}

.chatbot-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--secondary-color), #ff9d66);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 20px 45px rgba(243, 108, 33, 0.34);
    font-weight: 800;
    padding: 0.9rem 1.15rem;
}

.chatbot-toggle i {
    font-size: 1.15rem;
}

.chatbot-panel {
    width: min(360px, calc(100vw - 32px));
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 26px;
    box-shadow: 0 25px 70px rgba(33, 31, 96, 0.22);
}

.chatbot-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color), #3430a0);
    padding: 1rem;
}

.chatbot-header strong,
.chatbot-header span {
    display: block;
}

.chatbot-header span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.chatbot-close {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 999px;
}

.chatbot-body {
    display: grid;
    gap: 0.7rem;
    max-height: 260px;
    overflow-y: auto;
    padding: 1rem;
    background: #fafbff;
}

.chatbot-message {
    max-width: 86%;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.5;
    padding: 0.72rem 0.85rem;
}

.chatbot-message.bot {
    justify-self: start;
    color: #37365b;
    background: #ffffff;
    border: 1px solid var(--border-color);
}

.chatbot-message.user {
    justify-self: end;
    color: #ffffff;
    background: var(--secondary-color);
}

.chatbot-footer {
    display: flex;
    gap: 0.6rem;
    padding: 0.85rem;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

.chatbot-footer .form-control {
    min-height: 46px;
    border-radius: 999px;
}

.chatbot-footer .btn {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
}

@media (max-width: 767.98px) {
    .career-upgrade-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .career-section-controls {
        display: none;
    }

    .career-upgrade-card {
        min-height: 225px;
    }

    .chatbot-widget {
        right: 16px;
        bottom: 16px;
        left: 16px;
    }

    .chatbot-toggle {
        justify-content: center;
        width: 100%;
    }
}