/* ===============================================
   CIPHER — КОМПОНЕНТЫ И GLASSMORPHISM
   Кнопки, панели, элементы интерфейса
   =============================================== */

/* ========== GLASS-СТАНДАРТ ========== */
.glass-panel,
.glass-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ========== ФОРМЫ АВТОРИЗАЦИИ ========== */
#auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(
        135deg, 
        rgba(104, 155, 230, 0.3) 0%, 
        rgba(104, 155, 230, 0.5) 100%
    );
    border: 1px solid var(--primary-blue);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--trans-normal);
}

#auth-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

#auth-btn:active {
    transform: translateY(0);
}

#auth-username,
#auth-password {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-size-md);
    transition: all var(--trans-normal);
}

#auth-username:focus,
#auth-password:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 25px var(--primary-blue-glow);
}

#auth-username::placeholder,
#auth-password::placeholder {
    color: var(--text-muted);
}

/* ========== ЭЛЕМЕНТЫ ЧАТА ========== */
#send-message-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(
        135deg, 
        rgba(104, 155, 230, 0.4) 0%, 
        rgba(104, 155, 230, 0.6) 100%
    );
    border: 1px solid rgba(104, 155, 230, 0.5);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--trans-normal);
    box-shadow: 0 2px 8px rgba(104, 155, 230, 0.3);
}

#send-message-btn:hover {
    background: var(--primary-blue);
    transform: scale(1.05);
}

#search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--trans-normal);
}

#search-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all var(--trans-normal);
    margin-bottom: 6px;
}

.chat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.chat-item.active {
    background: rgba(104, 155, 230, 0.1);
    border-left-color: var(--primary-blue);
}

.chat-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 100%
    );
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.chat-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.chat-preview {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    margin-bottom: 4px;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    padding: 12px 16px 28px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.45;
    word-wrap: break-word;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.message.sent .message-content {
    background: linear-gradient(
        135deg, 
        var(--primary-blue) 0%, 
        #5a9fe0 100%
    );
    border: 1px solid rgba(104, 155, 230, 0.4);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(104, 155, 230, 0.2);
}

.message.received .message-content {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.message-time {
    position: absolute;
    bottom: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.message.sent .message-time {
    right: 14px;
}

.message.received .message-time {
    left: 14px;
}

.unread-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--primary-blue);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.online-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.online-indicator.online {
    background: var(--status-online);
    box-shadow: 0 0 8px rgba(81, 207, 102, 0.5);
}

.online-indicator.offline {
    background: #6b7280;
}

.online-indicator.away {
    background: var(--status-away);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* ========== БОКОВЫЕ ПАНЕЛИ (LEGACY — удалены, заменены glass-panel-centered) ========== */

/* ========== УНИВЕРСАЛЬНЫЕ КОМПОНЕНТЫ ========== */
#sidebar-btn-chats,
#sidebar-btn-friends,
#sidebar-btn-channels,
#sidebar-btn-music,
#sidebar-btn-settings,
#sidebar-btn-profile,
#sidebar-btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    margin: 4px auto;
}

#sidebar-btn-chats:hover,
#sidebar-btn-friends:hover,
#sidebar-btn-channels:hover,
#sidebar-btn-music:hover,
#sidebar-btn-settings:hover,
#sidebar-btn-profile:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

#sidebar-btn-chats.active,
#sidebar-btn-friends.active,
#sidebar-btn-channels.active,
#sidebar-btn-music.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

#sidebar-btn-logout:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    color: var(--text-error);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
}

.empty-state i {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.view-header {
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.view-header h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.chat-header {
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.chat-header h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    flex: 1;
}

#chat-partner-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.message-composer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.06) 100%
    );
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)) contrast(var(--glass-contrast));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 12px 24px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-toast);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    z-index: var(--z-notification);
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.info {
    background: #3b82f6;
}

.notification.success {
    background: #10b981;
}

.notification.error {
    background: #ef4444;
}

.view {
    display: none;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.view.active {
    display: flex;
}

#spotlight-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    min-width: 0;
}

#spotlight-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.spotlight-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 220px;
    padding: 10px 14px;
    border-radius: 24px;
}

.spotlight-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    margin-top: var(--space-sm);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

#spotlight-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff15;
    backdrop-filter: blur(3px);
    display: none;
    opacity: 0;
    visibility: hidden;
    z-index: var(--z-spotlight-backdrop);
}

#spotlight-backdrop.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Сброс состояния кнопок */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input[type="text"],
input[type="password"] {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: var(--text-muted);
}

/* ===============================================
   MONOLITHIC MESSENGER VIEW
   Unified chats + messages in one container
   =============================================== */

/* 1. Контейнер-Монолит */
#view-messenger {
    display: none;
    position: fixed;
    top: 100px;
    left: 50%;
    width: 800px;
    height: 795px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    flex-direction: row;
}

/* 2. Левая колонка (chats-sidebar) */
.chats-sidebar {
    width: 350px;
    height: 795px;
    min-width: 350px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.chats-sidebar .chats-column-header {
    width: 100%;
    height: 65px;
    min-height: 65px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.chats-sidebar .chats-column-header h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.chats-sidebar .chats-list-container {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
}

/* 3. Правая колонка (chat-window) */
.chat-window {
    width: 450px;
    height: 795px;
    min-width: 450px;
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
}

/* 4. Внутренние высоты */
.chat-window .messages-header {
    width: 100%;
    height: 65px;
    min-height: 65px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

/* Кнопка закрытия чата */
.chat-window .icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.chat-window .icon-btn.is-hidden {
    display: none !important;
}

.chat-window .icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.chat-window .icon-btn i {
    width: 20px;
    height: 20px;
}

.chat-window .chat-header-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.chat-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-window .chat-header-info h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Индикатор онлайна — зелёный кружок */
.chat-window .online-indicator {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.chat-window .online-indicator:not(.is-online) {
    display: none;
}

/* Container — строго 660px с !important */
.chat-window .messages-container {
    width: 100%;
    height: 660px !important;
    min-height: 660px !important;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

/* Composer — строго 70px */
.chat-window .messages-composer {
    width: 100%;
    height: 70px;
    min-height: 70px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 14px;
    align-items: center;
    flex-shrink: 0;
}

.chat-window .messages-composer input {
    flex: 1;
    height: 44px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.chat-window .messages-composer input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 5. Условие для заглушки — когда чат не выбран */
.chat-window.no-chat-selected .messages-container {
    height: 660px !important;
    min-height: 660px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-window.no-chat-selected .messages-composer {
    display: none !important;
}

/* Центрированные панели (glass-panel-centered) */
#view-profile,
#view-settings,
#view-friends,
#view-channels,
#view-music {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 540px;
    height: 795px;
    z-index: 100;
}

/* ===============================================
   GLASS PANEL CENTERED — 540x795px centered panels
   Друзья, Каналы, Профиль, Настройки, Музыка
   =============================================== */

.glass-panel-centered {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 540px;
    height: 795px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: var(--z-floating-panel);
}

.glass-panel-centered.active {
    display: flex;
    animation: panelFadeIn 0.3s ease;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.glass-panel-centered .side-panel-header {
    width: 100%;
    height: 65px;
    min-height: 65px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.glass-panel-centered .side-panel-header h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.glass-panel-centered .side-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* ===============================================
   CIPHER — UI COMPONENTS
   Glassmorphism элементы интерфейса
   =============================================== */

/* ===============================================
   AUTHENTICATION SCREEN
   =============================================== */

.auth-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a12 0%, #1a1a2e 100%);
    z-index: var(--z-auth-screen);
}

.auth-screen.is-hidden {
    display: none;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    padding: 48px 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.auth-card h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

#auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#auth-username,
#auth-password {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    transition: all 0.2s ease;
}

#auth-username:focus,
#auth-password:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(104, 155, 230, 0.5);
    box-shadow: 0 0 0 3px rgba(104, 155, 230, 0.15);
}

#auth-username::placeholder,
#auth-password::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(104, 155, 230, 0.3) 0%, rgba(104, 155, 230, 0.5) 100%);
    border: 1px solid rgba(104, 155, 230, 0.4);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

#auth-btn:hover {
    background: linear-gradient(135deg, rgba(104, 155, 230, 0.5) 0%, rgba(104, 155, 230, 0.7) 100%);
    transform: translateY(-1px);
}

#auth-btn i {
    width: 18px;
    height: 18px;
}

.auth-hint {
    margin-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ===============================================
   CHAT ITEMS (дубликат удалён — см. frame.css)
   =============================================== */

/* ===============================================
   MESSAGES (дубликат удалён — см. frame.css)
   =============================================== */

/* ===============================================
   ONLINE INDICATOR (дубликат удалён — см. frame.css)
   =============================================== */

.online-indicator.online {
    background: var(--status-online);
    box-shadow: 0 0 8px rgba(81, 207, 102, 0.5);
}

.online-indicator.offline {
    background: #6b7280;
}

.online-indicator.away {
    background: var(--status-away);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* ===============================================
   TYPING INDICATOR
   =============================================== */

.typing-indicator-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    margin-bottom: 8px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0s;
}

.typing-indicator-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* ===============================================
   NO CHAT PLACEHOLDER
   =============================================== */

.no-chat-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
}

.no-chat-placeholder.is-hidden {
    display: none;
}

.no-chat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.no-chat-icon i {
    width: 36px;
    height: 36px;
    opacity: 0.4;
}

.no-chat-text {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

/* ===============================================
   SEND MESSAGE BUTTON
   =============================================== */

#send-message-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(104, 155, 230, 0.4) 0%, rgba(104, 155, 230, 0.6) 100%);
    border: 1px solid rgba(104, 155, 230, 0.5);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(104, 155, 230, 0.3);
    flex-shrink: 0;
}

#send-message-btn:hover {
    background: var(--primary-blue);
    transform: scale(1.05);
}

#send-message-btn i {
    width: 20px;
    height: 20px;
}

/* ===============================================
   SETTINGS & OTHER PANELS
   =============================================== */

.settings-section {
    margin-bottom: 24px;
}

.settings-section h4 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.settings-section p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ===============================================
   FOCUS STATES
   =============================================== */

*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ===============================================
   BUTTON RESET
   =============================================== */

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* ===============================================
   INPUT RESET
   =============================================== */

input[type="text"],
input[type="password"] {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: var(--text-muted);
}