.chat-sidebar {
    width: 320px;
    background: linear-gradient(180deg, #102433 0%, #0e1f2d 100%);
    border-left: 1px solid #274355;
    display: flex;
    flex-direction: column;
    height: auto;
    position: fixed;
    right: 0;
    top: 60px;
    bottom: 0;
    transition: width 0.3s;
    overflow: hidden;
    z-index: 850;
}

.chat-header {
    padding: 12px 12px;
    background: #1a3140;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #fff;
    border-bottom: 1px solid #29465a;
}

.chat-header span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 16px;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-icon-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #4a6779;
    border-radius: 7px;
    background: #263f50;
    color: #dcecf6;
    cursor: pointer;
}

.chat-icon-btn:hover {
    background: #2f4c5f;
}

.btn-collapse {
    width: 30px;
    height: 30px;
    border: 1px solid #5c7789;
    border-radius: 7px;
    background: #ecf4f8;
    color: #13232f;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.chat-messages {
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 17px;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #2d4d60;
    border-radius: 999px;
}

.message {
    background: #1a3445;
    border: 1px solid #274759;
    padding: 9px 10px;
    border-radius: 9px;
    color: #dbe8f2;
    line-height: 1.35;
}

.user { font-weight: bold; margin-right: 5px; }
.user i { margin-right: 5px; font-size: 10px; color: #f0c372; }
.user-gold { color: #ffb800; }
.user-mod { color: #5dff84; }
.user-mod i { color: #5ee8ff; }

.chat-input-wrapper {
    padding: 10px 10px 8px;
    background: #142c3a;
    display: flex;
    gap: 5px;
    border-top: 1px solid #2a4759;
}

.chat-input-wrapper input {
    flex-grow: 1;
    background: #0c202d;
    border: 1px solid #3a5c70;
    color: white;
    padding: 10px 11px;
    border-radius: 8px;
    font-size: 16px;
}

.chat-emoji-btn {
    width: 36px;
    min-width: 36px;
    border: 1px solid #4a6880;
    border-radius: 8px;
    background: #253f51;
    color: #ffe08c;
    cursor: pointer;
}

.chat-input-wrapper #send-chat {
    min-width: 62px;
    border: 1px solid #3a85d5;
    border-radius: 8px;
    background: linear-gradient(180deg, #2f90ec 0%, #2678d0 100%);
    color: #f3fbff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.chat-footer {
    min-height: 40px;
    padding: 0 10px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d5e6f1;
    font-size: 14px;
}

.chat-online i {
    color: #28ef61;
    font-size: 8px;
}

.chat-count {
    margin-left: auto;
    opacity: 0.9;
}

.chat-footer-btn {
    width: 34px;
    height: 30px;
    border: 1px solid #4b6a80;
    border-radius: 8px;
    background: #294356;
    color: #e4f0f8;
    cursor: pointer;
}
