@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --primary-orange: #d91a3b;
    --primary-green: #1C9E6A;
    --text-dark: #222222;
    --text-medium: #555555;
    --text-light: #888888;
    --bg-white: #FFFFFF;
    --bg-light: #F4F6F8;
    --bg-blue-light: #F0F6FA;
    --border-color: #E2E8F0;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    background-color: var(--bg-white);;
    color: var(--text-dark);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Header --- */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.logo-icon {
    display: flex;
}
.logo-icon .green-part { color: var(--primary-green); font-size: 1.8rem;}
.logo-icon .orange-part { color: var(--primary-orange); font-size: 1.8rem; margin-left: -8px;}

.logo-text {
    color: var(--primary-orange);
    font-weight: 700;
    line-height: 1;
    text-transform: lowercase;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem;
    transition: var(--transition);
}

.nav-links a.active, .nav-links a:hover {
    color: var(--primary-green);
}

.nav-links i {
    font-size: 1.1rem;
}

.notification-badge {
    position: relative;
}

.notification-badge .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #E53935;
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.switch-account {
    border: 1px solid var(--primary-orange);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-medium);
    cursor: pointer;
}

.switch-account i.fa-users {
    color: var(--primary-orange);
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-light);
}

/* --- Main Layout --- */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 2rem;
    padding: 1.5rem 1rem;
    align-items: start;
}

/* --- Sidebar --- */
.sidebar {
    background: var(--bg-white);
    position: sticky;
    top: 80px; /* Offset to clear the sticky header */
    height: max-content;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding-right: 5px; /* Give room for scrollbar */
    scrollbar-width: thin; /* Firefox */
}

/* Custom minimal scrollbar for WebKit (Chrome/Safari) */
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.profile-summary {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.profile-summary .avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-light);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-light);
    border: 1px solid var(--primary-orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.profile-summary .avatar-large:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.profile-summary .avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: inherit;
    display: block;
}

.profile-summary h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.profile-summary .verified {
    font-size: 0.8rem;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 0.5rem;
}

.profile-summary .id {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.profile-summary .member-type {
    font-size: 0.85rem;
    color: var(--text-light);
}

.upgrade-card {
    background: #faa5ad91;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.upgrade-card p {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.btn-upgrade {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.sidebar-menu {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

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

.menu-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    padding: 0 1rem;
}

.menu-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0.8rem 1rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition);
    border-radius: 4px;
}

.menu-list a:hover {
    background: var(--bg-light);
}

.menu-list i {
    color: var(--text-light);
    width: 20px;
    text-align: center;
}

/* --- Main Content --- */
.main-content {
    background: var(--bg-white);
    min-width: 0; /* Prevents CSS Grid blowout for horizontal scroll areas */
}

.tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.tabs-container button {
    background: none;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-medium);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tabs-container button.active {
    color: var(--primary-orange);
    border-bottom-color: var(--primary-orange);
}

.completeness-section {
    background: var(--bg-blue-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.completeness-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.completeness-header h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.score-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.progress-track {
    width: 100px;
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 55%;
    background: var(--primary-orange);
}

.action-cards {
    display: flex;
    gap: 1rem;
}

.action-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.action-icon {
    width: 40px;
    height: 40px;
    background: #F8F9FA;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* --- Profiles Carousel Sections --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.section-title p {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.timer-badge {
    background: var(--primary-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px 4px 0 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

.timer-badge span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
}

.profiles-row {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.profiles-row::-webkit-scrollbar {
    height: 6px;
}
.profiles-row::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.profiles-grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .profiles-grid-responsive {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

.profiles-row-scrollable {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.profile-card, .responsive-profile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.profiles-row-scrollable .profile-card,
.profiles-row-scrollable .responsive-profile-card {
    flex: 0 0 190px;
    width: 190px;
}

@media (max-width: 640px) {
    .profiles-row-scrollable .profile-card,
    .profiles-row-scrollable .responsive-profile-card {
        flex: 0 0 150px;
        width: 150px;
    }
}

.profile-card:hover, .responsive-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.profile-img-placeholder, .card-img-placeholder {
    width: 100%;
    height: 190px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    color: #cbd5e1;
    overflow: hidden;
    position: relative;
}

@media (max-width: 640px) {
    .profile-img-placeholder, .card-img-placeholder {
        height: 160px;
    }
}

.profile-img-placeholder img, .card-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-card:hover .profile-img-placeholder img,
.responsive-profile-card:hover .card-img-placeholder img {
    transform: scale(1.04);
}

.profile-info, .card-info-box {
    padding: 12px 14px;
    background: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-info h4, .card-info-box h4 {
    margin: 0 0 4px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-info p, .card-info-box p {
    margin: 0;
    font-size: 0.83rem;
    color: #64748b;
    line-height: 1.4;
}

.btn-view-all {
    display: block;
    width: 100%;
    padding: 0.8rem;
    text-align: center;
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 3rem;
    transition: var(--transition);
}

.btn-view-all:hover {
    background: #FFF5EE;
}

/* --- Promo Banner --- */
.promo-banner {
    background: #FFFBF7;
    border: 1px solid #FFE4CC;
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.promo-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.promo-content h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.promo-content h3 span {
    color: var(--primary-orange);
    font-weight: 700;
}

.promo-features {
    margin-bottom: 2rem;
}

.promo-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.promo-features i {
    color: #4A90E2;
}

.btn-solid-orange {
    background: var(--primary-orange);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.promo-image {
    width: 250px;
    height: 250px;
    background: #FFE4CC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-image i {
    font-size: 8rem;
    color: #FFA559;
}

/* Floating Chat */
.floating-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(28, 158, 106, 0.4);
    cursor: pointer;
    z-index: 1000;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none; /* Mobile menu needed in future */
    }
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .action-cards {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .promo-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 2rem;
    }
    
    .promo-features li {
        justify-content: center;
        text-align: left;
    }
    
    .promo-content h2 {
        font-size: 1.3rem;
    }
    
    .promo-content h3 {
        font-size: 1.1rem;
    }
    
    .completeness-section {
        padding: 1.5rem 1rem;
    }
    
    .dashboard-container {
        padding: 1rem 0.5rem;
        gap: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .timer-badge {
        align-self: flex-start;
        border-radius: 4px;
    }
    
    .btn-solid-orange {
        width: 100%;
    }
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer-main {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding: 3rem 3rem 2.5rem;
}

.footer-col h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-about p {
    font-size: 0.82rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    font-size: 0.85rem;
    color: var(--text-medium);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom-left p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
}

.footer-bottom-center {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom-center div {
    display: flex;
    flex-direction: column;
}

.footer-bottom-center span {
    font-size: 0.75rem;
    color: var(--text-medium);
    line-height: 1.3;
    font-weight: 600;
}

.footer-bottom-right {
    text-align: right;
}

.footer-bottom-right > span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.social-icons a {
    font-size: 1.4rem;
    transition: var(--transition);
}

.social-icons a:hover {
    opacity: 0.7;
}

/* --- Footer Responsive --- */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .footer-bottom-right {
        text-align: center;
    }

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

/* --- Matches Page Styles --- */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.match-card {
    display: flex;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.match-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.match-img {
    width: 220px;
    background: #FF4081; /* Default pink bg like the image */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-right: 1px solid var(--border-color);
    position: relative;
}
.match-img::before {
    content: "BharatMatrimony.com";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    letter-spacing: 1px;
    white-space: nowrap;
}
.match-img i {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.7);
}

.match-details {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.match-name-wrap {
    display: flex;
    flex-direction: column;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    width: max-content;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
    transition: all 0.2s ease;
}

.verified-badge i {
    color: #2563eb;
    font-size: 0.82rem;
}

.verified-badge:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.match-name-wrap h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.match-id {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.match-options {
    color: var(--text-medium);
    cursor: pointer;
    padding: 0.5rem;
}

.match-meta {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.match-meta li {
    font-size: 0.85rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
}

.match-meta li:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: #CBD5E1;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.match-action-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.interest-msg {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: 0.3rem;
}

.interest-prompt {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn-decline {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-decline:hover {
    background: #F8F9FA;
}

.btn-accept {
    background: var(--primary-orange);
    border: 1px solid var(--primary-orange);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-accept:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .match-card {
        display: block;
        padding: 15px;
    }
    .match-img {
        float: left;
        width: 120px;
        height: 160px;
        border-radius: 8px;
        margin-right: 15px;
        margin-bottom: 5px;
        border: none;
    }
    .match-img::before {
        transform: translateY(-50%) rotate(-90deg);
        top: 50%;
        left: 5px;
        font-size: 0.65rem;
    }
    .match-details {
        display: block;
        padding: 0;
    }
    .match-action-area {
        clear: both;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-top: 15px;
    }
    .action-text {
        margin-bottom: 15px;
    }
    .interest-msg {
        font-weight: 700;
        color: #222;
        margin-bottom: 5px;
    }
    .interest-prompt {
        color: #555;
    }
    .action-buttons {
        width: 100%;
        display: flex;
        gap: 15px;
    }
    .btn-decline, .btn-accept {
        flex: 1;
        padding: 10px;
        border-radius: 25px;
        font-weight: 600;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }
    .btn-decline {
        background: white;
        color: #777;
        border: 1px solid #ccc;
    }
}

/* --- New Matches Page Layout --- */
.new-sidebar {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow-x: hidden;
    overflow-y: auto;
}
.ns-section-title {
    padding: 15px 20px 5px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
}
.ns-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 20px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    position: relative;
}
.ns-item:hover, .ns-item.active {
    background: #f0faf4;
}
.ns-item-icon {
    width: 25px;
    color: #555;
    margin-top: 2px;
}
.ns-item-content {
    flex: 1;
}
.ns-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 3px;
    color: #222;
}
.ns-item-desc {
    font-size: 0.75rem;
    color: #777;
}
.ns-item-chevron {
    color: #aaa;
    font-size: 0.8rem;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.ns-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 20px;
}

.matches-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.matches-header h2 span {
    color: var(--primary-orange);
    text-decoration: underline;
    cursor: pointer;
}
.filter-chips {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
}
.filter-chips::-webkit-scrollbar {
    height: 4px;
}
.filter-chips::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}
.chip {
    padding: 6px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #444;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.chip-scroll-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #444;
    background: white;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.chip-scroll-btn:hover {
    background: #f0f0f0;
}
.chip:hover {
    background: #f9f9f9;
}
.chip-sort {
    padding-right: 10px;
}

.new-match-card {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: white;
    padding: 15px;
    gap: 20px;
    margin-bottom: 15px;
}
.nmc-img-wrap {
    position: relative;
    width: 220px;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}
.nmc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.nmc-shortlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.nmc-photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}
.nmc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.nmc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 5px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
    transition: all 0.2s ease;
}
.nmc-name-wrap h3 {
    font-size: 1.4rem;
    color: #222;
    margin-bottom: 2px;
}
.nmc-id {
    font-size: 0.8rem;
    color: #888;
}
.nmc-contact-icons {
    display: flex;
    gap: 15px;
}
.nmc-contact-icons i {
    font-size: 1.4rem;
    cursor: pointer;
}
.fa-phone-icon { color: #d91a3b; border: 1px solid #d91a3b; border-radius: 50%; padding: 6px; font-size: 1rem !important; }
.fa-whatsapp-icon { color: #25D366; border: 1px solid #25D366; border-radius: 50%; padding: 6px; font-size: 1.1rem !important; }

.nmc-details {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.nmc-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.btn-dont-show {
    border: 1px solid #ccc;
    background: white;
    color: #777;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-send-interest {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 8px 30px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.sort-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.sort-modal {
    background: white;
    width: 400px;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}
.modal-close {
    cursor: pointer;
    font-size: 1.2rem;
    color: #555;
}
.sort-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    cursor: pointer;
}
.sort-text {
    flex: 1;
    padding-right: 15px;
}
.sort-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 3px;
    color: #333;
}
.sort-text span {
    font-size: 0.8rem;
    color: #777;
}
.sort-radio {
    margin-top: 3px;
    accent-color: var(--primary-orange);
    width: 18px;
    height: 18px;
}
.modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}
.btn-reset {
    background: white;
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    padding: 8px 30px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}
.btn-apply {
    background: var(--primary-orange);
    border: 1px solid var(--primary-orange);
    color: white;
    padding: 8px 40px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

/* Filter Modal */
.filter-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.filter-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.filter-modal {
    background: white;
    width: 600px;
    max-height: 90vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.filter-modal-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
}

.filter-modal-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.filter-modal-close {
    cursor: pointer;
    font-size: 1.2rem;
    color: #555;
}

.filter-modal-body {
    padding: 20px 0;
    overflow-y: auto;
}

.filter-modal-body .section-title {
    padding: 10px 20px;
    background: #f5f5f5;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.filter-modal-body .form-row {
    display: flex;
    padding: 10px 20px;
    align-items: center;
}

.filter-modal-body .form-label {
    width: 35%;
    font-size: 0.9rem;
    color: #444;
}

.filter-modal-body .form-inputs {
    width: 65%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-modal-body select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    background: #fff url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23999999%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 0.8rem top 50%;
    background-size: 0.65rem auto;
    appearance: none;
}

.filter-modal-body select:focus {
    border-color: var(--primary-orange);
}

.filter-modal-body .to-text {
    font-size: 0.9rem;
    color: #555;
}

.filter-modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    gap: 15px;
    background: #fff;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.filter-modal-footer .fm-matches-count {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
}

.btn-fm-show {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

.filter-modal-body .premium-block {
    margin: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
}

.filter-modal-body .premium-icon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #9c27b0;
    font-size: 0.9rem;
}

.filter-modal-body .disabled-row {
    opacity: 0.6;
    pointer-events: none;
}

.filter-modal-body .disabled-row select {
    background: #f9f9f9;
}

.filter-modal-body .disabled-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    font-size: 0.9rem;
}

.filter-modal-body .premium-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.filter-modal-body .premium-cta span {
    font-size: 0.9rem;
    color: #333;
}

.filter-modal-body .btn-premium {
    background: var(--primary-orange);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.filter-modal-body .pill-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.filter-modal-body .pill-btn {
    background: #fff;
    border: 1px solid #999;
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-modal-body .pill-btn.active {
    background: #ffe3d1;
    border-color: #ffccaa;
    color: #d35400;
}

@media (max-width: 768px) {
    .filter-modal {
        width: 95%;
    }
    .filter-modal-body .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .filter-modal-body .form-label, .filter-modal-body .form-inputs {
        width: 100%;
    }
}

/* =========================================================
   Horoscope Page Styles
   ========================================================= */

.horoscope-main-content {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0;
    overflow: hidden;
}

.horoscope-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
    padding-top: 10px;
    padding-left: 20px;
    position: relative;
    overflow-x: auto;
}

.horo-tab-btn {
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    margin-right: 5px;
    border: 1px solid transparent;
    border-bottom: none;
    white-space: nowrap;
}

.horo-tab-btn.active {
    background: #fff;
    color: #333;
    border-color: #ddd;
    border-bottom-color: #fff;
    margin-bottom: -1px;
}

.edit-profile-link {
    position: absolute;
    right: 20px;
    bottom: 12px;
    color: #00bcd4;
    text-decoration: none;
    font-size: 0.9rem;
}

.horoscope-content-box {
    padding: 30px;
    border: 1px solid #ddd;
    border-top: none;
}

.horo-two-col {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

/* Left Column */
.horo-left-col {
    flex: 1;
}

.horo-left-col h2 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.horo-intro-text {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.horo-benefits-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
}

.horo-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.horo-benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f8e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.horo-benefit-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    padding-top: 5px;
}

/* Right Column (Form) */
.horo-right-col {
    flex: 1;
    background: #f5f5f5;
    padding: 30px;
    border-radius: 4px;
}

.horo-form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 18px; /* Space for error messages */
}

.horo-form-group > label {
    width: 140px;
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

.horo-form-group .required {
    color: red;
}

.horo-form-group select {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.9rem;
    color: #555;
    background: #fff;
    width: 100%;
}

.horo-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.edit-link, .whats-this {
    color: #00bcd4;
    text-decoration: none;
    font-size: 0.85rem;
}

.time-inputs {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.time-inputs select {
    flex: 1;
}

.horo-error {
    position: absolute;
    bottom: 0;
    left: 140px;
    font-size: 0.75rem;
    color: #f44336;
}

.horo-submit-wrap {
    margin-top: 30px;
    text-align: right;
}

.btn-generate-horo {
    background: #ff7043;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-generate-horo:hover {
    background: #f4511e;
}

/* Other Ways Section */
.horo-other-ways-divider {
    text-align: center;
    position: relative;
    margin: 40px 0;
}

.horo-other-ways-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px dashed #ccc;
    z-index: 1;
}

.horo-other-ways-divider span {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 0 15px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}

.horo-other-ways {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.horo-upload-section, .horo-email-section {
    flex: 1;
    text-align: center;
}

.horo-upload-section h4, .horo-email-section h4 {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 20px;
}

.upload-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.custom-file-input {
    display: none;
}

.custom-file-label {
    background: #eee;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #333;
}

.file-name {
    font-size: 0.85rem;
    color: #888;
}

.btn-upload {
    background: #ff9800;
    color: #fff;
    border: none;
    padding: 6px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
}

.upload-hint {
    font-size: 0.8rem;
    color: #888;
}

.horo-email-section p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.email-link {
    color: #00bcd4;
    text-decoration: none;
}

/* Locked Photo Style */
.locked-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 10;
}

/* Responsive */
@media (max-width: 900px) {
    .horo-two-col {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }

    /* Mobile Match Card Redesign */
    .new-match-card {
        flex-direction: column;
        padding: 0;
        gap: 0;
        overflow: hidden;
        border-radius: 12px;
    }
    .nmc-img-wrap {
        width: 100%;
        height: 350px;
        border-radius: 0;
    }
    .nmc-info {
        padding: 15px;
    }
    .nmc-actions {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }
    .btn-dont-show, .btn-send-interest {
        flex: 1;
        justify-content: center;
        padding: 12px 10px;
    }

    .mobile-sidebar-close {
        display: flex;
    }

    .horo-right-col {
        margin-top: 20px;
    }

    .horo-other-ways {
        flex-direction: column;
        gap: 40px;
    }
    
    .horo-form-group {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 25px;
    }
    
    .horo-form-group > label {
        margin-bottom: 5px;
        width: 100%;
    }
    
    .horo-error {
        left: 0;
    }
    
    .horo-form-group select {
        width: 100%;
    }
    
    .edit-profile-link {
        position: static;
        margin-left: auto;
        padding: 12px 20px;
    }
}

/* =========================================================
   Horoscope Settings Page & Minimal Footer
   ========================================================= */

/* No sidebar layout */
.dashboard-container.no-sidebar {
    display: block;
}

.settings-content-box {
    padding: 40px;
    background: #fff;
    min-height: 400px;
}

.settings-intro {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
}

.settings-title {
    font-size: 1.05rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}

.settings-form-container {
    background: #f0f0f0;
    padding: 30px;
    border-radius: 4px;
    max-width: 600px;
}

.settings-form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.settings-form-group label {
    width: 180px;
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

.settings-form-group select {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.9rem;
    background: #fff;
    color: #555;
    width: 100%;
}

.settings-form-group .required {
    color: #f44336;
}

.settings-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.mandatory-text {
    font-size: 0.8rem;
    color: #666;
}

.mandatory-text .required {
    color: #f44336;
}

.btn-modify {
    background: #ff7043;
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
}

.btn-modify:hover {
    background: #f4511e;
}

/* Minimal Footer */
.minimal-footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 50px 0;
    margin-top: 40px;
}

.minimal-footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 20px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col.about-col {
    flex: 0.5;
    min-width: 150px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 0.95rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #777;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-col ul li a:hover {
    color: #ff7043;
}

.btn-like {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 5px;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .settings-form-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .settings-form-group label {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .settings-form-group select {
        width: 100%;
    }
    
    .settings-form-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .minimal-footer-inner {
        flex-direction: column;
    }
    
    .footer-col.about-col {
        margin-bottom: 20px;
    }
}

/* Additional Responsive Fixes for Horoscope Settings */
@media (max-width: 600px) {
    .settings-content-box {
        padding: 20px 15px;
    }
    
    .settings-form-container {
        padding: 15px;
    }
    
    .horoscope-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-left: 10px;
    }
    
    .horo-tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .edit-profile-link {
        position: static;
        margin-left: auto;
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .settings-title {
        font-size: 0.95rem;
    }
}

/* Hard wrap for long emails to prevent side scrolling */
.horo-email-section p, .horo-email-section a {
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
}

/* Ensure flex items wrap if they get too wide */
.upload-controls, .horo-other-ways {
    flex-wrap: wrap;
    max-width: 100vw;
}

.horoscope-content-box {
    overflow: hidden;
}

/* Footer Updates */
.minimal-footer {
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 40px 0 0 0;
    font-family: Arial, sans-serif;
}

.minimal-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 0 20px 40px 20px;
}

.footer-col {
    flex: 1;
}

.footer-col.about-col {
    flex: 1.5;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-about-text {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.6;
    text-align: justify;
}

.footer-col h4 {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #888;
    font-size: 0.85rem;
}

.footer-col ul li a:hover {
    color: #d91a3b;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #eee;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.fb-left p {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.fb-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.limca-badge {
    display: flex;
    align-items: center;
}

.limca-text {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.3;
}

.social-follow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-follow span {
    font-size: 0.8rem;
    font-weight: bold;
    color: #333;
}

.social-follow a i {
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    .minimal-footer-inner {
        flex-direction: column;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .fb-right {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .completeness-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .score-bar {
        width: 100%;
    }
    .progress-track {
        width: 100%;
    }
}

/* Slider Controls */
.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.2s ease;
}

.slider-btn:hover {
    background: #f5f5f5;
    color: var(--primary-orange);
    border-color: #ccc;
}

.profiles-row, .success-stories {
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.profiles-row::-webkit-scrollbar, .success-stories::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .section-header {
        position: relative;
    }
    .slider-controls {
        display: none; /* Hide slider arrows on small mobile where users can easily swipe */
    }
}

/* =========================================
   Family Details Modal
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.family-modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
}

.modal-header h2 {
    font-size: 1.25rem;
    color: #333;
    font-weight: 500;
    margin: 0;
}

.close-modal {
    background: #e0e0e0;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.close-modal:hover {
    background: #ff9800;
}

.modal-body {
    padding: 0 25px 25px 25px;
}

/* Form Grid */
.family-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
}

.form-group select, .form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    outline: none;
    background: #fff;
}

.form-group select:focus, .form-group input:focus {
    border-color: #ff9800;
}

/* Save Button */
.btn-save-family {
    background: #ff9800;
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-save-family:hover {
    background: #f57c00;
}

/* Hide Mobile Elements on Desktop */
.mobile-back-btn,
.mobile-title,
.mobile-section-title {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .family-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .modal-header {
        padding: 15px 20px;
    }
    .modal-body {
        padding: 0 20px 20px 20px;
    }
}

/* Header Responsive Fixes */
@media (max-width: 992px) {
    .header-right {
        display: none !important;
    }
    .nav-container.mobile-active .header-right {
        display: flex !important;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    .nav-container.mobile-active .main-nav {
        display: flex !important;
    }
}

/* Filter Modal */
.filter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.filter-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.filter-modal {
    background: var(--bg-white);
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(20px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.filter-modal-overlay.active .filter-modal {
    transform: translateY(0);
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.filter-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-medium);
    cursor: pointer;
}

.filter-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.filter-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-option:last-child {
    margin-bottom: 0;
}

.filter-option-content {
    flex: 1;
    padding-right: 15px;
}

.filter-option-content h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.filter-option-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.filter-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-orange);
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 4px;
}

.filter-modal-footer {
    display: flex;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    gap: 15px;
}

.btn-filter-clear {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-filter-clear:hover {
    background: #fff3e0;
}

.btn-filter-apply {
    flex: 1;
    padding: 12px;
    background: #e0e0e0;
    border: none;
    color: var(--text-medium);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-filter-apply:hover {
    background: #d5d5d5;
}

/* Empty State */
.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    height: 100%;
}

.empty-state-container img {
    max-width: 250px;
    margin-bottom: 20px;
}

.empty-state-container h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0;
}

/* --- Mobile View Specific Styling --- */
.mobile-top-header {
    display: none;
}
.mobile-bottom-nav {
    display: none;
}
.mobile-sidebar-close {
    display: none;
}
.matches-mobile-tabs {
    display: none;
}

@media (max-width: 768px) {
    .desktop-header-elements,
    .desktop-tabs-container {
        display: none !important;
    }

    body {
        padding-bottom: 70px; /* Space for bottom nav */
    }

    header {
        padding: 0;
        background: transparent;
        border-bottom: none;
    }

    .mobile-top-header {
        display: block;
        background: white;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .m-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .m-header-tabs {
        display: flex;
        background: white;
        border-radius: 20px;
        padding: 2px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        border: 1px solid #eee;
    }

    .m-header-tabs button {
        border: none;
        background: transparent;
        padding: 0.5rem 1.2rem;
        border-radius: 18px;
        font-weight: 700;
        color: var(--text-medium);
        position: relative;
    }

    .m-header-tabs button.active {
        background: #fff;
        color: var(--primary-orange);
        border: 1px solid var(--primary-orange);
    }

    .prime-dot {
        display: inline-block;
        width: 6px;
        height: 6px;
        background: #e63946;
        border-radius: 50%;
        position: absolute;
        top: 8px;
        right: 8px;
    }

    .m-header-search {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: #1a365d;
    }

    .m-header-profile {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .m-profile-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .m-avatar {
        position: relative;
        width: 50px;
        height: 50px;
    }

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

    .m-camera-icon {
        position: absolute;
        bottom: 0;
        left: 0;
        background: white;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.6rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }

    .m-profile-info h3 {
        font-size: 1.1rem;
        margin-bottom: 2px;
        color: var(--text-dark);
    }

    .m-verified {
        font-size: 0.75rem;
        color: var(--primary-green);
        display: flex;
        align-items: center;
        gap: 4px;
        margin-bottom: 4px;
    }

    .m-member-status {
        font-size: 0.8rem;
        color: var(--text-medium);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .m-btn-upgrade {
        border: 1px solid var(--primary-orange);
        background: transparent;
        color: var(--primary-orange);
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 0.7rem;
        font-weight: 600;
    }

    .m-profile-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .m-notification {
        position: relative;
        font-size: 1.3rem;
        color: var(--text-dark);
    }

    .m-badge {
        position: absolute;
        top: -4px;
        right: -6px;
        background: var(--primary-orange);
        color: white;
        font-size: 0.6rem;
        font-weight: bold;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .m-menu-toggle {
        font-size: 1.4rem;
        color: var(--text-dark);
        background: none;
        border: none;
    }

    /* Mobile Sidebar Sliding */
    .sidebar.mobile-active {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        z-index: 2000;
        background: white;
        overflow-y: auto;
        box-shadow: 5px 0 20px rgba(0,0,0,0.2);
        padding: 1.5rem 1rem;
        transition: transform 0.3s ease;
    }

    .mobile-sidebar-close {
        display: flex;
        font-size: 1.5rem;
        color: var(--text-dark);
        margin-bottom: 1.5rem;
        cursor: pointer;
    }

    /* Matches Mobile Tabs */
    .matches-mobile-tabs {
        display: flex;
        border-bottom: 1px solid var(--border-color);
        background: white;
        margin-bottom: 1rem;
    }
    .mm-tab {
        flex: 1;
        text-align: center;
        padding: 0.8rem 0;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-medium);
        cursor: pointer;
        border-bottom: 2px solid transparent;
    }
    .mm-tab.active {
        color: var(--primary-green);
        border-bottom-color: var(--primary-green);
    }
    .mm-tab-more {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    /* Locked Photo Overlay */
    .blurred-photo {
        filter: blur(8px);
    }
    .nmc-locked-overlay {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px;
        color: white;
    }
    .lock-icon-wrap {
        background: white;
        color: #2b4f81;
        width: 45px; height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    .nmc-locked-overlay p {
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1.4;
        margin-bottom: 20px;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    }
    .btn-upgrade-photo {
        background: white;
        color: #111;
        border: none;
        padding: 12px 25px;
        border-radius: 25px;
        font-weight: 700;
        font-size: 1rem;
        cursor: pointer;
    }

    /* Mobile Bottom Navigation */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        z-index: 1000;
        justify-content: space-around;
        padding: 0.5rem 0;
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--text-medium);
        font-size: 0.7rem;
        text-decoration: none;
        flex: 1;
    }

    .mobile-bottom-nav a.active {
        color: var(--primary-green);
    }

    .mobile-bottom-nav a i {
        font-size: 1.3rem;
    }

    .mobile-bottom-nav .upgrade-nav {
        color: #d32f2f;
    }

    .mobile-bottom-nav .upgrade-icon {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobile-bottom-nav .discount-badge {
        background: #1a237e;
        color: white;
        font-size: 0.5rem;
        padding: 2px 4px;
        border-radius: 4px;
        position: absolute;
        bottom: -8px;
        white-space: nowrap;
        font-weight: bold;
    }

    /* Family Modal Mobile Styling */
    .modal-overlay {
        align-items: flex-start;
        background: #f5f5f5;
    }
    .family-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        background: #f5f5f5;
        box-shadow: none;
        overflow-y: auto;
    }
    .family-modal-content .modal-header {
        background: linear-gradient(to right, #4CAF50, #26A69A);
        padding: 15px 20px;
        justify-content: flex-start;
        gap: 15px;
        border-bottom: none;
    }
    .family-modal-content .desktop-title {
        display: none;
    }
    .family-modal-content .mobile-title {
        display: block;
        color: white;
        font-size: 1.1rem;
        font-weight: 500;
        margin: 0;
    }
    .family-modal-content .close-modal {
        display: none;
    }
    .family-modal-content .mobile-back-btn {
        display: block;
        background: transparent;
        border: none;
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0;
    }
    .family-modal-content .modal-body {
        padding: 15px 20px 80px 20px;
    }
    .family-modal-content .mobile-section-title {
        display: block;
        font-size: 1.2rem;
        color: #333;
        margin-bottom: 20px;
        font-weight: 400;
    }
    .family-modal-content .family-form-grid {
        display: block;
        gap: 0;
    }
    .family-modal-content .form-group {
        margin-bottom: 20px;
    }
    .family-modal-content .form-group label {
        font-size: 0.85rem;
        color: #999;
        margin-bottom: 5px;
        padding-left: 2px;
    }
    .family-modal-content .form-group select, 
    .family-modal-content .form-group input {
        width: 100%;
        max-width: 100%;
        border: none;
        padding: 15px;
        padding-right: 35px; /* Give space for the arrow */
        font-size: 1rem;
        background-color: white;
        border-radius: 2px;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20512%22%3E%3Cpath%20fill%3D%22%23cccccc%22%20d%3D%22M246.6%20233.4c12.5%2012.5%2012.5%2032.8%200%2045.3l-160%20160c-12.5%2012.5-32.8%2012.5-45.3%200s-12.5-32.8%200-45.3L178.7%20256%2041.4%20118.6c-12.5-12.5-12.5-32.8%200-45.3s32.8-12.5%2045.3%200l160%20160z%22%2F%3E%3C%2Fsvg%3E");
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 10px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }
    .family-modal-content .btn-save-family {
        display: block;
        width: 100%;
        margin-top: 20px;
    }
}

/* Biodata Modal CSS */
.biodata-modal-content {
    background: transparent;
    padding: 0;
    max-width: 500px;
    width: 95%;
    border-radius: 12px;
    position: relative;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 90vh;
}

.biodata-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biodata-scroll-area {
    background: repeating-linear-gradient(
        45deg,
        #4caf50,
        #4caf50 20px,
        #45a049 20px,
        #45a049 40px
    );
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.1) 20%, transparent 20.5%), 
                      radial-gradient(circle at center, rgba(255,255,255,0.1) 20%, transparent 20.5%);
    background-color: #5ec68d;
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    padding: 30px 15px 15px 15px;
    border-radius: 12px 12px 0 0;
    flex: 1;
    overflow-y: auto;
}

.biodata-card {
    background: white;
    border-radius: 8px;
    padding: 60px 20px 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.biodata-profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #f1c40f;
    padding: 3px;
    background: white;
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.biodata-details {
    margin-top: 10px;
}

.bd-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #333;
}

.bd-label {
    flex: 0 0 120px;
    color: #555;
    font-weight: 500;
}

.bd-val {
    flex: 1;
    color: #111;
    font-weight: 500;
    word-break: break-word;
}

.bd-divider {
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.bd-qr-text {
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    margin-bottom: 15px;
}

.bd-qr-text a {
    color: #d35400;
    text-decoration: none;
}

.bd-qr-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.bd-qr-code {
    width: 60px;
    height: 60px;
}

.bd-powered-by {
    text-align: right;
    font-size: 0.8rem;
    color: #555;
}

.bd-logo-box img {
    height: 30px;
    margin-top: 5px;
}

.biodata-btn-container {
    background: white;
    padding: 15px 20px;
    width: 100%;
    border-radius: 0 0 12px 12px;
}

.btn-download-biodata {
    display: block;
    width: 100%;
    background: #f39c12;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 25px;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-download-biodata:hover {
    background: #e67e22;
}

@media (max-width: 600px) {
    .biodata-modal-content {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .biodata-scroll-area {
        border-radius: 0;
    }
    .biodata-btn-container {
        border-radius: 0;
    }
}

/* =========================================================
   WHO VIEWED YOU — Full Responsive Styles
   ========================================================= */

/* Page title */
.matches-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}
.matches-header h2 {
    margin-bottom: 0;
    word-break: break-word;
}

/* Main content area — prevent grid overflow */
.main-content {
    min-width: 0;
}

/* ── 1024px: collapse sidebar into offcanvas ── */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 0;
    }

    .new-sidebar.sidebar {
        display: none;
    }

    .new-sidebar.sidebar.mobile-active {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        z-index: 2000;
        background: white;
        overflow-y: auto;
        box-shadow: 5px 0 25px rgba(0,0,0,0.25);
        padding: 1.5rem 0.5rem;
        border-radius: 0;
    }

    .mobile-sidebar-close {
        display: flex !important;
        align-items: center;
        gap: 8px;
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
        padding: 0 10px 15px;
        cursor: pointer;
        border-bottom: 1px solid #eee;
        margin-bottom: 10px;
    }

    .matches-mobile-tabs {
        display: flex !important;
    }

    .matches-header h2 {
        font-size: 1.15rem;
    }
}

/* ── 768px: full mobile layout ── */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 0.75rem 0.5rem;
    }

    .matches-header {
        padding: 12px 14px 0;
        margin-bottom: 10px;
    }

    .matches-header h2 {
        font-size: 1rem;
        line-height: 1.4;
    }

    .filter-chips {
        padding: 0 14px 8px;
        margin-bottom: 12px;
        gap: 8px;
    }

    .chip {
        font-size: 0.78rem;
        padding: 5px 12px;
        flex-shrink: 0;
    }

    /* Match card — full vertical stack */
    .new-match-card {
        flex-direction: column;
        padding: 0;
        gap: 0;
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 14px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    }

    .nmc-img-wrap {
        width: 100%;
        height: 320px;
        max-height: 75vw;
        border-radius: 0;
        flex-shrink: 0;
    }

    .nmc-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }

    .nmc-shortlist {
        top: 12px;
        right: 12px;
        font-size: 0.72rem;
        padding: 4px 10px;
    }

    .nmc-info {
        padding: 14px 16px 16px;
        gap: 12px;
    }

    .verified-badge {
        font-size: 0.7rem;
        padding: 2px 8px;
        margin-bottom: 4px;
    }

    .nmc-name-wrap h3 {
        font-size: 1.15rem;
        margin-bottom: 2px;
    }

    .nmc-id {
        font-size: 0.75rem;
    }

    .nmc-contact-icons {
        gap: 10px;
    }

    .nmc-details {
        font-size: 0.82rem;
        line-height: 1.7;
        margin-top: 8px;
        color: #666;
    }

    .nmc-actions {
        flex-direction: row;
        gap: 10px;
        margin-top: 14px;
    }

    .btn-dont-show {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 0.82rem;
    }

    .btn-send-interest {
        flex: 1.5;
        justify-content: center;
        padding: 10px 8px;
        font-size: 0.82rem;
    }

    .nmc-header {
        align-items: center;
        gap: 8px;
    }
}

/* ── 480px: small phones ── */
@media (max-width: 480px) {
    .matches-header h2 {
        font-size: 0.95rem;
    }

    .nmc-img-wrap {
        height: 240px;
    }

    .nmc-name-wrap h3 {
        font-size: 1.05rem;
    }

    .nmc-details {
        font-size: 0.78rem;
    }

    .btn-dont-show,
    .btn-send-interest {
        font-size: 0.78rem;
        padding: 9px 6px;
    }

    .new-sidebar.sidebar.mobile-active {
        width: 90%;
    }

    .chip {
        font-size: 0.74rem;
        padding: 4px 10px;
    }

    .filter-chips {
        padding: 0 10px 8px;
    }

    .dashboard-container {
        padding: 0.5rem 0.25rem;
    }

    /* Sort modal full width on tiny screens */
    .sort-modal {
        width: 92vw;
        padding: 16px;
    }

    /* Filter modal full screen on tiny phones */
    .filter-modal {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
}

/* Unpaid member photo blur & overlay styles */
.photo-blur-filter {
    filter: blur(14px) brightness(0.85) !important;
    -webkit-filter: blur(14px) brightness(0.85) !important;
    transform: scale(1.08) !important;
    pointer-events: none !important;
    user-select: none !important;
}

.photo-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    z-index: 8;
    cursor: pointer;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: inherit;
}

.photo-lock-overlay p {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    max-width: 92%;
}

.photo-lock-overlay .btn-upgrade-photo-badge {
    background: var(--primary-orange, #e65100);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.74rem;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none !important;
    border: 1.5px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    display: inline-block;
}

.photo-lock-overlay .btn-upgrade-photo-badge:hover {
    transform: translateY(-2px);
    background: #c74400;
}
