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

:root {
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-green: #00ffcc;
    --dark-bg: #050505;
    --card-bg: #111111;
    --lighter-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #999999;
    --shadow-neon: 0 0 20px rgba(255, 0, 255, 0.5);
    --shadow-blue: 0 0 20px rgba(0, 255, 255, 0.5);
    --gradient-primary: linear-gradient(135deg, var(--neon-pink), var(--neon-blue));
    --gradient-secondary: linear-gradient(135deg, var(--neon-blue), var(--neon-green));
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* App Container - ensure it sticks to the top */
.app-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--dark-bg);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 0, 255, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.07) 0%, transparent 40%);
    overflow: hidden;
}

/* Remove status bar styles */
.status-bar,
.status-time,
.status-icons {
    display: none;
}

/* Fix app content to fill available space */
.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* Fix screen positioning */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow: hidden;
    height: 100%;
    padding-bottom: 60px;
    /* Account for footer height */
}

.screen.active {
    opacity: 1;
    pointer-events: all;
    display: flex;
    /* Ensure active screens display as flex */
}

/* Enhanced header styling */
.screen-header {
    margin: 0;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    height: 56px;
    /* Slightly taller header */
    padding-top: env(safe-area-inset-top);
}

/* Enhanced icon buttons */
.icon-btn {
    background: rgba(255, 255, 255, 0.12);
    /* Slightly more visible */
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    /* Slightly larger icons */
    cursor: pointer;
    width: 46px;
    /* Slightly larger */
    height: 46px;
    /* Slightly larger */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    /* Subtle shadow */
}

.icon-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Special styling for specific header icons */
#ai-btn i {
    color: var(--neon-blue);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

#filter-btn i {
    color: var(--neon-green);
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

/* Enhanced logo styling */
.logo-small {
    font-weight: bold;
    font-size: 1.5rem;
    /* Increased from 1.2rem */
    color: var(--text-primary);
    text-shadow: 0 0 8px var(--neon-pink);
    /* Enhanced glow */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    letter-spacing: 0.5px;
    /* Better letter spacing */
    background: linear-gradient(to right, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0;
}

.empty-space {
    width: 40px;
    /* Same width as icon buttons for balance */
}

/* Update match card container to account for slightly taller header */
.match-card-container {
    flex: 1;
    padding: 0 8px;
    /* less horizontal padding */
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* start higher up */
    height: calc(100% - 56px);
    /* reduce height to bring card up */
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    padding-top: 56px;
    /* Add this line to push content below the header */
}

/* 1. Ensure match card starts below header and doesn't overlap */
.match-card-container {
    top: 6px;
    /* matches .screen-header height */
    /* ...other properties unchanged... */
}

/* 2. Make only the profile details area scrollable */
.profile-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure it fills the card */
}

.profile-scrollable {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 16px 18px;
}

/* 3. Prevent card from being too high */
.match-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* <-- This is critical for flexbox scrolling */
    margin-top: 0;
    height: calc(100vh - 110px);
    max-height: calc(100vh - 110px);
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: white;
    transition: opacity 0.3s ease, transform 0.2s ease-out;
    will-change: transform, opacity;
    z-index: 10;
}

/* Adjust photo carousel height */
.photo-carousel {
    position: relative;
    height: 52%;
    /* was 58% */
    overflow: hidden;
    background-color: #000;
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
}

/* Fix carousel styling for touch interactions */
.carousel-inner {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
    will-change: transform;
    touch-action: pan-y;
    /* Important: Allow vertical scrolling but capture horizontal swipes */
    cursor: grab;
    user-select: none;
}

.carousel-inner:active {
    cursor: grabbing;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Photo indicators */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 5;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: white;
    width: 24px;
    border-radius: 4px;
}

/* Overlay buttons - positioned on sides */
.action-overlays {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* This ensures vertical centering */
    padding: 0;
    pointer-events: none;
}

/* Animation for overlay buttons */
.overlay-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    opacity: 0.8;
    pointer-events: auto;
    z-index: 10;
    position: relative;
    margin: 0 20px;
    transform-origin: center center;
}

/* Button hover animation */
.overlay-btn:hover {
    opacity: 1;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

/* Button press animation */
.overlay-btn:active {
    transform: scale(0.9);
}

/* Like button animation class */
.overlay-btn.animate-like {
    animation: likeAnimation 0.6s ease forwards;
}

/* Dislike button animation class */
.overlay-btn.animate-dislike {
    animation: dislikeAnimation 0.6s ease forwards;
}

/* Like button animation keyframes */
@keyframes likeAnimation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(46, 213, 115, 0.2);
    }

    30% {
        transform: scale(0.85);
    }

    50% {
        transform: scale(1.25);
        box-shadow: 0 0 30px rgba(46, 213, 115, 0.6);
    }

    70% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(46, 213, 115, 0.2);
    }
}

/* Dislike button animation keyframes */
@keyframes dislikeAnimation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 70, 70, 0.2);
    }

    30% {
        transform: scale(0.85);
    }

    50% {
        transform: scale(1.25);
        box-shadow: 0 0 30px rgba(255, 70, 70, 0.6);
        transform: rotate(-15deg);
    }

    70% {
        transform: scale(0.95) rotate(-5deg);
    }

    100% {
        transform: scale(1) rotate(0);
        box-shadow: 0 0 20px rgba(255, 70, 70, 0.2);
    }
}

.dislike-overlay {
    background-color: rgba(255, 70, 70, 0.9);
    color: white;
}

.like-overlay {
    background-color: rgba(46, 213, 115, 0.9);
    color: white;
}

/* Profile section - white background with black text */
.profile-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: white;
    color: #333;
    border-bottom-left-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
}

/* Improve profile header spacing */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    /* Consistent padding */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.profile-main-info {
    flex: 1;
}

.match-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #111;
}

.match-bio-short {
    color: #666;
    font-size: 0.95rem;
}

/* Favorite button */
.favorite-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background-color: #f0f0f0;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-btn:active {
    transform: scale(0.95);
}

.favorite-btn.active {
    background-color: #ffde59;
    color: #ff9800;
}

.profile-scrollable {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 16px 18px;
}

/* Profile content styling */
.profile-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 6px;
    /* was 16px 0 8px */
    color: #ff3e91;
    /* Lighter pink for white background */
}

.profile-text {
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Tag styling for white background */
.match-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #e0e0e0;
}

/* Remove match actions from bottom */
.match-actions {
    display: none;
}

/* AI button styles */
.ai-btn i {
    color: var(--neon-blue);
}

/* Remove AI suggestion bar styles which are now replaced with the AI button */
.ai-suggestion {
    display: none;
}

/* Swipe overlay animation */
.swipe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeOut 1s ease forwards;
    z-index: 10;
}

.swipe-overlay.liked {
    color: #2ed573;
}

.swipe-overlay.superliked {
    color: #00d2ff;
}

.swipe-overlay.disliked {
    color: #ff4757;
}

@keyframes fadeOut {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    10% {
        opacity: 1;
        transform: scale(1.2);
    }

    90% {
        opacity: 1;
        transform: scale(1.2);
    }

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

/* AI Dialog content */
.ai-content {
    padding: 10px 0;
}

.ai-insight {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 0, 255, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.ai-insight-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ai-section-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.ai-matches {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-match-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 12px;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-match-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.ai-match-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
}

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

.ai-match-details {
    flex: 1;
}

.ai-match-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.ai-match-compatibility {
    color: var(--neon-pink);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.ai-match-reason {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* Add these missing styles for dialog overlays */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.dialog-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.dialog {
    width: 100%;
    max-width: 380px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 0, 255, 0.1);
    max-height: 80vh;
    overflow-y: auto;
}

/* Filter dialog and form improvements */
.filter-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* Increased spacing between sections */
    margin-top: 20px;
}

/* Improved form group layout */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

/* Enhanced toggle group styling */
.toggle-group {
    display: flex;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 46px;
    /* Fixed height for consistency */
}

.toggle-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.toggle-btn:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* More prominent active state */
.toggle-btn.active {
    background: rgba(255, 0, 255, 0.2);
    color: var(--text-primary);
    position: relative;
    font-weight: 600;
}

.toggle-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    /* Thicker indicator */
    background: var(--neon-pink);
}

/* Improved range slider styling */
.range-slider-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 5px 0;
}

.range-values {
    display: flex;
    justify-content: space-between;
    /* Change to space-between for min/max */
    font-weight: 500;
    color: var(--neon-pink);
}

.range-value {
    display: flex;
    justify-content: center;
    font-weight: 500;
    color: var(--neon-pink);
}

/* Fix filter action buttons */
.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 14px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-neon);
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.12);
}

/* Improved dialog header */
.dialog-header {
    margin-bottom: 20px;
    text-align: center;
    padding-top: 5px;
}

.dialog-header h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Fix interest tags layout */
.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 5px 0;
}

.interest-tags .tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.interest-tags .tag.active {
    background: rgba(255, 0, 255, 0.2);
    border-color: rgba(255, 0, 255, 0.4);
    color: var(--text-primary);
    font-weight: 500;
}

/* Ensure bottom navigation is properly positioned */
.bottom-nav {
    height: 60px;
    padding-top: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 0, 255, 0.2);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    padding-bottom: var(--safe-area-inset-bottom);
    max-width: 480px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: var(--text-tertiary);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding-top: 4px;
    /* Small adjustment for icon positioning */
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.7rem;
}

.nav-item.active {
    color: var(--neon-pink);
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

/* Updated media query for desktop view */
@media (min-width: 481px) {
    .app-container {
        max-width: 480px;
        margin: 0 auto;
        height: 100vh;
        border-radius: 0;
        border-top: none;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 0, 255, 0.2);
        border-top: 0;
    }

    .match-card {
        height: calc(100vh - 124px);
        /* Keep consistent height calculation */
    }

    /* Only round the bottom corners on desktop */
    .bottom-nav {
        border-bottom-left-radius: var(--border-radius-xl);
        border-bottom-right-radius: var(--border-radius-xl);
    }

    /* Desktop view adjustments */
    .screen-header {
        padding-top: 0;
        /* No extra padding needed on desktop */
        height: 64px;
        /* Consistent header height */
    }

    .match-card-container {
        padding-top: 64px;
        /* Match the desktop header height */
    }
}

/* ===== MATCHES PAGE FIXES ===== */
#screen-matches {
    padding-top: 64px;
    /* Match header height */
    padding-bottom: 60px;
    /* Match footer height */
}

.matches-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    overflow-y: auto;
    height: 100%;
}

.matches-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* Matches grid layout */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Match card for grid view */
.match-grid-item {
    background: var(--lighter-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.match-grid-item:active {
    transform: scale(0.97);
}

.match-grid-photo {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.match-grid-info {
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.match-grid-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.match-grid-status {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Message preview list */
.message-list {
    display: flex;
    flex-direction: column;
}

.message-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--border-radius);
    background: var(--lighter-bg);
    margin-bottom: 8px;
    transition: background-color 0.2s ease;
}

.message-item:active {
    background-color: rgba(255, 255, 255, 0.1);
}

.message-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

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

.message-online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #2ed573;
    border-radius: 50%;
    border: 2px solid var(--lighter-bg);
}

.message-content {
    flex: 1;
}

.message-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.message-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* Segmented control for Matches/Messages tabs */
.segment-control {
    display: flex;
    margin: 0 16px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 4px;
}

.segment-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: calc(var(--border-radius) - 2px);
    transition: all 0.3s ease;
}

.segment-btn.active {
    background: var(--gradient-primary);
    color: white;
    font-weight: 500;
}

/* ===== PROFILE PAGE FIXES ===== */
#screen-profile {
    padding-top: 64px;
    /* Match header height */
    padding-bottom: 60px;
    /* Match footer height */
}

.profile-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    position: relative;
    padding-bottom: 20px;
    background-color: var(--dark-bg);
    width: 100%;
    max-width: 100%;
}

/* First, ensure screen-user-profile has proper padding-top like other screens */
#screen-user-profile {
    padding-top: 64px;
    /* Match header height */
    padding-bottom: 60px;
    /* Match footer height */
}

/* Update profile container to properly respect the header spacing */
.profile-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    position: relative;
    padding-bottom: 20px;
    background-color: var(--dark-bg);
    width: 100%;
    max-width: 100%;
}

/* Ensure user profile header doesn't get hidden */
.user-profile-header {
    padding: 40px 16px;
    background: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-left: 16px;
    margin-right: 16px;
    width: calc(100% - 32px);
    box-sizing: border-box;
}

/* Add additional space at top of profile picture container */
.profile-picture-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    margin-top: 10px;
    /* Add extra space above profile picture */
}

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.edit-profile-pic {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    background-color: var(--neon-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.user-name {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Profile sections */
.profile-sections {
    background: var(--dark-bg);
    padding: 16px;
    flex: 1;
}

.profile-section-item {
    background: var(--lighter-bg);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.profile-card {
    background-color: var(--lighter-bg);
    border-radius: 16px;
    margin-bottom: 20px;
    /* Increase bottom margin for better separation */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.profile-card-body {
    padding: 20px;
    /* Consistent padding in all card bodies */
}

/* Style for displayed content sections */
#about-section-display,
#preferences-section-display,
#interests-section-display,
#details-section-display {
    padding: 16px 20px;
    /* Consistent padding */
}

/* Interactive section headers */
.profile-section-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.profile-section-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Profile editing styles */
.profile-picture-edit {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.profile-picture-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    border: 3px solid var(--neon-pink);
    position: relative;
}

.profile-picture-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

textarea:focus {
    border-color: var(--neon-pink);
    outline: none;
}

/* Profile section expandable styling */
.profile-section-body {
    transition: max-height 0.3s ease;
    overflow: hidden;
    max-height: 0;
}

.profile-section-item.expanded .profile-section-body {
    max-height: 500px;
    padding: 16px;
}

.profile-edit-form,
.preferences-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Enhanced toggle group in preferences */
.preferences-form .toggle-group {
    margin-top: 8px;
}

/* Make sure screen headers are consistent across all pages */
.screen-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

/* Fix for screens to take up full available space */
.screen {
    height: 100%;
    padding-bottom: 60px;
    /* Footer height */
    display: flex;
    flex-direction: column;
}

/* Auth Container Styles */
.auth-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 16px;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    padding-top: 16px;
}

.auth-tab {
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 24px;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}

.auth-tab.active {
    color: #ff4d67;
}

.auth-tab.active:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: #ff4d67;
    border-radius: 3px;
}

.auth-panel {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 24px;
}

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

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

.welcome-message {
    text-align: center;
    margin-bottom: 24px;
}

.welcome-message h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #333;
}

.welcome-message p {
    color: #777;
    font-size: 15px;
}

.btn-full {
    width: 100%;
    margin-top: 16px;
}

.social-login-section {
    margin-top: auto;
    padding-top: 24px;
}

.logout-section {
    color: #ff4d67;
}

/* Improve existing auth form styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.input-icon-wrapper {
    position: relative;
    margin-top: 8px;
}

.input-icon-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-icon-wrapper input:focus {
    border-color: #ff4d67;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 77, 103, 0.1);
}

.forgot-password {
    text-align: right;
    margin-top: -8px;
}

.forgot-password a {
    color: #ff4d67;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.forgot-password a:hover {
    opacity: 0.8;
}

.btn-primary {
    background-color: #ff4d67;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #ff3652;
}

.social-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #999;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e0e0e0;
}

.social-divider span {
    padding: 0 16px;
    font-size: 14px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background-color: white;
    color: #555;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.social-btn.google:hover {
    color: #DB4437;
}

.social-btn.facebook:hover {
    color: #4267B2;
}

.social-btn.apple:hover {
    color: #000000;
}

.social-btn.twitter:hover {
    color: #1DA1F2;
}

/* Add this to your CSS file */
.required-indicator {
    color: #ff4d67;
    margin-left: 2px;
}

/* Add consistent styling for authentication links */
.app-link {
    color: #ff4d67;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.app-link:hover {
    opacity: 0.8;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #777;
}

/* Enhanced Profile Styling */
.profile-container {
    padding-bottom: 20px;
    background-color: var(--dark-bg);
    width: 100%;
    max-width: 100%;
}

.user-profile-header {
    padding: 40px 16px 30px;
    background: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-left: 16px;
    margin-right: 16px;
    width: calc(100% - 32px);
    box-sizing: border-box;
}

/* Ensure profile content has consistent width */
.profile-content {
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Make sure cards have consistent width */
.profile-card {
    background-color: var(--lighter-bg);
    border-radius: 16px;
    margin-bottom: 20px;
    /* Increase bottom margin for better separation */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    box-sizing: border-box;
}

/* Edit mode styling */
.profile-card-body.edit-mode {
    display: none;
    background-color: rgba(0, 0, 0, 0.2);
}

.edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

/* Detail items styling */
.detail-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    /* More vertical padding */
    margin: 0;
    /* Reset any margins */
}

.detail-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-pink);
    font-size: 1.1rem;
    margin-right: 16px;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 2px;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Interests styling */
.interests-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.interest-tag {
    background: rgba(255, 0, 255, 0.15);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Interest selection in edit mode */
.interest-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.interest-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.interest-option i {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--text-tertiary);
}

.interest-option span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.interest-option.selected {
    background: rgba(255, 0, 255, 0.2);
}

.interest-option.selected i,
.interest-option.selected span {
    color: var(--neon-pink);
}

/* Settings styling */
.settings-list {
    display: flex;
    flex-direction: column;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.setting-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.setting-content i {
    color: var(--neon-pink);
    font-size: 1.1rem;
}

/* Toggle switch styling */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .3s;
    border-radius: 34px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.switch-slider {
    background-color: var(--neon-pink);
}

input:checked+.switch-slider:before {
    transform: translateX(26px);
}

/* Logout button styling */
.logout-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    color: #ff4d67;
    padding: 14px 0;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    text-align: left;
    font-family: inherit;
}

.logout-button i {
    font-size: 1.1rem;
}

/* Common button styles */
.btn-primary,
.btn-secondary {
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.98);
}

/* Preference toggle group styling */
.preference-toggle {
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Profile bio text */
.profile-bio {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Name edit modal */
.name-edit-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    width: 90%;
    max-width: 320px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.name-edit-modal.active {
    display: block;
}

.name-edit-modal h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Fix the profile card header to properly position the edit icon next to the title */
.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-card-header h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.edit-section-btn {
    background: transparent;
    border: none;
    color: var(--neon-blue);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-section-btn:hover {
    background: rgba(0, 255, 255, 0.1);
}

/* Fix username and edit button placement */
.editable-name {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.user-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-right: 8px;
    margin-bottom: 8px;
}

.edit-inline-btn {
    position: static;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-inline-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* === SWIPE ANIMATIONS === */
/* Swipe animation effects - already defined earlier, no need to duplicate */
@keyframes swipeRight {
    0% {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }

    30% {
        transform: translateX(30%) rotate(5deg);
        opacity: 0.9;
    }

    100% {
        transform: translateX(150%) rotate(25deg);
        opacity: 0;
    }
}

@keyframes swipeLeft {
    0% {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }

    30% {
        transform: translateX(-30%) rotate(-5deg);
        opacity: 0.9;
    }

    100% {
        transform: translateX(-150%) rotate(-25deg);
        opacity: 0;
    }
}

.match-card.swiping-right {
    animation: swipeRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: none;
}

.match-card.swiping-left {
    animation: swipeLeft 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: none;
}

/* Heart and X animations */
.heart-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transform-origin: center center;
}

.heart-burst.animate {
    animation: heartBurst 0.8s cubic-bezier(.17, .67, .83, .67) forwards;
}

@keyframes heartBurst {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    15% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }

    30% {
        transform: translate(-50%, -50%) scale(0.9);
    }

    70% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(10);
        opacity: 0;
    }
}

.x-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
}

.x-mark.animate {
    animation: xMark 0.8s cubic-bezier(.17, .67, .83, .67) forwards;
}

@keyframes xMark {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }

    15% {
        transform: translate(-50%, -50%) scale(1.2) rotate(15deg);
        opacity: 1;
    }

    30% {
        transform: translate(-50%, -50%) scale(0.9) rotate(0deg);
    }

    70% {
        transform: translate(-50%, -50%) scale(1.1) rotate(-15deg);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(8) rotate(0deg);
        opacity: 0;
    }
}

/* Touch gesture styles */
.match-card {
    touch-action: pan-y;
    user-select: none;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
}

.match-card.dragging {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: none;
}

/* Swipe overlay container */
.swipe-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 50;
}

/* Swipe indicator appearance */
.swipe-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Shine effect for heart and X animations */
.heart-burst i,
.x-mark i {
    text-shadow: 0 0 20px currentColor;
    filter: drop-shadow(0 0 10px currentColor);
}

/* Match card container position */
.match-card-container {
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    padding-top: 56px;
    /* Keep this */
    /* REMOVE or comment out the next line if present: */
    /* top: 56px; */
}

/* Add these styles for smoother transitions */
.match-card {
    transition: opacity 0.3s ease, transform 0.1s ease-out;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    position: relative;
}

.match-card-container {
    perspective: 1000px;
}

/* Improved swipe animations */
@keyframes swipeRight {
    0% {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }

    30% {
        transform: translateX(30%) rotate(5deg);
        opacity: 0.9;
    }

    100% {
        transform: translateX(150%) rotate(25deg);
        opacity: 0;
    }
}

@keyframes swipeLeft {
    0% {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }

    30% {
        transform: translateX(-30%) rotate(-5deg);
        opacity: 0.9;
    }

    100% {
        transform: translateX(-150%) rotate(-25deg);
        opacity: 0;
    }
}

.match-card.swiping-right {
    animation: swipeRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: none;
}

.match-card.swiping-left {
    animation: swipeLeft 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: none;
}

/* New card fade-in */
.match-card.new-card {
    transition: opacity 0.3s ease;
}

/* === Add Toast Notification Styles === */
#toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100%;
    max-width: 320px;
    padding: 0 16px;
    box-sizing: border-box;
    pointer-events: none;
}

.toast {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s ease;
    word-wrap: break-word;
    backdrop-filter: blur(10px);
}

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

.toast-success {
    border-left: 4px solid #2ED573;
}

.toast-error {
    border-left: 4px solid #FF4757;
}

.toast-info {
    border-left: 4px solid #1E90FF;
}

.toast-warning {
    border-left: 4px solid #FFC312;
}