/* ==========================================================================
   Nebula Stream - Design System & Custom Stylesheet
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --bg-dark-base: #0e0e10;
    --bg-dark-surface: #18181b;
    --bg-dark-elevated: #1f1f23;
    --bg-dark-highlight: #2f2f35;
    
    --primary: #9146ff;
    --primary-hover: #a970ff;
    --primary-glow: rgba(145, 70, 255, 0.4);
    
    --text-main: #efeff1;
    --text-muted: #adadb8;
    --text-dark: #0e0e10;
    
    --accent-red: #eb0400;
    --accent-red-glow: rgba(235, 4, 0, 0.4);
    --accent-green: #00f076;
    --accent-green-glow: rgba(0, 240, 118, 0.2);
    --accent-yellow: #ffd000;
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(145, 70, 255, 0.6);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-round: 50%;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark-base);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-base);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-dark-highlight);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Main Container Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Styling */
.sidebar {
    width: 240px;
    background-color: var(--bg-dark-surface);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 10;
}

.brand {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}

.brand-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: var(--radius-md);
    box-shadow: 0 0 12px var(--primary-glow);
    position: relative;
}

.brand-logo::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 2px;
    top: 10px;
    left: 10px;
    transform: rotate(45deg);
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #fff, var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition-fast);
    gap: 12px;
}

.nav-item:hover {
    background-color: var(--bg-dark-elevated);
    color: var(--text-main);
}

.nav-item.active {
    background-color: rgba(145, 70, 255, 0.15);
    color: var(--primary-hover);
    border-left: 3px solid var(--primary);
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

.nav-item .icon {
    font-size: 18px;
}

.recommended-channels {
    padding: 20px 16px;
    flex-grow: 1;
    border-top: 1px solid var(--border-light);
}

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

.channel-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rec-channel {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.rec-channel:hover {
    background-color: var(--bg-dark-elevated);
}

.rec-channel .avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-round);
    background-color: var(--bg-dark-highlight);
    position: relative;
}

.rec-channel .avatar.online::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-round);
    background-color: var(--accent-green);
    border: 2px solid var(--bg-dark-surface);
}

.rec-channel .channel-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.rec-channel .channel-info .name {
    font-weight: 600;
    color: var(--text-main);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.rec-channel .channel-info .category {
    font-size: 11px;
    color: var(--text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.rec-channel .live-dot {
    color: var(--accent-red);
    font-size: 10px;
    animation: pulse 1.5s infinite;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: var(--bg-dark-base);
}

/* Header */
.main-header {
    height: 64px;
    background-color: var(--bg-dark-surface);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

.page-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
}

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

.codec-compatibility {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-dark-elevated);
    border: 1px solid var(--border-light);
}

.codec-compatibility.success {
    border-color: rgba(0, 240, 118, 0.4);
    background-color: rgba(0, 240, 118, 0.05);
}

.codec-compatibility.warning {
    border-color: rgba(255, 208, 0, 0.4);
    background-color: rgba(255, 208, 0, 0.05);
}

.support-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-round);
}

.support-dot.green { background-color: var(--accent-green); }
.support-dot.red { background-color: var(--accent-red); }

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    background: var(--bg-dark-elevated);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-round);
}

.status-indicator.green {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green-glow);
}

.status-indicator.red {
    background-color: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red-glow);
}

.status-indicator.yellow {
    background-color: var(--accent-yellow);
}

/* Grid Layout */
.dashboard-grid {
    display: flex;
    flex-grow: 1;
    height: calc(100vh - 64px);
    overflow: hidden;
}

/* Column Left: Stream, Owner, OBS details */
.stream-column {
    flex-grow: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    min-height: 0; /* Prevents overflow and enables column scrollbar */
}

/* Video Card & Custom Player */
.video-card {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-light);
    aspect-ratio: 16/9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    flex-shrink: 0; /* Prevents video container from shrinking */
}

.video-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(14, 14, 16, 0.9);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.overlay-content {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(145, 70, 255, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-round);
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

#overlayMessage {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Custom Video Controls */
.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.video-card:hover .custom-controls {
    opacity: 1;
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.volume-slider {
    width: 70px;
    height: 4px;
    accent-color: var(--primary-hover);
    cursor: pointer;
}

.live-badge {
    background-color: var(--accent-red);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px var(--accent-red-glow);
    animation: pulse 1.5s infinite;
}

/* Stream Metadata card */
.stream-info-card {
    background-color: var(--bg-dark-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    flex-shrink: 0; /* Prevents metadata card from shrinking */
}

.streamer-profile {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.streamer-avatar-large {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-round);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    flex-shrink: 0;
}

.streamer-meta {
    flex-grow: 1;
}

.stream-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.streamer-name {
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-icon {
    color: var(--primary-hover);
    font-weight: bold;
}

.tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    background-color: var(--bg-dark-elevated);
    color: var(--text-muted);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.viewer-count-container {
    background-color: rgba(235, 4, 0, 0.1);
    border: 1px solid rgba(235, 4, 0, 0.2);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    color: var(--accent-red);
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Stats overlay */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.stat-box {
    background-color: var(--bg-dark-elevated);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

/* OBS Details Card */
.obs-config-card {
    background-color: var(--bg-dark-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0; /* Prevents config card from shrinking */
}

.obs-config-card .card-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--bg-dark-elevated);
    transition: background var(--transition-fast);
}

.obs-config-card .card-header:hover {
    background-color: var(--bg-dark-highlight);
}

.obs-config-card h3 {
    font-size: 14px;
    font-weight: 600;
}

.toggle-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform var(--transition-normal);
}

.card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.card-body.expanded {
    max-height: 800px;
    min-height: 380px; /* Ensures a larger minimum height when expanded */
    border-top: 1px solid var(--border-light);
}

.config-instructions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-group label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.input-copy-wrapper {
    display: flex;
    gap: 8px;
}

.input-copy-wrapper input {
    flex-grow: 1;
    background-color: var(--bg-dark-elevated);
    border: 1px solid var(--border-light);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: monospace;
    font-size: 13px;
    outline: none;
}

.input-copy-wrapper input:focus {
    border-color: var(--primary);
}

.copy-btn {
    background-color: var(--primary);
    border: none;
    color: #fff;
    padding: 0 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.copy-btn.copied {
    background-color: var(--accent-green);
    color: var(--text-dark);
}

.toggle-visibility-btn {
    background-color: var(--bg-dark-elevated);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 0 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-visibility-btn:hover {
    background-color: var(--bg-dark-highlight);
    border-color: var(--primary);
}

.obs-settings-tips {
    background-color: var(--bg-dark-elevated);
    padding: 16px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.obs-settings-tips h4 {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 12px;
}

.obs-settings-tips ul {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.obs-settings-tips li {
    font-size: 12px;
    color: var(--text-muted);
}

.obs-settings-tips li strong {
    color: var(--text-main);
}

/* Column Right: Live Chat */
.chat-column {
    width: 340px;
    background-color: var(--bg-dark-surface);
    border-left: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.chat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.chat-header h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

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

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

.chat-message {
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-message.self {
    background-color: rgba(145, 70, 255, 0.05);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    border-left: 2px solid var(--primary);
}

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

.chat-user {
    font-weight: 700;
    margin-right: 6px;
}

.chat-text {
    color: var(--text-main);
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-dark-elevated);
}

.chat-input-area form {
    display: flex;
    gap: 8px;
}

.chat-input-area input {
    flex-grow: 1;
    background-color: var(--bg-dark-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 13px;
    outline: none;
}

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

.chat-input-area button {
    background-color: var(--primary);
    border: none;
    color: #fff;
    padding: 0 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-input-area button:hover {
    background-color: var(--primary-hover);
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 0.4;
        box-shadow: 0 0 0 0 rgba(235, 4, 0, 0.7);
    }
    70% {
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(235, 4, 0, 0);
    }
    100% {
        opacity: 0.4;
        box-shadow: 0 0 0 0 rgba(235, 4, 0, 0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .dashboard-grid {
        flex-direction: column;
        overflow: visible;
        height: auto;
    }
    .chat-column {
        width: 100%;
        height: 400px;
        border-left: none;
        border-top: 1px solid var(--border-light);
    }
    .stream-column {
        overflow-y: visible;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    .brand {
        height: 56px;
    }
    .nav-links {
        flex-direction: row;
        padding: 8px;
    }
    .nav-item {
        padding: 8px 12px;
        font-size: 12px;
    }
    .recommended-channels {
        display: none;
    }
    .main-header {
        padding: 0 16px;
        height: 56px;
    }
    .dashboard-grid {
        height: auto;
    }
}

/* ==========================================================================
   Nebula Stream - New Multi-User & Lobby Stylesheet
   ========================================================================== */

/* Lobby grid style */
.lobby-container {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.lobby-header {
    margin-bottom: 30px;
    text-align: center;
}

.lobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.channel-card {
    background-color: var(--bg-dark-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.channel-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(124, 77, 255, 0.15);
}

.channel-card-banner {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: scale 0.3s ease;
}

.channel-card:hover .channel-card-banner img {
    scale: 1.05;
}

.channel-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.channel-card-info {
    padding: 16px;
    display: flex;
    gap: 12px;
}

.channel-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.channel-card-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.channel-card-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-bottom: 4px;
}

.channel-card-author {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Social Share and QR */
.social-share-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.share-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background-color: var(--bg-dark-elevated);
    border: 1px solid var(--border-light);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 16px;
}

.btn-social:hover {
    transform: translateY(-2px);
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Modals */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #141324;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    width: 90%;
    max-width: 440px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: white;
}

.qr-canvas {
    background: white;
    padding: 12px;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
}

/* Club listing styles */
.club-section {
    padding: 20px 16px;
    border-top: 1px solid var(--border-light);
}

.club-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.club-members-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.club-member {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    text-decoration: none;
    color: inherit;
}

.club-member:hover {
    background-color: var(--bg-dark-elevated);
}

.club-member img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-round);
    object-fit: cover;
}

.club-member-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-grow: 1;
}

.club-member-name {
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

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

/* Demo Chat Mode Alert */
.demo-chat-banner {
    background: linear-gradient(90deg, rgba(124, 77, 255, 0.2), rgba(255, 123, 114, 0.2));
    border-bottom: 1px solid var(--border-light);
    padding: 8px 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #b19ffb;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Description collapse arrow styling */
.description-body {
    max-height: 80px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
}

.description-body.expanded {
    max-height: 2000px;
}

.description-toggle-btn {
    background: none;
    border: none;
    color: var(--primary-hover);
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    outline: none;
    margin-top: 8px;
}

.description-toggle-btn:hover {
    text-decoration: underline;
}

/* Helper hidden class */
.hidden {
    display: none !important;
}
