/* ===== ЭПИЧНЫЙ ЧАТ В СТИЛЕ МИРА ТЬМЫ ===== */
@import url('https://fonts.googleapis.com/css2?family=Bona+Nova:ital,wght@0,400;0,700;1,400&family=Great+Vibes&display=swap');

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    border: 0;
    height: 100%;
    color: #e5c3ff;                /* светлый сиреневый */
    background-color: #0a0a1a;      /* фон глубокий тёмно-фиолетовый */
    font-family: "Bona Nova", serif;
    font-size: 14px;                /* увеличенный базовый размер */
    line-height: 1.5;
}

img {
    border: 0;
}

a {
    color: #c9b7ff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px #4b0082;
}
a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #b87aff, 0 0 15px #4b0082;
    border-bottom-color: #b87aff;
}

iframe {
    display: none;
}

.hidden {
    display: none;
}
.hidden2 {
    visibility: hidden;
}

a.ajax {
    text-decoration: none;
    border-bottom: 1px #b87aff!important;
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ЧАТА ===== */
.chat {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    left: 0;
    font: normal 14px "Bona Nova", serif;  /* увеличен с 10pt */
    overflow: hidden;
    border: 1px solid #3c096c;
    box-shadow: 0 0 30px rgba(75, 0, 130, 0.7);
    background: #000000CC; /*фон*/
}

/* ===== ШАПКА ===== */
.chatHeader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45px;
    z-index: 99;
    background: linear-gradient(145deg, #1a1a2e, #0a0a1a);
    border-bottom: 2px solid #4b0082;
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.6);
}

.chatHeader .chatHeaderWrapper {
    width: 100%;
    overflow: hidden;
}

.chatHeader .chatTitle {
    float: left;
    margin: 12px 0 0 15px;
    font-weight: bold;
    font-size: 1.3em;
    color: #e0d0ff;
    text-shadow: 0 0 10px #8a2be2;
}

.chatHeader .chatTopLine {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.9em;
    background: rgba(10, 5, 20, 0.85);
    border: 1px solid #4b0082;
    border-radius: 20px;
    padding: 2px 10px;
    box-shadow: 0 0 15px rgba(106, 90, 205, 0.5);
}

/* ===== ВЕРХНЕЕ МЕНЮ ===== */
.chatTopLineWrapper ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
.chatTopLineWrapper ul li {
    position: relative;
    float: left;
}
.chatTopLineWrapper ul li a {
    display: block;
    padding: 4px 12px;
    text-decoration: none;
    text-transform: lowercase;
    color: #d0bfff;
    font-size: 1.1em;
    text-shadow: 0 0 5px #4b0082;
    border-radius: 15px;
    transition: 0.3s;
}
.chatTopLineWrapper > ul > li > a {
    padding-right: 23px;
}
.chatTopLineWrapper ul li.chatMenuItemWithSeparator a {
    background-image: none; /* убираем старую полоску */
}
.chatTopLineWrapper ul li a:hover {
    background: rgba(138, 43, 226, 0.3);
    color: #ffffff;
    text-shadow: 0 0 12px #b87aff;
    box-shadow: 0 0 12px #9d4edd;
}

/* выпадающее подменю */
.chatTopLineWrapper ul li ul {
    position: absolute;
    left: 0;
    display: block;
    visibility: hidden;
    border: 1px solid #4b0082;
    background: #0f0c1f;
    border-radius: 10px;
    box-shadow: 0 0 20px #3c096c;
}
.chatTopLineWrapper ul li ul li {
    float: none;
}
.chatTopLineWrapper ul li ul li a {
    width: 160px;
    padding: 6px 12px;
    color: #cbb2ff;
}
.chatTopLineWrapper ul li ul li a:hover {
    background: #2a1a4a;
}

.menu_profile_title {
    text-transform: none;
    font-weight: bold;
}
.is-registered #register-menu-item {
    display: none;
}

/* стрелки подменю */
.downarrowclass {
    position: absolute;
    top: 9px;
    right: 7px;
    background-image: url("https://st1.chatovod.ru/i/widget/down2.png"); /* можно заменить на свою фиолетовую стрелку, но оставим как есть */
    width: 9px;
    height: 6px;
    filter: invert(0.7) sepia(1) hue-rotate(240deg); /* примерная подкраска */
}
.rightarrowclass {
    position: absolute;
    top: 6px;
    right: 5px;
    filter: invert(0.7) sepia(1) hue-rotate(240deg);
}

/* ===== ОСНОВНАЯ ЧАСТЬ ===== */
.chatMain {
    position: absolute;
    left: 0;
    right: 0;
    top: 45px;
    bottom: 63px;
    background: #000000CC;
}

/* список пользователей */
.chatMain .chatPeople {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 170px;
    overflow-x: hidden;
    overflow-y: auto;
    border-left: 1px solid #3c096c;
    z-index: 0;
    background: #1A142B;
    box-shadow: inset 0 0 30px #1a0033;
}

/* область сообщений */
.chatMain .chatMessages,
.chatMain .chatPrivateMessages {
    font-size: 14pt;
    position: absolute;
    left: 0;
    right: 170px;
    bottom: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 0 4px 0;
    top: 41px;
    line-height: 1.6;
    background-color: rgba(26, 20, 43, 0.5); /*Главный фон*//* #1A142B с альфа-каналом 0.5 */
    background-image: url('https://forumstatic.ru/files/001c/81/08/98870.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;      /* изображение масштабируется, чтобы покрыть весь контейнер */
    background-blend-mode: multiply; /* цвет накладывается на картинку (режим умножения) *
}

@media (max-width: 768px) {
    .chatMain .chatMessages,
    .chatMain .chatPrivateMessages {
        background-size: contain; /* изображение помещается полностью, по бокам – цвет */
    }
}

/*background-image: url('https://forumstatic.ru/files/001c/81/08/76035.jpg?v=1');
background-repeat: no-repeat;
background-position: center top; /* или top center */
background-size: 100% auto; /* ширина 100%, высота авто */
}*/

@media (max-width: 768px) {
    body {
        background-size: contain; /* на мобильных картинка полностью видна, по бокам цвет */
    }
}

/* скроллбары */
.vscrollable::-webkit-scrollbar {
    width: 10px;
}
.vscrollable::-webkit-scrollbar-track {
    background: #0a0a1a;
    border: 1px solid #3c096c;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(75, 0, 130, 0.6);
}
.vscrollable::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #4b0082, #9d4edd);
    border: 2px solid #1a1a2e;
    border-radius: 10px;
    box-shadow: 0 0 12px #b87aff;
}
.vscrollable::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #9d4edd, #b87aff);
}

/* сообщения */
.chatMessage {
    padding-left: 15px;
    margin-bottom: 6px;
    text-shadow: 1px 1px 2px #000, -1px -1px 2px #000, 1px -1px 2px #000, -1px 1px 2px #000, 0 0 8px #000000;
}

/* ######### */

/*.chatMessage {
    padding-left: 15px;
    margin-bottom: 6px;
}*/
.chatMessage.type-news,
.chatMessage.type-event {
    background: transparent url("https://st1.chatovod.ru/i/widget/unread.png") no-repeat 4px 8px;
    filter: invert(0.8) sepia(1) hue-rotate(240deg); /* подкраска иконки */
}
.chatMessage.type-news {
    font-weight: bold;
}
.chatMessageToMe .chatToUser {
    background-color: #4b0082;
    color: #ffffff;
    padding: 0 3px;
    border-radius: 6px;
    box-shadow: 0 0 8px #8a2be2;
}
.chatSystemMessage {
    font-style: italic;
    overflow: hidden;
    color: #b8a0ff;
}

.chatTime {
    float: right;
    padding-right: 30px;
    color: #b87aff;
    font-size: 11pt;
    visibility: hidden;
    font-style: normal;
}
.chatMessage:hover .chatTime {
    visibility: visible;
}

/* табы */
.chatTabsLeft, .chatTabsRight {
    position: absolute;
    top: 0;
    width: 16px;
    height: 100%;
    cursor: pointer;
    color: #e0aaff;
    font-weight: bold;
    visibility: hidden;
    background: rgba(20, 5, 30, 0.7);
    border-radius: 8px 0 0 8px;
    box-shadow: 0 0 10px #4b0082;
}
.chatTabsLeft {
    left: 0;
    background: transparent url("https://st1.chatovod.ru/i/apps/vleft.png") no-repeat 2px 12px;
    filter: invert(0.8) sepia(1) hue-rotate(240deg);
}
.chatTabsRight {
    right: 0;
    background: transparent url("https://st1.chatovod.ru/i/apps/vright.png") no-repeat 2px 12px;
    filter: invert(0.8) sepia(1) hue-rotate(240deg);
}
.chatTabsLRActive {
    visibility: visible;
}

.chatTabs {
    position: absolute;
    top: 0;
    left: 0;
    right: 171px;
    height: 41px;
    background: #0f0c1f;
    border-bottom: 1px solid #4b0082;
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.4);
}
.chatTabs ul {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 8px;
    height: 24px;
    overflow: visible;
    list-style-type: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    font-size: 12px;
}
.chatTabs > ul > li {
    display: inline-block;
    margin-right: 5px;
    height: 100%;
    position: relative;
}
.chatTabs > ul > li.appTab {
    margin-right: 0;
    margin-left: 2px;
    margin-top: 2px;
}

.chatTabs > ul > li > a {
    display: inline-block;
    padding: 0 14px 0 10px;
    line-height: 24px;
    height: 100%;
    font-size: 1em;
    text-decoration: none!important;
    border: 1px solid transparent;
    border-radius: 20px 20px 0 0;
    background: #1a1a2e;
    color: #d0bfff;
    transition: 0.3s;
}
.chatTabs > ul > li.chatTab > a:hover,
.chatTabs > ul > li.chatTab.chatTabActive > a {
    background: #4b0082;
    color: #ffffff;
    box-shadow: 0 -2px 10px #9d4edd;
    border-color: #b87aff50;
}
.chatTabs ul li.chatTab .close {
    position: absolute;
    right: 3px;
    top: 2px;
    width: 8px;
    height: 8px;
    background: transparent url("https://st1.chatovod.ru/i/closetab.png") no-repeat 0 0;
    cursor: pointer;
    filter: invert(1) brightness(1.5);
}

.chatTabs ul li.appTab a {
    padding: 0 6px 0 26px;
    background-position: 7px 4px;
    background-repeat: no-repeat;
    background-image: url("https://st1.chatovod.ru/i/apps/app.png");
    color: #c9b7ff !important;
    text-decoration: none;
    text-shadow: 0 0 5px #6a0dad;
    border-radius: 12px;
    transition: color 0.3s ease, text-shadow 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; /* ограничиваем transition */
    display: inline-block;
    position: relative;
    border: 1px solid transparent;
}

.chatTabs ul li.appTab a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 12px #b87aff, 0 0 22px #7b2cbf;
    border-color: #9d4edd;
    box-shadow: 0 0 18px #5a189a, inset 0 0 8px #c77dff;
    transform: translateY(-2px);
}

#chat_app_add a {
    background-image: url("https://st1.chatovod.ru/i/apps/add.png");
}

/* ===== СПИСОК ПОЛЬЗОВАТЕЛЕЙ ===== */
.chatPeople .chatPeopleTitle {
    margin: 7px 0 4px 8px;
    font-size: 1.1em;
    color: #e5c3ff;
    text-shadow: 0 0 10px #8a2be2;
    font-family: "Great Vibes", cursive;
    font-size: 1.4em;
}
.chatPeople ul.chatPeopleList {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.chatPeople ul.chatPeopleList li {
    margin: 0;
    padding: 6px 0 0 8px;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    transition: 0.2s;
}
.chatPeople ul.chatPeopleList li.hover {
    background: #1A142B;
    border-color: #9d4edd;
    box-shadow: 0 0 15px #4b0082;
}
.chatUserWrapper {
    margin-left: 20px;
}
.chatUserVip {
    background: transparent url("https://st1.chatovod.ru/i/widget/vip.gif") no-repeat 0 0;
    filter: hue-rotate(240deg) brightness(1.2);
}
.chatUserSex1, .chatUserSex2, .chatUserSex0 {
    float: left;
}
.chatUserSex1 b, .chatUserSex2 b, .chatUserSex0 b {
    width: 16px;
    height: 16px;
    float: left;
}
.chatPeople ul.chatPeopleList li a.chatUser {
    text-decoration: none;
    color: #d0bfff;
    word-wrap: break-word;
    font-size: 1.1em;
}
.chatPeople ul.chatPeopleList li a.chatUserSex0 b {
    background: transparent url("https://st1.chatovod.ru/i/widget/user_gray.png") no-repeat 0 0;
    filter: brightness(0.7) sepia(1) hue-rotate(240deg);
}
.chatPeople ul.chatPeopleList li a.chatUserSex1 b {
    background: transparent url("https://st1.chatovod.ru/i/widget/user.png") no-repeat 0 0;
    filter: brightness(1.2) drop-shadow(0 0 5px #4b0082);
}
.chatPeople ul.chatPeopleList li a.chatUserSex2 b {
    background: transparent url("https://st1.chatovod.ru/i/widget/user_female.png") no-repeat 0 0;
    filter: brightness(1.2) drop-shadow(0 0 5px #b87aff);
}
.chatUserAway {
    opacity: 0.5;
}

/* меню пользователя (всплывающее) */
.chatUserMenu {
    padding: 8px 0 12px 0;
    width: 145px;
    overflow: hidden;
    background: #0f0c1f;
    border: 1px solid #4b0082;
    border-radius: 15px;
    box-shadow: 0 0 25px #3c096c;
}
.chatUserAvatar {
    float: left;
    overflow: hidden;
    width: 55px;
    height: 80px;
    background: #1a1a2e url("https://st1.chatovod.ru/i/ava.png") no-repeat center center;
    border: 2px solid #4b0082;
    border-radius: 10px;
    box-shadow: 0 0 15px #9d4edd;
}
.chatUserMenuItems {
    margin-left: 64px;
    font-size: 0.9em;
}
.chatPeople ul.chatPeopleList li .chatUserMenu .chatUserMenuItems ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.chatPeople ul.chatPeopleList li .chatUserMenu .chatUserMenuItems ul li {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
}
.chatPeople ul.chatPeopleList li .chatUserMenu .chatUserMenuItems ul li a {
    float: left;
    padding-left: 22px;
    line-height: 18px;
    height: 18px;
    background-position: 0 0;
    background-repeat: no-repeat;
    background-color: transparent;
    color: #d0bfff;
}
.chatPeople ul.chatPeopleList li .chatUserMenu .chatUserMenuItems ul li a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #b87aff;
}

/* иконки меню (подкраска) */
.chatUserMenuInfo { background-image: url("https://st1.chatovod.ru/i/widget/vcard.png"); filter: invert(0.8) sepia(1) hue-rotate(240deg); }
.chatUserMenuPhotos { background-image: url("https://st1.chatovod.ru/i/widget/photo.png"); filter: invert(0.8) sepia(1) hue-rotate(240deg); }
.chatUserMenuPrivate { background-image: url("https://st1.chatovod.ru/i/widget/user_comment.png"); filter: invert(0.8) sepia(1) hue-rotate(240deg); }
.chatUserMenuGift { background-image: url("https://st1.chatovod.ru/i/widget/present.png"); filter: invert(0.8) sepia(1) hue-rotate(240deg); }
.chatUserMenuIgnore { background-image: url("https://st1.chatovod.ru/i/widget/ignore.png"); filter: invert(0.8) sepia(1) hue-rotate(240deg); }
.chatUserMenuBan { background-image: url("https://st1.chatovod.ru/i/cross.png"); filter: invert(0.8) sepia(1) hue-rotate(240deg); }
.chatUserMenuAdd { background-image: url("https://st1.chatovod.ru/i/widget/user_add.png"); filter: invert(0.8) sepia(1) hue-rotate(240deg); }
.chatUserMenuDel { background-image: url("https://st1.chatovod.ru/i/widget/user_delete.png"); filter: invert(0.8) sepia(1) hue-rotate(240deg); }
.chatUserMenuMail { background-image: url("https://st1.chatovod.ru/i/widget/mail.png"); filter: invert(0.8) sepia(1) hue-rotate(240deg); }

/* мини-меню пользователя */
#chatUserMiniMenu {
    position: absolute;
    border: 1px solid #4b0082;
    background: #0f0c1f;
    padding: 4px 6px;
    box-shadow: 0 0 25px #3c096c;
    border-radius: 10px;
    color: #e0d0ff;
}
#chatUserMiniMenu div {
    float: left;
}
#chatUserMiniMenu .buttons div {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    cursor: pointer;
    filter: brightness(1.2) drop-shadow(0 0 5px #b87aff);
}

/* ===== ПОДВАЛ (панель отправки) ===== */
.chatFooter {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    height: 62px;
    background: linear-gradient(145deg, #1a1a2e, #0a0a1a);
    border-top: 2px solid #4b0082;
    box-shadow: 0 -4px 15px rgba(75, 0, 130, 0.6);
    color: #e5c3ff;
    font-weight: bold;
}

.chatFooter .chatFooterWrapper {
    position: relative;
    width: 100%;
    height: 62px;
}

.chatSetupNickname {
    position: absolute;
    left: 15px;
    top: 0;
    line-height: 62px;
    font-size: 1.2em;
}
.has-nick .chatSetupNickname {
    display: none;
}
#sign-in-label {
    font-weight: bold;
    color: #e0aaff;
}
#join-buttons {
    padding-top: 12px;
}
#join-chat-button, #join-chat-button2 {
    font-weight: bold;
    padding: 8px 12px;
    background: #4b0082;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 0 15px #9d4edd;
    cursor: pointer;
    transition: 0.3s;
}
#join-chat-button:hover, #join-chat-button2:hover {
    background: #8a2be2;
    box-shadow: 0 0 25px #b87aff;
    transform: scale(1.05);
}

.chatSpecifyPassword label,
.chatSpecifyPassword p {
    display: block;
    margin: 0;
    padding: 6px 0 4px 0;
    color: #d0bfff;
}
.chatSpecifyPassword input[type=text] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #4b0082;
    background: #0a0a1a;
    color: #e5c3ff;
    padding: 6px 8px;
    border-radius: 8px;
}
.chatSpecifyPassword .error {
    color: #ff6b9d;
}
.chatSpecifyPassword .error:empty {
    display: none;
}

/* панель отправки сообщений (появляется после входа) */
.chatPanel {
    display: none;
}
.has-nick .chatPanel {
    display: block;
}

.chatFooter .chatFooterWrapper .chatPanel .chatSendLinksPanel {
    position: absolute;
    left: 16px;
    top: 7px;
    font-weight: normal;
    font-size: 0.9em;
    z-index: 99;
}
.chatSendLinksPanel a {
    margin-right: 16px;
    text-decoration: none;
    float: left;
    height: 16px;
    color: #d0bfff;
    border-bottom: 1px #4b0082;
}
.chatSendLinksPanel a:hover {
    color: #ffffff;
    border-bottom-color: #b87aff;
}
.chatSendLinksPanel a span {
    border-bottom: 1px #4b0082;
}

.chatFooter .chatFooterWrapper .chatPanel div a span {
    border-bottom: none /*1px #4b0082!important;
    position:relative;*/
}

.chatLinkRegister {
    font-weight: bold;
}
.bold {
    font-weight: bold;
}

#profile-menu {
    display: none;
}
.has-nick #profile-menu {
    display: inline;
    display: list-item;
}
.chatLinkProfile {
    padding-left: 21px;
    background: url(https://st1.chatovod.ru/i/msi.png) no-repeat 0 -416px;
    display: none;
/*    filter: invert(0.8) sepia(1) hue-rotate(240deg);*/
}
.has-user-id .chatLinkProfile {
    display: inline;
}
.chatLinkGold {
    padding-left: 21px;
    background: transparent url("https://st1.chatovod.ru/i/coins.png") no-repeat 0 0;
/*    filter: invert(0.8) sepia(1) hue-rotate(240deg);*/
}
.chatLinkVip {
    width: 16px;
    background: transparent url("https://st1.chatovod.ru/i/ivip.png") no-repeat 0 0;
    margin-right: 6px !important;
/*    filter: invert(0.8) sepia(1) hue-rotate(240deg);*/
}
.chatLinkModerate {
    width: 16px;
    background: url("https://st1.chatovod.ru/i/widget/shield.png") no-repeat 0 0; /*transparent*/
    margin-right: 7px !important;
/*    filter: invert(0.8) sepia(1) hue-rotate(240deg);*/
}
.chatSendLinksPanel a.chatLinkSmiles {
    padding-left: 21px;
    background: transparent url(https://st1.chatovod.ru/i/widget/smile.png) no-repeat 0 0;
/*    filter: invert(0.8) sepia(1) hue-rotate(240deg);*/
}
.chatSendLinksPanel .chatLinkImage {
    padding-left: 21px;
    background: transparent url("https://st1.chatovod.ru/i/media.png") no-repeat 0 0;
/*    filter: invert(0.8) sepia(1) hue-rotate(240deg);*/
}

/* Поле ввода сообщения — эпичная версия */
/* Поле ввода сообщения — унифицировано с админкой, hover и focus одинаковые */
.chatFooter .chatFooterWrapper .chatPanel .chatSendTextPanel {
    position: absolute;
    left: 16px;
    top: 30px;
    right: 204px;
}

.chatFooter .chatFooterWrapper .chatPanel .chatSendTextPanel .chatSendText {
    width: 100%;
}

.chatInputText {
    /* Базовое состояние — как в админке */
    background: #0a0a1a;
    color: #e5c3ff;                /* более светлый и читаемый, чем #D5D5D5 */
    border: 1px solid #4b0082;
    border-radius: 8px;            /* как в админке */
    padding: 10px;                 /* как в админке */
    font-family: "Bona Nova", serif;
    font-style: italic;
    font-size: 13px;
    box-sizing: border-box;
    height: 26px;
    
    /* Базовая тень — лёгкая, как в обычном состоянии админки */
    box-shadow: 
        inset 0 2px 6px rgba(26, 0, 51, 0.7),
        0 0 8px rgba(75, 0, 130, 0.35);
    
    transition: all 0.3s ease;
}

/* Hover и Focus — ОДИНАКОВЫЙ эффект, без усиления при нажатии */
.chatInputText:hover,
.chatInputText:focus,
.chatInputText:focus-visible {
    border-color: #b87aff;
    background: #0f0c1f;           /* лёгкое осветление фона при взаимодействии — как часто делают в тёмных темах */
    box-shadow: 
        inset 0 2px 8px rgba(26, 0, 51, 0.85),
        0 0 15px #9d4edd;          /* точно такая же тень, как в админке при фокусе */
    
    outline: none;                 /* убираем любую браузерную обводку */
}

/* Чтобы при фокусе не было никаких дополнительных браузерных стилей */
.chatInputText:focus-visible {
    outline: none;
}

/* кнопка отправки */
.chatFooter .chatFooterWrapper .chatPanel .chatSendButtonPanel {
    position: absolute;
    top: 30px;
    right: 117px;
}
.chatSendButton {
    width: 81px;
    height: 26px;
    box-sizing: border-box;
    background: #4b0082;
    border: none;
    border-radius: 20px;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px #9d4edd;
    transition: 0.3s;
}
.chatSendButton:hover {
    background: #8a2be2;
    box-shadow: 0 0 25px #b87aff;
    transform: scale(1.02);
}

/* панель звука */
.chatFooter .chatFooterWrapper .chatPanel div.chatSoundPanel {
    position: absolute;
    width: 85px;
    height: 16px;
    top: 7px;
    right: 16px;
    text-align: right;
}
.chatFooter .chatFooterWrapper .chatPanel div.chatSoundPanel a {
    padding-left: 20px;
    font-size: 0.9em;
    text-decoration: none;
    font-weight: normal;
    background: transparent url(https://st1.chatovod.ru/i/sound.png) no-repeat 0 0;
    float: right;
    height: 16px;
    color: #d0bfff;
    filter: invert(0.8) sepia(1) hue-rotate(240deg);
}
.chatFooter .chatFooterWrapper .chatPanel div.chatSoundPanel a.muted {
    background-image: url(https://st1.chatovod.ru/i/sound_none.png);
}

/* выбор комнаты / выход */
.chatFooter .chatFooterWrapper .chatPanel .chatSendExitPanel {
    position: absolute;
    width: 96px;
    top: 30px;
    right: 13px;
}
.chatSendExitPanel select {
    width: 100%;
    height: 26px;
    box-sizing: border-box;
    background: #0a0a1a;
    color: #e5c3ff;
    border: 1px solid #4b0082;
    border-radius: 15px;
    box-shadow: inset 0 0 10px #1a0033;
}
.chatExitButton {
    width: 65px;
    height: 26px;
    background: #4b0082;
    border: none;
    border-radius: 20px;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px #9d4edd;
}

/* ===== СООБЩЕНИЯ ===== */
.chatUserFrom {
    cursor: pointer;
    color: #b87aff;
    font-weight: bold;
    font-size: 1.1em;
    text-shadow: 0 0 5px #4b0082;
}
.chatUserFrom:hover {
    color: #ffffff;
    text-shadow: 0 0 12px #b87aff;
}

.chatFull {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #e5c3ff;
    z-index: 999;
    background: #000000CC;
    backdrop-filter: blur(5px);
}
.chatFull .transparent {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background-color: #0a0a1a;
    opacity: 0.95;
    z-index: -1;
}
.chatFull .white-filler {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background-color: #0a0a1a;
    z-index: -1;
}

.center-wrapper {
    display: table;
    width: 200px;
    height: 100%;
    margin: 0 auto;
}
.center-text-wrapper {
    display: table;
    height: 100%;
    margin: 0 auto;
    text-align: center;
}
.center-wrapper .content,
.center-text-wrapper .content {
    display: table-cell;
    vertical-align: middle;
}
.chatFull a {
    color: #b87aff;
}

.chatRemember {
    vertical-align: middle;
}

/* openid */
.chatOpenIdOption {
    padding: 0 0 1px 24px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: 4px 0;
}
.chatOpenIdGoogle {
    background-image: url(https://st1.chatovod.ru/i/openid/google.png);
    filter: brightness(0.9);
}

/* всплывающие меню */
.chatPopupMenuDiv1,
.chatPopupMenuDiv2 {
    display: none;
    position: absolute;
    background: #0f0c1f;
    border: 1px solid #4b0082;
    border-radius: 15px;
    box-shadow: 0 0 25px #3c096c;
/*    z-index: 98;*/
}
.chatPopupMenuDiv2 .chatPopupMenuContent {
    padding: 1px 7px;
    font-size: 0.8em;
    color: #e0d0ff;
position: absolute;
inset-inline-start: 0px;
inset-block-start: 0px;
}
.chatPopupMenuDiv2 .chatPopupMenuContent p {
    margin: 0;
    padding: 4px 0;
}

.sendVipLink {
    padding-left: 38px;
    background: transparent url("https://st1.chatovod.ru/i/vip.png") no-repeat 0 0;
    filter: invert(0.8) sepia(1) hue-rotate(240deg);
}
#userGift {
    cursor: pointer;
    position: absolute;
    width: 48px;
    height: 48px;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 4;
    filter: drop-shadow(0 0 15px #b87aff);
}

/* смайлы */
.smilesBox {
    background: #1A142B;
    position: absolute;
    left: 0;
    top: 0;
    width: 320px;
    height: 250px;
    overflow: auto;
    z-index: 98;
    border: 2px solid #4b0082;
    border-radius: 20px;
    box-shadow: 0 0 30px #3c096c;
    padding: 10px;
}
.smilesBox p {
    font-size: 1em;
    padding: 5px 0 2px 0;
    margin: 0;
    font-weight: bold;
    color: #e5c3ff;
}

/* ссылки с репортом */
.chatMessage a {
    position: relative;
}
.chatMessage a div.reportspam {
    display: block;
    position: absolute;
    background: transparent url("https://st1.chatovod.ru/i/widget/reportspam.png") no-repeat 0 0;
    left: -17px;
    top: 0;
    width: 17px;
    height: 16px;
    cursor: pointer;
    filter: invert(0.8) sepia(1) hue-rotate(240deg);
}

/* диалоги (баны и пр.) */
.chatActionDialog {
    position: absolute;
    background: #0f0c1f;
    border: 3px solid #4b0082;
    border-radius: 30px;
    box-shadow: 0 0 40px #3c096c;
    color: #e5c3ff;
}
.chatActionDialog .content {
    padding: 0 20px;
}
.chatBanForm div.row {
    width: 100%;
    overflow: hidden;
    padding: 8px 0;
}
.chatBanForm label {
    float: left;
    width: 60px;
    padding-right: 2px;
    text-align: right;
    color: #d0bfff;
}
.chatBanForm div.row div {
    float: left;
}
.chatBanForm .submit,
.chatBanForm p {
    margin-left: 60px;
}
.chatBanForm p {
    font-weight: bold;
}
.chatBanForm .nick,
.chatBanForm .cause {
    width: 155px;
    background: #0a0a1a;
    border: 1px solid #4b0082;
    color: #e5c3ff;
    padding: 4px;
    border-radius: 8px;
}
.chatBanForm .srok {
    width: 50px;
    background: #0a0a1a;
    border: 1px solid #4b0082;
    color: #e5c3ff;
    padding: 4px;
    border-radius: 8px;
}

/* скролл вниз */
#scrollBottomBox {
    text-align: center;
    padding: 4px 10px;
    background: #1a1a2e;
    border: 2px solid #4b0082;
    color: #e0aaff;
    position: absolute;
    cursor: pointer;
    opacity: 0.7;
    border-radius: 30px;
    font-family: "Bona Nova", serif;
    font-size: 0.9em;
    box-shadow: 0 0 20px #9d4edd;
    transition: 0.3s;
}
#scrollBottomBox:hover {
    opacity: 1;
    background: #4b0082;
    color: #ffffff;
    box-shadow: 0 0 30px #b87aff;
}

/* иконки msi (подкраска) */
.msi {
    float: left;
    background: url(https://st1.chatovod.ru/i/blank.gif) no-repeat top left;
    width: 16px;
    height: 16px;
    filter: invert(0.8) sepia(1) hue-rotate(240deg);
}
.mst {
    margin-left: 4px;
}

/* прочие старые классы (сохраняем структуру) */
.msi_application_double { background-position: 0 0; }
.msi_coins { background-position: 0 -32px; }
.msi_cross { background-position: 0 -64px; }
.msi_group { background-position: 0 -96px; }
.msi_hourglass { background-position: 0 -128px; }
.msi_ignore { background-position: 0 -160px; }
.msi_layout_add { background-position: 0 -192px; }
.msi_phone { background-position: 0 -224px; }
.msi_photos { background-position: 0 -256px; }
.msi_report { background-position: 0 -288px; }
.msi_script { background-position: 0 -320px; }
.msi_shield { background-position: 0 -352px; }
.msi_transmit_blue { background-position: 0 -384px; }
.msi_vcard { background-position: 0 -416px; }
.msi_vcard_add { background-position: 0 -448px; }
.msi_vcard_edit { background-position: 0 -480px; }
.msi_wand { background-position: 0 -512px; }

.chatUserGiftsCount > img {
    height: 16px;
    filter: drop-shadow(0 0 5px #b87aff);
}

/* сообщения-снежки */
.snowballmsg {
    font-weight: bold;
    color: #b87aff;
}
.snowballmsg img {
    vertical-align: -2px;
    filter: drop-shadow(0 0 5px #b87aff);
}

/* видео-ссылки */
.youtubeMsg {
    display: inline-block;
    width: 120px;
    height: 90px;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 10px;
    box-shadow: 0 0 15px #4b0082;
}
.youtubeMsg > a {
    background: transparent url('https://st1.chatovod.ru/i/widget/yt48.png') no-repeat center;
    opacity: 0.8;
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px #b87aff);
}
.youtubeMsg > a:hover {
    opacity: 1;
}
.rutubeMsg {
    display: inline-block;
    width: 120px;
    height: 90px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
    box-shadow: 0 0 15px #4b0082;
}
.rutubeMsg > a {
    background: transparent url('https://st1.chatovod.ru/i/widget/yt48.png') no-repeat center;
    opacity: 0.8;
    display: block;
    width: 100%;
    height: 100%;
}
.vkvideoMsg {
    display: inline-block;
    padding: 8px 12px;
    background: #4b0082;
    border-radius: 20px;
    box-shadow: 0 0 15px #9d4edd;
}
.vkvideoMsg > a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}
.vkvideoMsg > a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px #b87aff;
}

/* модальные окна smoke (стилизация) */
.smoke-base {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}
.smoke-base.smoke-visible {
    opacity: 1;
    visibility: visible;
}
.smokebg {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
}
.smoke-base .dialog {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -25%);
    background: #0f0c1f;
    border: 2px solid #4b0082;
    border-radius: 40px;
    box-shadow: 0 0 50px #3c096c;
    padding: 25px;
    color: #e5c3ff;
}
.dialog-prompt {
    margin-top: 15px;
    text-align: center;
}
.dialog-buttons {
    margin: 20px 0 5px 0;
    text-align: center;
}
.smoke {
    font-family: "Bona Nova", serif;
    text-align: center;
    font-size: 1.2em;
    line-height: 150%;
}
.dialog-buttons button {
    display: inline-block;
    cursor: pointer;
    font-family: "Bona Nova", serif;
    font-size: 1.1em;
    margin: 0 5px;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    background: #4b0082;
    color: #ffffff;
    box-shadow: 0 0 15px #9d4edd;
    transition: 0.3s;
}
.dialog-buttons button:hover {
    background: #8a2be2;
    box-shadow: 0 0 25px #b87aff;
    transform: scale(1.02);
}
.dialog-prompt input {
    margin: 0;
    outline: none;
    font-family: "Bona Nova", serif;
    border: 1px solid #4b0082;
    background: #0a0a1a;
    color: #e5c3ff;
    width: 75%;
    display: inline-block;
    font-size: 1.1em;
    padding: 8px;
    border-radius: 20px;
}
.queue {
    display: none;
}

/* иконки модератора/админа */
.user-icon {
    width: 16px;
    height: 16px;
    background-position: center center;
    background-repeat: no-repeat;
}
.mod-icon {
    background-image: url("https://st1.chatovod.ru/i/widget/shield.png");
/*    filter: invert(0.8) sepia(1) hue-rotate(240deg);*/
}
.adm-icon {
    background-image: url("https://st1.chatovod.ru/i/widget/admin.png");
/*    filter: invert(0.8) sepia(1) hue-rotate(240deg);*/
}

.yes-button {
    background-color: #4b0082 !important;
}
.no-button {
    background-color: #8a2be2 !important;
}

/* адаптивность (медиазапросы) */
@media screen and (max-width: 700px) {
    .chatMain .chatPeople {
        width: 130px;
    }
    .chatMain .chatMessages,
    .chatMain .chatPrivateMessages {
        right: 130px;
    }
    .chatTabs {
        right: 131px;
    }
    .chatFooter .chatFooterWrapper .chatPanel .chatSendTextPanel {
        right: 180px;
    }
    .chatFooter .chatFooterWrapper .chatPanel .chatSendButtonPanel {
        right: 95px;
    }
    .chatSendButton {
        width: 70px;
    }
}
@media screen and (max-width: 500px) {
    .chatMain .chatPeople {
        width: 100px;
    }
    .chatMain .chatMessages,
    .chatMain .chatPrivateMessages {
        right: 100px;
    }
    .chatTabs {
        right: 101px;
    }
    .chatSendLinksPanel a span {
        display: none; /* скрываем подписи на узких экранах */
    }
}

/*****************************************************************
******************************************************************
*****************************************************************/

.chatHeader .chatTitle {
    position: relative;
    padding-right: 0px; /* отступ баннера */
}

.chatHeader .chatTitle::after {
    content: "";
    position: absolute;
    top: -45%; /*50%*/
    left: 100%;
/*    transform: translateY(-50%);*/
    margin-left: 10px; /* отступ от текста */
    width: 100px; /* подставьте реальную ширину вашего GIF */
    height: 35px; /* подставьте реальную высоту */
    background: url('https://forumstatic.ru/files/001c/81/08/20441.gif?v=1') no-repeat center;
    background-size: contain;
    border-radius: 8px;
    box-shadow: 0 0 10px #4b0082;
    pointer-events: none; /* чтобы не перехватывать клики */
}

/* Иконка слева от никнейма, увы для всех */
/*.chatUserFrom::before {
    content: "";
    display: inline-block;
    width: 42px;
    height: 25px;
    margin-right: 4px;
    background: url('https://kolobok.us/smiles/standart/dance2.gif') no-repeat center;
    background-size: contain;
    vertical-align: middle;
}*/