/* Candidate My Profile — Figma redesign */
.jw-profile-save-toast {
    display: none;
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 14px;
    font-weight: 500;
}

.jw-profile-save-toast.is-visible {
    display: block;
}

.jw-profile-save-toast.is-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.jw-profile-page {
    background: #f4f6f8;
    /* Top padding is content-only; fixed nav offset is on body.jb-app-nav-layout */
    padding: 24px 0 48px;
    min-height: 60vh;
}

.jw-profile-page .pageTitle,
.jw-profile-page .candidate-workspace-page-strip {
    display: none;
}

.jw-profile-header {
    background: transparent;
    border-bottom: none;
    padding: 24px 0;
    margin-bottom: 0;
}

.jw-profile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.jw-profile-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.jw-profile-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    max-width: 720px;
}

.jw-profile-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.jw-profile-view-public-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 10px 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1.2;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.jw-profile-view-public-btn:hover,
.jw-profile-view-public-btn:focus {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    text-decoration: none !important;
}

.jw-profile-view-public-btn i {
    font-size: 14px;
    color: #475569;
}

.jw-profile-available {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 10px 8px 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
}

.jw-profile-available-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.jw-profile-available .switch,
.jw-profile-availability-switch {
    margin: 0;
    width: 44px;
    height: 24px;
    padding: 0;
    background: #cbd5e1;
    border-radius: 999px;
    box-shadow: none;
    background-image: none;
    flex-shrink: 0;
}

.jw-profile-available .switch-label,
.jw-profile-availability-switch .switch-label {
    background: transparent;
    box-shadow: none;
    border-radius: 999px;
}

.jw-profile-available .switch-label:before,
.jw-profile-available .switch-label:after,
.jw-profile-availability-switch .switch-label:before,
.jw-profile-availability-switch .switch-label:after {
    display: none;
}

.jw-profile-available .switch-handle,
.jw-profile-availability-switch .switch-handle {
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
    background-image: none;
    background: #fff;
}

.jw-profile-available .switch-handle:before,
.jw-profile-availability-switch .switch-handle:before {
    display: none;
}

.jw-profile-available .switch-input:checked ~ .switch-label,
.jw-profile-availability-switch.switch-green > .switch-input:checked ~ .switch-label {
    background: #2563eb;
}

.jw-profile-available .switch-input:checked ~ .switch-handle,
.jw-profile-availability-switch .switch-input:checked ~ .switch-handle {
    left: 23px;
}

.jw-profile-available .switch {
    margin: 0;
}

/* Layout */
.jw-profile-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.jw-profile-sidebar {
    flex: 0 0 320px;
    max-width: 320px;
}

.jw-profile-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 767px) {
    .jw-profile-layout {
        flex-direction: column;
    }

    .jw-profile-sidebar {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }
    .jw-profile-main{
        width: 100%;
    }
}

@media (min-width: 768px) {
    /* .jw-profile-page > .container {
        width: 100%;
        max-width: 1200px;
        padding-left: 24px;
        padding-right: 24px;
    } */

    .jw-profile-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .jw-profile-sidebar {
        flex: 0 0 300px;
        max-width: 300px;
        width: 300px;
    }

    .jw-profile-main {
        flex: 1 1 auto;
        min-width: 0;
    }

    .jw-profile-header-inner {
        flex-direction: row;
        align-items: center;
    }

    .jw-profile-header-actions {
        flex-direction: row;
        align-items: center;
        width: auto;
    }

    .jw-profile-view-public-btn {
        width: auto;
    }

    .jw-profile-available {
        width: auto;
    }

    .jw-profile-completion-top > div:first-child {
        flex: 1 1 auto;
        min-width: 0;
    }

    .jw-profile-completion-sub {
        max-width: none;
    }

    .jw-profile-empty {
        padding: 28px 20px;
    }
}

@media (min-width: 992px) {
    .jw-profile-sidebar {
        flex: 0 0 320px;
        max-width: 320px;
        width: 320px;
    }
}

/* Cards */
.jw-profile-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.jw-profile-card + .jw-profile-card {
    margin-top: 16px;
}

.jw-profile-completion {
    padding: 18px 20px;
}

.jw-profile-completion-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.jw-profile-completion-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}

.jw-profile-completion-sub {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.45;
    max-width: 210px;
}

.jw-profile-completion-ring {
    --jw-completion-color: #2563eb;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    flex-shrink: 0;
    background: conic-gradient(var(--jw-completion-color) calc(var(--jw-completion-percent, 0) * 1%), #e5e7eb 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.jw-profile-completion-ring::before {
    content: '';
    position: absolute;
    inset: 5px;
    background: #fff;
    border-radius: 50%;
}

.jw-profile-completion-percent {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 700;
    color: var(--jw-completion-color);
}

.jw-profile-completion.is-start {
    --jw-completion-tone: #f97316;
}

.jw-profile-completion.is-progress {
    --jw-completion-tone: #2563eb;
}

.jw-profile-completion.is-strong,
.jw-profile-completion.is-complete {
    --jw-completion-tone: #059669;
}

.jw-profile-completion.is-start .jw-profile-completion-ring {
    --jw-completion-color: #f97316;
}

.jw-profile-completion.is-progress .jw-profile-completion-ring {
    --jw-completion-color: #2563eb;
}

.jw-profile-completion.is-strong .jw-profile-completion-ring,
.jw-profile-completion.is-complete .jw-profile-completion-ring {
    --jw-completion-color: #059669;
}

.jw-profile-completion-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
    margin-bottom: 14px;
}

.jw-profile-completion-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--jw-completion-tone, #2563eb);
    transition: width 0.35s ease;
}

.jw-profile-completion-list-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.jw-profile-completion-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jw-profile-completion-list li + li {
    margin-top: 6px;
}

.jw-profile-completion-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    background: #f9fafb;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.jw-profile-completion-item:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.jw-profile-completion-item-icon {
    color: #9ca3af;
    font-size: 12px;
    flex-shrink: 0;
}

.jw-profile-completion-item-text {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    line-height: 1.35;
}

.jw-profile-completion-boost {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #059669;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.jw-profile-completion-boost-icon {
    display: block;
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    stroke: #059669;
}

.jw-profile-completion-item-arrow {
    color: #9ca3af;
    font-size: 10px;
    flex-shrink: 0;
}

.jw-profile-completion-more {
    margin: 8px 0 0;
    font-size: 11px;
    color: #9ca3af;
}

.jw-profile-completion-done {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 600;
}

.jw-profile-completion-done .fa {
    font-size: 14px;
}

/* Sidebar profile card */
.jw-profile-summary {
    text-align: center;
    position: relative;
    overflow: visible;
    padding-top: 4px;
}

.jw-profile-summary-edit {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    z-index: 2;
    line-height: 1.2;
}

.jw-profile-summary-edit:hover {
    color: #1d4ed8;
}

.jw-profile-avatar-wrap {
    position: relative;
    margin: 8px auto 14px;
    flex-shrink: 0;
}

.jw-profile-avatar-wrap .jw-profile-avatar,
.jw-profile-avatar-wrap .jw-profile-avatar-placeholder {
    margin: 0;
    width: 100%;
    height: 100%;
}

.jw-profile-open-to-work-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
    object-fit: contain;
}

.jw-profile-avatar-wrap.is-open-to-work .jw-profile-open-to-work-frame {
    display: block;
    border: 3px solid #f3f4f6;
    border-radius: 99px;
}

.jw-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 8px auto 14px;
    border: 3px solid #f3f4f6;
    background: #f3f4f6;
    display: block;
}

.jw-profile-summary--employer .jw-profile-avatar,
.jw-profile-summary--employer .jw-profile-summary-logo {
    object-fit: cover !important;
}

.jw-profile-avatar-wrap .jw-profile-avatar {
    width: 100%;
    height: 100%;
}

.jw-profile-avatar-modal {
    width: 72px;
    height: 72px;
    margin: 0;
}

.jw-profile-summary:not(.jw-profile-summary--employer) > img:not(.jw-profile-avatar) {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 8px auto 14px;
    border: 3px solid #f3f4f6;
    background: #f3f4f6;
    display: block;
}

.jw-profile-avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 8px auto 14px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 32px;
}

.jw-profile-avatar-initials {
    background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1;
    border: 3px solid #f3f4f6;
    box-sizing: border-box;
}

.jw-profile-avatar-wrap .jw-profile-avatar-placeholder,
.jw-profile-avatar-wrap .jw-profile-avatar-initials {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.jw-profile-avatar-initials--header {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0;
    border: 1px solid #dbeafe;
    border-radius: 50%;
    padding: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    line-height: 1;
    text-align: center;
}

.jw-profile-name {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}

.jw-profile-role {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 4px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    line-height: 1.4;
    word-break: break-word;
}

.jw-profile-role i {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.jw-profile-location {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 4px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    line-height: 1.4;
    word-break: break-word;
}

.jw-profile-location i {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.jw-profile-company {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    line-height: 1.4;
    word-break: break-word;
    text-align: left;
    width: 100%;
    padding: 0 4px;
}

.jw-profile-company-label {
    font-weight: 600;
    color: #475569;
}

.jw-profile-company i {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.jw-profile-work-locations {
    margin: 0 0 16px;
    text-align: left;
    width: 100%;
}

.jw-profile-work-locations-label {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.jw-profile-work-locations-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jw-profile-work-locations-list li {
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.jw-profile-work-locations-list li:last-child {
    border-bottom: none;
}

.jw-profile-work-locations-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 999px;
    vertical-align: middle;
}

.jw-profile-work-locations-edit-list {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.jw-profile-work-locations-edit-list li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.jw-profile-work-locations-edit-list li:last-child {
    border-bottom: none;
}

.jw-profile-work-locations-edit-name {
    flex: 1;
    min-width: 0;
    color: #334155;
}

.jw-profile-work-locations-remove {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 20px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
}

.jw-profile-work-locations-remove:hover {
    color: #ef4444;
}

.jw-profile-work-locations-add-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.jw-profile-work-locations-add-row .form-control {
    flex: 1;
    min-width: 0;
}

/* —— Edit Basic modal: Work Location —— */
.jw-profile-modal.jw-profile-modal--work-location .modal-dialog,
.jw-profile-modal.jw-profile-modal--basic .modal-dialog {
    max-width: 540px;
    width: calc(100% - 32px);
}

.jw-profile-modal.jw-profile-modal--basic .modal-content {
    overflow: hidden;
}

.jw-profile-modal.jw-profile-modal--work-location .modal-content {
    overflow: hidden;
    border-radius: 14px;
}

.jw-profile-modal.jw-profile-modal--work-location .modal-header {
    border-radius: 14px 14px 0 0;
}

.jw-profile-modal.jw-profile-modal--work-location .modal-footer {
    border-radius: 0 0 14px 14px;
}

.jw-profile-modal.jw-profile-modal--basic .modal-body {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: min(65vh, 560px);
    -webkit-overflow-scrolling: touch;
}

.jw-profile-modal.jw-profile-modal--work-location .modal-body {
    overflow-x: visible;
    overflow-y: auto;
    max-height: min(65vh, 520px);
}

.jw-profile-modal.jw-profile-modal--work-location .jw-work-loc-search-block.is-active,
.jw-profile-modal.jw-profile-modal--basic .jw-work-loc-search-block.is-active {
    z-index: 20;
}

.jw-profile-work-location-field {
    margin-bottom: 20px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.jw-work-loc-field-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.jw-work-loc-field-label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #eff6ff;
    color: #0a65cc;
}

.jw-work-loc-field-hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
}

.jw-work-loc-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    overflow: visible;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.jw-work-loc-selected-panel {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.jw-work-loc-selected-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.jw-work-loc-selected-title {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.jw-work-loc-selected-count {
    font-size: 12px;
    font-weight: 700;
    color: #0a65cc;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 3px 10px;
    min-width: 44px;
    text-align: center;
}

.jw-work-loc-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 8px;
}

.jw-work-loc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    border: 1px dashed #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
}

.jw-work-loc-empty .fa {
    font-size: 22px;
    opacity: 0.6;
}

.jw-work-loc-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #0a65cc;
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jw-work-loc-chip:hover {
    border-color: #bfdbfe;
    box-shadow: 0 2px 8px rgba(10, 101, 204, 0.08);
}

.jw-work-loc-chip-icon-wrap {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eff6ff;
    color: #0a65cc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.jw-work-loc-chip-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jw-work-loc-chip-text {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    line-height: 1.4;
    word-break: break-word;
}

.jw-work-loc-chip-remove {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.jw-work-loc-chip-remove:hover {
    background: #fef2f2;
    color: #dc2626;
}

.jw-work-loc-search-block {
    position: relative;
    padding: 14px 16px 16px;
    background: #fff;
    overflow: visible;
    z-index: 5;
}

.jw-work-loc-search-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.jw-work-loc-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    padding: 0 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jw-work-loc-search-box:focus-within {
    border-color: #0a65cc;
    box-shadow: 0 0 0 3px rgba(10, 101, 204, 0.12);
}

.jw-work-loc-search-icon {
    flex-shrink: 0;
    color: #9ca3af;
    display: flex;
    align-items: center;
}

.jw-work-loc-search-box:focus-within .jw-work-loc-search-icon {
    color: #0a65cc;
}

.jw-work-loc-search-input {
    flex: 1;
    min-width: 0;
    border: none !important;
    box-shadow: none !important;
    padding: 11px 0 !important;
    height: auto !important;
    font-size: 14px !important;
    background: transparent !important;
}

.jw-work-loc-search-input:focus {
    outline: none;
}

.jw-work-loc-dropdown {
    display: none;
    margin-top: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.jw-work-loc-dropdown.is-open {
    display: block;
}

.jw-work-loc-dropdown-head {
    padding: 10px 14px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
}

.jw-work-loc-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 6px;
}

.jw-work-loc-list-empty {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

.jw-work-loc-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0 0 4px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 400;
    color: #111827;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background 0.12s ease, border-color 0.12s ease;
    user-select: none;
}

label.jw-work-loc-list-item {
    width: 100%;
}

.jw-work-loc-list-item:last-child {
    margin-bottom: 0;
}

.jw-work-loc-list-item:hover {
    background: #f9fafb;
}

.jw-work-loc-list-item.is-selected {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.jw-work-loc-list-item__text {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.jw-work-loc-list-item .jw-work-loc-checkbox {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #0a65cc;
}

.jw-work-loc-error {
    margin-top: 8px;
}

.jw-profile-section-hint {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.45;
}

.jw-profile-summary .jw-profile-role:last-of-type,
.jw-profile-summary .jw-profile-company:last-of-type {
    margin-bottom: 16px;
}

.jw-profile-contact {
    text-align: left;
    border-top: 1px solid #f3f4f6;
    padding-top: 14px;
    margin-top: 4px;
}

.jw-profile-contact-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.jw-profile-contact-row:last-child {
    margin-bottom: 0;
}

.jw-profile-contact-row i {
    color: #9ca3af;
    width: 16px;
    margin-top: 2px;
}

.jw-profile-contact-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.jw-profile-contact-value {
    color: #374151;
    word-break: break-word;
}

.jw-profile-contact-add {
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
}

.jw-profile-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
    text-align: left;
}

.jw-profile-meta-item label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.jw-profile-meta-item span {
    font-size: 13px;
    color: #374151;
}

.jw-profile-meta-item--full {
    grid-column: 1 / -1;
}

/* Activities card */
.jw-profile-activities-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

.jw-profile-activity-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
}

.jw-profile-activity-link:hover {
    background: #f9fafb;
    text-decoration: none;
    color: #111827;
}

.jw-profile-activity-link i {
    color: #2563eb;
}

.jw-profile-activity-link.is-disabled,
.jw-profile-activity-link.is-disabled:hover {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    border: 1px dashed #d1d5db;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.jw-profile-activity-link.is-disabled i {
    color: #9ca3af;
}

.jw-resume-builder-locked-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 2px 8px;
}

.jw-resume-builder-lock-notice {
    margin: 0 0 10px;
    padding: 12px;
    border-radius: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.jw-resume-builder-lock-title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
    line-height: 1.4;
}

.jw-resume-builder-lock-meta {
    margin: 0 0 8px;
    font-size: 12px;
    color: #a16207;
    line-height: 1.45;
}

.jw-resume-builder-lock-list {
    margin: 0 0 8px;
    padding-left: 18px;
    font-size: 12px;
    color: #78350f;
    line-height: 1.5;
}

.jw-resume-builder-lock-more {
    margin: 0 0 8px;
    font-size: 12px;
    color: #a16207;
}

.jw-resume-builder-lock-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    background: #f59e0b;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.jw-resume-builder-lock-cta:hover {
    background: #d97706;
}

.jw-profile-completion--highlight {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
    transition: box-shadow 0.2s ease;
}

.jw-profile-sidebar .jw-profile-section--sidebar {
    margin-top: 16px;
}

.jw-profile-sidebar .jw-profile-section--sidebar .jw-profile-section-header {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.jw-profile-sidebar .jw-profile-section--sidebar .jw-profile-section-body {
    padding: 12px 16px 16px;
}

.jw-profile-sidebar .jw-profile-section--sidebar .jw-cert-card {
    padding: 12px;
}

.jw-profile-sidebar .jw-profile-section--sidebar .jw-cert-card-title {
    font-size: 14px;
    word-break: break-word;
}

.jw-profile-sidebar .jw-profile-section--sidebar .jw-profile-empty {
    padding: 20px 12px;
}

/* Section cards */
.jw-profile-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.jw-profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.jw-profile-section-header--static {
    justify-content: flex-start;
}

.jw-profile-section-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.jw-profile-h3-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.jw-profile-h3-with-icon .jw-profile-h3-icon {
    color: #2563eb;
    font-size: 17px;
}

.jw-profile-h3-with-icon .jw-icon-badge-check.jw-profile-h3-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.jw-profile-section-header .jw-link-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.jw-profile-section-body {
    padding: 16px 20px 20px;
}

.jw-profile-section-note {
    font-size: 12px;
    color: #9ca3af;
    margin: -8px 0 12px;
}

/* Buttons */
.jw-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.15s;
}

.jw-btn-primary:hover {
    background: #1d4ed8;
    color: #fff !important;
}

.jw-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #2563eb !important;
    border: 1px solid #2563eb;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
}

.jw-btn-outline:hover {
    background: #eff6ff;
}

.jw-link-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.jw-link-btn:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Empty state */
.jw-profile-empty {
    text-align: center;
    padding: 32px 16px;
}

.jw-profile-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: #9ca3af;
    font-size: 24px;
}

.jw-profile-empty h4 {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 6px;
}

.jw-profile-empty p {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 16px;
}

/* Experience list (Figma v2) */
.jw-exp-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.jw-exp-item {
    border-bottom: 1px solid #f3f4f6;
    padding: 16px 0;
}

.jw-exp-item:first-child {
    padding-top: 0;
}

.jw-exp-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.jw-exp-item-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.jw-exp-item-content {
    flex: 1;
    min-width: 0;
}

.jw-exp-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
    line-height: 1.35;
}

.jw-exp-item-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.jw-exp-item-dates {
    font-size: 13px;
    color: #6b7280;
    margin: 6px 0 0;
    line-height: 1.4;
}

.jw-exp-detail-block {
    margin-top: 12px;
}

.jw-exp-detail-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.jw-exp-detail-value {
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}

.jw-exp-desc-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
    padding: 12px 14px;
    background: #f9fafb;
    border: none;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
}

.jw-exp-desc-box .jw-exp-desc-text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

.jw-exp-desc-box.is-empty .jw-exp-desc-text {
    color: #9ca3af;
    font-style: italic;
}

.jw-exp-desc-box .fa-chevron-right {
    color: #9ca3af;
    font-size: 12px;
    flex-shrink: 0;
}

.jw-exp-desc-preview {
    margin-top: 12px;
}

.jw-exp-desc-preview.is-truncated .jw-exp-desc-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.jw-exp-desc-preview.is-truncated.is-expanded .jw-exp-desc-text {
    display: block;
    -webkit-box-orient: unset;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.jw-exp-desc-toggle {
    display: inline-block;
    margin-top: 6px;
    padding: 0;
    border: none;
    background: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.jw-exp-desc-toggle:hover {
    text-decoration: underline;
}

.jw-desc-limit-hint {
    margin: 6px 0 0;
    font-size: 12px;
}

#experience_description_counter,
#education_description_counter {
    margin: 4px 0 0;
    font-size: 12px;
}

#experience_description_counter.is-over-limit,
#education_description_counter.is-over-limit {
    color: #a94442;
    font-weight: 600;
}

.jw-exp-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.jw-exp-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1.3;
}

.jw-exp-pill-grey {
    background: #f3f4f6;
    color: #374151;
}

.jw-exp-pill-green {
    background: #dcfce7;
    color: #166534;
}

.jw-exp-edit-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 2px;
}

.jw-exp-edit-btn .fa {
    margin-right: 4px;
}

/* Legacy experience cards (admin / fallback) */
.jw-exp-card,
.jw-proj-card,
.jw-cert-card {
    border: 1px solid #f3f4f6;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.jw-edu-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.jw-edu-item {
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #f3f4f6;
}

.jw-edu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.jw-edu-item-main {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
}

.jw-edu-item:first-child .jw-edu-item-main {
    padding-top: 0;
}

.jw-edu-item-icon,
.jw-exp-item-icon,
.jw-proj-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    flex-shrink: 0;
    font-size: 17px;
    align-self: flex-start;
    margin-top: 2px;
}

.jw-edu-item-content {
    flex: 1;
    min-width: 0;
}

.jw-edu-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
    line-height: 1.35;
}

.jw-edu-item-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px;
    line-height: 1.4;
}

.jw-edu-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.jw-edu-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1.3;
}

.jw-edu-pill-blue {
    background: #dbeafe;
    color: #1e40af;
}

.jw-edu-edit-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    align-self: center;
}

.jw-edu-edit-btn:hover {
    color: #1d4ed8;
}

.jw-edu-footer-row {
    margin-top: 8px;
    padding-top: 14px;
}

.jw-edu-footer-label {
    color: #6b7280;
    font-weight: 400;
}

.jw-edu-footer-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    font-weight: 600;
}

.jw-edu-footer-value strong {
    font-weight: 700;
    color: #111827;
}

.jw-edu-footer-value .fa-chevron-right {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 400;
}

.jw-proj-list {
    display: flex;
    flex-direction: column;
}

.jw-proj-item {
    border-bottom: 1px solid #f3f4f6;
}

.jw-proj-item:last-child {
    border-bottom: none;
}

.jw-proj-item-main {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
}

.jw-proj-item:first-child .jw-proj-item-main {
    padding-top: 0;
}

.jw-proj-item-content {
    flex: 1;
    min-width: 0;
}

.jw-proj-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
    line-height: 1.35;
}

.jw-proj-item-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px;
    line-height: 1.4;
}

.jw-proj-item-desc {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.55;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.jw-proj-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jw-proj-pill {
    display: inline-block;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1.3;
}

.jw-proj-edit-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    align-self: center;
}

.jw-proj-edit-btn:hover {
    color: #1d4ed8;
}

.jw-profile-modal .project-linkedin-form .jw-proj-input-wrap {
    position: relative;
}

.jw-profile-modal .project-linkedin-form .jw-proj-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    z-index: 2;
    width: 16px;
    text-align: center;
    line-height: 1;
}

.jw-profile-modal .project-linkedin-form .jw-proj-input-wrap .form-control {
    padding: 10px 12px 10px 42px;
    width: 100%;
}

.jw-profile-footer-row:hover .jw-edu-footer-value {
    color: #2563eb;
}

.jw-profile-footer-row:hover .jw-edu-footer-value strong {
    color: #2563eb;
}

.jw-highest-education-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.jw-exp-card:last-child,
.jw-proj-card:last-child,
.jw-cert-card:last-child {
    margin-bottom: 0;
}

.jw-exp-card-header,
.jw-edu-card-header,
.jw-proj-card-header,
.jw-cert-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.jw-exp-card-icon,
.jw-edu-card-icon,
.jw-proj-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    flex-shrink: 0;
    font-size: 16px;
}

.jw-cert-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fef3e2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c27803;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.jw-cert-card-icon .jw-icon-badge-check {
    width: 20px;
    height: 20px;
}

.jw-profile-empty-icon.jw-cert-empty-icon {
    background: #fef3e2;
    color: #c27803;
}

.jw-profile-empty-icon.jw-cert-empty-icon .jw-icon-badge-check {
    width: 24px;
    height: 24px;
}

.jw-exp-card-title-wrap,
.jw-edu-card-title-wrap,
.jw-proj-card-title-wrap,
.jw-cert-card-title-wrap {
    flex: 1;
    min-width: 0;
}

.jw-exp-card-title,
.jw-edu-card-title,
.jw-proj-card-title,
.jw-cert-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2px;
}

.jw-exp-card-sub,
.jw-edu-card-sub,
.jw-proj-card-sub,
.jw-cert-card-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.jw-cert-card-sub a {
    color: #2563eb;
    font-weight: 500;
}

.jw-cert-card-header {
    margin-bottom: 0;
    align-items: center;
}

.jw-lang-list {
    display: flex;
    flex-direction: column;
}

.jw-lang-card {
    border-bottom: 1px solid #f3f4f6;
}

.jw-lang-card:last-child {
    border-bottom: none;
}

.jw-lang-card-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
}

.jw-lang-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.jw-lang-card-content {
    flex: 1;
    min-width: 0;
}

.jw-lang-card-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.jw-lang-card-sub {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
}

.jw-lang-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.jw-exp-card-actions {
    flex-shrink: 0;
}

.jw-exp-card-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.jw-exp-card-desc {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    margin: 8px 0;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #e5e7eb;
}

.jw-exp-card-desc.is-empty {
    color: #9ca3af;
    font-style: italic;
}

.jw-exp-card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.jw-skill-pill {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
}

.jw-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.jw-tag-green {
    background: #dcfce7;
    color: #166534;
}

.jw-tag-blue {
    background: #dbeafe;
    color: #1e40af;
}

/* Skills section pills */
.jw-skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Resume upload zone */
.jw-resume-upload {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 32px 20px;
    text-align: center;
    background: #fafafa;
}

.jw-resume-upload-icon {
    font-size: 32px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.jw-resume-upload p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 4px;
}

.jw-resume-upload small {
    font-size: 12px;
    color: #9ca3af;
}

.jw-resume-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: #dc2626;
}

.jw-resume-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
}

.jw-resume-file:last-child {
    margin-bottom: 0;
}

.jw-resume-file-icon {
    width: 36px;
    height: 36px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jw-resume-file-info {
    flex: 1;
    min-width: 0;
}

.jw-resume-file-info a {
    font-weight: 600;
    color: #111827;
}

.jw-link-danger {
    color: #dc2626 !important;
}

.jw-resume-upload-form {
    padding: 4px 0;
}

.jw-resume-upload-hint {
    margin: 0 0 16px;
    font-size: 13px;
}

.jw-resume-current-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.jw-resume-current-file i {
    font-size: 24px;
    color: #6b7280;
}

.jw-resume-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    background: #fafafa;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.jw-resume-file-label:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.jw-resume-upload-form #cv_file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.jw-resume-selected-name {
    margin-top: 10px;
    font-size: 13px;
}

.jw-swal-popup {
    font-family: inherit;
    border-radius: 12px;
}

.jw-swal-confirm,
.jw-swal-cancel {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 18px !important;
}

.jw-certificate-upload-form {
    padding: 4px 0;
}

.jw-certificate-upload-hint {
    margin: 0 0 16px;
    font-size: 13px;
}

.jw-cert-current-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.jw-cert-current-file i {
    font-size: 24px;
    color: #6b7280;
}

.jw-certificate-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    background: #fafafa;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.jw-certificate-file-label:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.jw-certificate-upload-form #certificate_file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.jw-certificate-selected-name {
    margin-top: 10px;
    font-size: 13px;
}

/* Detail rows (Work Authorization, Other Details) */
.jw-detail-rows {
    border-top: 1px solid #f3f4f6;
}

.jw-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.15s;
}

.jw-detail-row:last-child {
    border-bottom: none;
}

.jw-detail-row:hover {
    background: #fafafa;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.jw-detail-row-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
}

.jw-detail-row-value {
    font-size: 13px;
    color: #6b7280;
}

.jw-detail-row-value.is-empty {
    color: #9ca3af;
}

.jw-detail-row-chevron {
    color: #9ca3af;
    font-size: 12px;
}

.jw-profile-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 0;
    margin-top: 12px;
    border-top: 1px solid #f3f4f6;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
}

.jw-profile-footer-row:hover {
    color: #2563eb;
}

/* Modals — vertically centered on all screen sizes */
.jw-profile-modal {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.jw-profile-modal.in {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}

.jw-profile-modal .modal-dialog {
    width: calc(100% - 32px);
    max-width: 560px;
    margin: auto;
    box-sizing: border-box;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
}

.jw-profile-modal .modal-content {
    border: none;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    display: flex;
    flex-direction: column;
}

.jw-profile-modal .modal-header {
    border-bottom: 1px solid #f3f4f6;
    padding: 20px 24px 16px;
    position: relative;
}

.jw-profile-modal .modal-header .close {
    position: absolute;
    right: 20px;
    top: 18px;
    font-size: 22px;
    opacity: 0.5;
}

.jw-profile-modal .modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.jw-profile-modal .modal-body {
    padding: 20px 24px;
    max-height: min(65vh, calc(100dvh - 180px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
}

.jw-profile-modal .modal-footer {
    border-top: 1px solid #f3f4f6;
    padding: 16px 24px;
    background: #fafafa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.jw-profile-modal .form-group {
    margin-bottom: 16px;
}

.jw-profile-modal .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.jw-profile-modal .form-control {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    height: auto;
    box-shadow: none;
}

.jw-profile-modal .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.jw-profile-modal .jw-profile-about-textarea {
    min-height: 96px;
    resize: vertical;
}

.jw-profile-modal .jw-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.jw-profile-modal .form-row-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.jw-profile-modal .form-row-2 > .form-group {
    min-width: 0;
}

.jw-profile-modal--basic .modal-body .form-group,
.jw-profile-modal--basic .jw-basic-phone-input-row,
.jw-profile-modal--basic .jw-ep-phone-row,
.jw-profile-modal--basic .jw-select2-field {
    max-width: 100%;
    min-width: 0;
}

.jw-profile-modal--basic .jw-select2-field {
    width: 100%;
    box-sizing: border-box;
}

.jw-profile-modal--basic .jw-select2-field .select2-container {
    width: 100% !important;
    display: block;
}

.jw-profile-modal--basic select.jw-select2 {
    width: 100%;
}

.jw-profile-modal--basic .jw-select2-field .select2-container--default .select2-selection--single {
    height: 48px !important;
    min-height: 48px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.jw-profile-modal--basic .jw-select2-field .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
    padding: 0 32px 0 12px !important;
    font-size: 14px !important;
    color: #374151 !important;
}

.jw-profile-modal--basic .jw-select2-field .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af !important;
    line-height: 46px !important;
}

.jw-profile-modal--basic .jw-select2-field .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    top: 1px !important;
    right: 8px !important;
}

.jw-profile-modal--basic .jw-select2-field .select2-container--default.select2-container--focus .select2-selection--single,
.jw-profile-modal--basic .jw-select2-field .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #2563eb !important;
    box-shadow: inset 0 0 0 1px #2563eb, 0 0 0 2px rgba(37, 99, 235, 0.12) !important;
}

.jw-profile-modal--basic .jw-select2-field .select2-selection__clear {
    display: none !important;
}

.jw-profile-modal--basic .jw-date-input-hint--align {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
    visibility: hidden;
}

/* DOB + Gender row: match control heights (48px like Select2) */
.jw-profile-modal--basic .form-row-2 .jw-date-input-wrap .jw-date-flex-input {
    height: 48px;
    min-height: 48px;
    padding: 0 40px 0 12px;
    line-height: 46px;
    box-sizing: border-box;
}

.jw-profile-modal--basic .form-row-2 .jw-select2-field,
.jw-profile-modal--basic .form-row-2 .jw-date-input-wrap {
    min-height: 48px;
}

/* Native select before Select2 — same 48px so no flash on modal open */
.jw-profile-modal--basic .jw-select2-field > select.jw-select2 {
    height: 48px;
    min-height: 48px;
    padding: 0 32px 0 12px;
    font-size: 14px;
    line-height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
}

.jw-profile-modal .jw-photo-hover-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.jw-profile-modal .jw-photo-upload-file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.jw-profile-modal .jw-photo-hover-wrap {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    outline: none;
}

.jw-profile-modal .jw-photo-hover-wrap:focus-visible {
    box-shadow: 0 0 0 3px rgba(10, 101, 204, 0.35), 0 4px 14px rgba(15, 23, 42, 0.08);
}

.jw-profile-modal .jw-photo-hover-wrap:not(.has-photo) {
    box-shadow: 0 0 0 1px #e5e7eb, 0 4px 12px rgba(15, 23, 42, 0.06);
}

.jw-profile-modal .jw-photo-hover-media {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jw-profile-modal .jw-photo-hover-media .jw-profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.jw-profile-modal .jw-photo-hover-media .jw-profile-avatar-placeholder,
.jw-profile-modal .jw-photo-hover-media .jw-profile-avatar-initials {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.jw-profile-modal .jw-photo-hover-actions {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.jw-profile-modal .jw-photo-hover-actions-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.jw-profile-modal .jw-photo-hover-wrap.has-photo:hover .jw-photo-hover-actions,
.jw-profile-modal .jw-photo-hover-wrap.has-photo.is-hovered .jw-photo-hover-actions,
.jw-profile-modal .jw-photo-hover-wrap.has-photo.is-touched .jw-photo-hover-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.jw-profile-modal .jw-photo-hover-wrap:not(.has-photo):hover .jw-photo-hover-actions,
.jw-profile-modal .jw-photo-hover-wrap:not(.has-photo).is-hovered .jw-photo-hover-actions,
.jw-profile-modal .jw-photo-hover-wrap:not(.has-photo).is-touched .jw-photo-hover-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(10, 101, 204, 0.82);
}

.jw-profile-modal .jw-photo-hover-wrap:not(.has-photo) .jw-photo-hover-actions-inner {
    flex-direction: column;
    gap: 6px;
}

.jw-profile-modal .jw-photo-hover-add-label {
    display: none;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1;
    pointer-events: none;
}

.jw-profile-modal .jw-photo-hover-wrap:not(.has-photo) .jw-photo-hover-add-label {
    display: block;
}

.jw-profile-modal .jw-photo-hover-wrap.has-photo .jw-photo-hover-add-label {
    display: none !important;
}

.jw-profile-modal .jw-photo-hover-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
    flex-shrink: 0;
}

.jw-profile-modal .jw-photo-hover-btn:hover {
    transform: scale(1.06);
}

.jw-profile-modal .jw-photo-hover-btn--change {
    background: #fff;
    color: #0a65cc;
    pointer-events: none;
}

.jw-profile-modal .jw-photo-hover-btn--remove {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.jw-profile-modal .jw-photo-hover-btn--remove:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.jw-profile-modal .jw-photo-hover-wrap:not(.has-photo) .jw-photo-hover-btn--remove {
    display: none;
}

.jw-profile-modal .jw-photo-hover-status {
    font-size: 12px;
    margin-top: 8px;
    min-height: 0;
    text-align: center;
    color: #6b7280;
}

.jw-profile-modal .jw-photo-hover-status:empty {
    display: none;
}

.jw-profile-modal .jw-date-input-wrap {
    position: relative;
}

.jw-profile-modal .jw-date-input-wrap .jw-date-flex-input {
    padding-right: 40px;
    background-color: #fff;
    color: #0f172a;
    opacity: 1;
    -webkit-text-fill-color: #0f172a;
    cursor: text;
}

.jw-profile-modal .jw-date-input-wrap .jw-date-flex-input[readonly],
.jw-profile-modal .jw-date-input-wrap .jw-date-flex-input:disabled {
    background-color: #fff !important;
    color: #0f172a !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #0f172a !important;
    cursor: text;
}

.jw-profile-modal .jw-date-input-wrap .jw-date-flex-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.jw-profile-modal .jw-date-input-wrap .jw-date-flex-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Safari/macOS Contacts autofill icon on DOB text fields */
.jw-profile-modal .jw-date-input-wrap .jw-date-flex-input::-webkit-contacts-auto-fill-button,
.jw-profile-modal .jw-date-input-wrap .jw-date-flex-input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
    right: 0;
    width: 0;
    height: 0;
    margin: 0;
    opacity: 0;
}

.jw-profile-modal .jw-date-input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: auto;
    cursor: pointer;
    font-size: 14px;
    z-index: 2;
    padding: 4px;
}

.jw-profile-modal .jw-date-input-icon:hover {
    color: #2563eb;
}

.jw-profile-modal .jw-date-input-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.35;
}

.jw-profile-modal .datepicker-dropdown {
    z-index: 1065;
}

.jw-profile-modal .jw-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    margin: 12px 0;
}

.jw-profile-modal .jw-info-box {
    background: #eff6ff;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    color: #1e40af;
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.jw-profile-modal .jw-skills-selected {
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 10px;
    min-height: 44px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.jw-profile-modal .jw-skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
}

.jw-profile-modal .jw-skill-suggest {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.jw-profile-modal .jw-skill-suggest button {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
}

.jw-profile-modal .jw-skill-suggest button:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.jw-profile-modal .jw-input-icon {
    position: relative;
}

.jw-profile-modal .jw-input-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.jw-profile-modal .jw-input-icon .form-control {
    padding-left: 36px;
}

.jw-profile-modal .education-linkedin-form .jw-edu-school-input-wrap {
    position: relative;
}

.jw-profile-modal .education-linkedin-form .jw-edu-school-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    z-index: 2;
    width: 16px;
    text-align: center;
    line-height: 1;
}

.jw-profile-modal .education-linkedin-form .jw-edu-school-input-wrap .form-control {
    padding: 10px 12px 10px 42px;
    width: 100%;
}

.jw-profile-modal .jw-btn-cancel {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.jw-profile-modal .jw-btn-save {
    background: #2563eb;
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.jw-profile-modal .jw-btn-save:hover {
    background: #1d4ed8;
}

/* Hide old table layout inside profile sections */
.jw-profile-section .table-responsive,
.jw-profile-section .experience-section-intro {
    display: none;
}

.jw-profile-section .experience-list-table {
    display: none;
}

/* Loader inside sections — hidden by default; modals use their own loader */
#experience_loader,
#education_loader,
#project_loader,
#skill_loader {
    display: none;
}

.jw-section-loader {
    text-align: center;
    padding: 24px;
}

.jw-section-loader .spinnerspinner {
    margin: 0 auto;
}

.jw-profile-modal .spinnerspinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: jwSpin 0.8s linear infinite;
}

body.modal-open .select2-container--open {
    z-index: 10060 !important;
}
body.modal-open .select2-dropdown {
    z-index: 10060 !important;
}

.jw-modal-select2-container,
.jw-ep-modal-select-container,
.jw-nationality-select-wrap .select2-container,
#add_language_modal .select2-container {
    width: 100% !important;
    display: block;
}

.jw-modal-select2-container.select2-container--default .select2-selection--single,
.jw-ep-modal-select-container.select2-container--default .select2-selection--single,
.jw-nationality-select-wrap .select2-container--default .select2-selection--single,
#add_language_modal .select2-container--default .select2-selection--single {
    height: 48px !important;
    min-height: 48px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.jw-modal-select2-container.select2-container--default .select2-selection--single .select2-selection__rendered,
.jw-ep-modal-select-container.select2-container--default .select2-selection--single .select2-selection__rendered,
.jw-nationality-select-wrap .select2-container--default .select2-selection--single .select2-selection__rendered,
#add_language_modal .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
    height: 46px !important;
    padding: 0 32px 0 12px !important;
    margin: 0 !important;
    color: #374151 !important;
    font-size: 14px !important;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.jw-modal-select2-container.select2-container--default .select2-selection--single .select2-selection__placeholder,
.jw-ep-modal-select-container.select2-container--default .select2-selection--single .select2-selection__placeholder,
.jw-nationality-select-wrap .select2-container--default .select2-selection--single .select2-selection__placeholder,
#add_language_modal .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af !important;
    line-height: 46px !important;
}

.jw-modal-select2-container.select2-container--default .select2-selection--single .select2-selection__arrow,
.jw-ep-modal-select-container.select2-container--default .select2-selection--single .select2-selection__arrow,
.jw-nationality-select-wrap .select2-container--default .select2-selection--single .select2-selection__arrow,
#add_language_modal .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    top: 1px !important;
    right: 8px !important;
}

.jw-modal-select2-container.select2-container--default .select2-selection--single .select2-selection__arrow b,
.jw-ep-modal-select-container.select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin-top: -2px;
}

.jw-modal-select2-container .select2-selection__clear,
.jw-ep-modal-select-container .select2-selection__clear {
    display: none !important;
}

.jw-modal-select2-container.select2-container--focus .select2-selection--single,
.jw-modal-select2-container.select2-container--open .select2-selection--single,
.jw-ep-modal-select-container.select2-container--focus .select2-selection--single,
.jw-ep-modal-select-container.select2-container--open .select2-selection--single,
.jw-nationality-select-wrap .select2-container--default.select2-container--focus .select2-selection--single,
.jw-nationality-select-wrap .select2-container--default.select2-container--open .select2-selection--single,
#add_language_modal .select2-container--default.select2-container--focus .select2-selection--single,
#add_language_modal .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.jw-modal-select2-dropdown,
.jw-nationality-dropdown,
.jw-lang-dropdown,
.jw-lang-level-dropdown {
    z-index: 10070 !important;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.jw-modal-select2-dropdown .select2-search--dropdown,
.jw-nationality-dropdown .select2-search--dropdown,
.jw-lang-dropdown .select2-search--dropdown,
.jw-lang-level-dropdown .select2-search--dropdown {
    padding: 8px;
    display: block;
}

.jw-modal-select2-dropdown .select2-search--dropdown .select2-search__field,
.jw-nationality-dropdown .select2-search--dropdown .select2-search__field,
.jw-lang-dropdown .select2-search--dropdown .select2-search__field,
.jw-lang-level-dropdown .select2-search--dropdown .select2-search__field {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
    width: 100%;
}

.jw-modal-select2-dropdown .select2-search--dropdown .select2-search__field:focus,
.jw-nationality-dropdown .select2-search--dropdown .select2-search__field:focus,
.jw-lang-dropdown .select2-search--dropdown .select2-search__field:focus,
.jw-lang-level-dropdown .select2-search--dropdown .select2-search__field:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.jw-modal-select2-dropdown .select2-results__options,
.jw-nationality-dropdown .select2-results__options,
.jw-lang-dropdown .select2-results__options,
.jw-lang-level-dropdown .select2-results__options {
    max-height: 220px;
    overflow-y: auto;
}

.jw-modal-select2-dropdown .select2-results__option,
.jw-nationality-dropdown .select2-results__option,
.jw-lang-dropdown .select2-results__option,
.jw-lang-level-dropdown .select2-results__option {
    padding: 8px 12px;
    font-size: 14px;
}

.jw-modal-select2-dropdown .select2-results__option--highlighted[aria-selected],
.jw-nationality-dropdown .select2-results__option--highlighted[aria-selected],
.jw-lang-dropdown .select2-results__option--highlighted[aria-selected],
.jw-lang-level-dropdown .select2-results__option--highlighted[aria-selected] {
    background: #2563eb;
}

@keyframes jwSpin {
    to { transform: rotate(360deg); }
}

#jw_profile_basic_modal .country-select .country-list {
    z-index: 10070;
}
.pac-container {
    z-index: 10080 !important;
}

/* Experience location autocomplete */
.jw-exp-location-input-wrap {
    position: relative;
}
.jw-exp-location-input-wrap .fa-map-marker {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 2;
    pointer-events: none;
}
.jw-exp-location-input-wrap .form-control {
    padding-left: 34px;
}

/* Experience skills select */
.jw-exp-skills-select-wrap .select2-container {
    width: 100% !important;
}
.jw-exp-skills-select-wrap .select2-container--default .select2-selection--multiple {
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    min-height: 48px;
    padding: 8px 10px;
    background: #fafafa;
}
.jw-exp-skills-select-wrap .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #2563eb;
    background: #fff;
}
.jw-exp-skills-select-wrap .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.jw-exp-skills-select-wrap .select2-selection__choice {
    display: inline-flex !important;
    align-items: center;
    float: none !important;
    margin: 0 !important;
    max-width: 100%;
    background: #2563eb !important;
    border: none !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    white-space: normal;
    word-break: break-word;
}
.jw-exp-skills-select-wrap .select2-selection__choice__remove {
    color: rgba(255,255,255,0.85) !important;
    margin-right: 6px !important;
    position: static !important;
    border: none !important;
    order: -1;
}
.jw-exp-skills-select-wrap .select2-search--inline {
    flex: 1 1 140px;
    min-width: 140px;
    max-width: 100%;
    float: none !important;
    margin: 0 !important;
}
.jw-exp-skills-select-wrap .select2-search__field {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 2px 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}
.jw-exp-skills-dropdown {
    z-index: 10070 !important;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}
.jw-exp-skills-dropdown .select2-search--dropdown {
    padding: 8px;
}
.jw-exp-skills-dropdown .select2-search--dropdown .select2-search__field {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
}
.jw-exp-skills-dropdown .select2-results__options {
    max-height: 220px;
    overflow-y: auto;
}
.jw-exp-skills-dropdown .select2-results__option {
    padding: 8px 12px;
    font-size: 14px;
}
.jw-exp-skills-dropdown .select2-results__option--highlighted[aria-selected] {
    background: #2563eb;
}
.jw-profile-skills-select-wrap .select2-container,
.jw-exp-skills-select-wrap .select2-container {
    width: 100% !important;
}

/* Prevent layout shift when Bootstrap modal opens */
body.modal-open.jw-profile-modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

/* About Me section */
.jw-about-preview {
    cursor: pointer;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 16px 18px;
    background: #fafbfc;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jw-about-preview:hover,
.jw-about-preview:focus {
    border-color: #bfdbfe;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    outline: none;
}

.jw-about-preview-text {
    margin: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.65;
    /* white-space: pre-wrap; */
}

.jw-about-preview-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
}

.jw-about-empty .jw-btn-primary {
    margin-top: 8px;
}

.jw-about-modal-intro {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.jw-about-editor-wrap {
    margin-bottom: 8px;
    position: relative;
}

.jw-about-editor-wrap.is-loading {
    min-height: 280px;
}

.jw-about-editor-wrap.is-loading .jw-about-editor-source,
.jw-about-editor-wrap.is-loading textarea.form-control {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    border: 0;
}

.jw-about-editor-wrap.is-loading::after {
    content: '';
    display: block;
    min-height: 280px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafbfc;
}

.jw-about-editor-wrap.is-ready.is-loading::after {
    display: none;
}

.jw-about-editor-wrap.is-ready .jw-about-editor-source {
    display: none;
}

.jw-about-editor-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.jw-about-char-count {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.jw-about-char-count.is-over-limit {
    color: #dc2626;
}

.jw-about-char-hint {
    font-size: 12px;
    color: #9ca3af;
}

.jw-about-error {
    font-size: 13px;
    margin-top: 8px;
}

.jw-about-public-content {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

.jw-about-public-content p {
    margin: 0 0 12px;
}

.jw-about-public-content p:last-child {
    margin-bottom: 0;
}

/* Wide About Me modal (~80% width) */
.jw-profile-modal.jw-profile-modal--wide .modal-dialog {
    width: 80%;
    max-width: 860px;
    margin: auto;
}

.jw-profile-modal.jw-profile-modal--wide .modal-body {
    padding: 20px 24px 12px;
}

.jw-profile-modal.jw-profile-modal--wide .mce-tinymce {
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.jw-about-editor-wrap textarea.form-control {
    font-size: 16px;
}

.jw-profile-modal.jw-profile-modal--wide .mce-toolbar-grp {
    border-bottom: 1px solid #eef2f7 !important;
    background: #fafbfc !important;
}

@media (max-width: 767px) {
    .jw-profile-modal.in {
        padding: 12px 16px;
    }

    .jw-profile-modal .modal-dialog,
    .jw-profile-modal.jw-profile-modal--basic .modal-dialog,
    .jw-profile-modal.jw-profile-modal--work-location .modal-dialog,
    .jw-profile-modal.jw-profile-modal--wide .modal-dialog {
        width: calc(100% - 32px);
        max-width: none;
        margin: auto;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }

    .jw-profile-modal .modal-content {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }

    .jw-profile-modal .modal-body {
        max-height: min(60vh, calc(100dvh - 160px));
    }

    .jw-profile-modal .modal-header,
    .jw-profile-modal .modal-body,
    .jw-profile-modal .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.jw-profile-date-row,
.experience-date-row {
    margin-left: -5px;
    margin-right: -5px;
}

.jw-profile-date-row > [class*="col-"],
.experience-date-row > [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
}

.jw-profile-date-row .jw-select2-field,
.experience-date-row .jw-select2-field {
    width: 100%;
}

#add_education_modal .jw-profile-date-row .jw-select2-field .select2-container,
#add_project_modal .jw-profile-date-row .jw-select2-field .select2-container,
#add_experience_modal .jw-profile-date-row .jw-select2-field .select2-container,
#add_experience_modal .experience-date-row .jw-select2-field .select2-container,
#jw_work_auth_modal .jw-select2-field .select2-container,
.jw-profile-modal .jw-select2-field .select2-container {
    width: 100% !important;
    display: block !important;
}

/* Profile modals: dropdown height matches text inputs (override select2-bootstrap + native select) */
.jw-profile-modal .jw-select2-field > select.jw-select2.form-control {
    height: 48px;
    min-height: 48px;
    padding: 0 32px 0 12px;
    font-size: 14px;
    line-height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
}

.jw-profile-modal .jw-select2-field .select2-container--default .select2-selection--single,
#add_education_modal .select2-container--default .select2-selection--single,
#add_project_modal .select2-container--default .select2-selection--single,
#add_experience_modal .select2-container--default .select2-selection--single,
#jw_work_auth_modal .select2-container--default .select2-selection--single {
    height: 48px !important;
    min-height: 48px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.jw-profile-modal .jw-select2-field .select2-container--default .select2-selection--single .select2-selection__rendered,
#add_education_modal .select2-container--default .select2-selection--single .select2-selection__rendered,
#add_project_modal .select2-container--default .select2-selection--single .select2-selection__rendered,
#add_experience_modal .select2-container--default .select2-selection--single .select2-selection__rendered,
#jw_work_auth_modal .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
    height: 46px !important;
    padding: 0 32px 0 12px !important;
    font-size: 14px !important;
    color: #374151 !important;
}

.jw-profile-modal .jw-select2-field .select2-container--default .select2-selection--single .select2-selection__placeholder,
#add_education_modal .select2-container--default .select2-selection--single .select2-selection__placeholder,
#add_project_modal .select2-container--default .select2-selection--single .select2-selection__placeholder,
#add_experience_modal .select2-container--default .select2-selection--single .select2-selection__placeholder,
#jw_work_auth_modal .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af !important;
    line-height: 46px !important;
}

.jw-profile-modal .jw-select2-field .select2-container--default .select2-selection--single .select2-selection__arrow,
#add_education_modal .select2-container--default .select2-selection--single .select2-selection__arrow,
#add_project_modal .select2-container--default .select2-selection--single .select2-selection__arrow,
#add_experience_modal .select2-container--default .select2-selection--single .select2-selection__arrow,
#jw_work_auth_modal .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    top: 1px !important;
    right: 8px !important;
}

.jw-profile-modal .jw-select2-field .select2-container--focus .select2-selection--single,
.jw-profile-modal .jw-select2-field .select2-container--open .select2-selection--single,
#add_education_modal .select2-container--focus .select2-selection--single,
#add_education_modal .select2-container--open .select2-selection--single,
#add_project_modal .select2-container--focus .select2-selection--single,
#add_project_modal .select2-container--open .select2-selection--single,
#add_experience_modal .select2-container--focus .select2-selection--single,
#add_experience_modal .select2-container--open .select2-selection--single,
#jw_work_auth_modal .select2-container--focus .select2-selection--single,
#jw_work_auth_modal .select2-container--open .select2-selection--single {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

#education_date_end_wrap.is-hidden,
#project_date_end_wrap.is-hidden {
    display: none;
}

.jw-desc-counter.is-over-limit {
    color: #dc2626;
}

/* My Profile — mobile / narrow screens */
@media (max-width: 767px) {
    .jw-profile-page {
        padding: 12px 0 32px;
    }

    .jw-profile-page > .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .jw-profile-header {
        padding: 8px 0 16px;
    }

    .jw-profile-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .jw-profile-header h1 {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .jw-profile-header p {
        font-size: 14px;
        line-height: 1.5;
    }

    .jw-profile-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .jw-profile-view-public-btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
        box-sizing: border-box;
    }

    .jw-profile-available {
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
        padding: 10px 14px;
    }

    .jw-profile-available-label {
        white-space: normal;
        line-height: 1.3;
    }

    .jw-profile-card {
        padding: 16px;
    }

    .jw-profile-summary {
        padding-top: 40px;
    }

    .jw-profile-summary-edit {
        top: 12px;
        right: 12px;
        font-size: 12px;
        padding: 6px 10px;
        background: #eff6ff;
        border: 1px solid #dbeafe;
        border-radius: 8px;
        line-height: 1.2;
    }

    .jw-profile-name {
        font-size: 18px;
        padding: 0 8px;
        word-break: break-word;
    }

    .jw-profile-role,
    .jw-profile-company {
        font-size: 13px;
        padding: 0 4px;
    }

    .jw-profile-contact-row {
        align-items: flex-start;
    }

    .jw-profile-contact-value,
    .jw-profile-contact-add {
        font-size: 13px;
        word-break: break-word;
    }

    .jw-profile-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px 12px;
    }

    .jw-profile-meta-item label {
        font-size: 10px;
    }

    .jw-profile-meta-item span {
        font-size: 12px;
        word-break: break-word;
    }

    .jw-profile-completion {
        padding: 16px;
    }

    .jw-profile-completion-sub {
        max-width: none;
    }

    .jw-profile-section-header {
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px 10px;
        padding: 14px 16px;
    }

    .jw-profile-section-header--static {
        justify-content: flex-start;
    }

    .jw-profile-section-header h3,
    .jw-profile-section-header > .jw-profile-h3-with-icon {
        font-size: 15px;
        flex: 1 1 120px;
        min-width: 0;
        margin: 0;
    }

    .jw-profile-section-header .jw-profile-h3-text {
        word-break: break-word;
    }

    .jw-profile-section-header .jw-link-btn {
        flex: 0 0 auto;
        margin-left: auto;
        padding: 7px 12px;
        font-size: 12px;
        line-height: 1.25;
        max-width: 48%;
        white-space: normal;
        text-align: center;
        background: #eff6ff;
        border: 1px solid #dbeafe;
        border-radius: 8px;
        text-decoration: none;
    }

    .jw-profile-section-header .jw-link-btn:hover {
        text-decoration: none;
        background: #dbeafe;
    }

    .jw-exp-item-main,
    .jw-edu-item-main,
    .jw-proj-item-main {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .jw-proj-item-main {
        align-items: flex-start;
    }

    .jw-exp-item-content,
    .jw-edu-item-content,
    .jw-proj-item-content {
        flex: 1 1 calc(100% - 58px);
        min-width: 0;
    }

    .jw-exp-edit-btn,
    .jw-edu-edit-btn,
    .jw-proj-edit-btn {
        flex: 1 1 100%;
        width: 100%;
        margin: 8px 0 0 58px;
        padding: 10px 0 0;
        border-top: 1px solid #f3f4f6;
        text-align: left;
        align-self: stretch;
    }

    .jw-lang-card-main {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .jw-lang-card-content {
        flex: 1 1 calc(100% - 54px);
        min-width: 0;
    }

    .jw-lang-card-actions {
        flex: 1 1 100%;
        width: 100%;
        margin: 8px 0 0 54px;
        padding-top: 10px;
        border-top: 1px solid #f3f4f6;
        justify-content: flex-start;
        gap: 12px;
    }

    .jw-profile-empty {
        padding: 24px 12px;
    }

    .jw-profile-empty .jw-btn-primary {
        display: inline-flex;
        width: 100%;
        max-width: 300px;
        justify-content: center;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }

    .jw-detail-row-chevron {
        flex-shrink: 0;
        margin-left: 8px;
    }

    .jw-profile-section-body {
        padding: 14px 16px 16px;
    }

    .jw-detail-row {
        /* flex-wrap: wrap; */
        gap: 8px;
        padding: 12px 0;
    }

    .jw-detail-row:hover {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .jw-detail-row > div:first-child {
        flex: 1 1 calc(100% - 24px);
        min-width: 0;
    }

    .jw-detail-row-value {
        word-break: break-word;
    }

    .jw-profile-h3-with-icon {
        flex-wrap: wrap;
    }
}

@media (max-width: 479px) {
    .jw-profile-modal.in {
        padding: 10px 12px;
    }

    .jw-profile-modal .modal-dialog,
    .jw-profile-modal.jw-profile-modal--basic .modal-dialog,
    .jw-profile-modal.jw-profile-modal--work-location .modal-dialog,
    .jw-profile-modal.jw-profile-modal--wide .modal-dialog {
        width: calc(100% - 24px);
        margin: auto;
    }

    .jw-profile-page > .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .jw-profile-header h1 {
        font-size: 22px;
    }

    .jw-profile-meta-grid {
        grid-template-columns: 1fr;
    }

    .jw-profile-meta-item--full {
        grid-column: auto;
    }

    .jw-profile-section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .jw-profile-section-header h3,
    .jw-profile-section-header > .jw-profile-h3-with-icon {
        flex: 1 1 auto;
        max-width: none;
    }

    .jw-profile-section-header .jw-link-btn {
        width: 100%;
        max-width: none;
        text-align: center;
        margin-left: 0;
        white-space: nowrap;
    }

    .jw-exp-edit-btn,
    .jw-edu-edit-btn,
    .jw-proj-edit-btn {
        margin-left: 0;
        padding-left: 0;
    }

    .jw-lang-card-actions {
        margin-left: 0;
    }
}
