:root {
    --primary-color: #DCBB5F;
    --secondary-color: #146959;
    --primary-dark: #C5A447;
    --secondary-dark: #0E4A3F;
    --background: #FAFAFA;
    --text: #333333;
    --text-light: #666666;
    --border: #E0E0E0;
    --white: #FFFFFF;
    --error: #E74C3C;
    --success: #27AE60;
}

* {
    box-sizing: border-box;
}

.senior-dating-auth-container,
.senior-dating-onboarding {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.senior-dating-dashboard,
.senior-dating-matches {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Auth Styling */
.senior-dating-auth-container {
    max-width: 500px;
    background: var(--white);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    padding: 40px 20px;
    position: relative;
}

.auth-badge {
    background: #4CAF50;
    color: white;
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.auth-header {
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
}

.auth-header p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.auth-header .register-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-header .register-link:hover {
    color: var(--secondary-dark);
}

.auth-tabs {
    display: none;
}

.auth-forms {
    padding: 0;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h3 {
    display: none;
}

/* Form Styling */
.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: var(--text-light);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-bottom: 1px solid #E0E0E0;
    border-radius: 0;
    font-size: 16px;
    background: transparent;
    transition: border-color 0.3s ease;
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
    border-bottom-width: 2px;
}

.form-group input::placeholder {
    color: #BDBDBD;
}

.checkbox-group {
    margin: 20px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    cursor: pointer;
    accent-color: #E91E63;
    margin: 0;
}

.checkbox-group input[type="checkbox"]:checked {
    background: #E91E63;
    border-color: #E91E63;
}

.checkbox-group a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.auth-links {
    text-align: center;
    margin-top: 16px;
}

.auth-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

/* Forgot Password Modal */
.forgot-password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.forgot-password-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--background);
    color: var(--text);
    transform: rotate(90deg);
}

.modal-content h3 {
    color: var(--secondary-color);
    font-size: 28px;
    margin: 0 0 16px 0;
    font-weight: 700;
}

.modal-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.forgot-message {
    margin-top: 16px;
}

.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    transition: all 0.3s ease;
    background: var(--white);
    position: relative;
}

.radio-group label:hover {
    border-color: var(--primary-color);
    background: rgba(220, 187, 95, 0.05);
}

.radio-group input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    max-width: 22px;
    min-height: 22px;
    max-height: 22px;
    border: 3px solid var(--border);
    border-radius: 50% !important;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
}

.radio-group input[type="radio"]:checked {
    border-color: var(--primary-color);
    background: var(--white);
}

.radio-group input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 2px 6px rgba(220, 187, 95, 0.4);
}

.radio-group label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(220, 187, 95, 0.1);
    box-shadow: 0 2px 8px rgba(220, 187, 95, 0.2);
}

.age-range,
.height-range {
    display: flex;
    align-items: center;
    gap: 15px;
}

.age-range input {
    flex: 1;
}

.height-range select {
    flex: 1;
}

/* Button Styling */
.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.auth-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(220, 187, 95, 0.3);
}

.auth-form .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 187, 95, 0.4);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}

/* Onboarding Styling */
.onboarding-header {
    text-align: center;
    margin-bottom: 40px;
}

.onboarding-header h2 {
    color: var(--secondary-color);
    margin: 0 0 10px 0;
    font-size: 28px;
}

.onboarding-header p {
    color: var(--text-light);
    font-size: 18px;
    margin: 0 0 30px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
    width: 25%;
}

.step {
    display: none;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.step.active {
    display: block;
}

.step h3 {
    color: var(--secondary-color);
    margin: 0 0 24px 0;
    font-size: 22px;
}

.next-step,
.prev-step {
    margin: 20px 10px 0 0;
}

/* Dashboard Styling */
.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h2 {
    color: var(--secondary-color);
    margin: 0 0 20px 0;
    font-size: 28px;
}

.dashboard-nav {
    display: flex;
    border-bottom: 2px solid var(--border);
}

.nav-tab {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.dashboard-content {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Matches Styling */
.matches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.matches-header h2 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 28px;
}

.matches-stats {
    color: var(--text-light);
    font-size: 16px;
}

.matches-filters {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.filter-section {
    margin-bottom: 20px;
}

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

.filter-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: end;
}

.filter-range {
    grid-column: span 1;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-inputs input {
    flex: 1;
    min-width: 0;
}

.range-separator {
    color: var(--text-light);
    font-weight: 600;
    flex-shrink: 0;
}

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

.filter-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
}

.matches-filters select,
.matches-filters input[type="number"],
.matches-filters input[type="text"] {
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    font-size: 14px;
    transition: all 0.3s ease;
}

.matches-filters select:focus,
.matches-filters input[type="number"]:focus,
.matches-filters input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 187, 95, 0.1);
}

.matches-filters input[type="number"] {
    width: 100%;
}

.matches-filters input[type="text"]::placeholder {
    color: var(--text-light);
    font-style: italic;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-actions button {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.matches-container {
    background: var(--background);
    padding: 20px;
    border-radius: 12px;
    min-height: 400px;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.match-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Blurred profile styling */
.match-card.blurred-profile .match-photo img,
.match-card.blurred-profile .match-info {
    filter: blur(10px);
    user-select: none;
    pointer-events: none;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.upgrade-prompt {
    text-align: center;
    padding: 30px;
    max-width: 300px;
}

.upgrade-prompt h4 {
    color: var(--secondary-color);
    font-size: 22px;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.upgrade-prompt p {
    color: var(--text);
    font-size: 14px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.upgrade-prompt .upgrade-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 187, 95, 0.3);
    border: none;
    cursor: pointer;
}

.upgrade-prompt .upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 187, 95, 0.5);
    text-decoration: none;
    color: var(--white);
}

/* Fake profiles look identical to real ones */
.match-card.fake-profile {
    /* No visual difference for fake profiles */
}

.match-photo {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.match-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photo {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-photo span {
    font-size: 48px;
    font-weight: bold;
    color: var(--white);
}

.match-info {
    padding: 20px;
}

.match-info h4 {
    margin: 0 0 8px 0;
    color: var(--secondary-color);
    font-size: 20px;
}

.match-info .location {
    color: var(--text-light);
    margin: 0 0 12px 0;
    font-size: 14px;
}

.match-info .bio {
    color: var(--text);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.match-actions {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 5;
}

.match-actions button {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    z-index: 6;
}

.match-actions button:not(:disabled):hover {
    transform: translateY(-2px);
}

/* Messages */
.auth-message,
.profile-message,
.onboarding-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.success {
    background: var(--success);
    color: var(--white);
}

.error {
    background: var(--error);
    color: var(--white);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 18px;
}

.load-more {
    text-align: center;
    margin-top: 30px;
}

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

    .auth-header h2 {
        font-size: 28px;
    }

    .auth-header p {
        font-size: 13px;
    }

    .senior-dating-onboarding,
    .senior-dating-dashboard,
    .senior-dating-matches {
        padding: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .matches-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .dashboard-nav {
        flex-wrap: wrap;
    }
    
    .nav-tab {
        flex: 1;
        min-width: 120px;
    }
    
    .age-range,
    .height-range {
        flex-direction: column;
        gap: 10px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .match-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .auth-form h3 {
        font-size: 20px;
    }
    
    .onboarding-header h2 {
        font-size: 24px;
    }
    
    .dashboard-header h2,
    .matches-header h2 {
        font-size: 24px;
    }
    
    .match-photo {
        height: 200px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Animation for smooth transitions */
.auth-form,
.tab-content,
.step {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional styling for better UX */
.form-group input:invalid {
    border-color: var(--error);
}

.form-group input:valid {
    border-color: var(--success);
}

select[multiple] {
    height: auto;
    min-height: 100px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Height Slider Styling */
.height-display {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 16px;
}

#height_slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, #E8D5A0, var(--primary-color), var(--primary-dark));
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(220, 187, 95, 0.3);
}

#height_slider:hover {
    box-shadow: 0 4px 12px rgba(220, 187, 95, 0.5);
}

#height_slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: 3px solid var(--white);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(220, 187, 95, 0.5);
    transition: all 0.3s;
}

#height_slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(220, 187, 95, 0.7);
}

#height_slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: 3px solid var(--white);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(220, 187, 95, 0.5);
    transition: all 0.3s;
}

#height_slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(220, 187, 95, 0.7);
}

/* Photo Instruction Styling */
.photo-instruction {
    background: #FFF3CD;
    border: 2px solid #FFC107;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #856404;
    font-size: 14px;
    text-align: center;
}

.photo-instruction strong {
    font-weight: 700;
}

/* Drag & Drop Photo Upload Styling */
.drag-drop-area {
    position: relative;
    border: 3px dashed var(--border);
    border-radius: 12px;
    background: var(--background);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drag-drop-area:hover {
    border-color: var(--primary-color);
    background: rgba(220, 187, 95, 0.1);
}

.drag-drop-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(220, 187, 95, 0.2);
    border-style: solid;
}

.drag-drop-content {
    pointer-events: none;
}

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

.drag-drop-area p {
    margin: 0 0 8px 0;
    color: var(--text);
    font-size: 16px;
}

.drag-drop-area small {
    color: var(--text-light);
    font-size: 14px;
}

.drag-drop-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.photo-preview {
    margin-top: 15px;
    text-align: center;
}

.photo-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-preview .photo-info {
    margin-top: 10px;
    padding: 10px;
    background: var(--background);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.photo-preview .remove-photo {
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--error);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.photo-preview .remove-photo:hover {
    background: #c82333;
}

/* Legacy photo upload for compatibility */
.photo-upload {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

/* Dashboard Photo Upload Styling */
.photo-upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.current-photo,
.photo-upload-form {
    background: var(--background);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--border);
}

.current-photo h4,
.photo-upload-form h4 {
    margin: 0 0 16px 0;
    color: var(--secondary-color);
    font-size: 18px;
}

.no-photo-placeholder {
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed var(--border);
    border-radius: 12px;
    background: var(--white);
}

.no-photo-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--text-light);
}

.no-photo-placeholder p {
    color: var(--text-light);
    margin: 0;
    font-style: italic;
}

.photo-upload-message {
    margin-top: 16px;
}

@media (max-width: 768px) {
    .photo-upload-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .current-photo,
    .photo-upload-form {
        padding: 16px;
    }
    
    .no-photo-placeholder {
        padding: 30px 16px;
    }
    
    .no-photo-icon {
        font-size: 36px;
    }
}

/* Accessibility improvements */
.btn-primary:focus,
.btn-secondary:focus,
.auth-tab:focus,
.nav-tab:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Hover effects for better interactivity */
.auth-tab:hover:not(.active) {
    background: rgba(220, 187, 95, 0.1);
}

.nav-tab:hover:not(.active) {
    color: var(--primary-color);
}

/* Loading states */
.loading-state {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Events Styling */
.events-section {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
}

.events-tabs {
    display: flex;
    background: var(--background);
    border-bottom: 2px solid var(--border);
}

.events-tab {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-weight: 500;
}

.events-tab.active {
    background: var(--white);
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.events-content {
    padding: 30px;
}

.events-tab-content {
    display: none;
}

.events-tab-content.active {
    display: block;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.event-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-image .no-image {
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
}

.event-details {
    padding: 20px;
}

.event-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 12px 0;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.event-meta-item i {
    width: 16px;
    text-align: center;
}

.event-description {
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 20px;
}

.event-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.event-actions {
    display: flex;
    gap: 10px;
}

.event-actions .btn-primary,
.event-actions .btn-secondary {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    text-align: center;
}

.registered-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.registered-event {
    background: var(--background);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.registered-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.registered-event-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

.payment-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.payment-status.paid {
    background: var(--success);
    color: var(--white);
}

.payment-status.pending {
    background: var(--primary-color);
    color: var(--white);
}

.payment-status.failed {
    background: var(--error);
    color: var(--white);
}

.registered-event-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.registered-event-actions {
    display: flex;
    gap: 12px;
}

/* Enhanced Responsive Design */
@media (max-width: 1400px) {
    .filter-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .filter-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-actions {
        grid-column: span 2;
        justify-content: flex-start;
    }
}

@media (max-width: 1024px) {
    .senior-dating-dashboard,
    .senior-dating-matches {
        max-width: 100%;
        padding: 16px;
    }

    .dashboard-content {
        padding: 20px;
    }

    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .senior-dating-dashboard,
    .senior-dating-matches {
        padding: 12px;
    }
    
    .dashboard-nav {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-tab {
        flex: 1;
        min-width: 100px;
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .events-tabs {
        flex-direction: column;
    }
    
    .events-tab {
        flex: none;
        text-align: left;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .registered-event-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .registered-event-info {
        grid-template-columns: 1fr;
    }
    
    .registered-event-actions {
        flex-direction: column;
    }
    
    .matches-filters {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .senior-dating-dashboard,
    .senior-dating-matches {
        padding: 8px;
    }
    
    .dashboard-content {
        padding: 16px;
    }
    
    .events-content {
        padding: 20px 16px;
    }
    
    .event-details {
        padding: 16px;
    }
    
    .dashboard-nav {
        flex-direction: column;
        gap: 4px;
    }
    
    .nav-tab {
        min-width: auto;
        width: 100%;
    }
}

/* Mobile Filter Styles */
.mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mobile-filter-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.mobile-filter-btn svg {
    fill: currentColor;
}

.mobile-filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-filter-panel.active {
    opacity: 1;
    visibility: visible;
}

.mobile-filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.mobile-filter-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-filter-panel.active .mobile-filter-content {
    transform: translateY(0);
}

.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.mobile-filter-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
}

.mobile-filter-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.mobile-filter-close:hover {
    background: #f5f5f5;
    color: var(--text-dark);
}

.mobile-filter-body {
    padding: 20px;
}

.mobile-filter-body .filter-group {
    margin-bottom: 20px;
}

.mobile-filter-body .filter-group:last-child {
    margin-bottom: 0;
}

.mobile-filter-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.mobile-filter-body select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    background: white;
    font-size: 16px;
    color: var(--text);
    transition: border-color 0.2s ease;
}

.mobile-filter-body select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.mobile-filter-actions {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    background: white;
    position: sticky;
    bottom: 0;
}

.mobile-filter-actions button {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-filter-actions .btn-primary {
    background: var(--primary-color);
    color: white;
}

.mobile-filter-actions .btn-primary:hover {
    background: var(--primary-dark);
}

.mobile-filter-actions .btn-secondary {
    background: #f8f9fa;
    color: var(--text);
    border: 1px solid #e1e1e1;
}

.mobile-filter-actions .btn-secondary:hover {
    background: #e9ecef;
}

.desktop-filters {
    display: block;
}

/* Prevent body scroll when mobile filter is open */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Membership Styles */
.membership-status {
    margin-bottom: 30px;
}

.status-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.status-card.premium {
    border-left-color: #FFD700;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.status-header h4 {
    margin: 0;
    color: var(--text-dark);
    font-size: 20px;
}

.status-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active,
.status-badge.free {
    background: #27AE60;
    color: white;
}

.status-badge.expired {
    background: #E74C3C;
    color: white;
}

.membership-details {
    margin-bottom: 20px;
}

.detail-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.detail-item strong {
    color: var(--text-dark);
    min-width: 120px;
}

.days-left {
    color: #27AE60;
    font-weight: 600;
}

.expired {
    color: #E74C3C;
    font-weight: 600;
}

.membership-benefits h5 {
    color: var(--text-dark);
    margin: 20px 0 15px 0;
    font-size: 16px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.benefits-list li {
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-benefits li {
    color: #27AE60;
}

.free-benefits li {
    color: #F39C12;
}

.upgrade-benefits li {
    color: var(--primary-color);
}

.upgrade-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pricing-card {
    background: white;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    border-color: #FFD700;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFD700;
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.pricing-card h6 {
    margin: 0 0 15px 0;
    color: var(--text-dark);
    font-size: 16px;
}

.pricing-card .price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.pricing-card .price small {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: normal;
    margin-top: 5px;
}

.upgrade-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
}

.manage-membership {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.manage-membership h4 {
    margin: 0 0 20px 0;
    color: var(--text-dark);
}

.management-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-membership-action {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 187, 95, 0.2);
}

.btn-membership-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(220, 187, 95, 0.3);
}

.btn-membership-action:active {
    transform: translateY(0);
}

.btn-membership-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.manage-membership {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
}

.manage-membership h4 {
    margin: 0 0 20px 0;
    color: var(--text-dark);
    font-size: 20px;
}

.membership-message {
    margin-top: 20px;
}

.info-message {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

/* Hide desktop filters on mobile, show mobile filter button */
@media (max-width: 768px) {
    .desktop-filters {
        display: none;
    }
    
    .mobile-filter-btn {
        display: flex;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .management-options {
        flex-direction: column;
    }
    
    .status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Profile blurring system */
.match-card.blurred-profile {
    position: relative;
    overflow: hidden;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.upgrade-prompt {
    text-align: center;
    color: white !important;
    padding: 20px;
}

.upgrade-prompt h4 {
    color: white !important;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
}

.upgrade-prompt p {
    color: white !important;
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.4;
}

.upgrade-prompt .btn-primary {
    background: #DCBB5F;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.upgrade-prompt .btn-primary:hover {
    background: #C5A447;
}

.blurred {
    filter: blur(8px);
    pointer-events: none;
}

.match-card.blurred-profile .match-actions button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.match-card.blurred-profile .match-actions button:disabled:hover {
    background: #ccc;
    transform: none;
}

/* Compatibility scoring system */
.match-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.match-header h4 {
    margin: 0;
    flex: 1;
}

.compatibility-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 60px;
}

.score-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.score-value {
    font-size: 16px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    color: white;
    min-width: 40px;
}

.score-value.high {
    background: #27AE60;
}

.score-value.medium {
    background: #DCBB5F;
}

.score-value.low {
    background: #E74C3C;
}

@media (max-width: 768px) {
    .match-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .compatibility-score {
        align-self: flex-end;
        margin-top: -20px;
        margin-bottom: 5px;
    }
    
    .score-value {
        font-size: 14px;
        padding: 3px 6px;
    }
}
/* Modern Pricing Cards */
.pricing-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.pricing-card-modern {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid #f0f0f0;
}

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

.pricing-card-modern.current-plan-card {
    border-color: #e0e0e0;
    background: #fafafa;
}

.pricing-card-modern.recommended-card {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card-modern.recommended-card:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-card-modern.premium-card {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8faf9 100%);
}

/* Badges */
.current-badge,
.recommended-badge,
.premium-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-badge {
    background: #6c757d;
    color: white;
}

.recommended-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.premium-badge {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
}

/* Card Header */
.card-header {
    text-align: center;
    margin-bottom: 24px;
}

.package-number {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

.package-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 8px 0;
}

/* Price Section */
.price-section {
    text-align: center;
    padding: 24px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 24px;
}

.price-large {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.price-duration {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Card Description */
.card-description {
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-description p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Benefits Section */
.benefits-section {
    margin-bottom: 24px;
}

.benefits-section h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.benefits-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-modern li {
    padding: 10px 0;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f5f5f5;
}

.benefits-modern li:last-child {
    border-bottom: none;
}

.check-icon {
    color: #28a745;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.cross-icon {
    color: #dc3545;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

/* Package Buttons */
.btn-package {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-current {
    background: #e0e0e0;
    color: #666;
    cursor: not-allowed;
}

.btn-upgrade {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-upgrade:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 187, 95, 0.3);
}

.btn-premium {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
}

.btn-premium:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 105, 89, 0.3);
}

/* Pricing Note */
.pricing-note-modern {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #fff9e6;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    margin-top: 30px;
}

.note-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.note-content {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.note-content strong {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card-modern.recommended-card {
        transform: scale(1);
    }

    .pricing-card-modern.recommended-card:hover {
        transform: translateY(-8px);
    }

    .price-large {
        font-size: 36px;
    }

    .package-name {
        font-size: 16px;
    }

    .package-title {
        font-size: 18px;
    }
}

/* Event Credits Display */
.detail-item.event-credits {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.credits-info {
    margin-top: 8px;
}

.credits-remaining {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.event-credits small {
    font-size: 12px;
}

/* Dashboard Matches Section Styling */
.matches-overview {
    margin-bottom: 30px;
}

.matches-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(220, 187, 95, 0.15);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 48px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stat-info {
    flex: 1;
}

.stat-info h4 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 4px 0;
    line-height: 1;
}

.stat-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.matches-actions {
    text-align: center;
    padding: 20px;
    background: rgba(220, 187, 95, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(220, 187, 95, 0.2);
}

.matches-actions .btn-primary {
    display: inline-block;
    margin-bottom: 10px;
}

.matches-actions .upgrade-notice {
    margin: 10px 0 0 0;
    color: var(--text-secondary);
}

.matches-actions .upgrade-notice small {
    font-size: 13px;
}

.recent-matches {
    margin-top: 30px;
}

.recent-matches h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.matches-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.matches-preview-grid .loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
}

.no-matches-message {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px dashed var(--border);
    border-radius: 16px;
    margin: 20px 0;
}

.no-matches-message p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.no-preferences-message {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(220, 187, 95, 0.1) 0%, rgba(220, 187, 95, 0.05) 100%);
    border: 2px solid rgba(220, 187, 95, 0.3);
    border-radius: 16px;
    margin: 20px 0;
}

.no-preferences-message p {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .matches-stats-cards {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        font-size: 40px;
    }

    .stat-info h4 {
        font-size: 28px;
    }

    .matches-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* Email Preview Section */
.email-preview-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.email-preview-section h4 {
    color: var(--text-dark);
    font-size: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-preview-section p {
    color: var(--text);
    margin-bottom: 20px;
}

.email-preview-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.btn-preview {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 187, 95, 0.2);
}

.btn-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(220, 187, 95, 0.3);
}

.btn-preview:active {
    transform: translateY(0);
}

/* Email Preview Modal */
.email-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.email-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 10001;
    animation: modalSlideIn 0.3s ease;
}

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

.email-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

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

.email-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

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

.email-modal-body iframe {
    display: block;
    width: 100%;
    min-height: 600px;
    border: none;
    background: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .email-preview-buttons {
        grid-template-columns: 1fr;
    }

    .email-modal-content {
        width: 95%;
        max-height: 95vh;
    }

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

    .email-modal-header h3 {
        font-size: 18px;
    }

    .email-modal-body iframe {
        min-height: 500px;
    }
}

/* ================================
   Profile View Modal
   ================================ */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.profile-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.profile-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.profile-modal-loading {
    padding: 60px;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.profile-modal-header {
    position: relative;
}

.profile-modal-photos {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 30px;
}

.profile-photo-main {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.profile-photo-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.profile-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.profile-photo-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-photo-gallery img:hover {
    transform: scale(1.05);
}

.profile-photo-placeholder {
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo-placeholder span {
    font-size: 120px;
    font-weight: 700;
    color: white;
}

.profile-modal-title {
    padding: 30px;
    text-align: center;
    background: white;
}

.profile-modal-title h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: var(--text-dark);
}

.profile-location {
    font-size: 18px;
    color: var(--text-light);
    margin: 0 0 15px 0;
}

.compatibility-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.compatibility-badge.high {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.compatibility-badge.medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.compatibility-badge.low {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.compatibility-icon {
    font-size: 20px;
}

.profile-modal-info {
    padding: 30px;
}

.profile-section {
    margin-bottom: 30px;
}

.profile-section h3 {
    margin: 0 0 15px 0;
    color: var(--text-dark);
    font-size: 20px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
}

.profile-section p {
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
    margin: 0;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.profile-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    background: var(--background);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.detail-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

.profile-preferences p {
    margin: 0 0 10px 0;
    padding-left: 20px;
    position: relative;
}

.profile-preferences p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 20px;
}

.profile-modal-actions {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-top: 1px solid var(--border);
    background: var(--background);
}

.profile-modal-actions button {
    flex: 1;
    max-width: 250px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.send-message-modal {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 187, 95, 0.3);
}

.send-message-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 187, 95, 0.4);
}

.like-profile-modal {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.like-profile-modal:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .profile-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }

    .profile-photo-main,
    .profile-photo-main img {
        height: 300px;
    }

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

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

    .profile-modal-actions {
        flex-direction: column;
    }

    .profile-modal-actions button {
        max-width: 100%;
    }
}

/* Pledge Declaration Styles */
.senior-dating-pledge {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.pledge-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pledge-step {
    display: none;
    padding: 40px;
}

.pledge-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

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

.pledge-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--primary-color);
}

.pledge-header h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.pledge-header h2 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.pledge-header h3 {
    font-size: 18px;
    color: #555;
    font-weight: 500;
}

.pledge-content {
    margin-bottom: 40px;
}

.pledge-intro {
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.pledge-content h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

.pledge-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.pledge-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.pledge-text {
    flex: 1;
}

.pledge-text strong {
    display: block;
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.pledge-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pledge-text ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.pledge-text ul li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.pledge-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.pledge-notice p {
    margin: 10px 0;
    line-height: 1.7;
    color: #856404;
}

.pledge-agreement {
    text-align: center;
    margin: 40px 0;
}

.pledge-divider {
    border: none;
    border-top: 2px solid var(--primary-color);
    margin: 20px auto;
    width: 80%;
}

.pledge-commitment {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px 0;
}

/* Welcome Screen Styles */
.welcome-screen {
    text-align: center;
    padding: 60px 40px;
}

.welcome-title {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.welcome-subtitle {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-weight: 600;
}

.welcome-tagline {
    margin-bottom: 50px;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    color: white;
}

.tagline-main {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tagline-sub {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.welcome-message {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 50px;
}

.welcome-message p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.btn-large {
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 600;
    min-width: 300px;
}

/* Pledge Button Spacing */
.pledge-step button {
    margin-top: 20px;
    margin-right: 15px;
}

.pledge-step button:last-child {
    margin-right: 0;
}

/* Responsive Pledge Styles */
@media (max-width: 768px) {
    .pledge-step {
        padding: 20px;
    }

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

    .pledge-header h2 {
        font-size: 20px;
    }

    .pledge-header h3 {
        font-size: 16px;
    }

    .pledge-section {
        flex-direction: column;
        gap: 15px;
    }

    .pledge-icon {
        align-self: flex-start;
    }

    .welcome-title {
        font-size: 28px;
    }

    .welcome-subtitle {
        font-size: 22px;
    }

    .tagline-main {
        font-size: 18px;
    }

    .tagline-sub {
        font-size: 14px;
    }

    .welcome-message p {
        font-size: 16px;
    }

    .btn-large {
        min-width: 100%;
        padding: 16px 30px;
        font-size: 18px;
    }

    .pledge-step button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Messages Section */
.messages-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.messages-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    height: 600px;
}

/* Conversations List */
.conversations-list {
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.conversations-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.conversations-header h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #1f2937;
}

.conversations-search {
    position: relative;
}

.conversations-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.conversations {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.conversation-item:hover,
.conversation-item.active {
    background-color: #f9fafb;
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e63, #f06292);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unread-badge {
    background: #e91e63;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.conversation-preview {
    font-size: 14px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 12px;
    color: #9ca3af;
    margin-left: 10px;
    flex-shrink: 0;
}

.no-conversations {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

/* Messages Chat */
.messages-chat {
    display: flex;
    flex-direction: column;
    background: #fafafa;
}

.no-conversation-selected {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.no-conversation-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-user-info {
    display: flex;
    align-items: center;
}

.chat-user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.chat-user-details h4 {
    margin: 0;
    font-size: 16px;
    color: #1f2937;
}

.chat-user-status {
    font-size: 14px;
    color: #6b7280;
    margin: 2px 0 0 0;
}

.btn-view-profile {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e91e63;
    color: #e91e63;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-view-profile:hover {
    background: #e91e63;
    color: white;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.no-messages {
    text-align: center;
    color: #6b7280;
    padding: 40px 20px;
}

.message {
    max-width: 70%;
    display: flex;
    flex-direction: column;
}

.message-sent {
    align-self: flex-end;
}

.message-sent .message-content {
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.message-received {
    align-self: flex-start;
}

.message-received .message-content {
    background: white;
    color: #1f2937;
    border-radius: 18px 18px 18px 4px;
    border: 1px solid #e5e7eb;
}

.message-content {
    padding: 12px 16px;
    word-wrap: break-word;
    line-height: 1.5;
}

.message-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    padding: 0 4px;
}

.message-sent .message-time {
    text-align: right;
}

.chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

#send-message-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

#message-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
    max-height: 120px;
}

#message-input:focus {
    outline: none;
    border-color: #e91e63;
}

.btn-send-message {
    padding: 12px 24px;
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-send-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* Message Modal */
.message-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.message-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.message-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 1;
}

.message-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.message-modal-header {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.message-modal-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #1f2937;
}

.message-to-user {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.message-modal-body {
    padding: 30px;
}

.message-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
}

.cancel-message {
    padding: 12px 24px;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.cancel-message:hover {
    background: #e5e7eb;
}

.message-count {
    background: #e91e63;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .messages-layout {
        grid-template-columns: 1fr;
    }

    .conversations-list {
        border-right: none;
    }

    .chat-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        z-index: 1000;
    }

    .message {
        max-width: 85%;
    }

    .message-modal-content {
        width: 95%;
        margin: 20px;
    }

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

/* =====================================================
   Profile Split Navigation
   ===================================================== */
.profile-split-navigation {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.split-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 24px 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.split-nav-item:hover {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
}

.split-nav-item:hover .split-nav-arrow {
    transform: translateX(5px);
    color: #e91e63;
}

.split-nav-matches {
    background: linear-gradient(135deg, #fff5f7 0%, #fff 100%);
}

.split-nav-preferences {
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
}

.split-nav-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, #e5e7eb, transparent);
    margin: 10px 0;
}

.split-nav-icon {
    font-size: 32px;
    margin-right: 16px;
    min-width: 48px;
    text-align: center;
}

.split-nav-content {
    flex: 1;
}

.split-nav-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.split-nav-content p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.split-nav-arrow {
    font-size: 24px;
    color: #9ca3af;
    transition: all 0.3s ease;
    margin-left: 12px;
}

@media (max-width: 768px) {
    .profile-split-navigation {
        flex-direction: column;
    }

    .split-nav-divider {
        width: 100%;
        height: 1px;
        margin: 0;
        background: linear-gradient(to right, transparent, #e5e7eb, transparent);
    }

    .split-nav-item {
        padding: 20px;
    }

    .split-nav-icon {
        font-size: 28px;
        min-width: 40px;
    }
}

/* =====================================================
   Inline Profile & Message Panels
   ===================================================== */
.inline-profile-panel,
.inline-message-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin: 15px 0;
    overflow: hidden;
    border: 2px solid #e91e63;
}

.inline-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
}

.inline-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-inline-panel {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

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

.inline-panel-content {
    padding: 20px;
}

.inline-panel-content .profile-modal-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.inline-panel-content .profile-modal-photos {
    flex: 0 0 200px;
}

.inline-panel-content .profile-modal-photos img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.inline-panel-content .profile-photo-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #e91e63, #f06292);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 64px;
    font-weight: 600;
}

.inline-panel-content .profile-modal-title {
    flex: 1;
}

.inline-panel-content .profile-modal-title h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #1f2937;
}

.inline-panel-content .profile-location {
    color: #6b7280;
    margin: 0 0 12px 0;
}

.inline-panel-content .profile-modal-info {
    margin-top: 20px;
}

.inline-panel-content .profile-section {
    margin-bottom: 20px;
}

.inline-panel-content .profile-section h3 {
    font-size: 16px;
    color: #374151;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f3f4f6;
}

.inline-panel-content .profile-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.inline-panel-content .profile-detail {
    background: #f9fafb;
    padding: 10px 14px;
    border-radius: 8px;
}

.inline-panel-content .detail-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.inline-panel-content .detail-value {
    font-weight: 600;
    color: #1f2937;
}

.inline-panel-content .profile-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.inline-message-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.inline-message-form textarea:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.inline-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .inline-panel-content .profile-modal-header {
        flex-direction: column;
    }

    .inline-panel-content .profile-modal-photos {
        flex: none;
        width: 100%;
    }

    .inline-panel-content .profile-modal-photos img,
    .inline-panel-content .profile-photo-placeholder {
        width: 100%;
        height: 250px;
    }

    .inline-panel-content .profile-modal-actions {
        flex-direction: column;
    }

    .inline-form-actions {
        flex-direction: column;
    }
}
