:root {
    --bg-dark: #1e1e2e;
    --bg-sidebar: #181824;
    --bg-main: #2a2a3a;
    --accent: #7aa86a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --border-color: #3a3a4a;
    --card-bg: #2d2d3d;
    --hover-bg: rgba(255, 255, 255, 0.05);
    --transition-speed: 0.2s;
    --message-sent: #7aa86a;
    --message-received: #2d2d3d;
}

body.light-theme {
    --bg-dark: #f5f7fa;
    --bg-sidebar: #ffffff;
    --bg-main: #f0f2f5;
    --accent: #4caf50;
    --text-primary: #1e1e2e;
    --text-secondary: #5a5a6e;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --hover-bg: rgba(0, 0, 0, 0.03);
    --message-sent: #e3f2fd;
    --message-received: #ffffff;
}

body.green-theme {
    --bg-dark: #1a2e1a;
    --bg-sidebar: #142114;
    --bg-main: #223622;
    --accent: #8bc34a;
    --text-primary: #f0f0f0;
    --text-secondary: #c0c0c0;
    --border-color: #3a5a3a;
    --card-bg: #2a4a2a;
    --message-sent: #4caf50;
    --message-received: #2a4a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    transition: background-color var(--transition-speed);
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Сайдбар */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    transition: left 0.3s;
}

.logo-area {
    display: flex;
    align-items: center;
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 28px;
    color: var(--accent);
    margin-right: 10px;
}

.logo-area h2 {
    font-size: 20px;
    font-weight: 600;
}

.main-nav {
    flex: 1;
    padding: 0 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 5px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: left;
}

.nav-item i {
    width: 24px;
    margin-right: 12px;
}

.nav-item:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.nav-item.active {
    background-color: var(--accent);
    color: white;
}

.user-area {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

/* Основной контент */
.main-content {
    flex: 1;
    background-color: var(--bg-main);
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

/* Мессенджер */
.messenger-container {
    display: flex;
    height: calc(100vh - 60px);
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chat-sidebar {
    width: 320px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h2 {
    font-size: 20px;
    margin: 0;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all var(--transition-speed);
}

.icon-btn:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.icon-btn.active {
    color: var(--accent);
}

.chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.chat-item {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    display: flex;
    align-items: center;
    position: relative;
}

.chat-item:hover {
    background-color: var(--hover-bg);
}

.chat-item.active {
    background-color: var(--accent);
    color: white;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-name {
    font-weight: 500;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.last-message {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.voice-record-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: 0.2s;
    color: var(--text-secondary);
}

.voice-record-btn:hover {
    background-color: var(--hover-bg);
    color: var(--accent);
}

.voice-record-btn.recording {
    color: #ff4444;
    animation: pulse-recording 0.8s infinite;
}

@keyframes pulse-recording {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.favorite-indicator {
    font-size: 14px;
    cursor: pointer;
    color: var(--text-secondary);
}

.favorite-indicator.active {
    color: gold;
}

.online-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4caf50;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.user-profile-mini {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-weight: 500;
}

.profile-status {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-status.online {
    color: #4caf50;
}

/* Область чата */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
}

.chat-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
}

.chat-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.active-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 70%;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    word-wrap: break-word;
    position: relative;
}

.message.sent {
    align-self: flex-end;
    background-color: var(--message-sent);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}

.message.received {
    align-self: flex-start;
    background-color: var(--message-received);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.message img, .message video {
    max-width: 200px;
    border-radius: 12px;
    margin-top: 5px;
    cursor: pointer;
}

.message .video-message {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    object-fit: cover;
}

.message-time {
    font-size: 11px;
    text-align: right;
    margin-top: 5px;
    opacity: 0.7;
}

.message-actions {
    position: absolute;
    right: 8px;
    top: -32px;
    display: none;
    gap: 6px;
    background-color: var(--card-bg);
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(4px);
    z-index: 5;
}

.message:hover .message-actions {
    display: flex;
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input-area input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-size: 15px;
}

.attach-btn, .video-message-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
}

.send-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
}

/* Настройки */
.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.settings-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
}

.settings-tab.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.settings-panel {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.setting-group {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting-group h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

.theme-selector {
    display: flex;
    gap: 15px;
}

.theme-btn {
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.theme-btn.active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

.action-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    align-self: flex-start;
}

.action-btn i {
    margin-right: 8px;
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent);
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.custom-file-upload i {
    margin-right: 8px;
}

input[type="file"] {
    display: none;
}

/* Модальные окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.video-message-content {
    width: 400px;
}

#video-preview {
    width: 100%;
    height: 300px;
    background-color: #000;
    border-radius: 12px;
    margin-bottom: 15px;
    object-fit: cover;
}

.video-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.call-modal-content, .active-call-content {
    width: 400px;
    text-align: center;
}

.call-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.call-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.call-btn.accept {
    background-color: #4caf50;
    color: white;
}

.call-btn.decline {
    background-color: #f44336;
    color: white;
}

.call-timer {
    font-size: 24px;
    margin: 20px 0;
}

.call-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.call-control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

.call-control-btn.end {
    background-color: #f44336;
    color: white;
}

/* Cookie-баннер */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    z-index: 3000;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner a {
    color: var(--accent); 
    text-decoration: underline;  
    cursor: pointer;  
    transition: opacity 0.2s ease;
}

.cookie-banner a:hover {
    opacity: 0.8;            
    text-decoration: none;    
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.cookie-content i {
    color: var(--accent);
}

.cookie-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    cursor: pointer;
}

/* Аутентификация */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.auth-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 6px;
}

.auth-tab.active {
    background-color: var(--accent);
    color: white;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form.hidden {
    display: none;
}

.auth-input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.auth-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

body.no-animations * {
    transition: none !important;
    animation: none !important;
}

/* Адаптивность */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    margin-right: 15px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1000;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 1500;
        width: 280px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }
    .sidebar.open {
        left: 0;
    }
    .main-content {
        margin-left: 0 !important;
        width: 100%;
        padding: 60px 15px 15px 15px;
    }
    .app-container {
        flex-direction: column;
    }
    .messenger-container {
        flex-direction: column;
        height: calc(100vh - 100px);
    }
    .chat-sidebar {
        width: 100%;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .chat-area {
        flex: 1;
    }
    .modal-content {
        width: 90% !important;
    }
}

@media (max-width: 480px) {
    .chat-header h2 {
        font-size: 16px;
    }
    .message {
        max-width: 85%;
    }
    .chat-input-area input {
        font-size: 14px;
    }
    .nav-item {
        font-size: 14px;
        padding: 10px;
    }
}

/* Дополнительные стили для модалок и textarea */
textarea.auth-input {
    resize: vertical;
    min-height: 60px;
    max-height: 150px;
}

/* Улучшение отображения на мобильных */
@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
    }
    .setting-group img {
        width: 80px !important;
        height: 80px !important;
    }
}

/* ========== СОЦИАЛЬНАЯ СЕТЬ PARADOX ========== */
.social-container {
    display: flex;
    height: calc(100vh - 60px);
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.social-sidebar {
    width: 320px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background-color: var(--bg-sidebar);
}

.social-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-header h2 {
    font-size: 20px;
    margin: 0;
}

.social-search {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.search-btn {
    background-color: var(--accent);
    border: none;
    border-radius: 20px;
    padding: 0 15px;
    cursor: pointer;
    color: white;
}

.social-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.social-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
}

.social-tab.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.channels-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.channel-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color var(--transition-speed);
}

.channel-item:hover {
    background-color: var(--hover-bg);
}

.channel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-info {
    flex: 1;
}

.channel-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.channel-id {
    font-size: 12px;
    color: var(--text-secondary);
}

.channel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.channel-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
}

.channel-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Страница канала */
.channel-page {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.channel-banner {
    background: linear-gradient(135deg, var(--accent), var(--bg-dark));
    padding: 30px;
    position: relative;
}

.channel-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.channel-page-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
}

.channel-page-info {
    flex: 1;
}

.channel-page-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.channel-page-id {
    font-size: 14px;
    opacity: 0.8;
}

.channel-page-desc {
    margin-top: 10px;
    font-size: 14px;
}

.channel-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.subscribe-btn, .unsubscribe-btn, .create-post-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.subscribe-btn {
    background-color: var(--accent);
    color: white;
}

.unsubscribe-btn {
    background-color: #f44336;
    color: white;
}

.create-post-btn {
    background-color: var(--accent);
    color: white;
}

/* Посты */
.posts-feed {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.post-card {
    background-color: var(--bg-main);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 8px;
}

.post-header > div {
    display: flex;
    gap: 8px;
}

.post-author {
    font-weight: 600;
    color: var(--accent);
}

.post-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.post-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.post-text {
    margin-bottom: 15px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.post-media {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

.post-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.post-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-action-btn:hover {
    color: var(--accent);
}

.comments-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.like-btn .liked {
    color: #f44336;
}

.comment {
    padding: 10px;
    background-color: var(--bg-dark);
    border-radius: 8px;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    font-size: 13px;
    color: var(--accent);
}

.comment-text {
    font-size: 14px;
    margin-top: 5px;
}

.add-comment {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.add-comment input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.add-comment-btn {
    background-color: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;

}

/* Опросы и викторины */
.poll-option {
    padding: 10px;
    margin: 8px 0;
    background-color: var(--bg-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.poll-option:hover {
    background-color: var(--hover-bg);
}

.poll-option.selected {
    background-color: var(--accent);
    color: white;
}

.poll-results-bar {
    height: 30px;
    background-color: var(--accent);
    border-radius: 15px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: white;
    font-size: 12px;
}

.quiz-option {
    padding: 10px;
    margin: 8px 0;
    background-color: var(--bg-dark);
    border-radius: 8px;
    cursor: pointer;
}

.quiz-feedback {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
}

.quiz-correct {
    background-color: #4caf50;
    color: white;
}

.quiz-incorrect {
    background-color: #f44336;
    color: white;
}

.message-media {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    margin-top: 5px;
    cursor: pointer;
}

.audio-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-dark);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
}

.audio-message i {
    font-size: 16px;
    color: var(--accent);
}

.audio-message:hover {
    background: var(--hover-bg);
}

/* Модалки */
.channel-modal-content, .post-modal-content, .poll-modal-content {
    width: 500px;
    max-width: 90vw;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.avatar-preview {
    margin-top: 10px;
}

.avatar-preview img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.action-btn.secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.hidden {
    display: none;
}

/* Адаптив для социальной сети */
@media (max-width: 768px) {
    .social-container {
        flex-direction: column;
        height: auto;
    }
    
    .social-sidebar {
        width: 100%;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .channel-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .post-card {
        padding: 15px;
    }
}

/* ========== СТИЛИЗОВАННЫЕ УВЕДОМЛЕНИЯ ========== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background-color: var(--card-bg);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.notification.error {
    border-left-color: #f44336;
}

.notification.success {
    border-left-color: #4caf50;
}

.notification.warning {
    border-left-color: #ff9800;
}

.notification i {
    font-size: 20px;
}

.notification.error i {
    color: #f44336;
}

.notification.success i {
    color: #4caf50;
}

.notification.warning i {
    color: #ff9800;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: var(--text-secondary);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.edit-post-btn,
.delete-post-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: 0.2s;
    color: var(--text-secondary);
}

.delete-post-btn:hover {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.edit-post-btn:hover {
    background-color: var(--hover-bg);
    color: var(--accent);
}

/* Кнопка настройки канала */
.edit-channel-btn {
    background-color: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.edit-channel-btn:hover {
    background-color: var(--accent);
}

.delete-channel-btn {
    background-color: #f44336;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.delete-channel-btn:hover {
    background-color: #d32f2f;
}

.delete-for-me-btn,
.delete-for-all-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.delete-for-me-btn:hover {
    background-color: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.delete-for-all-btn:hover {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* Исправление для длинных сообщений */
.message {
    max-width: 80%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.message-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Исправление для области чата на мобильных */
.chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.active-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-input-area {
    flex-shrink: 0;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    background-color: var(--bg-main);
}

.chat-input-area input {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .chat-messages {
        padding: 15px;
    }
    .message {
        max-width: 90%;
    }
    .chat-input-area {
        padding: 10px 15px;
    }
}

/* Обрезка длинных сообщений в списке чатов */
.last-message {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .last-message {
        max-width: 150px;
    }
}

/* Кастомный скроллбар (webkit) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a8a4a;
}

/* Для Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-dark);
}

/* Убираем лишние горизонтальные прокрутки */
body, .app-container, .main-content, .view, .messenger-container, .chat-sidebar, .chat-area,
.chat-list, .channels-list {
    overflow-x: hidden;
}

/* Обеспечиваем сжатие текста в чат-листе */
.chat-info {
    min-width: 0;
    overflow: hidden;
}

/* ========== IMPULSE – ВИДЕОКОНФЕРЕНЦИИ (бывший JERK) ========== */

/* Основной контейнер */
.impulse-container {
    display: flex;
    height: calc(100vh - 60px);
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Боковая панель со списком конференций */
.impulse-sidebar {
    width: 320px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background-color: var(--bg-sidebar);
}

.impulse-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.impulse-header h2 {
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.impulse-conference-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* Основная область (комната конференции или заглушка) */
.impulse-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
}

.impulse-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
}

.impulse-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* ===== КОМНАТА КОНФЕРЕНЦИИ ===== */
.conference-room {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #0f0f1a;
}

.conf-room-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Обёртка сетки видео */
.video-grid-wrapper {
    flex: 1;
    overflow: auto;
    background: #0a0a0f;
    padding: 10px;
}

/* Сетка видео (динамическая) */
.video-grid {
    width: 100%;
    height: 100%;
    display: grid;
    gap: 12px;
    transition: all 0.2s;
}

/* Видео-плитка */
.video-tile {
    background: #1e1e2e;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
}

/* Видео внутри плитки */
.video-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Имя участника на видео */
.video-tile .participant-name {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    z-index: 2;
}

/* ===== ЧАТ ===== */
.conference-chat {
    width: 320px;
    background: var(--bg-sidebar);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.conference-chat.hidden {
    display: none;
}

.chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 16px;
    margin: 0;
}

.chat-messages-impulse {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Сообщения в чате */
.chat-messages-impulse .message {
    max-width: 90%;
}

.chat-messages-impulse .message.sent {
    align-self: flex-end;
}

.chat-messages-impulse .message.received {
    align-self: flex-start;
}

/* Поле ввода чата */
.chat-input-area-impulse {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-sidebar);
}

.chat-input-area-impulse input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 14px;
}

.attach-btn-impulse {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-dark);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    color: var(--text-secondary);
}
.attach-btn-impulse:hover {
    background: var(--accent);
    color: white;
}
.attach-btn-impulse i {
    font-size: 18px;
}

#send-chat-btn-impulse {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}
#send-chat-btn-impulse:hover {
    opacity: 0.9;
}

/* ===== ПАНЕЛЬ УПРАВЛЕНИЯ ===== */
.conference-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border-color);
}

.control-btn {
    background: var(--bg-dark);
    border: none;
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.control-btn:hover {
    transform: scale(1.05);
}
.control-btn.active {
    background: var(--accent);
    color: white;
}
.control-btn.danger {
    background: #f44336;
    color: white;
}
.control-btn.danger:hover {
    background: #d32f2f;
}

/* ===== АДАПТИВНАЯ ВЁРСТКА ===== */
@media (max-width: 768px) {
    .impulse-container {
        flex-direction: column;
    }
    .impulse-sidebar {
        width: 100%;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
    .video-tile {
        aspect-ratio: 16 / 9;
    }
    .conference-chat {
        width: 100%;
        height: 300px;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .attach-btn-impulse,
    #send-chat-btn-impulse {
        width: 32px;
        height: 32px;
    }
    .attach-btn-impulse i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .impulse-header h2 {
        font-size: 16px;
    }
    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .conference-controls {
        gap: 12px;
        padding: 10px;
    }
    .chat-messages-impulse .message {
        max-width: 95%;
    }
}

/* Полноэкранный просмотр */
.fullscreen-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.9);
    border-radius: 8px;
}

#fullscreen-media-container {
    max-width: 100%;
    max-height: 100%;
    text-align: center;
}

#fullscreen-media-container img,
#fullscreen-media-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.close-fullscreen {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.close-fullscreen:hover {
    color: #ccc;
}

/* Сообщение с файлом */
.file-message {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-dark);
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.file-message i {
    font-size: 28px;
    color: var(--accent);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    word-break: break-all;
}

.file-size {
    font-size: 11px;
    opacity: 0.7;
}

.file-message:hover {
    background: var(--hover-bg);
}

/* Полноэкранный просмотр */
#fullscreen-media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Скрытое состояние — самый сильный приоритет */
#fullscreen-media-modal.hidden {
    display: none !important;
}

.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#fullscreen-media-container {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#fullscreen-media-container img,
#fullscreen-media-container video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: 0.2s;
}

.close-fullscreen:hover {
    background: rgba(255,255,255,0.3);
    color: #000;
}

@media (max-width: 768px) {
    .close-fullscreen {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    #fullscreen-media-container {
        max-width: 95vw;
        max-height: 85vh;
    }
}

/* Аудио-файлы в чате */
.audio-file-message {
    background: var(--bg-dark);
    border-radius: 16px;
    padding: 12px;
    max-width: 300px;
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
}

.audio-file-message audio {
    width: 100%;
    border-radius: 32px;
    outline: none;
}

.audio-file-message audio::-webkit-media-controls-panel {
    background-color: var(--bg-main);
}

/* Обеспечение вертикальной прокрутки при переполнении */
body, html {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.app-container {
    min-height: 100vh;
}

.main-content {
    overflow-y: auto;
    max-height: 100vh;
    position: relative;
}

/* Для мобильных – чтобы сайдбар не мешал прокрутке */
@media (max-width: 768px) {
    .main-content {
        max-height: none;
        height: auto;
        padding-bottom: 70px; /* немного места снизу */
    }
    .chat-input-area {
        position: sticky;
        bottom: 0;
        background: var(--bg-main);
        z-index: 10;
    }
}

/* Стили для ссылок в сообщениях */
.message-text a {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.message-text a:hover {
    opacity: 0.8;
}

/* Стили для цитат (ответов) */
.reply-quote {
    background: var(--hover-bg);
    border-left: 3px solid var(--accent);
    padding: 6px 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}
.reply-quote .reply-author {
    font-weight: bold;
    color: var(--accent);
    margin-right: 8px;
}
.reply-quote .reply-text {
    word-break: break-word;
}

/* Блок для выбранного ответа в поле ввода */
.reply-preview {
    background: var(--hover-bg);
    border-left: 3px solid var(--accent);
    padding: 8px 12px;
    margin: 0 0 8px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.reply-preview .cancel-reply {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 16px;
}
.reply-preview .cancel-reply:hover {
    color: #f44336;
}

/* Исправление модалки группы */
#group-manage-content button {
    margin-top: 5px;
}
#group-manage-content .action-btn {
    margin-right: 10px;
}
#group-manage-content hr {
    margin: 15px 0;
}

/* ===== КНОПКИ ОТВЕТА И РЕДАКТИРОВАНИЯ ===== */
.reply-btn, .edit-message-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reply-btn:hover {
    background-color: rgba(122, 168, 106, 0.2);
    color: var(--accent);
    transform: scale(1.05);
}

.edit-message-btn:hover {
    background-color: rgba(122, 168, 106, 0.2);
    color: var(--accent);
    transform: scale(1.05);
}

/* Превью ответа в поле ввода */
.reply-preview {
    background: var(--hover-bg);
    border-left: 3px solid var(--accent);
    padding: 8px 12px;
    margin: 0 0 8px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    animation: fadeInUp 0.2s ease;
}

.reply-preview .cancel-reply {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 20px;
    transition: 0.2s;
}

.reply-preview .cancel-reply:hover {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* Пометка об изменении сообщения */
.message-edited {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Цитата - кликабельна */
.reply-quote {
    background: var(--border-color);
    border-left: 3px solid var(--accent);
    padding: 6px 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    max-height: 60px;
    overflow-y: auto;
    word-break: break-word;
}

.reply-quote .reply-author {
    font-weight: bold;
    color: var(--accent);
    margin-right: 8px;
}
.reply-quote .reply-text {
    font-style: italic;
}

/* Подсветка сообщения при переходе по цитате */
.message.highlight {
    animation: highlightFlash 1s ease;
    box-shadow: 0 0 0 2px var(--accent);
    border-radius: 18px;
}
@keyframes highlightFlash {
    0% { background-color: rgba(122, 168, 106, 0); }
    30% { background-color: rgba(122, 168, 106, 0.5); }
    100% { background-color: transparent; }
}

/* ============================================================
   FLAME — финальная версия: единый стиль с другими разделами
   ============================================================ */

/* ---------- Основной контейнер ---------- */
.flame-container {
    display: flex;
    height: calc(100vh - 60px);
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* ---------- Сайдбар ---------- */
.flame-sidebar {
    width: 320px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background-color: var(--bg-sidebar);
    flex-shrink: 0;
}

.flame-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.flame-header h2 {
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.flame-header h2 .fa-fire {
    color: var(--text-primary);
    font-size: 24px;
    line-height: 1;
}

/* ---------- Поиск ---------- */
.flame-search {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.flame-search .search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}

.flame-search .search-input:focus {
    border-color: var(--accent);
}

.flame-search .search-btn {
    background-color: var(--accent);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 15px;
    transition: filter 0.15s;
    padding: 0;
}

.flame-search .search-btn:hover {
    filter: brightness(1.1);
}

/* ---------- Список списков ---------- */
.flame-lists-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flame-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
    user-select: none;
    position: relative;
}

.flame-sidebar-item > i:first-child {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 9px;
    background: var(--bg-dark);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.flame-sidebar-item:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.flame-sidebar-item:hover > i:first-child {
    background: var(--accent);
    color: white;
}

.flame-sidebar-item.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.flame-sidebar-item.active > i:first-child {
    background: rgba(255, 255, 255, 0.22);
    color: white;
}

.flame-sidebar-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.flame-sidebar-count {
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-dark);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 8px;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.flame-sidebar-item:hover .flame-sidebar-count {
    background: var(--accent);
    color: white;
}

.flame-sidebar-item.active .flame-sidebar-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.flame-sidebar-delete {
    display: none;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: inherit;
    cursor: pointer;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.flame-sidebar-item:hover .flame-sidebar-delete {
    display: flex;
}

.flame-sidebar-delete:hover {
    background: rgba(244, 67, 54, 0.9);
    color: white;
}

/* ---------- Основная область ---------- */
.flame-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-main);
}

.flame-content-header {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    flex-shrink: 0;
    background-color: var(--bg-main);
}

/* ---------- Навигация по дню ---------- */
.flame-day-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.flame-nav-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
    font-size: 13px;
}

.flame-nav-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-1px);
}

.flame-nav-btn:active {
    transform: translateY(0);
}

.flame-current-date {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    transition: color 0.15s;
}

.flame-current-date[data-is-today="1"] {
    color: var(--accent);
}

.flame-current-date[data-is-past="1"] {
    opacity: 0.55;
}

.flame-btn-today {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.flame-btn-today:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* ---------- Кнопка "Новая задача" ---------- */
.flame-new-task-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 22px;
    border: none;
    background: var(--accent);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.flame-new-task-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    filter: brightness(1.05);
}

.flame-new-task-btn:active {
    transform: translateY(0);
}

/* ---------- Контейнер задач ---------- */
.flame-tasks-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---------- Карточка задачи ---------- */
.flame-task-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px 14px 18px;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

.flame-task-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.15s;
    border-radius: 14px 0 0 14px;
}

.flame-task-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.flame-task-card:hover::before {
    opacity: 1;
}

/* Чекбокс */
.flame-task-check {
    display: flex;
    align-items: center;
    padding-top: 9px;
    flex-shrink: 0;
}

.flame-task-check input {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--accent);
}

/* Иконка задачи */
.flame-task-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: rgba(122, 168, 106, 0.14);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: background 0.15s, color 0.15s;
}

.flame-task-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.flame-task-card:hover .flame-task-icon {
    background: var(--accent);
    color: white;
}

/* Тело карточки */
.flame-task-body {
    flex: 1;
    min-width: 0;
}

.flame-task-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.flame-task-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    word-break: break-word;
    line-height: 1.3;
}

.flame-task-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Бейджи */
.flame-task-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 10px;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.flame-task-time i {
    font-size: 11px;
    color: var(--accent);
}

.flame-task-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(122, 168, 106, 0.15);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.flame-task-list-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 10px;
    background: var(--bg-dark);
    color: var(--text-secondary);
    font-size: 12px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.flame-task-notify {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(240, 165, 0, 0.12);
    color: #f0a500;
    font-size: 12px;
    white-space: nowrap;
}

/* Действия с задачей */
.flame-task-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
    align-self: center;
    flex-shrink: 0;
}

.flame-task-card:hover .flame-task-actions {
    opacity: 1;
}

.flame-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-size: 13px;
    padding: 0;
    flex-shrink: 0;
}

.flame-icon-btn:hover {
    background: var(--hover-bg);
    color: var(--accent);
    border-color: var(--border-color);
}

.flame-icon-btn[data-action="delete"]:hover {
    color: #f44336;
    border-color: rgba(244, 67, 54, 0.35);
    background: rgba(244, 67, 54, 0.08);
}

/* Выполненная задача */
.flame-task-card.done {
    opacity: 0.55;
}

.flame-task-card.done .flame-task-title {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.flame-task-card.done .flame-task-icon {
    background: var(--bg-dark);
    color: var(--text-secondary);
}

.flame-task-card.done:hover {
    opacity: 0.85;
}

/* ---------- Пустое состояние ---------- */
.flame-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 14px;
    color: var(--text-secondary);
    text-align: center;
    flex: 1;
}

.flame-empty i {
    font-size: 56px;
    color: var(--accent);
    opacity: 0.28;
}

.flame-empty p {
    margin: 0;
    font-size: 14px;
}

.flame-empty-hint {
    font-size: 12px !important;
    opacity: 0.75;
}

/* ---------- Модалки ---------- */
.flame-modal {
    width: 480px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
}

.flame-modal .form-group {
    margin-bottom: 14px;
}

.flame-modal .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.flame-modal .auth-input {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.flame-modal textarea.auth-input {
    resize: vertical;
    min-height: 60px;
}

.flame-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ---------- Выбор иконки ---------- */
.flame-icon-picker {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-dark);
    max-height: 190px;
    overflow-y: auto;
}

.flame-icon-option {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: all 0.15s;
    font-family: inherit;
}

.flame-icon-option svg {
    width: 22px;
    height: 22px;
    display: block;
}

.flame-icon-option:hover {
    color: var(--accent);
    background: var(--hover-bg);
    border-color: var(--border-color);
}

.flame-icon-option.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ============================================================
   FLAME — адаптив
   ============================================================ */

@media (max-width: 1024px) {
    .flame-sidebar {
        width: 280px;
    }
    .flame-current-date {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    /* Контейнер — колонка */
    .flame-container {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 100px);
        border-radius: 12px;
    }

    /* Сайдбар во всю ширину сверху */
    .flame-sidebar {
        width: 100%;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        flex-shrink: 0;
    }

    .flame-header {
        padding: 14px 16px;
    }

    .flame-header h2 {
        font-size: 18px;
    }

    .flame-header h2 .fa-fire {
        font-size: 22px;
    }

    .flame-search {
        padding: 12px 14px;
    }

    /* Списки — горизонтальный скролл */
    .flame-lists-scroll {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px;
        gap: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .flame-lists-scroll::-webkit-scrollbar {
        display: none;
    }

    .flame-sidebar-item {
        flex-shrink: 0;
        padding: 8px 12px;
        border-radius: 20px;
        gap: 8px;
        font-size: 13px;
    }

    .flame-sidebar-item > i:first-child {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 11px;
        border-radius: 7px;
    }

    .flame-sidebar-name {
        font-size: 13px;
        max-width: 110px;
    }

    .flame-sidebar-count {
        font-size: 10px;
        padding: 2px 7px;
        min-width: 20px;
    }

    .flame-sidebar-delete {
        display: flex;
        width: 20px;
        height: 20px;
        font-size: 9px;
    }

    /* Контент */
    .flame-content-header {
        padding: 12px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .flame-day-nav {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .flame-nav-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .flame-current-date {
        flex: 1;
        text-align: center;
        font-size: 13px;
        padding: 0 6px;
    }

    .flame-btn-today {
        padding: 6px 12px;
        font-size: 12px;
    }

    .flame-new-task-btn {
        width: 100%;
        justify-content: center;
        padding: 11px 18px;
        font-size: 14px;
    }

    /* Задачи */
    .flame-tasks-container {
        padding: 14px 14px 30px;
        gap: 10px;
    }

    .flame-task-card {
        padding: 12px 12px 12px 14px;
        gap: 10px;
        border-radius: 12px;
    }

    .flame-task-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 10px;
    }

    .flame-task-icon svg {
        width: 18px;
        height: 18px;
    }

    .flame-task-check input {
        width: 20px;
        height: 20px;
    }

    .flame-task-actions {
        opacity: 1;
        gap: 2px;
    }

    .flame-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* Модалки */
    .flame-modal {
        width: 92vw;
        max-height: 90vh;
        overflow-y: auto;
    }

    .flame-modal .form-row {
        grid-template-columns: 1fr;
    }

    .flame-icon-picker {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 480px) {
    .flame-content-header {
        padding: 10px 12px;
    }

    .flame-day-nav {
        gap: 6px;
    }

    .flame-nav-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 12px;
    }

    .flame-current-date {
        font-size: 12px;
        padding: 0 4px;
    }

    .flame-btn-today {
        padding: 5px 10px;
        font-size: 11px;
    }

    .flame-new-task-btn {
        padding: 10px 14px;
        font-size: 13px;
        gap: 6px;
    }

    .flame-tasks-container {
        padding: 12px 12px 24px;
    }

    .flame-task-card {
        padding: 10px 10px 10px 12px;
        gap: 8px;
    }

    .flame-task-title {
        font-size: 14px;
    }

    .flame-task-desc {
        font-size: 12px;
    }

    .flame-task-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .flame-task-icon svg {
        width: 16px;
        height: 16px;
    }

    .flame-task-check input {
        width: 18px;
        height: 18px;
    }

    .flame-icon-btn {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .flame-sidebar-name {
        max-width: 90px;
    }

    .flame-icon-picker {
        grid-template-columns: repeat(5, 1fr);
        max-height: 160px;
    }
}

.avatar-cropper-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.15s ease;
}
.avatar-cropper-box {
    background: var(--bg-sidebar, #1a1a2e);
    border-radius: 16px;
    padding: 20px;
    max-width: 95vw;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.avatar-cropper-header {
    color: var(--text-primary, #fff);
    font-size: 16px; font-weight: 600;
    margin-bottom: 16px; text-align: center;
}
.avatar-cropper-stage {
    position: relative;
    width: 320px; height: 320px;
    margin: 0 auto;
    cursor: grab;
    user-select: none;
    touch-action: none;
    border-radius: 12px;
    overflow: hidden;
    background: #0b0b0f;
}
.avatar-cropper-stage:active { cursor: grabbing; }
.avatar-cropper-canvas { display: block; }
.avatar-cropper-mask {
    position: absolute; inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 0 49.5%, rgba(0,0,0,0.55) 50% 100%);
}
.avatar-cropper-controls { margin-top: 14px; }
.avatar-cropper-row {
    display: flex; align-items: center; gap: 12px;
    margin-top: 10px;
    color: var(--text-primary, #fff);
}
.avatar-cropper-row button {
    background: var(--bg-dark, #2a2a3e);
    border: none; color: var(--text-primary, #fff);
    padding: 8px 12px; border-radius: 8px; cursor: pointer;
    transition: background 0.15s;
}
.avatar-cropper-row button:hover { background: var(--accent, #6b5ce7); }
.avatar-cropper-zoom { flex: 1; accent-color: var(--accent, #6b5ce7); }
.avatar-cropper-actions {
    display: flex; gap: 10px; margin-top: 18px;
    justify-content: flex-end;
}
.ac-btn {
    padding: 8px 18px; border-radius: 20px; border: none;
    cursor: pointer; font-size: 14px;
    transition: filter 0.15s;
}
.ac-btn:hover { filter: brightness(1.1); }
.ac-cancel { background: var(--bg-dark, #2a2a3e); color: var(--text-primary, #fff); }
.ac-save { background: var(--accent, #6b5ce7); color: #fff; }

/* Кнопка "Редактировать" поверх аватара */
.avatar-wrap {
    position: relative;
    align-self: center;
    width: 100px; height: 100px;
}
.avatar-wrap .avatar-preview {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.avatar-edit-btn {
    position: absolute;
    right: -4px; bottom: -4px;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-sidebar, #1a1a2e);
    background: var(--accent, #6b5ce7);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
}
.avatar-edit-btn:hover { filter: brightness(1.15); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.post-card.highlighted {
    animation: postHighlight 3s ease-out;
    box-shadow: 0 0 0 2px var(--accent), 0 0 20px rgba(107, 92, 231, 0.5);
    border-radius: 12px;
}
@keyframes postHighlight {
    0%   { box-shadow: 0 0 0 2px var(--accent), 0 0 30px rgba(107, 92, 231, 0.9); }
    70%  { box-shadow: 0 0 0 2px var(--accent), 0 0 15px rgba(107, 92, 231, 0.5); }
    100% { box-shadow: none; }
}

/* ===== Полноэкранный чат в конференции (оверлей) ===== */
.conf-room-layout {
    position: relative;
    flex: 1;
    display: flex;
    overflow: hidden;
}

.video-grid-wrapper {
    flex: 1;
    overflow: auto;
    padding: 12px;
}

.video-grid {
    height: 100%;
    width: 100%;
}

/* Чат теперь абсолютно позиционирован поверх видео-сетки */
.conference-chat {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: var(--bg-sidebar);
    display: none;
    flex-direction: column;
    border-left: none;
    border-radius: 0;
}

.conf-room-layout.chat-open .conference-chat {
    display: flex;
}

.conference-chat .chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conference-chat .chat-header h3 {
    margin: 0;
    font-size: 16px;
}

.conference-chat .chat-messages-impulse {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conference-chat .chat-input-area-impulse {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-sidebar);
}

.conference-chat .chat-input-area-impulse input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 14px;
}

/* На мобильных чат тоже растягивается на всё окно */
@media (max-width: 768px) {
    .conf-room-layout.chat-open .conference-chat {
        width: 100%;
        height: 100%;
    }
}

/* ===== Кнопка "…" в списке чатов (усиленная версия) ===== */
.chat-item {
    position: relative !important;
    padding-right: 50px !important;
}

.chat-actions-btn {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 10px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0.65 !important;
    transition: opacity 0.15s, background 0.15s, color 0.15s, border-color 0.15s !important;
    z-index: 5 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    -webkit-tap-highlight-color: transparent !important;
}

.chat-actions-btn svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    pointer-events: none;
}

.chat-item:hover .chat-actions-btn {
    opacity: 1 !important;
}

.chat-actions-btn:hover {
    background: var(--hover-bg) !important;
    color: var(--accent) !important;
    border-color: var(--border-color) !important;
}

.chat-actions-btn:active {
    transform: translateY(-50%) scale(0.92) !important;
    background: var(--accent) !important;
    color: white !important;
}

.chat-item .favorite-indicator {
    margin-left: 6px !important;
}

@media (max-width: 768px) {
    .chat-actions-btn {
        opacity: 1 !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }
    .chat-actions-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
    .chat-item {
        padding-right: 54px !important;
    }
}

.chat-item.active .chat-actions-btn {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ===== Меню действий с чатом (усиленное) ===== */
.chat-actions-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 15px !important;
}

.chat-action-row {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    padding: 12px 14px !important;
    background: var(--bg-dark) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    color: var(--text-primary) !important;
    text-align: left !important;
    font-family: inherit !important;
    font-size: 14px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s, background 0.15s, transform 0.15s !important;
}

.chat-action-row > div {
    flex: 1 !important;
    min-width: 0 !important;
}

.chat-action-row i {
    font-size: 18px !important;
    color: var(--accent) !important;
    width: 22px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.chat-action-row:hover {
    border-color: var(--accent) !important;
    background: var(--hover-bg) !important;
    transform: translateY(-1px) !important;
}

.chat-action-row.danger i {
    color: #f44336 !important;
}

.chat-action-row.danger:hover {
    border-color: rgba(244, 67, 54, 0.5) !important;
    background: rgba(244, 67, 54, 0.06) !important;
}

.chat-action-title {
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-bottom: 3px !important;
    color: var(--text-primary) !important;
}

.chat-action-desc {
    font-size: 12px !important;
    color: var(--text-secondary) !important;
    line-height: 1.3 !important;
}