@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

body {
    font-family: var(--font-roboto);
    background: linear-gradient(135deg, rgba(241, 248, 254, 1) 0%, rgba(254, 254, 254, 1) 100%);
    background-attachment: fixed;
    background-size: cover;
    overflow-x: hidden;
}

*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary-black: #072543;
    --light-color: #fefefe;
    --sky-primary: #41adfb;
    --light-sidebarBg: #f2f8fd;
    --white: #fff;
    --gray-color: #8392a1;
    --light-gray: #ecf2f7;

    --border-color: #e2eaf2;
    --light-border-color: #dae3eb;

    --badge-bg-gray: #f0f5f9;

    --text-light-gray: #7c8895;

    --green: #2bba31;
    --light-green: #e2f3e3;

    --light-orange: #ffeedd;

    --font-roboto: "Roboto";

    --sidebar-width: 242px;
    --sidebar-collapsed-width: 70px;
}

a {
    margin: 0;
    text-decoration: none;
    -o-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

ul li {
    list-style-type: none;
}

figure {
    margin: 0;
}

img {
    margin: 0;
    vertical-align: middle;
}

a,
input,
button,
select {
    margin: 0;
    outline: none;
    box-shadow: none;
    cursor: pointer;
}

button {
    border: 0;
    background-color: transparent;
}

input:focus,
select:focus,
button:focus {
    outline: none;
    box-shadow: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* progress,
input[type=range],
input[type=radio],
input[type=checkbox] {
   accent-color: red;
} */

/* Global Styles */
.outlineBtn,
.primaryBtn {
    padding: 10px 20px;
    border-radius: 12px;
    font-family: var(--font-roboto);
    font-weight: 600;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0px;
    text-align: center;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    -o-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.primaryBtn {
    border: 1px solid transparent;
    background: linear-gradient(135deg, #41adfb 0%, #667eea 100%);
    color: var(--white);
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(65, 173, 251, 0.3);
}

.primaryBtn:hover,
.primaryBtn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 173, 251, 0.4);
}

.outlineBtn {
    color: var(--primary-black);
    border: 1px solid rgba(65, 173, 251, 0.3);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.outlineBtn:hover,
.outlineBtn:focus-visible {
    background: linear-gradient(135deg, rgba(65, 173, 251, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    border-color: var(--sky-primary);
    color: var(--sky-primary);
    transform: translateY(-2px);
}

/* Badge Style */
.badge {
    color: var(--primary-black);
    padding: 8px 14px;
    display: -webkit-inline-flex;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.badge.lightGreen {
    background: linear-gradient(135deg, rgba(43, 186, 49, 0.12) 0%, rgba(35, 161, 39, 0.12) 100%);
    border-color: rgba(43, 186, 49, 0.3);
    color: #2bba31;
}

.badge.lightGreen:hover {
    background: linear-gradient(135deg, rgba(43, 186, 49, 0.2) 0%, rgba(35, 161, 39, 0.2) 100%);
}

.badge.lightGray {
    background: rgba(236, 242, 247, 0.8);
    backdrop-filter: blur(10px);
    border-color: rgba(226, 234, 242, 0.5);
}

.badge.lightGray:hover {
    background: rgba(65, 173, 251, 0.1);
    border-color: rgba(65, 173, 251, 0.3);
}

.flex {
    display: -webkit-flex;
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-5px {
    gap: 5px;
}
.gap-10px {
    gap: 10px;
}

.flex-grow-1 {
    flex-grow: 1;
}

.mt-1 {
    margin-top: 5px;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 15px;
}
.mt-4 {
    margin-top: 20px;
}

.mb-1 {
    margin-bottom: 5px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 15px;
}
.mb-4 {
    margin-bottom: 20px;
}

.mx-auto {
    margin-inline: auto;
}

.w-100 {
    width: 100%;
}
.h-100 {
    height: 100%;
}

.object-cover {
    object-fit: cover;
}
.object-contain {
    object-fit: contain;
}

p {
    font-family: var(--font-roboto);
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #464e5f;
}

/*======= Modal Code =======*/
.modal {
    z-index: 10001;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal .modalContent {
    position: relative;
    width: 95%;
    max-width: 680px;
    background: linear-gradient(135deg, rgba(249, 252, 255, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal .modal-header {
    position: sticky;
    top: 0;
    background: linear-gradient(90deg, rgba(249, 252, 255, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 234, 242, 0.5);
    padding: 24px;
}

.modal .modal-body {
    padding: 24px;
}

.modal .modal-footer {
    padding: 24px;
    border-top: 1px solid rgba(226, 234, 242, 0.5);
    background: linear-gradient(90deg, rgba(249, 252, 255, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
}

.overflow-hidden {
    overflow: hidden;
}

.hidden {
    display: none;
}

/***** Page Wrapper *****/
.page-wrapper {
    display: flex;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

/*===================
    Sidebar 
====================*/
.sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    height: 100svh;
    overflow-y: auto;
    background-color: transparent;
    position: fixed;
    left: 0;
    top: 0;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    transition: all 0.3s linear;
    /* Hidden scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* Flex layout to push logo to bottom */
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    z-index: 10000;
}

.sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.sidebar .logoBox {
    padding: 15px 22px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sidebar .logoBox .sideBarBtn {
    max-width: 32px;
    min-width: 32px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(217, 217, 217, 20%);
    border: 0;
}

.sidebar .logoBox .closeBtn {
    display: none;
}

.sidebar ul {
    flex-grow: 1;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar ul .sidebarItem .sidebarLink {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-roboto);
    font-weight: 500;
    font-size: 14px;
    line-height: normal;
    letter-spacing: 0px;
    color: var(--primary-black);
    position: relative;
}

.sidebar ul .sidebarItem .sidebarLink:hover,
.sidebar ul .sidebarItem .sidebarLink:focus-visible {
    background-color: rgba(255, 255, 255, 0.5);
}

.sidebar ul .sidebarItem .sidebarLink::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0px;
    background-color: var(--sky-primary);
}

.sidebar ul .sidebarItem .sidebarLink span {
    opacity: 50%;
}

.sidebar ul .sidebarItem .sidebarLink .icon {
    margin-top: -1px;
    filter: grayscale(1);
}

.sidebar ul .sidebarItem .sidebarLink.active {
    background-color: var(--white);
}

.sidebar ul .sidebarItem .sidebarLink.active:after {
    width: 2px;
}
.sidebar ul .sidebarItem .sidebarLink.active span {
    opacity: 100%;
}
.sidebar ul .sidebarItem .sidebarLink.active .icon {
    filter: grayscale(0);
}

/* Note: Recent Searches styles are defined inline in base.html */

.sidebar .bottomPart {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    margin-top: auto; /* Push to bottom of sidebar */
}

.sidebar .bottomPart span {
    font-family: var(--font-roboto);
    color: #7f8478;
    font-weight: 400;
    font-size: 10px;
    line-height: 100%;
    letter-spacing: 6%;
    text-align: center;
    text-transform: uppercase;
}

.sidebar .bottomPart img {
    width: 140px;
    height: auto;
}

/*==================
    Sidebar Collapsed State
==================*/
.sidebar.collapsed {
    min-width: var(--sidebar-collapsed-width);
    max-width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .logoBox {
    padding: 15px 12px 20px;
    justify-content: center;
}

.sidebar.collapsed .logoBox a {
    display: none;
}

.sidebar.collapsed .logoBox .sideBarBtn {
    margin: 0;
}

.sidebar.collapsed .logoBox .sideBarBtn img {
    transform: rotate(180deg);
}

.sidebar.collapsed ul .sidebarItem .sidebarLink {
    padding: 12px;
    justify-content: center;
}

.sidebar.collapsed ul .sidebarItem .sidebarLink span {
    display: none;
}

.sidebar.collapsed ul .sidebarItem .sidebarLink .icon,
.sidebar.collapsed ul .sidebarItem .sidebarLink svg.icon {
    margin: 0;
}

.sidebar.collapsed .bottomPart {
    padding: 10px;
}

.sidebar.collapsed .bottomPart span {
    display: none;
}

.sidebar.collapsed .bottomPart img {
    width: 40px;
}

/* Tooltip for collapsed sidebar */
.sidebar.collapsed ul .sidebarItem {
    position: relative;
}

.sidebar.collapsed ul .sidebarItem .sidebarLink::before {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-black);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar.collapsed ul .sidebarItem .sidebarLink::after {
    content: "";
    position: absolute;
    left: calc(100% + 4px);
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--primary-black);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.sidebar.collapsed ul .sidebarItem .sidebarLink:hover::before,
.sidebar.collapsed ul .sidebarItem .sidebarLink:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Content wrapper adjustment for collapsed sidebar */
.content-wrapper.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/*==================
    Content Wrapper
==================*/
.content-wrapper {
    margin-left: var(--sidebar-width);
    width: 100%;
    background: transparent;
    height: 100vh;
    overflow-y: auto;
    -webkit-transition: margin-left 0.3s linear;
    -moz-transition: margin-left 0.3s linear;
    -o-transition: margin-left 0.3s linear;
    transition: margin-left 0.3s linear;
}

/*===================
    Header 
===================*/
header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 17px 0;
    background: transparent;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    transition: all 0.3s linear;
}

header.bgWithBoxshadow {
    background-color: var(--light-color);
    box-shadow: 0px 0.5px var(--border-color);
}

header .innerContent {
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 20px;
}

header .title {
    color: var(--primary-black);
    font-family: var(--font-roboto);
    font-weight: 600;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0px;
}

header .notificationBtn {
    max-width: 32px;
    min-width: 32px;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #f0f6fc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-right: 5px;
}

header .notificationBtn .redDot {
    position: absolute;
    top: 2px;
    right: 1px;
    width: 7px;
    height: 7px;
    background-color: #ff2a2a;
    border-radius: 50%;
}

.header_userProfile {
    max-width: 32px;
    min-width: 32px;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #f0f6fc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header_userProfile img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.header_userProfile .down_icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
}

.menuSidebarBtn {
    height: 25px;
    background-color: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    margin-left: 10px;
    display: none;
}

/*========= Main Content ========*/
.main-content {
    padding: 0;
}

/*========= Page Header (shared across pages) ========*/
.page-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.page-header-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

.page-header-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/*========= Sticky Header Override (sub-pages) ========*/
.content-wrapper header.page-sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content-wrapper header.page-sticky-header .innerContent {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/******** Search Expert Main Page ********/
.search-expert-mainContent {
    min-height: calc(100vh - 58px);
    display: grid;
    place-items: center;
    font-family: var(--font-roboto);
    width: 100%;
}

.search-expert-mainContent .title_search {
    color: var(--primary-black);
    font-weight: 600;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0px;
    text-align: center;
    margin-bottom: 20px;
}

.search-expert-mainContent form {
    max-width: 776px;
    width: 100%;
    margin: auto;
}

.search-expert-mainContent .search_area {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--white);
    display: -webkit-flex;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-expert-mainContent .search_area .attach_btn {
    height: fit-content;
}

.search-expert-mainContent .search_area textarea {
    border: 0;
    flex: 1;
    font-family: var(--font-roboto);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--primary-black);
    resize: none;
}

.search-expert-mainContent .search_area textarea::placeholder {
    opacity: 50%;
}

.search-expert-mainContent .search_area textarea:focus-visible {
    outline: 0;
}

.search-expert-mainContent .search_area textarea::-webkit-scrollbar {
    width: 5px !important;
    height: 5px !important;
}
.search-expert-mainContent .search_area textarea::-webkit-scrollbar-track {
    background-color: var(--border-color);
}
.search-expert-mainContent .search_area textarea::-webkit-scrollbar-thumb {
    background-color: var(--primary-black);
    border-radius: 50px;
}

.search-expert-mainContent .search_area .cta_btn {
    max-width: 32px;
    min-width: 32px;
    height: 32px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--sky-primary);
    display: grid;
    place-items: center;
}

.search-expert-mainContent form .upload_link {
    color: var(--primary-black);
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    text-decoration: underline;
    display: block;
    margin-top: 5px;
}

/*********** Search RESULT PAGE ***********/
.search-result-content {
    display: flex;
    gap: 24px;
    padding: 24px;
    /* flex-wrap: wrap; */
}

.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card .card-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(226, 234, 242, 0.5);
    background: linear-gradient(90deg, rgba(249, 252, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
}

.card .card-title {
    color: var(--primary-black);
    font-family: var(--font-roboto);
    font-weight: 700;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0px;
    background: linear-gradient(135deg, #072543 0%, #41adfb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card .card-body {
    padding: 20px 24px;
}

.search-result-content .card.yourFilter {
    max-width: 380px;
    width: 100%;
    height: fit-content;
    position: sticky;
    top: 88px;
}

.search-result-content .card.yourFilter .card-body {
    padding: 24px;
}

.search-result-content .yourFilter_badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-result-content .yourFilter_badges .with {
    color: var(--text-light-gray);
    font-size: 13px;
    font-weight: 500;
}

.search-result-content .card hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid rgba(226, 234, 242, 0.5);
}

.search-result-content .card.yourFilter .searchPrompt {
    color: var(--primary-black);
    font-weight: 700;
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 8px;
}

/* =========================================================
   Post-search filters — scoped to sidebar to avoid conflicts
   ========================================================= */
#postSearchFilters .psf-group {
    margin-bottom: 10px;
}

#postSearchFilters .psf-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #5a7a94;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 5px;
}

#postSearchFilters .psf-control {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    font-family: inherit;
    color: var(--primary-black);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

#postSearchFilters select.psf-control {
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%238392a1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    cursor: pointer;
}

#postSearchFilters input.psf-control {
    -webkit-appearance: auto;
    appearance: auto;
}

#postSearchFilters .psf-control:focus {
    border-color: var(--sky-primary);
    box-shadow: 0 0 0 3px rgba(65, 173, 251, 0.12);
}

#postSearchFilters .psf-clear-btn {
    width: 100%;
    margin-top: 6px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #5a7a94;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: none;
}

#postSearchFilters .psf-clear-btn:hover {
    border-color: var(--sky-primary);
    color: var(--sky-primary);
    background: rgba(65, 173, 251, 0.05);
}
/* ========================================================= */

.search-result-content .matchesProfile_details {
    background: linear-gradient(135deg, rgba(249, 252, 255, 0.6) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.search-result-content .matchesProfile_details:hover {
    box-shadow: 0 8px 24px rgba(65, 173, 251, 0.15);
    transform: translateY(-4px);
    border-color: rgba(65, 173, 251, 0.3);
}

.search-result-content .matchesProfile_details:last-child {
    margin-bottom: 0;
}

.search-result-content .matchesProfile_details .userProfile {
    max-width: 56px;
    min-width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(65, 173, 251, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-result-content .matchesProfile_details .userProfile:hover {
    border-color: rgba(65, 173, 251, 0.5);
    transform: scale(1.05);
}

.search-result-content .matchesProfile_details .userProfile img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.search-result-content .matchesProfile_details .saveBtn {
    border: 1px solid rgba(65, 173, 251, 0.2);
    max-width: 40px;
    min-width: 40px;
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-result-content .matchesProfile_details .saveBtn:hover {
    background: rgba(65, 173, 251, 0.1);
    border-color: var(--sky-primary);
    transform: scale(1.1);
}

.search-result-content .matchesProfile_details .saveBtn img {
    width: 18px;
    height: 18px;
}

.search-result-content .matchesProfile_details .badges {
    display: flex;
    gap: 4px;
    row-gap: 6px;
    flex-wrap: wrap;
}

.search-result-content .matchesProfile_details .match {
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    color: var(--primary-black);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.search-result-content .matchesProfile_details .progress-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    width: 48px;
}

.search-result-content .matchesProfile_details .progress-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #2bba31 0%,
        #23a127 calc(var(--progress, 90) * 1%),
        rgba(241, 241, 241, 0.3) calc(var(--progress, 90) * 1%),
        rgba(241, 241, 241, 0.3) 100%
    );
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(43, 186, 49, 0.2);
    transition: all 0.3s ease;
}

.search-result-content .matchesProfile_details .progress-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(43, 186, 49, 0.3);
}

.search-result-content .matchesProfile_details .progress-circle::before {
    content: "";
    width: 36px;
    height: 36px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
}

.search-result-content .matchesProfile_details .progress-text {
    position: relative;
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    margin-top: 2px;
}

.search-result-content .matchesProfile_details .employeeHistory h6 {
    font-weight: 500;
    font-size: 10px;
    line-height: 24px;
    color: var(--gray-color);
}

.search-result-content .matchesProfile_details .employeeHistory ul {
    padding-left: 20px;
}
.search-result-content .matchesProfile_details .employeeHistory ul li {
    list-style-type: disc;
    font-family: var(--font-roboto);
    font-weight: 500;
    font-size: 10px;
    line-height: 16px;
    color: var(--primary-black);
}

.search-result-content .matchesProfile_details .employeeHistory ul li::marker {
    font-size: 10px;
}

.search-result-content .matchesProfile_details .expRate_box {
    display: flex;
    gap: 24px;
    row-gap: 16px;
    flex-wrap: wrap;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.search-result-content .matchesProfile_details .expRate_box .vr {
    width: 1px;
    min-height: 80%;
    background: linear-gradient(to bottom, transparent, rgba(218, 227, 236, 0.5), transparent);
}

.search-result-content .matchesProfile_details .expRate_box .smallTitle {
    font-weight: 600;
    font-size: 11px;
    line-height: 18px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-result-content .matchesProfile_details .expRate_box .heading {
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    color: var(--primary-black);
}

.search-result-content .matchesProfile_details .expRate_box .heading span {
    font-size: 13px;
    font-weight: 400;
}

.matchesProfile_details .progress_line {
    background-color: transparent;
    max-width: 300px;
    min-width: 100px;
    width: 100%;
    height: 6px;
}

.matchesProfile_details progress.progress_line::-webkit-progress-bar {
    background: rgba(240, 241, 241, 0.6);
    border-radius: 10px;
}
.matchesProfile_details progress.progress_line::-webkit-progress-value {
    border-radius: 10px;
    background: linear-gradient(90deg, #2bba31 0%, #23a127 100%);
    box-shadow: 0 2px 8px rgba(43, 186, 49, 0.3);
}

.matchesProfile_details .progress_line_label {
    font-weight: 700;
    color: var(--gray-color);
    font-size: 13px;
    text-wrap: nowrap;
}
.matchesProfile_details .progress_line_label span {
    color: var(--green);
    font-weight: 700;
}

/*===== AI Insights Section =====*/
.ai-insights-container {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(65, 173, 251, 0.08) 0%, rgba(102, 126, 234, 0.08) 100%);
    border: 2px solid rgba(65, 173, 251, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.ai-insights-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #41adfb 0%, #667eea 100%);
}

.ai-insights-header {
    margin-bottom: 20px;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(65, 173, 251, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-black);
    box-shadow: 0 4px 12px rgba(65, 173, 251, 0.2);
}

.ai-badge svg {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
}

.ai-skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-skill-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.ai-skill-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(65, 173, 251, 0.15);
}

.skill-score-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-score-row .progress_line {
    flex-grow: 1;
}

.score-value {
    font-weight: 700;
    font-size: 16px;
    color: #2bba31;
    min-width: 70px;
    text-align: right;
}

.score-max {
    color: #9ca3af;
    font-weight: 500;
    font-size: 14px;
}

.ai-reason-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(65, 173, 251, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-left: 3px solid rgba(65, 173, 251, 0.5);
    border-radius: 8px;
}

.ai-icon {
    flex-shrink: 0;
    margin-top: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.ai-reason-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    font-weight: 500;
}


/*===== View Profile Modal =====*/
.viewProfileModalContent .modal-header .close-modal,
.viewProfileModalContent .modal-header .saveBtn {
    border: 1px solid rgba(65, 173, 251, 0.2);
    max-width: 40px;
    min-width: 40px;
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.viewProfileModalContent .modal-header .close-modal:hover,
.viewProfileModalContent .modal-header .saveBtn:hover {
    background: rgba(65, 173, 251, 0.1);
    border-color: var(--sky-primary);
    transform: scale(1.1);
}

.viewProfileModalContent .username {
    color: var(--primary-black);
    font-size: 18px;
    font-weight: 700;
}

.viewProfileModalContent .progress-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #2bba31 0%,
        #23a127 calc(var(--progress, 90) * 1%),
        rgba(241, 241, 241, 0.3) calc(var(--progress, 90) * 1%),
        rgba(241, 241, 241, 0.3) 100%
    );
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(43, 186, 49, 0.2);
}

.viewProfileModalContent .progress-circle::before {
    content: "";
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
}

.viewProfileModalContent .progress-text {
    position: relative;
    font-size: 10px;
    font-weight: 700;
    color: var(--green);
    margin-top: 1px;
}



.viewProfileModalContent .progress_line {
    background-color: transparent;
    max-width: 300px;
    min-width: 100px;
    width: 100%;
    height: 6px;
}

.viewProfileModalContent progress.progress_line::-webkit-progress-bar {
    background: rgba(240, 241, 241, 0.6);
    border-radius: 10px;
}
.viewProfileModalContent progress.progress_line::-webkit-progress-value {
    border-radius: 10px;
    background: linear-gradient(90deg, #2bba31 0%, #23a127 100%);
    box-shadow: 0 2px 8px rgba(43, 186, 49, 0.3);
}

.viewProfileModalContent .progress_line_label {
    font-weight: 700;
    color: var(--gray-color);
    font-size: 13px;
    text-wrap: nowrap;
}
.viewProfileModalContent .progress_line_label span {
    color: var(--green);
    font-weight: 700;
}


.viewProfileModalContent .expRate_box {
    display: flex;
    gap: 24px;
    row-gap: 16px;
    flex-wrap: wrap;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.viewProfileModalContent .expRate_box .vr {
    width: 1px;
    min-height: 80%;
    background: linear-gradient(to bottom, transparent, rgba(218, 227, 236, 0.5), transparent);
}

.viewProfileModalContent .expRate_box .smallTitle {
    font-weight: 600;
    font-size: 11px;
    line-height: 18px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.viewProfileModalContent .expRate_box .heading {
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    color: var(--primary-black);
}

.viewProfileModalContent .expRate_box .heading span {
    font-size: 13px;
    font-weight: 400;
}


.viewProfileModalContent hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid rgba(226, 234, 242, 0.5);
}

/*===== User Menu Dropdown =====*/
.user-dropdown {
    display: none;
    position: absolute;
    top: 55px;
    right: 60px;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(65, 173, 251, 0.15);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(65, 173, 251, 0.08);
    z-index: 10000;
    overflow: hidden;
    animation: dropdownSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.user-dropdown.show {
    display: block;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* User dropdown menu info - scoped to dropdown only */
.user-dropdown .user-info {
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(65, 173, 251, 0.06) 0%, rgba(102, 126, 234, 0.06) 100%);
    border-bottom: 1px solid rgba(65, 173, 251, 0.1);
}

.user-dropdown .user-info::before {
    content: 'Signed in as';
    display: block;
    font-family: var(--font-roboto);
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.user-name {
    font-family: var(--font-roboto);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-black);
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    font-family: var(--font-roboto);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-black);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(65, 173, 251, 0.08);
    color: var(--sky-primary);
}

.logout-form {
    margin: 0;
    padding: 0;
}

.dropdown-item.logout-item {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #6b7280;
}

.dropdown-item.logout-item:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.08) 100%);
    color: #ef4444;
}

.dropdown-item.logout-item:hover svg {
    transform: translateX(3px);
}

.dropdown-item svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/*==========================================
    IMPROVED EXPERT SEARCH RESULTS UI
==========================================*/

/* ===== FILTER PANEL IMPROVEMENTS ===== */
.filter-panel {
    background: rgba(255, 255, 255, 0.95);
}

.filter-panel-header .card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
}

.filter-panel-header .card-title svg {
    color: var(--sky-primary);
    opacity: 0.8;
}

.filter-panel-body {
    padding: 20px 24px;
}

.filter-section {
    margin-bottom: 0;
}

.filter-section-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.filter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-badge {
    background: linear-gradient(135deg, rgba(65, 173, 251, 0.08) 0%, rgba(102, 126, 234, 0.08) 100%);
    border: 1px solid rgba(65, 173, 251, 0.25);
    color: var(--primary-black);
    font-weight: 600;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-badge svg {
    opacity: 0.7;
}

.filter-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226, 234, 242, 0.8), transparent);
    margin: 20px 0;
}

.search-prompt-text {
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
    background: rgba(249, 250, 251, 0.8);
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 3px solid var(--sky-primary);
}

.ai-model-indicator {
    background: linear-gradient(135deg, rgba(65, 173, 251, 0.06) 0%, rgba(102, 126, 234, 0.06) 100%);
    border: 1px solid rgba(65, 173, 251, 0.15);
    border-radius: 10px;
    padding: 12px 14px;
}

.ai-model-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.ai-model-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-black);
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== RESULTS HEADER IMPROVEMENTS ===== */
.results-header .card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-header .card-title svg {
    color: var(--sky-primary);
}

.results-count {
    font-weight: 500;
    color: #6b7280;
}

.results-body {
    padding: 24px;
}

/* ===== EXPERT CARD IMPROVEMENTS ===== */
.expert-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin-bottom: 24px;
}

.expert-card:last-child {
    margin-bottom: 0;
}

/* Expert Card - Top Section */
.expert-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(226, 234, 242, 0.4);
}

.expert-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.expert-name-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.expert-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-black);
    line-height: 1.3;
    background: linear-gradient(135deg, #072543 0%, #1a4a6e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.expert-role {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.4;
}

.expert-actions-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.last-contact {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

/* Match Score Badge */
.match-score-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid;
}

.match-score-badge.score-high {
    border-color: rgba(43, 186, 49, 0.4);
    background: linear-gradient(135deg, rgba(43, 186, 49, 0.06) 0%, rgba(35, 161, 39, 0.06) 100%);
}

.match-score-badge.score-medium {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(217, 119, 6, 0.06) 100%);
}

.match-score-badge.score-low {
    border-color: rgba(156, 163, 175, 0.4);
    background: rgba(249, 250, 251, 0.8);
}

.match-score-badge .match-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.match-score-badge .match-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    position: relative;
}

.match-score-badge.score-high .match-circle {
    background: conic-gradient(
        from 0deg,
        #2bba31 0%,
        #23a127 calc(var(--progress, 90) * 1%),
        rgba(241, 241, 241, 0.3) calc(var(--progress, 90) * 1%),
        rgba(241, 241, 241, 0.3) 100%
    );
    box-shadow: 0 2px 8px rgba(43, 186, 49, 0.25);
}

.match-score-badge.score-medium .match-circle {
    background: conic-gradient(
        from 0deg,
        #f59e0b 0%,
        #d97706 calc(var(--progress, 70) * 1%),
        rgba(241, 241, 241, 0.3) calc(var(--progress, 70) * 1%),
        rgba(241, 241, 241, 0.3) 100%
    );
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.match-score-badge.score-low .match-circle {
    background: conic-gradient(
        from 0deg,
        #9ca3af 0%,
        #6b7280 calc(var(--progress, 50) * 1%),
        rgba(241, 241, 241, 0.3) calc(var(--progress, 50) * 1%),
        rgba(241, 241, 241, 0.3) 100%
    );
    box-shadow: 0 2px 8px rgba(156, 163, 175, 0.2);
}

.match-score-badge .match-circle::before {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
}

.match-score-badge .match-value {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 700;
}

.match-score-badge.score-high .match-value {
    color: #2bba31;
}

.match-score-badge.score-medium .match-value {
    color: #d97706;
}

.match-score-badge.score-low .match-value {
    color: #6b7280;
}

/* Expert Card - Middle Section */
.expert-card-middle {
    padding: 20px 24px;
    background: rgba(249, 250, 251, 0.5);
    border-bottom: 1px solid rgba(226, 234, 242, 0.4);
}

.expert-card-middle .expRate_box {
    margin-bottom: 16px;
}

.expert-card-middle .info-block {
    min-width: 100px;
}

.skills-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.skills-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skill-badge {
    font-size: 12px;
    padding: 6px 12px;
}

/* Expert Card - Bottom Section */
.expert-card-bottom {
    padding: 24px;
}

.expert-description {
    margin-bottom: 20px;
}

.bio-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
    color: var(--primary-black);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.experience-text {
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== AI INSIGHTS IMPROVEMENTS ===== */
.ai-insights-container {
    margin-top: 0;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(65, 173, 251, 0.04) 0%, rgba(102, 126, 234, 0.04) 100%);
    border: 1px solid rgba(65, 173, 251, 0.2);
    border-radius: 14px;
}

.ai-insights-container::before {
    display: none;
}

.ai-insights-header {
    margin-bottom: 16px;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(65, 173, 251, 0.25);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-black);
    box-shadow: 0 2px 8px rgba(65, 173, 251, 0.12);
}

.ai-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.ai-skill-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.ai-skill-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ai-skill-card .skill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ai-skill-card .skill-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-black);
}

.ai-skill-card .score-badge {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.ai-skill-card .score-num {
    font-size: 16px;
    font-weight: 700;
}

.ai-skill-card.score-high .score-num {
    color: #2bba31;
}

.ai-skill-card.score-medium .score-num {
    color: #d97706;
}

.ai-skill-card.score-low .score-num {
    color: #6b7280;
}

.ai-skill-card .score-max {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
}

.ai-skill-card .skill-progress-bar {
    height: 6px;
    background: rgba(240, 241, 241, 0.8);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.ai-skill-card .progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.ai-skill-card.score-high .progress-fill {
    background: linear-gradient(90deg, #2bba31 0%, #23a127 100%);
    box-shadow: 0 2px 6px rgba(43, 186, 49, 0.3);
}

.ai-skill-card.score-medium .progress-fill {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.ai-skill-card.score-low .progress-fill {
    background: linear-gradient(90deg, #9ca3af 0%, #6b7280 100%);
    box-shadow: 0 2px 6px rgba(156, 163, 175, 0.2);
}

.ai-skill-card .skill-reason {
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(226, 234, 242, 0.5);
}

/* ===== ACTION BAR IMPROVEMENTS ===== */
.expert-action-bar,
.modal-action-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 234, 242, 0.5);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.action-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.action-btn-outline {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(65, 173, 251, 0.3);
    color: var(--primary-black);
}

.action-btn-outline:hover {
    background: linear-gradient(135deg, rgba(65, 173, 251, 0.08) 0%, rgba(102, 126, 234, 0.08) 100%);
    border-color: var(--sky-primary);
    color: var(--sky-primary);
    transform: translateY(-2px);
}

.action-btn-outline svg {
    stroke: currentColor;
}

.action-btn-primary {
    background: linear-gradient(135deg, #41adfb 0%, #667eea 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(65, 173, 251, 0.25);
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 173, 251, 0.35);
}

.action-btn-primary svg {
    stroke: white;
}

/* ===== MODAL IMPROVEMENTS ===== */
.viewProfileModalContent {
    max-width: 720px;
}

.viewProfileModalContent .modal-header {
    padding: 16px 24px;
    border-bottom: none;
    background: transparent;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.viewProfileModalContent .modal-body {
    padding: 0;
    max-height: calc(90vh - 160px);
    overflow-y: auto;
}

/* Modal Sections */
.modal-section {
    padding: 24px;
    border-bottom: 1px solid rgba(226, 234, 242, 0.5);
}

.modal-section:last-child {
    border-bottom: none;
}

.modal-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
}

.modal-section-header {
    margin-bottom: 16px;
}

.modal-section-content {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    white-space: pre-wrap;
}

/* Profile Summary Section */
.profile-summary-section {
    background: linear-gradient(135deg, rgba(249, 252, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.modal-profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.modal-profile-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(65, 173, 251, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-expert-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-black);
    line-height: 1.2;
    margin: 0;
}

.modal-expert-role {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
}

.modal-last-contact {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.modal-match-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    border-radius: 14px;
    border: 2px solid;
}

.modal-match-badge.score-high {
    border-color: rgba(43, 186, 49, 0.3);
    background: linear-gradient(135deg, rgba(43, 186, 49, 0.06) 0%, rgba(35, 161, 39, 0.06) 100%);
}

.modal-match-badge.score-medium {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(217, 119, 6, 0.06) 100%);
}

.modal-match-badge.score-low {
    border-color: rgba(156, 163, 175, 0.3);
    background: rgba(249, 250, 251, 0.8);
}

.modal-match-badge .match-label {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.modal-match-badge .match-percent {
    font-size: 24px;
    font-weight: 700;
}

.modal-match-badge.score-high .match-percent {
    color: #2bba31;
}

.modal-match-badge.score-medium .match-percent {
    color: #d97706;
}

.modal-match-badge.score-low .match-percent {
    color: #6b7280;
}

/* Modal Info Grid */
.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-info-label {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-black);
    line-height: 1.4;
}

/* Modal Skills */
.modal-skills-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-skills-label {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-skills-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Biography Section */
.biography-section {
    background: rgba(255, 255, 255, 0.5);
}

.modal-bio-text {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--primary-black);
    margin-bottom: 12px;
}

.modal-bio-secondary {
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

/* AI Analysis Section */
.ai-analysis-section {
    background: linear-gradient(135deg, rgba(65, 173, 251, 0.03) 0%, rgba(102, 126, 234, 0.03) 100%);
}

.modal-ai-skills {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-skill-item {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.modal-skill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.modal-skill-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-black);
}

.modal-skill-score {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.modal-skill-score .score-value {
    font-size: 15px;
    font-weight: 700;
}

.modal-skill-item.score-high .score-value {
    color: #2bba31;
}

.modal-skill-item.score-medium .score-value {
    color: #d97706;
}

.modal-skill-item.score-low .score-value {
    color: #6b7280;
}

.modal-skill-score .score-max {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
}

.modal-skill-progress {
    margin-bottom: 8px;
}

.modal-skill-progress .progress-track {
    height: 5px;
    background: rgba(240, 241, 241, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

.modal-skill-progress .progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.modal-skill-item.score-high .progress-fill {
    background: linear-gradient(90deg, #2bba31 0%, #23a127 100%);
}

.modal-skill-item.score-medium .progress-fill {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.modal-skill-item.score-low .progress-fill {
    background: linear-gradient(90deg, #9ca3af 0%, #6b7280 100%);
}

.modal-skill-reason {
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(226, 234, 242, 0.5);
}

/* Contact Details Section */
.contact-details-section {
    background: rgba(249, 250, 251, 0.5);
}

/* Modal Footer */
.viewProfileModalContent .modal-footer {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.9);
}

.modal-action-bar {
    padding-top: 0;
    border-top: none;
    justify-content: flex-start;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .expert-card-top {
        padding: 20px;
    }
    
    .expert-card-middle {
        padding: 16px 20px;
    }
    
    .expert-card-bottom {
        padding: 20px;
    }
    
    .expert-name {
        font-size: 18px;
    }
    
    .ai-skills-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-match-badge {
        align-self: flex-start;
    }
    
    .modal-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .action-btn {
        flex: 1;
        min-width: 120px;
    }
}

