﻿
        /* ===== БАЗОВЫЕ СТИЛИ ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
        }
        
        body {
            background: #edeef0;
            color: #000000;
            line-height: 1.34;
            min-height: 100vh;
            padding-bottom: 60px;
        }
        
        a {
            text-decoration: none;
            color: inherit;
        }
        
        button {
            cursor: pointer;
            border: none;
            outline: none;
            font-family: inherit;
        }
        
        input, textarea, select {
            font-family: inherit;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* ===== АВТОРИЗАЦИЯ ===== */
        .auth-page {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #4a76a8 0%, #3a5f8a 100%);
            padding: 20px;
        }
        
        .auth-box {
            background: white;
            border-radius: 12px;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
            padding: 40px;
            width: 100%;
            max-width: 450px;
            animation: fadeIn 0.5s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-30px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .auth-header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .auth-logo {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #4a76a8, #3a5f8a);
            border-radius: 50%;
            margin: 0 auto 20px;
            color: white;
            font-size: 36px;
        }
        
        .auth-title {
            font-size: 32px;
            color: #1c1e21;
            margin-bottom: 8px;
            font-weight: 700;
        }
        
        .auth-subtitle {
            color: #65676b;
            font-size: 16px;
        }
        
        .auth-tabs {
            display: flex;
            margin-bottom: 25px;
            border-bottom: 2px solid #e4e6eb;
        }
        
        .auth-tab {
            flex: 1;
            padding: 12px;
            text-align: center;
            font-size: 16px;
            font-weight: 600;
            color: #65676b;
            background: none;
            border: none;
            cursor: pointer;
            position: relative;
            transition: color 0.3s;
        }
        
        .auth-tab:hover {
            color: #4a76a8;
        }
        
        .auth-tab.active {
            color: #4a76a8;
        }
        
        .auth-tab.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 3px;
            background: #4a76a8;
            border-radius: 3px 3px 0 0;
        }
        
        .auth-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .form-input {
            padding: 14px 16px;
            font-size: 16px;
            border: 1px solid #dddfe2;
            border-radius: 8px;
            background: #f5f6f7;
            transition: all 0.3s;
        }
        
        .form-input:focus {
            border-color: #4a76a8;
            box-shadow: 0 0 0 3px rgba(74, 118, 168, 0.1);
            outline: none;
            background: white;
        }
        
        .password-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }
        
        .password-wrapper .form-input {
            width: 100%;
            padding-right: 45px;
        }
        
        .password-toggle {
            position: absolute;
            right: 12px;
            background: none;
            border: none;
            color: #65676b;
            cursor: pointer;
            font-size: 18px;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s;
        }
        
        .password-toggle:hover {
            background: #e4e6eb;
            color: #4a76a8;
        }
        
        .btn {
            padding: 12px 24px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 4px;
            text-align: center;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s;
        }
        
        .btn-primary {
            background: #5181b8;
            color: white;
            border: none;
        }
        
        .btn-primary:hover {
            background: #4472a3;
        }
        
        .btn-secondary {
            background: #e5ebf1;
            color: #55677d;
            border: none;
        }
        
        .btn-secondary:hover {
            background: #d6dde6;
        }
        
        .btn-danger {
            background: #ff5e5e;
            color: white;
            border: none;
        }
        
        .btn-danger:hover {
            background: #e53935;
        }
        
        .btn-success {
            background: #4caf50;
            color: white;
            border: none;
        }
        
        .btn-success:hover {
            background: #43a047;
        }
        
        .btn-warning {
            background: #ff9800;
            color: white;
            border: none;
        }
        
        .btn-warning:hover {
            background: #f57c00;
        }
        
        .btn-small {
            padding: 6px 12px;
            font-size: 12px;
        }
        
        .message {
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 15px;
            font-size: 14px;
            display: none;
            animation: slideIn 0.3s ease;
        }
        
        @keyframes slideIn {
            from { opacity: 0; transform: translateX(-20px); }
            to { opacity: 1; transform: translateX(0); }
        }
        
        .message.success {
            background: #e7f7e7;
            color: #2e7d32;
            border-left: 4px solid #2e7d32;
        }
        
        .message.error {
            background: #ffeaea;
            color: #d93025;
            border-left: 4px solid #d93025;
        }
        
        .message.info {
            background: #e3f2fd;
            color: #1976d2;
            border-left: 4px solid #1976d2;
        }
        
        /* ===== ШАПКА ===== */
        .header {
            background: #507299;
            height: 48px;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
        }
        
        .nav {
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 20px;
            font-weight: 600;
            color: white;
        }
        
        .logo i {
            font-size: 22px;
        }
        
        .search-container {
            position: relative;
            flex: 1;
            max-width: 400px;
            margin: 0 20px;
        }
        
        .search-input {
            width: 100%;
            padding: 6px 35px 6px 12px;
            border: 1px solid #2d547d;
            border-radius: 2px;
            font-size: 13px;
            background: #2d547d;
            color: white;
            transition: all 0.3s;
        }
        
        .search-input:focus {
            background: white;
            color: #000;
            border-color: #ffffff;
        }
        
        .search-input::placeholder {
            color: #a8c3e0;
        }
        
        .search-btn {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            color: #a8c3e0;
            font-size: 14px;
        }
        
        .user-menu {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #a8c3e0;
        }
        
        .user-name {
            font-weight: 500;
            color: white;
            font-size: 14px;
            max-width: 150px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .btn-logout {
            padding: 5px 12px;
            background: #ff5e5e;
            color: white;
            border-radius: 2px;
            font-weight: 500;
            font-size: 12px;
        }
        
        .btn-logout:hover {
            background: #e53935;
        }
        
        /* ===== ОСНОВНОЙ КОНТЕНТ ===== */
        .main-content {
            padding: 20px 0;
            display: flex;
            gap: 20px;
        }
        
        .sidebar-left {
            width: 220px;
            flex-shrink: 0;
            position: sticky;
            top: 68px;
            height: fit-content;
        }
        
        .menu {
            background: white;
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
        }
        
        .menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 15px;
            color: #2a5885;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.3s;
            cursor: pointer;
            border-left: 3px solid transparent;
            border-bottom: 1px solid #e7e8ec;
        }
        
        .menu-item:last-child {
            border-bottom: none;
        }
        
        .menu-item:hover {
            background: #f0f2f5;
        }
        
        .menu-item.active {
            background: #f0f2f5;
            color: #2a5885;
            border-left: 3px solid #5181b8;
        }
        
        .menu-item i {
            width: 18px;
            text-align: center;
            font-size: 16px;
            color: #6a7b94;
        }
        
        .menu-item.active i {
            color: #5181b8;
        }
        
        .content-area {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        /* ===== ПРОФИЛЬ ===== */
        .profile-container {
            background: white;
            border-radius: 4px;
            box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
            overflow: hidden;
            margin-bottom: 20px;
        }
        
        .profile-cover {
            height: 200px;
            background: linear-gradient(135deg, #45688e 0%, #244166 100%);
            position: relative;
            background-size: cover;
            background-position: center;
        }
        
        .profile-cover-edit {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 5px 10px;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            opacity: 1;
            transition: opacity 0.3s;
        }
        
        .profile-header {
            padding: 20px;
            position: relative;
            margin-top: -60px;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
        }
        
        .profile-avatar-container {
            display: flex;
            align-items: flex-end;
            position: relative;
        }
        
        .profile-avatar {
            width: 160px;
            height: 160px;
            border-radius: 50%;
            border: 4px solid white;
            object-fit: cover;
            box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
            position: relative;
        }
        
        .profile-name-section {
            margin-left: 20px;
        }
        
        .profile-name {
            font-size: 28px;
            font-weight: 700;
            color: #000;
            margin-bottom: 5px;
        }
        
        .profile-actions-container {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .profile-share-btn {
            padding: 8px 16px;
            background: #e5ebf1;
            color: #55677d;
            border-radius: 4px;
            font-weight: 500;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .profile-share-btn:hover {
            background: #d6dde6;
        }
        
        .share-profile-popup {
            position: absolute;
            bottom: 100%;
            right: 0;
            background: white;
            border-radius: 8px;
            padding: 15px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
            z-index: 100;
            min-width: 300px;
            border: 1px solid #e7e8ec;
            display: none;
            animation: fadeInUp 0.2s ease;
        }
        
        .share-profile-popup-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #000;
        }
        
        .profile-link-container {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
        }
        
        .profile-link-input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid #d3d9de;
            border-radius: 4px;
            font-size: 12px;
        }
        
        .copy-profile-link-btn {
            padding: 8px 12px;
            background: #5181b8;
            color: white;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .copy-profile-link-btn:hover {
            background: #4472a3;
        }
        
        .profile-nav-tabs {
            display: flex;
            border-bottom: 1px solid #e7e8ec;
            background: white;
        }
        
        .profile-nav-tab {
            padding: 15px 25px;
            font-size: 14px;
            font-weight: 500;
            color: #626d7a;
            background: none;
            border: none;
            border-bottom: 3px solid transparent;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }
        
        .profile-nav-tab:hover {
            color: #2a5885;
            background: #fafbfc;
        }
        
        .profile-nav-tab.active {
            color: #2a5885;
            border-bottom: 3px solid #5181b8;
        }
        
        .profile-content {
            display: flex;
            gap: 20px;
            padding: 20px;
            background: white;
        }
        
        .profile-left-column {
            flex: 2;
            min-width: 0;
        }
        
        .profile-right-column {
            flex: 1;
            min-width: 300px;
        }
        
        .profile-block {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
            margin-bottom: 20px;
        }
        
        .profile-block-header {
            padding: 15px 20px;
            border-bottom: 1px solid #e7e8ec;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .profile-block-title {
            font-size: 16px;
            font-weight: 600;
            color: #000;
        }
        
        .profile-block-content {
            padding: 20px;
        }
        
        .info-item {
            display: flex;
            margin-bottom: 12px;
        }
        
        .info-label {
            width: 150px;
            color: #626d7a;
            font-size: 14px;
            flex-shrink: 0;
        }
        
        .info-value {
            flex: 1;
            color: #000;
            font-size: 14px;
        }
        
        /* ===== ПОСТЫ ===== */
        .feed {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .post-creator {
            background: white;
            border-radius: 4px;
            padding: 15px;
            box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
        }
        
        .post-input {
            width: 100%;
            min-height: 80px;
            padding: 12px;
            border: 1px solid #d3d9de;
            border-radius: 4px;
            font-size: 13px;
            resize: vertical;
            margin-bottom: 12px;
            transition: border-color 0.3s;
        }
        
        .post-input:focus {
            border-color: #5181b8;
            outline: none;
        }
        
        .post-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }
        
        .btn-post {
            padding: 8px 20px;
            background: #5181b8;
            color: white;
            border-radius: 4px;
            font-weight: 500;
            font-size: 13px;
        }
        
        .btn-post:hover {
            background: #4472a3;
        }
        
        .post {
            background: white;
            border-radius: 4px;
            padding: 15px;
            box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
            position: relative;
            transition: transform 0.2s ease;
        }
        
        .post:hover {
            transform: translateY(-2px);
        }
        
        .post-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }
        
        .post-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #e7e8ec;
        }
        
        .post-author {
            flex: 1;
        }
        
        .post-author-name {
            font-weight: 600;
            font-size: 13px;
            color: #2a5885;
            margin-bottom: 2px;
        }
        
        .post-time {
            color: #626d7a;
            font-size: 11px;
        }
        
        .post-content {
            font-size: 13px;
            line-height: 1.5;
            margin-bottom: 15px;
            color: #000;
            white-space: pre-wrap;
        }
        
        .post-actions-bar {
            display: flex;
            gap: 15px;
            border-top: 1px solid #e7e8ec;
            padding-top: 12px;
        }
        
        .post-action {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #626d7a;
            font-size: 12px;
            padding: 4px 8px;
            border-radius: 4px;
            background: none;
            font-weight: 500;
            transition: all 0.3s;
            position: relative;
        }
        
        .post-action:hover {
            background: #f0f2f5;
        }
        
        .post-action.liked {
            color: #ff5e5e;
        }
        
        .post-action.bookmarked {
            color: #ff9800;
        }
        
        .post-action.liked i,
        .post-action.bookmarked i {
            color: inherit;
        }
        
        .counter {
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .counter-updating {
            animation: counterUpdate 0.5s ease;
        }
        
        @keyframes counterUpdate {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); color: #5181b8; }
            100% { transform: scale(1); }
        }
        
        /* ===== МОДАЛЬНЫЕ ОКНА ===== */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .modal {
            background: white;
            border-radius: 8px;
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            animation: modalFadeIn 0.3s ease;
        }
        
        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(-30px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .modal-header {
            padding: 15px 20px;
            border-bottom: 1px solid #e7e8ec;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-title {
            font-size: 18px;
            font-weight: 600;
            color: #000;
        }
        
        .modal-close {
            background: none;
            color: #626d7a;
            font-size: 20px;
            cursor: pointer;
            border: none;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
        }
        
        .modal-close:hover {
            background: #f0f2f5;
        }
        
        .modal-content {
            padding: 20px;
        }
        
        .modal-section {
            margin-bottom: 20px;
        }
        
        .modal-section-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #000;
            padding-bottom: 5px;
            border-bottom: 1px solid #e7e8ec;
        }
        
        /* ===== КОММЕНТАРИИ ===== */
        .comments-section {
            margin-top: 20px;
            border-top: 1px solid #e7e8ec;
            padding-top: 15px;
        }
        
        .comments-list {
            margin-bottom: 15px;
            max-height: 300px;
            overflow-y: auto;
        }
        
        .comment-item {
            display: flex;
            gap: 10px;
            padding: 10px 0;
            border-bottom: 1px solid #f0f2f5;
        }
        
        .comment-item:last-child {
            border-bottom: none;
        }
        
        .comment-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .comment-content {
            flex: 1;
        }
        
        .comment-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;
        }
        
        .comment-author {
            font-weight: 600;
            font-size: 12px;
            color: #2a5885;
        }
        
        .comment-time {
            color: #626d7a;
            font-size: 10px;
        }
        
        .comment-text {
            font-size: 12px;
            line-height: 1.4;
            color: #000;
        }
        
        .comment-form {
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }
        
        .comment-input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid #d3d9de;
            border-radius: 4px;
            font-size: 12px;
            resize: vertical;
            min-height: 40px;
        }
        
        .comment-input:focus {
            border-color: #5181b8;
            outline: none;
        }
        
        .likes-count {
            margin-left: 4px;
            font-size: 11px;
        }
        
        .likes-summary {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 10px;
            padding: 5px;
            background: #f8f9fa;
            border-radius: 4px;
            min-height: 28px;
        }
        
        .like-badge {
            display: flex;
            align-items: center;
            gap: 2px;
            padding: 2px 6px;
            background: white;
            border-radius: 12px;
            border: 1px solid #e7e8ec;
            font-size: 11px;
        }
        
        .like-badge i {
            font-size: 12px;
            color: #ff5e5e;
        }
        
        /* ===== ПРОСМОТР ПОСТА ===== */
        .post-view-container {
            background: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 20px;
            color: #5181b8;
            font-weight: 500;
            font-size: 14px;
            cursor: pointer;
        }
        
        .back-button:hover {
            text-decoration: underline;
        }
        
        .post-info {
            display: flex;
            gap: 20px;
            margin-top: 15px;
            font-size: 12px;
            color: #626d7a;
            border-top: 1px solid #e7e8ec;
            padding-top: 10px;
        }
        
        .post-info-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .post-info-item .counter {
            font-weight: 600;
            color: #2a5885;
        }
        
        /* ===== ПОИСК ===== */
        .search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 0 0 4px 4px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            max-height: 300px;
            overflow-y: auto;
            z-index: 1001;
            display: none;
            border: 1px solid #e7e8ec;
        }
        
        .search-result {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            border-bottom: 1px solid #e7e8ec;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .search-result:hover {
            background: #f0f2f5;
        }
        
        .search-result:last-child {
            border-bottom: none;
        }
        
        .result-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .result-info {
            flex: 1;
        }
        
        .result-name {
            font-weight: 500;
            font-size: 13px;
            margin-bottom: 2px;
            color: #2a5885;
        }
        
        .result-status {
            color: #626d7a;
            font-size: 11px;
        }
        
        /* ===== ЗАГРУЗКА ===== */
        .loading {
            text-align: center;
            padding: 40px;
            color: #626d7a;
            font-size: 13px;
        }
        
        .loading i {
            font-size: 20px;
            margin-bottom: 10px;
            display: block;
            color: #5181b8;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: #626d7a;
        }
        
        .empty-state i {
            font-size: 36px;
            margin-bottom: 12px;
            color: #5181b8;
            display: block;
        }
        
        /* ===== ССЫЛКИ ===== */
        .link-popup {
            position: absolute;
            bottom: 100%;
            right: 0;
            background: white;
            border-radius: 8px;
            padding: 15px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
            z-index: 100;
            min-width: 300px;
            border: 1px solid #e7e8ec;
            display: none;
            animation: fadeInUp 0.2s ease;
        }
        
        .link-popup-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #000;
        }
        
        .link-input-container {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
        }
        
        .link-input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid #d3d9de;
            border-radius: 4px;
            font-size: 12px;
        }
        
        .copy-link-btn {
            padding: 8px 12px;
            background: #5181b8;
            color: white;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .copy-link-btn:hover {
            background: #4472a3;
        }
        
        .copied-message {
            color: #2e7d32;
            font-size: 11px;
            text-align: center;
            display: none;
        }
        
        .stats-bar {
            display: flex;
            gap: 20px;
            margin-bottom: 15px;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #e7e8ec;
        }
        
        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
        }
        
        .stat-value {
            font-size: 18px;
            font-weight: 700;
            color: #2a5885;
        }
        
        .stat-label {
            font-size: 11px;
            color: #626d7a;
            text-transform: uppercase;
        }
        
        /* ===== МЕССЕНДЖЕР ===== */
        .messenger-container {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
            height: calc(100vh - 150px);
            display: flex;
            flex-direction: column;
        }
        
        .messenger-header {
            padding: 15px 20px;
            border-bottom: 1px solid #e7e8ec;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }
        
        .messenger-back-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #5181b8;
            background: none;
            font-weight: 500;
            font-size: 14px;
        }
        
        .messenger-back-btn:hover {
            text-decoration: underline;
        }
        
        .chat-user-info {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }
        
        .chat-user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #e7e8ec;
        }
        
        .chat-user-name {
            font-weight: 600;
            font-size: 16px;
            color: #000;
        }
        
        .chat-user-status {
            color: #626d7a;
            font-size: 12px;
        }
        
        .messenger-content {
            display: flex;
            flex: 1;
            overflow: hidden;
        }
        
        .dialogs-sidebar {
            width: 300px;
            border-right: 1px solid #e7e8ec;
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
        }
        
        .dialogs-search {
            padding: 15px;
            border-bottom: 1px solid #e7e8ec;
        }
        
        .dialogs-search-input {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #d3d9de;
            border-radius: 4px;
            font-size: 13px;
        }
        
        .dialogs-search-input:focus {
            border-color: #5181b8;
            outline: none;
        }
        
        .dialogs-list {
            flex: 1;
            overflow-y: auto;
        }
        
        .dialog-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 15px;
            border-bottom: 1px solid #f0f2f5;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .dialog-item:hover {
            background: #f5f6f8;
        }
        
        .dialog-item.active {
            background: #f0f2f5;
        }
        
        .dialog-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #e7e8ec;
        }
        
        .dialog-info {
            flex: 1;
            min-width: 0;
        }
        
        .dialog-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }
        
        .dialog-user-name {
            font-weight: 600;
            font-size: 13px;
            color: #000;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .dialog-time {
            color: #626d7a;
            font-size: 11px;
            flex-shrink: 0;
        }
        
        .dialog-last-message {
            font-size: 12px;
            color: #626d7a;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .unread-badge {
            background: #5181b8;
            color: white;
            font-size: 11px;
            font-weight: 600;
            min-width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 5px;
        }
        
        .chat-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            height: 100%;
            min-width: 0;
        }
        
        .chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 15px;
            min-height: 0;
        }
        
        .message-date-divider {
            text-align: center;
            margin: 15px 0;
            position: relative;
        }
        
        .message-date-divider span {
            background: #f0f2f5;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            color: #626d7a;
        }
        
        .message-item {
            display: flex;
            gap: 10px;
            max-width: 70%;
        }
        
        .message-item.outgoing {
            align-self: flex-end;
            flex-direction: row-reverse;
        }
        
        .message-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
            margin-top: 20px;
        }
        
        .message-content {
            display: flex;
            flex-direction: column;
            gap: 4px;
            position: relative;
            min-width: 0;
            align-items: flex-start;
        }

        .message-item.outgoing .message-content {
            align-items: flex-end;
        }
        
        .message-bubble {
            padding: 10px 14px;
            border-radius: 18px;
            font-size: 13px;
            line-height: 1.4;
            position: relative;
        }
        
        .message-item.incoming .message-bubble {
            background: #f0f2f5;
            color: #000;
            border-radius: 0 18px 18px 18px;
        }
        
        .message-item.outgoing .message-bubble {
            background: #5181b8;
            color: white;
            border-radius: 18px 0 18px 18px;
        }
        
        .message-media {
            max-width: 300px;
            max-height: 300px;
            border-radius: 12px;
            cursor: pointer;
            display: block;
        }
        
        .message-media.video {
            max-height: 200px;
        }

        .message-bubble.sticker,
        .message-bubble.gif {
            padding: 0;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        .message-media.sticker {
            width: min(180px, 44vw);
            max-width: 180px;
            max-height: 180px;
            border-radius: 0;
            object-fit: contain;
            background: transparent;
            filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
        }

        .message-media.gif {
            width: min(240px, 58vw);
            max-width: 240px;
            max-height: 280px;
            border-radius: 18px;
            object-fit: cover;
        }
        
        .message-audio {
            width: 250px;
            height: 40px;
        }

        .message-bubble.music {
            min-width: 280px;
            max-width: min(360px, 72vw);
        }

        .message-music-card {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .message-music-icon {
            width: 42px;
            height: 42px;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.16);
            color: #ffffff;
            flex-shrink: 0;
            font-size: 16px;
        }

        .message-music-meta {
            min-width: 0;
            flex: 1;
        }

        .message-music-title {
            font-size: 13px;
            line-height: 1.35;
            font-weight: 600;
            color: inherit;
            margin-bottom: 8px;
            word-break: break-word;
        }

        .message-audio.music {
            width: 100%;
            min-width: 0;
        }
        
        .message-time {
            font-size: 11px;
            color: #626d7a;
        }
        
        .message-item.outgoing .message-time {
            text-align: right;
        }
        
        .chat-input-area {
            padding: 15px 20px;
            border-top: 1px solid #e7e8ec;
            background: #fafbfc;
            flex-shrink: 0;
            width: 100%;
        }
        
        .chat-input-container {
            display: flex;
            gap: 10px;
            align-items: flex-end;
        }
        
        .chat-input {
            flex: 1;
            padding: 12px 15px;
            border: 1px solid #d3d9de;
            border-radius: 20px;
            font-size: 13px;
            resize: none;
            min-height: 40px;
            max-height: 120px;
            background: white;
        }
        
        .chat-input:focus {
            border-color: #5181b8;
            outline: none;
        }
        
        .chat-media-actions {
            display: flex;
            gap: 8px;
        }
        
        .chat-media-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #e5ebf1;
            color: #55677d;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
        }
        
        .chat-media-btn:hover {
            background: #d6dde6;
            color: #5181b8;
        }
        
        .chat-media-btn.recording {
            background: #ff5e5e;
            color: white;
            animation: pulse 1s infinite;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        .send-message-btn {
            width: 40px;
            height: 40px;
            background: #5181b8;
            color: white;
            border-radius: 50%;
            font-weight: 500;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border: none;
            cursor: pointer;
        }
        
        .send-message-btn:hover {
            background: #4472a3;
        }
        
        .send-message-btn:disabled {
            background: #a8c3e0;
            cursor: not-allowed;
        }
        
        .no-chat-selected {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
            color: #626d7a;
            font-size: 14px;
            text-align: center;
            padding: 40px;
        }
        
        .no-chat-selected i {
            font-size: 48px;
            margin-bottom: 15px;
            display: block;
            color: #5181b8;
        }
        
        .users-list {
            padding: 15px;
        }
        
        .user-list-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px;
            border-bottom: 1px solid #f0f2f5;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .user-list-item:hover {
            background: #f5f6f8;
        }
        
        .user-list-item:last-child {
            border-bottom: none;
        }
        
        .user-list-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .user-list-info {
            flex: 1;
        }
        
        .user-list-name {
            font-weight: 600;
            font-size: 14px;
            color: #000;
        }
        
        .user-list-status {
            color: #626d7a;
            font-size: 12px;
        }
        
        .start-chat-btn {
            padding: 6px 12px;
            background: #5181b8;
            color: white;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
            border: none;
            cursor: pointer;
        }
        
        .start-chat-btn:hover {
            background: #4472a3;
        }
        
        /* ===== ЗАГРУЗКА ФАЙЛОВ ===== */
        .file-upload-container {
            position: relative;
            overflow: hidden;
            display: inline-block;
        }
        
        .file-upload-btn {
            padding: 8px 16px;
            background: #5181b8;
            color: white;
            border-radius: 4px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .file-upload-input {
            position: absolute;
            left: 0;
            top: 0;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
        }
        
        .upload-preview {
            margin-top: 10px;
            text-align: center;
        }
        
        .upload-preview img {
            max-width: 200px;
            max-height: 200px;
            border-radius: 8px;
            margin-bottom: 10px;
        }
        
        .upload-loading {
            display: none;
            text-align: center;
            padding: 10px;
            color: #5181b8;
        }
        
        .upload-loading i {
            animation: spin 1s linear infinite;
        }
        
        .avatar-upload-section {
            margin-bottom: 20px;
        }
        
        .avatar-preview-container {
            text-align: center;
            margin-bottom: 15px;
        }
        
        .avatar-preview {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #e7e8ec;
            margin: 0 auto 15px;
        }
        
        .cover-preview-container {
            text-align: center;
            margin-bottom: 15px;
        }
        
        .cover-preview {
            width: 100%;
            height: 150px;
            border-radius: 8px;
            object-fit: cover;
            margin-bottom: 15px;
            border: 1px solid #e7e8ec;
        }
        
        .upload-actions {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 10px;
        }
        
        /* ===== ГОЛОСОВЫЕ СООБЩЕНИЯ ===== */
        .voice-recording-panel {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            padding: 15px 25px;
            display: flex;
            align-items: center;
            gap: 20px;
            z-index: 2000;
            border: 1px solid #e7e8ec;
            animation: slideUp 0.3s ease;
        }
        
        @keyframes slideUp {
            from { transform: translate(-50%, 100%); opacity: 0; }
            to { transform: translate(-50%, 0); opacity: 1; }
        }
        
        .voice-recording-timer {
            font-size: 24px;
            font-weight: 600;
            color: #ff5e5e;
        }
        
        .voice-wave {
            width: 200px;
            height: 40px;
            background: #f0f2f5;
            border-radius: 20px;
            overflow: hidden;
            position: relative;
        }
        
        .voice-wave-bar {
            position: absolute;
            bottom: 0;
            width: 4px;
            background: #5181b8;
            border-radius: 2px;
            animation: wave 0.5s ease infinite alternate;
        }
        
        @keyframes wave {
            from { height: 10px; }
            to { height: 30px; }
        }
        
        .voice-actions {
            display: flex;
            gap: 10px;
        }
        
        .voice-action-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #e5ebf1;
            color: #55677d;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            border: none;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .voice-action-btn.send {
            background: #4caf50;
            color: white;
        }
        
        .voice-action-btn.send:hover {
            background: #43a047;
        }
        
        .voice-action-btn.cancel {
            background: #ff5e5e;
            color: white;
        }
        
        .voice-action-btn.cancel:hover {
            background: #e53935;
        }
        
        .voice-message-player {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            padding: 5px 10px;
        }
        
        .voice-message-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            border: none;
            cursor: pointer;
        }
        
        .voice-message-timer {
            color: white;
            font-size: 12px;
        }
        
        .video-preview-container {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            padding: 20px;
            z-index: 2000;
            max-width: 400px;
            width: 90%;
        }
        
        .video-preview {
            max-width: 100%;
            max-height: 300px;
            border-radius: 8px;
            margin-bottom: 15px;
        }
        
        .video-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }
        
        /* ===== ЗВОНКИ ===== */
        .calls-container {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
        }
        
        .calls-header {
            padding: 15px 20px;
            border-bottom: 1px solid #e7e8ec;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .calls-title {
            font-size: 18px;
            font-weight: 600;
            color: #000;
        }
        
        .calls-actions {
            display: flex;
            gap: 10px;
        }
        
        .call-type-selector {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            padding: 0 20px;
            margin-top: 15px;
        }
        
        .call-type-btn {
            flex: 1;
            padding: 12px;
            border: 2px solid #e7e8ec;
            border-radius: 8px;
            background: white;
            color: #626d7a;
            font-weight: 500;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .call-type-btn:hover {
            border-color: #5181b8;
            color: #5181b8;
        }
        
        .call-type-btn.active {
            border-color: #5181b8;
            background: #5181b8;
            color: white;
        }
        
        .call-history-list {
            padding: 0;
        }
        
        .call-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px 20px;
            border-bottom: 1px solid #f0f2f5;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .call-item:hover {
            background: #f5f6f8;
        }
        
        .call-item:last-child {
            border-bottom: none;
        }
        
        .call-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #e7e8ec;
        }
        
        .call-info {
            flex: 1;
        }
        
        .call-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }
        
        .call-user-name {
            font-weight: 600;
            font-size: 14px;
            color: #000;
        }
        
        .call-time {
            color: #626d7a;
            font-size: 12px;
        }
        
        .call-details {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 12px;
            color: #626d7a;
        }
        
        .call-status-icon {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
        }
        
        .call-status-icon.incoming {
            background: #e3f2fd;
            color: #1976d2;
        }
        
        .call-status-icon.outgoing {
            background: #e8f5e8;
            color: #2e7d32;
        }
        
        .call-status-icon.missed {
            background: #ffebee;
            color: #d32f2f;
        }
        
        .call-duration {
            font-weight: 500;
        }
        
        .start-call-btn {
            padding: 8px 16px;
            background: #5181b8;
            color: white;
            border-radius: 4px;
            font-size: 13px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
            border: none;
            cursor: pointer;
        }
        
        .start-call-btn:hover {
            background: #4472a3;
        }
        
        .start-video-call-btn {
            background: #4caf50;
        }
        
        .start-video-call-btn:hover {
            background: #43a047;
        }
        
        .start-screen-call-btn {
            background: #ff9800;
        }
        
        .start-screen-call-btn:hover {
            background: #f57c00;
        }
        
        .call-buttons {
            display: flex;
            gap: 10px;
        }
        
        .call-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 3000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .call-modal {
            background: white;
            border-radius: 12px;
            max-width: 800px;
            width: 100%;
            overflow: hidden;
            animation: modalFadeIn 0.3s ease;
        }
        
        .call-header {
            padding: 20px;
            text-align: center;
            border-bottom: 1px solid #e7e8ec;
        }
        
        .call-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 5px;
            color: #000;
        }
        
        .call-subtitle {
            color: #626d7a;
            font-size: 14px;
        }
        
        .call-user-info {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            padding: 30px 20px;
        }
        
        .call-user-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid #e7e8ec;
        }
        
        .call-user-name {
            font-size: 24px;
            font-weight: 600;
            color: #000;
        }
        
        .call-status {
            color: #626d7a;
            font-size: 16px;
        }
        
        .call-timer {
            font-size: 32px;
            font-weight: 700;
            color: #5181b8;
            margin: 10px 0;
        }
        
        .call-controls {
            display: flex;
            justify-content: center;
            gap: 20px;
            padding: 20px;
            border-top: 1px solid #e7e8ec;
            background: #fafbfc;
        }
        
        .call-control-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .call-control-btn.accept {
            background: #4caf50;
            color: white;
        }
        
        .call-control-btn.accept:hover {
            background: #43a047;
        }
        
        .call-control-btn.reject {
            background: #f44336;
            color: white;
        }
        
        .call-control-btn.reject:hover {
            background: #d32f2f;
        }
        
        .call-control-btn.end {
            background: #f44336;
            color: white;
        }
        
        .call-control-btn.end:hover {
            background: #d32f2f;
        }
        
        .call-control-btn.mute {
            background: #757575;
            color: white;
        }
        
        .call-control-btn.mute:hover {
            background: #616161;
        }
        
        .call-control-btn.video {
            background: #2196f3;
            color: white;
        }
        
        .call-control-btn.video:hover {
            background: #1976d2;
        }
        
        .call-control-btn.screen {
            background: #ff9800;
            color: white;
        }
        
        .call-control-btn.screen:hover {
            background: #f57c00;
        }
        
        .call-control-btn.speaker {
            background: #ff9800;
            color: white;
        }
        
        .call-control-btn.speaker:hover {
            background: #f57c00;
        }
        
        .video-call-container {
            background: #000;
            height: 400px;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
            margin: 20px;
        }
        
        .video-call-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 10px;
            height: 100%;
        }
        
        .video-call-item {
            position: relative;
            background: #1a1a1a;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .video-call-item video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .video-call-item.small {
            position: absolute;
            bottom: 20px;
            right: 20px;
            width: 150px;
            height: 100px;
            border: 2px solid white;
            border-radius: 8px;
            z-index: 10;
        }
        
        .video-call-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            background: linear-gradient(135deg, #45688e 0%, #244166 100%);
            color: white;
            font-size: 18px;
        }
        
        .video-call-placeholder .avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 3px solid white;
        }
        
        .screen-share-container {
            position: relative;
            width: 100%;
            height: 100%;
            background: #000;
        }
        
        .screen-share-container video {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        
        .participant-info {
            position: absolute;
            bottom: 10px;
            left: 10px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .participant-info i {
            font-size: 14px;
        }
        
        .incoming-call-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            z-index: 4000;
            width: 350px;
            overflow: hidden;
            animation: slideInRight 0.3s ease;
        }
        
        @keyframes slideInRight {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        .notification-header {
            padding: 15px 20px;
            background: #5181b8;
            color: white;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .notification-title {
            font-weight: 600;
            font-size: 16px;
        }
        
        .notification-close {
            background: none;
            border: none;
            color: white;
            font-size: 18px;
            cursor: pointer;
        }
        
        .notification-content {
            padding: 20px;
        }
        
        .notification-user-info {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .notification-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .notification-user-name {
            font-weight: 600;
            font-size: 16px;
            color: #000;
        }
        
        .notification-call-type {
            color: #626d7a;
            font-size: 14px;
        }
        
        .notification-actions {
            display: flex;
            gap: 10px;
        }
        
        .notification-btn {
            flex: 1;
            padding: 12px;
            border-radius: 6px;
            font-weight: 500;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: none;
            cursor: pointer;
        }
        
        .notification-btn.accept {
            background: #4caf50;
            color: white;
        }
        
        .notification-btn.accept:hover {
            background: #43a047;
        }
        
        .notification-btn.reject {
            background: #f44336;
            color: white;
        }
        
        .notification-btn.reject:hover {
            background: #d32f2f;
        }
        
        .call-settings {
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            margin-bottom: 15px;
        }
        
        .call-settings-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #000;
        }
        
        .call-setting-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }
        
        .call-setting-label {
            font-size: 13px;
            color: #626d7a;
        }
        
        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
        }
        
        input:checked + .slider {
            background-color: #4caf50;
        }
        
        input:focus + .slider {
            box-shadow: 0 0 1px #4caf50;
        }
        
        input:checked + .slider:before {
            transform: translateX(26px);
        }
        
        .slider.round {
            border-radius: 24px;
        }
        
        .slider.round:before {
            border-radius: 50%;
        }
        
        /* ===== СООБЩЕСТВА ===== */
        .communities-container {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
        }
        
        .communities-header {
            padding: 12px 20px;
            border-bottom: 1px solid #e7e8ec;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .communities-title {
            font-size: 16px;
            font-weight: 600;
            color: #000;
        }
        
        .communities-search {
            padding: 8px 15px;
            border: 1px solid #d3d9de;
            border-radius: 20px;
            font-size: 13px;
            width: 250px;
        }
        
        .communities-search:focus {
            border-color: #5181b8;
            outline: none;
        }
        
        .create-community-btn {
            padding: 6px 12px;
            background: #4caf50;
            color: white;
            border-radius: 4px;
            font-weight: 500;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 6px;
            border: none;
            cursor: pointer;
        }
        
        .create-community-btn:hover {
            background: #43a047;
        }
        
        .communities-nav {
            display: flex;
            border-bottom: 1px solid #e7e8ec;
            background: #fafbfc;
            padding: 0 20px;
        }
        
        .communities-nav-item {
            padding: 12px 16px;
            font-size: 14px;
            font-weight: 500;
            color: #626d7a;
            background: none;
            border: none;
            border-bottom: 3px solid transparent;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .communities-nav-item:hover {
            color: #2a5885;
        }
        
        .communities-nav-item.active {
            color: #2a5885;
            border-bottom-color: #5181b8;
        }
        
        .communities-list {
            min-height: 300px;
        }
        
        .community-item {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            border-bottom: 1px solid #f0f2f5;
            transition: background 0.3s;
            cursor: pointer;
        }
        
        .community-item:hover {
            background: #f5f6f8;
        }
        
        .community-item-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 15px;
            border: 2px solid #e7e8ec;
        }
        
        .community-item-info {
            flex: 1;
        }
        
        .community-item-name {
            font-weight: 600;
            font-size: 15px;
            color: #2a5885;
            margin-bottom: 2px;
        }
        
        .community-item-meta {
            display: flex;
            gap: 15px;
            font-size: 12px;
            color: #626d7a;
        }
        
        .community-item-meta span {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .community-item-actions {
            display: flex;
            gap: 8px;
        }
        
        .community-btn {
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid #d3d9de;
            background: white;
            color: #55677d;
        }
        
        .community-btn:hover {
            background: #e5ebf1;
        }
        
        .community-btn.primary {
            background: #5181b8;
            color: white;
            border: none;
        }
        
        .community-btn.primary:hover {
            background: #4472a3;
        }
        
        .community-btn.danger {
            background: #ff5e5e;
            color: white;
            border: none;
        }
        
        .community-btn.danger:hover {
            background: #e53935;
        }
        
        .popular-communities-block {
            margin-top: 20px;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
        }
        
        .popular-header {
            padding: 15px 20px;
            border-bottom: 1px solid #e7e8ec;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .popular-title {
            font-size: 16px;
            font-weight: 600;
            color: #000;
        }
        
        .popular-view-all {
            color: #5181b8;
            font-size: 13px;
            font-weight: 500;
        }
        
        .popular-item {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            border-bottom: 1px solid #f0f2f5;
            transition: background 0.3s;
            cursor: pointer;
        }
        
        .popular-item:hover {
            background: #f5f6f8;
        }
        
        .popular-item:last-child {
            border-bottom: none;
        }
        
        .popular-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 12px;
        }
        
        .popular-info {
            flex: 1;
        }
        
        .popular-name {
            font-weight: 600;
            font-size: 14px;
            color: #2a5885;
            margin-bottom: 2px;
        }
        
        .popular-subscribers {
            font-size: 12px;
            color: #626d7a;
        }
        
        .community-details-container {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
            margin-bottom: 20px;
        }
        
        .community-details-cover {
            height: 250px;
            background: linear-gradient(135deg, #45688e 0%, #244166 100%);
            background-size: cover;
            background-position: center;
            position: relative;
        }
        
        .community-details-header {
            padding: 20px;
            position: relative;
            margin-top: -60px;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
        }
        
        .community-avatar-container {
            display: flex;
            align-items: flex-end;
            gap: 20px;
        }
        
        .community-details-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 4px solid white;
            object-fit: cover;
            background: white;
        }
        
        .community-details-name {
            font-size: 28px;
            font-weight: 700;
            color: #000;
            margin-bottom: 5px;
        }
        
        .community-details-category {
            color: #5181b8;
            font-size: 14px;
        }
        
        .community-nav-tabs {
            display: flex;
            border-bottom: 1px solid #e7e8ec;
            background: white;
        }
        
        .community-nav-tab {
            padding: 15px 25px;
            font-size: 14px;
            font-weight: 500;
            color: #626d7a;
            background: none;
            border: none;
            border-bottom: 3px solid transparent;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .community-nav-tab:hover {
            color: #2a5885;
            background: #fafbfc;
        }
        
        .community-nav-tab.active {
            color: #2a5885;
            border-bottom: 3px solid #5181b8;
        }
        
        .community-members-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
            padding: 20px;
        }
        
        .community-member-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            border: 1px solid #e7e8ec;
            border-radius: 8px;
            background: white;
        }
        
        .community-member-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .community-member-info {
            flex: 1;
        }
        
        .community-member-name {
            font-weight: 600;
            font-size: 14px;
            color: #2a5885;
            margin-bottom: 2px;
        }
        
        .community-member-role {
            font-size: 12px;
            color: #626d7a;
        }
        
        .community-settings-form {
            padding: 20px;
        }
        
        .category-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 20px 0;
        }
        
        .category-badge {
            padding: 6px 12px;
            background: #f0f2f5;
            border-radius: 20px;
            font-size: 13px;
            color: #626d7a;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .category-badge:hover {
            background: #5181b8;
            color: white;
        }
        
        .category-badge.active {
            background: #5181b8;
            color: white;
        }
        
        .empty-communities {
            text-align: center;
            padding: 40px 20px;
            color: #626d7a;
        }
        
        .empty-communities i {
            font-size: 48px;
            margin-bottom: 15px;
            display: block;
            color: #5181b8;
        }
        
        /* ===== ДРУЗЬЯ ===== */
        .friends-container {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
        }
        
        .friends-header {
            padding: 15px 20px;
            border-bottom: 1px solid #e7e8ec;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .friends-title {
            font-size: 18px;
            font-weight: 600;
            color: #000;
        }
        
        .friend-requests-badge {
            background: #ff5e5e;
            color: white;
            border-radius: 20px;
            padding: 4px 12px;
            font-size: 12px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        
        .friend-requests-badge i {
            font-size: 11px;
        }
        
        .friends-nav {
            display: flex;
            border-bottom: 1px solid #e7e8ec;
            background: #fafbfc;
            padding: 0 20px;
        }
        
        .friends-nav-item {
            padding: 12px 16px;
            font-size: 14px;
            font-weight: 500;
            color: #626d7a;
            background: none;
            border: none;
            border-bottom: 3px solid transparent;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .friends-nav-item:hover {
            color: #2a5885;
        }
        
        .friends-nav-item.active {
            color: #2a5885;
            border-bottom-color: #5181b8;
        }
        
        .friends-list {
            min-height: 300px;
        }
        
        .friend-item {
            display: flex;
            align-items: center;
            padding: 15px 20px;
            border-bottom: 1px solid #f0f2f5;
            transition: background 0.3s;
        }
        
        .friend-item:hover {
            background: #f5f6f8;
        }
        
        .friend-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 15px;
            border: 2px solid #e7e8ec;
        }
        
        .friend-info {
            flex: 1;
        }
        
        .friend-name {
            font-weight: 600;
            font-size: 16px;
            color: #2a5885;
            margin-bottom: 4px;
        }
        
        .friend-status {
            font-size: 13px;
            color: #626d7a;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .online-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #4caf50;
            display: inline-block;
        }
        
        .offline-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #9e9e9e;
            display: inline-block;
        }
        
        .friend-actions {
            display: flex;
            gap: 8px;
        }
        
        .friend-action-btn {
            padding: 8px 12px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            transition: all 0.3s;
            background: #e5ebf1;
            color: #55677d;
            border: 1px solid #d3d9de;
        }
        
        .friend-action-btn:hover {
            background: #d6dde6;
        }
        
        .friend-action-btn.primary {
            background: #5181b8;
            color: white;
            border: none;
        }
        
        .friend-action-btn.primary:hover {
            background: #4472a3;
        }
        
        .friend-action-btn.danger {
            background: #ff5e5e;
            color: white;
            border: none;
        }
        
        .friend-action-btn.danger:hover {
            background: #e53935;
        }
        
        .friend-request-item {
            display: flex;
            align-items: center;
            padding: 15px 20px;
            border-bottom: 1px solid #f0f2f5;
        }
        
        .friend-request-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 15px;
        }
        
        .friend-request-info {
            flex: 1;
        }
        
        .friend-request-name {
            font-weight: 600;
            font-size: 15px;
            color: #2a5885;
            margin-bottom: 2px;
        }
        
        .friend-request-time {
            font-size: 12px;
            color: #626d7a;
        }
        
        .friend-request-actions {
            display: flex;
            gap: 8px;
        }
        
        .friend-request-btn {
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
        }
        
        .friend-request-btn.accept {
            background: #4caf50;
            color: white;
        }
        
        .friend-request-btn.accept:hover {
            background: #43a047;
        }
        
        .friend-request-btn.reject {
            background: #ff5e5e;
            color: white;
        }
        
        .friend-request-btn.reject:hover {
            background: #e53935;
        }
        
        .friend-suggestions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
            padding: 20px;
        }
        
        .friend-suggestion-card {
            border: 1px solid #e7e8ec;
            border-radius: 8px;
            overflow: hidden;
            background: white;
        }
        
        .friend-suggestion-cover {
            height: 80px;
            background: linear-gradient(135deg, #45688e 0%, #244166 100%);
        }
        
        .friend-suggestion-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid white;
            margin: -40px auto 10px;
            display: block;
        }
        
        .friend-suggestion-info {
            padding: 0 15px 15px;
            text-align: center;
        }
        
        .friend-suggestion-name {
            font-weight: 600;
            font-size: 16px;
            color: #2a5885;
            margin-bottom: 5px;
        }
        
        .friend-suggestion-mutual {
            font-size: 12px;
            color: #626d7a;
            margin-bottom: 10px;
        }
        
        .friend-suggestion-actions {
            display: flex;
            gap: 8px;
            justify-content: center;
        }
        
        /* ===== МУЗЫКА ===== */
        .music-container {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
        }
        
        .music-header {
            padding: 15px 20px;
            border-bottom: 1px solid #e7e8ec;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .music-title {
            font-size: 18px;
            font-weight: 600;
            color: #000;
        }
        
        .music-search {
            padding: 8px 15px;
            border: 1px solid #d3d9de;
            border-radius: 20px;
            font-size: 13px;
            width: 250px;
        }
        
        .music-search:focus {
            border-color: #5181b8;
            outline: none;
        }
        
        .upload-music-btn {
            padding: 6px 12px;
            background: #4caf50;
            color: white;
            border-radius: 4px;
            font-weight: 500;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .upload-music-btn:hover {
            background: #43a047;
        }
        
        .music-nav {
            display: flex;
            border-bottom: 1px solid #e7e8ec;
            background: #fafbfc;
            padding: 0 20px;
        }
        
        .music-nav-item {
            padding: 12px 16px;
            font-size: 14px;
            font-weight: 500;
            color: #626d7a;
            background: none;
            border: none;
            border-bottom: 3px solid transparent;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .music-nav-item:hover {
            color: #2a5885;
        }
        
        .music-nav-item.active {
            color: #2a5885;
            border-bottom-color: #5181b8;
        }
        
        .music-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 20px;
            padding: 20px;
        }
        
        .music-card {
            background: white;
            border: 1px solid #e7e8ec;
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .music-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .music-card-cover {
            width: 100%;
            height: 180px;
            object-fit: cover;
            background: linear-gradient(135deg, #45688e 0%, #244166 100%);
        }
        
        .music-card-info {
            padding: 12px;
        }
        
        .music-card-title {
            font-weight: 600;
            font-size: 14px;
            color: #000;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .music-card-artist {
            font-size: 12px;
            color: #626d7a;
            margin-bottom: 4px;
        }
        
        .music-card-meta {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: #626d7a;
        }
        
        .playlist-item {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            border-bottom: 1px solid #f0f2f5;
            transition: background 0.3s;
            cursor: pointer;
        }
        
        .playlist-item:hover {
            background: #f5f6f8;
        }
        
        .playlist-cover {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            object-fit: cover;
            margin-right: 15px;
        }
        
        .playlist-info {
            flex: 1;
        }
        
        .playlist-name {
            font-weight: 600;
            font-size: 15px;
            color: #2a5885;
            margin-bottom: 2px;
        }
        
        .playlist-meta {
            font-size: 12px;
            color: #626d7a;
        }
        
        .playlist-actions {
            display: flex;
            gap: 8px;
        }
        
        .now-playing-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-top: 1px solid #e7e8ec;
            padding: 10px 20px;
            display: flex;
            align-items: center;
            gap: 20px;
            z-index: 2000;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .now-playing-info {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 250px;
        }
        
        .now-playing-cover {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            object-fit: cover;
        }
        
        .now-playing-details {
            flex: 1;
        }
        
        .now-playing-title {
            font-weight: 600;
            font-size: 14px;
            color: #000;
        }
        
        .now-playing-artist {
            font-size: 12px;
            color: #626d7a;
        }
        
        .now-playing-controls {
            display: flex;
            align-items: center;
            gap: 15px;
            flex: 1;
            justify-content: center;
        }
        
        .now-playing-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #f0f2f5;
            color: #55677d;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
        }
        
        .now-playing-btn:hover {
            background: #e5ebf1;
            color: #5181b8;
        }
        
        .now-playing-btn.play {
            width: 50px;
            height: 50px;
            background: #5181b8;
            color: white;
        }
        
        .now-playing-btn.play:hover {
            background: #4472a3;
        }
        
        .now-playing-progress {
            flex: 2;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .progress-bar {
            flex: 1;
            height: 4px;
            background: #e7e8ec;
            border-radius: 2px;
            cursor: pointer;
            position: relative;
        }
        
        .progress-fill {
            height: 100%;
            background: #5181b8;
            border-radius: 2px;
            width: 0%;
        }
        
        .progress-time {
            font-size: 12px;
            color: #626d7a;
            min-width: 40px;
        }
        
        .now-playing-volume {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 120px;
        }
        
        .volume-slider {
            width: 80px;
            height: 4px;
            background: #e7e8ec;
            border-radius: 2px;
            cursor: pointer;
            position: relative;
        }
        
        .volume-fill {
            height: 100%;
            background: #5181b8;
            border-radius: 2px;
            width: 70%;
        }

        .music-player-panel {
            position: fixed;
            top: 48px;
            left: 0;
            z-index: 1700;
            width: min(660px, calc(100vw - 24px));
            background: #242424;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-top: none;
            border-radius: 0 0 18px 18px;
            box-shadow: 0 24px 48px rgba(0, 0, 0, 0.38);
            overflow: hidden;
        }

        .music-player-panel-head {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 12px 18px 10px;
            background: #2a2a2a;
        }

        .music-player-panel-head-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .music-player-panel-control,
        .music-player-panel-icon-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            color: rgba(255, 255, 255, 0.75);
            border: none;
            transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
        }

        .music-player-panel-control:hover,
        .music-player-panel-icon-btn:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #ffffff;
        }

        .music-player-panel-control.play {
            width: 38px;
            height: 38px;
            background: #f1f3f4;
            color: #2c2c2c;
        }

        .music-player-panel-control.play:hover {
            background: #ffffff;
            color: #1f1f1f;
            transform: scale(1.03);
        }

        .music-player-panel-icon-btn.active {
            color: #ffffff;
            background: rgba(81, 129, 184, 0.28);
        }

        .music-player-panel-icon-btn.repeat-one::after {
            content: '1';
            position: absolute;
            margin-left: 10px;
            margin-top: -10px;
            font-size: 10px;
            font-weight: 700;
            color: #ffffff;
        }

        .music-player-panel-current {
            min-width: 0;
            flex: 1 1 auto;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .music-player-panel-cover {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            object-fit: cover;
            flex-shrink: 0;
        }

        .music-player-panel-current-meta {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .music-player-panel-title,
        .music-player-panel-artist {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .music-player-panel-title {
            color: #ffffff;
            font-size: 14px;
            font-weight: 700;
        }

        .music-player-panel-artist {
            color: rgba(255, 255, 255, 0.62);
            font-size: 13px;
        }

        .music-player-panel-side {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }

        .music-player-panel-time {
            color: rgba(255, 255, 255, 0.72);
            font-size: 12px;
            font-variant-numeric: tabular-nums;
        }

        .music-player-panel-volume-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
            color: rgba(255, 255, 255, 0.72);
        }

        .music-player-panel-volume-bar {
            width: 76px;
            height: 4px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.16);
            cursor: pointer;
            overflow: hidden;
        }

        .music-player-panel-volume-fill {
            width: 70%;
            height: 100%;
            background: #ffffff;
            border-radius: inherit;
        }

        .music-player-panel-progress-wrap {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 0 18px 12px;
            background: #2a2a2a;
        }

        .music-player-panel-progress-bar {
            flex: 1;
            height: 4px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.15);
            cursor: pointer;
            overflow: hidden;
        }

        .music-player-panel-progress-fill {
            width: 0%;
            height: 100%;
            background: #ffffff;
            border-radius: inherit;
        }

        .music-player-panel-search-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 12px 18px 0;
            padding: 0 14px;
            height: 42px;
            border-radius: 10px;
            background: #2d2d2d;
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 0.5);
        }

        .music-player-panel-search {
            flex: 1;
            min-width: 0;
            background: transparent;
            border: none;
            outline: none;
            color: #ffffff;
            font-size: 14px;
        }

        .music-player-panel-search::placeholder {
            color: rgba(255, 255, 255, 0.42);
        }

        .music-player-panel-tabs {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 18px 10px;
        }

        .music-player-panel-tab {
            padding: 8px 14px;
            border-radius: 10px;
            background: transparent;
            color: rgba(255, 255, 255, 0.56);
            font-size: 14px;
            font-weight: 600;
            border: none;
        }

        .music-player-panel-tab.active {
            background: rgba(255, 255, 255, 0.09);
            color: #ffffff;
        }

        .music-player-panel-list {
            max-height: 430px;
            overflow-y: auto;
            padding: 0 10px 10px;
        }

        .music-player-panel-track {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            border-radius: 12px;
            background: transparent;
            border: none;
            text-align: left;
        }

        .music-player-panel-track:hover {
            background: rgba(255, 255, 255, 0.06);
        }

        .music-player-panel-track.is-current {
            background: rgba(255, 255, 255, 0.08);
        }

        .music-player-panel-track-cover {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            object-fit: cover;
            flex-shrink: 0;
            background: rgba(255, 255, 255, 0.05);
        }

        .music-player-panel-track-meta {
            min-width: 0;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .music-player-panel-track-title,
        .music-player-panel-track-artist {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .music-player-panel-track-title {
            color: #f5f7fb;
            font-size: 15px;
        }

        .music-player-panel-track-artist,
        .music-player-panel-track-duration {
            color: rgba(255, 255, 255, 0.52);
            font-size: 13px;
        }

        .music-player-panel-track-duration {
            flex-shrink: 0;
            font-variant-numeric: tabular-nums;
        }

        .music-player-panel-empty {
            min-height: 180px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            color: rgba(255, 255, 255, 0.5);
            text-align: center;
        }

        .music-player-panel-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 18px;
            border-top: 1px solid rgba(255, 255, 255, 0.07);
            color: rgba(255, 255, 255, 0.62);
            font-size: 13px;
        }

        .music-player-panel-footer-action {
            background: transparent;
            border: none;
            color: #8fb7ff;
            font-size: 13px;
            font-weight: 600;
        }

        body[data-theme="light"] .music-player-panel {
            background: #ffffff;
            border-color: #d7e3f1;
            box-shadow: 0 24px 48px rgba(21, 42, 72, 0.16);
        }

        body[data-theme="light"] .music-player-panel-head,
        body[data-theme="light"] .music-player-panel-progress-wrap {
            background: #f5f8fd;
        }

        body[data-theme="light"] .music-player-panel-control,
        body[data-theme="light"] .music-player-panel-icon-btn,
        body[data-theme="light"] .music-player-panel-time,
        body[data-theme="light"] .music-player-panel-volume-wrap,
        body[data-theme="light"] .music-player-panel-track-artist,
        body[data-theme="light"] .music-player-panel-track-duration,
        body[data-theme="light"] .music-player-panel-footer {
            color: #5b6f89;
        }

        body[data-theme="light"] .music-player-panel-control:hover,
        body[data-theme="light"] .music-player-panel-icon-btn:hover,
        body[data-theme="light"] .music-player-panel-tab.active,
        body[data-theme="light"] .music-player-panel-track:hover,
        body[data-theme="light"] .music-player-panel-track.is-current {
            background: rgba(56, 102, 173, 0.08);
            color: #20324b;
        }

        body[data-theme="light"] .music-player-panel-title,
        body[data-theme="light"] .music-player-panel-track-title,
        body[data-theme="light"] .music-player-panel-search {
            color: #20324b;
        }

        body[data-theme="light"] .music-player-panel-artist,
        body[data-theme="light"] .music-player-panel-search::placeholder,
        body[data-theme="light"] .music-player-panel-empty {
            color: #70839d;
        }

        body[data-theme="light"] .music-player-panel-search-wrap {
            background: #ffffff;
            border-color: #d7e3f1;
            color: #70839d;
        }

        body[data-theme="light"] .music-player-panel-progress-bar,
        body[data-theme="light"] .music-player-panel-volume-bar {
            background: #d7e3f1;
        }

        body[data-theme="light"] .music-player-panel-progress-fill,
        body[data-theme="light"] .music-player-panel-volume-fill {
            background: #4d7ed6;
        }
        
        .bookmark-btn {
            color: #626d7a;
        }
        
        .bookmark-btn.bookmarked {
            color: #ff9800;
        }
        
        .bookmarks-content {
            background: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
        }
        
        .chat-refresh-btn {
            background: none;
            color: #5181b8;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .chat-refresh-btn:hover {
            background: #f0f2f5;
        }
        
        .row {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .row .form-group {
            flex: 1;
        }
        
        /* ===== МОБИЛЬНАЯ АДАПТАЦИЯ (VK-стиль) ===== */
        @media (max-width: 1100px) {
            .sidebar-left {
                width: 180px;
            }
            
            .profile-content {
                flex-direction: column;
            }
            
            .profile-right-column {
                min-width: 100%;
            }
            
            .messenger-content {
                height: 500px;
            }
            
            .dialogs-sidebar {
                width: 280px;
            }
        }
        
        @media (max-width: 768px) {
            body {
                padding-bottom: 56px;
                background: #f5f7fa;
            }
            
            /* VK-стиль мобильного меню */
            .mobile-bottom-menu {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                background: white;
                display: flex;
                justify-content: space-around;
                padding: 8px 0 12px;
                border-top: 1px solid #e7e8ec;
                z-index: 1000;
                box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
                backdrop-filter: blur(10px);
                background: rgba(255, 255, 255, 0.98);
            }
            
            .mobile-menu-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 4px;
                color: #6a7b94;
                font-size: 10px;
                background: none;
                border: none;
                padding: 6px 12px;
                border-radius: 12px;
                cursor: pointer;
                transition: all 0.2s;
                font-weight: 500;
            }
            
            .mobile-menu-item i {
                font-size: 22px;
            }
            
            .mobile-menu-item.active {
                color: #5181b8;
                background: rgba(81, 129, 184, 0.1);
            }
            
            .mobile-menu-item:hover {
                background: rgba(0, 0, 0, 0.05);
            }
            
            /* Шапка на мобильных */
            .header {
                height: 44px;
            }
            
            .nav {
                padding: 0 12px;
            }
            
            .logo span {
                display: none;
            }
            
            .logo i {
                font-size: 24px;
            }
            
            .search-container {
                max-width: none;
                margin: 0 10px;
            }
            
            .search-input {
                padding: 6px 30px 6px 12px;
                font-size: 14px;
            }
            
            .user-name {
                display: none;
            }
            
            .btn-logout span {
                display: none;
            }
            
            .btn-logout i {
                font-size: 18px;
            }
            
            .btn-logout {
                padding: 6px 10px;
                background: rgba(255, 255, 255, 0.2);
            }
            
            .user-avatar {
                width: 32px;
                height: 32px;
            }
            
            /* Скрываем левое меню, показываем мобильное */
            .sidebar-left {
                display: none;
            }
            
            .main-content {
                padding: 12px 0 0;
                gap: 12px;
            }
            
            .container {
                padding: 0 12px;
            }
            
            .content-area {
                width: 100%;
            }
            
            /* Профиль на мобильных */
            .profile-container {
                border-radius: 0;
            }
            
            .profile-cover {
                height: 120px;
            }
            
            .profile-header {
                padding: 12px;
                margin-top: -40px;
                flex-direction: column;
                align-items: center;
                text-align: center;
                background: white;
                border-radius: 12px 12px 0 0;
                margin-bottom: 0;
            }
            
            .profile-avatar-container {
                flex-direction: column;
                align-items: center;
                width: 100%;
            }
            
            .profile-avatar {
                width: 80px;
                height: 80px;
                border-width: 3px;
            }
            
            .profile-name-section {
                margin-left: 0;
                margin-top: 8px;
                text-align: center;
            }
            
            .profile-name {
                font-size: 18px;
            }
            
            .profile-actions-container {
                margin-top: 12px;
                width: 100%;
                justify-content: center;
                gap: 8px;
            }
            
            .profile-share-btn span,
            .btn-primary span {
                display: none;
            }
            
            .profile-share-btn i,
            .btn-primary i {
                margin: 0;
            }
            
            .profile-share-btn,
            .btn-primary {
                padding: 8px 12px;
            }
            
            .profile-content {
                padding: 12px;
                gap: 12px;
            }
            
            .profile-left-column,
            .profile-right-column {
                width: 100%;
            }
            
            .profile-block {
                border-radius: 12px;
                margin-bottom: 12px;
            }
            
            .profile-block-header {
                padding: 12px 16px;
            }
            
            .profile-block-content {
                padding: 12px 16px;
            }
            
            .info-item {
                flex-direction: column;
                margin-bottom: 12px;
            }
            
            .info-label {
                width: 100%;
                margin-bottom: 4px;
                font-size: 12px;
                color: #6a7b94;
            }
            
            .info-value {
                font-size: 14px;
            }
            
            /* Посты */
            .post-creator {
                border-radius: 12px;
                padding: 12px;
            }
            
            .post-input {
                font-size: 14px;
                min-height: 70px;
            }
            
            .post {
                border-radius: 12px;
                padding: 12px;
            }
            
            .post-header {
                gap: 10px;
            }
            
            .post-avatar {
                width: 36px;
                height: 36px;
            }
            
            .post-author-name {
                font-size: 14px;
            }
            
            .post-content {
                font-size: 14px;
                line-height: 1.45;
            }
            
            .post-actions-bar {
                gap: 10px;
                flex-wrap: wrap;
                justify-content: space-around;
            }
            
            .post-action {
                padding: 6px 10px;
                font-size: 12px;
            }
            
            .post-info {
                gap: 12px;
                flex-wrap: wrap;
                font-size: 11px;
            }
            
            /* Мессенджер на мобильных */
            .messenger-container {
                height: calc(100vh - 100px);
                border-radius: 0;
                margin: 0 -12px;
                width: calc(100% + 24px);
            }
            
            .messenger-header {
                padding: 10px 12px;
            }
            
            .messenger-back-btn span,
            .chat-user-status {
                display: none;
            }
            
            .chat-user-avatar {
                width: 36px;
                height: 36px;
            }
            
            .chat-user-name {
                font-size: 15px;
            }
            
            .dialogs-sidebar {
                width: 100%;
                position: absolute;
                z-index: 10;
                background: white;
                height: 100%;
                transform: translateX(-100%);
                transition: transform 0.3s ease;
                box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
            }
            
            .dialogs-sidebar.open {
                transform: translateX(0);
            }
            
            .chat-area {
                width: 100%;
            }
            
            .message-item {
                max-width: 85%;
            }
            
            .message-avatar {
                width: 28px;
                height: 28px;
                margin-top: 15px;
            }
            
            .message-bubble {
                padding: 8px 12px;
                font-size: 14px;
            }
            
            .chat-input-area {
                padding: 10px 12px;
            }
            
            .chat-input {
                padding: 10px 14px;
                font-size: 14px;
            }
            
            .chat-media-btn,
            .send-message-btn {
                width: 36px;
                height: 36px;
            }
            
            /* Звонки */
            .calls-container {
                border-radius: 12px;
            }
            
            .call-item {
                padding: 12px 16px;
            }
            
            .call-avatar {
                width: 44px;
                height: 44px;
            }
            
            .call-user-name {
                font-size: 15px;
            }
            
            .call-details {
                font-size: 12px;
            }
            
            .start-call-btn {
                padding: 6px 10px;
                font-size: 12px;
            }
            
            .start-call-btn span {
                display: none;
            }
            
            .call-type-selector {
                padding: 0 12px;
                margin: 12px 0;
            }
            
            .call-type-btn {
                padding: 8px;
                font-size: 12px;
            }
            
            .call-type-btn span {
                display: none;
            }
            
            /* Сообщества */
            .communities-container {
                border-radius: 12px;
            }
            
            .communities-header {
                flex-wrap: wrap;
                gap: 10px;
            }
            
            .communities-search {
                width: 100%;
                order: 3;
            }
            
            .community-item {
                padding: 12px 16px;
            }
            
            .community-item-avatar {
                width: 44px;
                height: 44px;
                margin-right: 12px;
            }
            
            .community-item-name {
                font-size: 14px;
            }
            
            .community-item-meta {
                gap: 10px;
                font-size: 11px;
            }
            
            .community-details-container {
                border-radius: 12px;
                margin: 0 -12px;
                width: calc(100% + 24px);
                border-radius: 0;
            }
            
            .community-details-cover {
                height: 150px;
            }
            
            .community-details-header {
                padding: 12px;
                margin-top: -40px;
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            
            .community-avatar-container {
                flex-direction: column;
                align-items: center;
                gap: 8px;
            }
            
            .community-details-avatar {
                width: 80px;
                height: 80px;
            }
            
            .community-details-name {
                font-size: 20px;
            }
            
            .community-nav-tabs {
                justify-content: center;
                flex-wrap: wrap;
            }
            
            .community-nav-tab {
                padding: 10px 16px;
                font-size: 13px;
                flex: 1;
                min-width: 80px;
                text-align: center;
            }
            
            .community-members-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
                gap: 12px;
                padding: 12px;
            }
            
            /* Друзья */
            .friends-container {
                border-radius: 12px;
            }
            
            .friends-nav {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                padding: 0 12px;
            }
            
            .friends-nav-item {
                white-space: nowrap;
                padding: 10px 12px;
                font-size: 13px;
            }
            
            .friend-item {
                padding: 12px 16px;
                flex-wrap: wrap;
            }
            
            .friend-avatar {
                width: 50px;
                height: 50px;
                margin-right: 12px;
            }
            
            .friend-name {
                font-size: 15px;
            }
            
            .friend-actions {
                margin-top: 10px;
                width: 100%;
                justify-content: flex-end;
            }
            
            .friend-request-item {
                flex-wrap: wrap;
                padding: 12px 16px;
            }
            
            .friend-request-actions {
                margin-top: 10px;
                width: 100%;
            }
            
            .friend-suggestions-grid {
                grid-template-columns: 1fr;
                padding: 12px;
                gap: 12px;
            }
            
            /* Музыка */
            .music-container {
                border-radius: 12px;
            }
            
            .music-header {
                flex-wrap: wrap;
                gap: 10px;
            }
            
            .music-search {
                width: 100%;
                order: 3;
            }
            
            .music-nav {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                padding: 0 12px;
            }
            
            .music-nav-item {
                white-space: nowrap;
                padding: 10px 12px;
                font-size: 13px;
            }
            
            .music-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
                padding: 12px;
            }
            
            .music-card-cover {
                height: 140px;
            }
            
            .now-playing-bar {
                padding: 8px 12px;
                gap: 12px;
                flex-wrap: wrap;
                bottom: 56px;
            }
            
            .now-playing-info {
                min-width: 100%;
                order: 1;
            }
            
            .now-playing-controls {
                order: 2;
                width: 100%;
                justify-content: center;
            }
            
            .now-playing-progress {
                order: 3;
                width: 100%;
            }
            
            .now-playing-volume {
                order: 4;
                min-width: 100%;
            }
            
            /* Модальные окна */
            .modal {
                max-width: 95%;
                margin: 10px;
            }
            
            .modal-content {
                padding: 16px;
            }
            
            .voice-recording-panel {
                width: calc(100% - 40px);
                bottom: 70px;
                padding: 12px 20px;
                gap: 15px;
            }
            
            .voice-wave {
                width: 150px;
            }
            
            .video-preview-container {
                bottom: 70px;
                width: calc(100% - 40px);
            }
            
            /* Уведомление о звонке */
            .incoming-call-notification {
                width: calc(100% - 20px);
                right: 10px;
                left: 10px;
                top: auto;
                bottom: 70px;
            }
            
            /* Статистика */
            .stats-bar {
                gap: 12px;
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .stat-item {
                min-width: 80px;
            }
            
            .stat-value {
                font-size: 16px;
            }
            
            .back-button {
                margin-bottom: 12px;
                font-size: 14px;
            }
        }
        
        @media (max-width: 480px) {
            .auth-box {
                padding: 25px;
            }
            
            .auth-title {
                font-size: 26px;
            }
            
            .music-grid {
                grid-template-columns: 1fr;
            }
            
            .community-members-grid {
                grid-template-columns: 1fr;
            }
            
            .friend-suggestions-grid {
                grid-template-columns: 1fr;
            }
            
            .message-item {
                max-width: 90%;
            }
            
            .call-controls {
                gap: 12px;
            }
            
            .call-control-btn {
                width: 50px;
                height: 50px;
                font-size: 18px;
            }
            
            .post-actions-bar {
                gap: 8px;
            }
            
            .post-action {
                padding: 4px 8px;
            }
        }

        /* ===== VK-LIKE REWORK ===== */
        :root {
            --vk-bg: #1a1f28;
            --vk-surface: #202733;
            --vk-surface-soft: #252d3b;
            --vk-border: #313b4d;
            --vk-text: #e3e8f2;
            --vk-muted: #96a3bb;
            --vk-accent: #2d4c7b;
            --vk-accent-hover: #365f97;
            --vk-danger: #b94444;
            --vk-success: #3c8d56;
        }

        * {
            font-family: 'Manrope', 'Segoe UI', sans-serif;
        }

        body {
            background: radial-gradient(circle at 10% 0, #242e40 0%, var(--vk-bg) 48%);
            color: var(--vk-text);
        }

        .header {
            background: rgba(17, 22, 30, 0.96);
            border-bottom: 1px solid var(--vk-border);
            backdrop-filter: blur(8px);
        }

        .logo.logo-empty {
            width: 120px;
            min-height: 1px;
        }

        .auth-logo {
            display: none;
        }

        .auth-page {
            background: radial-gradient(circle at 50% 0, #1f2633 0%, #111622 72%);
        }

        .auth-box,
        .menu,
        .profile-block,
        .messenger-container,
        .friends-container,
        .calls-container,
        .communities-container,
        .music-container,
        .community-details-container,
        .post-view-container {
            background: linear-gradient(180deg, var(--vk-surface-soft) 0%, var(--vk-surface) 100%);
            border: 1px solid var(--vk-border);
            box-shadow: 0 14px 44px rgba(6, 10, 16, 0.45);
        }

        .profile-container,
        .profile-header,
        .profile-content,
        .community-details-header,
        .friends-header,
        .messenger-header,
        .dialogs-sidebar,
        .chat-area,
        .chat-input-area {
            background: transparent;
            border-color: var(--vk-border);
        }

        .menu-item,
        .user-name,
        .profile-name,
        .post-author,
        .friend-name,
        .calls-title,
        .friends-title,
        .community-item-name,
        .music-title {
            color: var(--vk-text);
        }

        .menu-item {
            border: 1px solid transparent;
            border-radius: 12px;
        }

        .menu-item.active {
            background: linear-gradient(180deg, #243e67 0%, #1f3558 100%);
            border-color: #345680;
        }

        .btn-primary,
        .btn-post,
        .create-community-btn,
        .upload-music-btn,
        .send-message-btn,
        .start-chat-btn,
        .community-btn.primary {
            background: linear-gradient(180deg, var(--vk-accent) 0%, #243f67 100%);
            color: #f3f8ff;
            border: 1px solid #3d5f8d;
        }

        .btn-primary:hover,
        .btn-post:hover,
        .create-community-btn:hover,
        .upload-music-btn:hover,
        .send-message-btn:hover,
        .start-chat-btn:hover,
        .community-btn.primary:hover {
            background: linear-gradient(180deg, var(--vk-accent-hover) 0%, #2d5385 100%);
        }

        .btn-secondary,
        .btn-logout,
        .community-btn,
        .friend-action-btn,
        .music-nav-item,
        .friends-nav-item,
        .communities-nav-item {
            background: #2a3242;
            color: #d3ddf1;
            border: 1px solid #39465d;
        }

        .btn-danger,
        .community-btn.danger,
        .friend-action-btn.danger {
            background: linear-gradient(180deg, #8b2f3a 0%, #74232d 100%);
            border-color: #a03f4b;
        }

        .search-input,
        .dialogs-search-input,
        .communities-search,
        .music-search,
        .form-input,
        .chat-input {
            background: #161c27;
            border-color: #2f394b;
            color: #d7dfef;
        }

        .search-input::placeholder,
        .dialogs-search-input::placeholder,
        .communities-search::placeholder,
        .music-search::placeholder,
        .form-input::placeholder,
        .chat-input::placeholder {
            color: #8593ab;
        }

        .search-results,
        .share-profile-popup,
        .modal,
        .comments-modal-content,
        .call-settings-menu {
            background: #1e2531;
            border: 1px solid #354258;
            color: var(--vk-text);
        }

        .search-result:hover,
        .dialog-item:hover,
        .user-list-item:hover,
        .friend-item:hover,
        .community-item:hover {
            background: rgba(58, 84, 128, 0.28);
        }

        .search-section-title {
            padding: 8px 12px;
            color: #adc0e3;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            border-top: 1px solid #2e3a4f;
        }

        .result-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #a6b8d7;
            background: #243149;
            border-radius: 50%;
        }

        .chat-header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: auto;
        }

        .chat-header-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #263249;
            color: #d7e3f7;
            border: 1px solid #3a4f72;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: 0.2s ease;
        }

        .chat-header-btn:hover {
            background: #30466b;
        }

        .chat-menu-wrapper {
            position: relative;
        }

        .chat-context-menu {
            position: absolute;
            right: 0;
            top: 44px;
            min-width: 230px;
            background: #1f2735;
            border: 1px solid #344662;
            border-radius: 12px;
            box-shadow: 0 18px 40px rgba(6, 10, 16, 0.5);
            display: none;
            overflow: hidden;
            z-index: 30;
        }

        .chat-context-item {
            width: 100%;
            background: transparent;
            color: #d7e0ef;
            border: none;
            text-align: left;
            padding: 10px 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .chat-context-item:hover {
            background: #2a3a57;
        }

        .chat-context-item.danger {
            color: #ff8b8b;
        }

        .dialog-pin,
        .dialog-mute {
            color: #90a8d2;
            font-size: 12px;
        }

        .message-search-hit .message-bubble {
            box-shadow: 0 0 0 1px #5f84c8, 0 0 16px rgba(95, 132, 200, 0.35);
        }

        .dialog-media-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 12px;
        }

        .dialog-media-item {
            background: #171d27;
            border: 1px solid #2c374a;
            border-radius: 10px;
            padding: 10px;
        }

        .dialog-media-top {
            font-size: 11px;
            color: #9aaccc;
            margin-bottom: 8px;
        }

        .dialog-media-preview {
            width: 100%;
            border-radius: 8px;
        }

        .dialog-media-preview.sticker {
            max-height: 220px;
            object-fit: contain;
            background: transparent;
        }

        .friends-layout {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 14px;
        }

        .friends-main {
            min-width: 0;
        }

        .friends-side {
            min-width: 0;
        }

        .friends-side-card {
            background: #1f2735;
            border: 1px solid #344256;
            border-radius: 12px;
            padding: 12px;
        }

        .friends-side-title {
            font-size: 14px;
            font-weight: 700;
            color: #dce6f8;
            margin-bottom: 10px;
        }

        .friend-vk-item {
            align-items: flex-start;
        }

        .friend-links {
            margin-top: 6px;
            display: flex;
            gap: 8px;
        }

        .friend-link-btn {
            background: transparent;
            border: none;
            color: #8fb5ff;
            font-size: 13px;
            padding: 0;
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        .friend-context-menu {
            position: absolute;
            right: 0;
            top: 40px;
            min-width: 190px;
            border-radius: 10px;
            border: 1px solid #36445a;
            background: #1f2736;
            box-shadow: 0 16px 36px rgba(7, 10, 18, 0.5);
            display: none;
            z-index: 20;
        }

        .friend-actions {
            position: relative;
        }

        .friend-context-item {
            width: 100%;
            border: none;
            background: transparent;
            color: #d8e0ef;
            text-align: left;
            padding: 10px 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .friend-context-item:hover {
            background: #293951;
        }

        .friend-context-item.danger {
            color: #ff8f8f;
        }

        .possible-friend-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px;
            border-radius: 10px;
        }

        .possible-friend-item:hover {
            background: #273248;
        }

        .possible-friend-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }

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

        .possible-friend-name {
            font-size: 13px;
            font-weight: 700;
        }

        .possible-friend-meta {
            font-size: 12px;
            color: #93a5c8;
        }

        .profile-right-column {
            display: none !important;
        }

        .profile-left-column {
            width: 100% !important;
            max-width: 100% !important;
            flex: 1 1 100% !important;
        }

        .chat-refresh-btn,
        .calls-actions,
        .popular-communities-block,
        #onlineUsersForCalls {
            display: none !important;
        }

        .admin-stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 10px;
        }

        .admin-stat-card {
            padding: 12px;
            border-radius: 10px;
            background: #1a2230;
            border: 1px solid #334157;
        }

        .admin-stat-value {
            font-size: 24px;
            font-weight: 800;
            color: #dbe8ff;
        }

        .admin-stat-label {
            font-size: 12px;
            color: #99add0;
        }

        .admin-user-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 10px;
            border-radius: 10px;
            border: 1px solid #334156;
            background: #1a2230;
            margin-bottom: 8px;
        }

        .admin-user-main {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .admin-user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }

        .admin-user-name {
            font-size: 14px;
            font-weight: 700;
        }

        .admin-user-meta {
            font-size: 12px;
            color: #95a8ca;
        }

        .admin-user-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .admin-role-select {
            background: #273246;
            color: #dfe8f8;
            border: 1px solid #3b4e6d;
            border-radius: 8px;
            padding: 8px;
        }

        .screen-fullscreen-btn {
            position: absolute;
            bottom: 14px;
            right: 14px;
            background: rgba(17, 22, 31, 0.74);
            color: #e7efff;
            border: 1px solid #4b638f;
            border-radius: 10px;
            padding: 8px 10px;
            font-size: 13px;
        }

        @media (max-width: 980px) {
            .friends-layout {
                grid-template-columns: 1fr;
            }
        }

        /* ===== Exact Dark-Blue Cleanup ===== */
        body {
            background: linear-gradient(90deg, #111825 0%, #1a2332 45%, #1d293b 100%) !important;
            color: #f3f7ff !important;
        }

        .content-area {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        .sidebar-left,
        .menu {
            background: linear-gradient(180deg, #1b2434 0%, #1a2331 100%) !important;
            border-color: #32445f !important;
        }

        .menu-item {
            border-radius: 10px !important;
            border: 1px solid transparent !important;
        }

        .menu-item span {
            color: #f2f6ff !important;
        }

        .menu-item i {
            color: #678bbb !important;
        }

        .menu-item:hover {
            background: rgba(60, 84, 120, 0.3) !important;
        }

        .menu-item.active {
            background: linear-gradient(180deg, #264270 0%, #1f375d 100%) !important;
            border-color: #3a5f93 !important;
        }

        .menu-item.active span,
        .menu-item.active i {
            color: #7ea9e7 !important;
        }

        .messenger-container {
            background: linear-gradient(90deg, #1a2331 0%, #1e2838 100%) !important;
            border: 1px solid #31435e !important;
            box-shadow: none !important;
        }

        .messenger-header {
            background: rgba(18, 25, 35, 0.86) !important;
            border-bottom: 1px solid #32445f !important;
        }

        .chat-user-name {
            color: #f3f7ff !important;
        }

        .chat-user-status,
        .dialog-time,
        .dialog-last-message,
        .user-list-status {
            color: #95a9c7 !important;
        }

        .dialogs-sidebar {
            background: linear-gradient(180deg, #1b2434 0%, #1a2331 100%) !important;
            border-right: 1px solid #32445f !important;
        }

        .dialog-item,
        .user-list-item {
            border-bottom: 1px solid #2e3e57 !important;
        }

        .dialog-user-name,
        .user-list-name {
            color: #eef4ff !important;
        }

        .chat-area {
            background: linear-gradient(90deg, #1a2230 0%, #1e2838 100%) !important;
        }

        .chat-input-area {
            background: #1f2938 !important;
            border-top: 1px solid #32445f !important;
        }

        .chat-input-container {
            background: #212c3d !important;
            border: 1px solid #32445f !important;
            border-radius: 16px !important;
        }

        .chat-input {
            background: transparent !important;
            border: none !important;
            color: #f2f6ff !important;
        }

        .chat-input::placeholder {
            color: #9db1d0 !important;
        }

        .chat-media-btn {
            background: #2a3649 !important;
            border: 1px solid #3b4f6c !important;
            color: #dfe9fb !important;
        }

        .send-message-btn {
            border: 1px solid #5074a7 !important;
        }

        .message-item.incoming .message-bubble {
            background: #263041 !important;
            border: 1px solid #344763 !important;
            color: #f3f7ff !important;
        }

        .message-item.outgoing .message-bubble {
            background: #4f7dca !important;
            border: 1px solid #6290de !important;
            color: #ffffff !important;
        }

        .message-time {
            color: #93a8c8 !important;
        }

        .chat-header-btn {
            background: transparent !important;
            border: none !important;
            color: #dce6fa !important;
            width: 34px !important;
            height: 34px !important;
        }

        .chat-header-btn:hover {
            color: #7fa9e7 !important;
            background: rgba(75, 104, 149, 0.2) !important;
        }

        .chat-context-menu {
            background: #262d39 !important;
            border: 1px solid #3a465c !important;
        }

        .chat-context-item {
            color: #eef4ff !important;
        }

        .chat-context-item:hover {
            background: #303b4e !important;
        }

        .friends-container,
        .communities-container,
        .music-container {
            background: linear-gradient(180deg, #1e2738 0%, #1c2535 100%) !important;
            border: 1px solid #30425d !important;
            box-shadow: none !important;
        }

        .friends-header,
        .communities-header,
        .music-header {
            background: transparent !important;
            border-bottom: 1px solid #32445f !important;
        }

        .friends-title,
        .communities-title {
            color: #f2f6ff !important;
        }

        .communities-search,
        .music-search,
        .dialogs-search-input {
            background: #121b2a !important;
            border: 1px solid #365074 !important;
            color: #eef4ff !important;
        }

        .communities-search::placeholder,
        .music-search::placeholder,
        .dialogs-search-input::placeholder {
            color: #8ea2c4 !important;
        }

        .create-community-btn,
        .upload-music-btn {
            background: linear-gradient(180deg, #2f5488 0%, #284775 100%) !important;
            border: 1px solid #4e78ad !important;
            color: #f3f8ff !important;
        }

        .create-community-btn:hover,
        .upload-music-btn:hover {
            background: linear-gradient(180deg, #38629f 0%, #2f548b 100%) !important;
        }

        .friends-nav,
        .communities-nav,
        .music-nav,
        .community-nav-tabs,
        .profile-nav-tabs {
            background: #222d3e !important;
            border-bottom: 1px solid #32445f !important;
            padding: 0 0 0 16px !important;
        }

        .friends-nav-item,
        .communities-nav-item,
        .music-nav-item,
        .community-nav-tab,
        .profile-nav-tab {
            background: #273347 !important;
            color: #edf3ff !important;
            border: 1px solid #3a4d69 !important;
            border-bottom: none !important;
            border-radius: 0 !important;
            margin: 0 !important;
        }

        .friends-nav-item:hover,
        .communities-nav-item:hover,
        .music-nav-item:hover,
        .community-nav-tab:hover,
        .profile-nav-tab:hover {
            background: #2c3a50 !important;
            color: #ffffff !important;
        }

        .friends-nav-item.active,
        .communities-nav-item.active,
        .music-nav-item.active,
        .community-nav-tab.active,
        .profile-nav-tab.active {
            background: #22314b !important;
            color: #6aa0e7 !important;
            border-bottom: 2px solid #6aa0e7 !important;
        }

        .friends-list,
        .communities-list,
        .music-list {
            background: transparent !important;
        }

        .friends-catalog-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            gap: 10px;
        }

        .friends-stat-pills {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .friends-stat-pill {
            border: 1px solid #3a4b64;
            background: #2a313d;
            color: #dbe6fa;
            border-radius: 10px;
            padding: 8px 12px;
            font-size: 14px;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .friends-stat-pill span {
            color: #9eb1d0;
        }

        .friends-stat-pill.active {
            background: #3a3f46;
            color: #ffffff;
        }

        .friends-find-btn {
            padding: 8px 14px;
            border-radius: 10px;
            border: 1px solid #ffffff;
            background: #f4f6f9;
            color: #161b24;
            font-weight: 700;
        }

        .friends-search-row {
            display: flex;
            align-items: center;
            gap: 8px;
            background: #3f4552;
            border: 1px solid #505a6b;
            border-radius: 10px;
            padding: 8px 10px;
            margin-bottom: 14px;
        }

        .friends-search-icon {
            color: #b9c5db;
            font-size: 14px;
        }

        .friends-search-input {
            flex: 1;
            border: none;
            background: transparent;
            color: #f3f7ff;
            font-size: 14px;
            outline: none;
        }

        .friends-search-input::placeholder {
            color: #b2c0d7;
        }

        .friends-search-tools {
            border: none;
            background: transparent;
            color: #c5d2e7;
            width: 24px;
            height: 24px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .friends-layout.vk {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 360px;
            gap: 16px;
        }

        .friends-main-list {
            background: transparent;
            border-radius: 10px;
        }

        .friend-vk-row {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 12px 10px;
            border-bottom: 1px solid #2b3a53;
        }

        .friend-vk-row:last-child {
            border-bottom: none;
        }

        .friend-vk-avatar {
            width: 78px;
            height: 78px;
            border-radius: 50%;
            object-fit: cover;
        }

        .friend-vk-body {
            flex: 1;
            min-width: 0;
            padding-top: 6px;
        }

        .friend-vk-name {
            color: #f4f8ff;
            font-size: 31px;
            font-weight: 500;
            margin-bottom: 6px;
        }

        .friend-vk-links {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
        }

        .friend-vk-link {
            border: none;
            background: transparent;
            color: #77a8f1;
            font-size: 23px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .friend-vk-more {
            position: relative;
            align-self: center;
        }

        .friend-action-btn.ghost {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 1px solid #3f4e66;
            background: #2a3548;
            color: #d9e3f8;
        }

        .friend-action-btn.ghost:hover {
            background: #32425b;
        }

        .friend-context-menu {
            min-width: 220px !important;
            background: #2a3039 !important;
            border: 1px solid #3d4a5c !important;
            border-radius: 14px !important;
        }

        .friend-context-item {
            color: #eef4ff !important;
        }

        .friend-context-item:hover {
            background: #36445a !important;
        }

        .friend-context-item .menu-arrow {
            margin-left: auto;
            color: #9eb0cc;
        }

        .friends-side-menu,
        .suggestions-card {
            background: #20252e;
            border: 1px solid #3a4658;
            border-radius: 12px;
            margin-bottom: 12px;
        }

        .friends-side-title {
            color: #f2f6ff !important;
            font-weight: 700 !important;
            margin-bottom: 10px !important;
        }

        .friends-side-menu-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: #f3f7ff;
            font-weight: 600;
            padding: 12px 14px;
            border-bottom: 1px solid #313d50;
        }

        .friends-side-menu-header span {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .friends-side-menu-header > i {
            color: #95aacb;
        }

        .friends-side-menu-link {
            width: 100%;
            text-align: left;
            border: none;
            background: transparent;
            color: #f0f4ff;
            padding: 10px 14px;
            font-size: 15px;
        }

        .friends-side-menu-link:hover {
            background: #2d3a4e;
        }

        .suggestions-card {
            padding: 12px 12px 10px;
        }

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

        .suggestion-row {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 6px 4px;
            border-radius: 10px;
        }

        .suggestion-row:hover {
            background: #2a3344;
        }

        .suggestion-avatar {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            object-fit: cover;
        }

        .suggestion-body {
            flex: 1;
            min-width: 0;
        }

        .suggestion-name {
            color: #f4f8ff;
            font-size: 17px;
            font-weight: 500;
            line-height: 1.2;
        }

        .suggestion-meta {
            color: #a9bad6;
            font-size: 15px;
        }

        .suggestion-add-btn {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            border: none;
            background: transparent;
            color: #64a0ee;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }

        .suggestion-add-btn:hover {
            background: rgba(100, 160, 238, 0.16);
        }

        .suggestions-show-all {
            width: 100%;
            margin-top: 12px;
            border: none;
            border-radius: 10px;
            padding: 10px;
            background: #343940;
            color: #f2f6ff;
            font-weight: 600;
            font-size: 15px;
        }

        .suggestions-show-all:hover {
            background: #3a414a;
        }

        .no-friends-placeholder {
            text-align: center;
            padding: 56px 18px;
            color: #9ab0d0;
        }

        .no-friends-placeholder i {
            color: #6ea0e7;
            font-size: 52px;
            margin-bottom: 14px;
        }

        .no-friends-placeholder h3 {
            color: #c9d7ef;
            font-size: 38px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .no-friends-placeholder p {
            color: #879ab8;
            font-size: 34px;
        }

        @media (max-width: 1400px) {
            .friend-vk-name {
                font-size: 24px;
            }

            .friend-vk-link {
                font-size: 16px;
            }

            .suggestion-name {
                font-size: 15px;
            }

            .suggestion-meta {
                font-size: 13px;
            }

            .no-friends-placeholder h3 {
                font-size: 28px;
            }

            .no-friends-placeholder p {
                font-size: 22px;
            }
        }

        @media (max-width: 980px) {
            .friends-layout.vk {
                grid-template-columns: 1fr;
            }

            .friend-vk-name {
                font-size: 20px;
            }

            .friend-vk-link {
                font-size: 14px;
            }
        }

        /* ===== Final Discord-Like Theme Pass ===== */
        :root {
            --ds-bg: #111a27;
            --ds-bg-soft: #172234;
            --ds-surface: #1c2738;
            --ds-surface-2: #222f43;
            --ds-border: #314661;
            --ds-text: #edf3ff;
            --ds-muted: #a0b2cd;
            --ds-blue: #365d95;
            --ds-blue-hover: #4170b2;
        }

        body {
            background: radial-gradient(circle at 12% 0%, #1b2740 0%, var(--ds-bg) 58%, #0f1724 100%) !important;
            color: var(--ds-text) !important;
        }

        .header {
            background: rgba(16, 23, 34, 0.95) !important;
            border-bottom: 1px solid var(--ds-border) !important;
        }

        .content-area,
        .profile-container,
        .profile-content,
        .profile-header,
        .profile-block,
        .post-creator,
        .post,
        .feed,
        .post-view-container,
        .friends-container,
        .communities-container,
        .music-container,
        .messenger-container,
        .calls-container {
            background: linear-gradient(180deg, var(--ds-surface) 0%, var(--ds-bg-soft) 100%) !important;
            border-color: var(--ds-border) !important;
            box-shadow: none !important;
        }

        .profile-container,
        .profile-block,
        .post-creator,
        .post,
        .friends-container,
        .communities-container,
        .music-container,
        .messenger-container,
        .calls-container {
            border: 1px solid var(--ds-border) !important;
        }

        .profile-block-header,
        .friends-header,
        .communities-header,
        .music-header,
        .messenger-header {
            background: transparent !important;
            border-bottom: 1px solid var(--ds-border) !important;
        }

        .profile-name,
        .profile-block-title,
        .post-author-name,
        .post-content,
        .friends-title,
        .communities-title,
        .music-title {
            color: var(--ds-text) !important;
        }

        .post-input,
        .form-input,
        .search-input,
        .dialogs-search-input,
        .communities-search,
        .music-search,
        textarea,
        input,
        select {
            background: #121c2b !important;
            border-color: var(--ds-border) !important;
            color: var(--ds-text) !important;
        }

        .post-input::placeholder,
        .form-input::placeholder,
        .search-input::placeholder,
        .dialogs-search-input::placeholder,
        .communities-search::placeholder,
        .music-search::placeholder,
        textarea::placeholder,
        input::placeholder {
            color: var(--ds-muted) !important;
        }

        .search-input:focus,
        .post-input:focus,
        .form-input:focus,
        .dialogs-search-input:focus,
        .communities-search:focus,
        .music-search:focus,
        textarea:focus,
        input:focus,
        select:focus {
            background: #121c2b !important;
            color: var(--ds-text) !important;
            border-color: #476793 !important;
            box-shadow: 0 0 0 2px rgba(71, 103, 147, 0.2) !important;
            outline: none !important;
        }

        .profile-avatar {
            border-color: #dfe8f8 !important;
        }

        .profile-actions-container .profile-share-btn,
        .profile-actions-container .btn.btn-primary {
            min-height: 40px !important;
            width: 170px !important;
            padding: 0 16px !important;
            border-radius: 8px !important;
            font-size: 14px !important;
            font-weight: 600 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 8px !important;
            border: 1px solid #446a9e !important;
            box-shadow: none !important;
        }

        .profile-actions-container .profile-share-btn {
            background: linear-gradient(180deg, var(--ds-blue) 0%, #2e4f80 100%) !important;
            color: #f5f9ff !important;
        }

        .profile-actions-container .profile-share-btn:hover,
        .profile-actions-container .btn.btn-primary:hover {
            background: linear-gradient(180deg, var(--ds-blue-hover) 0%, #35609b 100%) !important;
            border-color: #5a81b8 !important;
            color: #ffffff !important;
        }

        .share-profile-popup {
            background: #1d293a !important;
            border: 1px solid var(--ds-border) !important;
            color: var(--ds-text) !important;
        }

        .share-profile-popup-title {
            color: var(--ds-text) !important;
        }

        .profile-link-input {
            background: #121c2b !important;
            border: 1px solid var(--ds-border) !important;
            color: var(--ds-text) !important;
        }

        .copy-profile-link-btn {
            background: linear-gradient(180deg, var(--ds-blue) 0%, #2e4f80 100%) !important;
            border: 1px solid #446a9e !important;
            color: #f5f9ff !important;
        }

        .copy-profile-link-btn:hover {
            background: linear-gradient(180deg, var(--ds-blue-hover) 0%, #35609b 100%) !important;
        }

        .post-actions-bar,
        .comments-section,
        .post-info,
        .profile-nav-tabs,
        .friends-nav,
        .communities-nav,
        .music-nav {
            border-color: var(--ds-border) !important;
        }

        @media (max-width: 768px) {
            .profile-actions-container .profile-share-btn,
            .profile-actions-container .btn.btn-primary {
                width: auto !important;
                min-width: 0 !important;
            }
        }
        
        /* ===== Ultra Dark Final Alignment ===== */
        :root {
            --ux-bg: #0d1017;
            --ux-bg-soft: #121722;
            --ux-panel: #171c25;
            --ux-panel-2: #1b212c;
            --ux-panel-3: #212939;
            --ux-border: #2a3342;
            --ux-border-strong: #394961;
            --ux-text: #e8edf7;
            --ux-muted: #97a5bc;
            --ux-icon: #6f8fbd;
            --ux-primary: #4d7ed6;
            --ux-primary-hover: #5f8fe3;
        }

        html,
        body {
            background: radial-gradient(circle at 14% 0%, #1b2230 0%, #10141c 52%, #0b0f16 100%) !important;
            color: var(--ux-text) !important;
        }

        body {
            min-height: 100vh;
        }

        .header {
            background: rgba(12, 16, 24, 0.94) !important;
            border-bottom: 1px solid #21293a !important;
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.32) !important;
        }

        .search-input {
            background: #0f141d !important;
            border: 1px solid #253043 !important;
            color: var(--ux-text) !important;
        }

        .search-input::placeholder {
            color: #8f9eb5 !important;
        }

        .main-content,
        .content-area {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        .sidebar-left,
        .menu {
            background: linear-gradient(180deg, #151b26 0%, #121722 100%) !important;
            border-color: #283245 !important;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28) !important;
        }

        .menu-item {
            border-radius: 10px !important;
            border: 1px solid transparent !important;
        }

        .menu-item span {
            color: #edf2fc !important;
        }

        .menu-item i {
            color: var(--ux-icon) !important;
        }

        .menu-item:hover {
            background: #1f2736 !important;
            border-color: #2f3b50 !important;
        }

        .menu-item.active {
            background: linear-gradient(180deg, #233655 0%, #1d2d48 100%) !important;
            border-color: #3a5378 !important;
        }

        .menu-item.active span {
            color: #c9ddff !important;
        }

        .menu-item.active i {
            color: #8db3ec !important;
        }

        .profile-container,
        .profile-header,
        .profile-content,
        .profile-block,
        .post,
        .post-creator,
        .friends-container,
        .communities-container,
        .music-container,
        .messenger-container,
        .calls-container,
        .post-view-container {
            background: linear-gradient(180deg, #171c27 0%, #141a24 100%) !important;
            border: 1px solid var(--ux-border) !important;
            box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3) !important;
        }

        .profile-cover {
            background-color: #111722 !important;
        }

        .profile-block-header,
        .friends-header,
        .communities-header,
        .music-header,
        .messenger-header {
            background: rgba(20, 26, 36, 0.92) !important;
            border-bottom: 1px solid var(--ux-border) !important;
        }

        .profile-block-content,
        .post-creator,
        .post,
        .comments-section {
            background: #1a202b !important;
            border-color: var(--ux-border) !important;
        }

        .profile-name,
        .profile-block-title,
        .post-author-name,
        .post-content,
        .post-time,
        .info-label,
        .info-value,
        .friends-title,
        .communities-title,
        .music-title {
            color: var(--ux-text) !important;
        }

        .profile-actions-container {
            gap: 10px !important;
        }

        .profile-actions-container .profile-share-btn,
        .profile-actions-container .btn.btn-primary {
            width: 188px !important;
            min-height: 42px !important;
            border-radius: 10px !important;
            padding: 0 16px !important;
            font-weight: 600 !important;
            font-size: 14px !important;
            border: 1px solid var(--ux-border-strong) !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 8px !important;
            box-shadow: none !important;
        }

        .profile-actions-container .profile-share-btn {
            background: #252d3a !important;
            color: #e5ecf9 !important;
        }

        .profile-actions-container .profile-share-btn:hover {
            background: #2b3443 !important;
            border-color: #455875 !important;
            color: #ffffff !important;
        }

        .profile-actions-container .btn.btn-primary {
            background: linear-gradient(180deg, #4d7ed6 0%, #3f6dc4 100%) !important;
            border-color: #5f8fde !important;
            color: #f4f8ff !important;
        }

        .profile-actions-container .btn.btn-primary:hover {
            background: linear-gradient(180deg, #5a8be0 0%, #4778cf 100%) !important;
            border-color: #7aa6eb !important;
            color: #ffffff !important;
        }

        .share-profile-popup {
            background: #1b2230 !important;
            border: 1px solid var(--ux-border) !important;
            box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42) !important;
        }

        .share-profile-popup-title {
            color: var(--ux-text) !important;
        }

        .profile-link-input {
            background: #101722 !important;
            border: 1px solid #2a374b !important;
            color: var(--ux-text) !important;
        }

        .copy-profile-link-btn {
            background: linear-gradient(180deg, #4c7cd2 0%, #3f6abc 100%) !important;
            border: 1px solid #5f8bdb !important;
            color: #f5f9ff !important;
        }

        .copy-profile-link-btn:hover {
            background: linear-gradient(180deg, #5a8ae0 0%, #4a77cb 100%) !important;
        }

        .post-input,
        .comment-input,
        .form-input,
        .dialogs-search-input,
        .communities-search,
        .music-search,
        .friends-search-input,
        .chat-input,
        textarea,
        input,
        select {
            background: #101722 !important;
            border: 1px solid #2a374b !important;
            color: var(--ux-text) !important;
        }

        .post-input::placeholder,
        .comment-input::placeholder,
        .form-input::placeholder,
        .dialogs-search-input::placeholder,
        .communities-search::placeholder,
        .music-search::placeholder,
        .friends-search-input::placeholder,
        .chat-input::placeholder,
        textarea::placeholder,
        input::placeholder {
            color: #8d9db5 !important;
        }

        .post-input:focus,
        .comment-input:focus,
        .form-input:focus,
        .dialogs-search-input:focus,
        .communities-search:focus,
        .music-search:focus,
        .friends-search-input:focus,
        .chat-input:focus,
        textarea:focus,
        input:focus,
        select:focus {
            border-color: #4f6f9f !important;
            box-shadow: 0 0 0 2px rgba(79, 111, 159, 0.25) !important;
            outline: none !important;
        }

        .friends-nav,
        .communities-nav,
        .music-nav,
        .community-nav-tabs,
        .profile-nav-tabs {
            background: #171d28 !important;
            border-top: 1px solid #242d3d !important;
            border-bottom: 1px solid #2a3342 !important;
            padding: 0 !important;
        }

        .friends-nav-item,
        .communities-nav-item,
        .music-nav-item,
        .community-nav-tab,
        .profile-nav-tab {
            background: #202936 !important;
            color: #dce6f8 !important;
            border: none !important;
            border-right: 1px solid #2f3b4e !important;
            border-radius: 0 !important;
            min-height: 46px !important;
        }

        .friends-nav-item:hover,
        .communities-nav-item:hover,
        .music-nav-item:hover,
        .community-nav-tab:hover,
        .profile-nav-tab:hover {
            background: #263142 !important;
            color: #ffffff !important;
        }

        .friends-nav-item.active,
        .communities-nav-item.active,
        .music-nav-item.active,
        .community-nav-tab.active,
        .profile-nav-tab.active {
            background: #253142 !important;
            color: #7ea6e7 !important;
            box-shadow: inset 0 -2px 0 #6e96db !important;
        }

        #friendsList,
        #communitiesList,
        #musicList,
        .friends-list,
        .communities-list,
        .music-list {
            background: linear-gradient(180deg, #161d28 0%, #141a24 100%) !important;
            border-top: none !important;
        }

        .friends-catalog,
        .friends-catalog-top,
        .friends-main-list,
        .friends-side-menu,
        .friends-side-card {
            background: transparent !important;
        }

        .friends-stat-pill {
            background: #232c39 !important;
            border: 1px solid #323f52 !important;
            color: #dfe8fa !important;
        }

        .friends-stat-pill.active {
            background: #2a3546 !important;
            border-color: #44587a !important;
            color: #ffffff !important;
        }

        .friends-find-btn {
            background: #f5f7fb !important;
            color: #121722 !important;
            border: none !important;
        }

        .friends-search-row {
            background: #252f3f !important;
            border: 1px solid #33435b !important;
        }

        .friends-search-tools {
            color: #b8c7de !important;
        }

        .friend-vk-row,
        .friend-item,
        .friend-request-item,
        .user-list-item,
        .dialog-item {
            border-bottom: 1px solid #2b3547 !important;
        }

        .friend-vk-name,
        .friend-name,
        .friend-request-name,
        .dialog-user-name,
        .user-list-name {
            color: #edf3ff !important;
        }

        .friend-vk-link,
        .friend-status,
        .friend-request-time,
        .dialog-time,
        .dialog-last-message,
        .user-list-status {
            color: #9aacca !important;
        }

        .friend-action-btn.ghost {
            background: #263243 !important;
            border: 1px solid #3a4b63 !important;
            color: #dce8fd !important;
        }

        .friend-context-menu {
            background: #252c37 !important;
            border: 1px solid #3a465c !important;
        }

        .friend-context-item {
            color: #e7efff !important;
        }

        .friend-context-item:hover {
            background: #303a4b !important;
        }

        .messenger-container {
            background: linear-gradient(180deg, #171c26 0%, #131923 100%) !important;
            border: 1px solid #2b3546 !important;
            box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34) !important;
        }

        .messenger-header {
            background: #1a202b !important;
            border-bottom: 1px solid #2d394e !important;
        }

        .chat-user-name {
            color: #edf3ff !important;
        }

        .chat-user-status {
            color: #94a5c0 !important;
        }

        .chat-header-actions {
            gap: 12px !important;
        }

        .chat-header-btn {
            width: 32px !important;
            height: 32px !important;
            border: none !important;
            border-radius: 50% !important;
            background: transparent !important;
            color: #c6d4ec !important;
            box-shadow: none !important;
        }

        .chat-header-btn:hover {
            color: #ffffff !important;
            background: #283449 !important;
        }

        .chat-context-menu {
            background: #252c37 !important;
            border: 1px solid #3a465c !important;
            box-shadow: 0 20px 42px rgba(0, 0, 0, 0.5) !important;
        }

        .chat-context-item {
            color: #e7efff !important;
        }

        .chat-context-item:hover {
            background: #303a4b !important;
        }

        .chat-context-item.danger {
            color: #ff8f8f !important;
        }

        .messenger-content {
            background: #171c26 !important;
        }

        .dialogs-sidebar {
            background: linear-gradient(180deg, #171d28 0%, #141a24 100%) !important;
            border-right: 1px solid #2b3547 !important;
        }

        .dialogs-search {
            border-bottom: 1px solid #2b3547 !important;
        }

        .dialogs-search-input {
            background: #101722 !important;
            border: 1px solid #31435d !important;
            color: #e9effa !important;
        }

        .dialogs-search-input:focus {
            border-color: #4f6f9f !important;
            box-shadow: 0 0 0 2px rgba(79, 111, 159, 0.22) !important;
        }

        .dialog-item:hover,
        .user-list-item:hover {
            background: #212a37 !important;
        }

        .dialog-item.active {
            background: #263245 !important;
        }

        .dialog-avatar,
        .user-list-avatar {
            border: 1px solid #3a475f !important;
        }

        .users-list {
            background: transparent !important;
            padding: 0 !important;
        }

        .users-list > div[style] {
            background: #1c2432 !important;
            border-bottom: 1px solid #2b3547 !important;
            color: #a8bad8 !important;
        }

        .chat-area {
            background: linear-gradient(180deg, #191f2a 0%, #161c26 100%) !important;
        }

        .chat-messages {
            background: transparent !important;
        }

        .message-date-divider span {
            background: #2a3240 !important;
            color: #a7b5ca !important;
            border: 1px solid #3a465a !important;
        }

        .message-item.incoming .message-bubble {
            background: #262f3d !important;
            border: 1px solid #36455c !important;
            color: #edf3ff !important;
        }

        .message-item.outgoing .message-bubble {
            background: var(--ux-primary) !important;
            border: 1px solid #6997e5 !important;
            color: #ffffff !important;
        }

        .message-item.incoming .message-bubble.sticker,
        .message-item.outgoing .message-bubble.sticker,
        .message-item.incoming .message-bubble.gif,
        .message-item.outgoing .message-bubble.gif {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        .message-time {
            color: #98a8c0 !important;
        }

        .chat-input-area {
            background: #1a212d !important;
            border-top: 1px solid #2c394d !important;
        }

        .chat-input-container {
            background: #1d2532 !important;
            border: 1px solid #33455f !important;
            border-radius: 18px !important;
            padding: 6px 8px !important;
        }

        .chat-media-btn {
            background: #273344 !important;
            border: 1px solid #3a4d67 !important;
            color: #d9e6fb !important;
        }

        .chat-media-btn:hover {
            background: #2f3e53 !important;
            color: #ffffff !important;
        }

        .chat-input {
            background: #0f1621 !important;
            border: 1px solid #2d3c53 !important;
            border-radius: 18px !important;
            color: #eaf0fb !important;
        }

        .chat-input::placeholder {
            color: #95a6bf !important;
        }

        .send-message-btn {
            background: linear-gradient(180deg, var(--ux-primary) 0%, #3f6ec6 100%) !important;
            border: 1px solid #709de8 !important;
            color: #ffffff !important;
            box-shadow: none !important;
        }

        .send-message-btn:hover {
            background: linear-gradient(180deg, var(--ux-primary-hover) 0%, #4c7dd5 100%) !important;
        }

        .send-message-btn:disabled {
            background: #35445b !important;
            border-color: #45566f !important;
            color: #9fb0ca !important;
        }

        .no-chat-selected,
        .empty-state,
        .loading {
            color: #93a3bc !important;
        }

        .no-chat-selected i,
        .empty-state i,
        .loading i {
            color: #6690d5 !important;
        }

        .search-results {
            background: #1b2330 !important;
            border: 1px solid #2f3b4f !important;
            box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35) !important;
        }

        .search-result {
            border-bottom: 1px solid #2b3546 !important;
            color: #dfe8f8 !important;
        }

        .search-result:hover {
            background: #253040 !important;
        }

        .result-name {
            color: #e8effb !important;
        }

        .result-status {
            color: #99abc7 !important;
        }

        .result-icon {
            background: #263244 !important;
            color: #adc2e4 !important;
        }

        .search-result[style*="color"] {
            color: #9cadc8 !important;
        }

        button,
        .btn,
        .profile-share-btn,
        .chat-header-btn,
        .chat-media-btn,
        .send-message-btn {
            outline: none !important;
            box-shadow: none !important;
        }

        @media (max-width: 768px) {
            .profile-actions-container .profile-share-btn,
            .profile-actions-container .btn.btn-primary {
                width: auto !important;
                min-width: 140px !important;
            }
        }
        
        /* ===== Messenger Layout Final (Requested) ===== */
        .messenger-header {
            display: grid !important;
            grid-template-columns: 286px minmax(0, 1fr) !important;
            align-items: stretch !important;
            min-height: 68px !important;
            padding: 0 !important;
            border-bottom: 1px solid #2a3547 !important;
            background: #1a202b !important;
        }

        .dialogs-topbar {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            padding: 12px 14px !important;
            border-right: 1px solid #2a3547 !important;
            background: #1a202b !important;
        }

        .dialogs-top-title {
            font-size: 29px !important;
            line-height: 1 !important;
            font-weight: 700 !important;
            color: #e9eef9 !important;
            letter-spacing: 0.01em !important;
        }

        .dialogs-top-btn {
            width: 34px !important;
            height: 34px !important;
            border: none !important;
            border-radius: 8px !important;
            background: transparent !important;
            color: #9fb0cc !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            box-shadow: none !important;
        }

        .dialogs-top-btn:hover {
            color: #ffffff !important;
            background: #273245 !important;
        }

        .chat-topbar {
            display: flex !important;
            align-items: center !important;
            min-width: 0 !important;
            padding: 10px 14px !important;
            gap: 10px !important;
            background: #1a202b !important;
        }

        .chat-close-btn {
            width: 34px !important;
            height: 34px !important;
            border: none !important;
            border-radius: 8px !important;
            background: transparent !important;
            color: #9fb0cc !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            flex-shrink: 0 !important;
        }

        .chat-close-btn:hover {
            color: #ffffff !important;
            background: #273245 !important;
        }

        .chat-user-info {
            min-width: 0 !important;
            gap: 10px !important;
        }

        .chat-user-avatar {
            width: 40px !important;
            height: 40px !important;
            border: 1px solid #536177 !important;
            box-shadow: none !important;
        }

        .chat-user-name {
            font-size: 25px !important;
            font-weight: 700 !important;
            color: #f0f4fc !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        .chat-user-status {
            font-size: 14px !important;
            color: #93a3bc !important;
        }

        .chat-header-actions {
            margin-left: auto !important;
            gap: 12px !important;
        }

        .chat-header-btn {
            width: 30px !important;
            height: 30px !important;
            border: none !important;
            border-radius: 50% !important;
            background: transparent !important;
            color: #c4d2e8 !important;
        }

        .chat-header-btn:hover {
            color: #ffffff !important;
            background: #2a3547 !important;
        }

        .dialogs-sidebar {
            width: 286px !important;
            border-right: 1px solid #2a3547 !important;
        }

        .chat-area {
            display: flex !important;
            flex-direction: column !important;
            min-width: 0 !important;
            background: linear-gradient(180deg, #191f2a 0%, #161c26 100%) !important;
        }

        #chatContainer {
            display: flex;
            flex-direction: column;
            height: 100%;
            width: 100%;
        }

        .chat-messages {
            padding: 16px 18px !important;
        }

        .chat-input-area {
            background: #1a212d !important;
            border-top: 1px solid #2a3547 !important;
            padding: 12px 16px !important;
        }

        .chat-input-container {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            border: 1px solid #33445d !important;
            border-radius: 16px !important;
            background: #1d2532 !important;
            padding: 8px 10px !important;
        }

        .chat-tool-btn {
            width: 36px !important;
            height: 36px !important;
            border-radius: 50% !important;
            border: 1px solid #3b4d67 !important;
            background: #273344 !important;
            color: #d8e5f9 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            flex-shrink: 0 !important;
            box-shadow: none !important;
        }

        .chat-tool-btn:hover {
            background: #314056 !important;
            color: #ffffff !important;
        }

        .chat-tool-btn.attachment {
            background: #263246 !important;
            border-color: #435875 !important;
            color: #edf2fb !important;
        }

        .chat-tool-btn.attachment:hover {
            background: #32435c !important;
        }

        .chat-input {
            flex: 1 !important;
            min-height: 40px !important;
            max-height: 100px !important;
            height: 40px !important;
            padding: 10px 14px !important;
            border-radius: 20px !important;
            border: 1px solid #2d3c53 !important;
            background: #0f1621 !important;
            color: #eaf0fb !important;
            resize: none !important;
            line-height: 1.25 !important;
            font-size: 14px !important;
        }

        .chat-input::placeholder {
            color: #98a8c0 !important;
        }

        .send-message-btn {
            width: 38px !important;
            height: 38px !important;
            border-radius: 50% !important;
            border: 1px solid #709de8 !important;
            background: linear-gradient(180deg, #5688df 0%, #4475cb 100%) !important;
            color: #ffffff !important;
            display: none;
            align-items: center !important;
            justify-content: center !important;
            flex-shrink: 0 !important;
            box-shadow: none !important;
        }

        .send-message-btn:hover {
            background: linear-gradient(180deg, #6597ee 0%, #4f80d6 100%) !important;
        }

        .send-message-btn:disabled {
            background: #3a4a63 !important;
            border-color: #4a5b74 !important;
            color: #a4b5cf !important;
        }

        .messenger-back-btn,
        .chat-media-actions {
            display: none !important;
        }

        @media (max-width: 768px) {
            .messenger-header {
                grid-template-columns: 1fr !important;
                min-height: auto !important;
            }

            .dialogs-topbar {
                border-right: none !important;
                border-bottom: 1px solid #2a3547 !important;
                padding: 10px 12px !important;
            }

            .dialogs-top-title {
                font-size: 24px !important;
            }

            .chat-topbar {
                padding: 10px 12px !important;
            }

            .dialogs-sidebar {
                width: 100% !important;
            }

            .chat-input-area {
                padding: 10px 12px !important;
            }
        }

        /* ===== Messenger Header Removed By Request ===== */
        .messenger-header {
            display: none !important;
        }

        .messenger-content {
            flex: 1 1 auto !important;
            height: 100% !important;
        }

        .dialogs-sidebar,
        .chat-area {
            height: 100% !important;
        }

        /* ===== Restore Chat Header With User Info (No Plus In Top Bar) ===== */
        .messenger-header {
            display: grid !important;
            grid-template-columns: 286px minmax(0, 1fr) !important;
            min-height: 68px !important;
        }

        .dialogs-topbar,
        .chat-topbar {
            display: flex !important;
        }

        @media (max-width: 768px) {
            .messenger-header {
                grid-template-columns: 1fr !important;
                min-height: auto !important;
            }
        }

        /* ===== Messenger Header Behavior (Requested) ===== */
        .messenger-header {
            display: grid !important;
            grid-template-columns: 286px minmax(0, 1fr) !important;
            min-height: 0 !important;
            padding: 0 !important;
            background: transparent !important;
            border-bottom: none !important;
        }

        .dialogs-topbar {
            display: none !important;
        }

        .chat-close-btn {
            display: none !important;
        }

        .chat-topbar {
            display: none !important;
            grid-column: 2 !important;
            min-width: 0 !important;
            min-height: 68px !important;
            padding: 10px 14px !important;
            border-left: 1px solid #2a3547 !important;
            border-bottom: 1px solid #2a3547 !important;
            background: #1a202b !important;
        }

        .messenger-header.has-active-chat .chat-topbar {
            display: flex !important;
        }

        @media (max-width: 768px) {
            .messenger-header {
                grid-template-columns: 1fr !important;
            }

            .chat-topbar {
                grid-column: 1 !important;
                border-left: none !important;
            }
        }

        /* ===== Messenger Edge Alignment Final ===== */
        :root {
            --dialogs-width-final: 286px;
            --chat-edge-final: 16px;
        }

        .messenger-container {
            position: relative !important;
            overflow: hidden !important;
        }

        .messenger-content {
            flex: 1 1 auto !important;
            height: 100% !important;
        }

        .dialogs-sidebar {
            width: var(--dialogs-width-final) !important;
            border-right: 1px solid #2a3547 !important;
            background: linear-gradient(180deg, #171d28 0%, #141a24 100%) !important;
        }

        .dialogs-search {
            padding: 10px !important;
            border-bottom: 1px solid #2b3547 !important;
        }

        .dialogs-search-input {
            padding: 9px 12px !important;
            border-radius: 6px !important;
        }

        .dialog-item {
            padding: 10px 10px !important;
        }

        .dialog-avatar {
            width: 44px !important;
            height: 44px !important;
        }

        .dialog-header {
            align-items: center !important;
            margin-bottom: 3px !important;
            gap: 8px !important;
        }

        .dialog-user-name {
            font-size: 13px !important;
            line-height: 1.2 !important;
            font-weight: 600 !important;
        }

        .dialog-time {
            font-size: 11px !important;
            line-height: 1.1 !important;
        }

        .dialog-last-message {
            font-size: 12px !important;
            line-height: 1.2 !important;
        }

        .messenger-header {
            position: absolute !important;
            top: 0 !important;
            left: var(--dialogs-width-final) !important;
            right: 0 !important;
            height: 68px !important;
            min-height: 68px !important;
            display: none !important;
            z-index: 12 !important;
            background: transparent !important;
            border: none !important;
            pointer-events: none !important;
        }

        .messenger-header.has-active-chat {
            display: block !important;
            pointer-events: auto !important;
        }

        .dialogs-topbar {
            display: none !important;
        }

        .chat-topbar {
            display: flex !important;
            align-items: center !important;
            min-width: 0 !important;
            height: 68px !important;
            padding: 9px var(--chat-edge-final) !important;
            border-bottom: 1px solid #2a3547 !important;
            background: #1a202b !important;
        }

        .chat-user-info {
            gap: 10px !important;
        }

        .chat-user-info > div {
            display: flex !important;
            flex-direction: column !important;
            justify-content: center !important;
            min-width: 0 !important;
        }

        .chat-user-avatar {
            width: 38px !important;
            height: 38px !important;
        }

        .chat-user-name {
            font-size: 17px !important;
            line-height: 1.2 !important;
            font-weight: 700 !important;
        }

        .chat-user-status {
            font-size: 12px !important;
            line-height: 1.1 !important;
            margin-top: 2px !important;
        }

        .chat-header-actions {
            gap: 10px !important;
        }

        .chat-header-btn {
            width: 28px !important;
            height: 28px !important;
        }

        .messenger-header.has-active-chat ~ .messenger-content .chat-area {
            padding-top: 68px !important;
        }

        .chat-messages {
            padding-left: var(--chat-edge-final) !important;
            padding-right: var(--chat-edge-final) !important;
        }

        .chat-input-area {
            padding-left: var(--chat-edge-final) !important;
            padding-right: var(--chat-edge-final) !important;
        }

        .chat-input-container {
            padding-left: 10px !important;
            padding-right: 10px !important;
        }

        @media (max-width: 768px) {
            .messenger-header {
                position: static !important;
                left: auto !important;
                right: auto !important;
                height: auto !important;
                min-height: 0 !important;
                display: none !important;
            }

            .messenger-header.has-active-chat {
                display: block !important;
            }

            .messenger-header.has-active-chat ~ .messenger-content .chat-area {
                padding-top: 0 !important;
            }

            .dialogs-sidebar {
                width: 100% !important;
            }
        }

        /* ===== Plus Menu + Top Strip Fix ===== */
        .header {
            position: sticky !important;
            top: 0 !important;
            overflow: hidden !important;
            padding-bottom: 12px !important;
        }

        .header::after {
            content: none !important;
            display: none !important;
        }

        main.container {
            padding-top: 0 !important;
        }

        .main-content {
            padding-top: 0 !important;
        }

        .chat-input-container {
            position: relative !important;
            overflow: visible !important;
        }

        .chat-attachment-wrap {
            position: relative !important;
            display: inline-flex !important;
            flex-shrink: 0 !important;
        }

        .chat-attachment-menu {
            position: absolute !important;
            left: 0 !important;
            bottom: calc(100% + 10px) !important;
            width: 150px !important;
            padding: 8px !important;
            border-radius: 12px !important;
            border: 1px solid #3a465b !important;
            background: #232a35 !important;
            box-shadow: 0 18px 34px rgba(0, 0, 0, 0.48) !important;
            opacity: 0 !important;
            visibility: hidden !important;
            transform: translateY(6px) !important;
            transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease !important;
            z-index: 60 !important;
        }

        .chat-attachment-menu.open {
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateY(0) !important;
        }

        .chat-attachment-item {
            width: 100% !important;
            border: none !important;
            border-radius: 9px !important;
            background: transparent !important;
            color: #f1f5fc !important;
            display: flex !important;
            align-items: center !important;
            gap: 11px !important;
            padding: 9px 10px !important;
            font-size: 15px !important;
            line-height: 1.2 !important;
            text-align: left !important;
            cursor: pointer !important;
        }

        .chat-attachment-item i {
            width: 18px !important;
            text-align: center !important;
            color: #6c8fbe !important;
            font-size: 15px !important;
            flex-shrink: 0 !important;
        }

        .chat-attachment-item:hover {
            background: #2f3848 !important;
            color: #ffffff !important;
        }

        .chat-attachment-item:hover i {
            color: #8fb2e2 !important;
        }

        .support-assistant-panel {
            display: none;
            margin-bottom: 14px;
            padding: 16px 18px;
            border-radius: 18px;
            border: 1px solid rgba(74, 102, 152, 0.46);
            background:
                radial-gradient(circle at top right, rgba(105, 149, 235, 0.16), transparent 38%),
                linear-gradient(180deg, rgba(18, 26, 40, 0.98), rgba(14, 20, 31, 0.98));
            box-shadow: 0 18px 32px rgba(4, 9, 16, 0.22);
        }

        .support-assistant-panel.visible {
            display: block;
        }

        .support-assistant-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 14px;
        }

        .support-assistant-title {
            color: #eff5ff;
            font-size: 16px;
            font-weight: 800;
            margin-bottom: 6px;
        }

        .support-assistant-text {
            color: #9fb4d6;
            font-size: 13px;
            line-height: 1.55;
        }

        .support-assistant-badge {
            flex-shrink: 0;
            padding: 6px 10px;
            border-radius: 999px;
            background: rgba(88, 132, 223, 0.16);
            border: 1px solid rgba(88, 132, 223, 0.24);
            color: #9fc2ff;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.02em;
        }

        .support-assistant-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 14px;
        }

        .support-assistant-chip {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 13px;
            border: 1px solid rgba(82, 111, 163, 0.54);
            border-radius: 14px;
            background: rgba(20, 29, 45, 0.92);
            color: #edf4ff;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
        }

        .support-assistant-chip:hover {
            transform: translateY(-1px);
            border-color: rgba(111, 149, 220, 0.8);
            background: rgba(34, 47, 70, 0.98);
        }

        .support-assistant-chip-icon {
            font-size: 15px;
        }

        .support-assistant-agent-btn {
            width: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 12px 14px;
            border: 1px solid rgba(103, 146, 228, 0.56);
            border-radius: 14px;
            background: linear-gradient(180deg, rgba(75, 118, 205, 0.26), rgba(49, 83, 155, 0.28));
            color: #f6f9ff;
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
            transition: transform 0.16s ease, border-color 0.16s ease, filter 0.16s ease;
        }

        .support-assistant-agent-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(130, 170, 240, 0.86);
            filter: brightness(1.06);
        }

        .chat-picker-panel {
            display: none;
            position: absolute !important;
            right: 0 !important;
            bottom: calc(100% + 14px) !important;
            width: min(338px, calc(100vw - 32px));
            max-height: 432px;
            border-radius: 16px;
            border: 1px solid rgba(57, 83, 126, 0.78);
            background: linear-gradient(180deg, rgba(16, 22, 33, 0.995), rgba(10, 15, 25, 0.995));
            box-shadow: 0 20px 42px rgba(0, 0, 0, 0.36);
            overflow: hidden;
            overscroll-behavior: contain;
            z-index: 120;
        }

        .chat-picker-panel.open {
            display: flex;
            flex-direction: column;
        }

        .chat-picker-topbar {
            display: flex;
            align-items: center;
            gap: 2px;
            padding: 8px 10px 0;
            flex-shrink: 0;
        }

        .chat-picker-tab {
            border: none;
            border-bottom: 2px solid transparent;
            background: transparent;
            color: #93a8c8;
            padding: 11px 10px 9px;
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
            transition: color 0.16s ease, border-color 0.16s ease;
        }

        .chat-picker-tab.active {
            color: #9dc1ff;
            border-bottom-color: #5f8fe8;
        }

        .chat-picker-close {
            margin-left: auto;
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 10px;
            background: rgba(22, 31, 46, 0.92);
            color: #c6d6ef;
            cursor: pointer;
        }

        .chat-picker-search-row {
            padding: 8px 10px 0;
            flex-shrink: 0;
        }

        .chat-picker-search {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 9px 11px;
            border-radius: 12px;
            background: rgba(19, 28, 42, 0.98);
            border: 1px solid rgba(54, 77, 115, 0.72);
            color: #8ea4c5;
        }

        .chat-picker-search-input {
            flex: 1;
            min-width: 0;
            border: none;
            background: transparent;
            color: #eff5ff;
            font-size: 13px;
            outline: none;
        }

        .chat-picker-search-input::placeholder {
            color: #7f94b5;
        }

        .chat-picker-sync-note {
            padding: 8px 12px 0;
            font-size: 12px;
            line-height: 1.45;
            flex-shrink: 0;
        }

        .chat-picker-sync-note {
            color: #9dc1ff;
            text-align: center;
        }

        .chat-picker-dock-row {
            display: flex;
            gap: 6px;
            padding: 8px 10px 10px;
            overflow-x: auto;
            overscroll-behavior-x: contain;
            scrollbar-width: thin;
            flex-shrink: 0;
            border-top: 1px solid rgba(43, 59, 86, 0.8);
            background: rgba(11, 16, 26, 0.88);
        }

        .chat-picker-dock-row::-webkit-scrollbar {
            height: 6px;
        }

        .chat-picker-dock-btn {
            border: 1px solid rgba(64, 87, 126, 0.76);
            background: rgba(20, 28, 42, 0.94);
            color: #e7effc;
            border-radius: 12px;
            cursor: pointer;
            transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
            width: 40px;
            height: 40px;
            min-width: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        .chat-picker-dock-btn:hover,
        .chat-picker-manage-item:hover {
            transform: translateY(-1px);
            border-color: rgba(108, 146, 217, 0.86);
            background: rgba(28, 40, 59, 0.98);
        }

        .chat-picker-dock-btn.active {
            border-color: rgba(104, 144, 221, 0.88);
            background: rgba(37, 53, 80, 0.98);
            color: #ffffff;
        }

        .chat-picker-dock-btn:disabled {
            opacity: 0.42;
            cursor: default;
        }

        .chat-picker-dock-cover,
        .chat-picker-dock-icon {
            width: 26px;
            height: 26px;
            border-radius: 8px;
            object-fit: cover;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(42, 58, 84, 0.96);
            font-size: 15px;
        }

        .chat-picker-dock-btn.icon {
            margin-left: auto;
        }

        .chat-picker-scope-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px 10px;
            overflow-x: auto;
            overscroll-behavior-x: contain;
            scrollbar-width: none;
            flex-shrink: 0;
            border-top: 1px solid rgba(43, 59, 86, 0.8);
            background: rgba(11, 16, 26, 0.88);
        }

        .chat-picker-scope-row::-webkit-scrollbar {
            display: none;
        }

        .chat-picker-scope-btn {
            border: 1px solid rgba(64, 87, 126, 0.76);
            background: rgba(20, 28, 42, 0.94);
            color: #e7effc;
            border-radius: 999px;
            cursor: pointer;
            transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
            min-height: 36px;
            padding: 0 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
            font-size: 12px;
            font-weight: 800;
            flex-shrink: 0;
        }

        .chat-picker-scope-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(108, 146, 217, 0.86);
            background: rgba(28, 40, 59, 0.98);
        }

        .chat-picker-scope-btn.active {
            border-color: rgba(104, 144, 221, 0.88);
            background: rgba(37, 53, 80, 0.98);
            color: #ffffff;
        }

        .chat-picker-scope-btn:disabled {
            opacity: 0.46;
            cursor: default;
        }

        .chat-picker-scope-btn.icon {
            width: 36px;
            min-width: 36px;
            padding: 0;
            margin-left: auto;
        }

        .chat-picker-manage-menu {
            display: grid;
            gap: 8px;
            padding: 8px 10px 0;
            flex-shrink: 0;
        }

        .chat-picker-manage-item {
            border: 1px solid rgba(64, 87, 126, 0.76);
            background: rgba(20, 28, 42, 0.94);
            color: #e7effc;
            border-radius: 12px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 11px 12px;
            font-size: 12px;
            font-weight: 700;
        }

        .chat-picker-body {
            flex: 1 1 auto;
            min-height: 0;
            max-height: 302px;
            overflow-y: auto;
            overscroll-behavior: contain;
            padding: 10px 10px 8px;
        }

        .chat-picker-section + .chat-picker-section {
            margin-top: 14px;
        }

        .chat-picker-section-title {
            margin-bottom: 8px;
            color: #aebfda;
            font-size: 12px;
            font-weight: 800;
            text-transform: none;
            letter-spacing: 0.02em;
        }

        .chat-picker-emoji-grid {
            display: grid;
            grid-template-columns: repeat(8, minmax(0, 1fr));
            gap: 8px;
        }

        .chat-picker-emoji-btn {
            border: none;
            border-radius: 13px;
            background: rgba(18, 28, 42, 0.92);
            color: #ffffff;
            font-size: 25px;
            line-height: 1;
            padding: 10px 0;
            cursor: pointer;
            transition: transform 0.14s ease, background-color 0.14s ease;
        }

        .chat-picker-emoji-btn:hover {
            transform: translateY(-1px);
            background: rgba(36, 52, 77, 0.98);
        }

        .chat-picker-media-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 6px;
        }

        .chat-picker-media-grid.gif-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .chat-picker-media-card {
            border: none;
            border-radius: 14px;
            padding: 0;
            background: transparent;
            color: #ffffff;
            cursor: pointer;
            text-align: left;
            transition: transform 0.16s ease, filter 0.16s ease;
        }

        .chat-picker-media-card:hover {
            transform: translateY(-1px);
            filter: brightness(1.04);
        }

        .chat-picker-media-thumb-wrap {
            position: relative;
            display: block;
            aspect-ratio: 1 / 1;
            border-radius: 12px;
            overflow: hidden;
            background: rgba(13, 19, 29, 0.96);
            border: 1px solid rgba(45, 62, 91, 0.72);
        }

        .chat-picker-media-card.sticker .chat-picker-media-thumb-wrap {
            background: rgba(14, 20, 31, 0.58);
        }

        .chat-picker-media-card.gif .chat-picker-media-thumb-wrap {
            aspect-ratio: 1 / 1.08;
            background: rgba(18, 27, 40, 0.96);
        }

        .chat-picker-media-thumb {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .chat-picker-media-card.sticker .chat-picker-media-thumb {
            object-fit: contain;
            padding: 8px;
        }

        .chat-picker-media-kind {
            position: absolute;
            right: 6px;
            bottom: 6px;
            padding: 3px 6px;
            border-radius: 999px;
            background: rgba(7, 11, 18, 0.78);
            color: #f5f8ff;
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .chat-picker-media-title,
        .chat-picker-media-caption {
            display: none;
        }

        .chat-picker-empty {
            padding: 32px 18px;
            text-align: center;
            color: #90a4c2;
            font-size: 13px;
        }

        #chatPickerPanel .chat-picker-body::-webkit-scrollbar {
            width: 8px;
        }

        #chatPickerPanel .chat-picker-body::-webkit-scrollbar-thumb {
            border-radius: 999px;
            background: rgba(104, 131, 181, 0.36);
        }

        @media (max-width: 768px) {
            .support-assistant-head {
                flex-direction: column;
            }

            .chat-picker-panel {
                left: 0 !important;
                right: 0 !important;
                width: auto !important;
                bottom: calc(100% + 10px) !important;
                max-height: min(420px, 62vh);
            }

            .chat-picker-emoji-grid {
                grid-template-columns: repeat(7, minmax(0, 1fr));
            }

            .chat-picker-media-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

            .chat-picker-media-grid.gif-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        /* ===== April 2026 UI Alignment ===== */
        .auth-page {
            padding: 32px 16px !important;
            background:
                radial-gradient(circle at 50% 0%, rgba(96, 141, 214, 0.18) 0%, rgba(16, 22, 32, 0) 36%),
                linear-gradient(180deg, #0d1119 0%, #10151f 100%) !important;
        }

        .auth-box {
            width: 100% !important;
            max-width: 560px !important;
            padding: 28px !important;
            border-radius: 24px !important;
            background: linear-gradient(180deg, #171d28 0%, #121822 100%) !important;
            border: 1px solid #2a3445 !important;
            box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34) !important;
            color-scheme: dark !important;
        }

        .auth-header {
            text-align: left !important;
            margin-bottom: 22px !important;
        }

        .auth-title {
            color: #f6f9ff !important;
            font-size: 34px !important;
            line-height: 1.05 !important;
            margin-bottom: 8px !important;
        }

        .auth-subtitle {
            color: #9aacca !important;
            font-size: 15px !important;
            line-height: 1.55 !important;
        }

        .auth-tabs {
            display: flex !important;
            gap: 4px !important;
            margin-bottom: 22px !important;
            padding: 4px !important;
            border: 1px solid #2a3547 !important;
            border-radius: 14px !important;
            background: #0f151f !important;
        }

        .auth-tab {
            border-radius: 10px !important;
            color: #c4d1e4 !important;
            font-weight: 700 !important;
            transition: background 0.2s ease, color 0.2s ease !important;
        }

        .auth-tab:hover {
            color: #ffffff !important;
            background: rgba(70, 105, 161, 0.18) !important;
        }

        .auth-tab.active {
            color: #ffffff !important;
            background: linear-gradient(180deg, #4c7bd2 0%, #3d66b5 100%) !important;
        }

        .auth-tab.active::after {
            display: none !important;
        }

        .auth-form {
            gap: 16px !important;
        }

        .auth-field-label {
            display: block !important;
            color: #dfe7f6 !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            margin-bottom: 6px !important;
        }

        .auth-register-grid {
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 14px !important;
        }

        .auth-birthday-row {
            display: grid !important;
            grid-template-columns: 86px minmax(0, 1fr) 110px !important;
            gap: 10px !important;
        }

        .auth-gender-row {
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 10px !important;
        }

        .auth-radio-option {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            min-height: 48px !important;
            padding: 0 14px !important;
            border: 1px solid #2b3850 !important;
            border-radius: 14px !important;
            background: #101722 !important;
            color: #e8eef9 !important;
        }

        .auth-radio-option input {
            accent-color: #4f7fd8 !important;
            width: 16px !important;
            height: 16px !important;
            margin: 0 !important;
        }

        .auth-page .form-input {
            color: #e8edf7 !important;
            -webkit-text-fill-color: #e8edf7 !important;
            caret-color: #ffffff !important;
        }

        .auth-page .form-input:focus {
            color: #ffffff !important;
            -webkit-text-fill-color: #ffffff !important;
            caret-color: #ffffff !important;
        }

        .form-hint,
        .auth-panel-hint {
            color: #8395b2 !important;
            font-size: 12px !important;
            line-height: 1.45 !important;
        }

        .auth-panel-hint {
            margin-top: -2px !important;
        }

        #loginForm .btn,
        #registerForm .btn {
            width: 100% !important;
            min-height: 48px !important;
            border-radius: 14px !important;
            font-size: 15px !important;
        }

        .password-toggle {
            color: #8ea2c4 !important;
        }

        .password-toggle:hover {
            background: rgba(142, 162, 196, 0.12) !important;
            color: #ffffff !important;
        }

        .header {
            padding-bottom: 0 !important;
            min-height: 48px !important;
        }

        .nav {
            gap: 18px !important;
        }

        .logo.logo-empty {
            width: 64px !important;
            flex: 0 0 64px !important;
        }

        .search-container {
            position: relative !important;
            flex: 0 1 360px !important;
            max-width: 360px !important;
            margin: 0 auto !important;
        }

        .search-input {
            height: 34px !important;
            padding: 0 12px 0 34px !important;
            border-radius: 9px !important;
            font-size: 14px !important;
            line-height: 34px !important;
        }

        .search-btn {
            left: 10px !important;
            right: auto !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
            color: #8fa0ba !important;
            pointer-events: none !important;
        }

        .search-results {
            top: calc(100% + 8px) !important;
        }

        main.container {
            padding-top: 0 !important;
        }

        .main-content {
            padding: 0 0 18px !important;
            gap: 18px !important;
            align-items: flex-start !important;
        }

        .sidebar-left {
            top: 48px !important;
            margin-top: 0 !important;
            padding-top: 0 !important;
        }

        .menu {
            padding: 6px !important;
            border-radius: 16px !important;
        }

        .menu-item {
            min-height: 42px !important;
            padding: 0 14px !important;
            display: flex !important;
            align-items: center !important;
            gap: 12px !important;
            margin-bottom: 2px !important;
            border-radius: 10px !important;
        }

        .menu-item:last-child {
            margin-bottom: 0 !important;
        }

        .friends-container {
            padding: 18px !important;
            border-radius: 20px !important;
        }

        .friends-catalog {
            width: 100% !important;
        }

        .friends-catalog-top {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 12px !important;
            margin-bottom: 14px !important;
        }

        .friends-stat-pills {
            display: flex !important;
            gap: 8px !important;
            flex-wrap: wrap !important;
        }

        .friends-stat-pill {
            padding: 8px 12px !important;
            border-radius: 12px !important;
            border: 1px solid #394151 !important;
            background: #262c36 !important;
            color: #ccd5e6 !important;
            font-size: 14px !important;
            font-weight: 600 !important;
        }

        .friends-stat-pill.active {
            background: #343943 !important;
            color: #ffffff !important;
            border-color: #4d5665 !important;
        }

        .friends-stat-pill span {
            color: #98a6bc !important;
        }

        .friends-find-btn {
            min-height: 38px !important;
            padding: 0 18px !important;
            border-radius: 12px !important;
            border: 1px solid #e7ebf2 !important;
            background: #f3f5f8 !important;
            color: #171c24 !important;
            font-size: 14px !important;
            font-weight: 700 !important;
        }

        .friends-search-row {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            min-height: 44px !important;
            padding: 0 12px !important;
            border-radius: 12px !important;
            border: 1px solid #444d5d !important;
            background: #373d49 !important;
            margin-bottom: 16px !important;
        }

        .friends-search-icon,
        .friends-search-tools {
            color: #aebad0 !important;
            font-size: 14px !important;
        }

        .friends-search-tools {
            width: 24px !important;
            height: 24px !important;
        }

        .friends-layout.vk {
            display: grid !important;
            grid-template-columns: minmax(0, 1fr) 314px !important;
            gap: 16px !important;
        }

        .friends-main {
            background: #171b22 !important;
            border: 1px solid #2b313b !important;
            border-radius: 18px !important;
            overflow: hidden !important;
        }

        .friends-main-list {
            background: transparent !important;
        }

        .friend-vk-row {
            display: flex !important;
            align-items: center !important;
            gap: 14px !important;
            padding: 16px 20px !important;
            border-bottom: 1px solid #2b313b !important;
        }

        .friend-vk-avatar {
            width: 68px !important;
            height: 68px !important;
            border-radius: 50% !important;
            object-fit: cover !important;
        }

        .friend-vk-body {
            padding-top: 0 !important;
        }

        .friend-vk-name {
            color: #f2f6ff !important;
            font-size: 16px !important;
            line-height: 1.25 !important;
            font-weight: 600 !important;
            margin-bottom: 8px !important;
        }

        .friend-vk-links {
            gap: 16px !important;
        }

        .friend-vk-link {
            color: #69a4f4 !important;
            font-size: 14px !important;
            font-weight: 500 !important;
        }

        .friend-vk-more {
            align-self: center !important;
            margin-left: auto !important;
        }

        .friend-action-btn.ghost {
            width: 34px !important;
            height: 34px !important;
            border-radius: 50% !important;
            border: none !important;
            background: transparent !important;
            color: #9ca8bb !important;
        }

        .friend-action-btn.ghost:hover {
            background: #2e3540 !important;
            color: #ffffff !important;
        }

        .friend-context-menu {
            background: #232931 !important;
            border: 1px solid #394252 !important;
            border-radius: 14px !important;
            box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42) !important;
        }

        .friend-context-item {
            color: #edf2fc !important;
            font-size: 14px !important;
        }

        .friend-context-item:hover {
            background: #313946 !important;
        }

        .friends-side {
            min-width: 0 !important;
        }

        .friends-side-menu,
        .friends-side-card {
            background: #1e2229 !important;
            border: 1px solid #353d49 !important;
            border-radius: 16px !important;
            overflow: hidden !important;
            margin-bottom: 14px !important;
        }

        .friends-side-menu-header {
            padding: 14px 16px !important;
            background: #2a2f36 !important;
            border-bottom: 1px solid #373f4a !important;
            color: #eff3fb !important;
        }

        .friends-side-menu-link {
            padding: 12px 16px !important;
            font-size: 15px !important;
            color: #edf2fc !important;
        }

        .friends-side-menu-link:hover {
            background: #2d333d !important;
        }

        .friends-side-card {
            padding: 14px !important;
        }

        .friends-side-title {
            color: #f2f6ff !important;
            font-size: 16px !important;
            font-weight: 700 !important;
            margin-bottom: 10px !important;
        }

        .suggestions-list {
            gap: 6px !important;
        }

        .suggestion-row {
            padding: 8px 2px !important;
            border-radius: 12px !important;
        }

        .suggestion-avatar {
            width: 48px !important;
            height: 48px !important;
        }

        .suggestion-name {
            font-size: 14px !important;
            color: #f2f6ff !important;
        }

        .suggestion-meta {
            font-size: 13px !important;
            color: #9aa8bf !important;
        }

        .suggestion-add-btn {
            width: 32px !important;
            height: 32px !important;
            border-radius: 10px !important;
            color: #69a4f4 !important;
        }

        .suggestions-show-all {
            min-height: 40px !important;
            border-radius: 12px !important;
            border: 1px solid #4a515c !important;
            background: #373c44 !important;
            color: #f1f4fb !important;
            font-size: 14px !important;
        }

        .calls-container {
            position: relative !important;
            overflow: hidden !important;
            border-radius: 20px !important;
        }

        .calls-header {
            padding: 18px 22px !important;
            border-bottom: 1px solid #293241 !important;
        }

        .calls-title {
            font-size: 20px !important;
            font-weight: 700 !important;
            color: #eef3fe !important;
        }

        .call-history-list {
            padding: 0 !important;
        }

        .call-item {
            padding: 16px 22px !important;
            border-bottom: 1px solid #293241 !important;
            background: transparent !important;
        }

        .call-item:hover {
            background: #1b2330 !important;
        }

        .call-avatar {
            width: 56px !important;
            height: 56px !important;
            border-radius: 50% !important;
            object-fit: cover !important;
        }

        .call-user-name {
            font-size: 15px !important;
            font-weight: 600 !important;
            color: #eef3fe !important;
        }

        .call-time,
        .call-details {
            color: #94a4bd !important;
            font-size: 13px !important;
        }

        .call-modal-overlay {
            background: rgba(8, 11, 17, 0.76) !important;
            backdrop-filter: blur(8px) !important;
        }

        .call-modal {
            position: relative !important;
            width: min(920px, 100%) !important;
            border-radius: 22px !important;
            background: linear-gradient(180deg, #171d27 0%, #121821 100%) !important;
            border: 1px solid #283246 !important;
            box-shadow: 0 28px 60px rgba(0, 0, 0, 0.46) !important;
        }

        .call-header {
            display: flex !important;
            align-items: flex-start !important;
            justify-content: space-between !important;
            gap: 14px !important;
            padding: 16px 18px !important;
            border-bottom: 1px solid #263141 !important;
            background: rgba(16, 21, 30, 0.92) !important;
        }

        .call-header-meta {
            display: flex !important;
            flex-direction: column !important;
            gap: 4px !important;
        }

        .call-header-actions {
            display: flex !important;
            gap: 8px !important;
        }

        .call-header-action {
            width: 36px !important;
            height: 36px !important;
            border-radius: 11px !important;
            border: 1px solid #314056 !important;
            background: #1a2230 !important;
            color: #dbe7ff !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .call-header-action:hover {
            background: #243247 !important;
            color: #ffffff !important;
        }

        .call-title {
            color: #f2f6ff !important;
            font-size: 16px !important;
            font-weight: 700 !important;
        }

        .call-subtitle,
        .call-status {
            color: #98aac5 !important;
            font-size: 13px !important;
        }

        .call-user-info {
            padding: 20px 20px 12px !important;
            gap: 10px !important;
        }

        .call-user-avatar {
            width: 88px !important;
            height: 88px !important;
            border: 2px solid #46678f !important;
            box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22) !important;
        }

        .call-user-name {
            color: #f4f8ff !important;
            font-size: 24px !important;
            font-weight: 700 !important;
        }

        .call-timer {
            color: #79a5ff !important;
            font-size: 18px !important;
            letter-spacing: 0.08em !important;
            margin: 2px 0 0 !important;
        }

        .video-call-container {
            min-height: 360px !important;
            height: 380px !important;
            margin: 0 20px 18px !important;
            border-radius: 18px !important;
            border: 1px solid #293241 !important;
            background: #0c1119 !important;
        }

        .video-call-grid {
            gap: 10px !important;
        }

        .video-call-item {
            background: #0f141d !important;
            border-radius: 16px !important;
        }

        .video-call-item.small {
            right: 16px !important;
            bottom: 16px !important;
            width: 168px !important;
            height: 112px !important;
            border: 1px solid #5c7cab !important;
            border-radius: 16px !important;
            box-shadow: 0 16px 28px rgba(0, 0, 0, 0.34) !important;
        }

        .video-call-placeholder {
            background: radial-gradient(circle at 50% 0%, #2b4670 0%, #162238 100%) !important;
            color: #edf3ff !important;
        }

        .screen-share-container {
            background: #0b1017 !important;
        }

        .participant-info {
            background: rgba(10, 14, 21, 0.74) !important;
            color: #ecf2ff !important;
            border: 1px solid rgba(113, 145, 198, 0.22) !important;
        }

        .call-controls {
            padding: 16px 20px 20px !important;
            gap: 12px !important;
            border-top: 1px solid #263141 !important;
            background: linear-gradient(180deg, #131a24 0%, #101620 100%) !important;
        }

        .call-control-btn {
            width: 54px !important;
            height: 54px !important;
            border-radius: 16px !important;
            border: 1px solid #314056 !important;
            background: #1d2634 !important;
            color: #dce8ff !important;
            transition: transform 0.16s ease, background 0.16s ease !important;
        }

        .call-control-btn:hover {
            transform: translateY(-1px) !important;
            background: #243246 !important;
        }

        .call-control-btn.accept {
            background: linear-gradient(180deg, #3f9d65 0%, #2d7a4a 100%) !important;
            border-color: #4db977 !important;
        }

        .call-control-btn.reject,
        .call-control-btn.end {
            background: linear-gradient(180deg, #a24050 0%, #7f2c3c 100%) !important;
            border-color: #bb5668 !important;
        }

        .call-control-btn.video.active,
        .call-control-btn.screen.active,
        .call-control-btn.menu.active {
            background: #355b95 !important;
            border-color: #5d84c0 !important;
            color: #ffffff !important;
        }

        .call-control-btn.inactive {
            background: #4a2c32 !important;
            border-color: #6e3d47 !important;
            color: #ffdce1 !important;
        }

        .call-settings-menu {
            position: absolute !important;
            right: 20px !important;
            bottom: 94px !important;
            width: 236px !important;
            padding: 8px !important;
            border-radius: 16px !important;
            border: 1px solid #314056 !important;
            background: #171e2a !important;
            box-shadow: 0 20px 36px rgba(0, 0, 0, 0.4) !important;
            flex-direction: column !important;
            gap: 4px !important;
        }

        .call-settings-item {
            width: 100% !important;
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            padding: 11px 12px !important;
            border: none !important;
            border-radius: 12px !important;
            background: transparent !important;
            color: #e8eef9 !important;
            text-align: left !important;
            font-size: 14px !important;
        }

        .call-settings-item:hover {
            background: #253247 !important;
        }

        .incoming-call-notification {
            width: 330px !important;
            border-radius: 18px !important;
            background: linear-gradient(180deg, #171d27 0%, #121821 100%) !important;
            border: 1px solid #2a3547 !important;
            box-shadow: 0 22px 42px rgba(0, 0, 0, 0.42) !important;
        }

        .notification-header {
            padding: 14px 16px !important;
            background: linear-gradient(180deg, #223554 0%, #1a2941 100%) !important;
            border-bottom: 1px solid #314056 !important;
        }

        .notification-content {
            padding: 16px !important;
        }

        .notification-user-name {
            color: #f1f5fd !important;
        }

        .notification-call-type {
            color: #94a7c4 !important;
        }

        .notification-btn {
            min-height: 42px !important;
            border-radius: 12px !important;
            font-size: 14px !important;
            font-weight: 700 !important;
        }

        .notification-btn.accept {
            background: linear-gradient(180deg, #3f9d65 0%, #2d7a4a 100%) !important;
        }

        .notification-btn.reject {
            background: linear-gradient(180deg, #a24050 0%, #7f2c3c 100%) !important;
        }

        .minimized-call-dock {
            position: fixed !important;
            right: 24px !important;
            bottom: 24px !important;
            z-index: 3600 !important;
            display: none;
            align-items: center !important;
            gap: 12px !important;
            min-width: 290px !important;
            max-width: min(360px, calc(100vw - 32px)) !important;
            padding: 10px 12px !important;
            border-radius: 18px !important;
            border: 1px solid #31405a !important;
            background: linear-gradient(180deg, #171d28 0%, #111722 100%) !important;
            box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42) !important;
        }

        .minimized-call-main {
            flex: 1 !important;
            min-width: 0 !important;
            border: none !important;
            background: transparent !important;
            color: inherit !important;
            display: flex !important;
            align-items: center !important;
            gap: 12px !important;
            text-align: left !important;
        }

        .minimized-call-avatar {
            width: 46px !important;
            height: 46px !important;
            border-radius: 50% !important;
            border: 1px solid #4e6790 !important;
            object-fit: cover !important;
            flex-shrink: 0 !important;
        }

        .minimized-call-text {
            min-width: 0 !important;
        }

        .minimized-call-name {
            color: #f0f5ff !important;
            font-size: 14px !important;
            font-weight: 700 !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        .minimized-call-meta {
            color: #95a9c7 !important;
            font-size: 12px !important;
            margin-top: 3px !important;
        }

        .minimized-call-actions {
            display: flex !important;
            gap: 8px !important;
            flex-shrink: 0 !important;
        }

        .minimized-call-btn {
            width: 38px !important;
            height: 38px !important;
            border-radius: 12px !important;
            border: 1px solid #314056 !important;
            background: #1b2433 !important;
            color: #e0e9fb !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .minimized-call-btn:hover {
            background: #243247 !important;
        }

        .minimized-call-btn.end {
            background: linear-gradient(180deg, #9a4050 0%, #7b2c3b 100%) !important;
            border-color: #b35668 !important;
            color: #ffffff !important;
        }

        @media (max-width: 900px) {
            .friends-layout.vk {
                grid-template-columns: 1fr !important;
            }

            .auth-register-grid {
                grid-template-columns: 1fr !important;
            }

            .auth-birthday-row {
                grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
            }
        }

        @media (max-width: 768px) {
            .logo.logo-empty {
                display: none !important;
            }

            .search-container {
                flex: 1 1 auto !important;
                max-width: none !important;
                margin: 0 !important;
            }

            .sidebar-left {
                top: 0 !important;
            }

            .call-modal {
                border-radius: 18px !important;
            }

            .video-call-container {
                height: 300px !important;
                margin: 0 14px 14px !important;
            }

            .call-controls {
                padding: 14px !important;
                gap: 10px !important;
                flex-wrap: wrap !important;
            }

            .call-settings-menu {
                right: 14px !important;
                left: 14px !important;
                width: auto !important;
                bottom: 86px !important;
            }

            .incoming-call-notification {
                right: 12px !important;
                left: 12px !important;
                width: auto !important;
                top: auto !important;
                bottom: 76px !important;
            }

            .minimized-call-dock {
                right: 12px !important;
                left: 12px !important;
                bottom: 78px !important;
                min-width: 0 !important;
                max-width: none !important;
            }
        }

        .call-item .call-header {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 12px !important;
            padding: 0 !important;
            background: transparent !important;
            border: none !important;
        }

        .call-item .call-user-name {
            color: #eef3fe !important;
            font-size: 15px !important;
            font-weight: 600 !important;
        }

        .call-modal .call-header {
            display: flex !important;
            align-items: flex-start !important;
            justify-content: space-between !important;
            gap: 14px !important;
            padding: 16px 18px !important;
            border-bottom: 1px solid #263141 !important;
            background: rgba(16, 21, 30, 0.92) !important;
        }

        .call-modal .call-title {
            color: #f2f6ff !important;
            font-size: 16px !important;
            font-weight: 700 !important;
        }

        .call-modal .call-subtitle {
            color: #98aac5 !important;
            font-size: 13px !important;
        }

        .call-user-info .call-user-name {
            color: #f4f8ff !important;
            font-size: 24px !important;
            font-weight: 700 !important;
        }

        .auth-header {
            text-align: center !important;
        }

        .auth-title {
            margin-bottom: 0 !important;
        }

        .auth-subtitle,
        .auth-panel-hint {
            display: none !important;
        }

        .auth-birthday-row {
            grid-template-columns: 108px minmax(0, 1fr) 110px !important;
        }

        .header {
            overflow: visible !important;
        }

        .search-container {
            z-index: 1102 !important;
        }

        .search-results {
            z-index: 1205 !important;
        }

        .form-input:focus,
        .search-input:focus,
        textarea:focus,
        input:focus,
        select:focus {
            background: #101722 !important;
            color: #e8edf7 !important;
        }

        input:-webkit-autofill,
        input:-webkit-autofill:hover,
        input:-webkit-autofill:focus,
        textarea:-webkit-autofill,
        textarea:-webkit-autofill:hover,
        textarea:-webkit-autofill:focus,
        select:-webkit-autofill,
        select:-webkit-autofill:hover,
        select:-webkit-autofill:focus {
            -webkit-text-fill-color: #e8edf7 !important;
            -webkit-box-shadow: 0 0 0 1000px #101722 inset !important;
            box-shadow: 0 0 0 1000px #101722 inset !important;
            border: 1px solid #2a374b !important;
            transition: background-color 9999s ease-out 0s !important;
        }

        .auth-box {
            padding: 34px 24px 26px !important;
        }

        .auth-header {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            min-height: 50px !important;
            margin-bottom: 18px !important;
        }

        .auth-title {
            width: 100% !important;
            text-align: center !important;
            font-size: 28px !important;
            line-height: 1.12 !important;
            letter-spacing: 0.01em !important;
            margin: 0 !important;
        }

        .auth-tabs {
            margin-top: 0 !important;
            margin-bottom: 18px !important;
        }

        @media (max-width: 480px) {
            .auth-box {
                padding: 28px 18px 22px !important;
            }

            .auth-header {
                min-height: 44px !important;
                margin-bottom: 16px !important;
            }

            .auth-title {
                font-size: 24px !important;
            }
        }

        .dialogs-section-title {
            padding: 10px 14px !important;
            font-size: 12px !important;
            font-weight: 700 !important;
            letter-spacing: 0.04em !important;
            text-transform: uppercase !important;
            color: #8fa2c7 !important;
            border-bottom: 1px solid #263246 !important;
            background: rgba(18, 24, 34, 0.94) !important;
        }

        #editProfileModal .modal {
            max-width: 640px !important;
            border-radius: 22px !important;
            border: 1px solid #304057 !important;
            background: linear-gradient(180deg, #171e2a 0%, #111722 100%) !important;
            box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45) !important;
            color: #e8eef9 !important;
            color-scheme: dark !important;
        }

        #editProfileModal .modal-header {
            padding: 16px 18px !important;
            border-bottom: 1px solid #283549 !important;
            background: rgba(14, 20, 29, 0.92) !important;
        }

        #editProfileModal .modal-title,
        #editProfileModal .modal-section-title,
        #editProfileModal .form-group label {
            color: #f4f8ff !important;
        }

        #editProfileModal .modal-close {
            color: #9aacca !important;
        }

        #editProfileModal .modal-close:hover {
            background: rgba(83, 110, 154, 0.16) !important;
            color: #ffffff !important;
        }

        #editProfileModal .modal-content {
            padding: 18px !important;
        }

        #editProfileModal .modal-section {
            margin-bottom: 18px !important;
        }

        #editProfileModal .modal-section-title {
            border-bottom: 1px solid #2b3850 !important;
            padding-bottom: 8px !important;
        }

        #editProfileModal .form-input,
        #editProfileModal textarea.form-input,
        #editProfileModal select.form-input {
            background: #101722 !important;
            border: 1px solid #2a374b !important;
            color: #e8edf7 !important;
            -webkit-text-fill-color: #e8edf7 !important;
            caret-color: #ffffff !important;
        }

        #editProfileModal .form-input:focus,
        #editProfileModal textarea.form-input:focus,
        #editProfileModal select.form-input:focus {
            background: #101722 !important;
            border-color: #4f6f9f !important;
            box-shadow: 0 0 0 2px rgba(79, 111, 159, 0.25) !important;
            color: #ffffff !important;
            -webkit-text-fill-color: #ffffff !important;
        }

        #editProfileModal .form-input::placeholder,
        #editProfileModal textarea.form-input::placeholder {
            color: #8d9db5 !important;
        }

        #editProfileModal select.form-input option {
            background: #101722 !important;
            color: #e8edf7 !important;
        }

        #editProfileModal small,
        #editProfileModal small[style],
        #editProfileModal .upload-loading p {
            color: #8a9bb7 !important;
        }

        #editProfileModal .file-upload-btn {
            background: linear-gradient(180deg, #4c7cd2 0%, #3d66b5 100%) !important;
            border: 1px solid #5f87d6 !important;
            color: #f5f9ff !important;
            border-radius: 10px !important;
            box-shadow: 0 10px 20px rgba(30, 50, 88, 0.28) !important;
        }

        #editProfileModal .cover-preview {
            border: 1px solid #2a374b !important;
            background-color: #101722 !important;
        }

        #editProfileModal .avatar-preview {
            border-color: #476793 !important;
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32) !important;
        }

        #editProfileModal .call-settings {
            padding: 14px !important;
            border: 1px solid #2f3e55 !important;
            border-radius: 16px !important;
            background: linear-gradient(180deg, #16202d 0%, #111823 100%) !important;
            box-shadow: inset 0 1px 0 rgba(143, 178, 226, 0.06) !important;
        }

        #editProfileModal .call-setting-item {
            min-height: 44px !important;
            padding: 10px 0 !important;
            border-bottom: 1px solid #253245 !important;
        }

        #editProfileModal .call-setting-item:last-child {
            border-bottom: none !important;
            padding-bottom: 0 !important;
        }

        #editProfileModal .call-setting-label {
            color: #dfe8f8 !important;
            font-size: 14px !important;
        }

        #editProfileModal .slider {
            background: #334257 !important;
        }

        #editProfileModal .slider:before {
            background: #f4f8ff !important;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28) !important;
        }

        #editProfileModal input:checked + .slider {
            background: linear-gradient(180deg, #69cc82 0%, #4fb567 100%) !important;
        }

        #editProfileModal input:focus + .slider {
            box-shadow: 0 0 0 3px rgba(104, 202, 130, 0.18) !important;
        }

        #editProfileModal .btn-secondary {
            background: #293244 !important;
            color: #d7e2f4 !important;
            border: 1px solid #39485f !important;
        }

        .header,
        .header .container,
        .header .nav,
        .user-menu.header-account {
            overflow: visible !important;
        }

        .user-menu.header-account {
            position: relative !important;
            flex: 0 0 auto !important;
            gap: 0 !important;
        }

        .header-account-trigger {
            min-height: 36px !important;
            min-width: 48px !important;
            padding: 4px 8px 4px 4px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 7px !important;
            border: 1px solid rgba(53, 69, 95, 0.88) !important;
            border-radius: 10px !important;
            background: linear-gradient(180deg, rgba(22, 29, 41, 0.98) 0%, rgba(16, 22, 32, 0.98) 100%) !important;
            color: #f4f8ff !important;
            box-shadow: none !important;
        }

        .header-account-trigger:hover,
        .header-account.is-open .header-account-trigger {
            border-color: #4a638a !important;
            background: linear-gradient(180deg, rgba(30, 40, 57, 0.98) 0%, rgba(18, 25, 36, 0.98) 100%) !important;
        }

        .header-account-trigger-avatar {
            width: 28px !important;
            height: 28px !important;
            border-radius: 50% !important;
            object-fit: cover !important;
            border: 1px solid #6f88b0 !important;
            flex-shrink: 0 !important;
        }

        .header-account-trigger-name {
            display: none !important;
        }

        .header-account-trigger-caret {
            color: #91a5c7 !important;
            font-size: 11px !important;
            transition: transform 0.18s ease !important;
        }

        .header-account.is-open .header-account-trigger-caret {
            transform: rotate(180deg) !important;
        }

        .header-account-dropdown {
            position: absolute !important;
            top: calc(100% + 12px) !important;
            right: 0 !important;
            width: 318px !important;
            padding: 14px !important;
            border-radius: 22px !important;
            border: 1px solid #304056 !important;
            background: linear-gradient(180deg, #1b2230 0%, #111722 100%) !important;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.44) !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            transform: translateY(8px) scale(0.98) !important;
            transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease !important;
            z-index: 1300 !important;
        }

        .header-account.is-open .header-account-dropdown {
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
            transform: translateY(0) scale(1) !important;
        }

        .header-account-summary {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            padding: 4px 4px 6px !important;
            text-align: center !important;
        }

        .header-account-summary-avatar {
            width: 72px !important;
            height: 72px !important;
            border-radius: 50% !important;
            object-fit: cover !important;
            border: 2px solid #607aa8 !important;
            box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28) !important;
        }

        .header-account-summary-name {
            margin-top: 12px !important;
            color: #f5f9ff !important;
            font-size: 20px !important;
            font-weight: 700 !important;
            line-height: 1.2 !important;
        }

        .header-account-summary-subtitle {
            margin-top: 4px !important;
            color: #93a7c5 !important;
            font-size: 13px !important;
            line-height: 1.35 !important;
        }

        .header-account-manage-btn {
            width: 100% !important;
            min-height: 42px !important;
            margin-top: 14px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 8px !important;
            border: 1px solid #34455f !important;
            border-radius: 12px !important;
            background: #1f2939 !important;
            color: #f3f7ff !important;
            font-size: 14px !important;
            font-weight: 600 !important;
        }

        .header-account-manage-btn:hover {
            background: #273448 !important;
            border-color: #49648d !important;
        }

        .header-account-divider {
            height: 1px !important;
            margin: 10px -14px 8px !important;
            background: #2a3548 !important;
        }

        .header-account-theme {
            display: flex !important;
            flex-direction: column !important;
            gap: 8px !important;
        }

        .header-account-item-theme {
            padding-bottom: 6px !important;
        }

        .header-account-theme-options {
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 8px !important;
        }

        .header-theme-option {
            min-height: 36px !important;
            padding: 0 12px !important;
            border: 1px solid #34455f !important;
            border-radius: 10px !important;
            background: #1d2736 !important;
            color: #dde7f7 !important;
            font-size: 13px !important;
            font-weight: 700 !important;
        }

        .header-theme-option:hover {
            background: #263449 !important;
            border-color: #4a6692 !important;
            color: #ffffff !important;
        }

        .header-theme-option.is-active {
            background: linear-gradient(180deg, #4d7ed6 0%, #3d67b7 100%) !important;
            border-color: #5a83cd !important;
            color: #ffffff !important;
            box-shadow: 0 10px 18px rgba(34, 55, 92, 0.28) !important;
        }

        .header-account-list {
            display: flex !important;
            flex-direction: column !important;
            gap: 2px !important;
        }

        .header-account-item {
            width: 100% !important;
            padding: 11px 12px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 12px !important;
            border: none !important;
            border-radius: 12px !important;
            background: transparent !important;
            color: #e8eef9 !important;
            text-align: left !important;
            font-size: 14px !important;
        }

        .header-account-item-main {
            min-width: 0 !important;
            display: inline-flex !important;
            align-items: center !important;
            gap: 12px !important;
        }

        .header-account-item i {
            width: 18px !important;
            text-align: center !important;
            color: #83aff3 !important;
            flex-shrink: 0 !important;
        }

        .header-account-item span {
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
        }

        .header-account-item:hover {
            background: #243247 !important;
            color: #ffffff !important;
        }

        .header-account-item:hover i {
            color: #a7c7ff !important;
        }

        .header-account-item-static {
            cursor: default !important;
        }

        .header-account-item-static:hover {
            background: rgba(36, 50, 71, 0.7) !important;
        }

        .header-account-item-value {
            margin-left: auto !important;
            color: #92a5c3 !important;
            font-size: 13px !important;
            font-weight: 600 !important;
        }

        .header-account-item.danger {
            color: #ffd5da !important;
        }

        .header-account-item.danger i {
            color: #ff8ea0 !important;
        }

        .header-account-item.danger:hover {
            background: #40242c !important;
            color: #fff2f4 !important;
        }

        @media (max-width: 768px) {
            .header-account-trigger {
                min-width: 46px !important;
                padding-right: 7px !important;
            }

            .header-account-dropdown {
                width: min(318px, calc(100vw - 18px)) !important;
                right: -2px !important;
            }
        }

        body[data-theme="light"] {
            color-scheme: light !important;
            --lt-bg: #ecf2f9;
            --lt-bg-soft: #f5f8fd;
            --lt-surface: #ffffff;
            --lt-surface-2: #f7faff;
            --lt-border: #d8e2ef;
            --lt-border-strong: #c4d3e5;
            --lt-text: #1f2b3d;
            --lt-muted: #72839c;
            --lt-accent: #4b79c6;
            --lt-accent-soft: #e7f0ff;
            --lt-accent-border: #bed0eb;
            --lt-danger: #c55567;
            background: radial-gradient(circle at 12% 0%, #ffffff 0%, #edf3fa 56%, #dce7f4 100%) !important;
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .header {
            background: rgba(255, 255, 255, 0.95) !important;
            border-bottom: 1px solid var(--lt-border) !important;
            box-shadow: 0 10px 28px rgba(110, 132, 165, 0.16) !important;
        }

        body[data-theme="light"] .sidebar-left,
        body[data-theme="light"] .menu {
            background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%) !important;
            border-color: var(--lt-border) !important;
            box-shadow: 0 16px 34px rgba(115, 136, 168, 0.12) !important;
        }

        body[data-theme="light"] .content-area,
        body[data-theme="light"] .profile-container,
        body[data-theme="light"] .profile-header,
        body[data-theme="light"] .profile-content,
        body[data-theme="light"] .profile-block,
        body[data-theme="light"] .post,
        body[data-theme="light"] .post-creator,
        body[data-theme="light"] .friends-container,
        body[data-theme="light"] .communities-container,
        body[data-theme="light"] .music-container,
        body[data-theme="light"] .messenger-container,
        body[data-theme="light"] .calls-container,
        body[data-theme="light"] .post-view-container,
        body[data-theme="light"] .community-details-container,
        body[data-theme="light"] .dialogs-sidebar,
        body[data-theme="light"] .chat-area,
        body[data-theme="light"] .chat-input-area {
            background: linear-gradient(180deg, var(--lt-surface) 0%, var(--lt-surface-2) 100%) !important;
            border-color: var(--lt-border) !important;
            box-shadow: 0 14px 32px rgba(118, 138, 168, 0.12) !important;
        }

        body[data-theme="light"] .profile-block-header,
        body[data-theme="light"] .friends-header,
        body[data-theme="light"] .communities-header,
        body[data-theme="light"] .music-header,
        body[data-theme="light"] .messenger-header,
        body[data-theme="light"] .calls-header,
        body[data-theme="light"] .community-details-header,
        body[data-theme="light"] .dialogs-section-title,
        body[data-theme="light"] .modal-header {
            background: rgba(246, 249, 253, 0.98) !important;
            border-bottom: 1px solid var(--lt-border) !important;
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .menu-item,
        body[data-theme="light"] .menu-item span,
        body[data-theme="light"] .profile-name,
        body[data-theme="light"] .profile-block-title,
        body[data-theme="light"] .post-author,
        body[data-theme="light"] .post-author-name,
        body[data-theme="light"] .post-content,
        body[data-theme="light"] .friends-title,
        body[data-theme="light"] .communities-title,
        body[data-theme="light"] .music-title,
        body[data-theme="light"] .calls-title,
        body[data-theme="light"] .chat-user-name,
        body[data-theme="light"] .comment-author,
        body[data-theme="light"] .comment-text,
        body[data-theme="light"] .modal-title,
        body[data-theme="light"] .modal-section-title,
        body[data-theme="light"] .call-setting-label {
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .menu-item i,
        body[data-theme="light"] .search-btn,
        body[data-theme="light"] .header-account-item i,
        body[data-theme="light"] .header-account-trigger-caret {
            color: #6b87b0 !important;
        }

        body[data-theme="light"] .menu-item:hover {
            background: #edf4fe !important;
            border-color: var(--lt-border-strong) !important;
        }

        body[data-theme="light"] .menu-item.active {
            background: linear-gradient(180deg, #e7f0ff 0%, #dce8fb 100%) !important;
            border-color: #bbcee9 !important;
        }

        body[data-theme="light"] .menu-item.active span,
        body[data-theme="light"] .menu-item.active i {
            color: #2f5486 !important;
        }

        body[data-theme="light"] .post-time,
        body[data-theme="light"] .comment-time,
        body[data-theme="light"] .chat-user-status,
        body[data-theme="light"] .message-time,
        body[data-theme="light"] .header-account-summary-subtitle,
        body[data-theme="light"] .header-account-item-value,
        body[data-theme="light"] .form-hint,
        body[data-theme="light"] .auth-panel-hint,
        body[data-theme="light"] small {
            color: var(--lt-muted) !important;
        }

        body[data-theme="light"] .form-input,
        body[data-theme="light"] .search-input,
        body[data-theme="light"] .dialogs-search-input,
        body[data-theme="light"] .communities-search,
        body[data-theme="light"] .music-search,
        body[data-theme="light"] .friends-search-input,
        body[data-theme="light"] .post-input,
        body[data-theme="light"] .comment-input,
        body[data-theme="light"] .chat-input,
        body[data-theme="light"] textarea,
        body[data-theme="light"] input,
        body[data-theme="light"] select {
            background: #ffffff !important;
            border: 1px solid var(--lt-border) !important;
            color: var(--lt-text) !important;
            -webkit-text-fill-color: var(--lt-text) !important;
            caret-color: #1f2b3d !important;
        }

        body[data-theme="light"] .form-input::placeholder,
        body[data-theme="light"] .search-input::placeholder,
        body[data-theme="light"] .dialogs-search-input::placeholder,
        body[data-theme="light"] .communities-search::placeholder,
        body[data-theme="light"] .music-search::placeholder,
        body[data-theme="light"] .friends-search-input::placeholder,
        body[data-theme="light"] .post-input::placeholder,
        body[data-theme="light"] .comment-input::placeholder,
        body[data-theme="light"] .chat-input::placeholder,
        body[data-theme="light"] textarea::placeholder,
        body[data-theme="light"] input::placeholder {
            color: var(--lt-muted) !important;
        }

        body[data-theme="light"] .form-input:focus,
        body[data-theme="light"] .search-input:focus,
        body[data-theme="light"] .dialogs-search-input:focus,
        body[data-theme="light"] .communities-search:focus,
        body[data-theme="light"] .music-search:focus,
        body[data-theme="light"] .friends-search-input:focus,
        body[data-theme="light"] .post-input:focus,
        body[data-theme="light"] .comment-input:focus,
        body[data-theme="light"] .chat-input:focus,
        body[data-theme="light"] textarea:focus,
        body[data-theme="light"] input:focus,
        body[data-theme="light"] select:focus {
            background: #ffffff !important;
            border-color: var(--lt-accent) !important;
            box-shadow: 0 0 0 3px rgba(75, 121, 198, 0.12) !important;
            color: var(--lt-text) !important;
            -webkit-text-fill-color: var(--lt-text) !important;
        }

        body[data-theme="light"] input:-webkit-autofill,
        body[data-theme="light"] input:-webkit-autofill:hover,
        body[data-theme="light"] input:-webkit-autofill:focus,
        body[data-theme="light"] textarea:-webkit-autofill,
        body[data-theme="light"] textarea:-webkit-autofill:hover,
        body[data-theme="light"] textarea:-webkit-autofill:focus,
        body[data-theme="light"] select:-webkit-autofill,
        body[data-theme="light"] select:-webkit-autofill:hover,
        body[data-theme="light"] select:-webkit-autofill:focus {
            -webkit-text-fill-color: var(--lt-text) !important;
            -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
            box-shadow: 0 0 0 1000px #ffffff inset !important;
            border: 1px solid var(--lt-border) !important;
        }

        body[data-theme="light"] .btn-secondary,
        body[data-theme="light"] .btn-logout,
        body[data-theme="light"] .community-btn,
        body[data-theme="light"] .friend-action-btn,
        body[data-theme="light"] .music-nav-item,
        body[data-theme="light"] .friends-nav-item,
        body[data-theme="light"] .communities-nav-item {
            background: #f4f7fc !important;
            color: var(--lt-text) !important;
            border: 1px solid var(--lt-border) !important;
        }

        body[data-theme="light"] .friends-nav-item:hover,
        body[data-theme="light"] .communities-nav-item:hover,
        body[data-theme="light"] .music-nav-item:hover {
            background: #eef4fd !important;
            border-color: var(--lt-border-strong) !important;
        }

        body[data-theme="light"] .friends-nav-item.active,
        body[data-theme="light"] .communities-nav-item.active,
        body[data-theme="light"] .music-nav-item.active {
            background: linear-gradient(180deg, #e8f1ff 0%, #dbe7fb 100%) !important;
            border-color: #bfd0ea !important;
            color: #2c4f80 !important;
        }

        body[data-theme="light"] .message-item.incoming .message-bubble {
            background: #ffffff !important;
            color: var(--lt-text) !important;
            border: 1px solid var(--lt-border) !important;
        }

        body[data-theme="light"] .message-item.outgoing .message-bubble {
            background: linear-gradient(180deg, #e8f1ff 0%, #dce9ff 100%) !important;
            color: #2b4e7e !important;
            border: 1px solid var(--lt-accent-border) !important;
        }

        body[data-theme="light"] .message-item.incoming .message-bubble.sticker,
        body[data-theme="light"] .message-item.outgoing .message-bubble.sticker,
        body[data-theme="light"] .message-item.incoming .message-bubble.gif,
        body[data-theme="light"] .message-item.outgoing .message-bubble.gif {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        body[data-theme="light"] .comments-section,
        body[data-theme="light"] .chat-input-area,
        body[data-theme="light"] .post-actions-bar,
        body[data-theme="light"] .post-info {
            border-color: var(--lt-border) !important;
        }

        body[data-theme="light"] .modal,
        body[data-theme="light"] .comments-modal-content,
        body[data-theme="light"] .call-settings-menu,
        body[data-theme="light"] .share-profile-popup,
        body[data-theme="light"] .chat-context-menu,
        body[data-theme="light"] .chat-attachment-menu,
        body[data-theme="light"] .header-account-dropdown {
            background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%) !important;
            border: 1px solid var(--lt-border) !important;
            color: var(--lt-text) !important;
            box-shadow: 0 22px 48px rgba(112, 136, 170, 0.18) !important;
        }

        body[data-theme="light"] .chat-context-item,
        body[data-theme="light"] .call-settings-item,
        body[data-theme="light"] .chat-attachment-item,
        body[data-theme="light"] .header-account-item {
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .chat-context-item:hover,
        body[data-theme="light"] .call-settings-item:hover,
        body[data-theme="light"] .chat-attachment-item:hover,
        body[data-theme="light"] .header-account-item:hover {
            background: #edf4fe !important;
            color: #24446e !important;
        }

        body[data-theme="light"] .support-assistant-panel {
            border-color: rgba(112, 145, 198, 0.26) !important;
            background: linear-gradient(180deg, #ffffff, #f7fafe) !important;
            box-shadow: 0 16px 32px rgba(130, 152, 185, 0.16) !important;
        }

        body[data-theme="light"] .support-assistant-title,
        body[data-theme="light"] .support-assistant-chip,
        body[data-theme="light"] .support-assistant-agent-btn {
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .support-assistant-text {
            color: var(--lt-muted) !important;
        }

        body[data-theme="light"] .support-assistant-badge {
            background: rgba(77, 126, 214, 0.12) !important;
            border-color: rgba(77, 126, 214, 0.2) !important;
            color: #3d67b7 !important;
        }

        body[data-theme="light"] .support-assistant-chip {
            background: #f5f8fd !important;
            border-color: var(--lt-border) !important;
        }

        body[data-theme="light"] .support-assistant-chip:hover {
            background: #eef4fd !important;
            border-color: var(--lt-border-strong) !important;
        }

        body[data-theme="light"] .support-assistant-agent-btn {
            border-color: rgba(77, 126, 214, 0.24) !important;
            background: linear-gradient(180deg, rgba(77, 126, 214, 0.12), rgba(77, 126, 214, 0.18)) !important;
        }

        body[data-theme="light"] .chat-picker-panel {
            border-color: var(--lt-border) !important;
            background: linear-gradient(180deg, #ffffff, #f7fafe) !important;
            box-shadow: 0 20px 40px rgba(130, 152, 185, 0.18) !important;
        }

        body[data-theme="light"] .chat-picker-tab {
            color: #7388a4 !important;
        }

        body[data-theme="light"] .chat-picker-tab.active {
            color: #3d67b7 !important;
            border-bottom-color: #4d7ed6 !important;
        }

        body[data-theme="light"] .chat-picker-close,
        body[data-theme="light"] .chat-picker-search {
            background: #f5f8fd !important;
            border-color: var(--lt-border) !important;
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .chat-picker-dock-row {
            background: #f8fbff !important;
            border-top-color: var(--lt-border) !important;
        }

        body[data-theme="light"] .chat-picker-scope-row {
            background: #f8fbff !important;
            border-top-color: var(--lt-border) !important;
        }

        body[data-theme="light"] .chat-picker-dock-btn,
        body[data-theme="light"] .chat-picker-manage-item {
            background: #ffffff !important;
            border-color: var(--lt-border) !important;
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .chat-picker-scope-btn {
            background: #ffffff !important;
            border-color: var(--lt-border) !important;
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .chat-picker-dock-btn.active {
            border-color: #87a7e3 !important;
            background: #edf4ff !important;
            color: #2850a7 !important;
        }

        body[data-theme="light"] .chat-picker-scope-btn.active {
            border-color: #87a7e3 !important;
            background: #edf4ff !important;
            color: #2850a7 !important;
        }

        body[data-theme="light"] .chat-picker-dock-btn:hover,
        body[data-theme="light"] .chat-picker-manage-item:hover {
            background: #eef4fd !important;
            border-color: var(--lt-border-strong) !important;
        }

        body[data-theme="light"] .chat-picker-scope-btn:hover {
            background: #eef4fd !important;
            border-color: var(--lt-border-strong) !important;
        }

        body[data-theme="light"] .chat-picker-dock-cover,
        body[data-theme="light"] .chat-picker-dock-icon {
            background: #eef4fd !important;
            border-color: var(--lt-border) !important;
        }

        body[data-theme="light"] .chat-picker-media-card.sticker .chat-picker-media-thumb-wrap,
        body[data-theme="light"] .chat-picker-media-card.gif .chat-picker-media-thumb-wrap,
        body[data-theme="light"] .chat-picker-media-thumb-wrap {
            background: #f2f6fc !important;
            border-color: var(--lt-border) !important;
        }

        body[data-theme="light"] .chat-picker-media-kind {
            background: rgba(255, 255, 255, 0.88) !important;
            color: #2850a7 !important;
        }

        body[data-theme="light"] .chat-picker-media-caption,
        body[data-theme="light"] .chat-picker-sync-note {
            color: var(--lt-muted) !important;
        }

        body[data-theme="light"] .chat-picker-search-input,
        body[data-theme="light"] .chat-picker-note,
        body[data-theme="light"] .chat-picker-section-title,
        body[data-theme="light"] .chat-picker-empty {
            color: var(--lt-muted) !important;
        }

        body[data-theme="light"] .chat-picker-search-input::placeholder {
            color: #8a9bb2 !important;
        }

        body[data-theme="light"] .chat-picker-emoji-btn {
            background: #f5f8fd !important;
        }

        body[data-theme="light"] .chat-picker-emoji-btn:hover {
            background: #eef4fd !important;
        }

        body[data-theme="light"] .header-account-trigger {
            border: 1px solid var(--lt-border) !important;
            background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%) !important;
            color: var(--lt-text) !important;
            box-shadow: 0 8px 18px rgba(124, 146, 180, 0.12) !important;
        }

        body[data-theme="light"] .header-account-trigger:hover,
        body[data-theme="light"] .header-account.is-open .header-account-trigger {
            border-color: var(--lt-border-strong) !important;
            background: linear-gradient(180deg, #f7faff 0%, #edf3fb 100%) !important;
        }

        body[data-theme="light"] .header-account-trigger-avatar,
        body[data-theme="light"] .header-account-summary-avatar {
            border-color: #c8d5e7 !important;
        }

        body[data-theme="light"] .header-account-summary-name,
        body[data-theme="light"] .header-account-item-value,
        body[data-theme="light"] .header-account-item,
        body[data-theme="light"] .header-account-manage-btn {
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .header-account-manage-btn {
            background: #f3f7fc !important;
            border-color: var(--lt-border) !important;
        }

        body[data-theme="light"] .header-account-manage-btn:hover {
            background: #eaf1fb !important;
            border-color: var(--lt-border-strong) !important;
        }

        body[data-theme="light"] .header-account-divider {
            background: var(--lt-border) !important;
        }

        body[data-theme="light"] .header-theme-option {
            background: #f3f7fc !important;
            border-color: var(--lt-border) !important;
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .header-theme-option:hover {
            background: #eaf1fb !important;
            border-color: var(--lt-border-strong) !important;
        }

        body[data-theme="light"] .header-theme-option.is-active {
            background: linear-gradient(180deg, #4d7ed6 0%, #3d67b7 100%) !important;
            border-color: #5c84cb !important;
            color: #ffffff !important;
        }

        body[data-theme="light"] .header-account-item.danger {
            color: var(--lt-danger) !important;
        }

        body[data-theme="light"] .header-account-item.danger i {
            color: #d16a79 !important;
        }

        body[data-theme="light"] .header-account-item.danger:hover {
            background: #fff1f3 !important;
            color: #a84455 !important;
        }

        body[data-theme="light"] #editProfileModal .modal {
            background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%) !important;
            border: 1px solid var(--lt-border-strong) !important;
            box-shadow: 0 26px 54px rgba(118, 141, 173, 0.2) !important;
            color: var(--lt-text) !important;
            color-scheme: light !important;
        }

        body[data-theme="light"] #editProfileModal .modal-header {
            background: rgba(246, 249, 253, 0.98) !important;
            border-bottom: 1px solid var(--lt-border) !important;
        }

        body[data-theme="light"] #editProfileModal .modal-title,
        body[data-theme="light"] #editProfileModal .modal-section-title,
        body[data-theme="light"] #editProfileModal .form-group label,
        body[data-theme="light"] #editProfileModal .call-setting-label {
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] #editProfileModal .modal-close {
            color: var(--lt-muted) !important;
        }

        body[data-theme="light"] #editProfileModal .modal-close:hover {
            background: #edf4fe !important;
            color: #24446e !important;
        }

        body[data-theme="light"] #editProfileModal .modal-section-title {
            border-bottom: 1px solid var(--lt-border) !important;
        }

        body[data-theme="light"] #editProfileModal .cover-preview {
            border-color: var(--lt-border) !important;
            background-color: #f7fafe !important;
        }

        body[data-theme="light"] #editProfileModal .avatar-preview {
            border-color: #c4d3e5 !important;
            box-shadow: 0 12px 22px rgba(124, 146, 180, 0.16) !important;
        }

        body[data-theme="light"] #editProfileModal .call-settings {
            background: linear-gradient(180deg, #ffffff 0%, #f3f7fd 100%) !important;
            border: 1px solid var(--lt-border) !important;
            box-shadow: none !important;
        }

        body[data-theme="light"] #editProfileModal .call-setting-item {
            border-bottom: 1px solid #e3eaf4 !important;
        }

        body[data-theme="light"] #editProfileModal .slider {
            background: #c8d4e5 !important;
        }

        body[data-theme="light"] #editProfileModal .slider:before {
            background: #ffffff !important;
            box-shadow: 0 2px 6px rgba(102, 122, 152, 0.24) !important;
        }

        body[data-theme="light"] #editProfileModal input:checked + .slider {
            background: linear-gradient(180deg, #66ca81 0%, #4eb568 100%) !important;
        }

        body[data-theme="light"] #editProfileModal .btn-secondary {
            background: #f4f7fc !important;
            color: var(--lt-text) !important;
            border: 1px solid var(--lt-border) !important;
        }

        .dialog-last-message.live,
        .user-list-status.live,
        .chat-user-status.live {
            color: #89b4ff !important;
        }

        .chat-user-status.online {
            color: #79dca3 !important;
        }

        .dialog-item,
        .user-list-item {
            transition: background-color 0.16s ease, border-color 0.16s ease !important;
        }

        .dialog-support-badge {
            display: inline-flex;
            align-items: center;
            margin-left: 8px;
            padding: 2px 8px;
            border-radius: 999px;
            border: 1px solid rgba(110, 154, 255, 0.32);
            background: rgba(86, 128, 233, 0.14);
            color: #9bc0ff;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.01em;
        }

        .help-center-page {
            display: flex;
            flex-direction: column;
            gap: 18px;
            color: #eef3ff;
        }

        .help-center-hero {
            display: grid;
            grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
            gap: 18px;
            padding: 26px 28px;
            border-radius: 26px;
            border: 1px solid rgba(63, 89, 132, 0.55);
            background:
                radial-gradient(circle at top right, rgba(82, 123, 213, 0.22), transparent 42%),
                linear-gradient(180deg, rgba(20, 28, 43, 0.98) 0%, rgba(15, 21, 33, 0.98) 100%);
            box-shadow: 0 22px 48px rgba(7, 11, 20, 0.34);
        }

        .help-center-kicker {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            padding: 6px 12px;
            border-radius: 999px;
            background: rgba(83, 128, 225, 0.14);
            border: 1px solid rgba(88, 132, 228, 0.26);
            color: #9fc4ff;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .help-center-hero-copy h2 {
            margin: 0 0 12px;
            font-size: clamp(28px, 4vw, 38px);
            line-height: 1.1;
            color: #f4f7ff;
        }

        .help-center-hero-copy p,
        .help-bot-caption,
        .help-owner-note {
            margin: 0;
            color: #9baecc;
            line-height: 1.7;
        }

        .help-center-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 18px;
        }

        .help-center-hero-card,
        .help-card {
            border-radius: 24px;
            border: 1px solid rgba(55, 78, 113, 0.55);
            background: linear-gradient(180deg, rgba(20, 28, 42, 0.96) 0%, rgba(13, 18, 29, 0.96) 100%);
            box-shadow: 0 18px 36px rgba(7, 11, 20, 0.24);
        }

        .help-center-hero-card {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            gap: 12px;
            padding: 22px;
        }

        .help-bot-avatar {
            width: 78px;
            height: 78px;
            border-radius: 50%;
            border: 3px solid rgba(108, 151, 241, 0.34);
            object-fit: cover;
            box-shadow: 0 16px 30px rgba(30, 59, 115, 0.24);
        }

        .help-bot-chip {
            display: inline-flex;
            align-items: center;
            padding: 6px 12px;
            border-radius: 999px;
            background: rgba(83, 128, 225, 0.16);
            color: #8fb8ff;
            font-size: 12px;
            font-weight: 700;
        }

        .help-bot-name {
            font-size: 24px;
            font-weight: 800;
            color: #f3f6ff;
        }

        .help-bot-status {
            font-size: 15px;
            color: #b2c2dc;
            line-height: 1.6;
        }

        .help-bot-ai-note {
            padding: 8px 12px;
            border-radius: 14px;
            background: rgba(84, 128, 225, 0.12);
            border: 1px solid rgba(84, 128, 225, 0.22);
            color: #9abfff;
            font-size: 13px;
            line-height: 1.6;
        }

        .help-center-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
            gap: 18px;
            align-items: start;
        }

        .help-center-main,
        .help-center-side {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .help-card {
            padding: 22px 24px;
        }

        .help-card-title {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 16px;
            color: #f4f7ff;
            font-size: 20px;
            font-weight: 800;
        }

        .help-card-title i,
        .help-side-point i {
            color: #7ea8ff;
        }

        .help-doc-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .help-doc-link {
            padding: 11px 16px;
            border-radius: 14px;
            border: 1px solid rgba(64, 88, 126, 0.62);
            background: rgba(17, 24, 37, 0.94);
            color: #d7e3fb;
            font-weight: 700;
            cursor: pointer;
            transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
        }

        .help-doc-link:hover {
            background: rgba(33, 45, 67, 0.98);
            border-color: rgba(92, 129, 191, 0.82);
            transform: translateY(-1px);
        }

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

        .help-faq-item {
            border-radius: 18px;
            border: 1px solid rgba(56, 80, 118, 0.55);
            background: rgba(13, 18, 29, 0.78);
            padding: 0 16px;
        }

        .help-faq-item summary {
            padding: 16px 0;
            cursor: pointer;
            color: #f2f6ff;
            font-weight: 700;
            list-style: none;
        }

        .help-faq-item summary::-webkit-details-marker {
            display: none;
        }

        .help-faq-item p {
            margin: 0 0 16px;
            color: #a8b8d1;
            line-height: 1.7;
        }

        .help-doc-list {
            margin: 0;
            padding-left: 22px;
            display: grid;
            gap: 12px;
            color: #d6e1f6;
            line-height: 1.7;
        }

        .help-doc-list-plain {
            list-style: disc;
        }

        .help-side-points {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .help-side-point {
            display: grid;
            grid-template-columns: 20px 1fr;
            gap: 12px;
            color: #d7e2f7;
            line-height: 1.7;
        }

        .help-owner-card .form-group {
            margin-bottom: 14px;
        }

        .help-owner-card .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #e5edfb;
            font-weight: 700;
        }

        .help-owner-card .form-input,
        .help-owner-card textarea.form-input {
            width: 100%;
            color: #ffffff !important;
            -webkit-text-fill-color: #ffffff !important;
            caret-color: #ffffff !important;
            background: rgba(12, 18, 29, 0.96);
            border: 1px solid rgba(56, 80, 118, 0.7);
        }

        .help-owner-card .form-input::placeholder,
        .help-owner-card textarea.form-input::placeholder {
            color: #8194b4;
            -webkit-text-fill-color: #8194b4;
        }

        .help-owner-card .form-input:focus,
        .help-owner-card textarea.form-input:focus {
            border-color: rgba(92, 129, 191, 0.92);
            box-shadow: 0 0 0 3px rgba(89, 130, 211, 0.18);
        }

        .help-owner-textarea {
            min-height: 110px;
            resize: vertical;
        }

        .help-owner-doc {
            min-height: 190px;
        }

        .help-owner-toolbar {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 14px;
        }

        .support-quick-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }

        .support-message-note {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
            padding: 5px 10px;
            border-radius: 999px;
            background: rgba(85, 127, 211, 0.14);
            border: 1px solid rgba(85, 127, 211, 0.22);
            color: #9ec0ff;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.01em;
        }

        .support-quick-action-btn {
            padding: 8px 12px;
            border-radius: 999px;
            border: 1px solid rgba(92, 129, 191, 0.5);
            background: rgba(18, 27, 42, 0.98);
            color: #dce8ff;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
        }

        .support-quick-action-btn:hover {
            background: rgba(41, 57, 84, 0.98);
            border-color: rgba(110, 147, 211, 0.86);
            transform: translateY(-1px);
        }

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

        .support-ticket-item {
            padding: 16px;
            border-radius: 18px;
            border: 1px solid rgba(56, 80, 118, 0.55);
            background: rgba(12, 18, 29, 0.78);
        }

        .support-ticket-head,
        .support-ticket-footer {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }

        .support-ticket-head {
            margin-bottom: 10px;
        }

        .support-ticket-user {
            font-size: 16px;
            font-weight: 800;
            color: #f2f6ff;
        }

        .support-ticket-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 8px;
        }

        .support-ticket-chip {
            padding: 4px 9px;
            border-radius: 999px;
            background: rgba(83, 128, 225, 0.16);
            border: 1px solid rgba(83, 128, 225, 0.22);
            color: #93bbff;
            font-size: 11px;
            font-weight: 700;
        }

        .support-ticket-chip.muted {
            background: rgba(94, 108, 136, 0.18);
            border-color: rgba(94, 108, 136, 0.26);
            color: #b6c4dd;
        }

        .support-ticket-chip.status {
            background: rgba(76, 195, 118, 0.14);
            border-color: rgba(76, 195, 118, 0.22);
            color: #8ee3a9;
        }

        .support-ticket-status-new .support-ticket-chip.status {
            background: rgba(96, 155, 255, 0.16);
            border-color: rgba(96, 155, 255, 0.24);
            color: #9cc2ff;
        }

        .support-ticket-status-in_progress .support-ticket-chip.status {
            background: rgba(255, 184, 71, 0.14);
            border-color: rgba(255, 184, 71, 0.24);
            color: #ffd281;
        }

        .support-ticket-status-resolved .support-ticket-chip.status {
            background: rgba(90, 200, 141, 0.14);
            border-color: rgba(90, 200, 141, 0.24);
            color: #89ddb0;
        }

        .support-ticket-time {
            color: #8fa2c3;
            font-size: 12px;
            white-space: nowrap;
        }

        .support-ticket-question {
            color: #d6e1f6;
            line-height: 1.7;
            margin-bottom: 14px;
        }

        .support-ticket-history {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 14px;
        }

        .support-ticket-history-item {
            padding: 12px 13px;
            border-radius: 14px;
            background: rgba(9, 14, 24, 0.66);
            border: 1px solid rgba(46, 66, 98, 0.52);
        }

        .support-ticket-history-user {
            border-color: rgba(79, 131, 221, 0.32);
        }

        .support-ticket-history-bot {
            border-color: rgba(85, 127, 211, 0.28);
        }

        .support-ticket-history-agent {
            border-color: rgba(90, 196, 142, 0.28);
        }

        .support-ticket-history-headline {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 8px;
        }

        .support-ticket-history-author {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            color: #eef4ff;
            font-size: 13px;
            font-weight: 800;
        }

        .support-ticket-history-badge {
            padding: 3px 8px;
            border-radius: 999px;
            background: rgba(84, 129, 214, 0.14);
            border: 1px solid rgba(84, 129, 214, 0.24);
            color: #9dc1ff;
            font-size: 10px;
            font-weight: 700;
        }

        .support-ticket-history-time {
            color: #8598b7;
            font-size: 11px;
            white-space: nowrap;
        }

        .support-ticket-history-text {
            color: #d9e4f7;
            line-height: 1.65;
        }

        .support-ticket-history-reason {
            margin-top: 8px;
            color: #ffcf85;
            font-size: 12px;
            line-height: 1.55;
        }

        .support-ticket-manager {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 14px;
        }

        .support-ticket-form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .support-ticket-manager .form-group {
            margin-bottom: 0;
        }

        .support-ticket-manager .form-group label {
            display: block;
            margin-bottom: 7px;
            color: #e7effd;
            font-weight: 700;
        }

        .support-ticket-textarea {
            min-height: 88px;
            resize: vertical;
        }

        .support-ticket-links,
        .support-ticket-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }

        .support-ticket-link {
            color: #9cc0ff;
            font-weight: 700;
            text-decoration: none;
        }

        .support-ticket-link:hover {
            text-decoration: underline;
        }

        .support-tickets-empty {
            padding: 20px !important;
        }

        #remoteAudio {
            display: none;
        }

        @media (max-width: 1100px) {
            .help-center-hero,
            .help-center-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .help-center-hero,
            .help-card {
                padding: 18px;
                border-radius: 20px;
            }

            .help-center-actions,
            .help-doc-nav {
                flex-direction: column;
            }

            .support-ticket-form-grid {
                grid-template-columns: 1fr;
            }

            .help-doc-link,
            .help-center-actions .btn {
                width: 100%;
            }
        }

        body[data-theme="light"] .dialog-support-badge {
            background: rgba(77, 126, 214, 0.12) !important;
            border-color: rgba(77, 126, 214, 0.24) !important;
            color: #3d67b7 !important;
        }

        body[data-theme="light"] .help-center-page {
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .help-center-hero,
        body[data-theme="light"] .help-center-hero-card,
        body[data-theme="light"] .help-card,
        body[data-theme="light"] .help-faq-item {
            background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%) !important;
            border-color: var(--lt-border-strong) !important;
            box-shadow: 0 18px 34px rgba(116, 141, 173, 0.16) !important;
        }

        body[data-theme="light"] .help-center-kicker,
        body[data-theme="light"] .help-bot-chip {
            background: rgba(77, 126, 214, 0.12) !important;
            border-color: rgba(77, 126, 214, 0.2) !important;
            color: #3d67b7 !important;
        }

        body[data-theme="light"] .help-center-hero-copy h2,
        body[data-theme="light"] .help-bot-name,
        body[data-theme="light"] .help-card-title,
        body[data-theme="light"] .help-owner-card .form-group label,
        body[data-theme="light"] .help-faq-item summary {
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .help-bot-ai-note {
            background: rgba(77, 126, 214, 0.12) !important;
            border-color: rgba(77, 126, 214, 0.2) !important;
            color: #3d67b7 !important;
        }

        body[data-theme="light"] .help-center-hero-copy p,
        body[data-theme="light"] .help-bot-status,
        body[data-theme="light"] .help-bot-caption,
        body[data-theme="light"] .help-owner-note,
        body[data-theme="light"] .help-faq-item p,
        body[data-theme="light"] .help-side-point,
        body[data-theme="light"] .help-doc-list {
            color: var(--lt-muted) !important;
        }

        body[data-theme="light"] .help-doc-link {
            background: #f5f8fd !important;
            border-color: var(--lt-border) !important;
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .help-doc-link:hover {
            background: #edf4fe !important;
            border-color: var(--lt-border-strong) !important;
        }

        body[data-theme="light"] .support-quick-action-btn {
            background: #f5f8fd !important;
            border-color: var(--lt-border) !important;
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .support-message-note {
            background: rgba(77, 126, 214, 0.12) !important;
            border-color: rgba(77, 126, 214, 0.18) !important;
            color: #3d67b7 !important;
        }

        body[data-theme="light"] .support-quick-action-btn:hover {
            background: #edf4fe !important;
            border-color: var(--lt-border-strong) !important;
        }

        body[data-theme="light"] .support-ticket-item {
            background: #f9fbff !important;
            border-color: var(--lt-border) !important;
        }

        body[data-theme="light"] .support-ticket-history-item {
            background: #ffffff !important;
            border-color: var(--lt-border) !important;
        }

        body[data-theme="light"] .support-ticket-user,
        body[data-theme="light"] .support-ticket-question {
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .support-ticket-history-author,
        body[data-theme="light"] .support-ticket-history-text,
        body[data-theme="light"] .support-ticket-manager .form-group label {
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .support-ticket-time {
            color: var(--lt-muted) !important;
        }

        body[data-theme="light"] .support-ticket-history-time {
            color: var(--lt-muted) !important;
        }

        body[data-theme="light"] .support-ticket-history-badge {
            background: rgba(77, 126, 214, 0.12) !important;
            border-color: rgba(77, 126, 214, 0.18) !important;
            color: #3d67b7 !important;
        }

        body[data-theme="light"] .support-ticket-history-reason {
            color: #b06d13 !important;
        }

        body[data-theme="light"] .support-ticket-chip {
            background: rgba(77, 126, 214, 0.12) !important;
            border-color: rgba(77, 126, 214, 0.2) !important;
            color: #3d67b7 !important;
        }

        body[data-theme="light"] .support-ticket-chip.muted {
            background: #f0f4fa !important;
            border-color: var(--lt-border) !important;
            color: #7388a4 !important;
        }

        body[data-theme="light"] .support-ticket-link {
            color: #3d67b7 !important;
        }

        body[data-theme="light"] .help-owner-card .form-input,
        body[data-theme="light"] .help-owner-card textarea.form-input {
            background: #ffffff !important;
            border-color: var(--lt-border) !important;
            color: var(--lt-text) !important;
            -webkit-text-fill-color: var(--lt-text) !important;
            caret-color: var(--lt-text) !important;
        }

        body[data-theme="light"] .help-owner-card .form-input::placeholder,
        body[data-theme="light"] .help-owner-card textarea.form-input::placeholder {
            color: #8a9bb2 !important;
            -webkit-text-fill-color: #8a9bb2 !important;
        }

        .dialog-last-message {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .dialog-last-message-text {
            flex: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .dialog-message-status,
        .message-status {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .dialog-message-status {
            flex-shrink: 0;
            font-size: 11px;
            color: #7c8ea8;
        }

        .message-meta {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .message-item.outgoing .message-meta {
            justify-content: flex-end;
        }

        .message-status {
            font-size: 12px;
            color: #7c8ea8;
        }

        .message-status.status-sent,
        .dialog-message-status.status-sent {
            color: #7c8ea8;
        }

        .message-status.status-delivered,
        .dialog-message-status.status-delivered {
            color: #92a3bc;
        }

        .message-status.status-read,
        .dialog-message-status.status-read {
            color: #73adff;
        }

        body[data-theme="light"] .message-status.status-sent,
        body[data-theme="light"] .dialog-message-status.status-sent {
            color: #7f90a6;
        }

        body[data-theme="light"] .message-status.status-delivered,
        body[data-theme="light"] .dialog-message-status.status-delivered {
            color: #677b98;
        }

        body[data-theme="light"] .message-status.status-read,
        body[data-theme="light"] .dialog-message-status.status-read {
            color: #4d87db;
        }

        .message-item {
            position: relative;
        }

        .message-head-row {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 4px;
        }

        .message-head-row.outgoing {
            flex-direction: row-reverse;
        }

        .message-flag-row {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .message-flag-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 9px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            background: rgba(35, 48, 70, 0.92);
            border: 1px solid rgba(66, 90, 132, 0.72);
            color: #d9e6fb;
        }

        .message-flag-badge.important {
            color: #ffe28a;
            border-color: rgba(176, 136, 44, 0.72);
        }

        .message-more-btn {
            width: 28px;
            height: 28px;
            border: none;
            border-radius: 999px;
            background: transparent;
            color: #d6e0f2;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background-color 0.16s ease, color 0.16s ease;
            flex-shrink: 0;
        }

        .message-more-btn:hover {
            background: rgba(42, 56, 82, 0.98);
        }

        .message-hover-actions {
            position: absolute;
            top: 50%;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px;
            border-radius: 999px;
            border: 1px solid rgba(58, 77, 108, 0.72);
            background: rgba(28, 33, 43, 0.96);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.16s ease, transform 0.16s ease;
            z-index: 3;
        }

        .message-hover-actions.outgoing {
            right: -42px;
            transform: translate(8px, -50%);
        }

        .message-hover-actions.incoming {
            left: -42px;
            transform: translate(-8px, -50%);
        }

        .message-item:hover .message-hover-actions,
        .message-item.context-open .message-hover-actions {
            opacity: 1;
            pointer-events: auto;
        }

        .message-item:hover .message-hover-actions.outgoing,
        .message-item.context-open .message-hover-actions.outgoing {
            transform: translate(0, -50%);
        }

        .message-item:hover .message-hover-actions.incoming,
        .message-item.context-open .message-hover-actions.incoming {
            transform: translate(0, -50%);
        }

        .message-quick-btn {
            width: 28px;
            height: 28px;
            border: none;
            border-radius: 999px;
            background: transparent;
            color: #cfe0f7;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background-color 0.16s ease, color 0.16s ease;
        }

        .message-quick-btn:hover {
            background: rgba(42, 56, 82, 0.98);
        }

        .message-reference-card {
            position: relative;
            margin-bottom: 6px;
            padding: 8px 10px 8px 12px;
            border-radius: 14px;
            background: rgba(18, 26, 40, 0.7);
            border: 1px solid rgba(58, 77, 109, 0.62);
            overflow: hidden;
        }

        .message-reference-card::before {
            content: '';
            position: absolute;
            top: 9px;
            bottom: 9px;
            left: 0;
            width: 3px;
            border-radius: 999px;
            background: #6fa0ff;
        }

        .message-reference-card.forward::before {
            background: #72d4b5;
        }

        .message-reference-card.reply {
            padding: 0 0 0 12px;
            border: none;
            border-radius: 0;
            background: transparent;
        }

        .message-reference-card.reply::before {
            top: 1px;
            bottom: 1px;
            left: 0;
            width: 2px;
            background: #6fa0ff;
        }

        .message-reference-title {
            font-size: 11px;
            font-weight: 800;
            color: #9fc1ff;
            margin-bottom: 3px;
        }

        .message-reference-card.forward .message-reference-title {
            color: #8de3ca;
        }

        .message-reference-card.reply .message-reference-title {
            margin-bottom: 1px;
        }

        .message-reference-text {
            font-size: 12px;
            line-height: 1.35;
            color: #dce7f8;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .message-reactions {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 6px;
        }

        .message-reaction-pill {
            border: 1px solid rgba(67, 90, 130, 0.74);
            background: rgba(24, 34, 51, 0.95);
            color: #eef4ff;
            border-radius: 999px;
            padding: 4px 9px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
        }

        .message-reaction-pill:hover {
            transform: translateY(-1px);
            border-color: rgba(112, 150, 219, 0.9);
        }

        .message-reaction-pill.active {
            background: rgba(48, 73, 120, 0.98);
            border-color: rgba(120, 165, 243, 0.96);
        }

        .message-reaction-emoji {
            font-size: 15px;
            line-height: 1;
        }

        .message-reaction-count {
            font-size: 12px;
            font-weight: 700;
            line-height: 1;
        }

        .message-item.selected .message-bubble,
        .message-item.selected .message-media.gif,
        .message-item.selected .message-media.sticker,
        .message-item.selected .message-media.video {
            box-shadow: 0 0 0 2px rgba(116, 166, 255, 0.78), 0 0 18px rgba(66, 120, 210, 0.28);
        }

        .message-context-menu {
            position: fixed;
            min-width: 260px;
            max-width: min(320px, calc(100vw - 24px));
            border-radius: 18px;
            border: 1px solid rgba(57, 77, 109, 0.82);
            background: linear-gradient(180deg, rgba(33, 38, 47, 0.985), rgba(22, 27, 36, 0.985));
            box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45);
            z-index: 1400;
            padding: 8px;
            display: none;
            color: #edf3ff;
            backdrop-filter: blur(12px);
        }

        .message-context-menu.open {
            display: block;
        }

        .message-context-reactions {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 4px 2px 10px;
            border-bottom: 1px solid rgba(53, 69, 96, 0.8);
            margin-bottom: 8px;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .message-context-reactions::-webkit-scrollbar {
            display: none;
        }

        .message-context-reaction-btn {
            width: 38px;
            height: 38px;
            border: 1px solid rgba(70, 93, 132, 0.74);
            background: rgba(39, 50, 68, 0.98);
            border-radius: 999px;
            cursor: pointer;
            font-size: 20px;
            line-height: 1;
            transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
            flex-shrink: 0;
        }

        .message-context-reaction-btn:hover,
        .message-context-reaction-btn.active {
            transform: translateY(-1px);
            border-color: rgba(115, 154, 226, 0.92);
            background: rgba(56, 74, 104, 0.98);
        }

        .message-context-actions {
            display: grid;
            gap: 2px;
        }

        .message-context-item {
            width: 100%;
            border: none;
            background: transparent;
            color: #e7edf8;
            display: flex;
            align-items: center;
            gap: 10px;
            text-align: left;
            border-radius: 12px;
            padding: 10px 12px;
            cursor: pointer;
            transition: background-color 0.16s ease, color 0.16s ease;
            font-size: 14px;
        }

        .message-context-item i {
            width: 16px;
            text-align: center;
            flex-shrink: 0;
        }

        .message-context-item span {
            flex: 1;
        }

        .message-context-disclosure {
            color: #9eafc8;
            font-size: 11px;
            flex-shrink: 0;
        }

        .message-context-item:hover {
            background: rgba(48, 58, 76, 0.96);
        }

        .message-context-item.danger {
            color: #ff9a9a;
        }

        .message-context-item.danger:hover {
            background: rgba(95, 32, 37, 0.46);
        }

        .message-draft-meta {
            display: none;
            margin-bottom: 10px;
        }

        .message-draft-card {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            width: 100%;
            border: 1px solid rgba(57, 79, 116, 0.72);
            border-radius: 16px;
            background: rgba(19, 28, 43, 0.94);
            padding: 10px 12px;
        }

        .message-draft-marker {
            width: 3px;
            align-self: stretch;
            border-radius: 999px;
            background: #6f9dff;
        }

        .message-draft-copy {
            flex: 1;
            min-width: 0;
        }

        .message-draft-title {
            font-size: 12px;
            font-weight: 800;
            color: #9fc0ff;
            margin-bottom: 2px;
        }

        .message-draft-text {
            font-size: 12px;
            color: #d5e1f4;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .message-draft-close {
            width: 28px;
            height: 28px;
            border: none;
            border-radius: 999px;
            background: rgba(38, 50, 72, 0.95);
            color: #dbe7fb;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .forward-message-modal {
            display: grid;
            gap: 12px;
        }

        #forwardMessageModal .modal-header {
            border-bottom-color: rgba(57, 76, 107, 0.72);
        }

        #forwardMessageModal .modal-title,
        #forwardMessageModal .modal-content,
        #forwardMessageModal .modal-close {
            color: #eef4ff;
        }

        #forwardMessageModal .modal-close:hover {
            background: rgba(39, 50, 68, 0.98);
        }

        .forward-message-search {
            width: 100%;
            border-radius: 14px;
            border: 1px solid rgba(59, 78, 108, 0.74);
            background: rgba(18, 26, 40, 0.92);
            color: #eef4ff;
            padding: 11px 13px;
            outline: none;
        }

        .forward-message-list {
            display: grid;
            gap: 8px;
            max-height: 360px;
            overflow-y: auto;
        }

        .forward-message-section + .forward-message-section {
            margin-top: 4px;
        }

        .forward-message-section-title {
            font-size: 12px;
            font-weight: 800;
            color: #9fb4d6;
            margin-bottom: 8px;
            padding-left: 2px;
        }

        .forward-message-target {
            width: 100%;
            border: 1px solid rgba(57, 76, 107, 0.72);
            background: rgba(19, 28, 42, 0.92);
            border-radius: 16px;
            padding: 10px 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            text-align: left;
            color: #edf3ff;
            cursor: pointer;
            transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
        }

        .forward-message-target:hover {
            transform: translateY(-1px);
            border-color: rgba(111, 149, 221, 0.9);
            background: rgba(27, 39, 58, 0.96);
        }

        .forward-message-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }

        .forward-message-copy {
            display: flex;
            flex-direction: column;
            min-width: 0;
            gap: 2px;
        }

        .forward-message-name {
            font-size: 14px;
            font-weight: 700;
            color: #f4f8ff;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .forward-message-subtitle {
            font-size: 12px;
            color: #97accb;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .forward-message-empty {
            padding: 28px 12px;
            text-align: center;
            color: #a8bbd8;
            font-size: 13px;
        }

        body[data-theme="light"] .message-flag-badge {
            background: #eef4fd !important;
            border-color: var(--lt-border) !important;
            color: #355786 !important;
        }

        body[data-theme="light"] .message-more-btn {
            color: #5b708f !important;
        }

        body[data-theme="light"] .message-more-btn:hover {
            background: #eef4fd !important;
        }

        body[data-theme="light"] .message-hover-actions {
            background: rgba(255, 255, 255, 0.98) !important;
            border-color: var(--lt-border) !important;
            box-shadow: 0 16px 28px rgba(120, 143, 177, 0.22) !important;
        }

        body[data-theme="light"] .message-quick-btn {
            color: #5b708f !important;
        }

        body[data-theme="light"] .message-quick-btn:hover {
            background: #eef4fd !important;
        }

        body[data-theme="light"] .message-reference-card {
            background: #f5f9ff !important;
            border-color: var(--lt-border) !important;
        }

        body[data-theme="light"] .message-reference-card.reply {
            background: transparent !important;
            border: none !important;
        }

        body[data-theme="light"] .message-reference-title {
            color: #4574bc !important;
        }

        body[data-theme="light"] .message-reference-card.forward .message-reference-title {
            color: #2f8f76 !important;
        }

        body[data-theme="light"] .message-reference-text,
        body[data-theme="light"] .forward-message-name,
        body[data-theme="light"] .message-context-item,
        body[data-theme="light"] .message-draft-text {
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .message-reaction-pill {
            background: #ffffff !important;
            border-color: var(--lt-border) !important;
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .message-reaction-pill.active {
            background: #edf4ff !important;
            border-color: #88a9e5 !important;
            color: #2f58a9 !important;
        }

        body[data-theme="light"] .message-context-menu {
            background: linear-gradient(180deg, #ffffff, #f6f9fd) !important;
            border-color: var(--lt-border-strong) !important;
            box-shadow: 0 24px 44px rgba(126, 147, 178, 0.22) !important;
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] .message-context-reactions {
            border-bottom-color: var(--lt-border) !important;
        }

        body[data-theme="light"] .message-context-reaction-btn {
            background: #ffffff !important;
            border-color: var(--lt-border) !important;
        }

        body[data-theme="light"] .message-context-reaction-btn:hover,
        body[data-theme="light"] .message-context-reaction-btn.active {
            background: #eef4fd !important;
            border-color: var(--lt-border-strong) !important;
        }

        body[data-theme="light"] .message-context-item:hover {
            background: #eef4fd !important;
        }

        body[data-theme="light"] .message-context-disclosure {
            color: #7c91af !important;
        }

        body[data-theme="light"] .message-draft-card,
        body[data-theme="light"] .forward-message-target,
        body[data-theme="light"] .forward-message-search {
            background: #ffffff !important;
            border-color: var(--lt-border) !important;
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] #forwardMessageModal .modal-title,
        body[data-theme="light"] #forwardMessageModal .modal-content,
        body[data-theme="light"] #forwardMessageModal .modal-close {
            color: var(--lt-text) !important;
        }

        body[data-theme="light"] #forwardMessageModal .modal-close:hover {
            background: #eef4fd !important;
        }

        body[data-theme="light"] .message-draft-title {
            color: #4a76c5 !important;
        }

        body[data-theme="light"] .message-draft-close {
            background: #eef4fd !important;
            color: #4f6482 !important;
        }

        body[data-theme="light"] .forward-message-subtitle {
            color: var(--lt-muted) !important;
        }

        body[data-theme="light"] .forward-message-section-title,
        body[data-theme="light"] .forward-message-empty {
            color: var(--lt-muted) !important;
        }

        @media (max-width: 768px) {
            .message-context-menu {
                min-width: 0;
                width: min(320px, calc(100vw - 20px));
            }

            .message-head-row {
                gap: 6px;
            }

            .message-more-btn {
                width: 28px;
                height: 28px;
            }
        }

        .friends-subtitle {
            margin-top: 6px;
            color: #98a6bc;
            font-size: 14px;
        }

        .friends-main-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            padding: 18px 20px;
            border-bottom: 1px solid #2b313b;
            background: linear-gradient(180deg, rgba(27, 32, 40, 0.96) 0%, rgba(23, 27, 34, 0.96) 100%);
        }

        .friends-section-title {
            color: #f2f6ff;
            font-size: 18px;
            font-weight: 700;
            line-height: 1.2;
        }

        .friends-section-subtitle {
            margin-top: 6px;
            color: #98a6bc;
            font-size: 14px;
            line-height: 1.45;
        }

        .friends-reset-filter {
            min-height: 36px;
            padding: 0 14px;
            border: 1px solid #414a59;
            border-radius: 12px;
            background: #242b35;
            color: #eef3fb;
            font-size: 13px;
            font-weight: 600;
        }

        .friends-reset-filter:hover {
            background: #303846;
        }

        .friends-side-menu-link.active {
            background: #2f3640 !important;
            color: #ffffff !important;
        }

        .friends-side-menu-link {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 12px !important;
        }

        .friends-side-menu-link strong,
        .friend-list-filter strong {
            color: #8fb7ff;
            font-weight: 700;
        }

        .friends-list-filter-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .friend-list-filter {
            width: 100%;
            min-height: 42px;
            padding: 0 14px;
            border: 1px solid #394252;
            border-radius: 12px;
            background: #222933;
            color: #edf2fc;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            text-align: left;
            font-size: 14px;
            font-weight: 600;
        }

        .friend-list-filter:hover {
            background: #2d3440;
        }

        .friend-list-filter.active {
            border-color: #5f8fe8;
            background: rgba(95, 143, 232, 0.16);
            color: #ffffff;
        }

        .friend-vk-avatar-button,
        .friend-suggestion-avatar-button {
            border: 0;
            padding: 0;
            background: transparent;
            cursor: pointer;
            display: block;
            line-height: 0;
            position: relative;
        }

        .friend-online-indicator {
            position: absolute;
            right: 4px;
            bottom: 4px;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #4bb34b;
            border: 3px solid #171b22;
        }

        .friend-name-button,
        .suggestion-name-button {
            border: 0;
            padding: 0;
            background: transparent;
            color: #f2f6ff;
            cursor: pointer;
            text-align: left;
        }

        .friend-name-button {
            font-size: 16px;
            font-weight: 600;
            line-height: 1.25;
        }

        .friend-name-button.center {
            display: inline-flex;
            justify-content: center;
            width: 100%;
            text-align: center;
        }

        .friend-name-button:hover,
        .suggestion-name-button:hover {
            color: #8fb7ff;
        }

        .friend-vk-meta {
            color: #98a6bc;
            font-size: 13px;
            line-height: 1.45;
            margin-bottom: 8px;
        }

        .friend-vk-title-row {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 4px;
        }

        .friend-birthday-chip {
            display: inline-flex;
            align-items: center;
            min-height: 22px;
            padding: 0 9px;
            border-radius: 999px;
            background: rgba(255, 188, 92, 0.16);
            color: #ffca7a;
            font-size: 12px;
            font-weight: 700;
        }

        .friend-vk-about {
            margin-bottom: 10px;
            color: #b7c2d4;
            font-size: 13px;
            line-height: 1.45;
        }

        .friend-list-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
        }

        .friend-list-badge {
            display: inline-flex;
            align-items: center;
            min-height: 24px;
            padding: 0 10px;
            border-radius: 999px;
            background: rgba(106, 164, 244, 0.14);
            color: #8fb7ff;
            font-size: 12px;
            font-weight: 700;
        }

        .suggestion-name-button {
            display: block;
            width: 100%;
            font-size: 14px;
            font-weight: 600;
        }

        .friend-request-card.outgoing {
            border-left: 3px solid #4a76c5;
        }

        .empty-state.compact {
            padding: 14px;
            min-height: 0;
        }

        .empty-state.compact p {
            margin: 0;
            color: #98a6bc;
        }

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

        .friends-birthday-item {
            width: 100%;
            border: 0;
            padding: 6px 4px;
            background: transparent;
            color: inherit;
            display: flex;
            align-items: center;
            gap: 12px;
            text-align: left;
            cursor: pointer;
            border-radius: 12px;
        }

        .friends-birthday-item:hover {
            background: rgba(143, 183, 255, 0.08);
        }

        .friends-birthday-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }

        .friends-birthday-body {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }

        .friends-birthday-name {
            color: #eef3fb;
            font-size: 14px;
            font-weight: 600;
            line-height: 1.3;
        }

        .friends-birthday-meta {
            color: #98a6bc;
            font-size: 13px;
            line-height: 1.3;
        }

        .friends-requests-preview {
            padding: 16px 18px 8px;
            border-bottom: 1px solid #2b313b;
            background: rgba(28, 34, 43, 0.92);
        }

        .friends-requests-preview-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 14px;
        }

        .friends-requests-preview-title {
            color: #eef3fb;
            font-size: 15px;
            font-weight: 700;
            line-height: 1.2;
        }

        .friends-requests-preview-subtitle {
            margin-top: 4px;
            color: #98a6bc;
            font-size: 13px;
            line-height: 1.4;
        }

        .friends-requests-preview-link {
            border: 0;
            padding: 0;
            background: transparent;
            color: #8fb7ff;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
        }

        .friends-requests-preview-link:hover {
            color: #b8d1ff;
        }

        .friends-requests-preview-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .friends-lists-modal {
            max-width: 460px !important;
        }

        .friends-lists-modal-user {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 18px;
        }

        .friends-lists-modal-avatar {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            object-fit: cover;
        }

        .friends-lists-modal-name {
            color: #f2f6ff;
            font-size: 18px;
            font-weight: 700;
        }

        .friends-lists-modal-subtitle {
            margin-top: 4px;
            color: #98a6bc;
            font-size: 14px;
        }

        .friends-lists-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .friends-list-option {
            display: flex;
            align-items: center;
            gap: 12px;
            min-height: 44px;
            padding: 0 14px;
            border: 1px solid #394252;
            border-radius: 12px;
            background: #1d2430;
            color: #eef3fb;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
        }

        .friends-list-option input {
            accent-color: #5f8fe8;
        }

        .friends-lists-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 20px;
        }

        body[data-theme="light"] .friends-subtitle,
        body[data-theme="light"] .friends-section-subtitle,
        body[data-theme="light"] .friend-vk-meta,
        body[data-theme="light"] .friend-vk-about,
        body[data-theme="light"] .friends-lists-modal-subtitle,
        body[data-theme="light"] .empty-state.compact p,
        body[data-theme="light"] .friends-birthday-meta,
        body[data-theme="light"] .friends-requests-preview-subtitle {
            color: #6d7f98;
        }

        body[data-theme="light"] .friends-main-header,
        body[data-theme="light"] .friend-list-filter,
        body[data-theme="light"] .friends-list-option,
        body[data-theme="light"] .friends-requests-preview {
            background: #ffffff;
            border-color: #d6dfec;
            color: #1f2f46;
        }

        body[data-theme="light"] .friends-section-title,
        body[data-theme="light"] .friend-name-button,
        body[data-theme="light"] .suggestion-name-button,
        body[data-theme="light"] .friends-lists-modal-name,
        body[data-theme="light"] .friends-birthday-name,
        body[data-theme="light"] .friends-requests-preview-title {
            color: #1f2f46;
        }

        body[data-theme="light"] .friends-reset-filter {
            background: #eef4fd;
            border-color: #d6dfec;
            color: #28496f;
        }

        body[data-theme="light"] .friend-list-filter.active,
        body[data-theme="light"] .friends-side-menu-link.active {
            background: #edf4ff !important;
            color: #1f4f99 !important;
            border-color: #bdd2f1;
        }

        body[data-theme="light"] .friend-list-badge {
            background: #edf4ff;
            color: #316ac5;
        }

        body[data-theme="light"] .friend-birthday-chip {
            background: #fff4dc;
            color: #c57b00;
        }

        body[data-theme="light"] .friend-online-indicator {
            border-color: #ffffff;
        }

        @media (max-width: 900px) {
            .friends-main-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .friends-lists-actions {
                flex-direction: column;
            }
        }

        .header .nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            min-height: 58px;
        }

        .header-brand {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            border: none;
            background: transparent;
            color: #f4f8ff;
            font-weight: 800;
            cursor: pointer;
            flex-shrink: 0;
        }

        .header-brand-badge {
            width: 30px;
            height: 30px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
            color: #ffffff;
            font-size: 16px;
        }

        .header-main-tools {
            min-width: 0;
            flex: 1 1 auto;
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .header-main-tools .search-container {
            max-width: 360px;
            flex: 0 1 360px;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }

        .header-player.now-playing-bar {
            position: relative !important;
            inset: auto !important;
            flex: 1 1 auto;
            min-width: 0;
            max-width: 720px;
            padding: 0 !important;
            border: none !important;
            border-radius: 0 !important;
            background: transparent !important;
            box-shadow: none !important;
            display: flex !important;
            align-items: center;
            gap: 14px;
        }

        .header-player .now-playing-info {
            min-width: 0;
            flex: 1 1 220px;
        }

        .header-player .now-playing-cover {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
        }

        .header-player .now-playing-title,
        .header-player .now-playing-artist {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .header-player .now-playing-title {
            color: #edf3ff;
            font-size: 13px;
            font-weight: 700;
        }

        .header-player .now-playing-artist {
            color: #95a8c7;
            font-size: 12px;
        }

        .header-player .now-playing-controls {
            gap: 8px;
        }

        .header-player .now-playing-btn {
            width: 32px;
            height: 32px;
            border-radius: 999px;
            border: 1px solid rgba(63, 86, 123, 0.76);
            background: rgba(24, 31, 44, 0.96);
            color: #dce7fb;
        }

        .header-player .now-playing-btn.play {
            background: linear-gradient(180deg, #4f7dca 0%, #3a63ab 100%);
            border-color: #5a87d1;
            color: #ffffff;
        }

        .header-player .now-playing-progress {
            min-width: 180px;
            flex: 1 1 220px;
        }

        .header-player .progress-bar,
        .header-player .volume-slider {
            background: rgba(255, 255, 255, 0.12);
        }

        .header-player .progress-fill,
        .header-player .volume-fill {
            background: linear-gradient(90deg, #4f7dca 0%, #7ba8ff 100%);
        }

        .header-player .progress-time,
        .header-player .now-playing-volume i {
            color: #94a8c7;
        }

        .header-player.is-empty .now-playing-artist {
            color: #6f819b;
        }

        .header-notifications {
            position: relative;
            flex-shrink: 0;
        }

        .header-notifications-trigger {
            position: relative;
            width: 36px;
            height: 36px;
            border-radius: 12px;
            border: 1px solid rgba(53, 69, 95, 0.88);
            background: linear-gradient(180deg, rgba(22, 29, 41, 0.98) 0%, rgba(16, 22, 32, 0.98) 100%);
            color: #dce7fa;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .header-notifications-trigger:hover,
        .header-notifications.is-open .header-notifications-trigger {
            border-color: #4a638a;
            background: linear-gradient(180deg, rgba(30, 40, 57, 0.98) 0%, rgba(18, 25, 36, 0.98) 100%);
        }

        .header-notifications-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #ff5c74;
            color: #ffffff;
            font-size: 10px;
            font-weight: 800;
            box-shadow: 0 8px 16px rgba(255, 92, 116, 0.28);
        }

        .header-notifications-dropdown {
            position: absolute;
            top: calc(100% + 12px);
            right: 0;
            width: min(360px, calc(100vw - 24px));
            padding: 10px;
            border-radius: 20px;
            border: 1px solid #304056;
            background: linear-gradient(180deg, #1b2230 0%, #111722 100%);
            box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateY(8px);
            transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
            z-index: 1350;
        }

        .header-notifications.is-open .header-notifications-dropdown {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(0);
        }

        .header-notifications-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 6px 6px 10px;
            color: #eef4ff;
            font-size: 14px;
            font-weight: 700;
        }

        .header-notifications-mark-btn {
            border: none;
            background: transparent;
            color: #7fb0ff;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
        }

        .header-notifications-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
            max-height: 360px;
            overflow-y: auto;
            padding-right: 2px;
        }

        .header-notification-item {
            width: 100%;
            border: 1px solid rgba(48, 67, 95, 0.68);
            background: rgba(24, 31, 44, 0.86);
            color: #edf3ff;
            border-radius: 14px;
            padding: 11px 12px;
            text-align: left;
            display: flex;
            flex-direction: column;
            gap: 4px;
            cursor: pointer;
        }

        .header-notification-item.is-unread {
            border-color: rgba(86, 127, 196, 0.9);
            background: rgba(35, 49, 73, 0.96);
        }

        .header-notification-title {
            font-size: 13px;
            font-weight: 700;
            color: #eef4ff;
        }

        .header-notification-body {
            font-size: 12px;
            line-height: 1.4;
            color: #9db0cd;
        }

        .header-notification-time,
        .header-notifications-empty {
            font-size: 11px;
            color: #8294af;
        }

        .header-notifications-empty {
            padding: 18px 8px;
            text-align: center;
        }

        .message-hover-actions {
            position: absolute;
            top: 8px;
            right: -40px;
            display: flex;
            align-items: center;
            opacity: 0;
            pointer-events: none;
            transform: translateX(8px);
            transition: opacity 0.16s ease, transform 0.16s ease;
            z-index: 4;
            padding: 0 !important;
            border: none !important;
            background: transparent !important;
            box-shadow: none !important;
        }

        .message-item:hover .message-hover-actions,
        .message-item.context-open .message-hover-actions {
            opacity: 1;
            pointer-events: auto;
            transform: translateX(0);
        }

        .message-quick-btn {
            display: none !important;
        }

        .message-more-btn {
            width: 30px;
            height: 30px;
            border-radius: 999px;
            border: 1px solid rgba(60, 80, 113, 0.78);
            background: rgba(26, 33, 45, 0.98);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
        }

        .message-more-btn:hover {
            background: rgba(38, 49, 68, 0.98);
            border-color: rgba(87, 120, 170, 0.92);
        }

        .message-bubble.playlist {
            min-width: 280px;
            max-width: min(360px, 72vw);
            cursor: pointer;
        }

        .message-playlist-card {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .message-playlist-cover {
            width: 54px;
            height: 54px;
            border-radius: 16px;
            object-fit: cover;
            flex-shrink: 0;
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
        }

        .message-playlist-meta {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .message-playlist-title {
            font-size: 14px;
            font-weight: 700;
            color: #ffffff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .message-playlist-subtitle,
        .message-playlist-stats {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.82);
        }

        .share-music-modal,
        .playlist-viewer-modal,
        .game-player-modal {
            width: min(720px, calc(100vw - 24px));
            max-height: min(84vh, 860px);
            background: linear-gradient(180deg, #1a2130 0%, #101722 100%) !important;
            border: 1px solid #304056 !important;
            color: #edf3ff;
        }

        .share-music-modal .modal-content,
        .playlist-viewer-modal .modal-content,
        .game-player-modal .modal-content {
            max-height: calc(84vh - 72px);
            overflow-y: auto;
        }

        .share-music-toolbar {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }

        .share-music-tabs {
            display: inline-flex;
            gap: 8px;
            flex-shrink: 0;
        }

        .share-music-tab {
            min-height: 36px;
            padding: 0 14px;
            border-radius: 12px;
            border: 1px solid #34455f;
            background: #1d2736;
            color: #dce7f8;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
        }

        .share-music-tab.active {
            background: linear-gradient(180deg, #4d7ed6 0%, #3d67b7 100%);
            border-color: #5a83cd;
            color: #ffffff;
        }

        .share-music-search {
            flex: 1 1 auto;
            min-width: 0;
            min-height: 40px;
            padding: 0 14px;
            border-radius: 14px;
            border: 1px solid #31435d;
            background: #121a27;
            color: #edf3ff;
        }

        .share-music-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 12px;
        }

        .share-music-card,
        .playlist-viewer-track {
            width: 100%;
            border: 1px solid #304056;
            background: rgba(23, 30, 42, 0.96);
            border-radius: 18px;
            padding: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            color: #edf3ff;
            text-align: left;
            cursor: pointer;
        }

        .share-music-card-cover,
        .playlist-viewer-track-cover {
            width: 54px;
            height: 54px;
            border-radius: 14px;
            object-fit: cover;
            flex-shrink: 0;
        }

        .share-music-card-meta,
        .playlist-viewer-track-meta {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1 1 auto;
        }

        .share-music-card-title,
        .playlist-viewer-track-title,
        .playlist-viewer-name {
            font-size: 14px;
            font-weight: 700;
            color: #f3f8ff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .share-music-card-subtitle,
        .share-music-card-extra,
        .playlist-viewer-track-artist,
        .playlist-viewer-track-duration,
        .playlist-viewer-description,
        .playlist-viewer-owner {
            font-size: 12px;
            color: #93a7c6;
        }

        .playlist-viewer-summary {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 18px;
            padding-bottom: 18px;
            border-bottom: 1px solid rgba(50, 67, 95, 0.72);
        }

        .playlist-viewer-cover {
            width: 88px;
            height: 88px;
            border-radius: 24px;
            object-fit: cover;
            flex-shrink: 0;
            box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26);
        }

        .playlist-viewer-info {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .games-container {
            background: linear-gradient(180deg, #182131 0%, #111824 100%);
            border: 1px solid #2d3c52;
            border-radius: 24px;
            box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
            overflow: hidden;
        }

        .games-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 18px 20px 0;
        }

        .games-search {
            flex: 1 1 auto;
            min-width: 0;
            min-height: 44px;
            padding: 0 16px;
            border-radius: 16px;
            border: 1px solid #31435d;
            background: #121a27;
            color: #edf3ff;
        }

        .upload-game-btn {
            min-height: 44px;
            padding: 0 16px;
            border: 1px solid #41629a;
            border-radius: 14px;
            background: linear-gradient(180deg, #4e7dcb 0%, #375fa6 100%);
            color: #ffffff;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
        }

        .games-nav {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 16px 20px;
        }

        .games-nav-item {
            min-height: 36px;
            padding: 0 14px;
            border-radius: 12px;
            border: 1px solid #34455f;
            background: #1d2736;
            color: #dce7f8;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
        }

        .games-nav-item.active {
            background: linear-gradient(180deg, #4d7ed6 0%, #3d67b7 100%);
            border-color: #5a83cd;
            color: #ffffff;
        }

        .games-list {
            padding: 0 20px 20px;
        }

        .games-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 16px;
        }

        .game-card {
            border: 1px solid #2f415b;
            border-radius: 20px;
            overflow: hidden;
            background: linear-gradient(180deg, rgba(23, 31, 44, 0.98), rgba(16, 23, 34, 0.98));
            box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
        }

        .game-card-cover {
            width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            display: block;
        }

        .game-card-body {
            padding: 14px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .game-card-title {
            color: #f3f8ff;
            font-size: 16px;
            font-weight: 800;
        }

        .game-card-author,
        .game-card-description,
        .game-card-meta {
            color: #94a8c7;
            font-size: 12px;
            line-height: 1.45;
        }

        .game-card-meta,
        .game-card-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .game-player-modal {
            width: min(960px, calc(100vw - 24px));
        }

        .game-player-meta {
            margin-bottom: 12px;
            color: #92a5c4;
            font-size: 13px;
        }

        .game-player-frame-wrap {
            border-radius: 18px;
            overflow: hidden;
            border: 1px solid #2f415b;
            background: #0f1620;
            aspect-ratio: 16 / 9;
        }

        .game-player-frame {
            width: 100%;
            height: 100%;
            border: none;
            background: #0f1620;
        }

        body[data-theme="light"] .header-player .now-playing-title,
        body[data-theme="light"] .header-brand,
        body[data-theme="light"] .header-notification-title {
            color: #21314a;
        }

        body[data-theme="light"] .header-player .now-playing-artist,
        body[data-theme="light"] .header-notification-body,
        body[data-theme="light"] .header-notification-time,
        body[data-theme="light"] .header-notifications-empty {
            color: #6f8199;
        }

        body[data-theme="light"] .header-player .now-playing-btn,
        body[data-theme="light"] .header-notifications-trigger,
        body[data-theme="light"] .message-more-btn,
        body[data-theme="light"] .share-music-tab,
        body[data-theme="light"] .games-nav-item {
            background: #ffffff !important;
            color: #29456b !important;
            border-color: #cfdbec !important;
        }

        body[data-theme="light"] .header-notifications-dropdown,
        body[data-theme="light"] .share-music-modal,
        body[data-theme="light"] .playlist-viewer-modal,
        body[data-theme="light"] .game-player-modal,
        body[data-theme="light"] .games-container {
            background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%) !important;
            border-color: #d8e2ef !important;
            color: #1f2b3d !important;
        }

        body[data-theme="light"] .header-notification-item,
        body[data-theme="light"] .share-music-card,
        body[data-theme="light"] .playlist-viewer-track,
        body[data-theme="light"] .game-card {
            background: #ffffff !important;
            border-color: #d8e2ef !important;
            color: #1f2b3d !important;
        }

        body[data-theme="light"] .share-music-search,
        body[data-theme="light"] .games-search {
            background: #ffffff !important;
            border-color: #d8e2ef !important;
            color: #1f2b3d !important;
        }

        @media (max-width: 1180px) {
            .header-player .now-playing-progress,
            .header-player .now-playing-volume {
                display: none;
            }
        }

        @media (max-width: 900px) {
            .header .nav {
                gap: 12px;
            }

            .header-main-tools {
                flex: 1 1 auto;
            }

            .header-main-tools .search-container {
                max-width: none;
                flex: 1 1 auto;
            }

            .header-player {
                display: none !important;
            }

            .message-hover-actions {
                right: -34px;
            }

            .games-header,
            .share-music-toolbar {
                flex-direction: column;
                align-items: stretch;
            }
        }

        .header .container {
            max-width: 1200px;
            width: 100%;
            padding: 0 15px;
            margin: 0 auto;
        }

        .header .nav {
            min-height: 48px;
            gap: 12px;
            flex-wrap: nowrap;
            justify-content: flex-start;
        }

        .header-brand {
            width: 36px;
            min-width: 36px;
            height: 36px;
            padding: 0 !important;
            border: none !important;
            background: transparent !important;
            box-shadow: none !important;
            justify-content: center;
            flex-shrink: 0;
        }

        .header-brand-text {
            display: none;
        }

        .header-brand-badge {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            box-shadow: none;
        }

        .header-main-tools {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 0 1 auto;
            min-width: 0;
            margin-left: 240px;
        }

        .header-main-tools .search-container {
            flex: 0 0 220px;
            max-width: 220px;
            min-width: 220px;
        }

        .header-main-tools .search-input {
            min-height: 34px;
            padding-left: 36px;
            padding-right: 14px;
            border-radius: 9px;
            border-color: rgba(111, 126, 149, 0.28);
            background: rgba(255, 255, 255, 0.05);
        }

        .header-main-tools .search-btn {
            left: 12px !important;
            right: auto !important;
            width: 18px;
            height: 18px;
            color: #8e9cb1;
        }

        .header-main-tools .header-notifications {
            flex: 0 0 auto;
        }

        .header-actions {
            flex: 0 0 auto;
            margin-left: auto;
        }

        .header-player.now-playing-bar {
            flex: 0 1 auto;
            width: auto;
            max-width: 340px;
            gap: 8px;
            cursor: pointer;
        }

        .header-player .now-playing-cover,
        .header-player .now-playing-progress,
        .header-player .now-playing-volume {
            display: none !important;
        }

        .header-player .now-playing-info {
            order: 2;
            flex: 0 1 auto;
            min-width: 0;
            max-width: 175px;
        }

        .header-player .now-playing-details {
            display: flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
        }

        .header-player .now-playing-artist,
        .header-player .now-playing-title {
            display: block;
            min-width: 0;
            max-width: 155px;
        }

        .header-player .now-playing-artist {
            order: 1;
            color: #cbd7e6;
            font-size: 13px;
        }

        .header-player .now-playing-title {
            order: 2;
            color: #eef3fb;
            font-size: 13px;
            font-weight: 500;
        }

        .header-player .now-playing-title::before {
            content: '—';
            margin-right: 6px;
            color: #6e7f97;
        }

        .header-player.is-empty .now-playing-artist {
            display: none;
        }

        .header-player.is-empty .now-playing-title::before {
            content: '';
            margin-right: 0;
        }

        .header-player .now-playing-controls {
            order: 1;
            gap: 6px;
            flex-shrink: 0;
        }

        .header-player .now-playing-btn {
            width: 28px;
            height: 28px;
            padding: 0;
            border: none;
            background: transparent !important;
            color: #cad5e4;
            box-shadow: none;
        }

        .header-player .now-playing-btn.play {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #4c6ea9 !important;
            color: #ffffff;
        }

        .header-notifications-trigger {
            width: 34px;
            min-width: 34px;
            height: 34px;
            border-radius: 50%;
        }

        .header-account-trigger {
            min-height: 34px;
            padding: 2px 8px 2px 2px;
            border-radius: 18px;
        }

        .header-account-trigger-avatar {
            width: 28px;
            height: 28px;
        }

        .game-card-file {
            color: #a7bbd7;
            font-size: 12px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .game-card-note {
            padding: 8px 10px;
            border-radius: 12px;
            background: rgba(253, 178, 92, 0.12);
            color: #ffd39c;
            font-size: 12px;
            line-height: 1.45;
        }

        .game-card-actions {
            justify-content: flex-start;
            flex-wrap: wrap;
        }

        .game-player-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 14px;
        }

        @media (max-width: 1180px) {
            .header-main-tools .search-container {
                flex-basis: 270px;
                max-width: 270px;
            }

            .header-player .now-playing-title,
            .header-player .now-playing-artist {
                max-width: 140px;
            }
        }

        @media (max-width: 900px) {
            .header-brand {
                display: none;
            }

            .header-main-tools {
                gap: 10px;
                margin-left: 0;
            }

            .header-main-tools .search-container {
                flex: 1 1 auto;
                max-width: none;
                min-width: 0;
            }

            .header-main-tools .header-notifications {
                display: none;
            }

            .header-actions {
                margin-left: auto;
            }
        }

        .game-card-badge {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            padding: 4px 8px;
            border-radius: 999px;
            background: rgba(84, 130, 215, 0.16);
            color: #aecdff;
            font-size: 11px;
            font-weight: 700;
        }

        body[data-theme="light"] .game-card-note {
            background: rgba(232, 160, 72, 0.14);
            color: #8a4f09;
        }

        html,
        body,
        .chat-messages,
        .forward-message-list,
        .music-player-panel-list,
        #chatPickerPanel .chat-picker-body {
            scrollbar-width: thin;
            scrollbar-color: rgba(90, 123, 181, 0.72) rgba(11, 18, 29, 0.88);
        }

        html::-webkit-scrollbar,
        body::-webkit-scrollbar,
        .chat-messages::-webkit-scrollbar,
        .forward-message-list::-webkit-scrollbar,
        .music-player-panel-list::-webkit-scrollbar,
        #chatPickerPanel .chat-picker-body::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        html::-webkit-scrollbar-track,
        body::-webkit-scrollbar-track,
        .chat-messages::-webkit-scrollbar-track,
        .forward-message-list::-webkit-scrollbar-track,
        .music-player-panel-list::-webkit-scrollbar-track,
        #chatPickerPanel .chat-picker-body::-webkit-scrollbar-track {
            background: rgba(11, 18, 29, 0.88);
        }

        html::-webkit-scrollbar-thumb,
        body::-webkit-scrollbar-thumb,
        .chat-messages::-webkit-scrollbar-thumb,
        .forward-message-list::-webkit-scrollbar-thumb,
        .music-player-panel-list::-webkit-scrollbar-thumb,
        #chatPickerPanel .chat-picker-body::-webkit-scrollbar-thumb {
            border-radius: 999px;
            border: 2px solid rgba(11, 18, 29, 0.88);
            background: linear-gradient(180deg, rgba(94, 137, 214, 0.92), rgba(63, 98, 164, 0.92));
        }

        .message-media-shell.video {
            position: relative;
        }

        .message-media-view-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 34px;
            height: 34px;
            border: none;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(8, 12, 19, 0.78);
            color: #ffffff;
            cursor: pointer;
            z-index: 2;
            transition: transform 0.14s ease, background-color 0.14s ease;
            backdrop-filter: blur(8px);
        }

        .message-media-view-btn:hover {
            transform: translateY(-1px);
            background: rgba(42, 73, 126, 0.92);
        }

        .chat-picker-media-card-wrap {
            position: relative;
        }

        .chat-picker-media-remove {
            position: absolute;
            top: 6px;
            right: 6px;
            z-index: 3;
            width: 24px;
            height: 24px;
            border: none;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(8, 12, 18, 0.82);
            color: #f4f8ff;
            cursor: pointer;
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
            transition: transform 0.14s ease, background-color 0.14s ease;
        }

        .chat-picker-media-remove:hover {
            transform: translateY(-1px) scale(1.03);
            background: rgba(179, 66, 66, 0.96);
        }

        .media-viewer-overlay {
            background: rgba(4, 8, 14, 0.86);
            backdrop-filter: blur(10px);
            z-index: 2400;
        }

        body.media-viewer-open {
            overflow: hidden;
        }

        .media-viewer-shell {
            width: min(1080px, calc(100vw - 36px));
            max-height: calc(100vh - 36px);
            display: flex;
            flex-direction: column;
            border-radius: 24px;
            overflow: hidden;
            background: linear-gradient(180deg, #111a26 0%, #0a1018 100%);
            border: 1px solid rgba(72, 97, 138, 0.42);
            box-shadow: 0 32px 70px rgba(0, 0, 0, 0.44);
        }

        .media-viewer-topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            padding: 16px 18px;
            border-bottom: 1px solid rgba(68, 92, 129, 0.28);
            background: rgba(10, 16, 24, 0.82);
        }

        .media-viewer-meta {
            min-width: 0;
        }

        .media-viewer-title {
            color: #f5f8ff;
            font-size: 15px;
            font-weight: 700;
            line-height: 1.35;
            word-break: break-word;
        }

        .media-viewer-subtitle,
        .media-viewer-counter {
            color: #93a8c8;
            font-size: 12px;
            line-height: 1.4;
        }

        .media-viewer-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        .media-viewer-action,
        .media-viewer-close {
            border: none;
            border-radius: 12px;
            padding: 9px 12px;
            background: rgba(20, 31, 46, 0.88);
            color: #eef3fb;
            font-size: 13px;
            text-decoration: none;
            cursor: pointer;
            transition: background-color 0.14s ease, transform 0.14s ease;
        }

        .media-viewer-close {
            width: 38px;
            height: 38px;
            padding: 0;
            border-radius: 50%;
            font-size: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .media-viewer-action:hover,
        .media-viewer-close:hover,
        .media-viewer-nav:hover {
            background: rgba(67, 103, 171, 0.92);
            transform: translateY(-1px);
        }

        .media-viewer-body {
            flex: 1;
            min-height: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 16px 18px 20px;
        }

        .media-viewer-stage {
            flex: 1;
            min-width: 0;
            min-height: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .media-viewer-image,
        .media-viewer-video {
            max-width: 100%;
            max-height: calc(100vh - 170px);
            display: block;
            border-radius: 20px;
            background: #060b11;
            box-shadow: 0 24px 44px rgba(0, 0, 0, 0.34);
        }

        .media-viewer-image.sticker {
            width: min(420px, 62vw);
            max-height: min(420px, 62vh);
            object-fit: contain;
            background: transparent;
            box-shadow: none;
        }

        .media-viewer-image.gif,
        .media-viewer-image.photo {
            object-fit: contain;
        }

        .media-viewer-video {
            width: min(960px, 100%);
        }

        .media-viewer-nav {
            width: 44px;
            height: 44px;
            border: none;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(18, 30, 45, 0.84);
            color: #ffffff;
            cursor: pointer;
            flex-shrink: 0;
            transition: background-color 0.14s ease, transform 0.14s ease;
        }

        body[data-theme="light"],
        html[data-theme="light"],
        body[data-theme="light"] .chat-messages,
        body[data-theme="light"] .forward-message-list,
        body[data-theme="light"] .music-player-panel-list,
        body[data-theme="light"] #chatPickerPanel .chat-picker-body {
            scrollbar-color: rgba(122, 148, 189, 0.9) rgba(231, 236, 244, 0.96);
        }

        html[data-theme="light"]::-webkit-scrollbar-track,
        body[data-theme="light"]::-webkit-scrollbar-track,
        body[data-theme="light"] .chat-messages::-webkit-scrollbar-track,
        body[data-theme="light"] .forward-message-list::-webkit-scrollbar-track,
        body[data-theme="light"] .music-player-panel-list::-webkit-scrollbar-track,
        body[data-theme="light"] #chatPickerPanel .chat-picker-body::-webkit-scrollbar-track {
            background: rgba(231, 236, 244, 0.96);
        }

        html[data-theme="light"]::-webkit-scrollbar-thumb,
        body[data-theme="light"]::-webkit-scrollbar-thumb,
        body[data-theme="light"] .chat-messages::-webkit-scrollbar-thumb,
        body[data-theme="light"] .forward-message-list::-webkit-scrollbar-thumb,
        body[data-theme="light"] .music-player-panel-list::-webkit-scrollbar-thumb,
        body[data-theme="light"] #chatPickerPanel .chat-picker-body::-webkit-scrollbar-thumb {
            border-color: rgba(231, 236, 244, 0.96);
            background: linear-gradient(180deg, rgba(104, 139, 206, 0.94), rgba(80, 111, 173, 0.94));
        }

        body[data-theme="light"] .message-media-view-btn,
        body[data-theme="light"] .chat-picker-media-remove {
            background: rgba(255, 255, 255, 0.92);
            color: #20324f;
        }

        body[data-theme="light"] .media-viewer-shell {
            background: linear-gradient(180deg, #ffffff 0%, #eef3fa 100%);
            border-color: rgba(156, 177, 213, 0.5);
        }

        body[data-theme="light"] .media-viewer-topbar {
            background: rgba(247, 249, 253, 0.92);
            border-bottom-color: rgba(176, 193, 219, 0.5);
        }

        body[data-theme="light"] .media-viewer-title {
            color: #1f2f49;
        }

        body[data-theme="light"] .media-viewer-subtitle,
        body[data-theme="light"] .media-viewer-counter {
            color: #61728d;
        }

        body[data-theme="light"] .media-viewer-action,
        body[data-theme="light"] .media-viewer-close,
        body[data-theme="light"] .media-viewer-nav {
            background: rgba(228, 235, 246, 0.96);
            color: #22324c;
        }

        @media (max-width: 768px) {
            .media-viewer-shell {
                width: calc(100vw - 16px);
                max-height: calc(100vh - 16px);
                border-radius: 18px;
            }

            .media-viewer-topbar {
                flex-direction: column;
                align-items: flex-start;
            }

            .media-viewer-actions {
                width: 100%;
                justify-content: space-between;
            }

            .media-viewer-body {
                padding: 12px;
                gap: 8px;
            }

            .media-viewer-nav {
                width: 38px;
                height: 38px;
            }
        }

        /* ===== Media Viewer / Chat Video Final Pass ===== */
        .likes-summary {
            display: none !important;
        }

        .message-bubble.video-bubble,
        .message-item.incoming .message-bubble.video-bubble,
        .message-item.outgoing .message-bubble.video-bubble {
            padding: 0 !important;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        .message-media-shell.video.inline-preview {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border-radius: 22px;
            background: transparent;
            cursor: zoom-in;
            box-shadow: 0 20px 38px rgba(0, 0, 0, 0.28);
        }

        .message-media.video.message-inline-video {
            width: auto !important;
            height: auto !important;
            max-width: min(320px, 62vw) !important;
            max-height: min(420px, 70vh) !important;
            border-radius: inherit;
            object-fit: cover;
            background: transparent !important;
            pointer-events: none;
            display: block;
        }

        .message-video-overlay {
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background:
                linear-gradient(180deg, rgba(6, 9, 14, 0.16), transparent 32%),
                linear-gradient(0deg, rgba(6, 9, 14, 0.34), transparent 26%);
            pointer-events: none;
        }

        .message-video-sound-toggle,
        .message-video-duration {
            position: absolute;
            z-index: 2;
            border-radius: 999px;
            backdrop-filter: blur(10px);
        }

        .message-video-sound-toggle {
            top: 10px;
            left: 10px;
            width: 34px;
            height: 34px;
            border: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(13, 18, 28, 0.64);
            color: #f5f8ff;
            cursor: pointer;
            transition: transform 0.14s ease, background-color 0.14s ease;
        }

        .message-video-sound-toggle.active,
        .message-video-sound-toggle:hover {
            background: rgba(66, 102, 170, 0.92);
        }

        .message-video-sound-toggle:hover {
            transform: translateY(-1px);
        }

        .message-video-duration {
            right: 10px;
            bottom: 10px;
            padding: 6px 10px;
            background: rgba(9, 13, 20, 0.6);
            color: #f3f7ff;
            font-size: 12px;
            font-weight: 700;
            line-height: 1;
        }

        .video-attachment-overlay {
            background: rgba(5, 10, 16, 0.8);
            backdrop-filter: blur(10px);
            z-index: 2350;
        }

        .video-attachment-modal {
            width: min(680px, calc(100vw - 32px));
            max-height: min(92vh, 760px);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            border-radius: 24px;
            border: 1px solid rgba(69, 96, 143, 0.34);
            background:
                radial-gradient(circle at top right, rgba(86, 128, 206, 0.18), transparent 30%),
                linear-gradient(180deg, #151d29 0%, #0e141d 100%);
            box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
        }

        .video-attachment-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 20px 22px;
            border-bottom: 1px solid rgba(63, 86, 124, 0.28);
        }

        .video-attachment-title {
            color: #eef4ff;
            font-size: 20px;
            font-weight: 800;
            line-height: 1.2;
        }

        .video-attachment-close {
            width: 38px;
            height: 38px;
            border: none;
            border-radius: 50%;
            background: rgba(18, 26, 40, 0.9);
            color: #f3f7ff;
            cursor: pointer;
            transition: background-color 0.14s ease, transform 0.14s ease;
        }

        .video-attachment-close:hover {
            background: rgba(58, 90, 147, 0.92);
            transform: translateY(-1px);
        }

        .video-attachment-tabs {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            border-bottom: 1px solid rgba(63, 86, 124, 0.24);
            background: rgba(11, 17, 27, 0.72);
        }

        .video-attachment-tab {
            border: none;
            background: transparent;
            color: #b9c8e2;
            padding: 16px 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: background-color 0.14s ease, color 0.14s ease;
        }

        .video-attachment-tab + .video-attachment-tab {
            border-left: 1px solid rgba(63, 86, 124, 0.18);
        }

        .video-attachment-tab.active,
        .video-attachment-tab:hover {
            color: #f5f9ff;
            background: rgba(72, 111, 182, 0.18);
        }

        .video-attachment-body {
            padding: 22px;
            flex: 1;
            min-height: 0;
            overflow-y: auto;
        }

        .video-attachment-pane {
            display: none;
        }

        .video-attachment-pane.active {
            display: flex;
            flex-direction: column;
            gap: 18px;
            min-height: 100%;
        }

        .video-upload-preview-state {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .video-upload-dropzone {
            width: 100%;
            min-height: 220px;
            padding: 22px;
            border: 1px dashed rgba(96, 124, 178, 0.48);
            border-radius: 22px;
            background:
                radial-gradient(circle at top right, rgba(82, 124, 203, 0.14), transparent 34%),
                rgba(10, 15, 24, 0.76);
            color: #dce7f8;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            text-align: center;
            cursor: pointer;
            transition: border-color 0.14s ease, transform 0.14s ease, background-color 0.14s ease;
        }

        .video-upload-dropzone:hover {
            transform: translateY(-1px);
            border-color: rgba(121, 155, 221, 0.72);
            background-color: rgba(13, 20, 31, 0.92);
        }

        .video-upload-dropzone.has-preview {
            min-height: 0;
            margin-bottom: 18px;
        }

        .video-upload-dropzone-icon {
            width: 64px;
            height: 64px;
            border-radius: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(72, 111, 182, 0.22);
            color: #9ec0ff;
            font-size: 28px;
        }

        .video-upload-dropzone-title {
            font-size: 18px;
            font-weight: 800;
            color: #eef4ff;
        }

        .video-upload-dropzone-text,
        .video-upload-preview-note {
            color: #91a7ca;
            font-size: 13px;
            line-height: 1.5;
        }

        .video-upload-preview-frame {
            overflow: hidden;
            border-radius: 22px;
            background: #060a11;
            box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
        }

        .video-preview {
            width: 100%;
            max-height: 360px;
            display: block;
            background: #05080d;
            object-fit: contain;
        }

        .video-upload-preview-note {
            margin-top: 12px;
        }

        .video-attachment-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: auto;
            padding-top: 14px;
            position: sticky;
            bottom: 0;
            background: linear-gradient(180deg, rgba(14, 20, 29, 0), rgba(14, 20, 29, 0.96) 36%);
            z-index: 2;
        }

        .media-viewer-overlay {
            background: rgba(6, 10, 16, 0.88) !important;
            backdrop-filter: blur(12px);
        }

        .media-viewer-shell {
            position: relative;
            width: min(100vw - 48px, 1320px);
            height: min(100vh - 48px, 920px);
            max-height: none;
            padding: 0;
            border: none !important;
            border-radius: 0;
            overflow: visible;
            background: transparent !important;
            box-shadow: none !important;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .media-viewer-meta-card {
            position: absolute;
            top: 0;
            right: 56px;
            z-index: 3;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            border-radius: 18px;
            border: 1px solid rgba(90, 115, 156, 0.22);
            background: rgba(12, 18, 28, 0.66);
            box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
            backdrop-filter: blur(14px);
        }

        .media-viewer-author-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }

        .media-viewer-author-copy {
            min-width: 0;
        }

        .media-viewer-author-name {
            color: #f4f8ff;
            font-size: 14px;
            font-weight: 800;
            line-height: 1.3;
        }

        .media-viewer-author-time {
            color: #9fb3d5;
            font-size: 12px;
            line-height: 1.4;
        }

        .media-viewer-body {
            width: 100%;
            height: 100%;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .media-viewer-stage {
            max-width: 100%;
            max-height: 100%;
        }

        .media-viewer-image,
        .media-viewer-video {
            width: auto;
            height: auto;
            max-width: min(92vw, 1280px);
            max-height: min(88vh, 860px);
            background: transparent !important;
            border-radius: 20px;
            box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28);
        }

        .media-viewer-image.sticker {
            width: min(420px, 68vw);
            max-height: min(420px, 68vh);
            box-shadow: none;
        }

        .media-viewer-nav,
        .media-viewer-close {
            position: absolute;
            z-index: 3;
            border: none;
            background: rgba(12, 18, 28, 0.68);
            color: #f5f9ff;
            backdrop-filter: blur(14px);
            box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
        }

        .media-viewer-close {
            top: 0;
            right: 0;
        }

        .media-viewer-nav.prev {
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
        }

        .media-viewer-nav.next {
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
        }

        .media-viewer-nav.prev:hover {
            transform: translateY(-50%) scale(1.04);
        }

        .media-viewer-nav.next:hover {
            transform: translateY(-50%) scale(1.04);
        }

        .media-viewer-close:hover {
            transform: translateY(-1px) scale(1.03);
        }

        body[data-theme="light"] .video-attachment-modal {
            border-color: rgba(133, 154, 189, 0.28);
            background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
        }

        body[data-theme="light"] .video-attachment-header,
        body[data-theme="light"] .video-attachment-tabs {
            border-color: rgba(160, 180, 208, 0.28);
        }

        body[data-theme="light"] .video-attachment-title,
        body[data-theme="light"] .video-upload-dropzone-title {
            color: #24344d;
        }

        body[data-theme="light"] .video-attachment-tab,
        body[data-theme="light"] .video-upload-dropzone-text,
        body[data-theme="light"] .video-upload-preview-note,
        body[data-theme="light"] .media-viewer-author-time {
            color: #6a7d99;
        }

        body[data-theme="light"] .video-upload-dropzone {
            border-color: rgba(125, 150, 190, 0.44);
            background: rgba(240, 245, 252, 0.92);
            color: #334866;
        }

        body[data-theme="light"] .video-upload-preview-frame,
        body[data-theme="light"] .media-viewer-meta-card,
        body[data-theme="light"] .media-viewer-nav,
        body[data-theme="light"] .media-viewer-close,
        body[data-theme="light"] .message-video-sound-toggle,
        body[data-theme="light"] .message-video-duration {
            background: rgba(248, 251, 255, 0.88);
            color: #21314a;
        }

        body[data-theme="light"] .media-viewer-author-name {
            color: #21314a;
        }

        @media (max-width: 768px) {
            .video-attachment-modal {
                width: calc(100vw - 18px);
                max-height: calc(100vh - 18px);
            }

            .video-attachment-header,
            .video-attachment-body {
                padding: 16px;
            }

            .video-attachment-tabs {
                grid-template-columns: 1fr;
            }

            .media-viewer-shell {
                width: calc(100vw - 18px);
                height: calc(100vh - 18px);
            }

            .media-viewer-meta-card {
                top: 6px;
                right: 52px;
                left: 12px;
            }

            .media-viewer-nav.prev {
                left: 4px;
            }

            .media-viewer-nav.next {
                right: 4px;
            }

            .message-media.video.message-inline-video {
                max-width: min(280px, 70vw) !important;
                max-height: 360px !important;
            }
        }

        /* ===== Sticker Preview ===== */
        .message-media.sticker {
            cursor: default;
        }

        .sticker-preview-overlay {
            background: rgba(6, 10, 16, 0.52);
            backdrop-filter: blur(8px);
            z-index: 2380;
        }

        .sticker-preview-card {
            position: relative;
            width: min(360px, calc(100vw - 28px));
            padding: 22px 20px 18px;
            border-radius: 28px;
            border: 1px solid rgba(75, 102, 145, 0.32);
            background:
                radial-gradient(circle at top right, rgba(87, 125, 198, 0.18), transparent 34%),
                linear-gradient(180deg, rgba(16, 23, 35, 0.98), rgba(10, 14, 22, 0.98));
            box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
        }

        .sticker-preview-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 50%;
            background: rgba(18, 26, 40, 0.82);
            color: #f4f8ff;
            cursor: pointer;
            transition: background-color 0.14s ease, transform 0.14s ease;
        }

        .sticker-preview-close:hover {
            background: rgba(63, 98, 164, 0.92);
            transform: translateY(-1px);
        }

        .sticker-preview-stage {
            min-height: 240px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px;
            margin-bottom: 14px;
        }

        .sticker-preview-image {
            width: min(240px, 62vw);
            height: min(240px, 62vw);
            object-fit: contain;
            display: block;
            filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.22));
        }

        .sticker-preview-copy {
            text-align: center;
            margin-bottom: 14px;
        }

        .sticker-preview-title {
            color: #f5f8ff;
            font-size: 18px;
            font-weight: 800;
            line-height: 1.25;
            margin-bottom: 4px;
        }

        .sticker-preview-subtitle {
            color: #9eb2d3;
            font-size: 13px;
            line-height: 1.45;
        }

        .sticker-preview-pack {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-top: 10px;
            padding: 5px 10px;
            border-radius: 999px;
            background: rgba(70, 108, 180, 0.16);
            color: #b8d0ff;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.03em;
            text-transform: uppercase;
        }

        .sticker-preview-actions {
            display: flex;
            justify-content: center;
            gap: 10px;
        }

        .sticker-preview-btn {
            min-width: 120px;
        }

        body[data-theme="light"] .sticker-preview-card {
            border-color: rgba(143, 166, 205, 0.26);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 246, 252, 0.98));
        }

        body[data-theme="light"] .sticker-preview-close {
            background: rgba(240, 245, 252, 0.92);
            color: #22334d;
        }

        body[data-theme="light"] .sticker-preview-title {
            color: #21314a;
        }

        body[data-theme="light"] .sticker-preview-subtitle {
            color: #6e819f;
        }

        body[data-theme="light"] .sticker-preview-pack {
            background: rgba(77, 126, 214, 0.12);
            color: #3e68b6;
        }

        @media (max-width: 640px) {
            .sticker-preview-card {
                width: calc(100vw - 20px);
                padding: 18px 16px 16px;
                border-radius: 24px;
            }

            .sticker-preview-stage {
                min-height: 200px;
            }

            .sticker-preview-actions {
                flex-direction: column;
            }

            .sticker-preview-btn {
                width: 100%;
            }
        }

        /* ===== Telegram-like Viewer Video Player ===== */
        .media-viewer-shell.video {
            width: min(100vw - 32px, 1320px);
            height: min(100vh - 32px, 920px);
        }

        .media-viewer-video-shell {
            position: relative;
            display: inline-flex;
            align-items: flex-end;
            justify-content: center;
            max-width: min(92vw, 1280px);
            max-height: min(88vh, 860px);
            border-radius: 22px;
            overflow: hidden;
            background: transparent;
            box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28);
        }

        .media-viewer-video-shell .media-viewer-video {
            width: auto !important;
            height: auto !important;
            max-width: min(92vw, 1280px) !important;
            max-height: min(88vh, 860px) !important;
            display: block;
            object-fit: contain;
            background: transparent !important;
            border-radius: 22px;
            box-shadow: none !important;
        }

        .media-viewer-video-bottom {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 18px 18px 16px;
            background: linear-gradient(180deg, rgba(5, 9, 15, 0), rgba(5, 9, 15, 0.88) 54%, rgba(5, 9, 15, 0.94));
        }

        .media-viewer-video-progress {
            position: relative;
            height: 5px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.22);
            overflow: hidden;
            cursor: pointer;
            margin-bottom: 12px;
        }

        .media-viewer-video-progress-fill {
            position: absolute;
            inset: 0 auto 0 0;
            width: 0;
            border-radius: inherit;
            background: #ffffff;
        }

        .media-viewer-video-controls-row {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 12px;
        }

        .media-viewer-video-side {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .media-viewer-video-side.right {
            justify-content: flex-end;
        }

        .media-viewer-video-btn {
            width: 34px;
            height: 34px;
            border: none;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.08);
            color: #f5f8ff;
            cursor: pointer;
            transition: background-color 0.14s ease, transform 0.14s ease;
        }

        .media-viewer-video-btn.play {
            width: 42px;
            height: 42px;
            background: rgba(255, 255, 255, 0.14);
            font-size: 16px;
        }

        .media-viewer-video-btn.active,
        .media-viewer-video-btn:hover {
            background: rgba(255, 255, 255, 0.18);
            transform: translateY(-1px);
        }

        .media-viewer-video-volume-wrap {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .media-viewer-video-volume-track {
            width: 0;
            height: 4px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.2);
            overflow: hidden;
            cursor: pointer;
            opacity: 0;
            transition: width 0.16s ease, opacity 0.16s ease;
        }

        .media-viewer-video-volume-wrap:hover .media-viewer-video-volume-track,
        .media-viewer-video-volume-track:hover,
        .media-viewer-video-volume-track:focus-within {
            width: 86px;
            opacity: 1;
        }

        .media-viewer-video-volume-fill {
            display: block;
            width: 100%;
            height: 100%;
            border-radius: inherit;
            background: #ffffff;
        }

        .media-viewer-video-time {
            color: #f4f8ff;
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0.01em;
            white-space: nowrap;
        }

        .media-viewer-video-time.muted {
            color: rgba(245, 248, 255, 0.82);
        }

        .media-viewer-video-settings {
            position: absolute;
            right: 16px;
            bottom: 92px;
            width: 220px;
            padding: 10px 0;
            border-radius: 18px;
            border: 1px solid rgba(82, 104, 142, 0.26);
            background: rgba(27, 33, 43, 0.96);
            box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(14px);
            opacity: 0;
            visibility: hidden;
            transform: translateY(8px) scale(0.98);
            transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
            z-index: 3;
        }

        .media-viewer-video-settings.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .media-viewer-video-settings-head {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0 14px 12px;
            color: #f5f8ff;
            font-size: 14px;
            font-weight: 700;
        }

        .media-viewer-video-settings-bar {
            flex: 1;
            height: 5px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.18);
            overflow: hidden;
        }

        .media-viewer-video-settings-bar span {
            display: block;
            width: 0;
            height: 100%;
            border-radius: inherit;
            background: #6fb0ff;
        }

        .media-viewer-video-settings-item {
            width: 100%;
            border: none;
            background: transparent;
            display: grid;
            grid-template-columns: 48px 1fr 18px;
            align-items: center;
            gap: 10px;
            padding: 9px 14px;
            color: #dfe9fa;
            text-align: left;
            cursor: pointer;
            transition: background-color 0.14s ease, color 0.14s ease;
        }

        .media-viewer-video-settings-item:hover,
        .media-viewer-video-settings-item.active {
            background: rgba(255, 255, 255, 0.08);
            color: #ffffff;
        }

        .media-viewer-video-settings-rate {
            font-weight: 700;
            color: #8fc0ff;
        }

        .media-viewer-video-settings-label {
            font-size: 14px;
        }

        .media-viewer-video-settings-check {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #9bc4ff;
            font-size: 12px;
        }

        body[data-theme="light"] .media-viewer-video-btn {
            background: rgba(245, 248, 252, 0.22);
            color: #24354e;
        }

        body[data-theme="light"] .media-viewer-video-btn.active,
        body[data-theme="light"] .media-viewer-video-btn:hover {
            background: rgba(245, 248, 252, 0.36);
        }

        body[data-theme="light"] .media-viewer-video-volume-track {
            background: rgba(255, 255, 255, 0.34);
        }

        body[data-theme="light"] .media-viewer-video-volume-fill {
            background: #ffffff;
        }

        body[data-theme="light"] .media-viewer-video-progress {
            background: rgba(255, 255, 255, 0.34);
        }

        body[data-theme="light"] .media-viewer-video-progress-fill {
            background: #ffffff;
        }

        body[data-theme="light"] .media-viewer-video-settings {
            border-color: rgba(156, 178, 214, 0.26);
            background: rgba(255, 255, 255, 0.96);
        }

        body[data-theme="light"] .media-viewer-video-settings-head,
        body[data-theme="light"] .media-viewer-video-settings-item {
            color: #23354f;
        }

        body[data-theme="light"] .media-viewer-video-settings-item:hover,
        body[data-theme="light"] .media-viewer-video-settings-item.active {
            background: rgba(77, 126, 214, 0.1);
        }

        body[data-theme="light"] .media-viewer-video-settings-rate,
        body[data-theme="light"] .media-viewer-video-settings-check {
            color: #4a75c7;
        }

        @media (max-width: 768px) {
            .media-viewer-video-shell .media-viewer-video {
                max-width: calc(100vw - 24px) !important;
                max-height: calc(100vh - 120px) !important;
            }

            .media-viewer-video-bottom {
                padding: 14px 12px 12px;
            }

            .media-viewer-video-controls-row {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .media-viewer-video-side.left,
            .media-viewer-video-side.right {
                justify-content: space-between;
            }

            .media-viewer-video-btn.play {
                justify-self: center;
            }

            .media-viewer-video-settings {
                right: 10px;
                bottom: 108px;
                width: min(220px, calc(100vw - 28px));
            }

            .media-viewer-video-volume-wrap:hover .media-viewer-video-volume-track,
            .media-viewer-video-volume-track:hover,
            .media-viewer-video-volume-track:focus-within {
                width: 64px;
            }
        }

        .dialog-media-sticker-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 180px;
            padding: 12px;
            border-radius: 20px;
            background: rgba(11, 17, 27, 0.46);
        }

        body[data-theme="light"] .dialog-media-sticker-wrap {
            background: rgba(240, 245, 252, 0.82);
        }

        .media-viewer-video-shell:fullscreen,
        .media-viewer-video-shell:-webkit-full-screen {
            width: 100vw !important;
            height: 100vh !important;
            max-width: none !important;
            max-height: none !important;
            border-radius: 0;
            align-items: center;
            justify-content: center;
            background: #000;
        }

        .media-viewer-video-shell:fullscreen .media-viewer-video,
        .media-viewer-video-shell:-webkit-full-screen .media-viewer-video {
            max-width: 100vw !important;
            max-height: 100vh !important;
            width: auto !important;
            height: auto !important;
            border-radius: 0;
            object-fit: contain;
        }

        .media-viewer-video-shell:fullscreen .media-viewer-video-bottom,
        .media-viewer-video-shell:-webkit-full-screen .media-viewer-video-bottom {
            padding-left: 22px;
            padding-right: 22px;
            padding-bottom: 18px;
        }
