:root {
    /* Color Variables */
    --primary: #df1f1f;
    --primary-dark: #b81818;
    --primary-light: #ed1f24;
    --secondary: #e20a86;
    --secondary-dark: #c00872;
    --secondary-light: #ff33a0;
    --dark: #000000;
    --dark-gray: #1a1a1a;
    --light: #ffffff;
    --gray: #666666;
    --gray-light: #f5f5f5;
    --border: #e5e5e5;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --online: #2ecc71;
    --offline: #95a5a6;
    
    /* Layout Variables */
    --sidebar-width: 280px;
    --header-height: 70px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-light);
    color: var(--dark);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--light);
    border-right: 1px solid var(--border);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 200;
    transition: transform var(--transition);
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-tagline {
    font-size: 11px;
    color: var(--gray);
    margin-top: 8px;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 24px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--gray);
    transition: var(--transition);
    margin: 4px 12px;
    border-radius: 12px;
    position: relative;
}

.nav-item i {
    width: 24px;
    font-size: 20px;
}

.nav-item span {
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(223, 31, 31, 0.05);
    color: var(--primary);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
}

.nav-item.active i,
.nav-item.active span {
    color: var(--light);
}

.online-dot {
    color: var(--online);
    font-size: 12px;
}

.badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    margin-left: auto;
}

.online-count {
    background: var(--online);
}

/* Seller Badge */
.seller-badge {
    margin: 20px 16px;
    padding: 12px;
    background: var(--gray-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--primary);
    border: 1px solid var(--border);
}

.seller-badge i {
    font-size: 16px;
}

.package-badge {
    margin-left: auto;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
}

/* Desktop Header */
.desktop-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--dark), var(--gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Online Badge */
.online-badge {
    background: linear-gradient(135deg, var(--online), #229954);
    color: var(--light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.online-badge i {
    font-size: 10px;
    margin-right: 6px;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 12px;
}

.btn-outline-small {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 30px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline-small:hover {
    background: var(--primary);
    color: var(--light);
}

.btn-primary-small {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 30px;
    color: var(--light);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(223, 31, 31, 0.3);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
}

.user-menu:hover {
    background: var(--gray-light);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: 600;
}

.username {
    font-weight: 500;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--light);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: var(--gray-light);
    color: var(--primary);
}

.user-dropdown hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid var(--border);
}

/* Mobile Header */
.mobile-header {
    display: none;
    background: var(--light);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    align-items: center;
    justify-content: space-between;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

.mobile-logo img {
    height: 32px;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.online-indicator {
    background: var(--online);
    color: var(--light);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.online-indicator i {
    font-size: 8px;
}

.mobile-login-btn {
    color: var(--primary);
    font-size: 20px;
    text-decoration: none;
}

.user-avatar-small .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: 600;
}

/* Mobile User Dropdown */
.mobile-user-dropdown {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--light);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transform: translateY(-100%);
    transition: var(--transition);
    z-index: 99;
}

.mobile-user-dropdown.show {
    transform: translateY(0);
}

.mobile-user-dropdown .user-info {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 24px;
    font-weight: 600;
}

.mobile-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
    color: var(--dark);
}

/* Bottom Navigation */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 8px 0 20px;
    z-index: 100;
    justify-content: space-around;
}

.bottom-nav .nav-item {
    flex-direction: column;
    padding: 8px;
    margin: 0;
}

.bottom-nav .nav-item i {
    font-size: 22px;
}

/* Content Container */
.content-container {
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Alerts */
.messages {
    margin-bottom: 24px;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    transition: opacity 0.3s ease;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border-left: 4px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--danger);
    color: var(--danger);
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--info);
    color: var(--info);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border-left: 4px solid var(--warning);
    color: var(--warning);
}

.close-alert {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 24px;
    padding: 48px 32px;
    margin-bottom: 32px;
    text-align: center;
    color: var(--light);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("/static/images/pattern.4e4a6d735d7a.png") repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    display: block;
}

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

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(223, 31, 31, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--light);
    color: var(--light);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: var(--light);
    color: var(--primary);
}

/* Search Section */
.search-section {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-bar {
    flex: 1;
    position: relative;
}

.search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 15px;
    background: var(--light);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(223, 31, 31, 0.1);
}

.filter-toggle-btn {
    padding: 14px 24px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    display: none;
}

/* Quick Filters */
.quick-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.quick-filter {
    padding: 8px 20px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.quick-filter:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--light);
}

.quick-filter.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: var(--light);
}

.quick-filter .count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 6px;
    font-size: 11px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-badge {
    background: var(--gray-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--gray);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.online-icon {
    color: var(--online);
    font-size: 14px;
}

.sponsored-tag {
    background: var(--gray-light);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--gray);
}

/* Admin Ads */
.admin-ads-section {
    margin-bottom: 48px;
}

.admin-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.admin-ad-card {
    background: linear-gradient(135deg, var(--dark), var(--dark-gray));
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    cursor: pointer;
    transition: var(--transition);
}

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

.admin-ad-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.ad-content {
    flex: 1;
    padding: 16px;
    color: var(--light);
}

.ad-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.ad-content p {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 12px;
}

/* Profile Cards */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.profile-card {
    background: var(--light);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

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

.profile-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.profile-card:hover .profile-image img {
    transform: scale(1.05);
}

.online-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 14px;
    height: 14px;
    background: var(--online);
    border-radius: 50%;
    border: 2px solid var(--light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vip-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--light);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.verified-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    width: 28px;
    height: 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.profile-info {
    padding: 16px;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-location {
    font-size: 12px;
    color: var(--gray);
    margin: 6px 0;
}

.profile-bio {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.4;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.interest-btn {
    width: 100%;
    padding: 12px;
    background: var(--gray-light);
    border: none;
    border-top: 1px solid var(--border);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.interest-btn:hover {
    background: var(--primary);
    color: var(--light);
}

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.product-card {
    background: var(--light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

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

.product-image {
    position: relative;
    aspect-ratio: 1;
}

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

.featured-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.product-info {
    padding: 16px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.product-seller {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Load More */
.load-more {
    text-align: center;
    margin: 32px 0;
}

.load-more-btn {
    background: var(--light);
    border: 1px solid var(--border);
    padding: 12px 32px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: var(--light);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profiles-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .bottom-nav {
        display: flex;
    }
    
    .content-container {
        padding: 16px;
        padding-bottom: 80px;
    }
    
    .hero-banner {
        padding: 32px 20px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .search-section {
        flex-direction: column;
    }
    
    .filter-toggle-btn {
        display: block;
    }
    
    .quick-filters {
        margin-bottom: 24px;
    }
    
    .admin-ads-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-ad-card {
        flex-direction: column;
    }
    
    .admin-ad-card img {
        width: 100%;
        height: 160px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    .profiles-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .profile-card {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }
    
    .profile-info {
        flex: 1;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .auth-buttons {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .profiles-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .quick-filter {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .profile-card {
        flex-direction: column;
    }
    
    .profile-image {
        width: 100%;
        height: auto;
    }
}


/* Online Status Badge - Desktop Header */
.online-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 204, 113, 0.15);
    padding: 6px 14px;
    border-radius: 40px;
    border: 1px solid rgba(46, 204, 113, 0.3);
    transition: var(--transition);
}

.online-status-badge:hover {
    background: rgba(46, 204, 113, 0.25);
    border-color: rgba(46, 204, 113, 0.5);
}

.online-dot-pulse {
    width: 10px;
    height: 10px;
    background: var(--online);
    border-radius: 50%;
    position: relative;
    animation: pulse 1.5s infinite;
}

.online-dot-pulse::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--online);
    border-radius: 50%;
    opacity: 0.4;
    animation: ripple 1.5s infinite;
}

.online-dot-pulse.small {
    width: 8px;
    height: 8px;
}

.online-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--online);
}

.online-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--online);
    background: rgba(46, 204, 113, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 4px;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Sidebar Online Count Badge */
.online-count-badge {
    background: var(--online);
    color: white;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    margin-left: auto;
    min-width: 28px;
    text-align: center;
}

/* Sidebar Online Now Item Styling */
.nav-item .online-dot {
    color: var(--online);
    font-size: 10px;
    animation: pulse 1.5s infinite;
}

/* Mobile Online Badge */
.online-status-badge.mobile {
    background: rgba(46, 204, 113, 0.15);
    padding: 4px 10px;
    gap: 6px;
}

.online-status-badge.mobile .online-number {
    font-size: 12px;
    padding: 1px 6px;
}

/* Bottom Navigation Online Count */
.online-count-badge.bottom {
    background: var(--online);
    color: white;
    border-radius: 20px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    text-align: center;
}

/* Alternative style - Compact Version */
.online-badge-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(46, 204, 113, 0.1);
    padding: 4px 10px;
    border-radius: 30px;
}

.online-badge-compact .online-dot {
    width: 8px;
    height: 8px;
    background: var(--online);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.online-badge-compact .online-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--online);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .online-status-badge {
        padding: 4px 10px;
    }
    
    .online-text {
        display: none;
    }
    
    .online-number {
        font-size: 12px;
        padding: 1px 6px;
    }
    
    .online-dot-pulse {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .online-status-badge.mobile {
        padding: 4px 8px;
    }
    
    .online-number {
        font-size: 11px;
    }
}

/* Hover tooltip effect */
.online-status-badge {
    position: relative;
    cursor: default;
}

.online-status-badge:hover::after {
    content: 'Currently active users';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.online-status-badge.mobile:hover::after {
    bottom: -25px;
    font-size: 10px;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Close Button */
.sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.sidebar-close:hover {
    background: var(--gray-light);
    color: var(--primary);
}

/* Sidebar Styles for Mobile */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: none;
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar-close {
        display: flex;
    }
    
    body.sidebar-open {
        overflow: hidden;
    }
}

@media (min-width: 769px) {
    .sidebar-close {
        display: none;
    }
    
    .sidebar-overlay {
        display: none;
    }
}

/* Smooth transitions */
.sidebar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar header positioning for mobile */
.sidebar-header {
    position: relative;
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

/* Mobile menu toggle button */
.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background: var(--gray-light);
    color: var(--primary);
}

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

/* Mobile header adjustments */
.mobile-header {
    display: none;
    background: white;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }
    
    .desktop-header {
        display: none;
    }
}

/* Sidebar navigation items - ensure they work on mobile */
.sidebar-nav .nav-item {
    cursor: pointer;
}

.sidebar-nav .nav-item:active {
    transform: scale(0.98);
}

/* Animation for sidebar items on mobile */
@media (max-width: 768px) {
    .sidebar-nav .nav-item {
        opacity: 0;
        transform: translateX(-20px);
        animation: slideIn 0.3s forwards;
    }
    
    .sidebar-nav .nav-item:nth-child(1) { animation-delay: 0.05s; }
    .sidebar-nav .nav-item:nth-child(2) { animation-delay: 0.1s; }
    .sidebar-nav .nav-item:nth-child(3) { animation-delay: 0.15s; }
    .sidebar-nav .nav-item:nth-child(4) { animation-delay: 0.2s; }
    .sidebar-nav .nav-item:nth-child(5) { animation-delay: 0.25s; }
    .sidebar-nav .nav-item:nth-child(6) { animation-delay: 0.3s; }
    .sidebar-nav .nav-item:nth-child(7) { animation-delay: 0.35s; }
    .sidebar-nav .nav-item:nth-child(8) { animation-delay: 0.4s; }
    
    @keyframes slideIn {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* Sidebar open animation */
.sidebar.open .sidebar-nav .nav-item {
    animation: slideIn 0.3s forwards;
}

/* Filter Sidebar - Desktop & Mobile */
.filter-sidebar {
    position: fixed;
    right: -380px;
    top: 0;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 24px;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.filter-sidebar.open {
    right: 0;
}

/* Desktop filter sidebar visibility */
@media (min-width: 769px) {
    .filter-sidebar {
        position: sticky;
        right: auto;
        top: 90px;
        width: 280px;
        height: auto;
        max-height: calc(100vh - 100px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        border-radius: 16px;
        margin-left: auto;
        transition: none;
    }
    
    .filter-sidebar.open {
        right: auto;
    }
    
    .filter-overlay {
        display: none !important;
    }
    
    .filter-toggle-btn {
        display: none !important;
    }
}

/* Mobile filter sidebar */
@media (max-width: 768px) {
    .filter-sidebar {
        width: 85%;
        max-width: 320px;
        right: -85%;
    }
    
    .filter-sidebar.open {
        right: 0;
    }
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.filter-header h3 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.close-filter {
    background: var(--gray-light);
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--gray);
    width: 32px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-filter:hover {
    background: var(--primary);
    color: white;
}

.filter-group {
    margin-bottom: 24px;
}

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

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(223, 31, 31, 0.1);
}

.age-range {
    display: flex;
    gap: 12px;
    align-items: center;
}

.age-range input {
    flex: 1;
}

.age-range span {
    color: var(--gray);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.interests-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    font-size: 13px;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.interests-grid label:hover {
    background: var(--gray-light);
}

.interests-grid input {
    width: auto;
    margin-right: 4px;
    cursor: pointer;
    accent-color: var(--primary);
}

.apply-filters,
.clear-filters {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
    text-align: center;
}

.apply-filters {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
}

.apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(223, 31, 31, 0.3);
}

.clear-filters {
    background: none;
    border: 1px solid var(--border);
    color: var(--gray);
}

.clear-filters:hover {
    background: var(--gray-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Filter Overlay (mobile only) */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(2px);
}

.filter-overlay.show {
    display: block;
}

/* Filter Toggle Button */
.filter-toggle-btn {
    padding: 14px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-toggle-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Mobile filter toggle button visibility */
@media (max-width: 768px) {
    .filter-toggle-btn {
        display: flex;
    }
}

/* Prevent body scroll when filter is open */
body.filter-open {
    overflow: hidden;
}

/* Desktop: Filter sidebar as column */
@media (min-width: 769px) {
    .two-column-layout {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 24px;
    }
    
    .filter-sidebar {
        position: sticky;
        top: 90px;
        width: 100%;
        margin: 0;
    }
}

/* Mobile Auth Icons */
.auth-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-login-btn,
.mobile-register-btn {
    color: var(--primary);
    font-size: 18px;
    text-decoration: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.mobile-login-btn:hover,
.mobile-register-btn:hover {
    background: var(--gray-light);
    color: var(--primary-dark);
}

/* Mobile Actions */
.mobile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Ensure filter button is visible on mobile */
@media (max-width: 768px) {
    .filter-toggle-btn {
        display: flex !important;
    }
}

/* Bottom Navigation - ensure online badge styling */
.bottom-nav .online-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--online);
    color: white;
    border-radius: 20px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}


/* Chat Button */
.chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(223, 31, 31, 0.3);
}

.chat-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Profile action buttons */
.profile-actions-buttons {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: white;
}

.profile-actions-buttons .chat-btn,
.profile-actions-buttons .interest-btn {
    flex: 1;
    justify-content: center;
}


/* Ad click tracking styles */
.admin-hero {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.admin-hero:active {
    transform: translateY(0);
}

.carousel-slide {
    cursor: pointer;
}

.ad-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--gray);
}

.click-count {
    color: var(--primary);
}

.impression-count {
    color: var(--info);
}


