/* Premium Modern Messenger - Complete Fixed CSS */
:root {
    --discord-dark: #36393f;
    --discord-darker: #2f3136;
    --discord-darkest: #202225;
    --discord-text: #ffffff;
    --discord-text-muted: #b9bbbe;
    --discord-primary: #5865f2;
    --discord-primary-hover: #4752c4;
    --discord-primary-light: #7289da;
    --discord-success: #57f287;
    --discord-danger: #ed4245;
    --discord-warning: #faa81a;
    --discord-link: #00b0f4;
    --discord-accent: #eb459e;
    
    --glass-bg: rgba(32, 34, 37, 0.85);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-blur: blur(20px);
    
    --neon-blue: 0 0 20px rgba(88, 101, 242, 0.3);
    --neon-green: 0 0 20px rgba(87, 242, 135, 0.2);
    --neon-pink: 0 0 20px rgba(235, 69, 158, 0.2);
}

/* Emoji шрифты - ВЕРНУТЬ ПЕРВЫМИ! */
@font-face {
    font-family: 'Noto Color Emoji';
    src: url('fonts/noto-emoji.woff2') format('woff2'),
         url('fonts/noto-emoji.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.emoji, .file-icon, .folder-icon, .user-avatar,
.message-content, .chat-action-button, .action-button {
    font-family: 'Noto Color Emoji', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Анимации */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes waveFloat {
    0%, 100% { 
        transform: translateY(0) scale(1);
        background-position-x: 0;
    }
    50% { 
        transform: translateY(-20px) scale(1.05);
        background-position-x: 2000px;
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

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

@keyframes messageAppear {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translate(-50%, -48%) scale(0.98); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/*----------------*/
/* Стили для логотипа в заголовке */
.header-logo-atom {
    width: 40px;
    height: 40px;
    position: relative;
    margin-right: 15px;
    display: inline-block;
    vertical-align: middle;
}

h1 .atom-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: conic-gradient(from 0deg, #667eea, #764ba2, #f093fb, #667eea);
    border-radius: 50%;
    animation: rotateFast 3s linear infinite;
    box-shadow: 0 0 15px #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 .atom-core::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #1a1a2e;
    border-radius: 50%;
}

h1 .atom-core::after {
    content: 'A';
    color: white;
    font-size: 7px;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

h1 .atom-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1.5px solid rgba(102, 126, 234, 0.6);
    border-radius: 50%;
    opacity: 0.8;
}

h1 .atom-orbit.orbit-circle {
    width: 35px;
    height: 35px;
}

h1 .atom-orbit.orbit-ellipse-1 {
    width: 38px;
    height: 22px;
    transform: translate(-50%, -50%) rotate(45deg);
}

h1 .atom-orbit.orbit-ellipse-2 {
    width: 38px;
    height: 22px;
    transform: translate(-50%, -50%) rotate(-45deg);
}

h1 .atom-electron {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    box-shadow: 0 0 6px #f093fb;
}

h1 .orbit-circle .atom-electron {
    top: -2px;
    left: calc(50% - 2px);
    animation: miniRotateCircle 2s infinite linear;
    transform-origin: center 19.5px;
}

h1 .orbit-ellipse-1 .atom-electron {
    top: -2px;
    left: calc(50% - 2px);
    animation: miniRotateEllipse1 1.7s infinite linear reverse;
    transform-origin: center 11px;
}

h1 .orbit-ellipse-2 .atom-electron {
    top: -2px;
    left: calc(50% - 2px);
    animation: miniRotateEllipse2 1.4s infinite linear;
    transform-origin: center 11px;
}

/* Обновляем стиль заголовка для правильного отображения */
h1 {
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 16px 20px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 10;
    background: rgba(32, 34, 37, 0.95);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* Убедимся, что текст в заголовке нормально отображается */
h1 span {
    margin-left: 0;
}  
/*----------------*/        
        .auto-transformation {
            width: 473px;
            height: 200px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .atom-logo {
            position: absolute;
            width: 180px;
            height: 180px;
            animation: atomCycle 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .neochat-logo {
            display: flex;
            align-items: center;
            gap: 15px;
            animation: neochatCycle 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        /* Атом с вращающейся N */
        .atom-core {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 40px;
            height: 40px;
            background: conic-gradient(from 0deg, #667eea, #764ba2, #f093fb, #667eea);
            border-radius: 50%;
            animation: rotateFast 3s linear infinite;
            box-shadow: 0 0 40px #667eea;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .atom-core::before {
            content: '';
            position: absolute;
            width: 35px;
            height: 35px;
            background: #1a1a2e;
            border-radius: 50%;
        }
        
        .atom-core::after {
            content: 'A';
            color: white;
            font-size: 20px;
            font-weight: bold;
            position: relative;
            z-index: 2;
        }
        
        .atom-orbit {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border: 2px solid rgba(102, 126, 234, 0.6);
            border-radius: 50%;
            opacity: 0.8;
        }
        
        .atom-orbit.orbit-circle {
            width: 140px;
            height: 140px;
        }
        
        .atom-orbit.orbit-ellipse-1 {
            width: 160px;
            height: 90px;
            transform: translate(-50%, -50%) rotate(45deg);
        }
        
        .atom-orbit.orbit-ellipse-2 {
            width: 160px;
            height: 90px;
            transform: translate(-50%, -50%) rotate(-45deg);
        }
        
        .atom-electron {
            position: absolute;
            width: 10px;
            height: 10px;
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            border-radius: 50%;
            box-shadow: 0 0 10px #f093fb;
        }
        
        .orbit-circle .atom-electron {
            top: -5px;
            left: calc(50% - 5px);
            animation: rotateCircle 3s linear infinite;
            transform-origin: center 75px;
        }
        
        .orbit-ellipse-1 .atom-electron {
            top: -5px;
            left: calc(50% - 5px);
            animation: rotateEllipse1 2.5s linear infinite;
            transform-origin: center 45px;
        }
        
        .orbit-ellipse-2 .atom-electron {
            top: -5px;
            left: calc(50% - 5px);
            animation: rotateEllipse2 2s linear infinite;
            transform-origin: center 45px;
        }
        
        /* Миниатюра атома для NEOCHAT */
        .neochat-atom-mini {
            width: 50px;
            height: 50px;
            position: relative;
            flex-shrink: 0;
        }
        
        .neochat-atom-core {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 12px;
            height: 12px;
            background: conic-gradient(from 0deg, #667eea, #764ba2, #f093fb, #667eea);
            border-radius: 50%;
            animation: rotateFast 2s linear infinite;
            box-shadow: 0 0 12px #667eea;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .neochat-atom-core::before {
            content: '';
            position: absolute;
            width: 10px;
            height: 10px;
            background: #1a1a2e;
            border-radius: 50%;
        }
        
        .neochat-atom-core::after {
            content: 'N';
            color: white;
            font-size: 7px;
            font-weight: bold;
            position: relative;
            z-index: 2;
        }
        
        .neochat-atom-orbit {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border: 1.2px solid rgba(102, 126, 234, 0.6);
            border-radius: 50%;
            opacity: 0.8;
        }
        
        .neochat-atom-orbit.orbit-circle {
            width: 35px;
            height: 35px;
        }
        
        .neochat-atom-orbit.orbit-ellipse-1 {
            width: 40px;
            height: 22px;
            transform: translate(-50%, -50%) rotate(45deg);
        }
        
        .neochat-atom-orbit.orbit-ellipse-2 {
            width: 40px;
            height: 22px;
            transform: translate(-50%, -50%) rotate(-45deg);
        }
        
        .neochat-atom-electron {
            position: absolute;
            width: 4px;
            height: 4px;
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            border-radius: 50%;
            box-shadow: 0 0 4px #f093fb;
        }
        
        .neochat-atom-orbit.orbit-circle .neochat-atom-electron {
            top: -2px;
            left: calc(50% - 2px);
            animation: miniRotateCircle 2s infinite linear;
            transform-origin: center 19.5px;
        }
        
        .neochat-atom-orbit.orbit-ellipse-1 .neochat-atom-electron {
            top: -2px;
            left: calc(50% - 2px);
            animation: miniRotateEllipse1 1.7s infinite linear reverse;
            transform-origin: center 11px;
        }
        
        .neochat-atom-orbit.orbit-ellipse-2 .neochat-atom-electron {
            top: -2px;
            left: calc(50% - 2px);
            animation: miniRotateEllipse2 1.4s infinite linear;
            transform-origin: center 11px;
        }
        
        .neochat-text {
            font-size: 42px;
            font-weight: bold;
            background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: 1px;
        }
        .neochat-text-logo {
            font-size: 20px;
            font-weight: bold;
            background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: 1px;
        }		
        
        @keyframes atomCycle {
            0% {
                opacity: 1;
                transform: scale(1);
            }
            40% {
                opacity: 1;
                transform: scale(1);
            }
            50% {
                opacity: 0;
                transform: scale(0);
            }
            90% {
                opacity: 0;
                transform: scale(0);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }
        
        @keyframes neochatCycle {
            0% {
                opacity: 0;
                transform: scale(0.95);
            }
            40% {
                opacity: 0;
                transform: scale(0.95);
            }
            50% {
                opacity: 1;
                transform: scale(1);
            }
            90% {
                opacity: 1;
                transform: scale(1);
            }
            100% {
                opacity: 0;
                transform: scale(0.95);
            }
        }
        
        @keyframes rotateFast {
            from { transform: translate(-50%, -50%) rotate(0deg); }
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }
        
        @keyframes rotateCircle {
            0% {
                transform: rotate(0deg) translateY(-70px) rotate(0deg);
            }
            100% {
                transform: rotate(360deg) translateY(-70px) rotate(-360deg);
            }
        }
        
        @keyframes rotateEllipse1 {
            0% {
                transform: rotate(0deg) translateY(-45px) translateX(40px) rotate(0deg);
            }
            100% {
                transform: rotate(360deg) translateY(-45px) translateX(40px) rotate(-360deg);
            }
        }
        
        @keyframes rotateEllipse2 {
            0% {
                transform: rotate(0deg) translateY(-45px) translateX(-40px) rotate(0deg);
            }
            100% {
                transform: rotate(360deg) translateY(-45px) translateX(-40px) rotate(-360deg);
            }
        }
        
        @keyframes miniRotateCircle {
            0% {
                transform: rotate(0deg) translateY(-17.5px) rotate(0deg);
            }
            100% {
                transform: rotate(360deg) translateY(-17.5px) rotate(-360deg);
            }
        }
        
        @keyframes miniRotateEllipse1 {
            0% {
                transform: rotate(0deg) translateY(-11px) translateX(10px) rotate(0deg);
            }
            100% {
                transform: rotate(360deg) translateY(-11px) translateX(10px) rotate(-360deg);
            }
        }
        
        @keyframes miniRotateEllipse2 {
            0% {
                transform: rotate(0deg) translateY(-11px) translateX(-10px) rotate(0deg);
            }
            100% {
                transform: rotate(360deg) translateY(-11px) translateX(-10px) rotate(-360deg);
            }
        }
/*----------------*/


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: 
        /* Фоновое изображение */
        url('back.avif') center center / cover no-repeat fixed,
        /* Затемняющий градиент */
        linear-gradient(135deg, rgba(26, 27, 30, 0.92) 0%, rgba(32, 34, 37, 0.90) 50%, rgba(47, 49, 54, 0.88) 100%);
    background-blend-mode: overlay;
    color: var(--discord-text);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
}
/* Парящие частицы - ИСПРАВЛЕННАЯ ВЕРСИЯ */
/* ========== ЧАСТИЦЫ - ПЕРЕОПРЕДЕЛЕНИЕ ========== */
#particles, .particles {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: -1 !important;
    overflow: hidden !important;
}

/* Удаляем все старые стили частиц */
.particle, .parallax-particles > div {
    all: unset !important;
}

/* Новые стили частиц */
.particle {
    position: absolute !important;
    width: 4px !important;
    height: 4px !important;
    border-radius: 50% !important;
    opacity: 0 !important;
    animation: particle-float 20s infinite linear !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Анимация снизу вверх */
@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(calc(50px * var(--random-x, 0))) rotate(360deg);
        opacity: 0;
    }
}


/* Волны - яркие */
.waves {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%235865f2" fill-opacity="0.2" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    z-index: -2;
    opacity: 0.7; /* Увеличили прозрачность */
    animation: waveFloat 15s ease-in-out infinite;
}

/* Добавим свечение волнам */
.waves::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(88, 101, 242, 0.3) 0%, transparent 100%);
    pointer-events: none;
}

/* Стеклянный эффект */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* ОСНОВНОЙ ЗАГОЛОВОК - сохраняем старый h1 стиль */


/* ========== НАВИГАЦИОННОЕ МЕНЮ ========== */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(32, 34, 37, 0.95);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

/* Логотип и название */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-brand:hover {
    transform: translateY(-2px);
}

.site-logo {
    width: 36px;
    height: 36px;
    position: relative;
}

.site-logo .atom-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: conic-gradient(from 0deg, #667eea, #764ba2, #f093fb, #667eea);
    border-radius: 50%;
    animation: rotateFast 3s linear infinite;
    box-shadow: 0 0 12px #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo .atom-core::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #1a1a2e;
    border-radius: 50%;
}

.site-logo .atom-core::after {
    content: 'A';
    color: white;
    font-size: 6px;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.site-logo .atom-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1.2px solid rgba(102, 126, 234, 0.6);
    border-radius: 50%;
    opacity: 0.8;
}

.site-logo .atom-orbit.orbit-circle {
    width: 30px;
    height: 30px;
}

.site-logo .atom-orbit.orbit-ellipse-1 {
    width: 34px;
    height: 18px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.site-logo .atom-orbit.orbit-ellipse-2 {
    width: 34px;
    height: 18px;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.site-logo .atom-electron {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    box-shadow: 0 0 4px #f093fb;
}

.site-logo .orbit-circle .atom-electron {
    top: -1.5px;
    left: calc(50% - 1.5px);
    animation: miniRotateCircle 2s infinite linear;
    transform-origin: center 16.5px;
}

.site-logo .orbit-ellipse-1 .atom-electron {
    top: -1.5px;
    left: calc(50% - 1.5px);
    animation: miniRotateEllipse1 1.7s infinite linear reverse;
    transform-origin: center 9px;
}

.site-logo .orbit-ellipse-2 .atom-electron {
    top: -1.5px;
    left: calc(50% - 1.5px);
    animation: miniRotateEllipse2 1.4s infinite linear;
    transform-origin: center 9px;
}

.site-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--discord-primary) 0%, var(--discord-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Навигационное меню */
.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(88, 101, 242, 0.15);
    color: white;
    border: 1px solid rgba(88, 101, 242, 0.3);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--discord-primary);
    border-radius: 1px;
}

/* Кнопки авторизации */
.nav-actions {
    display: flex;
    gap: 12px;
}

.btn-login {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn-register {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--discord-primary) 0%, var(--discord-primary-light) 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: linear-gradient(135deg, var(--discord-primary-light) 0%, var(--discord-primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

/* Мобильное меню */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(32, 34, 37, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
        border-radius: 8px;
        margin: 4px 0;
    }

    .nav-actions {
        display: none;
    }

    .nav-actions.active {
        display: flex;
        flex-direction: column;
        margin-top: 20px;
        gap: 10px;
    }

    .nav-toggle {
        display: flex;
    }
}
/* Стили для страниц */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

/* Анимация появления */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ОСТАЛЬНЫЕ ВАШИ СТИЛИ БЕЗ ИЗМЕНЕНИЙ */

h2, h3 {
    color: var(--discord-text);
    font-weight: 600;
}

/* Главная страница с новостями */
#welcomePage {
    min-height: calc(100vh - 53px);
    padding: 40px 20px;
    position: relative;
}

.conversation-menu {
    padding: 20px;
    background: rgba(47, 49, 54, 0.6);
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.conversation-menu button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 10px;
    background: rgba(54, 57, 63, 0.8);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.conversation-menu button:hover {
    transform: translateX(4px);
    background: rgba(88, 101, 242, 0.3);
    border-color: rgba(88, 101, 242, 0.4);
}

.conversation-menu button.danger {
    background: rgba(237, 66, 69, 0.2);
    border-color: rgba(237, 66, 69, 0.3);
}

.conversation-menu button.danger:hover {
    background: rgba(237, 66, 69, 0.3);
    transform: translateX(4px);
}

.welcome-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    animation: slideIn 0.6s ease-out;
}

.welcome-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background: rgba(32, 34, 37, 0.7);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.welcome-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    animation: shine 4s infinite linear;
}

.welcome-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, var(--discord-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.welcome-header p {
    font-size: 1.1rem;
    color: var(--discord-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.auth-buttons-container {
    display: flex;
    gap: 18px;
    margin: 30px 0;
    justify-content: center;
}

.welcome-button {
    padding: 14px 32px;
    font-size: 0.95rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-width: 150px;
    letter-spacing: 0.2px;
    backdrop-filter: blur(10px);
}

.welcome-button.login {
    background: linear-gradient(135deg, var(--discord-primary) 0%, var(--discord-primary-light) 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-button.login:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(88, 101, 242, 0.6),
        var(--neon-blue);
    background: linear-gradient(135deg, var(--discord-primary-light) 0%, var(--discord-primary) 100%);
}

.welcome-button.register {
    background: rgba(255, 255, 255, 0.04);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.welcome-button.register:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Новости */
.news-section {
    width: 100%;
    max-width: 1100px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.news-card {
    background: rgba(32, 34, 37, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-8px) rotateX(3deg) rotateY(-3deg) scale(1.02);
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        var(--neon-blue);
    background: rgba(32, 34, 37, 0.7);
}

.news-card h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.news-card h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--discord-primary);
    border-radius: 2px;
    transition: width 0.3s;
}

.news-card:hover h4::after {
    width: 100%;
}

.news-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-date {
    color: var(--discord-success);
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Контейнер для приложения - СОХРАНИЛ */
#appContainer {
    display: flex;
    width: 100%;
    height: calc(100vh - 53px);
    position: relative;
}

/* Боковая панель - СОХРАНИЛ */
#sidebar {
    width: 260px;
    background: rgba(32, 34, 37, 0.9);
    backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 5;
}

/* Профиль пользователя - СОХРАНИЛ */
.user-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.06);
    padding-left: 22px;
}

.user-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--discord-primary) 0%, var(--discord-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.user-profile:hover .user-profile-avatar {
    transform: scale(1.1) rotate(10deg);
}

.user-profile-info {
    flex: 1;
}

.user-profile-name {
    font-weight: 600;
    color: white;
    font-size: 14px;
    margin-bottom: 3px;
}

.user-profile-status {
    font-size: 12px;
}

.status-online {
    color: var(--discord-success) !important;
}

.status-offline {
    color: var(--discord-danger) !important;
}

/* Меню навигации - СОХРАНИЛ */
.nav-menu {
    display: flex;
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    gap: 8px;
    background: rgba(32, 34, 37, 0.5);
}

.nav-button {
    flex: 1;
    padding: 11px 14px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 12px;
    position: relative;
    overflow: hidden;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.5s;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button.active {
    background: rgba(88, 101, 242, 0.15);
    color: white;
    border: 1px solid rgba(88, 101, 242, 0.3);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.2);
}

.nav-button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

/* Кнопки действий в сайдбаре - СОХРАНИЛ */
.sidebar-actions {
    padding: 14px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(32, 34, 37, 0.5);
}

.sidebar-action-button {
    flex: 1;
    padding: 11px 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--discord-primary) 0%, var(--discord-primary-light) 100%);
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.sidebar-action-button:hover {
    background: linear-gradient(135deg, var(--discord-primary-light) 0%, var(--discord-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.3);
}

/* Поиск - СОХРАНИЛ */
.search-container {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(32, 34, 37, 0.5);
}

.search-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--discord-text);
    font-size: 12px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--discord-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.1);
}

/* Стили для списка контактов/бесед - СОХРАНИЛ */
#contactsList, #conversationsList, #conferencesList {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
}

.list-container {
    display: none;
}

.list-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.contact-item, .conversation-item, .conference-item {
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--discord-text);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.contact-item:hover, .conversation-item:hover, .conference-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(5px) rotateY(2deg) rotateX(1deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.item-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--discord-primary) 0%, var(--discord-success) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover .item-avatar,
.conversation-item:hover .item-avatar,
.conference-item:hover .item-avatar {
    transform: scale(1.1) rotate(8deg);
}

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

.item-name {
    font-weight: 600;
    color: white;
    font-size: 13px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-last-message {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.item-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 5px;
    flex-shrink: 0;
}

.status-online-dot {
    background-color: var(--discord-success);
    box-shadow: 0 0 0 2px rgba(87, 242, 135, 0.2);
    animation: pulse 2s infinite;
}

.status-offline-dot {
    background-color: var(--discord-danger);
}

.item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    margin-left: auto;
    flex-shrink: 0;
}

.item-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

/* Стили для области чата - СОХРАНИЛ */
#chatArea {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: rgba(32, 34, 37, 0.8);
    backdrop-filter: blur(20px);
    position: relative;
}

.chat-header {
    padding: 16px 22px;
    background: rgba(32, 34, 37, 0.95);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 10;
}

.current-chat-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.current-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--discord-primary) 0%, var(--discord-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    transition: transform 0.3s ease;
}

.current-chat-avatar:hover {
    transform: scale(1.1) rotate(8deg);
}

.current-chat-details {
    flex: 1;
}

.current-chat-name {
    font-weight: 700;
    color: white;
    font-size: 14px;
    margin-bottom: 3px;
}

.current-chat-status {
    font-size: 12px;
    color: var(--discord-success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-actions {
    display: flex;
    gap: 8px;
}

.chat-action-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-action-button:hover {
    background: rgba(88, 101, 242, 0.1);
    border-color: var(--discord-primary);
    color: var(--discord-primary);
    transform: translateY(-2px) rotate(5deg);
}

/* Стили для отображения сообщений - СОХРАНИЛ */
#messageList {
    flex-grow: 1;
    padding: 22px;
    overflow-y: auto;
    background: transparent;
}

.message {
    padding: 14px 18px;
    margin-bottom: 14px;
    border-radius: 18px;
    max-width: 72%;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 13px;
    animation: messageAppear 0.3s ease-out;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.message:hover {
    transform: translateY(-2px) rotateX(1deg) rotateY(1deg);
}

.message-sender {
    font-weight: 700;
    margin-bottom: 5px;
    color: white !important;
    font-size: 12px;
    opacity: 0.9;
}

.message-content {
    line-height: 1.4;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
}

/* Emoji с 3D эффектом */
.message-content .emoji {
    display: inline-block;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    font-size: 1.3em;
    vertical-align: middle;
    margin: 0 2px;
}

.message-content .emoji:hover {
    transform: scale(1.5) rotateY(15deg) rotateX(10deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.message-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
    text-align: right;
    opacity: 0.7;
}

/* Стили для входящих сообщений */
.message.incoming {
    background: rgba(47, 49, 54, 0.7);
    border-left: 4px solid var(--discord-primary);
    margin-right: auto;
    margin-left: 0;
    border-top-left-radius: 4px;
}

/* Стили для исходящих сообщений */
.message.outgoing {
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.2);
    color: white;
    margin-left: auto;
    margin-right: 0;
    border-top-right-radius: 4px;
}

/* Стили для медиа-файлов - СОХРАНИЛ */
.message-image {
    max-width: 220px;
    max-height: 220px;
    border-radius: 12px;
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.message-image:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.2);
}

.message-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    margin-top: 8px;
    color: var(--discord-text);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.message-file:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(3px);
}

.file-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--discord-primary);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 3px;
    color: white;
}

.file-size {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.file-actions {
    display: flex;
    gap: 8px;
}

.file-action-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.file-action-btn:hover {
    background: rgba(88, 101, 242, 0.15);
    transform: translateY(-1px);
}

.file-action-btn.danger {
    background: rgba(237, 66, 69, 0.1);
    color: var(--discord-danger);
}

.file-action-btn.danger:hover {
    background: rgba(237, 66, 69, 0.2);
}

/* Стили для поля ввода и кнопки отправки - СОХРАНИЛ И ИСПРАВИЛ! */
#messageInputArea {
    padding: 18px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    background: rgba(32, 34, 37, 0.95);
    backdrop-filter: blur(30px);
    gap: 14px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    bottom: 0;
    z-index: 5;
}

#messageInputArea textarea {
    flex-grow: 1;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    resize: none;
    font-size: 13px;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    min-height: 22px;
    max-height: 100px;
    transition: all 0.3s ease;
    font-family: inherit;
    z-index: 1;
    position: relative;
}

#messageInputArea textarea:focus {
    outline: none;
    border-color: rgba(88, 101, 242, 0.4);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.1);
}

#messageInputArea button {
    padding: 12px 22px;
    background: var(--discord-primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 80px;
    z-index: 1;
    position: relative;
}

#messageInputArea button:hover {
    background: var(--discord-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.3);
}

/* Файловое меню - СОХРАНИЛ */
.file-menu {
    position: relative;
    z-index: 2;
}

.file-menu-button {
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    z-index: 1;
    position: relative;
}

.file-menu-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.file-menu-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    background: rgba(32, 34, 37, 0.95);
    backdrop-filter: blur(25px);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
    min-width: 160px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: dropdownAppear 0.2s ease-out;
}

@keyframes dropdownAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-menu-dropdown.show {
    display: block;
}

.file-option {
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--discord-text);
}

.file-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

#fileInputChat {
    display: none !important;
}

/* Стили для оверлеев - СОХРАНИЛ */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(32, 34, 37, 0.95);
    backdrop-filter: blur(30px);
    padding: 28px;
    border-radius: 20px;
    min-width: 320px;
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.overlay-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.overlay-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.overlay-close:hover {
    background: rgba(237, 66, 69, 0.1);
    border-color: var(--discord-danger);
    color: var(--discord-danger);
}

/* Стили для превью файлов - СОХРАНИЛ */
.file-preview-content {
    max-width: 90vw;
    max-height: 80vh;
    overflow: auto;
}

.file-preview-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.file-preview-content iframe {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: 16px;
    background: white;
}

.text-preview {
    background: white;
    color: black;
    padding: 25px;
    border-radius: 16px;
    max-height: 60vh;
    overflow: auto;
    font-family: monospace;
    white-space: pre-wrap;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.unsupported-file {
    text-align: center;
    padding: 50px;
    color: var(--discord-text-muted);
}

.file-preview-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Стили для медиа-галереи - СОХРАНИЛ */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.media-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 1;
    border: 2px solid transparent;
}

.media-item:hover {
    transform: scale(1.05) rotate(1deg);
    border-color: var(--discord-primary);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-item-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: white;
}

/* Стили для поиска в чате - СОХРАНИЛ */
.chat-search-container {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-search-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--discord-text);
    font-size: 13px;
    transition: all 0.3s ease;
}

.chat-search-input:focus {
    outline: none;
    border-color: var(--discord-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.1);
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
}

.search-result-item {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.search-result-item:hover {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.2);
    color: white;
    transform: translateX(3px);
}

/* Стили для форм - СОХРАНИЛ */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.auth-input {
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--discord-text);
    font-size: 13px;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--discord-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.1);
}

.auth-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.auth-button {
    flex: 1;
    padding: 14px 25px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.auth-button.primary {
    background: linear-gradient(135deg, var(--discord-primary) 0%, var(--discord-primary-light) 100%);
    color: white;
}

.auth-button.primary:hover {
    background: linear-gradient(135deg, var(--discord-primary-light) 0%, var(--discord-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

/* Стили для списка пользователей - СОХРАНИЛ */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.user-card:hover {
    background: rgba(88, 101, 242, 0.1);
    color: white;
    transform: translateY(-5px) scale(1.03);
    border-color: rgba(88, 101, 242, 0.2);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.2);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--discord-primary) 0%, var(--discord-primary-light) 100%);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    transition: transform 0.3s ease;
}

.user-card:hover .user-avatar {
    transform: rotate(10deg) scale(1.1);
}

.user-name {
    font-weight: 600;
    font-size: 12px;
}

/* Кнопки в интерфейсе - СОХРАНИЛ */
.action-button {
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--discord-primary) 0%, var(--discord-primary-light) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
}

.action-button:hover {
    background: linear-gradient(135deg, var(--discord-primary-light) 0%, var(--discord-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.action-button.danger {
    background: linear-gradient(135deg, var(--discord-danger) 0%, rgba(237, 66, 69, 0.8) 100%);
}

.action-button.danger:hover {
    background: linear-gradient(135deg, rgba(237, 66, 69, 0.9) 0%, var(--discord-danger) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237, 66, 69, 0.3);
}

/* Стили для предпросмотра файлов - СОХРАНИЛ */
.excel-preview {
    max-height: 70vh;
    overflow: auto;
    background: white;
    border-radius: 16px;
    padding: 20px;
}

.excel-sheet {
    margin-bottom: 25px;
}

.excel-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.excel-table-container table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.excel-table-container th,
.excel-table-container td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-size: 13px;
}

.excel-table-container th {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    font-weight: 700;
    color: #333;
}

.excel-table-container tr:nth-child(even) {
    background-color: #f9f9f9;
}

.excel-table-container tr:hover {
    background-color: #f0f7ff;
}

.word-preview {
    max-height: 70vh;
    overflow: auto;
    padding: 30px;
    background: white;
    border-radius: 16px;
}

.word-content {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #333;
}

.word-content h1, .word-content h2, .word-content h3 {
    color: #2c3e50;
    margin: 25px 0 15px;
}

.word-content p {
    margin-bottom: 15px;
}

.pdf-preview {
    max-height: 70vh;
    overflow: auto;
    text-align: center;
    background: white;
    border-radius: 16px;
    padding: 20px;
}

.pdf-page {
    margin-bottom: 25px;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.file-loading {
    text-align: center;
    padding: 50px;
    color: #666;
    background: white;
    border-radius: 16px;
}

.error-preview {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 16px;
}

.error-preview button {
    padding: 14px 25px;
    background: linear-gradient(135deg, var(--discord-primary) 0%, var(--discord-primary-light) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.error-preview button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

/* Стили для админ панели - СОХРАНИЛ */
.admin-tabs {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    padding: 4px;
}

.admin-tab {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
}

.admin-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--discord-primary);
}

.admin-tab.active {
    border-bottom-color: var(--discord-primary);
    color: var(--discord-primary);
    background: rgba(88, 101, 242, 0.08);
}

.admin-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.admin-tab-content.active {
    display: block;
}

.admin-section {
    margin-bottom: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.admin-user-item, .whitelist-item, .file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.admin-user-item:hover, .whitelist-item:hover, .file-item:hover {
    background: rgba(88, 101, 242, 0.08);
    border-color: rgba(88, 101, 242, 0.2);
    transform: translateX(3px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--discord-primary) 0%, var(--discord-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 16px;
}

.user-actions, .file-actions {
    display: flex;
    gap: 8px;
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: var(--discord-text-muted);
    font-style: italic;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

/* Настройки беседы - СОХРАНИЛ */
.conversation-settings-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    opacity: 0.8;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    margin-right: 8px;
    margin-top: -32px;
}

.conversation-settings-btn:hover {
    opacity: 1;
    color: var(--discord-primary);
    background: rgba(88, 101, 242, 0.1) !important;
    border-color: var(--discord-primary) !important;
    transform: translateY(-2px);
}

.conversation-settings-btn:active {
    opacity: 0.9;
    background: rgba(88, 101, 242, 0.15) !important;
}

.conversation-settings-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2) !important;
}

.conversation-settings-btn::-moz-focus-inner {
    border: 0 !important;
}

/* Редактор файлов - СОХРАНИЛ */
.file-editor-container {
    margin: 25px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.file-editor-textarea {
    flex: 1;
    padding: 25px;
    border: none;
    background: rgba(32, 34, 37, 0.9);
    color: var(--discord-text);
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
    overflow-y: auto;
}

.editor-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    resize: none;
    padding: 0;
    margin: 0;
    background: rgba(32, 34, 37, 0.9);
}

.line-numbers {
    width: 50px;
    background: rgba(32, 34, 37, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding: 25px 10px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: var(--discord-text-muted);
    text-align: right;
    overflow-y: auto;
    user-select: none;
    resize: none;
    flex-shrink: 0;
}

.line-number {
    display: block;
    line-height: 20px !important;
    height: 20px !important;
}

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.files-header-continer {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.files-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--discord-primary) 0%, var(--discord-success) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.file-editor-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Настройки - СОХРАНИЛ */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-input, .setting-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--discord-text);
    font-size: 13px;
    transition: all 0.3s ease;
}

.setting-input:focus, .setting-textarea:focus {
    outline: none;
    border-color: var(--discord-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.1);
}

.setting-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Редактор файлов в оверлее - СОХРАНИЛ */
#fileEditorOverlay .overlay-content {
    max-width: 90%;
    max-height: 85%;
    width: 90%;
    display: flex;
    flex-direction: column;
    min-width: 700px;
}

.file-editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    background: rgba(32, 34, 37, 0.9);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
}

.file-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 25px;
    background: rgba(47, 49, 54, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.file-editor-info {
    font-size: 13px;
    color: var(--discord-text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Файловый менеджер - СОХРАНИЛ */
.folder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.folder-item:hover {
    background: rgba(88, 101, 242, 0.08);
    border-color: rgba(88, 101, 242, 0.2);
    transform: translateX(3px);
}

.file-info, .folder-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.folder-item .file-icon {
    color: #ffd700;
    font-size: 22px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.folder-item .file-name {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.file-icon, .folder-icon {
    font-size: 20px;
    width: 36px;
    text-align: center;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 14px;
    color: white;
}

.file-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--discord-text-muted);
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.breadcrumb-item {
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--discord-text-muted);
    background: rgba(255, 255, 255, 0.04);
}

.breadcrumb-item:hover {
    background: rgba(88, 101, 242, 0.08);
    color: var(--discord-primary);
}

.breadcrumb-separator {
    margin: 0 10px;
    color: var(--discord-text-muted);
    opacity: 0.5;
}

.current-folder {
    font-weight: 700;
    color: var(--discord-primary);
    background: rgba(88, 101, 242, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: default;
}

/* Файлы - СОХРАНИЛ */
.files-container {
    max-height: 400px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Скроллбар - СОХРАНИЛ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Анимации - СОХРАНИЛ */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Адаптивность - СОХРАНИЛ */
@media (max-width: 768px) {
    .auth-buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    .welcome-button {
        width: 100%;
        max-width: 280px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    #appContainer {
        flex-direction: column;
    }
    
    #sidebar {
        width: 100%;
        height: auto;
        max-height: 50vh;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }
    
    .file-menu-dropdown {
        left: auto;
        right: 0;
    }
    
    .message {
        max-width: 85%;
    }
    
    .message-image {
        max-width: 200px;
   
    max-height: 220px;
    border-radius: 12px;
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.message-image:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.2);
}

.message-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    margin-top: 8px;
    color: var(--discord-text);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.message-file:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(3px);
}

.file-actions {
    display: flex;
    gap: 8px;
}

.file-action-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.file-action-btn:hover {
    background: rgba(88, 101, 242, 0.15);
    transform: translateY(-1px);
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    #appContainer {
        flex-direction: column;
    }
    
    #sidebar {
        width: 100%;
        height: auto;
        max-height: 50vh;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }
    
    .auth-buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    .welcome-button {
        width: 100%;
        max-width: 280px;
    }
    
    .message {
        max-width: 85%;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Улучшения для файлового инпута */
#fileInputChat {
    display: none;
}

/* Загрузка и ошибки */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--discord-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

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

/* Эффект пульсации для уведомлений */
.pulse {
    animation: pulse 2s infinite;
}

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

/* Emoji шрифты */
@font-face {
    font-family: 'Noto Color Emoji';
    src: url('fonts/noto-emoji.woff2') format('woff2'),
         url('fonts/noto-emoji.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.emoji, .file-icon, .folder-icon, .user-avatar,
.message-content, .chat-action-button, .action-button {
    font-family: 'Noto Color Emoji', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}