/* ========== ОБЩИЕ СТИЛИ (твои оригинальные, без изменений) ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.userlist-header {
    display: inline-block;
    padding: 6px 18px;
    margin: 8px 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 4px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.userlist-header i {
    margin-right: 8px;
    font-size: 1rem;
}

body.chat-body {
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    height: 100vh;
    transition: background 0.4s ease, color 0.2s ease;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
}

.plain-nick {
    display: inline-block;
    font-weight: 700;
    color: inherit;
    background: linear-gradient(145deg, rgba(255,255,255,0.3) 0%, rgba(200,200,200,0.1) 100%);
    padding: 2px 10px;
    border-radius: 30px;
    text-shadow: 0 1px 0 rgba(0,0,0,0.2);
    box-shadow: 0 3px 0 rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.2);
    transition: all 0.1s ease;
}

.plain-nick:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 0 rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.2);
}

/* ===== МЕНЮ ===== */
.dropdown {
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.dropdown-toggle {
    display: none;
}

.dropdown-label {
    cursor: pointer;
    backdrop-filter: blur(8px);
    font-weight: bold;
    font-family: 'Lobster', cursive;
    border: none;
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: inline-block;
    background: rgba(255,255,255,0.7);
    color: #6a3a52;
}

.dropdown-label:hover {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dropdown-child {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 12px 0;
    min-width: 210px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    z-index: 100;
    background: rgba(255,250,245,0.98);
}

.dropdown-toggle:checked + .dropdown-label + .dropdown-child,
.dropdown-toggle:checked ~ .dropdown-child {
    display: block;
}

.dropdown-child a {
    display: block;
    font-size: 0.9rem;
    padding: 8px 20px;
    text-decoration: none;
    transition: 0.2s;
    border-left: 3px solid transparent;
    color: #6a3a52;
}

.dropdown-child a:hover {
    padding-left: 24px;
    background: rgba(0,0,0,0.05);
}

.dropdown-child a i {
    width: 20px;
    font-size: 1rem;
    margin-right: 8px;
}

/* ===== ИКОНКИ ===== */
.top-icons {
    display: flex;
    gap: 8px;
    margin-left: auto;
    margin-right: 10px;
}

.top-icons .icon-btn {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1.2rem;
    text-decoration: none;
}

.top-icons .icon-btn:hover {
    transform: scale(1.05);
}

.mp_record {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 182, 193, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    color: #b34e6e;
    font-size: 36px !important;
}

.mp_record:hover {
    background: rgba(255, 182, 193, 0.6);
    transform: scale(1.05);
}

.mp_recording {
    border-radius: 14px;
    background: red;
    background-image: none;
}

/* ===== БЛОКИ ===== */
.top-body,
#mainsmilediv,
#leftdiv,
#privatdiv,
.users-body,
.bottom-body {
    backdrop-filter: blur(8px);
}

/* ===== ВЕРХНЯЯ ПАНЕЛЬ ===== */
.top-body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
}

.top-left {
    width: 45px;
}

.top-center {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex: 1;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 550px) {
    .top-left { display: none; }
    .top-center { justify-content: flex-start; flex: none; }
    .top-right { margin-left: auto; }
}

/* ===== БЛОК СМАЙЛОВ ===== */
#mainsmilediv {
    position: absolute;
    top: 60px;
    bottom: 80px;
    left: 0;
    width: 180px;
    border-radius: 0 24px 24px 0;
    border-right: 1px solid rgba(0,0,0,0.1);
    z-index: 15;
    overflow-y: auto;
    overflow-x: hidden;
    transition: display 0.3s;
}
#mainsmilediv.open {
    display: none;
}

#mainsmilediv iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== ОСНОВНОЙ ЧАТ ===== */
#leftdiv {
    position: absolute;
    top: 60px;
    bottom: 80px;
    left: 180px;
    right: 330px;
    border-radius: 28px 0 0 28px;
    padding: 16px;
    overflow-y: auto;
    border: 1px solid rgba(0,0,0,0.1);
    border-right: none;
    transition: right 0.3s ease, left 0.3s ease;
}

/* ===== ПРИВАТНОЕ ОКНО ===== */
#privatdiv {
    position: absolute;
    left: 180px;
    right: 295px;
    bottom: 80px;
    border-radius: 24px 24px 0 0;
    padding: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: none;
    max-height: 40%;
    z-index: 10;
    transition: left 0.3s ease;
}

/* ===== ПРАВАЯ ПАНЕЛЬ ===== */
.users-body {
    position: absolute;
    top: 60px;
    bottom: 80px;
    right: 0;
    width: 330px;
    border-radius: 24px 0 0 24px;
    border-left: 1px solid rgba(0,0,0,0.1);
    padding: 16px 12px;
    overflow-y: auto;
}
/* ===== НИЖНЯЯ ПАНЕЛЬ ===== */
.bottom-body {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    border-radius: 60px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    z-index: 20;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background: rgba(255,250,245,0.85);
    backdrop-filter: blur(8px);
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.bottom-body form {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
}

.bottom-body select {
    border-radius: 40px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    width: auto;
    min-width: 90px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.bottom-body input#tonick {
    width: 80px;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 40px;
    background: rgba(255,255,255,0.9);
    transition: all 0.2s;
    flex-shrink: 0;
}

.video-embed {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 400px;
    border: none;
    border-radius: 12px;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 700px) {
    .video-embed {
        max-height: 250px;
    }
}

.bottom-body input#autotextCheckbox {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #ff7aa6;
    flex-shrink: 0;
}

.bottom-body input#text0 {
    flex: 1;
    min-width: 180px;
    padding: 14px 18px;
    font-size: 14px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 40px;
    background: rgba(255,255,255,0.9);
    transition: all 0.2s;
}

.bottom-body button[type="submit"] {
    width: 44px;
    height: 42px;
    border-radius: 40px;
    background: linear-gradient(135deg, #ffb7c7, #ff9eb2);
    color: white;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.smile-bottom-btn {
    background: linear-gradient(135deg, #ffb7c7, #ff9eb2);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 18px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.bottom-body .icon-btn {
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 32px;
    text-decoration: none;
    background: rgba(255,182,193,0.2);
    color: #b55a7a;
    flex-shrink: 0;
}

input.text {
    width: 100%;
    max-width: 450px;
    padding: 12px 20px;
    font-size: 15px;
    line-height: 1.4;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50px;
    background: rgba(255,255,255,0.95);
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

input.text:focus {
    border-color: #ffb7c7;
    box-shadow: 0 0 0 3px rgba(255,183,199,0.3);
    background: white;
}

@media (max-width: 768px) {
    input.text {
        padding: 14px 20px;
        font-size: 18px;
        max-width: none;
        border-radius: 45px;
    }
}

@media (max-width: 480px) {
    input.text {
        padding: 15px 18px;
        font-size: 17px;
        border-radius: 40px;
    }
}

@media (max-width: 380px) {
    input.text {
        padding: 14px 16px;
        font-size: 16px;
    }
}

#tonick,
input[name="tonick"] {
    width: auto;
    min-width: 65px;
    max-width: 140px;
    padding: 8px 14px;
    font-size: 13px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 40px;
    background: rgba(255,255,255,0.9);
    text-align: center;
    transition: all 0.2s;
}

#tonick:focus,
input[name="tonick"]:focus {
    outline: none;
    border-color: #ffb7c7;
}

@media (max-width: 768px) {
    #tonick,
    input[name="tonick"] {
        min-width: 60px;
        max-width: 110px;
        padding: 9px 12px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    #tonick,
    input[name="tonick"] {
        min-width: 55px;
        max-width: 95px;
        padding: 8px 10px;
        font-size: 14px;
    }
}

@media (max-width: 700px) {
    .bottom-body {
        padding: 10px 14px;
        gap: 8px;
        border-radius: 50px;
    }
    .bottom-body select {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 80px;
    }
    .bottom-body input#tonick {
        width: 75px;
        padding: 10px 10px;
        font-size: 13px;
    }
    .bottom-body input#text0 {
        min-width: 150px;
        padding: 12px;
        font-size: 14px;
    }
    .smile-bottom-btn,
    .bottom-body .icon-btn,
    .bottom-body button[type="submit"] {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .bottom-body input#autotextCheckbox {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 550px) {
    .bottom-body {
        padding: 12px 12px;
        gap: 8px;
        border-radius: 45px;
        bottom: 8px;
        left: 8px;
        right: 8px;
    }
    .bottom-body form {
        gap: 8px;
    }
    .bottom-body select {
        padding: 10px 10px;
        font-size: 12px;
        min-width: 70px;
    }
    .bottom-body input#tonick {
        width: 65px;
        padding: 10px 8px;
        font-size: 12px;
    }
    .bottom-body input#text0 {
        min-width: 130px;
        padding: 10px 12px;
        font-size: 13px;
    }
    .smile-bottom-btn,
    .bottom-body .icon-btn,
    .bottom-body button[type="submit"] {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    .bottom-body input#autotextCheckbox {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 400px) {
    .bottom-body {
        padding: 10px 10px;
        gap: 6px;
    }
    .bottom-body form {
        gap: 6px;
    }
    .bottom-body select {
        padding: 8px 8px;
        font-size: 11px;
        min-width: 60px;
    }
    .bottom-body input#tonick {
        width: 55px;
        padding: 8px 6px;
        font-size: 11px;
    }
    .bottom-body input#text0 {
        min-width: 110px;
        padding: 12px 14px;
        font-size: 15px;
    }
    .smile-bottom-btn,
    .bottom-body .icon-btn,
    .bottom-body button[type="submit"] {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

.bottom-body::-webkit-scrollbar {
    height: 3px;
}
.bottom-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}
.bottom-body::-webkit-scrollbar-thumb {
    background: #ffb7c7;
    border-radius: 10px;
}

.section-title {
    font-family: 'Lobster', cursive;
    font-size: 1.4rem;
    margin: 8px 0;
}
.section-subtitle {
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 40px;
    margin-bottom: 12px;
}
.text-link {
    border-radius: 40px;
    padding: 8px 20px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    transition: 0.2s;
    text-decoration: none;
    font-size: 0.9rem;
}
.text-link:hover {
    transform: scale(0.97);
}
.set-checkbox-box {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 8px 0 4px;
    flex-wrap: wrap;
}
.set-checkbox-box input {
    width: 14px;
    height: 14px;
    cursor: pointer;
}
.set-checkbox-box label {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 30px;
    cursor: pointer;
}
.select_menu select,
.theme-selector select {
    border-radius: 40px;
    padding: 8px 12px;
    font-weight: 500;
    margin: 6px 0;
    width: 90%;
    cursor: pointer;
}
.theme-selector {
    border-radius: 40px;
    padding: 5px 10px;
    margin: 10px 0;
    text-align: center;
}

@media (max-width: 700px) {
    .users-body { width: 280px; }
    #leftdiv { right: 280px; }
    .bottom-body select {
        min-width: 70px;
        padding: 5px 8px;
        font-size: 11px;
    }
    .bottom-body input#text0 {
        min-width: 120px;
        font-size: 12px;
        padding: 6px 12px;
    }
    .bottom-body input#tonick {
        width: 60px;
        font-size: 11px;
    }
    .smile-bottom-btn,
    .bottom-body .icon-btn,
    .bottom-body button[type="submit"] {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 550px) {
    .users-body { display: none; }
    #leftdiv { left: 0; right: 8px; }
    #privatdiv { left: 0; right: 8px; }
    #mainsmilediv { display: none; }
    .top-icons { display: none; }
    .bottom-body {
        flex-wrap: wrap;
        justify-content: center;
        padding: 8px 12px;
        border-radius: 40px;
    }
    .bottom-body form {
        flex-wrap: wrap;
        justify-content: center;
    }
    .bottom-body input#text0 {
        width: calc(100% - 80px);
        min-width: 100px;
    }
}

select option {
    background: #ffffff !important;
    color: #000000 !important;
}

.custom-smile,
.clickable-smile,
.msg-text img {
    max-width: 50px;
    max-height: 50px;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    cursor: pointer;
    margin: 0 2px;
}
.msg-text {
    line-height: 1.4;
    display: inline;
    vertical-align: baseline;
}
.msg-text span {
    display: inline;
    vertical-align: baseline;
}

/* ===== ВЫДЕЛЕНИЕ СООБЩЕНИЙ (НЕ МЕНЯТЬ) ===== */
.msg-msg,
.msg-my,
.msg-to-me,
.msg-priv-my,
.msg-priv-to-me,
.msg-priv-my2,
.msg-priv-to-me2 {
    border-radius: 14px !important;
    padding: 8px 14px !important;
    margin: 8px 0 !important;
    transition: all 0.2s ease;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
    font-weight: 500;
    line-height: 1.45;
}
.msg-msg {
    background: rgb(245 245 250 / 68%) !important;
    border-left: 4px solid #a0a0c0 !important;
}
.msg-my {
    background: rgb(255 215 225 / 82%) !important;
    border-left: 4px solid #e8436e !important;
}
.msg-to-me {
    background: rgb(210 230 255 / 67%) !important;
    border-left: 4px solid #2d7fff !important;
}
.msg-priv-my,
.msg-priv-my2 {
    background: rgb(255 235 190 / 70%) !important;
    border-left: 4px solid #ffaa33 !important;
}
.msg-priv-to-me,
.msg-priv-to-me2 {
    background: rgb(210 250 210 / 77%) !important;
    border-left: 4px solid #3cb043 !important;
}

.edit-btn {
    cursor: pointer;
    margin-left: 8px;
    font-size: 12px;
    opacity: 0.6;
    transition: opacity 0.2s;
    display: inline-block;
}
.edit-btn:hover {
    opacity: 1 !important;
}
.edited-mark {
    font-size: 10px;
    color: #888;
    margin-left: 5px;
}
.set-checkbox-box input[name="autotext"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: #ff7aa6;
    transform: scale(1.1);
    cursor: pointer;
}
.set-checkbox-box input[name="autotext"] + label {
    background: rgba(255, 182, 193, 0.2);
    padding: 4px 12px;
    border-radius: 40px;
    transition: 0.2s;
    font-weight: 600;
}
.set-checkbox-box input[name="autotext"]:checked + label {
    background: rgba(255, 182, 193, 0.4);
}

/* ===== НОВЫЕ ТЕМЫ (фон-картинка, без блюра, без доп. цветных фонов) ===== */
body.chat-body.theme-light {
    background: url('https://vmfile.com/upload/842/3905452794.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #2d1b2e;
}
body.chat-body.theme-dark {
    background: url('https://vmfile.com/upload/842/1867540021.webp') no-repeat center center fixed;
    background-size: cover;
    color: #f0f0f0;
}
body.chat-body.theme-red {
    background: url('https://vmfile.com/upload/842/2359607294.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff0f0;
}
body.chat-body.theme-green {
    background: url('https://vmfile.com/upload/842/2512359103.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #e0f0e0;
}
body.chat-body.theme-blue {
    background: url('https://vmfile.com/upload/842/3286575417.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #e0f0ff;
}

/* Убираем blur у всех блоков для новых тем */
body.chat-body.theme-light .top-body,
body.chat-body.theme-dark .top-body,
body.chat-body.theme-red .top-body,
body.chat-body.theme-green .top-body,
body.chat-body.theme-blue .top-body,
body.chat-body.theme-light #mainsmilediv,
body.chat-body.theme-dark #mainsmilediv,
body.chat-body.theme-red #mainsmilediv,
body.chat-body.theme-green #mainsmilediv,
body.chat-body.theme-blue #mainsmilediv,
body.chat-body.theme-light .users-body,
body.chat-body.theme-dark .users-body,
body.chat-body.theme-red .users-body,
body.chat-body.theme-green .users-body,
body.chat-body.theme-blue .users-body,
body.chat-body.theme-light #leftdiv,
body.chat-body.theme-dark #leftdiv,
body.chat-body.theme-red #leftdiv,
body.chat-body.theme-green #leftdiv,
body.chat-body.theme-blue #leftdiv,
body.chat-body.theme-light .bottom-body,
body.chat-body.theme-dark .bottom-body,
body.chat-body.theme-red .bottom-body,
body.chat-body.theme-green .bottom-body,
body.chat-body.theme-blue .bottom-body {
    backdrop-filter: none !important;
    background: rgba(0,0,0,0.4) !important;
    border-color: rgba(255,255,255,0.2);
}

/* Светлая тема – более светлый полупрозрачный фон */
body.chat-body.theme-light .top-body,
body.chat-body.theme-light #mainsmilediv,
body.chat-body.theme-light .users-body,
body.chat-body.theme-light #leftdiv,
body.chat-body.theme-light .bottom-body {
    background: rgba(255,255,255,0.5) !important;
}

/* Стили для элементов интерфейса в новых темах */
body.chat-body.theme-light .dropdown-label { background: rgba(255,255,255,0.7); color: #6a3a52; }
body.chat-body.theme-dark .dropdown-label,
body.chat-body.theme-red .dropdown-label,
body.chat-body.theme-green .dropdown-label,
body.chat-body.theme-blue .dropdown-label { background: rgba(0,0,0,0.5); color: #fff; }

body.chat-body.theme-light .dropdown-child { background: rgba(255,255,255,0.95); }
body.chat-body.theme-dark .dropdown-child,
body.chat-body.theme-red .dropdown-child,
body.chat-body.theme-green .dropdown-child,
body.chat-body.theme-blue .dropdown-child { background: rgba(0,0,0,0.8); color: #fff; }

body.chat-body.theme-light .dropdown-child a { color: #6a3a52; }
body.chat-body.theme-dark .dropdown-child a,
body.chat-body.theme-red .dropdown-child a,
body.chat-body.theme-green .dropdown-child a,
body.chat-body.theme-blue .dropdown-child a { color: #fff; }

body.chat-body.theme-light .bottom-body input,
body.chat-body.theme-light .bottom-body select,
body.chat-body.theme-light .bottom-body button { background: rgba(255,255,255,0.9); color: #333; }
body.chat-body.theme-dark .bottom-body input,
body.chat-body.theme-dark .bottom-body select,
body.chat-body.theme-dark .bottom-body button,
body.chat-body.theme-red .bottom-body input,
body.chat-body.theme-red .bottom-body select,
body.chat-body.theme-red .bottom-body button,
body.chat-body.theme-green .bottom-body input,
body.chat-body.theme-green .bottom-body select,
body.chat-body.theme-green .bottom-body button,
body.chat-body.theme-blue .bottom-body input,
body.chat-body.theme-blue .bottom-body select,
body.chat-body.theme-blue .bottom-body button { background: rgba(0,0,0,0.6); color: #fff; border-color: rgba(255,255,255,0.3); }

body.chat-body.theme-light .section-title,
body.chat-body.theme-light .section-subtitle,
body.chat-body.theme-light .text-link { color: #6a3a52; }
body.chat-body.theme-dark .section-title,
body.chat-body.theme-dark .section-subtitle,
body.chat-body.theme-dark .text-link,
body.chat-body.theme-red .section-title,
body.chat-body.theme-red .section-subtitle,
body.chat-body.theme-red .text-link,
body.chat-body.theme-green .section-title,
body.chat-body.theme-green .section-subtitle,
body.chat-body.theme-green .text-link,
body.chat-body.theme-blue .section-title,
body.chat-body.theme-blue .section-subtitle,
body.chat-body.theme-blue .text-link { color: #fff; text-shadow: 0 1px 2px black; }

body.chat-body.theme-light ::-webkit-scrollbar-thumb { background: #ffb7c7; }
body.chat-body.theme-dark ::-webkit-scrollbar-thumb,
body.chat-body.theme-red ::-webkit-scrollbar-thumb,
body.chat-body.theme-green ::-webkit-scrollbar-thumb,
body.chat-body.theme-blue ::-webkit-scrollbar-thumb { background: #aaa; }

/* ===== ПАНЕЛЬ ЛИЧНЫХ СМАЙЛОВ (твои оригинальные стили, они же) ===== */
.emoji-panel-work {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 500px !important;
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
    display: none !important;
    flex-direction: column !important;
    z-index: 10000 !important;
    overflow: hidden !important;
    border: 1px solid #ffb7c7 !important;
    margin: 0 !important;
    transition: none !important;
}

.emoji-panel-work.open {
    display: flex !important;
    animation: fadeInScale 0.2s ease !important;
}

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

.emoji-panel-work-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%) !important;
    flex-shrink: 0 !important;
}

.emoji-panel-work-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: white !important;
}

.emoji-panel-work-header-left h3 {
    margin: 0 !important;
    font-size: 18px !important;
    color: white !important;
}

.emoji-panel-work-header-right .upload-header-btn {
    background: rgba(255,255,255,0.3) !important;
    color: white !important;
    border: none !important;
    padding: 6px 15px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    cursor: pointer !important;
}

.emoji-panel-work-content {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 15px !important;
    background: #fff5f7 !important;
    max-height: 400px !important;
}

.emoji-grid-work {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: center !important;
}

.emoji-grid-work > div {
    position: relative !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.emoji-grid-work img {
    width: auto !important;
    height: auto !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 8px !important;
    background: #f0f0f0 !important;
    padding: 4px !important;
}

.emoji-grid-work .delete-emoji-btn {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    background: #ff4d4d !important;
    color: white !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    font-size: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-weight: bold !important;
}

.empty-emoji-work {
    text-align: center !important;
    padding: 40px !important;
    color: #999 !important;
    font-size: 14px !important;
    width: 100% !important;
}

@media (max-width: 380px) {
    .emoji-panel-work {
        width: 96% !important;
        max-width: 96% !important;
        height: auto !important;
        max-height: 88% !important;
        border-radius: 28px !important;
    }
    .emoji-panel-work-header {
        padding: 18px 16px !important;
    }
    .emoji-panel-work-header-left h3 {
        font-size: 20px !important;
    }
    .emoji-panel-work-header-right .upload-header-btn {
        padding: 10px 18px !important;
        font-size: 15px !important;
    }
    .emoji-panel-work-content {
        max-height: 60vh !important;
        padding: 18px !important;
    }
    .emoji-grid-work {
        gap: 16px !important;
    }
    .emoji-grid-work img {
        max-width: 100px !important;
        max-height: 100px !important;
        padding: 10px !important;
        border-radius: 16px !important;
    }
    .emoji-grid-work .delete-emoji-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        top: -10px !important;
        right: -10px !important;
    }
}

@media (max-width: 480px) {
    .emoji-panel-work {
        width: 94% !important;
        max-width: 94% !important;
        border-radius: 32px !important;
    }
    .emoji-panel-work-header {
        padding: 20px 18px !important;
    }
    .emoji-panel-work-header-left h3 {
        font-size: 22px !important;
    }
    .emoji-panel-work-header-right .upload-header-btn {
        padding: 12px 22px !important;
        font-size: 16px !important;
    }
    .emoji-panel-work-content {
        max-height: 60vh !important;
        padding: 20px !important;
    }
    .emoji-grid-work {
        gap: 20px !important;
    }
    .emoji-grid-work img {
        max-width: 90px !important;
        max-height: 90px !important;
        padding: 8px !important;
    }
    .emoji-grid-work .delete-emoji-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        top: -9px !important;
        right: -9px !important;
    }
}

.chat-smile,
.msg-text img,
img[class*="smile"] {
    vertical-align: bottom !important;
    max-width: 180px;
    max-height: 180px;
    margin-bottom: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

@media (max-width: 550px) {
    .mp_record {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.8rem !important;
        background: rgba(255, 182, 193, 0.4) !important;
        margin-right: 4px;
    }
    .bottom-body select {
        min-width: 70px !important;
        width: auto !important;
        padding: 10px 6px !important;
        font-size: 12px !important;
    }
    .bottom-body select[name="cmd"],
    .bottom-body select.ok1 {
        max-width: 85px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .bottom-body form {
        gap: 6px !important;
    }
    .bottom-body input#text0 {
        min-width: 140px !important;
        flex: 2;
    }
}

@media (max-width: 400px) {
    .bottom-body select {
        min-width: 60px !important;
        padding: 8px 4px !important;
        font-size: 11px !important;
    }
    .bottom-body select[name="cmd"],
    .bottom-body select.ok1 {
        max-width: 75px !important;
    }
    .mp_record {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.6rem !important;
    }
}

#ul td:nth-child(2) {
    white-space: normal !important;
    vertical-align: top !important;
    text-align: center !important;
    padding: 6px 4px !important;
}
#ul td:nth-child(2) .graf_nick,
#ul td:nth-child(2) > img:first-child,
#ul td:nth-child(2) > embed:first-child,
#ul td:nth-child(2) > a:first-child img {
    display: block !important;
    margin: 0 auto 8px auto !important;
}
#ul td:nth-child(2) br {
    display: none !important;
}
#ul td:nth-child(2) a,
#ul td:nth-child(2) i,
#ul td:nth-child(2) img:not(.graf_nick):not(:first-child) {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 4px 5px !important;
}
@media (max-width: 550px) {
    #ul td:nth-child(2) a,
    #ul td:nth-child(2) i,
    #ul td:nth-child(2) img:not(.graf_nick) {
        margin: 5px 6px !important;
    }
}
#ul td:nth-child(2) i {
    font-size: 22px !important;
}
#ul td:nth-child(2) img:not(.graf_nick) {
    max-width: 28px !important;
    max-height: 28px !important;
    width: auto !important;
    height: auto !important;
}

/* ========== 🌸 ОБНОВЛЁННОЕ ВЕРХНЕЕ МЕНЮ ========== */

/* Контейнер верхней панели */
.top-body {
    background: linear-gradient(135deg, rgba(255,245,247,0.95) 0%, rgba(255,228,230,0.85) 100%) !important;
    box-shadow: 0 4px 20px rgba(186, 76, 168, 0.15), 0 1px 0 rgba(255,255,255,0.8) inset !important;
    border-bottom: 1px solid rgba(255, 183, 199, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* Кнопки меню */
.dropdown-label {
    background: linear-gradient(135deg, #ffb7c7 0%, #ff9eb2 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 158, 178, 0.4), 0 2px 0 rgba(200, 100, 120, 0.2) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    font-family: 'Lobster', cursive !important;
    font-size: 1.05rem !important;
    padding: 9px 24px !important;
    border-radius: 50px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.dropdown-label::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent) !important;
    transition: left 0.4s ease !important;
}

.dropdown-label:hover::before {
    left: 100% !important;
}

.dropdown-label:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 25px rgba(255, 158, 178, 0.6), 0 3px 0 rgba(200, 100, 120, 0.3) !important;
}

.dropdown-label:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 0 2px 10px rgba(255, 158, 178, 0.3) !important;
}

/* Выпадающее меню */
.dropdown-child {
    background: linear-gradient(180deg, rgba(255,250,252,0.98) 0%, rgba(255,240,245,0.95) 100%) !important;
    border: 1px solid rgba(255, 183, 199, 0.5) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(186, 76, 168, 0.25), 0 0 0 1px rgba(255,255,255,0.5) inset !important;
    padding: 8px !important;
    min-width: 240px !important;
    animation: menuSlideDown 0.2s ease-out !important;
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-child a {
    padding: 10px 18px !important;
    border-radius: 14px !important;
    margin: 3px 0 !important;
    font-weight: 500 !important;
    color: #6a3a52 !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.dropdown-child a i {
    width: 22px !important;
    text-align: center !important;
    font-size: 1.1rem !important;
    color: #b84ca8 !important;
    transition: transform 0.2s ease !important;
}

.dropdown-child a:hover {
    background: linear-gradient(135deg, rgba(255,183,199,0.2) 0%, rgba(255,228,230,0.4) 100%) !important;
    border-left-color: #ff9eb2 !important;
    padding-left: 22px !important;
    transform: translateX(3px) !important;
}

.dropdown-child a:hover i {
    transform: scale(1.15) !important;
}

/* Иконки в правой части */
.top-icons .icon-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,240,245,0.8) 100%) !important;
    border: 1px solid rgba(255, 183, 199, 0.4) !important;
    box-shadow: 0 2px 8px rgba(186, 76, 168, 0.1) !important;
    color: #b84ca8 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.top-icons .icon-btn:hover {
    background: linear-gradient(135deg, #ffb7c7 0%, #ff9eb2 100%) !important;
    color: #fff !important;
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 5px 20px rgba(255, 158, 178, 0.5) !important;
}

/* Кнопка списка пользователей */
.dropdown-nicklist {
    background: linear-gradient(135deg, #ffb7c7 0%, #ff9eb2 100%) !important;
    border-radius: 50px !important;
    padding: 8px 18px !important;
    color: #fff !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 4px 15px rgba(255, 158, 178, 0.4), 0 2px 0 rgba(200, 100, 120, 0.2) !important;
    transition: all 0.25s ease !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
}

.dropdown-nicklist i {
    font-size: 1.1rem !important;
    transition: transform 0.2s ease !important;
}

.dropdown-nicklist:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 6px 25px rgba(255, 158, 178, 0.6) !important;
}

.dropdown-nicklist:hover i {
    transform: rotate(10deg) scale(1.1) !important;
}

.dropdown-nicklist:active {
    transform: translateY(0) scale(0.98) !important;
}


/* ========== 👥 КРАСИВЫЙ СПИСОК ПОЛЬЗОВАТЕЛЕЙ ========== */

/* Контейнер панели */
.users-body {
    background: linear-gradient(180deg, rgba(255,245,247,0.92) 0%, rgba(255,240,245,0.88) 100%) !important;
    border-left: 1px solid rgba(255, 183, 199, 0.4) !important;
    box-shadow: -5px 0 25px rgba(186, 76, 168, 0.08) !important;
}

/* Заголовки секций */
.section-title {
    background: linear-gradient(135deg, #ffb7c7 0%, #ff9eb2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    display: inline-block !important;
}

.section-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -4px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60% !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent, #ff9eb2, transparent) !important;
    border-radius: 2px !important;
}

.section-subtitle {
    background: linear-gradient(135deg, rgba(255,183,199,0.25) 0%, rgba(255,228,230,0.15) 100%) !important;
    border: 1px solid rgba(255, 183, 199, 0.3) !important;
    color: #b84ca8 !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(255, 158, 178, 0.1) !important;
}

/* Таблица пользователей */
#ul {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 4px !important;
}

#ul tr {
    transition: all 0.2s ease !important;
}

#ul tr[data-user]:hover {
    transform: translateX(4px) !important;
}

#ul td {
    padding: 8px 6px !important;
    border-radius: 12px !important;
    transition: background 0.2s ease !important;
}

#ul tr:hover td {
    background: linear-gradient(135deg, rgba(255,228,230,0.5) 0%, rgba(255,240,245,0.3) 100%) !important;
    box-shadow: 0 2px 10px rgba(255, 158, 178, 0.15) inset !important;
}

/* Аватары и ники */
.graf_nick, #ul td:nth-child(2) > img:first-child {
    border-radius: 10px !important;
    border: 2px solid #9C27B0 !important;
    box-shadow: 0 3px 12px rgb(49 6 42 / 68%) !important;
    transition: all 0.25s ease !important;
    padding: 2px !important;
    background: #fff !important;
}

#ul tr:hover .graf_nick,
#ul tr:hover td:nth-child(2) > img:first-child {
    transform: scale(1.08) !important;
    border-color: #ff9eb2 !important;
    box-shadow: 0 4px 20px rgba(255, 158, 178, 0.4) !important;
}

/* Никнеймы */
.plain-nick {
    background: linear-gradient(145deg, rgba(255,255,255,0.4) 0%, rgba(255,240,245,0.2) 100%) !important;
    border: 1px solid rgba(255, 183, 199, 0.3) !important;
    box-shadow: 0 2px 6px rgba(186, 76, 168, 0.1), 0 1px 0 rgba(255,255,255,0.8) inset !important;
    font-weight: 600 !important;
    color: #6a3a52 !important;
}

.plain-nick:hover {
    background: linear-gradient(145deg, rgba(255,183,199,0.3) 0%, rgba(255,228,230,0.25) 100%) !important;
    border-color: #ff9eb2 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 158, 178, 0.25), 0 2px 0 rgba(255,255,255,0.9) inset !important;
}

/* Статусы пользователей */
#ul td:nth-child(2) i {
  font-size: 25px !important;
    margin: 0 3px !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1)) !important;
    transition: transform 0.2s ease !important;
}

#ul td:nth-child(2) i:hover {
    transform: scale(1.2) rotate(5deg) !important;
}

/* Индикатор онлайн/статуса */
.status-indicator {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #4caf50 !important;
    margin-right: 4px !important;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2), 0 0 8px rgba(76, 175, 80, 0.4) !important;
    animation: pulse 2s infinite !important;
}

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

/* Разделители между пользователями */
#ul tr + tr td {
    border-top: 1px dashed rgba(255, 183, 199, 0.2) !important;
    padding-top: 10px !important;
}

/* Скроллбар для списка */
.users-body::-webkit-scrollbar {
    width: 5px !important;
}

.users-body::-webkit-scrollbar-track {
    background: rgba(255, 240, 245, 0.5) !important;
    border-radius: 10px !important;
}

.users-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffb7c7 0%, #ff9eb2 100%) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.users-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff9eb2 0%, #ff7aa6 100%) !important;
}


/* ========== 📱 АДАПТИВ ДЛЯ МОБИЛЬНЫХ ========== */

@media (max-width: 700px) {
    .top-body {
        padding: 0 12px !important;
        height: 56px !important;
    }
    
    .dropdown-label {
        padding: 7px 16px !important;
        font-size: 0.95rem !important;
        border-radius: 40px !important;
    }
    
    .dropdown-child {
        min-width: 200px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .top-icons .icon-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }
    
    .dropdown-nicklist {
        padding: 6px 14px !important;
        font-size: 0.9rem !important;
    }
    
    .users-body {
        width: 260px !important;
    }
    
    #ul td {
        padding: 6px 4px !important;
    }
    
    .graf_nick,
    #ul td:nth-child(2) > img:first-child {
        max-width: 32px !important;
        max-height: 32px !important;
    }
}

@media (max-width: 550px) {
    .top-center {
        gap: 8px !important;
    }
    
    .dropdown-label {
        padding: 6px 12px !important;
        font-size: 0.9rem !important;
    }
    
    .dropdown-child {
        min-width: 180px !important;
        font-size: 0.85rem !important;
    }
    
    .dropdown-child a {
        padding: 8px 14px !important;
        font-size: 0.9rem !important;
    }
    
    .top-icons {
        gap: 4px !important;
    }
    
    .top-icons .icon-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.9rem !important;
    }
    
    .dropdown-nicklist {
        padding: 5px 10px !important;
        font-size: 0.85rem !important;
    }
    
    .dropdown-nicklist i {
        font-size: 0.95rem !important;
    }
}


/* ========== 🎨 ТЕМЫ: КОРРЕКТИРОВКИ ЦВЕТОВ ========== */

/* Тёмная тема */
body.chat-body.theme-dark .top-body,
body.chat-body.theme-red .top-body,
body.chat-body.theme-green .top-body,
body.chat-body.theme-blue .top-body {
    background: linear-gradient(135deg, rgba(30,30,40,0.95) 0%, rgba(25,25,35,0.9) 100%) !important;
    border-bottom-color: rgba(255, 183, 199, 0.2) !important;
}

body.chat-body.theme-dark .dropdown-label,
body.chat-body.theme-red .dropdown-label,
body.chat-body.theme-green .dropdown-label,
body.chat-body.theme-blue .dropdown-label {
    background: linear-gradient(135deg, #ff7aa6 0%, #e8436e 100%) !important;
    color: #fff !important;
}

body.chat-body.theme-dark .dropdown-child,
body.chat-body.theme-red .dropdown-child,
body.chat-body.theme-green .dropdown-child,
body.chat-body.theme-blue .dropdown-child {
    background: linear-gradient(180deg, rgba(40,40,55,0.98) 0%, rgba(35,35,50,0.95) 100%) !important;
    border-color: rgba(255, 158, 178, 0.3) !important;
}

body.chat-body.theme-dark .dropdown-child a,
body.chat-body.theme-red .dropdown-child a,
body.chat-body.theme-green .dropdown-child a,
body.chat-body.theme-blue .dropdown-child a {
    color: #f0f0f0 !important;
}

body.chat-body.theme-dark .dropdown-child a:hover,
body.chat-body.theme-red .dropdown-child a:hover,
body.chat-body.theme-green .dropdown-child a:hover,
body.chat-body.theme-blue .dropdown-child a:hover {
    background: linear-gradient(135deg, rgba(255,122,166,0.25) 0%, rgba(232,67,110,0.2) 100%) !important;
    border-left-color: #ff7aa6 !important;
}

body.chat-body.theme-dark .top-icons .icon-btn,
body.chat-body.theme-red .top-icons .icon-btn,
body.chat-body.theme-green .top-icons .icon-btn,
body.chat-body.theme-blue .top-icons .icon-btn {
    background: rgba(50,50,70,0.8) !important;
    border-color: rgba(255, 158, 178, 0.3) !important;
    color: #ffb7c7 !important;
}

body.chat-body.theme-dark .top-icons .icon-btn:hover,
body.chat-body.theme-red .top-icons .icon-btn:hover,
body.chat-body.theme-green .top-icons .icon-btn:hover,
body.chat-body.theme-blue .top-icons .icon-btn:hover {
    background: linear-gradient(135deg, #ff7aa6 0%, #e8436e 100%) !important;
    color: #fff !important;
}

body.chat-body.theme-dark .dropdown-nicklist,
body.chat-body.theme-red .dropdown-nicklist,
body.chat-body.theme-green .dropdown-nicklist,
body.chat-body.theme-blue .dropdown-nicklist {
    background: linear-gradient(135deg, #ff7aa6 0%, #e8436e 100%) !important;
}

/* Панель пользователей в тёмных темах */
body.chat-body.theme-dark .users-body,
body.chat-body.theme-red .users-body,
body.chat-body.theme-green .users-body,
body.chat-body.theme-blue .users-body {
    background: linear-gradient(180deg, rgba(35,35,50,0.92) 0%, rgba(30,30,45,0.88) 100%) !important;
    border-left-color: rgba(255, 158, 178, 0.25) !important;
}

body.chat-body.theme-dark .section-title,
body.chat-body.theme-red .section-title,
body.chat-body.theme-green .section-title,
body.chat-body.theme-blue .section-title {
    background: linear-gradient(135deg, #ffb7c7 0%, #ff9eb2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body.chat-body.theme-dark .section-subtitle,
body.chat-body.theme-red .section-subtitle,
body.chat-body.theme-green .section-subtitle,
body.chat-body.theme-blue .section-subtitle {
    background: rgba(255, 158, 178, 0.15) !important;
    border-color: rgba(255, 158, 178, 0.25) !important;
    color: #ffb7c7 !important;
}

body.chat-body.theme-dark #ul tr:hover td,
body.chat-body.theme-red #ul tr:hover td,
body.chat-body.theme-green #ul tr:hover td,
body.chat-body.theme-blue #ul tr:hover td {
    background: linear-gradient(135deg, rgba(255,122,166,0.15) 0%, rgba(232,67,110,0.1) 100%) !important;
}

body.chat-body.theme-dark .plain-nick,
body.chat-body.theme-red .plain-nick,
body.chat-body.theme-green .plain-nick,
body.chat-body.theme-blue .plain-nick {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255, 158, 178, 0.3) !important;
    color: #453c3c !important;
}

body.chat-body.theme-dark .plain-nick:hover,
body.chat-body.theme-red .plain-nick:hover,
body.chat-body.theme-green .plain-nick:hover,
body.chat-body.theme-blue .plain-nick:hover {
    background: rgba(255, 122, 166, 0.25) !important;
    border-color: #ff7aa6 !important;
}

/* ========== 💬 НИЖНЯЯ ПАНЕЛЬ — КРАСИВЫЙ ДИЗАЙН ========== */

/* Основной контейнер */
.bottom-body {
    background: linear-gradient(135deg, 
        rgba(255, 245, 247, 0.95) 0%, 
        rgba(255, 240, 245, 0.9) 50%,
        rgba(255, 250, 252, 0.95) 100%) !important;
    border: 1px solid rgba(255, 183, 199, 0.5) !important;
    border-radius: 60px !important;
    box-shadow: 
        0 8px 32px rgba(186, 76, 168, 0.15),
        0 2px 0 rgba(255, 255, 255, 0.9) inset,
        0 -2px 0 rgba(255, 183, 199, 0.3) inset !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 10px 20px !important;
    gap: 10px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.bottom-body:hover {
    box-shadow: 
        0 12px 40px rgba(186, 76, 168, 0.25),
        0 2px 0 rgba(255, 255, 255, 0.9) inset,
        0 -2px 0 rgba(255, 183, 199, 0.4) inset !important;
    transform: translateY(-2px) !important;
}

/* Форма внутри панели */
.bottom-body form {
    gap: 8px !important;
    align-items: center !important;
}

/* ========== 🎤 КНОПКА ЗАПИСИ ГОЛОСА ========== */

.mp_record {
    background: linear-gradient(135deg, #ffb7c7 0%, #ff9eb2 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 
        0 4px 15px rgba(255, 158, 178, 0.4),
        0 2px 0 rgba(200, 100, 120, 0.2) !important;
    color: #fff !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

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

.mp_record:hover::before {
    left: 100% !important;
}

.mp_record:hover {
    transform: translateY(-3px) scale(1.08) !important;
    box-shadow: 
        0 6px 25px rgba(255, 158, 178, 0.6),
        0 3px 0 rgba(200, 100, 120, 0.3) !important;
}

.mp_record:active {
    transform: translateY(0) scale(0.95) !important;
}

.mp_record i {
    font-size: 1.3rem !important;
    transition: transform 0.2s ease !important;
}

.mp_record:hover i {
    transform: scale(1.1) !important;
}

/* Состояние записи */
.mp_recording {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%) !important;
    animation: pulseRecord 1s infinite !important;
    box-shadow: 
        0 0 0 0 rgba(255, 71, 87, 0.4),
        0 4px 20px rgba(255, 56, 56, 0.5) !important;
}

@keyframes pulseRecord {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.mp_recording i {
    animation: bounceMic 0.3s infinite alternate !important;
}

@keyframes bounceMic {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}

/* ========== 📋 SELECT — ВЫПАДАЮЩИЕ СПИСКИ ========== */

.bottom-body select {
    background: linear-gradient(145deg, #fff 0%, #fff5f7 100%) !important;
    border: 2px solid rgba(255, 183, 199, 0.4) !important;
    border-radius: 50px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #6a3a52 !important;
    cursor: pointer !important;
    min-width: 95px !important;
    max-width: 140px !important;
    transition: all 0.25s ease !important;
    box-shadow: 
        0 2px 8px rgba(186, 76, 168, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b84ca8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    padding-right: 32px !important;
    flex-shrink: 0 !important;
}

.bottom-body select:hover {
    border-color: #ff9eb2 !important;
    box-shadow: 
        0 4px 15px rgba(255, 158, 178, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
    transform: translateY(-1px) !important;
}

.bottom-body select:focus {
    outline: none !important;
    border-color: #ff7aa6 !important;
    box-shadow: 
        0 0 0 3px rgba(255, 122, 166, 0.25),
        0 4px 20px rgba(255, 158, 178, 0.3) !important;
    background-color: #fff !important;
}

/* Опции в select */
.bottom-body select option {
    background: #fff !important;
    color: #6a3a52 !important;
    padding: 8px !important;
    font-weight: 500 !important;
}

/* ========== 👤 ПОЛЕ ДЛЯ НИКА (tonick) ========== */

.bottom-body input#tonick,
.bottom-body input[name="tonick"] {
    background: linear-gradient(145deg, #fff 0%, #fff5f7 100%) !important;
    border: 2px solid rgba(255, 183, 199, 0.4) !important;
    border-radius: 50px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #6a3a52 !important;
    text-align: center !important;
    transition: all 0.25s ease !important;
    box-shadow: 
        0 2px 8px rgba(186, 76, 168, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
    min-width: 75px !important;
    max-width: 130px !important;
    flex-shrink: 0 !important;
}

.bottom-body input#tonick:hover,
.bottom-body input[name="tonick"]:hover {
    border-color: #ff9eb2 !important;
}

.bottom-body input#tonick:focus,
.bottom-body input[name="tonick"]:focus {
    outline: none !important;
    border-color: #ff7aa6 !important;
    box-shadow: 
        0 0 0 3px rgba(255, 122, 166, 0.25),
        0 4px 20px rgba(255, 158, 178, 0.3) !important;
    background: #fff !important;
}

.bottom-body input#tonick::placeholder,
.bottom-body input[name="tonick"]::placeholder {
    color: rgba(106, 58, 82, 0.5) !important;
    font-weight: 400 !important;
}

/* ========== ✉️ ПОЛЕ ВВОДА СООБЩЕНИЯ ========== */

.bottom-body input#text0,
.bottom-body input.text {
    background: linear-gradient(145deg, #fff 0%, #fff9fa 100%) !important;
    border: 2px solid rgba(255, 183, 199, 0.4) !important;
    border-radius: 50px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #4a3a42 !important;
    line-height: 1.4 !important;
    transition: all 0.25s ease !important;
    box-shadow: 
        0 2px 10px rgba(186, 76, 168, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
    flex: 1 !important;
    min-width: 180px !important;
    max-width: 500px !important;
}

.bottom-body input#text0:hover,
.bottom-body input.text:hover {
    border-color: #ff9eb2 !important;
}

.bottom-body input#text0:focus,
.bottom-body input.text:focus {
    outline: none !important;
    border-color: #ff7aa6 !important;
    box-shadow: 
        0 0 0 4px rgba(255, 122, 166, 0.2),
        0 4px 25px rgba(255, 158, 178, 0.35) !important;
    background: #fff !important;
    transform: translateY(-1px) !important;
}

.bottom-body input#text0::placeholder,
.bottom-body input.text::placeholder {
    color: rgba(106, 58, 82, 0.45) !important;
    font-style: italic !important;
    transition: color 0.2s ease !important;
}

.bottom-body input#text0:focus::placeholder,
.bottom-body input.text:focus::placeholder {
    color: rgba(106, 58, 82, 0.25) !important;
}

/* ========== 🔘 КНОПКА ОТПРАВКИ ========== */

.bottom-body button[type="submit"] {
    background: linear-gradient(135deg, #ffb7c7 0%, #ff9eb2 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    width: 52px !important;
    height: 48px !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 4px 15px rgba(255, 158, 178, 0.4),
        0 2px 0 rgba(200, 100, 120, 0.2) !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.bottom-body button[type="submit"]::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent) !important;
    transition: left 0.5s ease !important;
}

.bottom-body button[type="submit"]:hover::before {
    left: 100% !important;
}

.bottom-body button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 
        0 6px 25px rgba(255, 158, 178, 0.6),
        0 3px 0 rgba(200, 100, 120, 0.3) !important;
    background: linear-gradient(135deg, #ff9eb2 0%, #ff7aa6 100%) !important;
}

.bottom-body button[type="submit"]:active {
    transform: translateY(0) scale(0.97) !important;
    box-shadow: 
        0 2px 10px rgba(255, 158, 178, 0.3) !important;
}

/* Иконка отправки внутри кнопки */
.bottom-body button[type="submit"]::after {
    content: '➤' !important;
    font-size: 16px !important;
    transition: transform 0.2s ease !important;
}

.bottom-body button[type="submit"]:hover::after {
    transform: translateX(2px) !important;
}

/* ========== 😊 КНОПКА СМАЙЛОВ ========== */

.smile-bottom-btn {
    background: linear-gradient(135deg, #ffd9e0 0%, #ffc7d1 100%) !important;
    border: 2px solid rgba(255, 183, 199, 0.5) !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    color: #b84ca8 !important;
    font-size: 1.4rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 3px 12px rgba(186, 76, 168, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.8) inset !important;
    flex-shrink: 0 !important;
}

.smile-bottom-btn:hover {
    background: linear-gradient(135deg, #ffb7c7 0%, #ff9eb2 100%) !important;
    color: #fff !important;
    border-color: #ff9eb2 !important;
    transform: translateY(-3px) scale(1.1) rotate(5deg) !important;
    box-shadow: 
        0 6px 20px rgba(255, 158, 178, 0.5),
        0 2px 0 rgba(255, 255, 255, 0.9) inset !important;
}

.smile-bottom-btn:active {
    transform: translateY(0) scale(0.95) rotate(0) !important;
}

/* ========== 📤 КНОПКА ЗАГРУЗКИ ФАЙЛА ========== */

.bottom-body .icon-btn {
    background: linear-gradient(135deg, #ffd9e0 0%, #ffc7d1 100%) !important;
    border: 2px solid rgba(255, 183, 199, 0.5) !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    color: #b84ca8 !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 3px 12px rgba(186, 76, 168, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.8) inset !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

.bottom-body .icon-btn:hover {
    background: linear-gradient(135deg, #ffb7c7 0%, #ff9eb2 100%) !important;
    color: #fff !important;
    border-color: #ff9eb2 !important;
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 
        0 6px 20px rgba(255, 158, 178, 0.5),
        0 2px 0 rgba(255, 255, 255, 0.9) inset !important;
}

.bottom-body .icon-btn:active {
    transform: translateY(0) scale(0.95) !important;
}

.bottom-body .icon-btn i {
    transition: transform 0.2s ease !important;
}

.bottom-body .icon-btn:hover i {
    transform: scale(1.15) !important;
}

/* ========== ☑️ ЧЕКБОКС АВТОТЕКСТА ========== */

.bottom-body input#autotextCheckbox {
    width: 20px !important;
    height: 20px !important;
    accent-color: #ff7aa6 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
    border: 2px solid rgba(255, 183, 199, 0.5) !important;
    transition: all 0.2s ease !important;
}

.bottom-body input#autotextCheckbox:hover {
    border-color: #ff9eb2 !important;
    transform: scale(1.1) !important;
}

.bottom-body input#autotextCheckbox:checked {
    border-color: #ff7aa6 !important;
    box-shadow: 0 0 0 3px rgba(255, 122, 166, 0.2) !important;
}

.bottom-body label[for="autotextCheckbox"] {
    cursor: pointer !important;
    margin: 0 4px !important;
    display: flex !important;
    align-items: center !important;
}

/* Декоративная метка для чекбокса */
.bottom-body label[for="autotextCheckbox"]::before {
    content: '⚡' !important;
    font-size: 12px !important;
    margin-right: 4px !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s ease !important;
}

.bottom-body input#autotextCheckbox:checked + label::before {
    opacity: 1 !important;
    animation: sparkle 0.5s ease !important;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ========== 🎨 СКРОЛЛБАР ДЛЯ НИЖНЕЙ ПАНЕЛИ ========== */

.bottom-body::-webkit-scrollbar {
    height: 6px !important;
}

.bottom-body::-webkit-scrollbar-track {
    background: rgba(255, 240, 245, 0.6) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 183, 199, 0.2) !important;
}

.bottom-body::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #ffb7c7 0%, #ff9eb2 100%) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transition: background 0.2s ease !important;
}

.bottom-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #ff9eb2 0%, #ff7aa6 100%) !important;
}

/* ========== 📱 АДАПТИВ ДЛЯ МОБИЛЬНЫХ ========== */

@media (max-width: 700px) {
    .bottom-body {
        padding: 8px 14px !important;
        border-radius: 50px !important;
        gap: 6px !important;
    }
    
    .mp_record {
        width: 44px !important;
        height: 44px !important;
    }
    
    .bottom-body select {
        padding: 8px 12px !important;
        font-size: 12px !important;
        min-width: 80px !important;
        padding-right: 28px !important;
        background-size: 14px !important;
        background-position: right 10px center !important;
    }
    
    .bottom-body input#tonick,
    .bottom-body input[name="tonick"] {
        padding: 8px 10px !important;
        font-size: 12px !important;
        min-width: 65px !important;
    }
    
    .bottom-body input#text0,
    .bottom-body input.text {
        padding: 10px 16px !important;
        font-size: 13px !important;
        min-width: 140px !important;
    }
    
    .bottom-body button[type="submit"],
    .smile-bottom-btn,
    .bottom-body .icon-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 13px !important;
    }
    
    .smile-bottom-btn {
        font-size: 1.2rem !important;
    }
    
    .bottom-body input#autotextCheckbox {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 550px) {
    .bottom-body {
        padding: 6px 10px !important;
        border-radius: 45px !important;
        gap: 5px !important;
        bottom: 8px !important;
        left: 8px !important;
        right: 8px !important;
    }
    
    .bottom-body form {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
    }
    
    .mp_record {
        order: 1 !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .bottom-body select {
        order: 2 !important;
        min-width: 70px !important;
        font-size: 11px !important;
        padding: 7px 10px !important;
    }
    
    .bottom-body input#tonick,
    .bottom-body input[name="tonick"] {
        order: 3 !important;
        min-width: 55px !important;
        font-size: 11px !important;
    }
    
    .bottom-body input#autotextCheckbox {
        order: 4 !important;
    }
    
    .bottom-body label[for="autotextCheckbox"] {
        order: 5 !important;
    }
    
    .bottom-body input#text0,
    .bottom-body input.text {
        order: 6 !important;
        width: 100% !important;
        min-width: auto !important;
        max-width: none !important;
        font-size: 13px !important;
        padding: 10px 14px !important;
    }
    
    .smile-bottom-btn {
        order: 7 !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 1.1rem !important;
    }
    
    .bottom-body .icon-btn {
        order: 8 !important;
        width: 38px !important;
        height: 38px !important;
    }
    
    .bottom-body button[type="submit"] {
        order: 9 !important;
        width: 40px !important;
        height: 38px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 400px) {
    .bottom-body {
        padding: 5px 8px !important;
        border-radius: 40px !important;
    }
    
    .mp_record {
        width: 36px !important;
        height: 36px !important;
    }
    
    .bottom-body select {
        min-width: 65px !important;
        font-size: 10px !important;
        padding: 6px 8px !important;
    }
    
    .bottom-body input#tonick,
    .bottom-body input[name="tonick"] {
        min-width: 50px !important;
        font-size: 10px !important;
    }
    
    .bottom-body input#text0,
    .bottom-body input.text {
        font-size: 12px !important;
        padding: 9px 12px !important;
    }
    
    .bottom-body button[type="submit"],
    .smile-bottom-btn,
    .bottom-body .icon-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 11px !important;
    }
    
    .smile-bottom-btn {
        font-size: 1rem !important;
    }
}

/* ========== 🎨 ПОДДЕРЖКА ТЕМ ========== */

/* Тёмная тема */
body.chat-body.theme-dark .bottom-body,
body.chat-body.theme-red .bottom-body,
body.chat-body.theme-green .bottom-body,
body.chat-body.theme-blue .bottom-body {
    background: linear-gradient(135deg, 
        rgba(40, 40, 55, 0.95) 0%, 
        rgba(35, 35, 50, 0.9) 50%,
        rgba(45, 45, 60, 0.95) 100%) !important;
    border-color: rgba(255, 158, 178, 0.3) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 0 rgba(255, 255, 255, 0.05) inset,
        0 -2px 0 rgba(255, 158, 178, 0.2) inset !important;
}

body.chat-body.theme-dark .bottom-body select,
body.chat-body.theme-red .bottom-body select,
body.chat-body.theme-green .bottom-body select,
body.chat-body.theme-blue .bottom-body select,
body.chat-body.theme-dark .bottom-body input#tonick,
body.chat-body.theme-red .bottom-body input#tonick,
body.chat-body.theme-green .bottom-body input#tonick,
body.chat-body.theme-blue .bottom-body input#tonick,
body.chat-body.theme-dark .bottom-body input#text0,
body.chat-body.theme-red .bottom-body input#text0,
body.chat-body.theme-green .bottom-body input#text0,
body.chat-body.theme-blue .bottom-body input#text0 {
    background: linear-gradient(145deg, rgba(50,50,70,0.9) 0%, rgba(45,45,65,0.9) 100%) !important;
    border-color: rgba(255, 158, 178, 0.3) !important;
    color: #f0f0f0 !important;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.05) inset !important;
}

body.chat-body.theme-dark .bottom-body select option,
body.chat-body.theme-red .bottom-body select option,
body.chat-body.theme-green .bottom-body select option,
body.chat-body.theme-blue .bottom-body select option {
    background: #2a2a3a !important;
    color: #f0f0f0 !important;
}

body.chat-body.theme-dark .mp_record,
body.chat-body.theme-red .mp_record,
body.chat-body.theme-green .mp_record,
body.chat-body.theme-blue .mp_record {
    background: linear-gradient(135deg, #ff7aa6 0%, #e8436e 100%) !important;
}

body.chat-body.theme-dark .smile-bottom-btn,
body.chat-body.theme-red .smile-bottom-btn,
body.chat-body.theme-green .smile-bottom-btn,
body.chat-body.theme-blue .smile-bottom-btn,
body.chat-body.theme-dark .bottom-body .icon-btn,
body.chat-body.theme-red .bottom-body .icon-btn,
body.chat-body.theme-green .bottom-body .icon-btn,
body.chat-body.theme-blue .bottom-body .icon-btn {
    background: linear-gradient(135deg, rgba(255,122,166,0.2) 0%, rgba(232,67,110,0.15) 100%) !important;
    border-color: rgba(255, 158, 178, 0.3) !important;
    color: #ffb7c7 !important;
}

body.chat-body.theme-dark .smile-bottom-btn:hover,
body.chat-body.theme-red .smile-bottom-btn:hover,
body.chat-body.theme-green .smile-bottom-btn:hover,
body.chat-body.theme-blue .smile-bottom-btn:hover,
body.chat-body.theme-dark .bottom-body .icon-btn:hover,
body.chat-body.theme-red .bottom-body .icon-btn:hover,
body.chat-body.theme-green .bottom-body .icon-btn:hover,
body.chat-body.theme-blue .bottom-body .icon-btn:hover {
    background: linear-gradient(135deg, #ff7aa6 0%, #e8436e 100%) !important;
    color: #fff !important;
}

body.chat-body.theme-dark .bottom-body button[type="submit"],
body.chat-body.theme-red .bottom-body button[type="submit"],
body.chat-body.theme-green .bottom-body button[type="submit"],
body.chat-body.theme-blue .bottom-body button[type="submit"] {
    background: linear-gradient(135deg, #ff7aa6 0%, #e8436e 100%) !important;
}

/* Скроллбар в тёмных темах */
body.chat-body.theme-dark .bottom-body::-webkit-scrollbar-track,
body.chat-body.theme-red .bottom-body::-webkit-scrollbar-track,
body.chat-body.theme-green .bottom-body::-webkit-scrollbar-track,
body.chat-body.theme-blue .bottom-body::-webkit-scrollbar-track {
    background: rgba(40, 40, 55, 0.6) !important;
}

body.chat-body.theme-dark .bottom-body::-webkit-scrollbar-thumb,
body.chat-body.theme-red .bottom-body::-webkit-scrollbar-thumb,
body.chat-body.theme-green .bottom-body::-webkit-scrollbar-thumb,
body.chat-body.theme-blue .bottom-body::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #ff7aa6 0%, #e8436e 100%) !important;
}

/* ========== ✨ ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ========== */

/* Плавное появление панели при загрузке */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bottom-body {
    animation: slideUpFade 0.4s ease-out !important;
}

/* Эффект фокуса на всей панели */
.bottom-body:has(input#text0:focus) {
    box-shadow: 
        0 12px 45px rgba(186, 76, 168, 0.3),
        0 2px 0 rgba(255, 255, 255, 0.9) inset,
        0 -2px 0 rgba(255, 122, 166, 0.5) inset !important;
    border-color: rgba(255, 122, 166, 0.6) !important;
}

/* Подсветка активных элементов */
.bottom-body :focus-visible {
    outline: 2px solid rgba(255, 122, 166, 0.5) !important;
    outline-offset: 2px !important;
}

/* Анимация при отправке сообщения */
@keyframes sendPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.bottom-body button[type="submit"]:active {
    animation: sendPulse 0.2s ease !important;
}

/* Микро-анимация для иконок в покое */
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.mp_record i,
.smile-bottom-btn,
.bottom-body .icon-btn i {
    animation: floatIcon 3s ease-in-out infinite !important;
}

.mp_record:hover i,
.smile-bottom-btn:hover,
.bottom-body .icon-btn:hover i {
    animation: none !important;
}

/* ========== 🌞 ИСПРАВЛЕНИЕ: ВИДИМОСТЬ СТАТУСНЫХ ИКОНОК В СВЕТЛОЙ ТЕМЕ ========== */
/* Без этих правил иконки (кушаю, курю, отошёл и т.д.) были белыми и не видны на светлом фоне */
body.chat-body.theme-light #ul td:nth-child(2) i {
    color: #6a3a52 !important;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.05)) !important;
}

/* Также для красной, зелёной и голубой тем сделаем иконки более контрастными */
body.chat-body.theme-red #ul td:nth-child(2) i,
body.chat-body.theme-green #ul td:nth-child(2) i,
body.chat-body.theme-blue #ul td:nth-child(2) i {
    color: #fff0e0 !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)) !important;
}

/* Чтобы в красной теме иконки не сливались с фоном, чуть осветлим */
body.chat-body.theme-red #ul td:nth-child(2) i {
    color: #fff5f0 !important;
}

body.chat-body.theme-green #ul td:nth-child(2) i {
    color: #e8ffe8 !important;
}

body.chat-body.theme-blue #ul td:nth-child(2) i {
    color: #e0f4ff !important;
}

/* Также для тёмных тем оставим белый цвет (уже есть в stn2 с !important, но подстрахуем) */
body.chat-body.theme-dark #ul td:nth-child(2) i,
body.chat-body.theme-red #ul td:nth-child(2) i,
body.chat-body.theme-green #ul td:nth-child(2) i,
body.chat-body.theme-blue #ul td:nth-child(2) i {
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}
/* ========== УЛУЧШЕННАЯ ВИДИМОСТЬ PLAIN-NICK В ТЁМНЫХ ТЕМАХ ========== */
body.chat-body.theme-dark .plain-nick,
body.chat-body.theme-red .plain-nick,
body.chat-body.theme-green .plain-nick,
body.chat-body.theme-blue .plain-nick {
    color: #594242 !important;
    background: rgba(255, 255, 255, 0.2) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

body.chat-body.theme-light .plain-nick {
    color: #4a2a5e !important;
    background: linear-gradient(145deg, rgba(255,255,255,0.7) 0%, rgba(245,235,240,0.5) 100%) !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.6) !important;
    border: 1px solid rgba(255, 183, 199, 0.4) !important;
}
/* ========== РАЗДЕЛЬНЫЕ СТИЛИ ДЛЯ НИКНЕЙМОВ ========== */

/* 1. Никнеймы в правой панели (список пользователей) */
#ul .plain-nick {
    display: inline-block;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 30px;
    transition: all 0.1s ease;
}

/* Светлая тема — правый блок */
body.chat-body.theme-light #ul .plain-nick {
    color: #4a2a5e !important;
    background: linear-gradient(145deg, rgba(255,255,255,0.8) 0%, rgba(245,235,240,0.6) 100%) !important;
    border: 1px solid rgba(255, 183, 199, 0.5) !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.7) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

/* Тёмные темы (тёмная, красная, зелёная, голубая) — правый блок */
body.chat-body.theme-dark #ul .plain-nick,
body.chat-body.theme-red #ul .plain-nick,
body.chat-body.theme-green #ul .plain-nick,
body.chat-body.theme-blue #ul .plain-nick {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* 2. Никнеймы в левом диве (сообщения) — ссылки, открывающие приват */
#leftdiv a[onclick*="tonick"] {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Светлая тема — левый див */
body.chat-body.theme-light #leftdiv a[onclick*="tonick"] {
    color: #b84ca8 !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5) !important;
}
body.chat-body.theme-light #leftdiv a[onclick*="tonick"]:hover {
    color: #e8436e !important;
    text-decoration: underline !important;
}

/* Тёмные темы — левый див */
body.chat-body.theme-dark #leftdiv a[onclick*="tonick"],
body.chat-body.theme-red #leftdiv a[onclick*="tonick"],
body.chat-body.theme-green #leftdiv a[onclick*="tonick"],
body.chat-body.theme-blue #leftdiv a[onclick*="tonick"] {
    color: #ffb7c7 !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5) !important;
}
body.chat-body.theme-dark #leftdiv a[onclick*="tonick"]:hover,
body.chat-body.theme-red #leftdiv a[onclick*="tonick"]:hover,
body.chat-body.theme-green #leftdiv a[onclick*="tonick"]:hover,
body.chat-body.theme-blue #leftdiv a[onclick*="tonick"]:hover {
    color: #ff9eb2 !important;
    text-decoration: underline !important;
}

/* Дополнительно: графические ники в левом диве — рамка для видимости на тёмном фоне */
body.chat-body.theme-dark #leftdiv .graf_nick,
body.chat-body.theme-red #leftdiv .graf_nick,
body.chat-body.theme-green #leftdiv .graf_nick,
body.chat-body.theme-blue #leftdiv .graf_nick {
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 2px;
}