/* HostX DevHub - 1:1 Pixel-Perfect Match with Provided Design
 * Pure Black Edition (#000000) with Cyber-Neon Accents
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg-black: #000000;
    --bg-deep: #05070B;
    --bg-surface: #0B0E17;
    --bg-card: #101626;
    --bg-card-hover: #162035;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 122, 255, 0.35);

    --accent-blue: #007AFF;
    --accent-cyan: #38BDF8;
    --accent-indigo: #6366F1;
    --accent-green: #10B981;
    --accent-amber: #F59E0B;
    --accent-red: #EF4444;

    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    --code-bg: #07090F;
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100%;
    height: 100dvh;
    min-height: 100dvh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Master Container */
#app {
    display: flex;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    max-width: 1920px;
    background: var(--bg-black);
    position: relative;
    overflow: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Column 1: Left Sidebar / Chats List */
.sidebar {
    width: 390px;
    min-width: 340px;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    background: var(--bg-deep);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 15;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top App Header */
.app-header {
    padding: 16px 20px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-deep);
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}
.brand-badge {
    background: linear-gradient(135deg, #007AFF, #00D2FF);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 18px rgba(0, 122, 255, 0.45);
    letter-spacing: -0.5px;
}
.brand-text h1 {
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
}
.brand-text span {
    font-size: 0.74rem;
    color: var(--accent-cyan);
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-icon {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.user-avatar-btn img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--accent-blue);
    cursor: pointer;
}

/* Search Bar */
.search-container {
    padding: 0 18px 12px;
}
.search-bar {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-bar:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.25);
}
.search-bar i {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.92rem;
    width: 100%;
    font-family: inherit;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    padding: 0 18px 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.tab-pill {
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.tab-pill.active {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

/* Chats & Channels List */
.chats-scroll-area {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    padding: 0 10px;
    -webkit-overflow-scrolling: touch;
}
.chat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    margin-bottom: 4px;
    background: transparent;
}
.chat-item:hover {
    background: var(--bg-surface);
}
.chat-item.active {
    background: rgba(0, 122, 255, 0.12);
    border-color: rgba(0, 122, 255, 0.3);
}

.chat-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}
.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    object-fit: cover;
}
.chat-avatar.icon-badge {
    background: linear-gradient(135deg, #101626, #0B0E17);
    border: 1px solid var(--border-color);
}
.verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #007AFF;
    color: #fff;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-deep);
}

.chat-info {
    flex: 1;
    min-width: 0;
}
.chat-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.chat-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}
.chat-time {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.chat-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-last-msg {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 230px;
}
.unread-badge {
    background: var(--accent-blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}
.btn-subscribe-pill {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4);
}
.btn-subscribe-pill.subscribed {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    box-shadow: none;
}

/* Bottom Navigation Bar */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #05070B;
    border-top: 1px solid var(--border-color);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 10px));
    position: relative;
    z-index: 35;
    flex-shrink: 0;
    width: 100%;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
}
.nav-item i { font-size: 1.25rem; }
.nav-item.active { color: var(--accent-blue); }
.nav-item.fab-btn { transform: translateY(-16px); }
.fab-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007AFF, #00D2FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.45);
    border: 3px solid #05070B;
}

/* Column 2: Center Chat Window */
.chat-window {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-black);
    position: relative;
    min-width: 0;
}

.chat-top-bar {
    padding: 14px 24px;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
}
.chat-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.chat-header-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.chat-header-status {
    font-size: 0.78rem;
    color: var(--accent-cyan);
}

.pinned-bar {
    background: #0B0F19;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}
.pinned-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pinned-tag {
    color: #EF4444;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-black);
}

.message-row {
    display: flex;
    gap: 12px;
    max-width: 82%;
}
.message-row.is-mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.message-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}
.message-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    position: relative;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.message-row.is-mine .message-bubble {
    background: #142340;
    border-color: rgba(0, 122, 255, 0.35);
}
.message-sender {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 4px;
}
.message-text {
    font-size: 0.92rem;
    line-height: 1.5;
    word-break: break-word;
}
.message-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Post Cards in Channel View (FastPanel style matching image 6) */
.channel-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 16px;
    max-width: 600px;
}
.channel-banner-box {
    background: linear-gradient(135deg, #0B1120, #0F172A);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin-bottom: 14px;
}
.post-reactions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.reaction-tag-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 0.78rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Syntax highlighted Code Box matching image 4 */
.code-box {
    background: var(--code-bg);
    border: 1px solid rgba(0, 122, 255, 0.25);
    border-radius: var(--radius-sm);
    margin-top: 8px;
    overflow: hidden;
    font-family: var(--font-code);
}
.code-header {
    background: #0C1220;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--accent-cyan);
}
.code-actions { display: flex; gap: 6px; }
.code-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.code-btn.btn-run {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
}
.code-box pre {
    padding: 12px 14px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #E2E8F0;
}

/* Input Area */
.chat-input-area {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--bg-deep);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: flex-end;
    gap: 10px;
    position: relative;
    z-index: 25;
    flex-shrink: 0;
    width: 100%;
}
.chat-input-wrapper { 
    flex: 1; 
    min-width: 0;
}
.chat-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 11px 18px;
    color: #fff;
    font-size: 0.94rem;
    font-family: inherit;
    outline: none;
    resize: none;
    min-height: 44px;
    max-height: 140px;
    line-height: 20px;
    transition: border-color 0.2s ease;
}
.chat-input:focus {
    border-color: var(--accent-blue);
}
.btn-send {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #007AFF, #00D2FF);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
    transition: transform 0.15s ease;
}
.btn-send:active {
    transform: scale(0.92);
}

/* Column 3: Right Details Sidebar */
.channel-details-sidebar {
    width: 370px;
    min-width: 330px;
    height: 100%;
    background: var(--bg-deep);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}
.channel-details-sidebar.closed {
    display: none !important;
}
.channel-big-avatar-box {
    width: 86px;
    height: 86px;
    border-radius: 26px;
    background: linear-gradient(135deg, #101626, #05070A);
    border: 2px solid var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #fff;
    margin: 0 auto 14px;
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.35);
}
.tech-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 14px;
}
.tech-badge-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 4px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Splash/Onboarding Screen matching Image 1 */
.splash-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000000;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}
.splash-logo {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    background: linear-gradient(135deg, #007AFF, #00D2FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 122, 255, 0.5);
    margin-bottom: 24px;
}
.splash-btn {
    width: 100%;
    max-width: 320px;
    background: linear-gradient(135deg, #007AFF, #00D2FF);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.45);
    margin-top: 30px;
}

/* Settings List items matching Image 10 */
.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.settings-item:first-child { border-top-left-radius: 14px; border-top-right-radius: 14px; }
.settings-item:last-child { border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; border-bottom: none; }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 520px;
    padding: 26px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
}
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    background: #05070B;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: #fff;
    font-size: 0.92rem;
    outline: none;
    font-family: inherit;
}
.form-control:focus { border-color: var(--accent-blue); }
.btn-primary-block {
    width: 100%;
    background: linear-gradient(135deg, #007AFF, #00D2FF);
    border: none;
    border-radius: var(--radius-md);
    padding: 13px;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

/* Responsiveness */
@media (max-width: 1080px) {
    .channel-details-sidebar {
        position: fixed;
        right: 0; top: 0; bottom: 0;
        z-index: 50;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
    }
    .channel-details-sidebar.closed { display: none !important; }
}

@media (max-width: 820px) {
    .sidebar { 
        width: 100%; 
        min-width: 100%; 
        height: 100%;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }
    .chat-window {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%; height: 100dvh;
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 50;
    }
    .chat-window.open { transform: translateX(0); }
    .channel-details-sidebar { 
        position: fixed;
        top: 0; right: 0; width: 100%; height: 100%; height: 100dvh;
        z-index: 60;
    }
    .channel-details-sidebar.closed { display: none !important; }
    .bottom-nav {
        display: flex !important;
        position: relative;
        z-index: 35;
    }
    #mobileBackBtn {
        display: flex !important;
    }
}

/* Upload Status Bar */
.upload-status-bar {
    display: none !important;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(0, 122, 255, 0.15);
    border-top: 1px solid rgba(0, 122, 255, 0.3);
    color: #fff;
    font-size: 0.82rem;
    flex-shrink: 0;
}
.upload-status-bar.active {
    display: flex !important;
}

/* Telegram-Style Code Blocks in Chat */
.code-box {
    margin-top: 8px;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}
.code-header {
    background: #161b22;
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.code-lang-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.code-actions {
    display: flex;
    gap: 6px;
}
.code-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}
.code-btn:hover { background: rgba(255, 255, 255, 0.18); }
.code-btn.btn-run {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34D399;
}
.code-btn.btn-run:hover { background: rgba(16, 185, 129, 0.35); }
.code-box pre {
    padding: 12px 14px;
    margin: 0;
    overflow-x: auto;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #E2E8F0;
    white-space: pre-wrap;
    word-break: break-word;
}
.inline-code {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
    padding: 2px 6px;
    border-radius: 5px;
    font-family: var(--font-code);
    font-size: 0.88em;
}

/* Distinct Channels Hub Styling */
.channels-hub-banner {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.2), rgba(0, 210, 255, 0.1));
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.channel-card-rich {
    background: #0B0E17;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.25s ease;
    cursor: pointer;
}
.channel-card-rich:hover {
    border-color: rgba(0, 122, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.channel-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.channel-card-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: #101626;
    border: 1.5px solid var(--accent-blue);
    flex-shrink: 0;
}
.channel-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.channel-card-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.channel-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.channel-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.linked-group-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}
.btn-subscribe-pill {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-subscribe-pill.subscribed {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Discussion Group Banner in Channel */
.channel-discussion-bar {
    background: #0D1424;
    border-top: 1px solid rgba(0, 122, 255, 0.25);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.channel-discussion-btn {
    background: linear-gradient(135deg, #007AFF, #00D2FF);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.35);
}

/* Auth Modal Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.auth-tab-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}
.auth-tab-btn.active {
    color: #fff;
}
.auth-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 3px;
}

/* Call Simulation Overlay */
.call-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, #0B1428 0%, #000000 100%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 60px 20px 50px;
    z-index: 200;
}
.call-avatar-pulse {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #101626;
    border: 3px solid var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 122, 255, 0.6);
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.6); }
    70% { box-shadow: 0 0 0 25px rgba(0, 122, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
}
.call-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}
.call-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.2s;
}
.call-btn:hover { transform: scale(1.1); }
.call-btn-danger {
    background: #EF4444;
    color: #fff;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}
.call-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

