:root {
    --primary: #A855F7;
    --primary-hover: #9333EA;
    --secondary: #3B82F6;
    --accent: #FF6B6B;
    --accent-gold: #F59E0B;
    --danger: #ED4245;
    --warning: #FCD34D;
    
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --bg-elevated: #2f2f2f;
    
    --text-primary: #ffffff;
    --text-secondary: #b5b5b5;
    --text-muted: #6f6f6f;
    
    --border: #3a3a3a;
    --border-subtle: #2a2a2a;
    
    --gradient-brand: linear-gradient(135deg, #FF6B6B 0%, #A855F7 50%, #3B82F6 100%);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #404040;
}

/* App Container */
.app-container {
    display: grid;
    grid-template-columns: 72px 280px 1fr 300px;
    height: 100vh;
}

/* Sidebar Navigation */
.sidebar-nav {
    background: var(--bg-primary);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
}

.nav-brand {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
    width: 48px;
    height: 48px;
    background: var(--gradient-brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: white;
    cursor: pointer;
    transition: border-radius 0.2s ease;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.brand-logo:hover {
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.6);
}

.nav-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
}

.nav-item {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color: var(--text-secondary);
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item:hover {
    background: var(--primary);
    color: white;
    border-radius: var(--radius-lg);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -12px;
    width: 4px;
    height: 24px;
    background: white;
    border-radius: 0 4px 4px 0;
}

.nav-profile {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    box-shadow: 0 0 0 3px var(--bg-primary), 0 0 12px rgba(168, 85, 247, 0.3);
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px var(--bg-primary), 0 0 16px rgba(168, 85, 247, 0.5);
}

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

/* Sidebar List */
.sidebar-list {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.list-view {
    display: none;
    flex-direction: column;
    height: 100%;
}

.list-view.active {
    display: flex;
}

.list-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-header h2 {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

/* Channel List */
.channel-list,
.dm-list,
.event-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.channel-item:hover {
    background: var(--bg-tertiary);
}

.channel-item.active {
    background: var(--bg-elevated);
}

.channel-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.channel-icon svg {
    width: 100%;
    height: 100%;
}

.channel-info {
    flex: 1;
    min-width: 0;
}

.channel-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-status {
    font-size: 12px;
    color: var(--text-muted);
}

/* DM Item */
.dm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.dm-item:hover {
    background: var(--bg-tertiary);
}

.dm-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}

.dm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dm-info {
    flex: 1;
    min-width: 0;
}

.dm-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.dm-preview {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Event Item */
.event-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-item:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.event-time {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.event-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.event-game {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.event-participants {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.event-avatars {
    display: flex;
    margin-left: auto;
}

.event-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--bg-tertiary);
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

.event-avatar:first-child {
    margin-left: 0;
}

/* Settings Menu */
.settings-menu {
    padding: 8px;
}

.settings-item {
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.settings-item:hover {
    background: var(--bg-tertiary);
}

.settings-item.active {
    background: var(--bg-elevated);
    color: var(--primary);
}

/* Main Content */
.main-content {
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-view {
    display: none;
    flex-direction: column;
    height: 100%;
}

.content-view.active {
    display: flex;
}

.content-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
}

.content-header h1 {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 4px;
}

.content-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn svg {
    width: 18px;
    height: 18px;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

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

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Stream Grid */
.stream-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 16px;
    padding: 20px;
    overflow-y: auto;
}

.stream-box {
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.stream-box:hover {
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.2);
}

.stream-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.stream-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stream-box:hover .stream-overlay {
    opacity: 1;
}

.stream-user {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.stream-stats {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Voice Panel */
.voice-panel {
    position: fixed;
    bottom: 0;
    left: 352px;
    right: 300px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 100;
}

.voice-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
}

.voice-participants {
    flex: 1;
    display: flex;
    gap: 12px;
    align-items: center;
}

.voice-participant {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.voice-participant-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.voice-participant-name {
    font-size: 13px;
    font-weight: 500;
}

.voice-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3BA55D;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Right Sidebar */
.sidebar-right {
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-subtle);
    padding: 20px;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.member-item:hover {
    background: var(--bg-tertiary);
}

.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3BA55D;
    border: 2px solid var(--bg-secondary);
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.member-status {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty States */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
}

.empty-state-small {
    padding: 40px 20px;
    text-align: center;
}

.empty-state-small p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Calendar */
.calendar-container {
    padding: 20px;
    overflow-y: auto;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
}

.calendar-day.has-event {
    border-color: var(--accent-green);
    background: rgba(59, 165, 93, 0.1);
}

/* Settings Panel */
.settings-panel {
    padding: 20px;
    overflow-y: auto;
}

.settings-section {
    display: none;
    max-width: 600px;
}

.settings-section.active {
    display: block;
}

.settings-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Manrope', sans-serif;
}

.profile-edit {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-picture-edit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.profile-picture-edit img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    transition: all 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-secondary);
}

.input::placeholder {
    color: var(--text-muted);
}

textarea.input {
    resize: vertical;
    min-height: 80px;
    font-family: 'DM Sans', sans-serif;
}

select.input {
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-32px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
}

.btn-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

/* Onboarding */
.onboarding {
    max-width: 600px;
    padding: 48px;
}

.onboarding-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-large {
    font-family: 'Manrope', sans-serif;
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.3));
}

.onboarding-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.profile-setup {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.profile-picture-upload {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.upload-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px dashed var(--border);
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-placeholder:hover {
    border-color: var(--primary);
    background: var(--bg-elevated);
}

.upload-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

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

.profile-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .app-container {
        grid-template-columns: 72px 240px 1fr 280px;
    }
}

/* Utility Classes */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Chat Panel */
.chat-panel {
    position: fixed;
    bottom: 0;
    left: 352px;
    right: 300px;
    height: 300px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.chat-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 14px;
    background: var(--bg-tertiary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-message {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.chat-message:hover {
    background: var(--bg-tertiary);
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.chat-message-content {
    flex: 1;
    min-width: 0;
}

.chat-message-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}

.chat-message-author {
    font-weight: 600;
    font-size: 14px;
}

.chat-message-time {
    font-size: 11px;
    color: var(--text-muted);
}

.chat-message-text {
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-input-container {
    padding: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    background: var(--bg-tertiary);
}

.chat-input {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    transition: all 0.2s;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

/* Audio Level Bar */
.audio-level-bar {
    position: relative;
    border: 1px solid var(--border);
}

/* Adjust main content when chat is visible */
.stream-grid {
    max-height: calc(100vh - 200px - 300px);
}


/* Real-time Multiplayer Styles */

.server-join-options {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    margin: 24px 0;
}

.join-option {
    text-align: center;
}

.join-option h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    width: 1px;
    height: 40px;
    background: var(--border);
}

.server-code-input {
    font-family: 'Manrope', monospace !important;
}

/* Top Bar */
.top-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
}

.server-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-code-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.server-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
}

.server-code {
    font-family: 'Manrope', monospace;
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.connected {
    background: var(--secondary);
    animation: pulse 2s ease-in-out infinite;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    height: calc(100vh - 61px);
}

.left-panel,
.right-panel {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 20px;
    overflow-y: auto;
}

.right-panel {
    border-right: none;
    border-left: 1px solid var(--border);
}

.center-panel {
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
}

.panel-section {
    margin-bottom: 24px;
}

.panel-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

/* Voice Users List */
.voice-users-list,
.streaming-users-list {
    min-height: 60px;
    margin-bottom: 12px;
}

/* Chat Container */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.chat-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.chat-welcome {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 40px 20px;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    background: var(--bg-secondary);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Members List */
.members-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all 0.2s;
}

.member-item:hover {
    background: var(--bg-elevated);
}

.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
}

.member-info {
    flex: 1;
}

.member-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.member-status {
    font-size: 12px;
    color: var(--text-muted);
}

