:root {
    --primary-color: #ff4b2b;
    --secondary-color: #ff416c;
    --google-blue: #4285F4;
    --fb-blue: #1877F2;
    --text-color: #2d3436;
    --bg-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    margin: 0;
    min-height: 100vh;
    color: var(--text-color);
}

.btn {
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.btn-nav {
    width: 130px;
    height: 42px;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: var(--bg-gradient);
    color: white !important;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-nav.premium {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
}

.btn-nav.logout {
    background: #000000;
}

/* Header */
.full-banner {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

/* Main Layout Wrapper */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Match Cards (Home) */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.match-card {
    background: white;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.match-card:hover { transform: translateY(-5px); }

.match-card img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 15px;
    object-fit: cover;
}

.container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 40px;
    margin: 40px auto;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }

    .banner-title {
        font-size: 1.5rem;
    }

    .full-banner {
        position: relative;
        padding: 10px 0;
    }

    .btn-nav {
        width: 100px;
        height: 36px;
        font-size: 0.75rem;
    }

    .main-wrapper {
        padding: 10px;
    }

    .container {
        padding: 30px 20px;
        margin: 20px auto;
    }

    .profile-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .match-card {
        padding: 10px;
    }

    .match-card h3 {
        font-size: 0.9rem;
    }
}

/* Specific fix for Inbox on Mobile */
@media (max-width: 900px) {
    .inbox-card {
        flex-direction: column;
        height: auto;
        border-radius: 0;
    }
    .sidebar {
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .inbox-container {
        padding: 0;
        height: auto;
    }
    .chat-view {
        height: 500px;
    }
}

/* Vertical Stack for Header Buttons on Mobile */
@media (max-width: 768px) {
    .user-summary, 
    .banner-content > div:last-child {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        align-items: center;
    }

    .btn-nav {
        width: 100%;
        max-width: 280px; /* Optional: limit how wide they go on mobile */
    }
}
