/* Matchmaking Dashboard Layout */

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Use GPU acceleration for animations */
.match-card, .profile-card, .btn-icon, .modal-content {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Cards */
.dashboard-card {
    background: var(--primary-gold);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    margin-top: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--secondary-gold);
    overflow: hidden;
    contain: layout style paint;
}

/* Removed heavy SVG background pattern for better performance */



.dashboard-row > div {
    min-width: 0;
    flex: 1 4 0;
}

.profile-section {
    flex: 35%;
}

.insights-section, .matches-section {
    flex: 65%;
}

.filters-section {
    flex: 35%;
}

/* Profile Section */
.profile-card {
    background-color: var(--primary-gold);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.profile-image-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--secondary-gold);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--primary-gold);
    color: var(--primary-green);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.profile-name {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.cosmic-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--dark-text);
    opacity: 0.7;
}

.detail-value {
    font-size: 1rem;
    color: var(--primary-gold);
    font-weight: 500;
}

.profile-bio {
    font-style: italic;
    padding: 1rem;
    margin: 1.5rem 0;
    background-color: rgba(46, 139, 87, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-gold);
}

.profile-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Profile Action Buttons */
.profile-action-btn {
    font-size: 0.8rem;
    padding: 0.7em 1.5em;
    border-radius: 30px;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(46,139,87,0.08);
    letter-spacing: 0.01em;
}
.profile-action-btn i {
    font-size: 1.2em;
    margin-right: 0.4em;
}
.btn-upgrade {
    background: linear-gradient(90deg, var(--primary-gold) 60%, var(--secondary-gold) 100%);
    color: var(--primary-green) !important;
    border: 2px solid var(--secondary-gold);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(112, 134, 110, 0.15);
}
.btn-upgrade:hover {
    background: linear-gradient(90deg, #fff 60%, var(--primary-gold) 100%);
    color: var(--primary-green) !important;
    box-shadow: 0 4px 16px rgba(112, 134, 110, 0.25);
    text-decoration: none;
    transform: translateY(-2px);
}
.btn-outline.profile-action-btn:hover {
    background: var(--primary-gold);
    color: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

/* Insights Panel */
.insights-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.insight-card {
    background-color: rgba(46, 139, 87, 0.05);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
}

.insight-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    color: var(--primary-gold);
}

.insight-card h3 {
    color: var(--primary-green);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.insight-card p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.compatibility-meter {
    height: 6px;
    background-color: rgba(46, 139, 87, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background-color: var(--primary-gold);
}

/* Filters Section */
.filters-panel {
    background: rgba(46, 139, 87, 0.05);
    border-radius: 14px;
   
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 1px solid var(--primary-gold);
}

.filters-panel:hover {
    box-shadow: 0 8px 32px rgba(46, 139, 87, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08);
}
.filter-group {
    margin-bottom: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3f3f3;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h3 {
    color: var(--primary-green);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.filter-select {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--primary-gold);
    border-radius: 8px;
    background: rgba(46, 139, 87, 0.05);
    font-size: 1rem;
    color: var(--primary-green);
    transition: border 0.2s;
    margin-top: 0.2rem;
}
.filter-select:focus {
    border-color: var(--primary-green);
    outline: none;
}

.slider {
    width: 100%;
    margin: 0.5rem 0;
    accent-color: var(--primary-gold);
    height: 4px;
    border-radius: 4px;
    background: rgba(46, 139, 87, 0.05);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--dark-text);
    opacity: 0.7;
    margin-top: -0.3rem;
}

.number-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.number-filters label {
    min-width: 60px;
    justify-content: flex-start;
}
@media (max-width: 600px) {
    .number-filters {
        gap: 0.3rem;
        justify-content: flex-start;
    }
    .number-filters label {
        font-size: 0.95rem;
        min-width: 44px;
        padding: 0.15rem 0.5rem;
    }
}

.apply-filters {
    width: 100%;
    margin-top: 1rem;
    background:  var(--primary-green);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 0;
    font-size: 1.08rem;
   
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.01em;
}


/* Matches Section */
.matches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.matches-count {
    color: var(--primary-gold);
    font-size: 0.9rem;
}

.matches-scroller {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    overflow-x: unset;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    contain: layout style paint;
}

.match-card {
    min-width: 0;
    background-color: rgba(46, 139, 87, 0.05);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    will-change: transform;
    contain: layout style paint;
}
.match-card:hover {
    box-shadow: 0 8px 32px rgba(46, 139, 87, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translate3d(0, -2px, 0);
}

.match-card.liked {
    background: #ffe6e6 !important;
    border: 2px solid #ff6b6b !important;
}

.match-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--primary-gold);
    color: var(--primary-green);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

.match-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-gold);
    margin: 0 auto 0.5rem;
}

.match-name {
    color: var(--primary-green);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.match-details {
    font-size: 0.8rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.compatibility-score {
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.match-zodiac {
    color: var(--primary-gold);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.match-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 50%;
    transition: background 0.1s ease-out, color 0.1s ease-out, transform 0.1s ease-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
}
.btn-icon:active {
    transform: scale(0.95);
}

.btn-icon.heart {
    color: var(--primary-green);
}
.btn-icon.heart.liked i {
    color: #ff6b6b !important;
}

.btn-icon.view {
    color: var(--primary-green);
}
.btn-icon.view:hover {
    color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.08);
}

.btn-icon.message {
    color: var(--primary-green)
}
.btn-icon.message:hover {
    color: var(--primary-green);
    background: rgba(46, 139, 87, 0.08);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.4);
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(2px);
    contain: layout style paint;
}
.modal-content {
    background: #fff;
    margin: 8% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    position: relative;
    will-change: transform;
    contain: layout style paint;
}
.close {
    position: absolute;
    right: 1rem; top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}
.modal-match-image {
    width: 90px; height: 90px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

/* Add to your CSS file */
#photoModal .modal-content {
    min-width: 320px;
    max-width: 420px;
    min-height: 480px;
    max-height: 90vh;
}
#photoCarousel img {
    transition: border 0.2s, box-shadow 0.2s;
}

/* Layout Adjustments */
.profile-section, .filters-section {
    flex: 0 0 27%;
    max-width: 320px;
    min-width: 260px;
}

.insights-section, .matches-section {
    flex: 1 1 0;
    min-width: 0;
}

/* --- COLUMN LAYOUT --- */
.dashboard-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.left-column {
    flex: 0 0 30%;
    max-width: 30%;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.right-column {
    flex: 0 0 70%;
    max-width: 70%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Sections inside columns take full width of their column */
.left-column > .profile-section,
.left-column > .filters-section,
.right-column > .insights-section,
.right-column > .cosmic-tips,
.right-column > .matches-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: none;
}

/* Remove fixed widths from sections */
.profile-section,
.filters-section {
    flex: none;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

/* Remove fixed width from cosmic-tips */
.cosmic-tips {
    flex: none !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .dashboard-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    .left-column,
    .right-column {
        flex: 100%;
        max-width: 100%;
        width: 100%;
        min-width: 0;
    }
}

/* Make dashboard-row wrap for smaller screens */
.dashboard-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Insights & Tips Flex Layout */
.insights-section {
    flex: 1;
    min-width: 0;
}

.cosmic-tips {
    flex: 0 0 300px; /* Fixed width for the tips section */
    margin-top: 0;
    padding-left: 1rem;
}

/* New container for insights and tips when both are visible */

/* When only insights are visible */
.dashboard-row > .insights-section:only-child {
    flex: 100%;
}

/* When only tips are visible */
.dashboard-row > .cosmic-tips:only-child {
    flex: 100%;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .insights-tips-container {
        flex-direction: column;
    }
    
    .cosmic-tips {
        flex: 100%;
        max-width: 100%;
        padding-left: 0;
        margin-top: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .profile-section, .filters-section {
        max-width: 240px;
        min-width: 180px;
        flex: 0 0 32%;
    }
}

@media (max-width: 900px) {
    .dashboard-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    .profile-section, .filters-section, 
    .insights-section, .matches-section {
        flex: 100%;
        max-width: 100%;
        min-width: 0;
    }
}


.dashboard-row:empty,
.dashboard-row > div:only-child {
    width: 100%;
}

/* Right Side Extensions for Height Balance */
.cosmic-tips {
    background-color: transparent;
    border-radius: 10px;
    padding: 1.5rem;
    padding-right: 0 !important;
    margin-top: 1.5rem;
}

.cosmic-tips h3 {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.tip-card {
    background-color: rgba(46, 139, 87, 0.05);
    border-radius: 8px;
    padding: 1.2rem;
    position: relative;
    border-left: 3px solid var(--primary-gold);
}

.tip-icon {
    color: var(--primary-gold);
    font-size: 1.5rem;
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 10px;
}

.tip-card p {
    padding-left: 1.5rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.tip-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--dark-text);
    opacity: 0.7;
    padding-left: 1.5rem;
}

.match-insights {
    background-color: rgba(46, 139, 87, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.match-insights h3 {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.match-insights .insight-card {
    background-color: rgba(46, 139, 87, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.insight-icon {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.match-insights h4 {
    color: var(--primary-green);
    font-size: 0.9rem;
    margin: 0;
}

.match-insights p {
    font-size: 0.85rem;
    margin: 0;
}

.range-slider-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-green);
}

.range-slider-bg {
    background: rgba(46, 139, 87, 0.05);
    border-radius: 8px;
    padding: 0.7rem 0.7rem 0.5rem 0.7rem;
    position: relative;
    margin-bottom: 0.2rem;
    display: flex;
    flex-direction: column;
}

.slider.dual {
    width: 100%;
    margin: 0;
    background: transparent;
    position: relative;
    pointer-events: auto;
    z-index: 1;
}

.slider.dual::-webkit-slider-thumb {
    background: var(--primary-gold);
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(46,139,87,0.15);
    transition: background 0.2s;
}
.slider.dual::-moz-range-thumb {
    background: var(--primary-gold);
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(46,139,87,0.15);
    transition: background 0.2s;
}
.slider.dual::-ms-thumb {
    background: var(--primary-gold);
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(46,139,87,0.15);
    transition: background 0.2s;
}

.slider.dual:focus {
    outline: none;
}

.nouislider-bg,
#compat-range-slider,
#age-range-slider {
    background: rgba(46, 139, 87, 0.05);
    border-radius: 8px;
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    margin-bottom: 0.2rem;
}

.noUi-target {
    background: transparent;
    border: none;
    box-shadow: none;
}

.noUi-connect {
    background: linear-gradient(90deg, var(--primary-gold) 60%, var(--primary-green) 100%);
}

.noUi-handle {
    background: var(--primary-gold);
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(46,139,87,0.15);
    width: 22px;
    height: 22px;
    top: 30%;
    transform: translateY(-30%);
    cursor: pointer;
    transition: background 0.2s;
}

.noUi-handle:focus {
    outline: none;
}

.range-value {
    font-size: 1rem;
    color: var(--primary-green);
    background: rgba(46, 139, 87, 0.05);
    border-radius: 6px;
    padding: 0.1rem 0.7rem;
    border: 1px solid rgba(46, 139, 87, 0.05);
    margin-bottom: 0.2rem;
    display: inline-block;
}

/* Custom Select Styles */
.custom-select.zodiac-select {
    position: relative;
    user-select: none;
    background: rgba(46, 139, 87, 0.05);
    border-radius: 8px;
    padding: 0;
    margin-top: 0.2rem;
    border: 1.5px solid lightslategray;
    font-size: 1rem;
    color: var(--primary-green);
    transition: border 0.2s;
    box-shadow: 0 0 8px 2px rgba(46, 139, 87, 0.12);
}

.select-selected {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}

.select-selected:after {
    content: "";
}

.select-items {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-radius: 0 0 8px 8px;
    border: 1.5px solid var(--primary-gold);
    border-top: none;
    z-index: 10;
    padding: 0.5rem 1rem 0.5rem 1rem;
    max-height: 260px;
    overflow-y: auto;
    display: block;
    /* Enhanced shadow for 3D pop */
    box-shadow: 0 8px 32px rgba(46, 139, 87, 0.22), 0 2px 8px rgba(0,0,0,0.18);
}

.select-items label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--primary-green);
    padding: 0.3rem 0;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}

.select-items label:hover {
    background: rgba(46, 139, 87, 0.07);
}

.select-items input[type="checkbox"] {
    accent-color: var(--primary-gold);
    width: 1.1em;
    height: 1.1em;
}

.select-hide {
    display: none;
}

.zodiac-select .fa-chevron-down {
    margin-left: 0.5rem;
    color: var(--primary-gold);
    font-size: 1rem;
}

/* New column structure */
.left-column {
    flex: 25%;
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.right-column {
    flex: 75%;
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

/* Reset widths for sections inside columns */
.left-column > .profile-section,
.left-column > .filters-section,
.right-column > .insights-section,
.right-column > .cosmic-tips,
.right-column > .matches-section {
    flex: none;
    max-width: none;
    min-width: 0;
    width: 100%;
}

/* Remove fixed width from cosmic-tips */
.cosmic-tips {
    flex: none !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .dashboard-row {
        flex-direction: column;
    }
    .left-column, .right-column {
        flex: 100%;
        width: 100%;
    }
}

/* Remove old styles for insights-tips-container */
.insights-tips-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    margin-bottom: 2rem;
}

/* Add to your CSS file (e.g. matchstyle.css) */
.profile-details-grid {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    margin: 1.2rem 0;
    background: rgba(46, 139, 87, 0.04);
    border-radius: 8px;
    padding: 1.2rem 1rem;
}
.profile-details-grid > div {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
    justify-content: flex-start;
    padding: 0.2rem 0;
}
.profile-details-grid .detail-icon {
    color: var(--secondary-gold);
    font-size: 1.15rem;
    width: 1.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
}
.profile-details-grid .detail-label {
    font-size: 1rem;
    color: var(--primary-green);
    font-weight: 500;
    margin-right: 0.2em;
    opacity: 1;
}
.profile-details-grid .detail-value {
    font-size: 1rem;
    color: var(--secondary-gold);
    font-weight: 500;
    display: inline;
}
.profile-interests-container {
    margin-top: 1.2rem;
    background: rgba(46, 139, 87, 0.07);
    border-radius: 8px;
    padding: 1rem 0.5rem;
}
.profile-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Edit Profile Modal (Matchmaking) */
#editProfileModal.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: flex-start; /* align to top */
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    overflow-y: auto; /* allow overlay to scroll if needed */
    padding-top: 10px; /* add space at the top */
    padding-bottom: 20px; /* add space at the bottom */
}
#editProfileModal.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
#editProfileModal .modal-content {
    background: #fff;
    border-radius: 15px;
    width: 98%;
    max-width: 1050px;
   
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    overflow-y: auto; /* allow modal to scroll inside */
    display: flex;
    flex-direction: column;
}
#editProfileForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0rem 1.5rem;
}
#editProfileForm .form-group.full-width {
    grid-column: 1 / -1;
}
@media (max-width: 900px) {
    #editProfileModal .modal-content {
        max-width: 99vw;
        padding: 1rem;
        max-height: 95vh;
    }
}
@media (max-width: 700px) {
    #editProfileForm {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
    #editProfileModal .modal-content {
        padding: 1rem !important;
        max-width: 99vw !important;
        min-width: 0 !important;
    }
}

/* Photo Grid Styles */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.7rem;
}
@media (max-width: 900px) {
    .photos-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .photos-grid { grid-template-columns: repeat(2, 1fr); }
}
.photo-card {
    background: #f8f8f8;
    border-radius: 10px;
    min-height: 0;
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.add-icon {
    font-size: 2.2rem;
    color: #bbb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-action-btn {
    position: absolute;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 2.2em;
    height: 2.2em;
    font-size: 1.3em;
    color: #2e8b57;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 2;
    transition: background 0.2s;
}
.delete-photo { top: 6px; right: 6px; }
.set-main-photo { bottom: 6px; left: 6px; }
.replace-photo-btn { bottom: 6px; right: 6px; }
.main-photo-label {
    position: absolute;
    bottom: 6px; left: 6px;
    background: #ffe066;
    color: #2e8b57;
    border-radius: 50%;
    width: 2.2em;
    height: 2.2em;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.photo-edit-btn {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    width: 2.2em;
    height: 2.2em;
    font-size: 1.2em;
    color: #2e8b57;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
}
.photo-edit-btn:focus {
    outline: 2px solid var(--primary-green);
}
.photo-action-menu {
    display: none;
    position: absolute;
    top: 44px; right: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    z-index: 10;
    min-width: 120px;
    flex-direction: column;
    padding: 0.3em 0;
}
.photo-action-menu button {
    background: none;
    border: none;
    color: #2e8b57;
    font-size: 1em;
    padding: 0.7em 1.2em;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: background 0.15s;
}
.photo-action-menu button:hover {
    background: #f3ead0;
}
@media (max-width: 600px) {
    .photo-edit-btn, .main-photo-label {
        width: 2.7em;
        height: 2.7em;
        font-size: 1.5em;
    }
    .photo-action-menu {
        min-width: 100px;
        font-size: 1em;
    }
}

/* Bio Editor Styles */
#edit-bio .ql-editor {
    min-height: 100px !important;   /* Reduce height */
    font-size: 1rem;
    color: #222;
    padding: 0.6rem 0.8rem;
}
.ql-container {

  height: 100px !important; /* Set fixed height */
 
}
#edit-bio {
    border-radius: 8px;
    border: 1.5px solid #ddd;
    background: #fff;
    margin-bottom: 1rem !important; /* Add more space below */
    min-height: 0 !important;       /* Remove extra height */
}
#editProfileForm .form-group.full-width {
    margin-bottom: 0.7rem !important; /* Ensure spacing after bio */
}

/* Add to your matchstyle.css or a new file */
.floating-heart {
    position: absolute;
    bottom: 0;
    left: 50%;
    font-size: 1.2em;
    color: #ff6b6b;
    opacity: 0.8;
    animation: floatHeart 1.1s cubic-bezier(.17,.67,.83,.67) forwards;
    pointer-events: none;
}
@keyframes floatHeart {
    0% { transform: translate(-50%,0) scale(1); opacity: 0.8; }
    60% { transform: translate(-50%,-30px) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%,-60px) scale(0.8); opacity: 0; }
}
.btn-icon.call {
    color: #2e8b57;
}
.btn-icon.call:hover {
    color: #ffe066;
    background: rgba(255, 215, 0, 0.08);
}