/* ============================================
   DASHBOARD.CSS - PenziMatch Kenya
   Complete Styling for Dashboard UI
   ============================================ */

/* ---- CSS Variables (Root) ---- */
:root {
    /* Primary Colors */
    --color-royal-blue: #0F4C81;
    --color-royal-blue-light: #1A6BA8;
    --color-royal-blue-dark: #0A3A61;
    --color-deep-red: #C62828;
    --color-deep-red-light: #E53935;
    --color-deep-red-dark: #961F1F;
    
    /* Secondary Colors */
    --color-white: #FFFFFF;
    --color-soft-gold: #D4AF37;
    --color-soft-gold-light: #E8C84A;
    --color-soft-gold-dark: #B8952E;
    --color-charcoal: #333333;
    --color-charcoal-light: #666666;
    --color-charcoal-lighter: #999999;
    --color-gray-light: #F0F2F5;
    --color-gray-border: #E8ECF0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0F4C81 0%, #C62828 100%);
    --gradient-hero: linear-gradient(135deg, rgba(15, 76, 129, 0.95) 0%, rgba(198, 40, 40, 0.9) 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #E8C84A 50%, #B8952E 100%);
    --gradient-soft: linear-gradient(135deg, rgba(15, 76, 129, 0.05) 0%, rgba(198, 40, 40, 0.05) 100%);
    
    /* Typography */
    --font-heading: 'Montserrat', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-accent: 'Poppins', -apple-system, sans-serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-xxxl: 64px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-xxl: 32px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.18);
    --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.15);
    
    /* Sidebar Width */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 72px;
}

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--color-gray-light);
    color: var(--color-charcoal);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-royal-blue);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-royal-blue-dark);
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--color-white);
    border-right: 1px solid var(--color-gray-border);
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg) var(--spacing-md);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-sm) var(--spacing-lg) var(--spacing-sm);
    border-bottom: 1px solid var(--color-gray-border);
    margin-bottom: var(--spacing-lg);
}

.brand-icon {
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.brand-sub {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    color: var(--color-charcoal-lighter);
    letter-spacing: 3px;
    text-transform: uppercase;
    -webkit-text-fill-color: var(--color-charcoal-lighter);
}

/* ---- Navigation ---- */
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    color: var(--color-charcoal-light);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background: var(--gradient-soft);
    color: var(--color-royal-blue);
}

.nav-item.active {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.nav-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.nav-item .nav-badge {
    margin-left: auto;
    background: var(--color-deep-red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    min-width: 24px;
    text-align: center;
}

.nav-item.active .nav-badge {
    background: var(--color-soft-gold);
    color: var(--color-charcoal);
}

.nav-item .message-badge {
    background: var(--color-soft-gold);
    color: var(--color-charcoal);
}

/* ---- Sidebar Bottom ---- */
.sidebar-bottom {
    border-top: 1px solid var(--color-gray-border);
    padding-top: var(--spacing-lg);
    margin-top: auto;
}

.premium-card {
    background: var(--gradient-soft);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 12px;
    color: var(--color-soft-gold-dark);
    margin-bottom: var(--spacing-xs);
}

.premium-text {
    font-size: 12px;
    color: var(--color-charcoal-light);
    margin-bottom: var(--spacing-sm);
}

.btn-premium-small {
    background: var(--gradient-gold);
    border: none;
    color: var(--color-charcoal);
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 12px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-premium-small:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* ---- User Mini ---- */
.user-mini {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
    cursor: pointer;
}

.user-mini:hover {
    background: var(--color-gray-light);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-royal-blue);
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--color-charcoal);
}

.user-status {
    font-size: 11px;
    color: #4CAF50;
    font-weight: 500;
}

.user-status::before {
    content: '●';
    margin-right: 4px;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--color-charcoal-lighter);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #FEE2E2;
    color: var(--color-deep-red);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: var(--spacing-lg) var(--spacing-xl);
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Header ---- */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0 var(--spacing-lg) 0;
    border-bottom: 1px solid var(--color-gray-border);
    margin-bottom: var(--spacing-xl);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex: 1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-charcoal);
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
}

.menu-toggle:hover {
    background: var(--color-gray-light);
}

.header-search {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--color-white);
    border: 1px solid var(--color-gray-border);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    flex: 1;
    max-width: 400px;
    transition: all 0.3s ease;
}

.header-search:focus-within {
    border-color: var(--color-royal-blue);
    box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.08);
}

.header-search input {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-charcoal);
    width: 100%;
}

.header-search input::placeholder {
    color: var(--color-charcoal-lighter);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.icon-btn {
    position: relative;
    background: none;
    border: none;
    padding: var(--spacing-sm);
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-charcoal-light);
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--color-gray-light);
    color: var(--color-royal-blue);
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--color-deep-red);
    border-radius: 50%;
    border: 2px solid var(--color-white);
}

/* ---- Page Content ---- */
.page-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.page-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
}

.page-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-charcoal);
}

/* ---- Welcome Banner ---- */
.welcome-banner {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl) var(--spacing-xxl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '❤️';
    position: absolute;
    right: -30px;
    bottom: -30px;
    font-size: 140px;
    opacity: 0.1;
}

.welcome-text h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.welcome-text p {
    font-size: 16px;
    opacity: 0.9;
}

.welcome-text strong {
    font-weight: 700;
    color: var(--color-soft-gold);
}

.welcome-actions {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.btn-premium {
    background: var(--gradient-gold);
    border: none;
    color: var(--color-charcoal);
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-small {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary-small:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ---- Filter Bar ---- */
.filter-bar {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--color-gray-border);
    border-radius: var(--radius-full);
    background: var(--color-white);
    color: var(--color-charcoal-light);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--color-royal-blue);
    color: var(--color-royal-blue);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--color-white);
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.filter-btn.more-filters {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* ---- Matches Grid ---- */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* ---- Match Card ---- */
.match-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--color-gray-border);
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.match-card.premium-card {
    border: 2px solid var(--color-soft-gold);
    position: relative;
}

.match-card.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 0 0 0 60px;
    opacity: 0.1;
    pointer-events: none;
}

.card-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--color-gray-light);
}

.card-badges {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-badge {
    background: var(--gradient-gold);
    color: var(--color-charcoal);
}

.verified-badge {
    background: #4CAF50;
    color: white;
}

.online-badge {
    background: #4CAF50;
    color: white;
}

.new-badge {
    background: var(--color-royal-blue);
    color: white;
}

.card-actions-top {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
}

.card-icon-btn {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.card-icon-btn:hover {
    background: rgba(198, 40, 40, 0.8);
    transform: scale(1.1);
}

.card-icon-btn.favorite.active svg {
    fill: var(--color-deep-red);
    stroke: var(--color-deep-red);
}

.card-content {
    padding: var(--spacing-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-charcoal);
}

.card-location {
    font-size: 13px;
    color: var(--color-charcoal-light);
}

.compatibility-score {
    flex-shrink: 0;
}

.score-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 12px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin: var(--spacing-sm) 0;
}

.tag {
    background: var(--color-gray-light);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--color-charcoal-light);
}

.card-bio {
    font-size: 14px;
    color: var(--color-charcoal-light);
    line-height: 1.6;
    margin: var(--spacing-sm) 0 var(--spacing-md) 0;
}

.card-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.btn-like, .btn-dislike, .btn-superlike {
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-like {
    background: var(--color-deep-red);
    color: white;
}

.btn-like:hover {
    background: var(--color-deep-red-dark);
    transform: scale(1.05);
}

.btn-dislike {
    background: var(--color-gray-light);
    color: var(--color-charcoal-light);
}

.btn-dislike:hover {
    background: #E5E7EB;
    transform: scale(1.05);
}

.btn-superlike {
    background: var(--gradient-gold);
    color: var(--color-charcoal);
}

.btn-superlike:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* ---- Load More ---- */
.load-more {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.btn-load-more {
    background: transparent;
    border: 2px solid var(--color-gray-border);
    color: var(--color-charcoal-light);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 40px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    border-color: var(--color-royal-blue);
    color: var(--color-royal-blue);
}

/* ============================================
   MATCHES PAGE
   ============================================ */

.match-stats {
    display: flex;
    gap: var(--spacing-lg);
}

.stat-item {
    font-size: 14px;
    color: var(--color-charcoal-light);
}

.match-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-border);
    transition: all 0.2s ease;
}

.match-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.match-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.match-info {
    flex: 1;
}

.match-info h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

.match-info p {
    font-size: 13px;
    color: var(--color-charcoal-light);
}

.match-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

.btn-message {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-message:hover {
    transform: scale(1.05);
}

.btn-view-profile {
    background: transparent;
    color: var(--color-charcoal-light);
    border: 1px solid var(--color-gray-border);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-profile:hover {
    border-color: var(--color-royal-blue);
    color: var(--color-royal-blue);
}

/* ============================================
   MESSAGES PAGE
   ============================================ */

.btn-new-message {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-new-message:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.message-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-border);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.message-item:hover {
    background: var(--color-gray-light);
    transform: translateX(4px);
}

.message-item.unread {
    border-left: 4px solid var(--color-royal-blue);
}

.message-item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.message-info {
    flex: 1;
}

.message-sender {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.sender-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-charcoal);
}

.message-time {
    font-size: 12px;
    color: var(--color-charcoal-lighter);
}

.message-preview {
    font-size: 14px;
    color: var(--color-charcoal-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.unread-badge {
    position: absolute;
    right: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-deep-red);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    min-width: 24px;
    text-align: center;
}

/* ============================================
   COMMUNITIES PAGE
   ============================================ */

.btn-create-community {
    background: transparent;
    border: 2px solid var(--color-royal-blue);
    color: var(--color-royal-blue);
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-create-community:hover {
    background: var(--color-royal-blue);
    color: white;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

.community-card {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-border);
    text-align: center;
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.community-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
}

.community-card h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.community-card p {
    color: var(--color-charcoal-light);
    font-size: 14px;
}

.community-desc {
    margin: var(--spacing-sm) 0 var(--spacing-md) 0;
    line-height: 1.5;
}

.btn-join {
    background: transparent;
    border: 2px solid var(--color-royal-blue);
    color: var(--color-royal-blue);
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 32px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-join:hover {
    background: var(--color-royal-blue);
    color: white;
}

/* ============================================
   PROFILE PAGE
   ============================================ */

.profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.profile-header-section {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.profile-cover {
    height: 200px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: relative;
}

.profile-avatar-large {
    position: absolute;
    bottom: -60px;
    left: var(--spacing-xl);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-md);
    background: var(--color-white);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.verified-badge-large {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #4CAF50;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    border: 3px solid var(--color-white);
}

.profile-info-header {
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-xl) 180px;
    background: var(--color-white);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    border: 1px solid var(--color-gray-border);
    border-top: none;
}

.profile-info-header h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--color-charcoal);
}

.profile-location {
    color: var(--color-charcoal-light);
    font-size: 16px;
    margin: var(--spacing-xs) 0 var(--spacing-md) 0;
}

.profile-tags {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.profile-tag {
    background: var(--color-gray-light);
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--color-charcoal-light);
}

.profile-actions {
    display: flex;
    gap: var(--spacing-md);
}

.btn-edit-profile {
    background: var(--color-white);
    border: 2px solid var(--color-royal-blue);
    color: var(--color-royal-blue);
    padding: 10px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit-profile:hover {
    background: var(--color-royal-blue);
    color: white;
}

.profile-premium {
    padding: 10px 28px;
    font-size: 14px;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
}

.profile-about {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-border);
}

.profile-about h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.profile-about p {
    color: var(--color-charcoal-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.profile-interests h4 {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: var(--spacing-sm);
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.interest-tag {
    background: var(--gradient-soft);
    color: var(--color-royal-blue);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.stat-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-border);
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--color-royal-blue);
}

.stat-label {
    font-size: 12px;
    color: var(--color-charcoal-light);
    font-weight: 500;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* ---- Tablet ---- */
@media (max-width: 1024px) {
    .profile-details-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: var(--spacing-md);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .dashboard-header {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
    
    .header-search {
        max-width: 100%;
    }
    
    .welcome-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-xl);
        gap: var(--spacing-md);
    }
    
    .welcome-banner::before {
        display: none;
    }
    
    .welcome-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .welcome-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-info-header {
        padding: var(--spacing-xl) var(--spacing-md) var(--spacing-xl) var(--spacing-md);
        text-align: center;
    }
    
    .profile-avatar-large {
        left: 50%;
        transform: translateX(-50%);
        bottom: -50px;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .profile-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .profile-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: var(--spacing-sm);
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .message-item {
        padding: var(--spacing-md);
    }
    
    .message-preview {
        max-width: 150px;
    }
}

/* ---- Small Mobile ---- */
@media (max-width: 480px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .match-stats {
        flex-wrap: wrap;
    }
    
    .score-ring {
        width: 36px;
        height: 36px;
        font-size: 10px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hidden {
    display: none !important;
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

/* Overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}