/* ==================== 1. ОБЩИЕ И УТИЛИТАРНЫЕ СТИЛИ ==================== */

.modal-open {
    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
}

.padding10 { padding: 10px; }

.smooth { border-radius: 5px; }

.smoothly {
    opacity: 0;
    animation: ani 0.5s forwards;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.cursor-pointer { cursor: pointer; }

.line-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;
}

.usnone {
    -moz-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    font-style: normal;
    font-size: 12px;
    font-family: Calibri, 'Trebuchet MS', Verdana, Geneva, Arial, Helvetica, sans-serif;
    color: rgb(0, 0, 0);
    background: rgb(220, 220, 235) url(/img/forum/button.png) repeat-x top;
    padding: 0px 6px;
    border: 1px solid rgb(221, 221, 235);
    border-top-color: rgb(255, 255, 255);
    border-bottom-color: rgb(179, 179, 189);
    border-radius: 7px;
    text-align: center;
    box-shadow: 0px 1px 4px 0px rgb(200, 200, 210);
    outline: none;
    line-height: 21px;
    display: inline-block;
    cursor: pointer;
    box-sizing: border-box;
}


/* ==================== 2. ЦВЕТОВЫЕ СТИЛИ ==================== */

/* ---------- Основные цвета ---------- */
.color-red      { color: #8d4242; }
.color-red1     { color: #ffe4e6; }
.color-green    { color: #13812d; }
.color-green1   { color: #166e2a; }
.color-green2   { color: #127c55; }
.color-green3   { color: #c0f7cc; }
.color-green4   { color: #006a03b3; }
.color-blue     { color: #358395; }
.color-blue1    { color: #0798ff; }
.color-blue2    { color: #1a237e; }
.color-blue3    { color: #090797; }
.color-blue4    { color: #1f78b1; }
.color-blue5    { color: #27467e; }
.color-blue6    { color: #1d6f9f; }
.color-blue7    { color: #576a9f; }
.color-blue8    { color: #9b3737; }
.color-blue9    { color: #3d83ad; }
.color-blue10   { color: #001c6c; }
.color-orange   { color: #ff6a00; }
.color-brown    { color: #853d229e; }
.color-violet   { color: #9c27b0; }
.color-dark     { color: #0000009e; }
.color-jackdaw-ok  { color: #13c8ff; }
.color-jackdaw-no  { color: #f6c639; }

/* ---------- Фоновые цвета ---------- */
.bg-chead {
    background: url(/kartinki/bg-mc.png);
    background-position: center;
    background-repeat: repeat;
}

.bg_z_red     { background-color: #ffebee; }
.bg-rep       { background-color: #fff8f8; }
.bg-color-grey { background-color: #f9f9f9; }
.alert_info   { background-color: #f9f9f9; }
.chead        { background-color: #f8f9fa; }

/* ---------- Градиенты ---------- */
.grr_blue { background: radial-gradient(circle, #f4f8ff, #ffffff); }
.grr_red  { background: radial-gradient(circle, #fff8f8, #ffffff); }


/* ==================== 3. ШРИФТЫ И ТИПОГРАФИКА ==================== */

/* ---------- Подключение шрифтов ---------- */
@font-face {
    font-family: 'Open Sans';
    src: url('/css/zorotex/font/Open_Sans/OpenSans-Regular-webfont.woff2') format('woff2'),
	url('/css/zorotex/font/Open_Sans/OpenSans-Regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('/css/zorotex/font/Open_Sans/OpenSans-Bold-webfont.woff2') format('woff2'),
	url('/css/zorotex/font/Open_Sans/OpenSans-Bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: minecraft;
    font-style: normal;
    font-weight: 400;
    src: local('Minecraft'), url(https://zorotex.org/css/zorotex/font/MinecraftTen-VGORe.ttf) format('woff');
}

@font-face {
    font-family: minecraft_ru;
    font-style: normal;
    font-weight: 400;
    src: local('Minecraft'), url(https://zorotex.org/css/zorotex/font/Minecraft.ttf) format('woff');
}

@font-face {
    font-family: minecraft_rus;
    font-style: normal;
    font-weight: 400;
    src: local('Minecraft'), url(https://zorotex.org/css/zorotex/font/4482-font.ttf) format('woff');
}

/* ---------- Базовые стили текста ---------- */
.ff-text {
    font-family: -apple-system, Roboto, Verdana, sans-serif;
}

.font_optional {
    font-family: -apple-system, Roboto, Verdana, sans-serif;
    font-size: 16px;
    font-variant-caps: all-small-caps;
}

.font_optional-16px {
    font-family: -apple-system, Roboto, Verdana, sans-serif;
    font-variant-caps: all-small-caps;
}

.Open_Sans {
    font-family: 'Open Sans', sans-serif;
}

/* ---------- Размеры шрифтов ---------- */
.fo12,
.fo12b,
.fo14,
.fo14b,
.fo14nfw,
.fo14bnfw,
.fo16,
.fo16b {
    font-family: -apple-system, Roboto, Verdana, sans-serif;
}

.fo12,
.fo12b {
    font-size: 12px;
    font-variant-caps: all-small-caps;
}

.fo12b { font-weight: bold; }

.fo14,
.fo14b {
    font-size: 14px;
    font-variant-caps: all-small-caps;
}

.fo14b { font-weight: bold; }

.fo14nfw {
    font-size: 14px;
    font-variant-caps: normal;
}

.fo14bnfw {
    font-weight: bold;
    font-size: 14px;
}

.fo16,
.fo16b {
    font-size: 16px;
    font-variant-caps: all-small-caps;
}

.fo16b { font-weight: bold; }


/* ==================== 4. ЭЛЕМЕНТЫ ИНТЕРФЕЙСА ==================== */

/* ---------- Кнопки ---------- */
.btn-light-blue {
    background-color: #48a0d8;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-light-blue:hover {
    background-color: #3a8cbf;
}

/* ---------- Формы ---------- */
.custom-control-label::before {
    background-color: #fff;
}

.custom-control-label {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    font-weight: normal !important;
}

.form-control:focus {
    border-color: #e3edff !important;
}

/* ---------- Баджи ---------- */
.badge {
    display: inline-block;
    padding: 0.5em 0.5em;
    color: white;
    border-radius: 0.5em;
    text-align: center;
}

.badge-sm {
    min-width: 1.8em;
    padding: .25em !important;
    margin-left: .1em;
    margin-right: .1em;
    color: white !important;
    cursor: pointer;
}

/* ---------- Прогресс-бар ---------- */
.progress_c {
    height: 15px;
}

/* ---------- Таблицы ---------- */
.table thead th {
    border-top: none !important;
    box-shadow: none !important;
}

.stripe {
    border-bottom: 1px solid #f7f7f7;
}


/* ==================== 5. БЛОКИ КОНТЕНТА ==================== */

/* ---------- Цитаты ---------- */
.quote {
    background-color: #f8f8f8;
    border-left: 4px solid #3498db;
    margin: 0;
    padding: 0.5em 0.7rem;
    font-style: italic;
}

.bb-quote-content {
    padding: 10px;
}

.bb-quote {
    position: relative;
    margin: 1.2em 0;
    padding: 0;
    border-left: 4px solid #4a90e2;
    background-color: #f8f9fa;
    border-radius: 0 4px 4px 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bb-quote-header {
    padding: 8px 12px;
    background-color: #e3f2fd;
    color: #0d47a1;
    font-weight: bold;
    font-size: 0.9em;
    border-bottom: 1px solid #bbdefb;
}

.bb-quote:hover {
    border-left-color: #1565c0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.bb-quote .bb-quote {
    margin: 12px;
    border-left-width: 3px;
    background-color: #f1f8ff;
}

.bb-quote-header::before {
    content: "❝";
    margin-right: 6px;
    color: #2196f3;
}

/* ---------- Блоки кода ---------- */
.code-block {
    background: #fbfbfb;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    font-family: monospace;
    font-size: 14px;
    margin: 10px 0;
    position: relative;
}

.token.key         { color: #1e88e5; }
.token.punctuation { color: #546e7a; }
.token.value       { color: #43a047; }

.copy-button {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    color: #0d47a1;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background: #bbdefb;
    border-color: #90caf9;
}

.copy-button:active {
    background: #90caf9;
    transform: scale(0.96);
}

.bb-ds-code {
    font-size: .875em;
    font-weight: var(--ds-font-weight-strong, bold);
    font-family: var(--ds-font-family-code, monospace);
    background-color: var(--ds-md-inline-code-color, #ececec);
    border-radius: 4px;
    padding: .15rem .3rem;
    display: inline;
    color: #333;
}

.bb-code-block {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    margin: 1em 0;
    overflow: hidden;
    font-family: 'Menlo', 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    color: #24292e;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    user-select: none;
}

.bb-code-block pre {
    margin: 0;
    padding: 1.25em;
    overflow-x: auto;
    background: inherit;
    user-select: none;
}

.bb-code-block code {
    background: inherit;
    display: block;
    white-space: pre;
    font-size: 14px;
    font-weight: 500;
    user-select: text;
}

.bb-code-block *:focus {
    outline: none !important;
}

.bb-copy-button {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    background: #ffffff;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    color: #586069;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.bb-copy-button:hover {
    background: #f6f8fa;
    border-color: #959da5;
    color: #24292e;
    opacity: 1;
}

.bb-copy-button:active {
    background: #e9ecef;
    transform: translateY(1px);
}

/* ---------- Списки ---------- */
ul {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
}

/* ---------- Разделители ---------- */
br {
    margin: 0;
    padding: 0;
    line-height: 0;
}


/* ==================== 6. ИЗОБРАЖЕНИЯ И МЕДИА ==================== */

/* ---------- Общие стили для изображений ---------- */
.border_img {
    border: #e9e9e9 solid 1px;
}

.bb-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eee;
}

.bb-img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.bb-img[style*="width"] {
    width: auto !important;
    max-width: var(--img-width, 100%);
}

/* ---------- Видео ---------- */
.bb-video-container {
    width: 500px;
    max-width: 100%;
    aspect-ratio: 16/9;
    margin: 5px 0;
    display: inline-block;
}

.bb-video {
    width: 100%;
    height: 100%;
    border: none;
    vertical-align: top;
}

/* ---------- Иконки соцсетей ---------- */
.min-icon-rutube {
    display: inline-block;
    background-image: url("/img/contact/Icon_RUTUBE_dark_color_square.png");
    background-repeat: no-repeat;
    background-size: contain;
    height: 25px;
    width: 25px;
}

.min-icon-vk {
    display: inline-block;
    background-image: url("/img/contact/VK Logo.png");
    background-repeat: no-repeat;
    background-size: contain;
    height: 25px;
    width: 25px;
}

.min-icon-youtube {
    display: inline-block;
    background-image: url("/img/contact/youtube_social_icon_white.png");
    background-repeat: no-repeat;
    background-size: contain;
    height: 25px;
    width: 25px;
}

.min-icon-discord {
    display: inline-block;
    background-image: url("/img/contact/icon_clyde_blurple_RGB.png");
    background-repeat: no-repeat;
    background-size: contain;
    height: 24px;
    width: 31px;
}

.min-icon-dzen {
    display: inline-block;
    background-image: url("/img/contact/dzen-icon.png");
    background-repeat: no-repeat;
    background-size: contain;
    height: 25px;
    width: 31px;
}


/* ==================== 7. СПЕЦИАЛЬНЫЕ ЭЛЕМЕНТЫ ==================== */

/* ---------- Квадратные элементы ---------- */
.square-25,
.square-50,
.square-65 {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    object-fit: cover;
    font-family: minecraft-regular;
    cursor: pointer;
}

.square-25 {
    height: 25px;
    width: 25px;
    font-size: 14px;
}

.square-50 {
    height: 50px;
    width: 50px;
    font-size: 28px;
}

.square-65 {
    height: 65px;
    width: 65px;
    font-size: 28px;
}

.square-motd {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: -webkit-xxx-large;
    font-family: sans-serif;
    cursor: pointer;
}

.square_motd {
    vertical-align: middle;
    border-style: none;
    cursor: pointer;
}

/* ---------- Статус серверов ---------- */
.server-status-1,
.server-status-2 {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}

.server-status-1 { background-color: green; }
.server-status-2 { background-color: red; }

.server-status-badge-1 { background-color: #28a745; }
.server-status-badge-2 { background-color: #dc3545; }
.server-status-badge-6 { background-color: #856404; }

/* ---------- Счётчик посетителей ---------- */
.visitor-count {
    position: relative;
    display: inline-block;
    text-align: center;
    margin: 20px;
}

.today-count {
    position: absolute;
    top: 0;
    left: 165%;
    transform: translate(-50%, -50%);
    color: #28a745;
}

/* ---------- Иконки ---------- */
.fa-check {
    color: #4CAF50;
    transition: color 0.2s;
}


/* ==================== 8. MINECRAFT-СПЕЦИФИЧНЫЕ СТИЛИ ==================== */

/* ---------- Цвета Minecraft ---------- */
.mc-color.mc-0 { color: #000000; }
.mc-color.mc-1 { color: #0000AA; }
.mc-color.mc-2 { color: #00AA00; }
.mc-color.mc-3 { color: #00AAAA; }
.mc-color.mc-4 { color: #AA0000; }
.mc-color.mc-5 { color: #AA00AA; }
.mc-color.mc-6 { color: #FFAA00; }
.mc-color.mc-7 { color: #AAAAAA; }
.mc-color.mc-8 { color: #555555; }
.mc-color.mc-9 { color: #5555FF; }
.mc-color.mc-a { color: #55FF55; }
.mc-color.mc-b { color: #55FFFF; }
.mc-color.mc-c { color: #FF5555; }
.mc-color.mc-d { color: #FF55FF; }
.mc-color.mc-e { color: #FFFF55; }
.mc-color.mc-f { color: #FFFFFF; }

.mc-color,
.mc-r {
    color: #ffffff;
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
}

.mc-k { }
.mc-l { font-weight: bold; }
.mc-m { text-decoration: line-through; }
.mc-n { text-decoration: underline; }
.mc-o { font-style: italic; }


/* ==================== 9. СТИЛИ ДЛЯ МОБИЛЬНОГО МЕНЮ ПОЛЬЗОВАТЕЛЯ ==================== */

/* Стили для мобильного выдвижного меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
    color: #ddd;
    outline: none;
}

.offcanvas-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.offcanvas-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 1050;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.offcanvas-menu.open {
    left: 0;
}

.offcanvas-header {
    padding: 1rem;
    background: #0a2d7a;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.offcanvas-header h5 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
}

.offcanvas-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.offcanvas-close:hover {
    color: #ddd;
}

.offcanvas-body {
    padding: 0;
}

.offcanvas-body .pt-3 {
    padding-top: 0.5rem !important;
}

.offcanvas-body .nav-link {
    padding: 0.6rem 1rem;
    font-size: 14px;
}

.offcanvas-body .card {
    border-radius: 0;
    margin-bottom: 0 !important;
}

.offcanvas-body .info-box {
    margin-bottom: 0 !important;
}

/* Стиль для логотипа Minecraft */
.minecraft-style-5 {
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 0px 0 #2d5a1e;
    display: inline-block;
    transition: all 0.3s ease;
    margin-left: 15px;
}

/* Стили для меню пользователя (мобильное выпадающее) */
.user-menu-container {
    position: relative;
    margin-left: auto;
}

.user-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-menu-btn:hover {
    background: rgba(255,255,255,0.1);
}

.user-menu-btn .user-name {
    font-size: 13px;
    display: none;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    min-width: 210px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1060;
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

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

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.user-dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown-item i {
    width: 20px;
    color: #0a2d7a;
    font-size: 16px;
}

.user-dropdown-item:hover {
    background: #f5f7ff;
    text-decoration: none;
    color: #0a2d7a;
}

.user-dropdown-item.text-danger i {
    color: #dc3545;
}

.user-dropdown-item.text-danger:hover {
    background: #fff5f5;
    color: #dc3545;
}

.user-dropdown-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 4px 0;
}

.user-dropdown-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
}

.user-dropdown-header .user-email {
    font-size: 12px;
    color: #666;
    word-break: break-all;
}

.badge-mobile {
    margin-left: auto;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
}

/* Стили для кнопок неавторизованного пользователя на мобильных */
.nologin-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nologin-buttons a {
    font-size: 13px;
    white-space: nowrap;
    padding: 6px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: background 0.2s;
}

.nologin-buttons a:hover {
    background: rgba(255,255,255,0.2);
    text-decoration: none;
    color: white;
}


/* ==================== 10. МЕДИА-ЗАПРОСЫ ==================== */

@media only screen and (max-width: 1120px) and (min-width: 575.98px) {
    .close-img {
        width: 20%;
        height: 20%;
    }
	
    .text-rate {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .bb-quote {
        margin: 1em 0;
        border-left-width: 3px;
    }
	
    .bb-quote-header {
        padding: 6px 10px;
    }
}

/* Основные медиа-запросы для адаптивности */
@media (max-width: 767.98px) {
    #sidebarMenu {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    main[role="main"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .container-fluid .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .minecraft-style-5 {
        font-size: 16px;
        margin-left: 5px;
    }
    
    /* Скрываем старые кнопки на мобильных */
    .navbar .dropdown.desktop-menu nav .btn-group {
        display: none !important;
    }
    
    /* Показываем имя пользователя в мобильной версии */
    .user-menu-btn .user-name {
        display: inline;
        font-size: 12px;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Показываем кнопки неавторизованного пользователя */
    .nologin-buttons {
        display: flex;
    }
}

@media (min-width: 768px) {
    .offcanvas-overlay,
    .offcanvas-menu {
        display: none !important;
    }
    
    /* На десктопе скрываем мобильное меню пользователя */
    .user-menu-container {
        display: none;
    }
    
    /* Показываем десктопное меню */
    .desktop-menu {
        display: block;
    }
}


/* ==================== 11. РАЗНОЕ ==================== */

.contenteditable {
    background: #f1f1f1;
    max-height: 100px;
    overflow-y: auto;
    border: 1px dashed #000000;
    color: #2f6eb1;
}

.web_name {
    width: 145px;
    font-size: 12px;
    display: block;
    outline: 0;
    outline-offset: 0;
    outline: none;
}

.box-ticket {
    position: relative;
    display: inline-block;
}

.box-ticket .text-ticket {
    position: absolute;
    z-index: 999;
    margin: 0 auto;
    right: 0;
    text-align: center;
    top: 56%;
    background: rgb(255, 255, 255);
    font-family: Arial, sans-serif;
    color: #fff;
    width: 30%;
}

.border_green {
    border: 1px solid #8ac57b;
    padding: 3px;
}

.border_red {
    border: 1px solid #ffe4e6;
    padding: 3px;
}

/* ==================== 12. ПОЛНОЕ УБИРАНИЕ ОБВОДКИ ==================== */

/* Убираем обводку у всех кнопок */
button,
button:focus,
button:active,
button:focus-visible,
button:visited,
button:target,
.btn,
.btn:focus,
.btn:active,
.btn:focus-visible,
.user-menu-btn,
.user-menu-btn:focus,
.user-menu-btn:active,
.user-menu-btn:focus-visible,
.user-menu-btn:visited,
.user-menu-btn:target,
#userMenuBtn,
#userMenuBtn:focus,
#userMenuBtn:active,
#userMenuBtn:focus-visible {
    outline: none !important;
    outline-color: transparent !important;
    outline-style: none !important;
    outline-width: 0 !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    border-color: transparent !important;
}

/* Убираем обводку в Firefox */
button::-moz-focus-inner,
.user-menu-btn::-moz-focus-inner,
#userMenuBtn::-moz-focus-inner {
    border: 0 !important;
    outline: none !important;
}

/* Убираем обводку в Chrome/Safari/Edge */
:focus {
    outline: none !important;
    outline-color: transparent !important;
}

/* Убираем обводку при клике на мобильных устройствах */
* {
    -webkit-tap-highlight-color: transparent !important;
}

.notification-badge-mobile {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 0 4px;
    box-shadow: 0 0 0 2px white;
    z-index: 1;
}

/* Бейдж уведомлений форума в боковом меню */
.forum-badge-sidebar {
    background: #ffc107;
    color: #000;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    min-width: 28px;
    text-align: center;
}

/* Бейдж уведомлений на аватарке */
.notification-badge-mobile {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 0 4px;
    box-shadow: 0 0 0 2px white;
    z-index: 1;
}

/* Убираем обводку у кнопки */
.user-menu-btn {
    outline: none !important;
    box-shadow: none !important;
}

.user-menu-btn:focus,
.user-menu-btn:active {
    outline: none !important;
    box-shadow: none !important;
}