/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    height: 70px;
}

.logo h1 {
    color: #ff6b6b;
    font-size: 24px;
    font-weight: bold;
}

.logo i {
    margin-right: 8px;
    color: #4ecdc4;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: #ffffff;
}

.notification-badge {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -5px;
    right: -5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.token-balance {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.token-balance i {
    color: #ffd700;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #4ecdc4;
}

.user-menu {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 150px;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    margin-top: 70px;
    padding: 40px 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" style="stop-color:%23ff6b6b;stop-opacity:0.3" /><stop offset="100%" style="stop-color:%234ecdc4;stop-opacity:0.3" /></linearGradient></defs><rect width="1000" height="300" fill="url(%23grad)" /></svg>');
    border-radius: 20px;
    margin-bottom: 60px;
}

.hero-section h2 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Featured Streams */
.featured-streams h3 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stream-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stream-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stream-status {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.stream-viewers {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.stream-info {
    padding: 20px;
}

.stream-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stream-performer {
    color: #4ecdc4;
    font-size: 14px;
    margin-bottom: 10px;
}

.stream-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stream-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Browse Section */
.browse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.browse-header h2 {
    font-size: 32px;
}

.filters {
    display: flex;
    gap: 15px;
}

.filters select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
}

.filters select option {
    background: #1a1a2e;
    color: #ffffff;
}

/* Dating Section */
.dating-header {
    text-align: center;
    margin-bottom: 40px;
}

.dating-header h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.dating-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.tab-btn.active,
.tab-btn:hover {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.matches-grid,
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.match-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.match-card:hover {
    transform: translateY(-5px);
}

.match-avatar {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-info {
    padding: 20px;
    text-align: center;
}

.match-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.match-age {
    color: #4ecdc4;
    margin-bottom: 10px;
}

.match-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Inbox Section */
.inbox-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

.inbox-sidebar {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.inbox-sidebar h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 10px;
}

.conversation-item:hover,
.conversation-item.active {
    background: rgba(255, 255, 255, 0.1);
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.conversation-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.conversation-preview {
    font-size: 14px;
    opacity: 0.7;
}

.inbox-main {
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.chat-user-details h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.status {
    color: #4ecdc4;
    font-size: 14px;
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
}

.message.sent {
    align-self: flex-end;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
}

.message.received {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.chat-input {
    display: flex;
    padding: 20px;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 14px;
}

.chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Profile Section */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: center;
}

.profile-avatar {
    position: relative;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #4ecdc4;
}

.edit-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #4ecdc4;
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
}

.profile-info h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.profile-info p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #4ecdc4;
}

.stat-label {
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }
    
    .nav-menu {
        margin: 15px 0;
    }
    
    .hero-section h2 {
        font-size: 32px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .streams-grid {
        grid-template-columns: 1fr;
    }
    
    .inbox-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .inbox-sidebar {
        display: none;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 10px;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h2 {
        font-size: 24px;
    }
    
    .browse-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .dating-tabs {
        flex-wrap: wrap;
    }
}