﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA6MkMzMjcuMDczIDkyLjE1MiAyMzMuMTIzIDk1LjU1MjMgMjM2LjY0MDMgOTQuNjc4MiAyMzUuMDYxIDIyMC42ODkgMjM2LjA2MjMgOTQuMDM1IDIzNi4wMjkgMjM2LjAzMSA5NC4wODg2IDIzNi4yMjYgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNjk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* Home page styles */
.welcome-banner {
    /*background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
    border: 2px solid #dee2e6;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    width: 100%;
}

.welcome-header {
    margin-bottom: 1.5rem;
}

.welcome-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #332325;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.push-circles {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: bounceIn 0.6s ease-out;
    transition: transform 0.3s ease;
}

    .circle:hover {
        transform: scale(1.1);
    }

    .circle.orange {
        background: linear-gradient(135deg, #FF3131 0%, #ff7b25 100%);
        animation-delay: 0.1s;
    }

    .circle.blue {
        background: linear-gradient(135deg, #4834d4 0%, #686de0 100%);
        animation-delay: 0.2s;
    }

    .circle.green {
        background: linear-gradient(135deg, #6ba071 0%, #5e9c67 100%);
        animation-delay: 0.3s;
    }

    .circle.red {
        background: linear-gradient(135deg, #8c1538 0%, #b2293f 100%);
        animation-delay: 0.4s;
    }

.banner-message {
    margin: 1.5rem 0;
}

.message-text {
    font-size: 1.1rem;
    color: #6a5559;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 20px;
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #cfa640 0%, #f5d67b 100%);
    border-radius: 20px;
    width: 75%;
    animation: progressFill 1.5s ease-out 0.5s both;
    position: relative;
}

    .progress-fill::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: shimmer 2s infinite;
    }

.banner-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .action-btn.primary {
        background: linear-gradient(135deg, #8c1538 0%, #b2293f 100%);
        color: white;
        box-shadow: 0 4px 15px rgba(140, 21, 56, 0.3);
    }

        .action-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(140, 21, 56, 0.4);
        }

    .action-btn.secondary {
        background: linear-gradient(135deg, #6ba071 0%, #5e9c67 100%);
        color: white;
        box-shadow: 0 4px 15px rgba(107, 160, 113, 0.3);
    }

        .action-btn.secondary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(107, 160, 113, 0.4);
        }



.banner-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-heart,
.floating-ring,
.floating-star {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

.floating-heart {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-ring {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.floating-star {
    top: 30%;
    right: 25%;
    animation-delay: 2s;
}

/* Dashboard Section Styles */
.dashboard-section {
    margin: 3rem 0;
    padding: 0 1rem;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-column {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .dashboard-column:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

.column-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #332325;
    margin: 0 0 1.5rem 0;
    padding: 1.5rem 1.5rem 0;
    text-align: center;
}

/* Left Column - Activity Card */
.activity-card {
    padding: 1.5rem;
    height: 100%;
}

.activity-header {
    margin-bottom: 1.5rem;
}

.activity-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.25rem;
}

.tab {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .tab.active {
        background: linear-gradient(135deg, #6ba071 0%, #5e9c67 100%);
        color: white;
        box-shadow: 0 2px 8px rgba(107, 160, 113, 0.3);
    }

.activity-section {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #332325;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.activity-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.activity-text {
    flex: 1;
    margin-left: 0.75rem;
    font-size: 0.9rem;
    color: #6a5559;
}

.activity-count {
    background: linear-gradient(135deg, #8c1538 0%, #b2293f 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Special styling for Sent tab counts to match your screenshot */
.sent-count {
    background: linear-gradient(135deg, #8c1538 0%, #b2293f 100%);
}

.read-count {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
}

.not-read-count {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.interest-sent-count {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.accepted-count {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.ignored-count {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.likes-count {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    position: relative;
}

.striped-count {
    background: repeating-linear-gradient( 45deg, #e74c3c, #e74c3c 3px, #c0392b 3px, #c0392b 6px );
    animation: stripe-slide 2s linear infinite;
}

@keyframes stripe-slide {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 12px 0;
    }
}

.user-photo-section {
    margin-top: 2rem;
}

.user-photo-container {
    position: relative;
    text-align: center;
}

.user-photo {
    width: 100%;
    max-width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.photo-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.photo-badge {
    background: linear-gradient(135deg, #cfa640 0%, #f5d67b 100%);
    color: #332325;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Middle Column - Profiles Card */
.profiles-card {
    padding: 0 0 1.5rem 0;
    height: 100%;
}

.profile-item {
    display: flex;
    padding: 1.5rem;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.3s ease;
}

    .profile-item:hover {
        background-color: #f8f9fa;
    }

.profile-photo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.member-label {
    font-size: 0.7rem;
    color: #6a5559;
    text-align: center;
    font-weight: 500;
}

.profile-details {
    flex: 1;
}

.profile-id {
    color: #4834d4;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.profile-info {
    font-size: 0.85rem;
    color: #6a5559;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.view-profile-link {
    color: #4834d4;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

    .view-profile-link:hover {
        text-decoration: underline;
    }

.view-more-section {
    text-align: center;
    padding: 1rem;
}

.view-more-btn {
    background: linear-gradient(135deg, #cfa640 0%, #f5d67b 100%);
    color: #332325;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .view-more-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(207, 166, 64, 0.3);
    }

/* Right Column - Updates Card */
.updates-card {
    padding: 0 0 1.5rem 0;
    height: 100%;
}

.update-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.3s ease;
}

    .update-item:hover {
        background-color: #f8f9fa;
    }

.update-photo-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.member-photo-text {
    font-size: 0.6rem;
    color: #6a5559;
    text-align: center;
    font-weight: 500;
}

.update-details {
    flex: 1;
}

.update-id {
    color: #4834d4;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.update-info {
    font-size: 0.8rem;
    color: #6a5559;
    margin-bottom: 0.5rem;
}

/* Two Column Profile Sections Styles */
.profile-sections {
    margin: 4rem 0;
    padding: 0 1rem;
}

.profile-sections-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.profile-section-column {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .profile-section-column:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    }

section-card {
    padding: 2rem;
    height: 100%;
}

.section-header1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #332325;
    margin: 0 0 1rem 0;
    text-align: center;
    padding-bottom: 1rem;
    padding-top: 1rem;
    border-bottom: 3px solid #f8f9fa;
    position: relative;
}

    .section-header1::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(135deg, #8c1538 0%, #b2293f 100%);
        border-radius: 3px;
    }

.section-header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #f8f9fa;
}

.header-view-more-btn {
    background: linear-gradient(135deg, #cfa640 0%, #f5d67b 100%);
    color: #332325;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .header-view-more-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(207, 166, 64, 0.3);
    }

/* Modern Profile Items for Left Column */
/*.modern-profile-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

    .modern-profile-item:hover {
        background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
        border-radius: 15px;
        padding: 1.5rem 1rem;
        margin: 0 -1rem;
    }

    .modern-profile-item:last-child {
        border-bottom: none;
    }*/

.profile-photo-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.member-photo-label {
    font-size: 0.7rem;
    color: #6a5559;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
}

.modern-profile-content {
    flex: 1;
    padding-top: 0.5rem;
}

.modern-profile-id {
    color: #007bff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    text-decoration: none;
}

    /*.modern-profile-id:hover {
        text-decoration: underline;
    }*/

.profile-meta {
    font-size: 0.9rem;
    color: #6a5559;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.meta-item {
    margin-right: 0.5rem;
}

/*.modern-view-link {
    color: #4834d4;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

    .modern-view-link:hover {
        border-bottom-color: #4834d4;
    }*/

    /*Home Page User Control Styles Starts*/
    .member-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .loading-placeholder, .no-profiles {
        text-align: center;
        padding: 20px;
        color: #666;
        font-style: italic;
    }

    .profile-photo-circle {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: 2px solid #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background-color: #f8f9fa;
        flex-shrink: 0;
    }

    .modern-profile-item {
        display: flex;
        gap: 15px;
        padding: 15px 0;
        margin: 0 1rem 0rem 1rem;
        border-bottom: 1px solid #eee;
        align-items: flex-start;
    }

        .modern-profile-item:last-of-type {
            border-bottom: none;
        }

    .modern-profile-content {
        flex: 1;
        min-width: 0;
    }

    /*.modern-profile-id {
        margin: 0 0 8px 0;
        font-size: 16px;
        font-weight: 600;
        color: #333;
    }*/

    .profile-meta {
        margin-bottom: 6px;
        font-size: 14px;
        color: #666;
        line-height: 1.4;
    }

    .meta-item {
        margin-right: 4px;
    }

    .modern-view-link {
        font-size: 13px;
        color: #007bff;
        text-decoration: none;
        font-weight: 500;
    }

    .modern-view-link:hover {
        text-decoration: underline;
        
    }

    .section-view-more {
        text-align: center;
        margin-top: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
        /*border-top: 1px solid #f0f0f0;*/
    }

    .section-view-more-btn {
        background: linear-gradient(135deg, #6ba071 0%, #5e9c67 100%);
        color: white;
        border: none;
        padding: 0.75rem 2rem;
        border-radius: 15px;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(207, 166, 64, 0.2);
    }

    .section-view-more-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(207, 166, 64, 0.3);
    }

    .loading-placeholder {
        text-align: center;
        padding: 20px;
        color: #666;
        font-style: italic;
        font-size: 14px;
    }

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

    .activity-card-btn {
        transition: all 0.3s ease;
    }

    .activity-card-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
/*Home Page User Control Styles Ends*/

/* Compact Profile Grid for Right Column */
.compact-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.compact-profile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #f0f0f0;
}

    .compact-profile-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    }

.compact-photo-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.compact-photo-label {
    font-size: 0.6rem;
    color: #6a5559;
    text-align: center;
    font-weight: 600;
    line-height: 1.1;
}

.compact-profile-details {
    width: 100%;
}

.compact-profile-id {
    color: #4834d4;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.compact-profile-info {
    font-size: 0.8rem;
    color: #6a5559;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.compact-view-link {
    color: #4834d4;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

    .compact-view-link:hover {
        border-bottom-color: #4834d4;
    }

/* Four Column Activity Cards Section */
.activity-cards-section {
    margin: 4rem 0;
    padding: 0 1rem;
}

.activity-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.activity-card-item {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

    .activity-card-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.activity-card-header {
    background: linear-gradient(135deg, #8c1538 0%, #b2293f 100%);
    padding: 1.2rem 1.5rem;
    text-align: center;
}

.activity-card-title {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.activity-card-content {
    padding: 2rem 1.5rem;
    background: #ffffff;
    text-align: center;
}

.activity-stats {
    margin-bottom: 1.5rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-mini-profiles {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mini-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mini-photo-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

    .mini-photo-circle:hover {
        transform: scale(1.1);
    }

.mini-photo-text {
    color: white;
    font-size: 1.2rem;
}

.mini-profile-info {
    text-align: center;
}

.mini-profile-id {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4834d4;
    margin-bottom: 0.2rem;
}

.mini-profile-age {
    font-size: 0.7rem;
    color: #7f8c8d;
    font-weight: 500;
}

.activity-card-btn {
    background: linear-gradient(135deg, #6ba071 0%, #5e9c67 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

    .activity-card-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
        background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    }

/* Animations */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
    }

    100% {
        width: 75%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ================================================
   MEGAMATRIMONY IMAGE STYLES WITH WATERMARKS
   ================================================ */

/* Base Image Container */
.mega-img-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 3px solid transparent;
    background-clip: padding-box;
}

    .mega-img-container:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
        border-color: rgba(140, 21, 56, 0.3);
    }

    .mega-img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: all 0.4s ease;
        filter: brightness(1) contrast(1.05) saturate(1.1);
    }

    .mega-img-container:hover img {
        filter: brightness(1.1) contrast(1.1) saturate(1.2);
        transform: scale(1.05);
    }

    /* Watermark Base Styles */
    .mega-img-container::after {
        content: "MegaMatrimony.com";
        position: absolute;
        left: 8px;
        bottom: 8px;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.7rem;
        font-weight: 600;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
        transform: rotate(-90deg);
        transform-origin: left bottom;
        z-index: 10;
        backdrop-filter: blur(4px);
        padding: 2px 6px;
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.2);
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .mega-img-container:hover::after {
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 2px 2px 12px rgba(0, 0, 0, 1);
        background: rgba(0, 0, 0, 0.4);
    }

/* SIZE VARIANTS */

/* Extra Small - 50x50px */
.mega-img-xs {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

    .mega-img-xs::after {
        font-size: 0.5rem;
        left: 4px;
        bottom: 4px;
        padding: 1px 3px;
    }

/* Small - 80x80px */
.mega-img-sm {
    width: 80px;
    height: 80px;
    border-radius: 14px;
}

    .mega-img-sm::after {
        font-size: 0.6rem;
        left: 15px;
        bottom: 0px;
        padding: 1px 4px;
    }

/* Medium - 150x150px */
.mega-img-md {
    width: 150px;
    height: 150px;
    border-radius: 16px;
}

    .mega-img-md::after {
        font-size: 0.7rem;
        left: 20px;
        bottom: 0px;
    }

/* Large - 250x250px */
.mega-img-lg {
    width: 250px;
    height: 250px;
    border-radius: 20px;
}

    .mega-img-lg::after {
        font-size: 0.8rem;
        left: 22px;
        bottom: 36px;
        padding: 3px 8px;
    }

/* Extra Large - 500x500px */
.mega-img-xl {
    width: 500px;
    height: 500px;
    border-radius: 24px;
}

    .mega-img-xl::after {
        font-size: 1rem;
        left: 32px;
        bottom: 136px;
        padding: 4px 10px;
    }

/* Extra Extra Large - 750x750px */
.mega-img-xxl {
    width: 750px;
    height: 750px;
    border-radius: 28px;
}

    .mega-img-xxl::after {
        font-size: 1.2rem;
        left: 40px;
        bottom: 235px;
        padding: 5px 12px;
    }

/* SHAPE VARIANTS */

/* Circle Shape */
.mega-img-circle {
    border-radius: 50% !important;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 0 0 2px rgba(140, 21, 56, 0.1);
}

    .mega-img-circle:hover {
        border-color: rgba(140, 21, 56, 0.4);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 0 0 2px rgba(140, 21, 56, 0.3);
    }

/* Extra Rounded */
.mega-img-rounded {
    border-radius: 32px !important;
}

/* STYLE VARIANTS */

/* Premium Member */
.mega-img-premium {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border: 3px solid #ffd700;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4), 0 0 60px rgba(255, 215, 0, 0.2);
    animation: premium-glow 2s ease-in-out infinite alternate;
}

    .mega-img-premium::after {
        content: "MegaMatrimony.com ⭐ PREMIUM";
        color: #ffd700;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
        background: rgba(0, 0, 0, 0.7);
        border: 1px solid rgba(255, 215, 0, 0.6);
        animation: premium-shimmer 3s ease-in-out infinite;
    }

    .mega-img-premium:hover::after {
        color: #fff;
        text-shadow: 0 0 10px #ffd700, 2px 2px 8px rgba(0, 0, 0, 1);
    }

@keyframes premium-glow {
    0% {
        box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4), 0 0 60px rgba(255, 215, 0, 0.2);
    }

    100% {
        box-shadow: 0 12px 40px rgba(255, 215, 0, 0.6), 0 0 80px rgba(255, 215, 0, 0.4);
    }
}

@keyframes premium-shimmer {
    0% {
        transform: rotate(-90deg) scale(1);
    }

    50% {
        transform: rotate(-90deg) scale(1.05);
    }

    100% {
        transform: rotate(-90deg) scale(1);
    }
}

/* Verified Member */
.mega-img-verified {
    border: 3px solid #27ae60;
    box-shadow: 0 8px 32px rgba(39, 174, 96, 0.3), 0 0 40px rgba(39, 174, 96, 0.15);
    position: relative;
}

    .mega-img-verified::after {
        content: "MegaMatrimony.com ✓ VERIFIED";
        color: #27ae60;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
        background: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(39, 174, 96, 0.6);
    }

    .mega-img-verified:hover {
        border-color: #2ecc71;
        box-shadow: 0 12px 40px rgba(39, 174, 96, 0.4), 0 0 60px rgba(39, 174, 96, 0.25);
    }

        .mega-img-verified:hover::after {
            color: #2ecc71;
            text-shadow: 0 0 8px #27ae60, 2px 2px 8px rgba(0, 0, 0, 1);
        }

/* Featured Member */
.mega-img-featured {
    border: 3px solid #ff6b35;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.3), 0 0 40px rgba(255, 107, 53, 0.15);
    position: relative;
}

    .mega-img-featured::after {
        content: "MegaMatrimony.com ⭐ FEATURED";
        color: #ff6b35;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
        background: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 107, 53, 0.6);
    }

    .mega-img-featured:hover {
        border-color: #ff8c42;
        box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4), 0 0 60px rgba(255, 107, 53, 0.25);
    }

        .mega-img-featured:hover::after {
            color: #ff8c42;
            text-shadow: 0 0 8px #ff6b35, 2px 2px 8px rgba(0, 0, 0, 1);
        }

/* STATE VARIANTS */

/* Loading State */
.mega-img-loading {
    position: relative;
    background: linear-gradient(45deg, #f0f0f0 25%, #e0e0e0 25%, #e0e0e0 50%, #f0f0f0 50%, #f0f0f0 75%, #e0e0e0 75%);
    background-size: 40px 40px;
    animation: loading-shimmer 1.5s linear infinite;
}

    .mega-img-loading::after {
        content: "MegaMatrimony.com ⟳ LOADING";
        color: #6c757d;
        animation: loading-pulse 1s ease-in-out infinite alternate;
    }

@keyframes loading-shimmer {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

@keyframes loading-pulse {
    0% {
        opacity: 0.5;
        transform: rotate(-90deg) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: rotate(-90deg) scale(1.05);
    }
}

/* Error State */
.mega-img-error {
    border: 3px solid #e74c3c;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    position: relative;
}

    .mega-img-error::before {
        content: "⚠";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 3rem;
        color: #fff;
        z-index: 5;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    }

    .mega-img-error::after {
        content: "MegaMatrimony.com ⚠ ERROR";
        color: #e74c3c;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
        background: rgba(0, 0, 0, 0.7);
        border: 1px solid rgba(231, 76, 60, 0.6);
    }

/* GALLERY LAYOUTS */

/* 2 Column Gallery */
.mega-img-gallery-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* 3 Column Gallery */
.mega-img-gallery-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* 4 Column Gallery */
.mega-img-gallery-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Gallery Hover Effects */
.mega-img-gallery:hover .mega-img-container:not(:hover) {
    opacity: 0.7;
    transform: scale(0.98);
}

/* ADVANCED EFFECTS */

/* Gradient Overlay */
.mega-img-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(140, 21, 56, 0.2) 0%, rgba(178, 41, 63, 0.1) 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mega-img-gradient:hover::before {
    opacity: 1;
}

/* Badge Overlay */
.mega-img-badge {
    position: relative;
}

    .mega-img-badge::before {
        content: attr(data-badge);
        position: absolute;
        top: -5px;
        right: -5px;
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: 12px;
        font-size: 0.7rem;
        font-weight: 600;
        z-index: 15;
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
        border: 2px solid white;
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .mega-img-gallery-4col {
        grid-template-columns: repeat(2, 1fr);
    }

    .mega-img-gallery-3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .mega-img-xxl {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 1;
    }

    .mega-img-xl {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 1;
    }

    .mega-img-container::after {
        font-size: 0.6rem !important;
    }
}

@media (max-width: 480px) {
    .mega-img-gallery-2col {
        grid-template-columns: 1fr;
    }

    .mega-img-container::after {
        font-size: 0.5rem !important;
        padding: 1px 3px !important;
    }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mega-img-container::after {
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(2px);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .mega-img-container {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }

        .mega-img-container::after {
            color: rgba(255, 255, 255, 0.8);
            background: rgba(0, 0, 0, 0.8);
            border-color: rgba(255, 255, 255, 0.3);
        }

    .mega-img-gallery {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    }
}

/* Print Styles */
@media print {
    .mega-img-container::after {
        display: none;
    }

    .mega-img-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility Improvements */
.mega-img-container:focus-within {
    outline: 3px solid #4A90E2;
    outline-offset: 2px;
    border-color: #4A90E2;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .mega-img-container,
    .mega-img-container img,
    .mega-img-container::after {
        transition: none;
        animation: none;
    }

        .mega-img-container:hover {
            transform: none;
        }

    .mega-img-premium {
        animation: none;
    }
}

/* Custom Properties for Easy Theming */
:root {
    --mega-img-border-radius: 16px;
    --mega-img-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --mega-img-watermark-color: rgba(255, 255, 255, 0.7);
    --mega-img-watermark-bg: rgba(0, 0, 0, 0.2);
    --mega-img-premium-color: #ffd700;
    --mega-img-verified-color: #27ae60;
    --mega-img-featured-color: #ff6b35;
    --mega-img-error-color: #e74c3c;
}

/* Utility Classes */
.mega-img-no-hover .mega-img-container:hover {
    transform: none;
    box-shadow: var(--mega-img-shadow);
}

.mega-img-square {
    aspect-ratio: 1;
    width: auto;
    height: auto;
}

.mega-img-landscape {
    aspect-ratio: 16/9;
    width: auto;
    height: auto;
}

.mega-img-portrait {
    aspect-ratio: 3/4;
    width: auto;
    height: auto;
}


/* ================================================
   MODERN SEARCH PAGE STYLES
   ================================================ */

/* Search Container */
.search-container {
    min-height: calc(100vh - 120px);
    /*background: linear-gradient(135deg, #f8faff 0%, #e6f3ff 50%, #f0f8ff 100%);*/
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

    .search-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 20%, rgba(140, 21, 56, 0.05) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
        pointer-events: none;
        z-index: 1;
    }

.search-layout {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ================================================
   MODERN TAB NAVIGATION
   ================================================ */

.search-tabs-section {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.tab-navigation {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

    .tab-navigation::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.1) 100%);
        pointer-events: none;
    }

.tab-button {
    position: relative;
    padding: 1rem 2.5rem;
    background: transparent;
    border: none;
    color: #64748b;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 0 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

    .tab-button:hover {
        color: #475569;
        background: rgba(255, 255, 255, 0.5);
        transform: translateY(-1px);
    }

    .tab-button.active {
        background: linear-gradient(135deg, #8c1538 0%, #b2293f 100%);
        color: white;
        box-shadow: 0 8px 32px rgba(140, 21, 56, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

        .tab-button.active::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
            border-radius: inherit;
            pointer-events: none;
        }

/* ================================================
   SEARCH CONTENT SECTION
   ================================================ */

.search-content-section {
    display: flex;
    justify-content: center;
}

.search-content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

    .search-content-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(140, 21, 56, 0.02) 50%, rgba(255, 255, 255, 0.1) 100%);
        pointer-events: none;
        z-index: 1;
    }

.search-form-container {
    position: relative;
    z-index: 2;
}

/* ================================================
   MODERN FORM STYLES
   ================================================ */

.search-form,
.advanced-search-form {
    display: grid;
    gap: 1.5rem;
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: start;
    animation: slideInUp 0.6s ease-out;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

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

.form-row:nth-child(odd) {
    animation-delay: 0.1s;
}

.form-row:nth-child(even) {
    animation-delay: 0.2s;
}

/* Full width for dual-list containers in advanced search */
.form-row:has(.dual-list-container) {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.form-label {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding-top: 0.75rem;
    line-height: 1.2;
}

.form-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #8c1538 0%, #b2293f 100%);
    border-radius: 2px;
}

/* ================================================
   FORM CONTROLS CONTAINER
   ================================================ */

.form-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

/* ================================================
   REDUCED FONT SIZES FOR INPUT FIELDS
   ================================================ */

.form-input-small,
.form-select,
.form-select-small,
.member-id-input {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #1e293b;
    font-weight: 500;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-input-small:focus,
.form-select:focus,
.form-select-small:focus,
.member-id-input:focus {
    outline: none;
    border-color: #8c1538;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(140, 21, 56, 0.1),
                inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.form-input-small::placeholder,
.member-id-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.8rem;
}

/* ================================================
   UPDATED RADIO BUTTON STYLES
   ================================================ */

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.radio-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #8c1538 0%, #b2293f 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.radio-option:hover {
    border-color: #8c1538;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(140, 21, 56, 0.15);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + .radio-text {
    color: white;
    font-weight: 600;
    z-index: 2;
    position: relative;
}

.radio-option:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #8c1538 0%, #b2293f 100%);
    border-color: #8c1538;
    box-shadow: 0 6px 20px rgba(140, 21, 56, 0.3);
    transform: translateY(-2px);
}

.radio-option:has(input[type="radio"]:checked)::before {
    opacity: 1;
}

.radio-text {
    font-weight: 500;
    font-size: 0.875rem;
    color: #475569;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

/* ================================================
   UPDATED RANGE CONTAINER STYLES
   ================================================ */

.age-range-container,
.height-range-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.range-separator {
    color: #64748b;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0 0.5rem;
}

.form-input-small {
    flex: 1;
    min-width: 120px;
}

.form-select-small {
    flex: 1;
    min-width: 140px;
}

/* ================================================
   UPDATED DUAL LIST STYLES
   ================================================ */

.dual-list-container {
    display: flex;
    gap: 1rem;
    background: rgba(248, 250, 252, 0.8);
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid rgba(226, 232, 240, 0.5);
    backdrop-filter: blur(10px);
    margin-top: 0.75rem;
}

.dual-list-section {
    flex: 1;
}

.dual-list-header {
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.75rem;
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dual-list-box {
    width: 100%;
    height: 140px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-size: 0.8rem;
    color: #475569;
    transition: all 0.3s ease;
    resize: none;
}

.dual-list-box:focus {
    outline: none;
    border-color: #8c1538;
    box-shadow: 0 0 0 3px rgba(140, 21, 56, 0.1);
}

.dual-list-box option {
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
}

.dual-list-box option:selected {
    background: linear-gradient(135deg, #8c1538 0%, #b2293f 100%);
    color: white;
}

.dual-list-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    align-self: center;
    padding: 0 0.75rem;
}

.dual-list-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.dual-list-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* ================================================
   UPDATED SEARCH BUTTON STYLES
   ================================================ */

.search-actions,
.member-search-actions {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(226, 232, 240, 0.5);
    grid-column: 1 / -1;
}

.search-btn,
.member-search-btn {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #8c1538 0%, #b2293f 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(140, 21, 56, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.search-btn::before,
.member-search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.search-btn:hover,
.member-search-btn:hover {
    background: linear-gradient(135deg, #a01d4a 0%, #c92c54 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(140, 21, 56, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.search-btn:hover::before,
.member-search-btn:hover::before {
    left: 100%;
}

/* ================================================
   QUICK SEARCH SPECIFIC UPDATES
   ================================================ */

.member-search-section {
    text-align: center;
    padding: 2rem;
}

.member-search-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    display: inline-block;
}

.member-search-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #8c1538 0%, #b2293f 100%);
    border-radius: 3px;
}

.member-id-form {
    margin: 2rem 0;
}

.member-id-form .form-row {
    grid-template-columns: 1fr;
    text-align: center;
    border-bottom: none;
}

.member-id-form .form-label {
    
    padding-top: 0;
}

.member-id-input-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.member-id-input {
    max-width: 400px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
}

/* ================================================
   RESPONSIVE UPDATES FOR TWO-COLUMN LAYOUT
   ================================================ */

@media (max-width: 992px) {
    .form-row {
        grid-template-columns: 180px 1fr;
        gap: 1rem;
    }
    
    .dual-list-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dual-list-controls {
        flex-direction: row;
        justify-content: center;
        padding: 1rem 0;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: left;
    }
    
    .form-label {
        padding-top: 0;
        margin-bottom: 0.5rem;
    }
    
    .form-label::after {
        bottom: -2px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .age-range-container,
    .height-range-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .range-separator {
        text-align: center;
        padding: 0.3rem 0;
    }
    
    .dual-list-container {
        padding: 1rem;
    }
    
    .dual-list-box {
        height: 120px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .form-row {
        padding: 0.75rem 0;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .form-input-small,
    .form-select,
    .form-select-small,
    .member-id-input {
        font-size: 0.8rem;
        padding: 0.7rem 0.9rem;
    }
    
    .radio-text {
        font-size: 0.8rem;
    }
    
    .radio-option {
        padding: 0.6rem 1rem;
        min-height: 44px;
    }
    
    .member-search-title {
        font-size: 1.4rem;
    }
    
    .search-btn,
    .member-search-btn {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
        min-width: auto;
        width: 100%;
    }
}

/* ================================================
   COMPACT SPACING FOR BETTER READABILITY
   ================================================ */

.search-content-card {
    padding: 2.5rem 2rem;
}

@media (max-width: 1200px) {
    .search-content-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .search-content-card {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .search-content-card {
        padding: 1.25rem 1rem;
        border-radius: 14px;
    }
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.9;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Loading Animation */
.search-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.search-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ================================================
   ACCESSIBILITY IMPROVEMENTS
   ================================================ */

.form-row:focus-within .form-label::after {
    width: 40px;
    background: linear-gradient(135deg, #4A90E2 0%, #6BB6FF 100%);
}

/* Focus states for keyboard navigation */
.search-btn:focus-visible,
.member-search-btn:focus-visible,
.dual-list-btn:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 2px;
}

.form-input-small:focus-visible,
.form-select:focus-visible,
.form-select-small:focus-visible,
.member-id-input:focus-visible,
.dual-list-box:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 2px;
}

.radio-option:focus-within {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .search-content-card {
        background: white;
        border: 2px solid #000;
    }
    
    .search-btn,
    .member-search-btn {
        background: #000;
        color: white;
        border: 2px solid #000;
    }
    
    .form-label::after {
        background: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .search-btn::before,
    .member-search-btn::before {
        display: none;
    }
}
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.profile-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Profile Header */
.profile-header-section {
    background: linear-gradient(135deg, #8c1538 0%, #b2293f 100%);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.profile-main-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Profile Section */
.profile-section {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.about-section-header {
    background: #f8fafc;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.about-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.about-content-card {
    padding: 24px;
    background: white;
}

.about-textarea-container {
    margin-bottom: 20px;
}

.about-textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    color: #374151;
    background: #fafafa;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

    .about-textarea:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        background: white;
    }

    .about-textarea::placeholder {
        color: #9ca3af;
        font-style: italic;
    }

.about-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Section Header (from MyProfile.razor) */
.section-header {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    border-bottom: 1px solid #d1d5db;
}

.section-icon {
    font-size: 20px;
    color: #f59e0b;
}

.section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #374151;
    flex: 1;
}

/* Basic Details Card (from MyProfile.razor) */
.basic-details-card {
    padding: 24px;
    background: #fafafa;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-height: 40px;
}

.form-label {
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    width: 30%;
    flex-shrink: 0;
    padding-top: 12px;
    line-height: 1.2;
}

.form-row > *:not(.form-label) {
    width: 70%;
    flex: 1;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: white;
    transition: all 0.3s ease;
    width: 100%;
}

    .form-input:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

.form-input-small {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: white;
    max-width: 120px;
    transition: all 0.3s ease;
}

    .form-input-small:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

.form-select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: white;
    transition: all 0.3s ease;
    width: 100%;
}

    .form-select:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

.form-select-small {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: white;
    max-width: 120px;
    transition: all 0.3s ease;
}

    .form-select-small:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

.weight-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weight-unit {
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
}

.income-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.income-input {
    max-width: 200px;
}

.form-textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: white;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    min-height: 80px;
}

    .form-textarea:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 4px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

    .radio-option input[type="radio"] {
        width: 16px;
        height: 16px;
        accent-color: #3b82f6;
    }

.radio-text {
    font-weight: 500;
}

.help-text {
    margin-top: 4px;
}

.help-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

    .help-link:hover {
        text-decoration: underline;
    }

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.save-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
    min-width: 100px;
}

    .save-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
        background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    }

    .save-btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
    }

    /* Loading state for save button */
    .save-btn:disabled {
        background: #d1d5db;
        color: #9ca3af;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    /* Success state styling */
    .save-btn.success {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
    }

        .save-btn.success:hover {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
        }

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        padding: 16px;
    }

    .profile-main-title {
        font-size: 24px;
    }

    .about-content-card, .basic-details-card {
        padding: 20px;
    }

    .about-textarea {
        min-height: 150px;
        padding: 12px;
        font-size: 13px;
    }

    .form-row {
        flex-direction: column;
        gap: 8px;
    }

    .form-label {
        width: 100%;
        padding-top: 0;
    }

    .form-row > *:not(.form-label) {
        width: 100%;
    }

    .radio-group {
        gap: 12px;
    }

    .save-btn {
        padding: 10px 24px;
        font-size: 13px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .profile-header-section {
        padding: 20px;
    }

    .profile-main-title {
        font-size: 22px;
    }

    .about-content-card, .basic-details-card {
        padding: 16px;
    }

    .about-textarea {
        min-height: 120px;
        padding: 10px;
    }

    .about-actions, .form-actions {
        justify-content: stretch;
    }

    .save-btn {
        flex: 1;
        padding: 12px 16px;
    }

    .radio-group {
        flex-direction: column;
        gap: 8px;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s ease-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #8c1538;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 14px;
    color: #6b7280;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    width: 100%;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    overflow: hidden;
    animation: slideInRight 0.4s ease-out;
    border-left: 4px solid #10b981;
    position: relative;
}

    .toast.success {
        border-left-color: #10b981;
    }

    .toast.error {
        border-left-color: #ef4444;
    }

.toast-content {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: #10b981;
}

.toast.error .toast-icon {
    background: #ef4444;
}

.toast-message {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    margin-bottom: 2px;
}

.toast-description {
    color: #6b7280;
    font-size: 13px;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

    .toast-close:hover {
        background: #f3f4f6;
        color: #374151;
    }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
    animation: toastProgress 3s linear forwards;
}

/* Button Loading States */
.save-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .save-btn:disabled {
        background: #e5e7eb !important;
        color: #9ca3af !important;
        cursor: not-allowed;
    }

    .save-btn.loading {
        color: transparent;
    }

        .save-btn.loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 20px;
            border: 2px solid #ffffff;
            border-top: 2px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            transform: translate(-50%, -50%);
        }

    .save-btn.success {
        background: #10b981 !important;
        color: white !important;
        transform: scale(1.05);
    }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

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

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .loading-content {
        margin: 20px;
        padding: 30px 20px;
    }
}

/*Search Result Page Starts*/
.searchresult-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.searchresult-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    min-height: 600px;
}

/* Left Column - Navigation/Filters */
.navigation-column {
    background: transparent;
}

.navigation-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 20px;
}

.nav-section {
    margin-bottom: 32px;
}

    .nav-section:last-child {
        margin-bottom: 0;
    }

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f3f4f6;
}

.search-summary {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid #3b82f6;
}

.summary-item {
    margin: 4px 0;
    font-size: 12px;
    color: #374151;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #6b7280;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .nav-link:hover {
        background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
        color: #374151;
        text-decoration: none;
        transform: translateX(4px);
    }

    .nav-link.active {
        background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
        color: #000;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

.link-text {
    font-size: 14px;
}

.badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Right Column - Content */
.content-column {
    background: transparent;
}

.content-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.content-header {
    background: linear-gradient(135deg, #8c1538 0%, #b2293f 100%);
    padding: 20px 24px;
    text-align: center;
}

.content-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-preference-bar {
    background: #f8fafc;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.preference-text {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.preference-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #bae6fd;
}

.pagination-bar {
    background: #f8fafc;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 16px;
}

.pagination-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #374151;
    font-weight: 500;
}

.record-count {
    font-size: 12px;
    color: #6b7280;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.records-selector,
.page-selector {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    transition: border-color 0.2s ease;
    min-width: 60px;
}

    .records-selector:focus,
    .page-selector:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

.divider {
    color: #d1d5db;
    font-weight: 300;
}

.pagination-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .pagination-btn:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }

    .pagination-btn:disabled {
        background: #d1d5db;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* Profile List */
.profile-list {
    padding: 24px;
}

.search-profile-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .search-profile-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

.profile-checkbox {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.profile-name-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 16px 30px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

/* Modern animated profile name link (no underline) */
.profile-name {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    /* keep layout consistent with existing styles */
}

    .profile-name a {
        color: #007bff; /* modern blue */
        text-decoration: none; /* remove underline */
        position: relative;
        display: inline-block;
        padding: 4px 8px;
        border-radius: 8px;
        transition: transform .14s ease, color .18s ease, box-shadow .18s ease;
        background: linear-gradient(90deg, rgba(0,122,200,0.06), rgba(0,122,200,0.02));
        -webkit-tap-highlight-color: transparent;
    }



        /* hover / focus animation */
        .profile-name a:hover,
        .profile-name a:focus {
            transform: translateY(-3px);
            color: #005b9a;
            box-shadow: 0 10px 24px rgba(3, 102, 214, 0.10);
            outline: none;
        }

            .profile-name a:hover::after,
            .profile-name a:focus::after {
                transform: scaleX(1);
            }

        /* active / pressed */
        .profile-name a:active {
            transform: translateY(0);
            box-shadow: none;
        }

        /* keyboard accessibility */
        .profile-name a:focus-visible {
            box-shadow: 0 0 0 3px rgba(0,122,200,0.18);
        }

.profile-subtitle {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.profile-actions-header {
    position: absolute;
    top: 12px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.action-icon-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

    .action-icon-btn:hover {
        background: white;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

.profile-main-content {
    display: grid;
    grid-template-columns: 245px 1fr auto;
    gap: 24px;
    padding: 24px;
    align-items: start;
}

.profile-details-section {
    flex: 1;
}

.profile-info-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.info-row {
    display: grid;
    grid-template-columns: 20px 100px auto 1fr;
    gap: 8px;
    align-items: center;
    font-size: 14px;
}

.info-icon {
    font-size: 14px;
}

.info-label {
    color: #6b7280;
    font-weight: 500;
}

.info-colon {
    color: #6b7280;
}

.info-value {
    color: #1f2937;
    font-weight: 500;
}

.like-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.like-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.like-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .like-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    }

.about-section {
    margin-top: 16px;
    padding: 12px;
    background: #fefefe;
    border-left: 3px solid #3b82f6;
    border-radius: 0 6px 6px 0;
}

.about-text {
    margin: 0;
    font-size: 13px;
    color: #374151;
    font-style: italic;
    line-height: 1.5;
}

.profile-actions-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}

.action-btn-large {
    background: linear-gradient(135deg, #8c1538 0%, #b2293f 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

    .action-btn-large:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
    }

    .action-btn-large.shortlist-btn {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        
    }

    .action-btn-large.view-contact {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .action-btn-large.messages {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    }

/* Loading and Empty States */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h3 {
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .searchresult-layout {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }

    .profile-main-content {
        grid-template-columns: 150px 1fr;
        gap: 16px;
    }

    .profile-actions-section {
        grid-column: span 2;
        flex-direction: row;
        justify-content: center;
        margin-top: 16px;
    }

    .pagination-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pagination-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .searchresult-container {
        padding: 16px;
    }

    .searchresult-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .navigation-column {
        order: 2;
    }

    .content-column {
        order: 1;
    }

    .profile-main-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-actions-section {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .action-btn-large {
        font-size: 11px;
        padding: 8px 12px;
    }

    .pagination-controls {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Modern Toast Notification System - Centered */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    width: 90%;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    position: relative;
    min-width: 400px;
    max-width: 500px;
    margin: 0 auto;
}

    .toast.show {
        transform: scale(1);
        opacity: 1;
    }

    .toast.success {
        border-left: 6px solid #10b981;
    }

    .toast.error {
        border-left: 6px solid #ef4444;
    }

    .toast.info {
        border-left: 6px solid #3b82f6;
    }

.toast-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 24px;
    align-items: flex-start;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
}

.toast.success .toast-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.toast.error .toast-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.toast.info .toast-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.toast-icon svg {
    width: 18px;
    height: 18px;
}

.toast-message {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 700;
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 6px;
    line-height: 1.4;
}

.toast-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: #9ca3af;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

    .toast-close:hover {
        background: #f3f4f6;
        color: #6b7280;
    }

    .toast-close svg {
        width: 18px;
        height: 18px;
    }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    animation: toast-progress linear forwards;
    border-radius: 0 0 16px 16px;
}

.toast.error .toast-progress {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.toast.info .toast-progress {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

@keyframes toast-progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Animation for toast entrance */
@keyframes toast-slide-in {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Button loading states */
.action-btn-large.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

    .action-btn-large.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top: 2px solid white;
        border-radius: 50%;
        animation: button-spin 1s linear infinite;
    }

.like-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

    .like-btn.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 12px;
        height: 12px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top: 2px solid white;
        border-radius: 50%;
        animation: button-spin 1s linear infinite;
    }

@keyframes button-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive toast adjustments */
@media (max-width: 768px) {
    .toast-container {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
        width: auto;
        min-width: 300px;
    }

    .toast {
        min-width: 300px;
        max-width: 90vw;
    }

    .toast-title {
        font-size: 16px;
    }

    .toast-description {
        font-size: 14px;
    }

    .toast-content {
        padding: 20px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .toast {
        min-width: 280px;
    }

    .toast-title {
        font-size: 15px;
    }

    .toast-description {
        font-size: 13px;
    }

    .toast-content {
        padding: 16px;
    }
}

/* Contact Modal Styles */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalOverlayFadeIn 0.3s ease-out;
}

.contact-modal {
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.contact-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.contact-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.contact-avatar-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.contact-header-details {
    flex: 1;
}

.contact-name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.contact-subtitle {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

    .contact-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

    .contact-modal-close svg {
        width: 20px;
        height: 20px;
    }

.contact-modal-body {
    padding: 32px 24px 24px 24px;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.contact-details-grid {
    display: grid;
    gap: 20px;
}

.contact-detail-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .contact-detail-card:hover {
        border-color: #cbd5e0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

.contact-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .contact-detail-icon.mobile {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
    }

    .contact-detail-icon.email {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        color: white;
    }

    .contact-detail-icon.info {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: white;
    }

    .contact-detail-icon svg {
        width: 24px;
        height: 24px;
    }

.contact-detail-info {
    flex: 1;
}

.contact-detail-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.contact-detail-value {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    word-break: break-all;
}

.contact-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-action-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

    .contact-action-btn:hover {
        border-color: #d1d5db;
        background: #f9fafb;
        transform: translateY(-1px);
    }

    .contact-action-btn.call {
        color: #059669;
        border-color: #a7f3d0;
        background: #ecfdf5;
    }

        .contact-action-btn.call:hover {
            border-color: #6ee7b7;
            background: #d1fae5;
        }

    .contact-action-btn.email-btn {
        color: #1d4ed8;
        border-color: #bfdbfe;
        background: #eff6ff;
    }

        .contact-action-btn.email-btn:hover {
            border-color: #93c5fd;
            background: #dbeafe;
        }

    .contact-action-btn.copy {
        color: #7c2d12;
        border-color: #fed7aa;
        background: #fff7ed;
    }

        .contact-action-btn.copy:hover {
            border-color: #fdba74;
            background: #ffedd5;
        }

    .contact-action-btn svg {
        width: 16px;
        height: 16px;
    }

.contact-modal-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

.contact-privacy-note {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0f9ff;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #e0f2fe;
}

    .contact-privacy-note svg {
        width: 20px;
        height: 20px;
        color: #0369a1;
        flex-shrink: 0;
    }

    .contact-privacy-note span {
        font-size: 14px;
        color: #0c4a6e;
        font-weight: 500;
    }

.additional-info .contact-detail-header {
    margin-bottom: 0;
}

.additional-info .contact-detail-value {
    margin-bottom: 8px;
}

    .additional-info .contact-detail-value:last-child {
        margin-bottom: 0;
    }

/* Modal Animations */
@keyframes modalOverlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}

/* Responsive Design for Contact Modal */
@media (max-width: 768px) {
    .contact-modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .contact-modal {
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        max-height: 95vh;
    }

    .contact-modal-header {
        padding: 20px;
    }

    .contact-header-info {
        gap: 12px;
    }

    .contact-avatar {
        width: 48px;
        height: 48px;
    }

    .contact-avatar-text {
        font-size: 18px;
    }

    .contact-name {
        font-size: 20px;
    }

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

    .contact-detail-card {
        padding: 16px;
    }

    .contact-detail-header {
        gap: 12px;
    }

    .contact-detail-icon {
        width: 40px;
        height: 40px;
    }

        .contact-detail-icon svg {
            width: 20px;
            height: 20px;
        }

    .contact-detail-actions {
        gap: 8px;
    }

    .contact-action-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Message Modal Styles */
.message-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    z-index: 16000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalOverlayFadeIn 0.3s ease-out;
}

.message-modal {
    background: white;
    border-radius: 24px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.message-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.message-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.message-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

    .message-avatar svg {
        width: 28px;
        height: 28px;
        color: white;
    }

.message-header-details {
    flex: 1;
}

.message-recipient-name {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.message-subtitle {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.message-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

    .message-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

    .message-modal-close svg {
        width: 20px;
        height: 20px;
    }

.message-modal-body {
    padding: 32px 24px 24px 24px;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.message-compose-section {
    margin-bottom: 24px;
}

.message-form-group {
    margin-bottom: 24px;
}

.message-label {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 8px;
}

.message-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    background: #fafbfc;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

    .message-textarea:focus {
        outline: none;
        border-color: #667eea;
        background: white;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .message-textarea.error {
        border-color: #ef4444;
        background: #fef2f2;
    }

        .message-textarea.error:focus {
            border-color: #ef4444;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        }

.message-char-count {
    text-align: right;
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

    .message-char-count .warning {
        color: #f59e0b;
        font-weight: 600;
    }

.message-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.message-suggestions {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.suggestions-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 12px;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-chip {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .suggestion-chip:hover {
        border-color: #667eea;
        background: #f0f4ff;
        color: #667eea;
        transform: translateY(-1px);
    }

.message-modal-footer {
    border-top: 2px solid #f1f5f9;
    padding-top: 20px;
}

.message-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.message-btn-secondary {
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

    .message-btn-secondary:hover:not(:disabled) {
        background: #e5e7eb;
        transform: translateY(-1px);
    }

    .message-btn-secondary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.message-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    min-width: 140px;
    justify-content: center;
}

    .message-btn-primary:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    }

    .message-btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .message-btn-primary.loading {
        pointer-events: none;
    }

    .message-btn-primary svg {
        width: 16px;
        height: 16px;
    }

.message-loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.message-privacy-note {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0f9ff;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid #e0f2fe;
}

    .message-privacy-note svg {
        width: 18px;
        height: 18px;
        color: #0369a1;
        flex-shrink: 0;
    }

    .message-privacy-note span {
        font-size: 13px;
        color: #0c4a6e;
        font-weight: 500;
    }

/* Responsive Design for Message Modal */
@media (max-width: 768px) {
    .message-modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .message-modal {
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        max-height: 95vh;
    }

    .message-modal-header {
        padding: 20px;
    }

    .message-header-info {
        gap: 12px;
    }

    .message-avatar {
        width: 48px;
        height: 48px;
    }

        .message-avatar svg {
            width: 24px;
            height: 24px;
        }

    .message-recipient-name {
        font-size: 18px;
    }

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

    .suggestion-chips {
        flex-direction: column;
    }

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

    .message-actions {
        flex-direction: column-reverse;
    }

    .message-btn-secondary,
    .message-btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Add to the page <style> block (modal styles for image viewer) */
.image-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 15, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    backdrop-filter: blur(6px) saturate(1.05);
    -webkit-backdrop-filter: blur(6px) saturate(1.05);
    animation: modalFadeIn 180ms ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.995);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-modal {
    width: min(1100px, 96vw);
    max-height: 92vh;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), #fff);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    position: relative;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Close button */
.image-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: rgba(0,0,0,0.06);
    color: #332325;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease;
    z-index: 1300;
}

    .image-modal-close:hover {
        transform: scale(1.06);
        background: rgba(0,0,0,0.08);
    }

/* Make slider inside modal use full available space */
.image-modal .slider-demo-container {
    padding: 0;
}

.image-modal .slider-section {
    background: transparent;
    box-shadow: none;
    padding: 0;
}
/*Search Result Page Ends*/




